/**
 * Layout1 bold — home shell + pure BEM hero (l1-home / l1-hero).
 * Loads after layout1-page.css. Build: 20260531-layout1-home-v12
 *
 * Markup must NOT use hero / saf_hero / storefront-bold__hero / sf-hero classes
 * (see layout/home/index.php) so storefront-modern-bem.css cannot strip the overlay.
 */

/* ========== Home shell — under fixed header ========== */
body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main > .l1-home:first-child {
  margin-top: -130px;
}

@media (min-width: 768px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main > .l1-home:first-child {
    margin-top: -140px;
  }
}

@media (min-width: 992px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main > .l1-home:first-child {
    margin-top: -150px;
  }
}

@media (max-width: 991.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main > .l1-home:first-child {
    margin-top: 0 !important;
  }
}

@supports selector(:has(*)) {
  .layout-page:has(.layout-page__main > .l1-home:first-child .l1-hero) .layout-page__main {
    padding-top: 0;
  }

  .layout-page:has(.layout-page__main > .l1-home:first-child .l1-hero)
    .layout-page__main
    > .l1-home:first-child {
    margin-top: 0;
  }
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home {
  position: relative;
  width: 100%;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero {
  margin-top: 0;
  margin-bottom: 0;
}

/* ========== CMS intro row ========== */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere:not(.storefront-bold__prose--centered) > p:first-child,
body.storefront-bold.theme-layout1:has(.l1-header) .mega-commerce--cms.l1-page-content #contentpagehere:not(.storefront-bold__prose--centered) > p:first-child {
  display: grid !important;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) !important;
  gap: 0.85rem 1.15rem !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 var(--l1-page-gap, 1.25rem) !important;
  padding: 0 0 0.75rem !important;
  text-align: left !important;
  border-bottom: 3px solid var(--sf-theme-accent, #eab308) !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere:not(.storefront-bold__prose--centered) > p:first-child:not(:has(img)),
body.storefront-bold.theme-layout1:has(.l1-header) .mega-commerce--cms.l1-page-content #contentpagehere:not(.storefront-bold__prose--centered) > p:first-child:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere > p:first-child img,
body.storefront-bold.theme-layout1:has(.l1-header) .mega-commerce--cms.l1-page-content #contentpagehere > p:first-child img {
  grid-column: 1 !important;
  grid-row: 1 !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 11rem !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--l1-card-radius, 12px) !important;
  box-shadow: var(--l1-card-shadow, 0 8px 24px rgba(15, 23, 42, 0.08)) !important;
  object-fit: cover !important;
  aspect-ratio: 4 / 3;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere > p:first-child > :not(img),
body.storefront-bold.theme-layout1:has(.l1-header) .mega-commerce--cms.l1-page-content #contentpagehere > p:first-child > :not(img) {
  grid-column: 2 !important;
  align-self: center !important;
  text-align: left !important;
  float: none !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere > p:first-child span,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere > p:first-child strong,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere > p:first-child .storefront-bold__prose-heading {
  text-align: left !important;
  border-bottom: 0 !important;
  margin: 0 !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere > p:not(:first-child) {
  text-align: left !important;
  margin: 0 0 1rem !important;
}

@media (max-width: 767.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-page-content #contentpagehere:not(.storefront-bold__prose--centered) > p:first-child:has(img) {
    grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr) !important;
  }
}

