/* =========================================================================
 * StoreForge · brandstore homepage styles — Pass 1: HERO ZONE
 * Original code (no Woodmart/Elementor). Loaded ONLY on the front page.
 * Uses the store's own design tokens (--accent / --ink / --ff-head / --r-sm)
 * so it follows the palette. Mobile-first; the category sidebar + top-sellers
 * panel are desktop-only and collapse cleanly on tablet/mobile.
 * ========================================================================= */

/* Clear the FIXED site header (same mechanism the old full-bleed hero used:
   --bs-stack is the live header height set by the theme JS; 118px fallback
   matches the compact 2-row header. NO calc() — a host CSS-minifier that strips
   the spaces around "+" turns calc(.. + 14px) into invalid calc(..+14px), which
   the browser drops → zero offset → the fixed header overlaps the hero. The same
   rule is mirrored in the inline critical CSS so it survives home.css being
   dropped/delayed entirely. */
.bs-herozone { padding: var(--bs-stack, 118px) 0 0; }
.bs-herozone__grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1000px) {
  .bs-herozone__grid.has-cats.has-top { grid-template-columns: 248px minmax(0, 1fr) 300px; }
  .bs-herozone__grid.has-cats:not(.has-top) { grid-template-columns: 248px minmax(0, 1fr); }
  .bs-herozone__grid.has-top:not(.has-cats) { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ── Category sidebar (desktop only) ───────────────────────────────────── */
.bs-herocats { display: none; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-sm, 10px); overflow: hidden; }
@media (min-width: 1000px) { .bs-herocats { display: block; } }
.bs-herocats__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--accent, #1f7a3d); color: #fff; font: 700 14px/1 var(--ff-head, inherit); letter-spacing: .2px; }
.bs-herocats__head .bs-ic { width: 18px; height: 18px; color: #fff; }
.bs-herocats__list { list-style: none; margin: 0; padding: 6px 0; max-height: 412px; overflow: auto; }
.bs-herocats__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px; color: var(--ink, #1a1a1a); font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.bs-herocats__list a:hover { background: var(--bs-soft, #f4f3f0); color: var(--accent, #1f7a3d); }
.bs-herocats__n { font-size: 12px; color: #9a9a9a; }

/* ── Hero slider ───────────────────────────────────────────────────────── */
/* width:100% + min-width:0 guard (same as the top-sellers slider): without it,
   loop mode with 2+ slides lets Swiper balloon the slide width to 2^25, which
   pushes the centred bg image ~16M px off-screen → blank hero. */
.bs-heroslider { position: relative; width: 100%; min-width: 0; box-sizing: border-box; border-radius: var(--r-sm, 10px); overflow: hidden; height: clamp(360px, 40vw, 470px); }
.bs-heroslider .swiper-wrapper { height: 100%; }
.bs-heroslide { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; background: linear-gradient(120deg, var(--accent, #1f7a3d), #1a1a1a); }
.bs-heroslide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transform: scale(1.001); transition: transform 8s ease-out; will-change: transform; }
/* Ken-Burns: the active slide's image slowly zooms while it's on screen, so each
   slide feels alive (paired with the JS cross-fade between slides). */
.bs-heroslider .swiper-slide-active .bs-heroslide__bg { transform: scale(1.09); }
@media (prefers-reduced-motion: reduce) { .bs-heroslide__bg { transition: none; transform: none; } .bs-heroslider .swiper-slide-active .bs-heroslide__bg { transform: none; } }
.bs-heroslide__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.46) 100%); z-index: 1; }
.bs-heroslide__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 680px; margin: 0 auto; padding: 28px 32px; color: #fff; }
.bs-eyebrow--hero { display: inline-block; margin-bottom: 12px; font: 700 12px/1 var(--ff-head, inherit); letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: .9; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.bs-heroslide__title { margin: 0 0 14px; font: 800 clamp(28px, 4.2vw, 48px)/1.08 var(--ff-head, inherit); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.38); }
.bs-heroslide__sub { margin: 0 0 22px; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.5; color: rgba(255,255,255,.94); max-width: 52ch; text-shadow: 0 1px 12px rgba(0,0,0,.34); }
.bs-heroslide__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Buttons (shared) */
.bs-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: var(--r-sm, 8px); font: 700 14px/1 var(--ff-head, inherit); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: filter .15s, background .15s, color .15s; }
.bs-btn--accent { background: var(--accent, #1f7a3d); color: #fff; }
.bs-btn--accent:hover { filter: brightness(.92); }
.bs-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.bs-btn--ghost:hover { background: #fff; color: var(--ink, #111); }

/* Hero nav arrows + dots */
.bs-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink, #111); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.bs-heroslider:hover .bs-hero__nav { opacity: 1; }
.bs-hero__nav:hover { background: #fff; }
.bs-hero__nav .bs-ic { width: 20px; height: 20px; }
.bs-hero__prev { left: 14px; } .bs-hero__prev .bs-ic { transform: rotate(180deg); }
.bs-hero__next { right: 14px; }
/* Mobile: hide the arrows entirely — users swipe, and the dots show position.
   (They were oversized and sat on top of the hero subtitle.) Desktop keeps them. */
@media (max-width: 999px) { .bs-hero__nav { display: none; } }
.bs-hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.bs-hero__dots .swiper-pagination-bullet { width: 9px; height: 9px; background: #fff; opacity: .5; border-radius: 50%; transition: opacity .2s, width .2s; }
.bs-hero__dots .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 5px; }

/* ── Top-sellers panel (desktop only) ──────────────────────────────────── */
.bs-topsellers { display: none; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-sm, 10px); overflow: hidden; }
@media (min-width: 1000px) { .bs-topsellers { display: flex; flex-direction: column; height: clamp(320px, 40vw, 465px); } }
.bs-topsellers__head { flex: 0 0 auto; padding: 13px 16px; background: var(--bs-soft, #f4f3f0); font: 700 14px/1 var(--ff-head, inherit); letter-spacing: .3px; border-bottom: 1px solid rgba(0,0,0,.06); text-transform: uppercase; }
/* width:100% + box-sizing is the critical guard: without an explicit width the
   flex item lets its 6-card content balloon the box (765px → Swiper then
   compounds it to 2^25 and the card centres ~16M px off-screen → blank panel). */
.bs-topsellers__slider { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; box-sizing: border-box; padding: 12px; overflow: hidden; }
.bs-topsellers__slider .swiper-wrapper { height: 100%; }
.bs-topsellers__slider .swiper-slide { height: 100%; min-width: 0; box-sizing: border-box; }

/* Self-contained top-seller card. Image is bounded by max-width/max-height (NO
   aspect-ratio) so it can never balloon if Swiper miscalculates a slide width. */
.bs-tscard { display: flex; flex-direction: column; width: 100%; min-width: 0; height: 100%; box-sizing: border-box; padding: 4px; text-align: center; text-decoration: none; color: var(--ink, #1a1a1a); }
.bs-tscard__media { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px; }
.bs-tscard__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bs-tscard__cat { flex: 0 0 auto; margin-top: 8px; font: 700 11px/1 var(--ff-head, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #1f7a3d); }
.bs-tscard__title { flex: 0 0 auto; margin: 5px 0 6px; font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--ink, #1a1a1a); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-tscard:hover .bs-tscard__title { color: var(--accent, #1f7a3d); }
.bs-tscard__price { flex: 0 0 auto; font: 700 15px/1.2 var(--ff-head, inherit); color: var(--ink, #111); }
.bs-tscard__price ins { text-decoration: none; color: var(--accent, #1f7a3d); }
.bs-tscard__price del { margin-left: 6px; color: #9a9a9a; font-weight: 400; font-size: 13px; }
/* Keep the legal tax/shipping suffix, but small + on its own line so it never
   collides with the price or the card layout (full legal display is on the PDP). */
.bs-tscard__price .woocommerce-price-suffix { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; line-height: 1.3; color: #9a9a9a; }
.bs-topsellers__dots { display: flex; justify-content: center; gap: 6px; padding-top: 8px; }
.bs-topsellers__dots .swiper-pagination-bullet { width: 7px; height: 7px; background: var(--ink, #222); opacity: .25; border-radius: 50%; }
.bs-topsellers__dots .swiper-pagination-bullet-active { opacity: .8; background: var(--accent, #1f7a3d); }

/* Swiper sets visibility:hidden until init; ensure slides are visible if JS fails */
.no-js .swiper-wrapper, .bs-heroslider:not(.swiper-initialized) .swiper-wrapper { display: flex; }

/* =========================================================================
 * Pass 2 — Product-row carousels (Best Selling, …). Reuses .bs-pcard so the
 * cards match the rest of the page. Arrows desktop-only; dots on mobile.
 * ========================================================================= */
.bs-prow { padding: clamp(28px, 4vw, 48px) 0; }
/* Stacked bestseller rows read as one group — halve the seam between them. */
.bs-prow--banner + .bs-prow--banner { padding-top: 0; }
.bs-prow__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2.4vw, 26px); }
.bs-prow__title { margin: 4px 0 0; font: 800 clamp(22px, 2.7vw, 32px)/1.1 var(--ff-head, inherit); color: var(--ink, #1a1a1a); }
.bs-prow__sub { margin: 6px 0 0; font-size: clamp(13px, 1.3vw, 15px); line-height: 1.45; color: #6b6b6b; max-width: 56ch; }
.bs-prow__all { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font: 700 13.5px/1 var(--ff-head, inherit); color: var(--accent, #1f7a3d); text-decoration: none; white-space: nowrap; }
.bs-prow__all .bs-ic { width: 16px; height: 16px; transition: transform .2s; }
.bs-prow__all:hover .bs-ic { transform: translateX(3px); }
@media (max-width: 560px) { .bs-prow__all { display: none; } }

.bs-prow__slider { position: relative; width: 100%; min-width: 0; box-sizing: border-box; }
.bs-prow__slider .swiper-slide { height: auto; }
.bs-prow__slider .swiper-slide > .bs-pcard { height: 100%; }

/* Nav arrows — desktop only (hover highlight), hidden on mobile (swipe + dots). */
.bs-prow__nav { position: absolute; top: 36%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; background: #fff; color: var(--ink, #111); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.10); transition: background .15s, color .15s, opacity .15s; }
.bs-prow__nav:hover { background: var(--accent, #1f7a3d); color: #fff; border-color: transparent; }
.bs-prow__nav .bs-ic { width: 18px; height: 18px; }
.bs-prow__prev { left: 6px; } .bs-prow__prev .bs-ic { transform: rotate(180deg); }
.bs-prow__next { right: 6px; }
.bs-prow__nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
@media (max-width: 999px) { .bs-prow__nav { display: none; } }

/* Dots — mobile position indicator (desktop uses the arrows). */
.bs-prow__dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.bs-prow__dots .swiper-pagination-bullet { width: 7px; height: 7px; background: var(--ink, #222); opacity: .22; border-radius: 50%; transition: opacity .2s, width .2s; }
.bs-prow__dots .swiper-pagination-bullet-active { opacity: 1; width: 20px; border-radius: 4px; background: var(--accent, #1f7a3d); }
@media (min-width: 1000px) { .bs-prow__dots { display: none; } }

/* ── Category carousel cards (visual tiles: image · name · count) ───────── */
.bs-catrow .bs-prow__slider .swiper-slide > .bs-catcard { height: 100%; }
/* Clean catalog-thumbnail tiles: the product is CONTAINED (shown whole) on a
   white card with consistent padding, and the label sits in a light band BELOW
   the image. Mixed source photos read as one set because the framing (white bg,
   same padding, same tile size, label band) is identical — no darkening needed. */
.bs-catcard { display: flex; flex-direction: column; border-radius: var(--r-sm, 12px); overflow: hidden; text-decoration: none; background: #fff; border: 1px solid rgba(0,0,0,.09); transition: box-shadow .2s var(--ease, ease), transform .2s var(--ease, ease); }
.bs-catcard:hover { box-shadow: 0 10px 26px rgba(0,0,0,.10); transform: translateY(-2px); }
.bs-catcard__media { aspect-ratio: 1 / 1; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: contain; background-origin: content-box; padding: clamp(14px, 2.2vw, 28px); box-sizing: border-box; }
.bs-catcard.is-noimg .bs-catcard__media { display: flex; align-items: center; justify-content: center; background-image: none; background: var(--bs-soft, #f4f3f0); }
.bs-catcard.is-noimg .bs-catcard__media .bs-ic { width: 38px; height: 38px; color: rgba(0,0,0,.28); }
.bs-catcard__overlay { display: none; }
.bs-catcard__body { flex: 0 0 auto; padding: 12px 14px 14px; text-align: center; border-top: 1px solid rgba(0,0,0,.07); }
.bs-catcard__name { display: block; font: 700 clamp(14px, 1.25vw, 16.5px)/1.2 var(--ff-head, inherit); color: var(--ink, #1a1a1a); }
.bs-catcard:hover .bs-catcard__name { color: var(--accent, #1f7a3d); }
.bs-catcard__count { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: #8a8a8a; }

/* ── Brand band — real logos in a uniform row (Swiper only if they overflow) ── */
.bs-brandband { background: var(--bs-soft, #f6f5f2); padding: clamp(30px, 4vw, 48px) 0; }
.bs-brandband__head { justify-content: center; text-align: center; }
.bs-brandband .bs-prow__head { margin-bottom: clamp(14px, 2vw, 22px); }
/* Continuous brand ticker (CSS marquee). The track holds two copies of the set;
   translateX(-50%) scrolls exactly one copy, then loops seamlessly. Edge fade +
   pause-on-hover. Reduced-motion → a static centered wrap instead of scrolling. */
.bs-brandmarquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.bs-brandmarquee__track { display: flex; align-items: center; gap: clamp(34px, 6vw, 72px); width: max-content; animation: bs-brandscroll var(--bs-marquee-dur, 40s) linear infinite; }
.bs-brandmarquee:hover .bs-brandmarquee__track { animation-play-state: paused; }
.bs-brandmarquee .bs-brandtile { flex: 0 0 auto; width: auto; height: clamp(52px, 6.5vw, 74px); text-decoration: none; }
@keyframes bs-brandscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bs-brandmarquee { -webkit-mask-image: none; mask-image: none; }
  .bs-brandmarquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: clamp(18px, 3vw, 30px) clamp(22px, 4vw, 48px); }
  .bs-brandmarquee .bs-brandtile[aria-hidden="true"] { display: none; }
}
/* Uniform tile: every logo sits in the SAME fixed-height box and is capped by
   max-height/width, so a mix of wide/tall/transparent/white-bg logos reads as
   one consistent row. Grayscale + dim by default → true colour on hover. */
.bs-brandtile { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(64px, 8vw, 92px); padding: 10px 16px; box-sizing: border-box; }
.bs-brandtile img { max-height: 46px; max-width: 150px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s var(--ease, ease), opacity .25s var(--ease, ease); }
.bs-brandtile:hover img { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bs-brandtile img, .bs-brandtile__text { transition: none; } }
/* Logo not uploaded yet → clean text wordmark (same dimmed→full treatment), so
   the band still shows the store's real brand and reads as one consistent row. */
/* Wordmark fallback — DARK and legible at rest (was a near-invisible light grey);
   hover lifts it to the brand accent. */
.bs-brandtile__text { font: 800 clamp(16px, 1.7vw, 22px)/1 var(--ff-head, inherit); letter-spacing: .005em; color: var(--ink, #1f1e1b); white-space: nowrap; transition: color .25s var(--ease, ease); }
.bs-brandtile--text:hover .bs-brandtile__text { color: var(--accent, #1f7a3d); }
.bs-brandband__legal { margin: clamp(16px, 2.2vw, 24px) 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: #9b9b9b; }

/* =========================================================================
 * Pass 2 — Promo banner beside a product row (auto from a category; the
 * merchant can override image/headline/cta/link per slot via bs_promo_*).
 * ========================================================================= */
.bs-prow__layout { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 22px); }
.bs-prow:not(.bs-prow--banner) .bs-prow__layout { display: block; }
/* wpautop belt-and-braces: the rows render via a wp:shortcode block, whose autop
   pass can inject a stray empty <p>. Hide it so it can never occupy a grid cell. */
.bs-prow--banner .bs-prow__layout > p:empty { display: none; }
@media (min-width: 1000px) {
  /* Narrower banner so the products dominate the row (banner is an accent, not
     equal weight to the whole carousel). */
  .bs-prow--banner .bs-prow__layout { grid-template-columns: clamp(208px, 18vw, 252px) minmax(0, 1fr); align-items: stretch; }
  /* Pin the two real cells by column so an injected node can never push the
     carousel into an implicit (collapsed) track — the bug that crushed cards. */
  .bs-prow--banner .bs-prow__layout > .bs-promo { grid-column: 1; grid-row: 1; }
  .bs-prow--banner .bs-prow__layout > .bs-prow__slider { grid-column: 2; grid-row: 1; min-width: 0; }
  .bs-prow--banner .bs-promo--tall { min-height: 100%; }   /* match the carousel height */
}

.bs-promo { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-sm, 12px); text-decoration: none; min-height: clamp(200px, 42vw, 250px); }
/* COVER mode — a real banner photo the merchant uploaded (designed to fill). */
.bs-promo--cover { justify-content: flex-end; background-color: #1a1a17; background-size: cover; background-position: center; background-repeat: no-repeat; }
.bs-promo--cover .bs-promo__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.10) 34%, rgba(0,0,0,.52) 64%, rgba(0,0,0,.90) 100%); }
/* NOIMG (auto fallback) — no uploaded banner: clean on-brand gradient + text. */
.bs-promo--noimg { justify-content: flex-end; background: linear-gradient(150deg, var(--accent, #1f7a3d), #14140f); }

.bs-promo__body { position: relative; z-index: 2; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: clamp(15px, 1.5vw, 21px); width: 100%; box-sizing: border-box; color: #fff; }
.bs-promo__title { color: #fff; font: 800 clamp(17px, 1.5vw, 22px)/1.14 var(--ff-head, inherit); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.bs-promo__cta { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 17px; border-radius: var(--r-sm, 8px); background: #fff; color: var(--ink, #111); font: 700 13px/1 var(--ff-head, inherit); transition: background .15s, color .15s; }
.bs-promo:hover .bs-promo__cta { background: var(--accent, #1f7a3d); color: #fff; }
.bs-promo__cta .bs-ic { width: 14px; height: 14px; }

/* =========================================================================
 * Community band — a "follow us" social CTA strip. On-brand accent gradient,
 * appears only when the store has real social profiles configured.
 * ========================================================================= */
.bs-community { background: linear-gradient(135deg, var(--accent, #1f7a3d), #15140f); color: #fff; padding: clamp(36px, 4.5vw, 58px) 0; text-align: center; }
.bs-community__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* Legible eyebrow on the dark band (the base .bs-eyebrow is muted/dark). */
.bs-community .bs-eyebrow { color: rgba(255,255,255,.82); }
.bs-community .bs-eyebrow__ln { background: rgba(255,255,255,.45); }
.bs-community__title { color: #fff; font: 800 clamp(24px, 3.4vw, 38px)/1.12 var(--ff-head, inherit); margin: 0; }
.bs-community__text { color: rgba(255,255,255,.86); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55; max-width: 560px; margin: 0; }
.bs-community__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 12px; }
.bs-community__soc { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); color: #fff; font: 700 14px/1 var(--ff-head, inherit); text-decoration: none; transition: background .18s, color .18s, transform .18s, border-color .18s; }
.bs-community__soc:hover { background: #fff; color: var(--ink, #15140f); border-color: #fff; transform: translateY(-2px); }
.bs-community__soc .bs-ic { width: 18px; height: 18px; }
@media (max-width: 560px) { .bs-community__soc span { display: none; } .bs-community__soc { width: 50px; padding: 0; justify-content: center; } }

/* =========================================================================
 * Shop-the-look — a large lifestyle image (cover upload or on-brand gradient
 * fallback) beside a compact 2×2 strip of the store's top products.
 * ========================================================================= */
.bs-stl { padding: clamp(30px, 4vw, 50px) 0; }
.bs-stl__grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.2vw, 28px); align-items: stretch; }
/* wpautop belt-and-braces (same as the bestseller rows): hide any stray empty
   <p> the wp:shortcode autop pass injects, and pin the two real cells so an
   injected node can never push the products into the wrong grid track. */
.bs-stl__grid > p:empty { display: none; }
@media (min-width: 1000px) {
  .bs-stl__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .bs-stl__grid > .bs-stl__media { grid-column: 1; grid-row: 1; }
  .bs-stl__grid > .bs-stl__products { grid-column: 2; grid-row: 1; }
}
/* Media panel — full-bleed cover photo (uploaded) or on-brand gradient (auto). */
.bs-stl__media { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--r-md, 16px); text-decoration: none; min-height: clamp(280px, 42vw, 460px); background-color: #15140f; }
.bs-stl__media--cover { background-size: cover; background-position: center; background-repeat: no-repeat; }
.bs-stl__media--noimg { background: linear-gradient(150deg, var(--accent, #1f7a3d), #14140f); }
.bs-stl__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.58) 72%, rgba(0,0,0,.88) 100%); }
.bs-stl__media-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 2.4vw, 34px); color: #fff; }
.bs-stl__media .bs-eyebrow { color: rgba(255,255,255,.85); }
.bs-stl__media .bs-eyebrow__ln { background: rgba(255,255,255,.5); }
.bs-stl__title { color: #fff; font: 800 clamp(22px, 2.6vw, 34px)/1.12 var(--ff-head, inherit); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.bs-stl__text { color: rgba(255,255,255,.88); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.5; max-width: 360px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.bs-stl__cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 4px; padding: 0 20px; border-radius: var(--r-sm, 10px); background: #fff; color: var(--ink, #15140f); font: 700 14px/1 var(--ff-head, inherit); transition: background .15s, color .15s; }
.bs-stl__media:hover .bs-stl__cta { background: var(--accent, #1f7a3d); color: #fff; }
.bs-stl__cta .bs-ic { width: 15px; height: 15px; }
/* Product strip — 2×2 on every breakpoint; cards keep their normal full size. */
.bs-stl__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.bs-stl__products > .bs-pcard { height: 100%; }

/* =========================================================================
 * POLISH PASS (v1.31) — heading consistency, spacing rhythm, card hover.
 * Loaded last on the front page, so these win at equal specificity.
 * ========================================================================= */

/* (2) Section headings — ONE serif treatment for EVERY row/section head
 *     (bestseller, "Nach Kategorie", "Empfohlene", FAQ, …). Was split between
 *     sans-800 (.bs-prow__title) and serif-600 (.bs-shead h2). */
.bs-prow__title,
.bs-shead h2 {
  font-family: var(--ff-serif, inherit) !important;
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink, #1a1a1a);
}
.bs-prow__sub,
.bs-shead p { font-size: clamp(13px, 1.3vw, 15px); line-height: 1.5; color: #6b6b6b; }
.bs-shead { margin-bottom: clamp(20px, 2.4vw, 30px); }

/* (1) Spacing rhythm — consistent vertical bands top to bottom (~44px content
 *     rows, a touch more for the colored CTA bands). */
.bs-prow      { padding: clamp(26px, 3.6vw, 44px) 0; }
.bs-stl       { padding: clamp(28px, 3.6vw, 44px) 0; }
.bs-brandband { padding: clamp(28px, 3.6vw, 44px) 0; }
.bs-community { padding: clamp(34px, 4.2vw, 52px) 0; }
.bs-prow__head { margin-bottom: clamp(14px, 2vw, 22px); }

/* (3) Product cards — consistent subtle lift + shadow on hover (matches the
 *     category cards, which already lift). Image stays padded at 8% as before. */
.bs-pcard { transition: transform .28s var(--ease, ease); }
.bs-pcard:hover { transform: translateY(-4px); }
.bs-pcard__media { transition: box-shadow .28s var(--ease, ease), border-color .28s var(--ease, ease); }
.bs-pcard:hover .bs-pcard__media { box-shadow: 0 14px 30px rgba(0,0,0,.12); border-color: rgba(20,20,20,.10); }
@media (prefers-reduced-motion: reduce) {
  .bs-pcard, .bs-pcard:hover { transform: none; }
}

/* =========================================================================
 * POLISH PASS — JS effects (v1.32): hover-zoom on product + category images.
 * Tasteful (subtle scale), clipped by each card; reduced-motion disables it.
 * ========================================================================= */
/* (4) Product image — smooth subtle zoom (aligns with the category tiles). */
.bs-pcard__media img { transition: transform .5s var(--ease, ease); }
.bs-pcard:hover .bs-pcard__media img { transform: scale(1.06); }
/* (4) Category tile — bg-image zoom on hover (the card already clips overflow). */
.bs-catcard__media { transition: transform .5s var(--ease, ease); }
.bs-catcard:not(.is-noimg):hover .bs-catcard__media { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .bs-pcard__media img, .bs-pcard:hover .bs-pcard__media img,
  .bs-catcard__media, .bs-catcard:hover .bs-catcard__media { transform: none; transition: none; }
}

/* ── Product hero (bs_hero_style=product, set by the builder when the hero image is a packshot):
   the product contained on a white stage, the copy beside it in ink. No scrim, no Ken-Burns —
   a cut-out under a dark gradient with text across it is unreadable and looks broken. ── */
.bs-heroslider--product { height: auto; min-height: 0; background: #fff; border: 1px solid var(--line, #e7e7e4); }
.bs-heroslider--product .swiper-wrapper { height: auto; }
.bs-heroslider--product .bs-heroslide { background: #fff; height: auto; min-height: clamp(360px, 38vw, 460px); align-items: stretch; justify-content: flex-start; }
.bs-heroslider--product .bs-heroslide__bg { inset: 7% 4% 7% 52%; background-size: contain; background-position: center; background-repeat: no-repeat; transform: none !important; transition: none; }
.bs-heroslider--product .bs-heroslide__scrim { display: none; }
.bs-heroslider--product .bs-heroslide__inner { align-items: flex-start; justify-content: center; text-align: left; margin: 0; max-width: 50%; padding: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 48px); color: var(--ink, #121212); }
.bs-heroslider--product .bs-eyebrow--hero { color: var(--muted, #6b7280); text-shadow: none; opacity: 1; }
.bs-heroslider--product .bs-heroslide__title { color: var(--ink, #121212); text-shadow: none; }
.bs-heroslider--product .bs-heroslide__sub { color: var(--body, #444); text-shadow: none; }
.bs-heroslider--product .bs-heroslide__actions { justify-content: flex-start; }
.bs-heroslider--product .bs-btn--ghost { color: var(--ink, #121212); border-color: var(--ink, #121212); }
.bs-heroslider--product .bs-btn--ghost:hover { background: var(--ink, #121212); color: #fff; }
.bs-heroslider--product .bs-hero__dots .swiper-pagination-bullet { background: var(--ink, #121212); }
.bs-heroslider--product .bs-hero__trustitem, .bs-heroslider--product .bs-hero__trustitem .bs-ic { color: var(--ink, #121212); }
@media (max-width: 767px) {
  .bs-heroslider--product .bs-heroslide { flex-direction: column; min-height: 0; }
  .bs-heroslider--product .bs-heroslide__bg { position: relative; inset: auto; height: 0; padding-top: 62%; margin: 16px 16px 0; order: -1; }
  .bs-heroslider--product .bs-heroslide__inner { max-width: 100%; padding: 18px 20px 26px; }
}

/* ── Shop the look without a lifestyle upload: the top seller's own photo on a white stage,
   copy in ink on a white fade (never an empty dark box, never stock imagery). ── */
.bs-stl__media--product { background-color: #fff; border: 1px solid var(--line, #e7e7e4); background-size: contain; background-repeat: no-repeat; background-position: center 16%; justify-content: flex-end; }
.bs-stl__media--product .bs-stl__media-body { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.96) 32%, #fff 100%); padding-top: 72px; }
.bs-stl__media--product .bs-eyebrow, .bs-stl__media--product .bs-stl__title, .bs-stl__media--product .bs-stl__text { color: var(--ink, #121212); text-shadow: none; }
.bs-stl__media--product .bs-eyebrow { color: var(--muted, #6b7280); }
.bs-stl__media--product .bs-eyebrow__ln { background: var(--line, #e7e7e4); }
.bs-stl__media--product .bs-stl__text { color: var(--body, #444); }
.bs-stl__media--product .bs-stl__cta { background: var(--ink, #121212); color: #fff; }
.bs-stl__media--product:hover .bs-stl__cta { background: #000; color: #fff; }
/* Phones: the card is short, so the copy block covered the whole packshot (a ghosted photo behind
   the text). Give the product its own band above the copy instead. */
@media (max-width: 767px) {
  .bs-stl__media--product { min-height: 0; padding-top: 236px; background-size: auto 204px; background-position: center 20px; }
  .bs-stl__media--product .bs-stl__media-body { padding-top: 16px; background: #fff; }
}
