/* BDS Commerce Core 0.4 — dynamic storefront/home/directory layer. */
/* BDS 0.12.8.1 — Storefront Primary Spacing Contract
   Investigation proved Astra owns the visible gap:
   - base #primary margin: 4em 0 across normal layouts;
   - dynamic .ast-plain-container.ast-no-sidebar #primary margin: 60px 0 at >=1200px.
   The BDS homepage is a full-width application shell, so #primary belongs to
   the same zero-spacing contract as its container/main/entry-content at every viewport. */
.bds-storefront-home-page .site-content > .ast-container,
.bds-storefront-home-page .site-content > .ast-container-fluid,
.bds-storefront-home-page #primary,
.bds-storefront-home-page .site-main,
.bds-storefront-home-page .entry-content { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.bds-storefront-home-page .entry-header { display: none !important; }
.bds-storefront-directory-page .entry-header { display: none !important; }
.bds-storefront-directory-page .site-content > .ast-container { width: 100% !important; max-width: none !important; padding-inline: 0 !important; }
.bds-storefront-home-page article.page { padding: 0 !important; margin: 0 !important; }
.bds-home { overflow: clip; background: linear-gradient(180deg, color-mix(in srgb, var(--bds-surface-soft) 72%, #fff) 0, #fff 520px); }
.bds-home-section { padding: 34px 0; }
.bds-home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.bds-home-heading h2 { margin: 0; color: var(--bds-ink); font-size: clamp(23px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
.bds-home-heading p { margin: 6px 0 0; color: var(--bds-muted); font-size: 14px; }
.bds-home-heading > a { flex: 0 0 auto; color: var(--bds-primary-dark); font-weight: 700; }

/* Hero */
.bds-home-hero { padding: 18px 0 18px; }
.bds-home-hero__viewport { position: relative; overflow: hidden; }
.bds-home-hero__track { position: relative; min-height: clamp(370px, 36vw, 540px); border: 1px solid var(--bds-border); border-radius: calc(var(--bds-radius) + 8px); background: radial-gradient(circle at 77% 36%, color-mix(in srgb, var(--bds-accent) 35%, transparent), transparent 34%), linear-gradient(110deg, #fffaf5 0%, color-mix(in srgb, var(--bds-surface-soft) 82%, #fff) 52%, #f8e8e9 100%); box-shadow: 0 15px 44px rgba(59,35,18,.08); }
.bds-hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); align-items: center; gap: 50px; padding: clamp(34px, 5vw, 72px); opacity: 0; visibility: hidden; transform: translateX(20px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.bds-hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.bds-hero-slide__copy { max-width: 650px; }
.bds-hero-slide__eyebrow { display: inline-flex; margin-bottom: 13px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--bds-primary) 42%, var(--bds-border)); border-radius: 999px; color: var(--bds-primary-dark); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bds-hero-slide h1 { max-width: 760px; margin: 0; color: #111; font-size: clamp(35px, 4.2vw, 66px); line-height: .98; letter-spacing: -.05em; }
.bds-hero-slide__price { margin: 22px 0 26px; color: var(--bds-primary-dark); font-size: clamp(23px, 2.2vw, 34px); font-weight: 850; }
.bds-hero-slide__price del { margin-left: 7px; color: var(--bds-muted); font-size: .6em; font-weight: 500; opacity: .7; }
.bds-hero-slide__price ins { text-decoration: none; }
.bds-hero-slide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bds-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; font-weight: 750; text-decoration: none !important; }
.bds-button--primary { background: var(--bds-primary); color: #fff !important; border: 1px solid var(--bds-primary); }
.bds-button--primary:hover { background: var(--bds-primary-dark); }
.bds-button--ghost { background: rgba(255,255,255,.78); color: var(--bds-ink) !important; border: 1px solid var(--bds-border); }
.bds-hero-slide__visual { position: relative; height: min(390px, 30vw); min-height: 270px; display: grid; place-items: center; }
.bds-hero-slide__visual::before { content: ''; position: absolute; width: min(360px, 85%); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.bds-hero-slide__visual img { position: relative; z-index: 1; width: 90%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(30,18,10,.16)); }
.bds-hero-slide__discount { position: absolute; z-index: 3; top: 8px; right: 7%; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--bds-primary); color: #fff; font-weight: 900; box-shadow: 0 8px 20px rgba(80,49,22,.2); transform: rotate(5deg); }
.bds-home-hero__dots { position: absolute; z-index: 5; left: 50%; bottom: 18px; display: flex; gap: 7px; transform: translateX(-50%); }
.bds-home-hero__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c5c6c8; cursor: pointer; transition: width .2s ease, background .2s ease; }
.bds-home-hero__dots button.is-active { width: 26px; border-radius: 999px; background: var(--bds-primary); }

/* Category cards */
.bds-category-cards { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 18px; }
.bds-category-card { min-width: 0; color: var(--bds-ink) !important; text-align: center; text-decoration: none !important; }
.bds-category-card__media { width: min(86px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 10px; overflow: hidden; border: 1px solid var(--bds-border); border-radius: 50%; background: linear-gradient(145deg, #fff, var(--bds-surface-soft)); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bds-category-card:hover .bds-category-card__media { transform: translateY(-3px); border-color: var(--bds-primary); box-shadow: 0 8px 20px rgba(60,38,18,.11); }
.bds-category-card__media img { width: 75%; height: 75%; object-fit: contain; }
.bds-category-card__fallback { display: grid; place-items: center; width: 68%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--bds-primary) 13%, #fff); color: var(--bds-primary-dark); font-size: 28px; font-weight: 850; }
.bds-category-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bds-category-card small { display: block; margin-top: 4px; color: var(--bds-muted); font-size: 11px; }
.bds-category-cards--directory { grid-template-columns: repeat(8, minmax(0,1fr)); row-gap: 26px; }

/* Dynamic promo */
.bds-home-promo { padding: 14px 0 22px; }
.bds-home-promo__card { min-height: 160px; display: grid; grid-template-columns: 1fr 220px; align-items: center; overflow: hidden; padding: 24px 32px; border-radius: calc(var(--bds-radius) + 5px); background: linear-gradient(100deg, var(--bds-primary-dark), var(--bds-primary)); color: #fff !important; text-decoration: none !important; box-shadow: 0 13px 30px rgba(84,51,23,.16); }
.bds-home-promo__card > div:first-child { min-width: 0; }
.bds-home-promo__card span { display: block; color: var(--bds-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.bds-home-promo__card strong { display: block; max-width: 750px; margin: 7px 0 8px; font-size: clamp(21px, 2.4vw, 34px); line-height: 1.1; }
.bds-home-promo__card em { display: block; color: #fff; font-size: 20px; font-style: normal; font-weight: 800; }
.bds-home-promo__card del { opacity: .65; font-size: .72em; }
.bds-home-promo__card ins { text-decoration: none; }
.bds-home-promo__image { height: 135px; display: grid; place-items: center; }
.bds-home-promo__image img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }

/* Product rails */
.bds-product-rail { overflow: hidden; }
.bds-product-rail .bds-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.bds-product-rail .bds-product-card__title { min-height: 42px; }

/* Brand cards */
.bds-brand-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.bds-brand-card { min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--bds-border); border-radius: calc(var(--bds-radius) - 3px); background: #fff; color: var(--bds-ink) !important; text-decoration: none !important; transition: border-color .18s ease, transform .18s ease; }
.bds-brand-card:hover { transform: translateY(-2px); border-color: var(--bds-primary); }
.bds-brand-card__mark { flex: 0 0 55px; width: 55px; height: 55px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--bds-surface-soft); color: var(--bds-primary-dark); font-weight: 900; }
.bds-brand-card__mark img { width: 88%; height: 88%; object-fit: contain; }
.bds-brand-card strong, .bds-brand-card small { display: block; }
.bds-brand-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.bds-brand-card small { margin-top: 4px; color: var(--bds-muted); font-size: 11px; }

/* Reviews */
.bds-home-reviews { background: var(--bds-surface-soft); border-block: 1px solid var(--bds-border); }
.bds-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.bds-review-card { padding: 20px; border: 1px solid var(--bds-border); border-radius: var(--bds-radius); background: #fff; box-shadow: 0 5px 16px rgba(40,25,12,.04); }
.bds-review-card__stars { color: #e39b21; letter-spacing: 2px; }
.bds-review-card p { min-height: 70px; margin: 12px 0 16px; color: var(--bds-ink); line-height: 1.65; }
.bds-review-card footer { display: grid; gap: 3px; }
.bds-review-card footer strong { font-size: 13px; }
.bds-review-card footer a { overflow: hidden; color: var(--bds-primary-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Articles */
.bds-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.bds-article-card { overflow: hidden; border: 1px solid var(--bds-border); border-radius: var(--bds-radius); background: #fff; }
.bds-article-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bds-surface-soft); }
.bds-article-card__media img, .bds-article-card__media span { width: 100%; height: 100%; display: block; object-fit: cover; }
.bds-article-card__body { padding: 16px; }
.bds-article-card time { color: var(--bds-muted); font-size: 11px; }
.bds-article-card h3 { margin: 6px 0 7px; font-size: 17px; line-height: 1.35; }
.bds-article-card h3 a { color: var(--bds-ink); }
.bds-article-card p { margin: 0; color: var(--bds-muted); font-size: 13px; line-height: 1.6; }

/* Brand/category directory pages */
.bds-directory { padding: 38px 0 60px; }
.bds-directory .bds-home-heading { margin-bottom: 26px; }

/* Header mega panel upgraded in MB4 */
.bds-mega-menu { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(260px, .85fr); gap: 28px; }
.bds-category-panel .bds-category-cards { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.bds-category-panel .bds-category-card__media { width: 64px; margin-bottom: 7px; }
.bds-category-panel .bds-category-card strong { font-size: 12px; }
.bds-mega-menu__brands { padding-left: 26px; border-left: 1px solid var(--bds-border); }
.bds-mega-menu__brands .bds-brand-cards { grid-template-columns: 1fr; gap: 8px; }
.bds-mega-menu__brands .bds-brand-card { min-height: 60px; padding: 7px; }
.bds-mega-menu__brands .bds-brand-card__mark { flex-basis: 42px; width: 42px; height: 42px; }

@media (max-width: 1120px) {
  .bds-category-cards { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .bds-category-cards--directory { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .bds-product-rail .bds-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
  .bds-product-rail .bds-product-card:nth-child(n+9) { display: none; }
  .bds-mega-menu { grid-template-columns: 1fr; }
  .bds-mega-menu__brands { display: none; }
}

@media (max-width: 921px) {
  .bds-home { background: #fff; }
  .bds-home-hero { padding: 10px 0 6px; }
  .bds-home-hero__viewport { width: min(calc(100% - 16px), var(--bds-container)); }
  .bds-home-hero__track { min-height: 390px; border-radius: 18px; }
  .bds-hero-slide { grid-template-columns: 1fr; align-content: center; gap: 8px; padding: 24px 22px 36px; }
  .bds-hero-slide__copy { align-self: end; position: relative; z-index: 2; }
  .bds-hero-slide__eyebrow { margin-bottom: 8px; padding: 5px 9px; font-size: 9px; }
  .bds-hero-slide h1 { max-width: 80%; font-size: clamp(26px, 8.2vw, 38px); line-height: 1.03; }
  .bds-hero-slide__price { margin: 10px 0 13px; font-size: 21px; }
  .bds-button { min-height: 38px; padding: 0 15px; font-size: 12px; }
  .bds-hero-slide__visual { position: absolute; z-index: 1; right: -4%; bottom: 8%; width: 46%; height: 55%; min-height: 0; opacity: .95; }
  .bds-hero-slide__visual::before { width: 105%; }
  .bds-hero-slide__visual img { width: 100%; }
  .bds-hero-slide__discount { top: 0; right: 0; width: 52px; height: 52px; font-size: 10px; }
  .bds-home-hero__dots { bottom: 12px; }
  .bds-home-section { padding: 24px 0; }
  .bds-home-heading { align-items: center; margin-bottom: 14px; }
  .bds-home-heading h2 { font-size: 22px; }
  .bds-home-heading p { font-size: 11px; }
  .bds-home-heading > a { font-size: 12px; }
  .bds-category-cards, .bds-category-cards--directory { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px 10px; }
  .bds-category-card__media { width: 66px; margin-bottom: 7px; }
  .bds-category-card strong { font-size: 11px; }
  .bds-home-promo__card { min-height: 120px; grid-template-columns: 1fr 110px; padding: 18px; }
  .bds-home-promo__card strong { font-size: 18px; }
  .bds-home-promo__card em { font-size: 16px; }
  .bds-home-promo__image { height: 90px; }
  .bds-product-rail { margin-inline: -8px; padding-inline: 8px; overflow-x: auto; scrollbar-width: none; }
  .bds-product-rail::-webkit-scrollbar { display: none; }
  .bds-product-rail .bds-product-grid { width: max-content; display: flex !important; gap: 10px; }
  .bds-product-rail .bds-product-card { width: min(45vw, 205px) !important; flex: 0 0 min(45vw, 205px); }
  .bds-product-rail .bds-product-card:nth-child(n) { display: block; }
  .bds-review-grid, .bds-article-grid { grid-template-columns: 1fr; }
  .bds-review-card:nth-child(n+4) { display: none; }
  .bds-brand-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bds-category-panel .bds-category-cards { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .bds-home-heading { gap: 10px; }
  .bds-home-heading p { max-width: 220px; }
  .bds-category-cards, .bds-category-cards--directory { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .bds-category-card__media { width: 58px; }
  .bds-category-card strong { font-size: 10px; }
  .bds-home-promo__card { grid-template-columns: 1fr 86px; padding: 15px; }
  .bds-home-promo__card span { font-size: 9px; }
  .bds-home-promo__card strong { font-size: 16px; }
  .bds-brand-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bds-brand-card { min-height: 68px; gap: 8px; padding: 8px; }
  .bds-brand-card__mark { flex-basis: 43px; width: 43px; height: 43px; }
  .bds-brand-card strong { font-size: 12px; }
  .bds-brand-card small { font-size: 9px; }
}

/* =========================================================
   Mega Batch 6 — storefront visual convergence
   ========================================================= */
.bds-home { background: linear-gradient(180deg, color-mix(in srgb, var(--bds-surface-soft) 62%, var(--bds-surface)) 0, var(--bds-surface) 470px); }
.bds-home-section { padding: 30px 0; }
.bds-home-heading { margin-bottom: 15px; }
.bds-home-heading h2 { font-size: clamp(22px, 2vw, 31px); }
.bds-home-heading p { margin-top: 4px; font-size: 12px; }
.bds-home-heading > a { font-size: 13px; }

/* Wide commerce-banner rhythm inspired by the reference, still product-driven. */
.bds-home-hero { padding: 0; }
.bds-home-hero__viewport { width: 100%; max-width: none; }
.bds-home-hero__track {
  min-height: clamp(410px, 35vw, 535px);
  border-width: 0 0 1px;
  border-radius: 0;
  background:
    radial-gradient(circle at 74% 46%, color-mix(in srgb, var(--bds-accent) 32%, transparent), transparent 27%),
    linear-gradient(105deg, color-mix(in srgb, var(--bds-surface-soft) 84%, var(--bds-surface)) 0%, var(--bds-surface) 47%, color-mix(in srgb, var(--bds-primary) 11%, var(--bds-surface)) 100%);
  box-shadow: none;
}
.bds-hero-slide { width: min(calc(100% - 32px), var(--bds-container)); margin-inline: auto; left: 50%; right: auto; transform: translateX(calc(-50% + 20px)); grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); gap: clamp(28px, 5vw, 72px); padding: 44px 0 58px; }
.bds-hero-slide.is-active { transform: translateX(-50%); }
.bds-hero-slide__copy { max-width: 600px; }
.bds-hero-slide__eyebrow { margin-bottom: 12px; padding: 6px 11px; font-size: 11px; }
.bds-hero-slide h1 { max-width: 620px; font-size: clamp(36px, 4vw, 60px); line-height: 1; }
.bds-hero-slide__price { margin: 18px 0 22px; font-size: clamp(22px, 2vw, 31px); }
.bds-button { min-height: 43px; padding-inline: 20px; font-size: 13px; }
.bds-hero-slide__visual { height: min(385px, 30vw); }
.bds-hero-slide__visual::before { width: min(410px, 91%); background: color-mix(in srgb, var(--bds-surface) 72%, transparent); }
.bds-hero-slide__visual img { width: 94%; }
.bds-home-hero__dots { bottom: 15px; }
.bds-home-hero__dots button { width: 8px; height: 8px; }
.bds-home-hero__dots button.is-active { width: 8px; }

/* Reference-like dense category strip. */
.bds-home-section--categories { padding-top: 24px; padding-bottom: 24px; }
.bds-category-cards { gap: 14px 12px; }
.bds-category-card__media { width: min(78px, 100%); margin-bottom: 8px; border-color: color-mix(in srgb, var(--bds-primary) 12%, var(--bds-border)); }
.bds-category-card strong { font-size: 12px; font-weight: 650; }
.bds-category-card small { font-size: 10px; }

.bds-home-promo { padding: 4px 0 18px; }
.bds-home-promo__card { min-height: 138px; padding: 20px 28px; border-radius: var(--bds-radius); box-shadow: 0 9px 24px color-mix(in srgb, var(--bds-primary-dark) 16%, transparent); }
.bds-home-promo__card strong { font-size: clamp(20px, 2vw, 30px); }
.bds-home-promo__image { height: 118px; }

.bds-product-rail-section { padding-block: 28px; }
.bds-product-rail .bds-product-grid { gap: 12px; }

/* Mega category panel is intentionally denser than the directory page. */
.bds-category-panel .bds-category-cards { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 11px 9px; }
.bds-category-panel .bds-category-card__media { width: 58px; }
.bds-category-panel .bds-category-card strong { font-size: 11px; }
.bds-mega-menu { grid-template-columns: minmax(0, 3fr) minmax(230px, .72fr); gap: 22px; }

.bds-directory { padding-top: 28px; }
.bds-category-cards--directory { gap: 22px 14px; }

@media (max-width: 1180px) {
  .bds-category-panel .bds-category-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 921px) {
  .bds-home-hero { padding: 0; }
  .bds-home-hero__viewport { width: 100%; }
  .bds-home-hero__track { min-height: 315px; border-radius: 0; }
  .bds-hero-slide { width: calc(100% - 24px); grid-template-columns: 1fr; align-content: center; padding: 24px 2px 36px; }
  .bds-hero-slide__copy { align-self: center; max-width: 66%; }
  .bds-hero-slide__eyebrow { margin-bottom: 7px; }
  .bds-hero-slide h1 { max-width: 100%; font-size: clamp(24px, 7.5vw, 35px); line-height: 1.02; -webkit-line-clamp: 3; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
  .bds-hero-slide__price { margin: 10px 0 12px; font-size: 19px; }
  .bds-hero-slide__actions { gap: 6px; }
  .bds-button { min-height: 36px; padding: 0 13px; font-size: 10px; }
  .bds-hero-slide__visual { right: -5%; bottom: 7%; width: 44%; height: 64%; }
  .bds-hero-slide__visual::before { width: 100%; }
  .bds-hero-slide__discount { width: 48px; height: 48px; right: 1%; font-size: 9px; }
  .bds-home-hero__dots { bottom: 10px; }

  .bds-home-section { padding: 22px 0; }
  .bds-home-heading { margin-bottom: 12px; }
  .bds-home-heading h2 { font-size: 20px; }
  .bds-home-heading p { display: none; }

  .bds-category-cards,
  .bds-category-cards--directory { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 6px; }
  .bds-category-card__media { width: 60px; }
  .bds-category-card strong { font-size: 10px; }

  .bds-category-panel .bds-category-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .bds-category-panel .bds-category-card__media { width: 58px; }
  .bds-category-panel .bds-category-card strong { font-size: 10px; }

  .bds-home-promo { padding-bottom: 12px; }
  .bds-home-promo__card { min-height: 108px; grid-template-columns: 1fr 94px; padding: 14px; }
  .bds-home-promo__card strong { font-size: 15px; }
  .bds-home-promo__card em { font-size: 14px; }
  .bds-home-promo__image { height: 82px; }

  .bds-product-rail { margin-inline: -8px; padding: 0 8px 4px; scroll-snap-type: x proximity; }
  .bds-product-rail .bds-product-grid { gap: 8px; }
  .bds-product-rail .bds-product-card { width: min(46vw, 194px) !important; flex-basis: min(46vw, 194px); scroll-snap-align: start; }
}

@media (max-width: 390px) {
  .bds-home-hero__track { min-height: 292px; }
  .bds-hero-slide { width: calc(100% - 18px); padding-top: 18px; }
  .bds-hero-slide__copy { max-width: 67%; }
  .bds-hero-slide h1 { font-size: clamp(22px, 7vw, 30px); }
  .bds-hero-slide__price { font-size: 17px; }
  .bds-hero-slide__visual { width: 43%; height: 61%; }
  .bds-category-cards,
  .bds-category-cards--directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bds-category-card__media { width: 54px; }
  .bds-category-panel .bds-category-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .bds-product-rail .bds-product-card { width: 46.5vw !important; flex-basis: 46.5vw; }
}

/* Mega Batch 8: managed creative banners (native WP, no Pro dependency) */
.bds-home-hero--managed .bds-home-hero__track{background:var(--bds-surface);}
.bds-home-hero--managed .bds-hero-slide--managed{width:100%;max-width:none;left:0;right:0;margin:0;transform:translateX(20px);display:block;padding:0;overflow:hidden;}
.bds-home-hero--managed .bds-hero-slide--managed.is-active{transform:none;}
.bds-hero-slide__managed-media{position:absolute;inset:0;display:block;z-index:0;}
.bds-hero-slide__managed-media img{width:100%;height:100%;object-fit:cover;display:block;}
.bds-hero-slide__managed-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(255,255,255,.9) 0%,rgba(255,255,255,.68) 38%,rgba(255,255,255,.08) 72%,transparent 100%);}
.bds-hero-slide--light .bds-hero-slide__managed-overlay{background:linear-gradient(90deg,rgba(20,14,10,.78) 0%,rgba(20,14,10,.5) 40%,rgba(20,14,10,.04) 74%,transparent 100%);}
.bds-hero-slide__copy--managed{position:relative;z-index:2;display:flex;min-height:100%;width:min(calc(100% - 32px),var(--bds-container));margin-inline:auto;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(34px,5vw,72px) 0;}
.bds-hero-slide__copy--managed h1{max-width:650px;}
.bds-hero-slide__subtitle{max-width:600px;margin:14px 0 22px;color:var(--bds-muted);font-size:clamp(15px,1.4vw,19px);line-height:1.55;}
.bds-hero-slide--light .bds-hero-slide__copy--managed h1,.bds-hero-slide--light .bds-hero-slide__subtitle{color:#fff;}
.bds-hero-slide--light .bds-hero-slide__eyebrow{border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.14);color:#fff;}

.bds-home-promo__card--managed{position:relative;display:block;min-height:170px;padding:0;background:var(--bds-primary-dark);}
.bds-home-promo__managed-media{position:absolute;inset:0;display:block;}
.bds-home-promo__managed-media img{width:100%;height:100%;object-fit:cover;display:block;}
.bds-home-promo__managed-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(39,24,13,.82),rgba(39,24,13,.42) 58%,rgba(39,24,13,.05));}
.bds-home-promo__card--light .bds-home-promo__managed-overlay{background:linear-gradient(90deg,rgba(20,14,10,.78),rgba(20,14,10,.32) 65%,transparent);}
.bds-home-promo__card--dark .bds-home-promo__managed-overlay{background:linear-gradient(90deg,rgba(255,255,255,.9),rgba(255,255,255,.58) 58%,rgba(255,255,255,.05));}
.bds-home-promo__managed-copy{position:relative;z-index:2;display:flex;min-height:170px;max-width:760px;flex-direction:column;justify-content:center;padding:24px 32px;}
.bds-home-promo__card--dark .bds-home-promo__managed-copy{color:var(--bds-ink);}
.bds-home-promo__card--light .bds-home-promo__managed-copy{color:#fff;}
.bds-home-promo__managed-copy span{color:var(--bds-accent);}
.bds-home-promo__card--dark .bds-home-promo__managed-copy span{color:var(--bds-primary-dark);}
.bds-home-promo__managed-copy strong{max-width:720px;margin:6px 0;font-size:clamp(21px,2.4vw,34px);line-height:1.1;}
.bds-home-promo__managed-copy em{max-width:650px;font-size:15px;font-style:normal;font-weight:500;opacity:.88;}
.bds-home-promo__managed-copy b{margin-top:10px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;}

@media (max-width:767px){
  .bds-home-hero--managed .bds-home-hero__track{min-height:315px;}
  .bds-home-hero--managed .bds-hero-slide--managed{width:100%;}
  .bds-hero-slide__managed-overlay{background:linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.64) 58%,rgba(255,255,255,.08) 100%);}
  .bds-hero-slide--light .bds-hero-slide__managed-overlay{background:linear-gradient(90deg,rgba(20,14,10,.78),rgba(20,14,10,.42) 60%,rgba(20,14,10,.08));}
  .bds-hero-slide__copy--managed{width:calc(100% - 28px);padding:28px 0 42px;}
  .bds-hero-slide__copy--managed h1{max-width:72%;font-size:clamp(24px,7.5vw,35px);}
  .bds-hero-slide__subtitle{max-width:68%;margin:9px 0 14px;font-size:13px;line-height:1.4;}
  .bds-home-promo__card--managed,.bds-home-promo__managed-copy{min-height:118px;}
  .bds-home-promo__managed-copy{max-width:72%;padding:16px 18px;}
  .bds-home-promo__managed-copy strong{font-size:17px;}
  .bds-home-promo__managed-copy em{font-size:12px;line-height:1.35;}
}

/* Mega Batch 11: City Attire image-first campaigns + clean empty-catalog baseline */
.bds-home-hero--managed .bds-hero-slide--image-only{position:absolute;inset:0;min-height:0;padding:0;background:#fff;}
.bds-home-hero--managed .bds-hero-slide--image-only .bds-hero-slide__image-link{position:absolute;inset:0;z-index:1;display:block;overflow:hidden;}
.bds-home-hero--managed .bds-hero-slide--image-only .bds-hero-slide__managed-media{position:absolute;inset:0;display:block;}
.bds-home-hero--managed .bds-hero-slide--image-only .bds-hero-slide__managed-media img{width:100%;height:100%;object-fit:cover;object-position:center;}
.bds-home-hero--image-only .bds-home-hero__track{min-height:0;aspect-ratio:1672/941;background:#fff;}
.bds-home-hero--image-only .bds-home-hero__viewport{background:#fff;}
.bds-home-hero--image-only .bds-home-hero__dots{bottom:14px;}
.bds-home-hero--image-only .bds-home-hero__dots button{box-shadow:0 0 0 2px rgba(255,255,255,.65);}

.bds-content-page{width:min(100% - 32px,1000px);margin:34px auto 54px;color:var(--bds-ink);}
.bds-content-page__intro{margin:0 0 24px;padding:24px 26px;border:1px solid var(--bds-border);border-radius:var(--bds-radius);background:var(--bds-surface-soft);font-size:16px;line-height:1.75;}
.bds-content-page h2{margin:30px 0 12px;color:var(--bds-primary-dark);font-size:clamp(22px,2.3vw,30px);}
.bds-content-page p,.bds-content-page li{font-size:15px;line-height:1.75;color:var(--bds-ink);}
.bds-policy-section{margin:16px 0;padding:22px 24px;border:1px solid var(--bds-border);border-radius:var(--bds-radius);background:var(--bds-surface);box-shadow:0 8px 26px rgba(8,31,57,.05);}
.bds-policy-section h2{margin:0 0 10px;font-size:20px;}
.bds-policy-notice{margin:22px 0;padding:18px 20px;border-left:4px solid var(--bds-accent);border-radius:10px;background:color-mix(in srgb,var(--bds-accent) 11%,#fff);font-weight:700;color:var(--bds-primary-dark);}

.bds-business-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0;}
.bds-business-contact__card{display:flex;align-items:center;gap:14px;min-height:92px;padding:18px 20px;border:1px solid var(--bds-border);border-radius:var(--bds-radius);background:var(--bds-surface);color:var(--bds-ink);text-decoration:none!important;box-shadow:0 8px 24px rgba(8,31,57,.05);}
.bds-business-contact__card:hover{border-color:color-mix(in srgb,var(--bds-primary) 45%,var(--bds-border));transform:translateY(-1px);}
.bds-business-contact__icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:color-mix(in srgb,var(--bds-accent) 17%,#fff);color:var(--bds-primary);}
.bds-business-contact__icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;}
.bds-business-contact__card small{display:block;margin-bottom:3px;color:var(--bds-muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em;}
.bds-business-contact__card strong{display:block;color:var(--bds-ink);font-size:15px;line-height:1.35;}

.bds-shipping-rate-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 28px;}
.bds-shipping-rate-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:20px;border:1px solid var(--bds-border);border-radius:var(--bds-radius);background:var(--bds-surface);box-shadow:0 8px 24px rgba(8,31,57,.05);}
.bds-shipping-rate-card__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:color-mix(in srgb,var(--bds-accent) 17%,#fff);color:var(--bds-primary);}
.bds-shipping-rate-card__icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;}
.bds-shipping-rate-card strong,.bds-shipping-rate-card span{display:block;}
.bds-shipping-rate-card strong{font-size:16px;color:var(--bds-ink);}
.bds-shipping-rate-card span{margin-top:2px;color:var(--bds-muted);font-size:13px;}
.bds-shipping-rate-card b{font-size:20px;color:var(--bds-primary);white-space:nowrap;}

@media(max-width:767px){
  .bds-home-hero--image-only .bds-home-hero__track{aspect-ratio:1672/941;min-height:0;border-radius:0;}
  .bds-home-hero--managed .bds-hero-slide--image-only .bds-hero-slide__managed-media img{object-fit:contain;background:#fff;}
  .bds-content-page{width:min(100% - 24px,1000px);margin:22px auto 38px;}
  .bds-content-page__intro,.bds-policy-section{padding:18px;}
  .bds-business-contact,.bds-shipping-rate-cards{grid-template-columns:1fr;}
  .bds-business-contact__card,.bds-shipping-rate-card{min-height:82px;padding:15px 16px;}
}

/* =========================================================
   BDS Commerce Core 0.12 — storefront polish
   ========================================================= */
.bds-home { background: #fff; }
.bds-home-hero__track { box-shadow: 0 10px 32px color-mix(in srgb, var(--bds-ink) 8%, transparent); }
.bds-home-hero--image-only .bds-home-hero__track { box-shadow: none; }
.bds-home-heading { align-items: end; gap: 18px; }
.bds-home-heading h2 { letter-spacing: -.035em; color: var(--bds-primary-dark); }
.bds-home-heading > a { min-height: 34px; display: inline-flex; align-items: center; color: var(--bds-primary-dark); font-weight: 750; }
.bds-home-heading > a:hover { color: var(--bds-accent); }

/* Category cards: fashion-friendly clean circles with a reliable text fallback. */
.bds-category-cards { grid-template-columns: repeat(11, minmax(0,1fr)); gap: 18px 10px; }
.bds-category-card { min-width: 0; padding: 2px 2px 0; }
.bds-category-card__media {
  width: min(82px, 100%);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--bds-primary) 12%, var(--bds-border));
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--bds-surface-soft));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--bds-ink) 5%, transparent);
}
.bds-category-card strong { color: var(--bds-ink); font-size: 11px; line-height: 1.25; }
.bds-category-card:hover .bds-category-card__media { transform: translateY(-2px); border-color: color-mix(in srgb, var(--bds-accent) 66%, var(--bds-border)); }

/* Homepage rails use a real responsive grid: no tiny max-content cards or awkward single-item rails. */
.bds-product-rail { overflow: visible; margin-inline: 0; padding-inline: 0; }
.bds-product-rail .bds-product-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(var(--bds-home-columns-desktop, 4), minmax(0,1fr)) !important;
  gap: 16px !important;
}
.bds-product-rail .bds-product-card { width: auto !important; min-width: 0; flex: none !important; }
.bds-product-rail .bds-product-card:nth-child(n) { display: flex; }
.bds-product-rail-section { padding-block: 30px; }

@media (max-width: 1200px) {
  .bds-category-cards { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .bds-product-rail .bds-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
}

@media (max-width: 921px) {
  .bds-home-hero--image-only .bds-home-hero__track { aspect-ratio: 1672 / 941; }
  .bds-home-hero--managed .bds-hero-slide--image-only .bds-hero-slide__managed-media img { object-fit: contain; object-position: center; background: #fff; }
  .bds-home-section { padding-block: 24px; }
  .bds-home-heading { margin-bottom: 13px; }
  .bds-home-heading h2 { font-size: 22px; }
  .bds-home-heading > a { min-height: 32px; font-size: 12px; }
  .bds-category-cards,
  .bds-category-cards--directory { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 1px 5px; }
  .bds-category-cards::-webkit-scrollbar,
  .bds-category-cards--directory::-webkit-scrollbar { display: none; }
  .bds-category-card { flex: 0 0 78px; scroll-snap-align: start; }
  .bds-category-card__media { width: 62px; }
  .bds-category-card strong { font-size: 10px; }
  .bds-product-rail { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .bds-product-rail .bds-product-grid { display: grid !important; width: 100% !important; grid-template-columns: repeat(var(--bds-home-columns-mobile, 2), minmax(0,1fr)) !important; gap: 10px !important; }
  .bds-product-rail .bds-product-card { width: auto !important; flex-basis: auto !important; }
  .bds-product-rail-section { padding-block: 24px; }
}

@media (max-width: 390px) {
  .bds-category-card { flex-basis: 72px; }
  .bds-category-card__media { width: 56px; }
  .bds-product-rail .bds-product-grid { gap: 8px !important; }
}


/* =========================================================
   BDS 0.12.9.2 — Hero controls + responsive category carousel
   ========================================================= */
.bds-home-hero__viewport { touch-action: pan-y; }
.bds-home-hero__arrow {
  position: absolute;
  z-index: 9;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--bds-primary) 16%, var(--bds-border));
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--bds-primary-dark);
  box-shadow: 0 10px 28px rgba(5,24,44,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .18s ease, background .18s ease, transform .18s ease;
}
.bds-home-hero__arrow--prev { left: 18px; }
.bds-home-hero__arrow--next { right: 18px; }
.bds-home-hero__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.bds-home-hero__arrow--prev svg { transform: rotate(90deg); }
.bds-home-hero__arrow--next svg { transform: rotate(-90deg); }
.bds-home-hero:hover .bds-home-hero__arrow,
.bds-home-hero:focus-within .bds-home-hero__arrow { opacity: 1; pointer-events: auto; }
.bds-home-hero__arrow:hover { background: var(--bds-primary); color: #fff; }

.bds-category-carousel { position: relative; touch-action: pan-y; }
.bds-category-carousel .bds-category-cards--home {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 24px 18px !important;
  overflow: visible !important;
  padding: 0 !important;
  scroll-snap-type: none !important;
}
.bds-category-carousel .bds-category-card { min-width: 0; width: auto; flex: none; padding: 0; }
.bds-category-carousel .bds-category-card__media {
  width: min(150px, 100%) !important;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  border-radius: 12px !important;
  background: var(--bds-surface-soft);
}
.bds-category-carousel .bds-category-card__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.bds-category-carousel .bds-category-card__fallback { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 10px; font-size: clamp(28px, 3vw, 44px); }
.bds-category-carousel .bds-category-card strong { font-size: 12px; font-weight: 750; white-space: normal; line-height: 1.3; }
.bds-category-carousel__controls { min-height: 38px; display: none; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.bds-category-carousel__controls[hidden] { display: none !important; }
.bds-category-carousel__arrow { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--bds-border); border-radius: 50%; background: var(--bds-surface); color: var(--bds-primary-dark); }
.bds-category-carousel__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.bds-category-carousel__arrow--prev svg { transform: rotate(90deg); }
.bds-category-carousel__arrow--next svg { transform: rotate(-90deg); }
.bds-category-carousel__dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.bds-category-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--bds-primary) 20%, var(--bds-border)); }
.bds-category-carousel__dots button.is-active { width: 22px; border-radius: 999px; background: var(--bds-primary); }

@media (max-width: 921px) {
  .bds-home-hero__arrow { display: none; }
  .bds-category-carousel .bds-category-cards--home { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 18px 12px !important; }
  .bds-category-carousel .bds-category-card__media { width: min(132px, 100%) !important; }
}

@media (max-width: 767px) {
  .bds-home-section--categories { padding-top: 18px; padding-bottom: 20px; }
  .bds-category-carousel .bds-category-cards--home { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px 8px !important; }
  .bds-category-carousel .bds-category-card { width: auto !important; flex-basis: auto !important; }
  .bds-category-carousel .bds-category-card__media { width: min(72px, 100%) !important; max-width: none; margin-bottom: 7px; border-radius: 10px !important; }
  .bds-category-carousel .bds-category-card strong { font-size: 11px; min-height: 2.6em; }
  .bds-category-carousel__controls { margin-top: 13px; }
}
