/* PBARIA runtime styles: the few rules the old site applied from JavaScript, plus the
   pieces added by the new platform (sidebar layout, lightbox, form messages). */

/* shown by script on the old site */
.woocommerce-product-gallery { opacity: 1 !important; }
.fusion-animated { visibility: visible; }
.fusion-flexslider.fusion-flexslider-loading { opacity: 1; }
.fusion-flexslider ul.slides { margin: 0; padding: 0; list-style: none; }
.fusion-flexslider ul.slides > li:first-child { display: block; }
.fusion-video .fluid-width-video-wrapper { padding-top: 56.25% !important; position: relative; }
.fusion-video .fluid-width-video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-shortcode > iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.awb-background-slider .swiper-slide:first-child { opacity: 1; }
.awb-menu.loading { opacity: 1; }
html.awb-off-canvas-opened { overflow: hidden; }

/* sticky header rows */
.fusion-sticky-container.pb-stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 10010; }
.pb-sticky-spacer { display: block !important; visibility: hidden; }

/* review stars picker */
p.stars a { cursor: pointer; }

/* form feedback */
.pb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pb-form-msg, .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 2px solid #46b450; border-radius: 6px; font-size: 14px; }
.wpcf7 form.init .wpcf7-response-output { display: none; }
form.invalid .pb-form-msg, .wpcf7 form.invalid .wpcf7-response-output { border-color: #dc3232; }
form.submitting { opacity: 0.6; pointer-events: none; }
.wpcf7-not-valid { border-color: #dc3232 !important; }

/* lightbox */
.pb-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, 0.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.pb-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; cursor: default; }
.pb-lightbox__close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.pb-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

/* ------------------------------------------------------------------ sidebar layouts */
.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; max-width: var(--site_width, 1248px); margin: 0 auto; padding: 40px 30px; align-items: start; }
.pb-layout--sidebar-left { grid-template-columns: 320px minmax(0, 1fr); }
.pb-layout--sidebar-left .pb-layout__content { order: 2; }
.pb-layout--sidebar-left .pb-sidebar { order: 1; }
.pb-layout__content { min-width: 0; }
.pb-layout__content > main#main { padding-left: 0 !important; padding-right: 0 !important; }
.pb-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.pb-widget { background: var(--awb-color2, #f5f5f5); border-radius: 8px; padding: 24px; }
.pb-widget__title { margin: 0 0 16px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--awb-color8, #111); }
.pb-widget ul { list-style: none; margin: 0; padding: 0; }
.pb-widget li { padding: 9px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); font-size: 14px; line-height: 1.45; }
.pb-widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.pb-widget li a { color: inherit; text-decoration: none; }
.pb-widget li a:hover { color: var(--awb-color5, #e12728); }
.pb-widget__cards { display: grid; gap: 14px; }
.pb-widget__card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pb-widget__card img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #fff; }
.pb-widget__search { display: flex; gap: 8px; }
.pb-widget__search input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 6px; font: inherit; font-size: 14px; }
.pb-widget__search button { height: 42px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--awb-color5, #e12728); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pb-widget--cta { background: var(--awb-color8, #111); color: #fff; }
.pb-widget--cta .pb-widget__title { color: #fff; }
.pb-widget--cta p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; opacity: 0.86; }
.pb-widget__btn { display: inline-block; padding: 11px 20px; border-radius: 6px; background: var(--awb-color5, #e12728); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 1024px) {
  .pb-layout, .pb-layout--sidebar-left { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .pb-layout--sidebar-left .pb-layout__content, .pb-layout--sidebar-left .pb-sidebar { order: initial; }
  .pb-sidebar { position: static; }
}

/* store locator (list + OpenStreetMap) */
.asl-cont, .asl-p-cont { opacity: 1 !important; }
#asl-storelocator .asl-map-canv { height: 480px; z-index: 0; }
#asl-storelocator .sl-list-wrapper { max-height: 480px; overflow-y: auto; }
#asl-storelocator .sl-item { cursor: pointer; }
#asl-storelocator .pb-asl-select { width: 100%; max-width: 350px; height: 40px; padding: 0 10px; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
#asl-storelocator .leaflet-container a { text-decoration: none; }

/* ------------------------------------------------------------------ page builder blocks */
.pb-row { width: 100%; padding: 40px 30px; }
.pb-row__inner { display: grid; grid-template-columns: var(--pb-cols, 1fr); gap: 32px; max-width: var(--site_width, 1248px); margin: 0 auto; align-items: start; }
.pb-col { min-width: 0; }
.pb-col > :first-child { margin-top: 0; }
.pb-col > :last-child { margin-bottom: 0; }
.pb-col img, .pb-img img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.pb-img { margin: 0 0 20px; }
.pb-btn-wrap { margin: 20px 0; }
.pb-btn { display: inline-block; padding: 13px 28px; border-radius: 6px; background: var(--awb-color5, #e12728); color: #fff !important; font-weight: 700; text-decoration: none !important; line-height: 1.2; }
.pb-btn:hover { filter: brightness(0.92); }
.pb-divider { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.14); margin: 28px 0; }
.pb-spacer { height: 48px; }
.pb-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 20px; border-radius: 8px; overflow: hidden; background: #000; }
.pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1024px) { .pb-row__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pb-row { padding: 28px 20px; } .pb-row__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* section layouts chosen in "Section settings" */
.pb-row { box-sizing: border-box; }
.pb-row--boxed { max-width: var(--site_width, 1248px); margin-left: auto; margin-right: auto; }
.pb-row--wide > .pb-row__inner { max-width: none; }
@media (max-width: 800px) { .pb-row, .fusion-fullwidth { background-attachment: scroll !important; } }

/* ------------------------------------------------------------------ dynamic builder elements */
.pb-block { margin: 0 0 24px; }
.pb-block__title { margin: 0 0 20px; }
.pb-block__empty { padding: 24px; text-align: center; color: #777; background: #f5f5f5; border-radius: 8px; margin: 0; }
.pb-cards { display: grid; gap: 24px; }
.pb-cards--grid { grid-template-columns: repeat(var(--pb-n, 3), minmax(0, 1fr)); }
.pb-card { background: #fff; border: 1px solid rgba(0, 0, 0, 0.09); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.pb-card__img { display: block; aspect-ratio: 4 / 3; background: #f3f3f3; overflow: hidden; }
.pb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; border-radius: 0; }
.pb-card:hover .pb-card__img img { transform: scale(1.04); }
.pb-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pb-card__meta { font-size: 12px; color: #777; display: flex; gap: 10px; flex-wrap: wrap; }
.pb-card__meta a { color: inherit; }
.pb-card__title { margin: 0; font-size: 17px; line-height: 1.35; }
.pb-card__title a { color: inherit; text-decoration: none; }
.pb-card__title a:hover, .pb-card__more:hover { color: var(--awb-color5, #e12728); }
.pb-card__text { margin: 0; font-size: 14px; line-height: 1.6; color: #555; }
.pb-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: inherit; }
.pb-cards--list .pb-card { flex-direction: row; }
.pb-cards--list .pb-card__img { flex: 0 0 34%; max-width: 300px; aspect-ratio: auto; min-height: 170px; }
.pb-cards--list .pb-card__body { justify-content: center; }
.pb-swiper { position: relative; overflow: hidden; padding-bottom: 34px; }
.pb-swiper .swiper-wrapper { display: flex; }
.pb-swiper .swiper-slide { flex-shrink: 0; height: auto; box-sizing: border-box; }
.pb-swiper:not(.swiper-initialized) .swiper-slide { width: 100%; }
.pb-swiper__nav { position: absolute; top: calc(50% - 17px); transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); display: grid; place-items: center; padding: 0 0 3px; }
.pb-swiper__nav:hover { background: var(--awb-color5, #e12728); color: #fff; }
.pb-swiper__prev { left: 10px; }
.pb-swiper__next { right: 10px; }
.pb-swiper__nav.swiper-button-disabled { opacity: 0.35; cursor: default; }
.pb-swiper__dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 7px; }
.pb-swiper__dots .swiper-pagination-bullet { width: 9px; height: 9px; border-radius: 50%; background: #c8c8c8; opacity: 1; cursor: pointer; margin: 0 !important; }
.pb-swiper__dots .swiper-pagination-bullet-active { background: var(--awb-color5, #e12728); }
.pb-figure { margin: 0; position: relative; height: 100%; }
.pb-figure img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.pb-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); border-radius: 0 0 8px 8px; }
.pb-slider .swiper-slide { height: var(--pb-slide-h, auto); }
.pb-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pb-catlist li { margin: 0; }
.pb-catlist a { display: inline-block; padding: 8px 16px; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 99px; color: inherit; text-decoration: none; font-size: 14px; }
.pb-catlist a:hover { border-color: var(--awb-color5, #e12728); color: var(--awb-color5, #e12728); }
.pb-catlist span { color: #888; font-size: 13px; }
@media (max-width: 1024px) { .pb-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pb-cards--grid { grid-template-columns: minmax(0, 1fr); }
  .pb-cards--list .pb-card { flex-direction: column; }
  .pb-cards--list .pb-card__img { flex: none; max-width: none; aspect-ratio: 4 / 3; }
  .pb-slider .swiper-slide { height: auto; max-height: var(--pb-slide-h, none); }
}

/* builder sections inside a post or product body sit in an already padded column */
.fusion-content-tb .pb-row, .woocommerce-Tabs-panel .pb-row { padding-left: 0; padding-right: 0; }
.pb-post-title { padding-top: 0; padding-bottom: 0; }