/* ========== l1-hero — pure BEM (no legacy hero / saf_hero hooks) ========== */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 clamp(14px, 3vw, 24px) clamp(14px, 3vw, 24px);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14);
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slider {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  float: none !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero .swiper-wrapper,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero .swiper-slide,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero .l1-hero__slide-wrap {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  float: none !important;
  box-sizing: border-box;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: var(--l1-hero-min-h, clamp(280px, 38vw, 520px)) !important;
  margin: 0;
  padding: 0;
  float: none !important;
  box-sizing: border-box;
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide:has(.l1-hero__img) {
  background-image: none !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Dark opacity gradient + light blur — defaults; Manage Theme overrides via --l1-hero-shade-* */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: block !important;
  background: linear-gradient(
    90deg,
    rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), var(--l1-hero-shade-peak, 0.88)) 0%,
    rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), calc(var(--l1-hero-shade-peak, 0.88) * 0.705)) 38%,
    rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), calc(var(--l1-hero-shade-peak, 0.88) * 0.318)) 62%,
    rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), calc(var(--l1-hero-shade-peak, 0.88) * 0.091)) 100%
  ) !important;
  backdrop-filter: blur(var(--l1-hero-shade-blur, 1px));
  -webkit-backdrop-filter: blur(var(--l1-hero-shade-blur, 1px));
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: var(--l1-page-max, 75rem);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vw, 2rem) var(--l1-page-pad-x, 1rem)
    clamp(3.5rem, 10vw, 4.75rem);
  box-sizing: border-box;
  float: none !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: min(100%, 36rem);
  margin: 0;
  gap: 0.65rem;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__copy {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__title {
  margin: 0 0 0.5rem;
  color: var(--hero-title-color, #fff);
  font-family: var(--hero-title-font, inherit);
  font-size: var(--hero-title-size, clamp(1.35rem, 1rem + 2.2vw, 2.65rem));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__title--boxed {
  display: inline-block;
  max-width: 100%;
  padding: 0.35em 0.65em;
  border-radius: 0.35em;
  background: var(--hero-title-bg, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__desc {
  margin: 0 0 0.75rem;
  color: var(--hero-desc-color, rgba(255, 255, 255, 0.94));
  font-family: var(--hero-desc-font, inherit);
  font-size: var(--hero-desc-size, clamp(0.9rem, 0.8rem + 0.45vw, 1.1rem));
  line-height: 1.5;
  max-width: 34rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__desc--boxed {
  display: inline-block;
  max-width: 100%;
  padding: 0.45em 0.65em;
  border-radius: 0.35em;
  background: var(--hero-desc-bg, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  margin: 0;
  border-radius: 999px;
  font-family: var(--hero-btn-font, inherit);
  font-size: var(--hero-btn-size, 1rem);
  font-weight: 700;
  text-decoration: none;
  color: var(--hero-btn-color, #0f172a);
  background: var(--hero-btn-bg, var(--sf-theme-accent, #eab308));
  background-color: var(--hero-btn-bg, var(--sf-theme-accent, #eab308));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

/* Per-slide overlay override (admin: Use custom overlay) */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide[style*="--hero-shade-bg"] .l1-hero__shade {
  background: var(--hero-shade-bg) !important;
  backdrop-filter: blur(var(--hero-shade-blur, 1px));
  -webkit-backdrop-filter: blur(var(--hero-shade-blur, 1px));
}

/* Secondary image column */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: min(100%, 56rem);
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid--sec-left {
  direction: rtl;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid--sec-left > * {
  direction: ltr;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__secondary-img {
  width: 100%;
  max-width: 22rem;
  height: auto;
  max-height: min(42vh, 320px);
  object-fit: contain;
  border-radius: clamp(10px, 1.5vw, 16px);
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.35));
}

@media (max-width: 991.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid--split {
    grid-template-columns: minmax(0, 1fr);
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid--sec-left {
    direction: ltr;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__secondary {
    order: -1;
    margin-bottom: 0.5rem;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__secondary-img {
    max-height: 28vh;
  }
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero--single-slide .l1-hero__prev,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero--single-slide .l1-hero__next,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero--single-slide .l1-hero__pagination {
  display: none !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home #home-hero-swiper .swiper-notification {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 991.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide,
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero .swiper-slide {
    min-height: var(--l1-hero-min-h-mobile, clamp(300px, 78vw, 500px)) !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slider {
    min-height: var(--l1-hero-min-h-mobile, clamp(300px, 78vw, 500px)) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__img {
    object-position: 72% center;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), calc(var(--l1-hero-shade-peak-mobile, 0.92) * 0.13)) 0%,
      rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), calc(var(--l1-hero-shade-peak-mobile, 0.92) * 0.522)) 42%,
      rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), calc(var(--l1-hero-shade-peak-mobile, 0.92) * 0.913)) 74%,
      rgba(var(--l1-hero-shade-r, 15), var(--l1-hero-shade-g, 23), var(--l1-hero-shade-b, 42), min(1, calc(var(--l1-hero-shade-peak-mobile, 0.92) * 1.022))) 100%
    ) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__inner {
    padding-bottom: clamp(4rem, 13vw, 5.25rem);
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid {
    max-width: min(100%, 22rem);
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__title {
    color: var(--hero-title-color, #fff) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__desc {
    color: var(--hero-desc-color, rgba(255, 255, 255, 0.95)) !important;
  }
}

@media (max-width: 575.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide,
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero .swiper-slide {
    min-height: var(--l1-hero-min-h-phone, clamp(320px, 100vw, 540px)) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slider {
    min-height: var(--l1-hero-min-h-phone, clamp(320px, 100vw, 540px)) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__img {
    object-position: 78% 28%;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__title {
    font-size: clamp(1.15rem, 5.8vw, 1.55rem);
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__desc {
    font-size: clamp(0.85rem, 3.4vw, 0.98rem);
  }
}

@media (min-width: 992px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid {
    max-width: min(50%, 36rem);
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__title {
    color: var(--hero-title-color, #fff) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__desc {
    color: var(--hero-desc-color, rgba(255, 255, 255, 0.94)) !important;
  }
}

/* ========== Legacy markup bridge (until index.php v3 is on server) ========== */
/* Old wrapper: mega-commerce--home storefront-bold__home + hero/saf_hero classes */
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .storefront-bold__hero,
body.storefront-bold.theme-layout1:has(.l1-header) .mega-commerce--home.storefront-bold__home .hero.saf_hero_wrapper,
body.storefront-bold.theme-layout1:has(.l1-header) .mega-commerce--home.storefront-bold__home .l1-hero {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__slide.saf_hero_slide,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__slide {
  position: relative !important;
  min-height: var(--l1-hero-min-h-mobile, clamp(300px, 78vw, 500px)) !important;
  background-image: none !important;
  padding-bottom: 0 !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__slide.saf_hero_slide::after,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .saf_hero_slide::after {
  display: none !important;
  content: none !important;
}

/* Inject overlay when old markup has no l1-hero__shade element */
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__slide.saf_hero_slide:not(:has(.l1-hero__shade))::before,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__slide:not(:has(.l1-hero__shade))::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.62) 38%,
    rgba(15, 23, 42, 0.28) 62%,
    rgba(15, 23, 42, 0.08) 100%
  ) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__shade {
  z-index: 2 !important;
  display: block !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .saf_hero_title,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__title,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__title {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .saf_hero_desc,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__desc,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__desc {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 991.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__slide.saf_hero_slide:not(:has(.l1-hero__shade))::before,
  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__slide:not(:has(.l1-hero__shade))::before {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.12) 0%,
      rgba(15, 23, 42, 0.48) 42%,
      rgba(15, 23, 42, 0.84) 74%,
      rgba(15, 23, 42, 0.94) 100%
    ) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .saf_hero_title,
  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__title,
  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__title {
    color: var(--hero-title-color, #fff) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .saf_hero_desc,
  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .hero__desc,
  body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home .l1-hero__desc {
    color: var(--hero-desc-color, rgba(255, 255, 255, 0.95)) !important;
  }
}

/* ========== l1-home — sections below hero (v4) ========== */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .sf-home__section,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .saf_about_wrapper,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .saf_products_wrapper {
  padding-left: var(--l1-page-pad-x, clamp(0.75rem, 3vw, 1.25rem));
  padding-right: var(--l1-page-pad-x, clamp(0.75rem, 3vw, 1.25rem));
  box-sizing: border-box;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .sf-home__container {
  width: 100%;
  max-width: var(--l1-page-max, 75rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  box-sizing: border-box;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .home-slider-product-img,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-item .pi-pic img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-swiper .swiper-button-prev,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-swiper .swiper-button-next {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0;
  transform: translateY(-50%);
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-item .pi-text h5 {
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  line-height: 1.3;
  word-break: break-word;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .saf_about_wrapper .primary-btn,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .sf-home__cta .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

@media (max-width: 575.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .saf_about_wrapper .primary-btn,
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .sf-home__cta .primary-btn {
    width: 100%;
    max-width: 20rem;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-swiper .swiper-button-prev,
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .product-swiper .swiper-button-next {
    display: none;
  }
}

/* ========== Homepage / main modules — layout-level title stack (v8) ========== */
body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main .l1-mod-content__stack,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-mod-content__stack,
body.storefront-bold.theme-layout1:has(.l1-header) .storefront-bold__home--tail .l1-mod-content__stack {
  display: flex !important;
  flex-direction: column !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main .l1-mod-services.l1-mod-content .l1-mod-content__stack {
  --mega-mod-stack-gap: clamp(1.35rem, 2.8vw, 2.15rem) !important;
  gap: clamp(1.35rem, 2.8vw, 2.15rem) !important;
}

@media (min-width: 992px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .layout-page__main .l1-mod-services.l1-mod-content .l1-mod-content__stack {
    --mega-mod-stack-gap: clamp(1.75rem, 1.2vw + 1rem, 2.75rem) !important;
    gap: clamp(1.75rem, 1.2vw + 1rem, 2.75rem) !important;
  }
}

/* ========== v11: l1-hero responsive controls + fancy copy (platform layout1) ========== */
/* Build: 20260531-layout1-home-v11 */

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slider {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: var(--l1-hero-min-h, clamp(280px, 38vw, 520px)) !important;
  overflow: hidden !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__inner {
  padding-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__copy {
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1rem, 2.5vw, 1.35rem) !important;
  border-radius: clamp(12px, 2vw, 18px) !important;
  background: var(--hero-copy-panel-bg, rgba(15, 23, 42, 0.22)) !important;
  backdrop-filter: blur(var(--hero-copy-panel-blur, 6px)) !important;
  -webkit-backdrop-filter: blur(var(--hero-copy-panel-blur, 6px)) !important;
  box-shadow: var(--hero-copy-panel-shadow, 0 12px 40px rgba(15, 23, 42, 0.18)) !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide[style*="--hero-copy-panel-bg"] .l1-hero__copy {
  background: var(--hero-copy-panel-bg) !important;
  backdrop-filter: blur(var(--hero-copy-panel-blur, 6px)) !important;
  -webkit-backdrop-filter: blur(var(--hero-copy-panel-blur, 6px)) !important;
  box-shadow: var(--hero-copy-panel-shadow, none) !important;
  padding: var(--hero-copy-panel-padding, clamp(0.85rem, 2vw, 1.15rem) clamp(1rem, 2.5vw, 1.35rem)) !important;
}

/* Hide frosted text panel (admin: Hide panel) — must beat default .l1-hero__copy rule */
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__copy--panel-hidden,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide--copy-panel-hidden .l1-hero__copy,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide[style*="--hero-copy-panel-bg:transparent"] .l1-hero__copy {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__btn:hover,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__btn:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28) !important;
}

#home-hero-section.l1-hero .l1-hero__controls {
  position: relative !important;
  flex: 0 0 auto !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 12 !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.35rem 0.65rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.55rem var(--l1-page-pad-x, 1rem) max(0.75rem, calc(0.55rem + env(safe-area-inset-bottom, 0px))) !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  background: var(--l1-hero-controls-bar-bg, linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.12) 72%, transparent 100%)) !important;
}

#home-hero-section.l1-hero .l1-hero__prev,
#home-hero-section.l1-hero .l1-hero__next,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-next {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  background-color: var(--l1-hero-control-btn-bg, rgba(15, 23, 42, 0.45)) !important;
  background-size: 18px 28px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)) !important;
  transition: background-color 0.2s ease !important;
}

#home-hero-section.l1-hero .l1-hero__prev,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

#home-hero-section.l1-hero .l1-hero__next,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-next {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

#home-hero-section.l1-hero .l1-hero__prev::after,
#home-hero-section.l1-hero .l1-hero__next::after,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev::after,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-next::after {
  display: none !important;
  content: none !important;
}

#home-hero-section.l1-hero .l1-hero__prev:hover,
#home-hero-section.l1-hero .l1-hero__next:hover,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev:hover,
#home-hero-section.l1-hero .l1-hero__controls .swiper-button-next:hover {
  background-color: var(--l1-hero-control-btn-hover-bg, rgba(15, 23, 42, 0.72)) !important;
}

#home-hero-section.l1-hero .l1-hero__pagination,
#home-hero-section.l1-hero .l1-hero__controls .swiper-pagination {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex: 0 1 auto !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 0.35rem !important;
  width: var(--l1-hero-pagination-track-width, auto) !important;
  max-width: min(calc(100% - 6.5rem), 72vw) !important;
  min-width: 0 !important;
  min-height: var(--l1-hero-pagination-min-height, 44px) !important;
  height: var(--l1-hero-pagination-track-height, auto) !important;
  margin: 0 auto !important;
  padding: var(--l1-hero-pagination-pad, 6px) !important;
  box-sizing: border-box !important;
  border-radius: 999px !important;
  background: var(--l1-hero-pagination-track-bg, rgba(15, 23, 42, 0.35)) !important;
  pointer-events: auto !important;
}

#home-hero-section.l1-hero .l1-hero__pagination .swiper-pagination-bullet {
  width: var(--l1-hero-bullet-size, 9px) !important;
  height: var(--l1-hero-bullet-size, 9px) !important;
  margin: 0 !important;
  opacity: 1 !important;
  border-radius: 999px !important;
  background: var(--l1-hero-bullet-color, rgba(255, 255, 255, 0.45)) !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

#home-hero-section.l1-hero .l1-hero__pagination .swiper-pagination-bullet-active {
  width: var(--l1-hero-bullet-active-size, var(--l1-hero-bullet-size, 9px)) !important;
  height: var(--l1-hero-bullet-active-size, var(--l1-hero-bullet-size, 9px)) !important;
  transform: none !important;
  background: var(--l1-hero-bullet-active, var(--sf-theme-accent, #fff)) !important;
}

@media (max-width: 991.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slider {
    min-height: var(--l1-hero-min-h-mobile, clamp(300px, 78vw, 500px)) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__copy {
    padding: 0.75rem 0.85rem !important;
  }

  #home-hero-section.l1-hero .l1-hero__controls {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto !important;
    height: auto !important;
    pointer-events: auto !important;
  }

  #home-hero-section.l1-hero .l1-hero__prev,
  #home-hero-section.l1-hero .l1-hero__next,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  #home-hero-section.l1-hero .l1-hero__pagination,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-pagination {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
}

@media (max-width: 575.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slider {
    min-height: var(--l1-hero-min-h-phone, clamp(320px, 100vw, 540px)) !important;
  }

  #home-hero-section.l1-hero .l1-hero__prev,
  #home-hero-section.l1-hero .l1-hero__next,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-next {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background-size: 16px 24px !important;
  }
}

@media (min-width: 992px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero {
    position: relative !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__inner {
    padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem) !important;
  }

  #home-hero-section.l1-hero .l1-hero__controls {
    position: absolute !important;
    inset: 0 !important;
    flex: none !important;
    height: auto !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: max(0.85rem, calc(0.5rem + env(safe-area-inset-bottom, 0px))) !important;
    pointer-events: none !important;
    background: var(--l1-hero-controls-bar-bg, linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.06) 28%, transparent 52%)) !important;
  }

  #home-hero-section.l1-hero .l1-hero__prev,
  #home-hero-section.l1-hero .l1-hero__next,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
  }

  #home-hero-section.l1-hero .l1-hero__prev,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-prev {
    left: max(1rem, env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
  }

  #home-hero-section.l1-hero .l1-hero__next,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-button-next {
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
  }

  #home-hero-section.l1-hero .l1-hero__pagination,
  #home-hero-section.l1-hero .l1-hero__controls .swiper-pagination {
    flex: 0 1 auto !important;
    max-width: none !important;
    margin: 0 auto clamp(0.65rem, 1.5vh, 1.1rem) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.28) !important;
    pointer-events: auto !important;
  }
}

/* ========== v12: hero slide image — full responsive fill ========== */
/* Build: 20260531-layout1-home-v12 */

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__slide,
body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero .swiper-slide {
  position: relative !important;
  overflow: hidden !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 991.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__img {
    object-position: 72% center !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__grid {
    max-width: min(100%, 22rem) !important;
  }

  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__title {
    font-size: clamp(1.2rem, 0.95rem + 2.8vw, 1.85rem) !important;
  }
}

@media (max-width: 575.98px) {
  body.storefront-bold.theme-layout1:has(.l1-header) .l1-home .l1-hero__img {
    object-position: 68% center !important;
  }
}
