/* The `hidden` attribute must always win. Any `display` rule (.btn, .modal, .co-err,
   .img-spinner …) otherwise overrides it, because attribute and class selectors have the
   same specificity and the class usually comes later. This has caused the same visible bug
   three times — a global reset ends the class of bug rather than patching each selector. */
[hidden] { display: none !important; }

:root {
  /* text + structure */
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --line: #e7e9ee;
  /* surfaces (page, cards, hovers, image placeholders) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #f4f5f7;
  --header-bg: #ffffff;
  --footer-bg: #f9fafb;
  /* CTA (buttons/links) — admin "Buttons & links"; derived shades follow automatically */
  --accent: #111827;
  --on-accent: #ffffff;
  --accent-hover: color-mix(in srgb, var(--accent) 82%, #000);
  --focus-ring: color-mix(in srgb, var(--accent) 16%, transparent);
  /* highlight — admin "Highlight" (icon tints, badges, hero wash) */
  --amber: #d97706;
  --amber-soft: color-mix(in srgb, var(--amber) 12%, #ffffff);
  --amber-deep: color-mix(in srgb, var(--amber) 75%, #000);
  /* status */
  --danger: #dc2626;
  --success: #16a34a;
  /* radius scale — all driven by the admin radius slider via --radius */
  --radius: 12px;
  --radius-sm: calc(var(--radius) * 0.8);
  --radius-lg: calc(var(--radius) * 1.33);
  --radius-pill: 999px;
  --btn-radius: var(--radius); /* overridden by button-shape setting (sharp/pill) */
  /* layout options (admin: card ratio + grid density) */
  --card-ratio: 1 / 1;
  --grid-min: 220px;
  /* proportion tokens — overridden per store by the injected <style> in layouts/plain.php.
     These are what make two stores look genuinely different: colour alone never did. */
  --container: 1160px;   /* page width; 100% = full width */
  --space: 1;            /* vertical rhythm multiplier */
  --fs: 15px;            /* base body size; every other size derives from it */
  --h-scale: 1.25;       /* how much bigger each heading step is */
  --h-weight: 700;
  --h-track: -0.02em;
  /* Derived type scale. Sizes were hardcoded 30+ times, which is why every store had
     identical proportions however its colours were set. */
  --fs-sm: calc(var(--fs) * 0.86);
  --fs-xs: calc(var(--fs) * 0.8);
  --fs-lg: calc(var(--fs) * 1.13);
  --h3: calc(var(--fs) * var(--h-scale));
  --h2: calc(var(--h3) * var(--h-scale));
  --h1: calc(var(--h2) * var(--h-scale));
  /* Derived spacing scale. */
  --sp-section: calc(40px * var(--space));
  --sp-wrap: calc(28px * var(--space));
  /* category tile fallback gradients (used when a category has no image) */
  --tile-0: linear-gradient(135deg, #4f46e5, #7c3aed);
  --tile-1: linear-gradient(135deg, #d97706, #f59e0b);
  --tile-2: linear-gradient(135deg, #059669, #10b981);
  --tile-3: linear-gradient(135deg, #e11d48, #fb7185);
  --tile-4: linear-gradient(135deg, #0f172a, #334155);
  --tile-5: linear-gradient(135deg, #0891b2, #22d3ee);
  --shadow-sm: 0 1px 2px rgba(17,24,39,.05), 0 1px 3px rgba(17,24,39,.06);
  --shadow: 0 10px 30px rgba(17,24,39,.10);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: var(--font);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: var(--fs); color: var(--ink); line-height: 1.55; background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
i[class^="ri-"], i[class*=" ri-"] { font-style: normal; line-height: 1; }
h1, h2, h3, .sf-title, .pdp-title, .home-hero h1, .sec-head h2, .cd-head span {
  font-family: var(--font-head); font-weight: var(--h-weight); letter-spacing: var(--h-track);
}

/* ---- header ---- */
.sf-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--header-bg) 92%, transparent); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.sf-header-inner { max-width: var(--container); margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; }
.sf-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.sf-brand i { color: var(--amber); font-size: 22px; }
.sf-logo { height: 30px; width: auto; display: block; }
.sf-cart { position: relative; display: inline-flex; align-items: center; font-size: 24px; color: var(--ink); padding: 4px; }
.sf-cart:hover { color: var(--accent); }
.cart-badge { position: absolute; top: -3px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }

.sf-wrap { max-width: var(--container); margin: 0 auto; padding: var(--sp-wrap) 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 4px; color: #cbd0d8; }
.sf-title { font-size: var(--h2); margin: 0 0 calc(22px * var(--space)); }
.muted { color: var(--muted); }

/* ---- shared controls ---- */
.input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-family: inherit; cursor: pointer; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); }

/* ---- listing grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-min), 1fr)); gap: 22px; }
.product-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: box-shadow .18s, transform .18s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pc-img { aspect-ratio: var(--card-ratio); background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-name { padding: 12px 14px 2px; font-weight: 500; }
.pc-price { padding: 0 14px 14px; color: var(--ink); font-weight: 600; }

/* ---- pdp ---- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.pdp-gallery { position: sticky; top: 90px; align-self: start; }
.pdp.g-flip .pdp-gallery { order: 2; }
.pdp.g-flip .pdp-info { order: 1; }
.pdp-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-3); }
.pdp-noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb { width: 66px; height: 66px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; transition: border-color .12s; }
.pdp-thumb:hover { border-color: var(--ink); }
.pdp-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.pdp-price { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.pdp-price .was { font-size: 17px; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 10px; }
.pdp-variants { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.variant-btn { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; transition: border-color .12s, background .12s; }
.variant-btn:hover { border-color: var(--ink); }
.variant-btn.is-selected { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }
.pdp-stock { font-size: 13px; color: var(--muted); margin: 10px 0 14px; display: flex; align-items: center; gap: 7px; }
.pdp-stock::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--success); display: inline-block; }
.pdp-stock.out { color: var(--danger); }
.pdp-stock.out::before { background: var(--danger); }
.btn-buy { width: 100%; max-width: 340px; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .12s, transform .05s; }
.btn-buy i { font-size: 19px; }
.btn-buy:hover { background: var(--accent-hover); }
.btn-buy:active { transform: translateY(1px); }
.btn-buy:disabled { opacity: .45; cursor: not-allowed; }
.pdp-desc { margin-top: 26px; color: var(--ink-soft); line-height: 1.7; }

/* ---- cart ---- */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
@media (max-width: 820px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-img img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.cl-name { font-weight: 500; }
.cl-price { color: var(--muted); margin-top: 2px; }
.cl-remove { background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.cl-remove:hover { color: var(--danger); }
.coupon-form { display: flex; gap: 8px; margin-top: 18px; max-width: 380px; }
.cart-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.cart-summary .input { margin-bottom: 8px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-soft); }
.sum-total { font-weight: 700; font-size: 19px; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.co-h { font-size: 15px; font-weight: 600; margin: 20px 0 12px; }
.co-row { display: flex; gap: 8px; }
.co-row .input { flex: 1; min-width: 0; }
.cart-summary .input.is-bad { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent); }
.co-err { color: var(--danger); font-size: 12.5px; margin: 2px 0 8px; display: flex; align-items: center; gap: 5px; }
.co-hint { color: var(--ink-soft); font-size: 12px; margin: -2px 0 8px; }
.order-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.order-status { font-size: 16px; color: var(--ink-soft); margin: 8px 0 18px; }

/* ---- delivery ---- */
.delivery-box { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.ship-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; margin-top: 8px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: 14px; font-family: inherit; transition: border-color .12s; }
.ship-opt:hover { border-color: var(--ink); }

/* ---- toast ---- */
.sf-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--radius); opacity: 0; transition: .22s; z-index: 60; box-shadow: var(--shadow); font-weight: 500; }
.sf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- page builder sections ---- */
.hero-h { font-size: var(--h1); margin: 0 0 14px; line-height: 1.1; }
.hero-sub { font-size: var(--fs-lg); color: var(--ink-soft); margin: 0 0 24px; }
.hero-cta, .hero-cta2 { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: 1px solid transparent; border-radius: var(--btn-radius); font-weight: 600; font-size: 16px; text-decoration: none; }
.hero-cta { background: var(--accent); color: var(--on-accent); transition: background .12s; }
.hero-cta:hover { background: var(--accent-hover); }
.hero-cta2 { border-color: currentColor; color: inherit; transition: opacity .12s; }
.hero-cta2:hover { opacity: .7; }
.sec-rich { padding: 28px 20px; line-height: 1.7; }
.sec-imgtext { display: flex; gap: 40px; align-items: center; padding: 48px 20px; flex-wrap: wrap; }
.sec-imgtext > div { flex: 1 1 320px; }
.sec-imgtext.is-right .it-img { order: 2; }
.it-img img { width: 100%; border-radius: var(--radius-lg); }
.it-body h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.sec-slider { overflow: hidden; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider-track img { width: 100%; height: auto; display: block; }
.slide { position: relative; }
.sec-grid { padding: var(--sp-section) 20px; }
.sec-countdown { text-align: center; padding: 44px 20px; background: linear-gradient(180deg, var(--amber-soft), var(--surface)); }
.cd-h { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.countdown { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.cd-num { display: inline-block; min-width: 1.4em; }

/* ---- section style wrapper (per-section background / spacing / align) ---- */
.secw-pad-s { padding: 10px 0; }
.secw-pad-m { padding: 36px 0; }
.secw-pad-l { padding: 72px 0; }
.secw-align-left { text-align: left; }
.secw-align-center { text-align: center; }
.secw-align-right { text-align: right; }

/* ---- testimonials ---- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.testi-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.testi-card i { color: var(--amber); font-size: 22px; }
.testi-card blockquote { margin: 8px 0 12px; color: var(--ink-soft); line-height: 1.65; font-size: 14.5px; }
.testi-card figcaption { font-weight: 600; font-size: 13.5px; }

/* ---- faq + video sections ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.sec-video .video-frame { position: relative; aspect-ratio: 16/9; max-width: 880px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); }
.sec-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-cta.sec-newsletter { margin-top: 0; }

/* ---- admin draft-theme preview bar ---- */
.preview-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); z-index: 75; font-size: 13.5px; }
.preview-bar span { display: inline-flex; align-items: center; gap: 8px; }
.preview-bar i { color: var(--amber); }
.preview-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.preview-actions form { margin: 0; }
.pvb { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; font-family: inherit; font-size: 13px; }
.pvb:hover { background: rgba(255,255,255,.12); }
.pvb-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 640px) { .preview-bar { flex-direction: column; align-items: stretch; text-align: center; } .preview-actions { justify-content: center; } }

/* ---- consent banner ---- */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 660px; margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); z-index: 70; font-size: 14px; }
.consent-banner span { display: inline-flex; align-items: center; gap: 8px; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cbtn { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; font-family: inherit; font-size: 14px; }
.cbtn:hover { background: rgba(255,255,255,.12); }
.cbtn-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 560px) { .consent-banner { flex-direction: column; align-items: stretch; text-align: center; } .consent-actions { justify-content: center; } }

/* ============================================================
   Storefront shell + home
   (tokens consolidated into the single :root block above)
   ============================================================ */

/* announcement bar */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: 12.5px; letter-spacing: .01em; padding: 8px 16px; }
.announce i { color: var(--amber); margin-right: 5px; vertical-align: -1px; }

/* header layout */
.sf-header-inner { gap: 20px; }
.sf-nav { display: flex; align-items: center; gap: 22px; margin-right: auto; }
.sf-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.sf-nav a:hover { color: var(--ink); }
.sf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .16s; transform-origin: left; }
.sf-nav a:hover::after { transform: scaleX(1); }
.sf-actions { display: flex; align-items: center; gap: 14px; }
.sf-search { position: relative; display: flex; align-items: center; }
.sf-search i { position: absolute; left: 12px; color: var(--muted); font-size: 16px; pointer-events: none; }
.sf-search input { width: 230px; height: 40px; padding: 0 14px 0 36px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-family: inherit; font-size: 14px; background: var(--surface-3); transition: width .18s, border-color .12s, background .12s; }
.sf-search input:focus { outline: none; width: 280px; background: var(--surface); border-color: var(--ink); }
.sf-iconbtn, .sf-burger { display: none; background: none; border: 0; font-size: 23px; color: var(--ink); cursor: pointer; padding: 4px; line-height: 1; }
.sf-search-m { display: none; }

/* mobile drawer */
.sf-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 284px; max-width: 82vw; background: var(--surface); z-index: 80; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sf-drawer.open { transform: translateX(0); }
.sf-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sf-drawer-head button { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); line-height: 1; }
.sf-drawer nav { display: flex; flex-direction: column; padding: 8px 0; }
.sf-drawer nav a { padding: 13px 20px; font-weight: 500; border-bottom: 1px solid var(--line); }
.sf-drawer nav a:hover { background: var(--surface-2); }
.sf-scrim { position: fixed; inset: 0; background: rgba(17,24,39,.4); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 70; }
.sf-scrim.show { opacity: 1; visibility: visible; }

.sf-main { min-height: 56vh; }

/* listing/search head + states */
.sf-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sf-listhead .sf-title { margin: 0; }
.sf-count { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.sf-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.sf-empty i { font-size: 44px; opacity: .5; }
.sf-empty p { margin: 12px 0 18px; }
.sf-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.sf-pager a, .sf-pager .disabled { display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; }
.sf-pager a:hover { border-color: var(--ink); }
.sf-pager .disabled { opacity: .4; }
.sf-pager-now { color: var(--muted); font-size: 14px; }

/* product card body (wrapped) */
.pc-body { padding: 12px 14px 14px; }
.pc-body .pc-name { padding: 0; margin-bottom: 4px; }
.pc-body .pc-price { padding: 0; }

/* ---- product card variants (theme_card_style) ---- */
.pc-img { position: relative; }
.product-card.c-minimal { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.product-card.c-minimal .pc-img { border-radius: var(--radius-lg); }
.product-card.c-minimal:hover { box-shadow: none; transform: none; }
.product-card.c-minimal .pc-body { padding: 10px 2px 0; }
.pc-swap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.product-card:hover .pc-swap { opacity: 1; }
.pc-deal { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill); z-index: 1; }
.pc-was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 6px; }
/* overlay card: text sits on a scrim over the image */
.product-card.c-overlay { position: relative; border: 0; }
.product-card.c-overlay .pc-img { aspect-ratio: var(--card-ratio); }
.product-card.c-overlay .pc-body { position: absolute; inset: auto 0 0 0; padding: 34px 14px 13px; background: linear-gradient(180deg, transparent, rgba(10,12,18,.72)); }
.product-card.c-overlay .pc-name { color: #fff; }
.product-card.c-overlay .pc-price { color: #fff; }
.product-card.c-overlay .pc-was { color: rgba(255,255,255,.65); }

/* ---- header variants (theme_header_style) ---- */
.h-centered .sf-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.h-centered .hc-left { display: flex; align-items: center; gap: 10px; }
.h-centered .sf-brand { justify-self: center; }
.h-centered .sf-actions { justify-self: end; }
.h-centered .hc-nav { justify-content: center; margin: 0; padding: 0 20px 13px; flex-wrap: wrap; }
.h-search .hs-search { flex: 1; max-width: 560px; }
.h-search .hs-search input { width: 100%; background: var(--surface-3); border-radius: var(--radius-sm); }
.h-search .hs-search input:focus { width: 100%; }
.h-search .hs-nav { justify-content: center; margin: 0; padding: 0 20px 12px; flex-wrap: wrap; }
.h-search .sf-brand { flex-shrink: 0; }
@media (max-width: 900px) {
  .h-search .hs-nav { display: none; }
  .h-search .hs-search { display: none; }
}
.h-minimal .sf-burger, .h-minimal .sf-iconbtn { display: inline-flex; }
.h-minimal .sf-brand { margin-right: auto; margin-left: 6px; }
.h-minimal .sf-search-m.open, .h-centered .sf-search-m.open { display: flex; align-items: center; position: relative; padding: 10px 20px 12px; border-top: 1px solid var(--line); }
.h-minimal .sf-search-m i, .h-centered .sf-search-m i { position: absolute; left: 32px; color: var(--muted); }
.h-minimal .sf-search-m input, .h-centered .sf-search-m input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; }
@media (max-width: 900px) {
  .h-centered .hc-nav { display: none; }
  .h-centered .hc-left .sf-search { display: none; }
  .h-centered .sf-header-inner { display: flex; }
}

/* home hero */
.home-hero { background: linear-gradient(180deg, var(--amber-soft), var(--bg) 78%); border-bottom: 1px solid var(--line); padding: 82px 20px 74px; text-align: center; }
.home-hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--amber) 40%, #fff); color: var(--amber-deep); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--radius-pill); }
.home-hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 22px 0 16px; }
.home-hero p { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-buy { max-width: none; width: auto; padding: 0 26px; }
.btn-light { height: 52px; padding: 0 24px; border-radius: var(--btn-radius); font-weight: 600; font-size: 15px; }

/* trust bar */
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-bar div { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.trust-bar i { color: var(--amber); font-size: 18px; }

/* section header */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.sec-head h2 { font-size: var(--h2); margin: 0; }
.sec-head a { color: var(--muted); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.sec-head a:hover { color: var(--ink); }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-tile { position: relative; aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,24,39,.05), rgba(17,24,39,.55)); }
.cat-tile.t0 { background: var(--tile-0); }
.cat-tile.t1 { background: var(--tile-1); }
.cat-tile.t2 { background: var(--tile-2); }
.cat-tile.t3 { background: var(--tile-3); }
.cat-tile.t4 { background: var(--tile-4); }
.cat-tile.t5 { background: var(--tile-5); }
.cat-tile .ct-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.cat-tile .ct-go { font-size: 13px; font-weight: 500; opacity: .9; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; transition: gap .15s; }
.cat-tile:hover .ct-go { gap: 9px; }

/* home newsletter cta */
.home-cta { background: var(--accent); color: var(--on-accent); padding: 64px 20px; text-align: center; margin-top: 60px; }
.home-cta-inner { max-width: 540px; margin: 0 auto; }
.home-cta h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.home-cta p { color: color-mix(in srgb, var(--on-accent) 75%, transparent); margin: 0 0 22px; }
.news-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.news-form .input { flex: 1; }
.news-form .btn-buy { width: auto; max-width: none; height: 42px; padding: 0 22px; }

/* footer */
.sf-footer { background: var(--footer-bg); border-top: 1px solid var(--line); margin-top: 64px; }
/* A last section that paints its own full-bleed band must sit flush against the footer —
   a strip of page background between two coloured bands reads as a rendering bug. */
.sf-main:has(> :last-child.home-cta) + .sf-footer,
.sf-main:has(> :last-child.sec-countdown) + .sf-footer,
.sf-main:has(> :last-child.sec-trust) + .sf-footer { margin-top: 0; }
.sf-footer-inner { max-width: var(--container); margin: 0 auto; padding: 52px 20px 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.ft-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 14px; max-width: 280px; }
.ft-pay { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ft-pay i { font-size: 22px; color: var(--ink-soft); }
.ft-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 0 0 14px; }
.ft-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.ft-col a:hover { color: var(--ink); }
.ft-news p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.ft-news .news-form { max-width: none; }
.ft-bottom { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; padding: 18px 20px; }

/* centered minimal footer */
.ft-centered .ftc-inner { max-width: 560px; margin: 0 auto; padding: 52px 20px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ft-centered .ftc-blurb { color: var(--muted); font-size: 14px; margin: 0; max-width: 420px; }
.ft-centered .ftc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.ft-centered .ftc-links a { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }
.ft-centered .ftc-links a:hover { color: var(--ink); }
.ft-centered .ft-social { margin: 0; justify-content: center; }
.ft-centered .ftc-news { width: 100%; max-width: 400px; }
.ft-centered .ft-pay { justify-content: center; }

/* responsive */
@media (max-width: 900px) {
  .sf-nav, .sf-search { display: none; }
  .sf-burger, .sf-iconbtn { display: inline-flex; }
  .sf-header-inner { justify-content: space-between; }
  .sf-brand { margin-right: auto; margin-left: 4px; }
  .sf-search-m.open { display: flex; align-items: center; position: relative; padding: 10px 20px 12px; border-top: 1px solid var(--line); }
  .sf-search-m i { position: absolute; left: 32px; color: var(--muted); }
  .sf-search-m input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; }
  .sf-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ft-brand, .ft-news { grid-column: span 2; }
  .home-hero h1 { font-size: 34px; }
  .home-hero { padding: 60px 20px 54px; }
}
@media (max-width: 520px) {
  .sf-footer-inner { grid-template-columns: 1fr; }
  .ft-brand, .ft-news { grid-column: span 1; }
  .trust-bar { gap: 12px 20px; }
  .home-hero h1 { font-size: 29px; }
  .home-hero p { font-size: 16px; }
  .news-form { flex-direction: column; }
  .news-form .btn-buy { width: 100%; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ---- filter/sort bar ---- */
.sf-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 0 0 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.fb-controls { display: flex; align-items: center; gap: 16px; }
.fb-check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.fb-check input { width: 15px; height: 15px; accent-color: var(--ink); }
.fb-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.fb-sort select { height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: inherit; font-size: 14px; color: var(--ink); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.fb-sort select:focus { outline: none; border-color: var(--ink); }

/* ---- pdp enhancements ---- */
.pdp-price .save { display: inline-block; margin-left: 10px; background: var(--amber-soft); color: var(--amber-deep); font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); vertical-align: middle; }
.pdp-thumb.is-active { border-color: var(--ink); }
.pdp-opt-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.pdp-buy { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.pdp-buy .btn-buy { flex: 1; min-width: 200px; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; height: 52px; }
.qbtn { width: 42px; height: 100%; border: 0; background: var(--surface); font-size: 20px; color: var(--ink); cursor: pointer; line-height: 1; }
.qbtn:hover { background: var(--surface-2); }
.qinput { width: 44px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: inherit; font-size: 15px; font-weight: 500; -moz-appearance: textfield; }
.qinput::-webkit-outer-spin-button, .qinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-trust { list-style: none; margin: 26px 0 0; padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pdp-trust li { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--ink-soft); text-align: center; }
.pdp-trust i { width: 42px; height: 42px; border-radius: var(--radius-pill); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 19px; }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "\ea4e"; font-family: "remixicon"; font-weight: 400; color: var(--muted); transition: transform .18s; }
.pdp-acc[open] summary::after { transform: rotate(180deg); }
.pdp-acc .pdp-desc { margin: 0 0 16px; }
.pdp-related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.pdp-related .sec-head { margin-top: 24px; }
@media (max-width: 520px) { .pdp-buy .btn-buy { min-width: 0; } }

/* ---- off-canvas cart drawer ---- */
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; background: var(--surface); z-index: 80; transform: translateX(100%); transition: transform .24s ease; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cd-head span { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.cd-head span i { color: var(--amber); }
.cd-head button { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); line-height: 1; }
.cd-scroll { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.cart-drawer .btn-buy { width: 100%; max-width: none; margin-top: 16px; }

.cd-empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.cd-empty i { font-size: 46px; opacity: .5; }
.cd-empty p { margin: 12px 0 18px; }

.cd-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cd-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-3); overflow: hidden; }
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cd-name { font-weight: 500; font-size: 14px; line-height: 1.35; display: block; }
.cd-name:hover { color: var(--amber); }
.cd-var { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cd-qtyrow { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cd-qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 500; }
.cd-qbtn { width: 30px; height: 30px; border: 0; background: var(--surface); cursor: pointer; font-size: 16px; color: var(--ink); line-height: 1; }
.cd-qbtn:hover { background: var(--surface-2); }
.cd-lineprice { font-weight: 600; font-size: 14px; }
.cd-remove { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px; line-height: 1; }
.cd-remove:hover { color: var(--danger); }

.cd-coupon { display: flex; gap: 8px; margin: 18px 0 6px; }
.cd-coupon .input { flex: 1; }
.cd-summary { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cd-summary .sum-row { padding: 6px 0; }

.cd-back { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0 0 14px; }
.cd-back:hover { color: var(--ink); }
.cd-deliver { padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cd-pin { display: flex; gap: 8px; }
.cd-pin .input { flex: 1; }
.cd-selmethod { margin-top: 8px; font-size: 13px; }
.cd-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cd-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.cd-note { font-size: 12px; margin: 8px 0 0; text-align: center; }

@media (max-width: 480px) { .cart-drawer { width: 100%; max-width: 100%; } .cd-row3 { grid-template-columns: 1fr 1fr; } }

/* ---- nav dropdowns + theme extras ---- */
.sf-header.not-sticky { position: static; }
.sf-nav-item { position: relative; display: inline-flex; align-items: center; }
.sf-nav-item > a { display: inline-flex; align-items: center; gap: 3px; }
.sf-nav-item > a .ri-arrow-down-s-line { font-size: 15px; }
.sf-sub { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s; z-index: 40; }
.sf-nav-item.has-sub:hover .sf-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sf-sub a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-soft); }
.sf-sub a:hover { background: var(--surface-2); color: var(--ink); }
.sf-drawer-sub { padding-left: 14px; border-left: 2px solid var(--line); margin: 0 0 0 18px; }
.sf-drawer-sub a { font-size: 14px; }
.ft-social { display: flex; gap: 10px; margin: 14px 0; }
.ft-social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); font-size: 17px; transition: border-color .12s, color .12s; }
.ft-social a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------------------
   Checkout: labelled fields, payment picker, free-shipping progress, mobile buy bar
   --------------------------------------------------------------------------- */

/* Visible to screen readers only — labels for inputs whose design is placeholder-led. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.co-fields { display: flex; flex-direction: column; gap: 10px; }
.co-field { display: flex; flex-direction: column; gap: 4px; }
.co-label { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.co-row .co-field { flex: 1; min-width: 0; }
.co-fields-compact { gap: 8px; margin-top: 14px; }
.co-fields-compact .co-label { font-size: 12px; }
.input.is-bad { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent); }
.co-note { font-size: 12px; margin: 6px 0 0; }

.pay-methods { border: 0; padding: 0; margin: 16px 0 12px; }
.pay-methods > .co-label { display: block; margin-bottom: 8px; }
.pay-opt { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 8px; transition: border-color .12s, background .12s; }
.pay-opt:hover { border-color: var(--ink-soft); }
.pay-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.pay-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pay-opt input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.pay-body { display: flex; flex-direction: column; gap: 2px; }
.pay-name { font-size: 14px; font-weight: 500; }
.pay-sub { font-size: 12px; color: var(--ink-soft); }

/* Free-shipping progress — turns an invisible threshold into a visible goal. */
.ship-progress { margin: 12px 0; font-size: 12.5px; }
.ship-progress-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.ship-progress-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.ship-progress-done { color: var(--ok, #16a34a); font-weight: 500; }

/* Mobile sticky buy bar: on a long PDP the add-to-cart otherwise scrolls out of reach. */
.pdp-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface, #fff); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.07); }
.pdp-stickybuy .btn-buy { max-width: none; height: 46px; margin: 0; flex: 1; }
.pdp-stickybuy-price { font-size: 15px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .pdp-stickybuy.show { display: flex; }
  body.has-stickybuy { padding-bottom: 72px; }
}

/* Reviews */
.stars { display: inline-flex; gap: 1px; color: #f5a524; font-size: 14px; line-height: 1; }
.stars i { font-size: inherit; }
.stars-empty { color: var(--line); }
.rating-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.card-rating { margin-top: 3px; }
.rv-list { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.rv { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.rv:last-child { border-bottom: 0; }
.rv-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rv-author { font-weight: 500; font-size: 14px; }
.rv-verified { font-size: 11px; font-weight: 500; color: var(--ok, #16a34a); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.rv-date { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.rv-title { font-weight: 500; margin: 7px 0 3px; font-size: 14px; }
.rv-body { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.rv-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.rv-avg { font-size: 30px; font-weight: 600; line-height: 1; }
/* The fields here are direct children of the form — there is no .co-fields wrapper to carry
   the rhythm — so the form owns it. Without this every label sat flush on the input above it. */
.rv-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.rv-form .co-h { margin: 0; }
.rv-form button { align-self: flex-start; margin-top: 4px; }
.rv-stars-pick { display: inline-flex; flex-direction: row-reverse; gap: 3px; }
.rv-stars-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.rv-stars-pick label { cursor: pointer; font-size: 24px; color: var(--line); line-height: 1; }
.rv-stars-pick label:hover, .rv-stars-pick label:hover ~ label,
.rv-stars-pick input:checked ~ label { color: #f5a524; }
.rv-stars-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.coupon-ok { color: var(--ok, #16a34a); font-size: 12.5px; margin: 6px 0 0; display: flex; align-items: center; gap: 5px; }

/* ---------------------------------------------------------------------------
   Storefront fixes
   --------------------------------------------------------------------------- */

/* `display:flex` above beat the `hidden` attribute, so an empty error box showed
   as a bare red icon under every checkout form. */

/* Thumbnails are <button> wrappers (keyboard-operable) — the sizing that used to
   apply to the <img> has to move to the button, and the image fills it. */
.pdp-thumb { padding: 0; background: none; overflow: hidden; display: block; flex: none; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Textarea must match the input rhythm rather than collapsing to a default box. */
.input.textarea, textarea.input { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; }

/* Required-field marker. */
.req { color: var(--danger); margin-left: 2px; }

/* The star picker is row-reverse, so it stretched to the full field width and
   landed hard right. Shrink it to its content. */
.rv-stars-pick { align-self: flex-start; }

/* The sticky buy bar and the consent banner both live at the bottom. The bar is the
   primary action, so it wins — and the banner lifts above it while it is showing. */
.pdp-stickybuy { z-index: 80; }
@media (max-width: 760px) {
  body.stickybuy-on .consent-banner { bottom: 84px; }
}

/* ---- listing filters: bar + left off-canvas ---- */
.sf-filterbar { flex-wrap: wrap; }
.fb-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.fb-toggle:hover { border-color: var(--ink); }
.fb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; }

/* Mirrors .cart-drawer, opening from the left. Off-canvas rather than inline so revealing the
   filters never shoves the product grid down the page. */
.fb-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 340px; max-width: 88vw; background: var(--surface); z-index: 80; transform: translateX(-100%); transition: transform .24s ease; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fb-drawer.open { transform: translateX(0); }
.fb-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.fb-head span { font-family: var(--font-head); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.fb-head span i { color: var(--amber); }
.fb-head button { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.fb-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.fb-group { display: flex; flex-direction: column; gap: 9px; }
.fb-legend { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.fb-legend .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fb-range { display: flex; align-items: center; gap: 8px; }
.fb-range .input { width: 100%; height: 38px; min-width: 0; }
.fb-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.fb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; transition: border-color .12s, background .12s; }
.fb-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.fb-chip.is-on, .fb-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fb-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus-ring); }
.fb-n { color: var(--muted); font-size: 11.5px; }
.fb-actions { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); flex-shrink: 0; }
.fb-actions .btn { margin-left: auto; }
.fb-clear { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 480px) { .fb-drawer { width: 100%; max-width: 100%; } }

/* ---- live search suggestions ---- */
.sf-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sf-suggest-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.sf-suggest-item:last-of-type { border-bottom: 0; }
.sf-suggest-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.sf-suggest-item img, .sf-suggest-noimg { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); flex: none; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sf-suggest-name { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-suggest-price { font-size: 13px; font-weight: 600; flex: none; }
.sf-suggest-all { display: block; padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--ink) 4%, transparent); text-decoration: none; color: inherit; }
.sf-suggest-empty { padding: 14px 12px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* `.co-row .input { flex: 1 }` predates the .co-field wrapper. With a column-direction
   parent that rule sizes the input on the CROSS axis and collapsed pincode/city to 20px.
   Flex the field, not the input. */
.co-row > .co-field { flex: 1; min-width: 0; }
.co-row .input { flex: none; }

/* ---- hero: image support, scrim, heights ---- */
.sec-hero { position: relative; background-size: cover; background-position: center; }
.sec-hero.h-short  { padding: 46px 20px; }
.sec-hero.h-medium { padding: 84px 20px; }
.sec-hero.h-tall   { padding: 130px 20px; }
.sec-hero.a-left   { text-align: left; }
.sec-hero.a-center { text-align: center; }
.sec-hero.a-right  { text-align: right; }
/* The scrim only exists over a photo — a text hero keeps the page's own colours. */
.sec-hero.has-img::before { content: ""; position: absolute; inset: 0; background: #000; }
.sec-hero.has-img.ov-none::before   { opacity: 0; }
.sec-hero.has-img.ov-light::before  { opacity: .22; }
.sec-hero.has-img.ov-medium::before { opacity: .42; }
.sec-hero.has-img.ov-strong::before { opacity: .6; }
.sec-hero.has-img .hero-inner { position: relative; color: #fff; }
.sec-hero.has-img .hero-h, .sec-hero.has-img .hero-sub { color: #fff; }
.sec-hero.has-img .hero-sub { opacity: .92; }
.sec-hero .hero-inner { max-width: 720px; margin: 0 auto; }
.sec-hero.a-left .hero-inner  { margin-left: 0; }
.sec-hero.a-right .hero-inner { margin-right: 0; }
.sec-hero .hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.sec-hero.a-left .hero-actions  { justify-content: flex-start; }
.sec-hero.a-right .hero-actions { justify-content: flex-end; }
.sec-hero.has-img .hero-cta2 { color: #fff; }

/* ---- trust badges section ---- */
.sec-trust { padding: 6px 0; }
.sec-reviews { padding: var(--sp-section) 20px; }

/* ---- real customer reviews ---- */
.rv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); gap: 16px; justify-content: center; }
.rv-card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 9px; }
.rv-card-title { font-weight: 600; font-size: 14.5px; margin: 0; }
.rv-card blockquote { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.rv-card figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.rv-card-who { font-weight: 500; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rv-card-prod { color: var(--ink-soft); text-decoration: none; }
.rv-card-prod:hover { text-decoration: underline; }

/* ---- shoppable video carousel ---- */
.sec-vcar { padding: var(--sp-section) 20px; }
/* A scroll-snap rail rather than a JS slider: native momentum on touch, keyboard-scrollable,
   and nothing to initialise before the first paint. */
.vcar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.vcar-item { position: relative; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); }
.vcar-media { aspect-ratio: 3 / 4; background: #000; }
.vcar-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The product card sits over the foot of the clip — the whole tile is the buy path. */
.vcar-card { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.vcar-thumb { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.vcar-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcar-name { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcar-price { font-size: 13.5px; font-weight: 700; }
.vcar-card:hover { background: var(--surface); }

/* ---- product videos on the PDP ---- */
.pdp-videos { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pdp-video { margin: 0; }
.pdp-video video { width: 100%; border-radius: var(--radius-lg); background: #000; display: block; }
.pdp-video figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 7px; }

/* ---- carousel layout ----
   Any row of cards can become a horizontal scroll-snap rail. Native snap, not a JS slider:
   momentum on touch, keyboard-scrollable, nothing to initialise before first paint. */
.product-grid.is-rail, .cat-tiles.is-rail, .rv-cards.is-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  justify-content: start;
}
.product-grid.is-rail > *, .cat-tiles.is-rail > *, .rv-cards.is-rail > * { scroll-snap-align: start; }
.cat-tiles.is-rail { grid-auto-columns: minmax(200px, 240px); }
.rv-cards.is-rail { grid-auto-columns: minmax(260px, 340px); }

/* Swiper takes over the rails at runtime (see app.js). Slide widths live here, mirroring the
   grid-auto-columns above, so the enhanced and unenhanced rows are the same shape. */
.sf-rail .swiper-slide { width: 260px; height: auto; }
.sf-rail.cat-tiles .swiper-slide { width: 220px; }
.sf-rail.rv-cards .swiper-slide { width: 320px; }
/* Swiper's root must not keep the section's own grid layout: .product-grid, .cat-tiles and
   .rv-cards are all display:grid, which collapsed the container to zero width — and
   .rv-cards' justify-content:center is what pushed the reviews row off to the right. */
.sf-rail { display: block; padding-bottom: 4px; }
/* The arrows are chrome, not content: quiet until the row is hovered, and out of the way on
   touch, where dragging is the obvious gesture. */
.sf-rail .swiper-button-prev, .sf-rail .swiper-button-next {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 10px rgba(17,24,39,.14);
  opacity: 0; transition: opacity .18s ease;
}
.sf-rail:hover .swiper-button-prev, .sf-rail:hover .swiper-button-next,
.sf-rail .swiper-button-prev:focus-visible, .sf-rail .swiper-button-next:focus-visible { opacity: 1; }
.sf-rail .swiper-button-prev::after, .sf-rail .swiper-button-next::after { font-size: 15px; font-weight: 700; }
.sf-rail .swiper-button-disabled { opacity: 0 !important; }
@media (hover: none) {
  .sf-rail .swiper-button-prev, .sf-rail .swiper-button-next { display: none; }
}

/* Hero slider: full-bleed, one slide at a time. */
.sf-hero-swiper .swiper-slide img { width: 100%; height: auto; display: block; }
.sf-hero-swiper .swiper-button-prev, .sf-hero-swiper .swiper-button-next { color: #fff; }
.sf-hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .55; }
.sf-hero-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* Slide overlay. Absolutely positioned over the image so it never changes the slide's
   height — the image keeps its own aspect ratio and the words sit on top of it. */
.slide-content { position: absolute; inset: 0; display: flex; padding: clamp(20px, 5vw, 64px); pointer-events: none; }
.slide-content-in { max-width: min(520px, 80%); pointer-events: auto; }
.slide-content h2 { font-family: var(--font-head); font-size: clamp(22px, 3.4vw, 44px); line-height: 1.12; margin: 0 0 10px; color: var(--slide-fg, #fff); text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.slide-content p { font-size: clamp(13px, 1.4vw, 17px); line-height: 1.5; margin: 0 0 18px; color: var(--slide-fg, #fff); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
/* .btn-buy is a full-width buy button by default (PDP, cart). Over a slide it has to be
   content-width, the same exception .hero-actions already makes. */
.slide-content .btn-buy { display: inline-flex; width: auto; max-width: none; padding: 0 26px;
  background: var(--slide-btn-bg, var(--accent)); color: var(--slide-btn-fg, var(--on-accent)); }
/* A per-slide button colour must survive hover, or the colour appears to be ignored the
   moment anyone points at it. */
.slide-content .btn-buy:hover { background: var(--slide-btn-bg, var(--accent-hover)); filter: brightness(.94); }
/* A scrim only under the text side, so a light photo still carries white type without
   dimming the whole image the merchant chose. */
.slide-content::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.12) 45%, rgba(0,0,0,.42)); z-index: -1; }

/* Nine positions. Desktop uses sp-*, mobile overrides with spm-* below the breakpoint. */
.sp-top-left      { align-items: flex-start;  justify-content: flex-start; text-align: left; }
.sp-top-center    { align-items: flex-start;  justify-content: center;     text-align: center; }
.sp-top-right     { align-items: flex-start;  justify-content: flex-end;   text-align: right; }
.sp-middle-left   { align-items: center;      justify-content: flex-start; text-align: left; }
.sp-middle-center { align-items: center;      justify-content: center;     text-align: center; }
.sp-middle-right  { align-items: center;      justify-content: flex-end;   text-align: right; }
.sp-bottom-left   { align-items: flex-end;    justify-content: flex-start; text-align: left; }
.sp-bottom-center { align-items: flex-end;    justify-content: center;     text-align: center; }
.sp-bottom-right  { align-items: flex-end;    justify-content: flex-end;   text-align: right; }

@media (max-width: 760px) {
  /* A 2:1 banner is only ~190px tall on a phone, so the overlay has to be economical: less
     padding, tighter type, and a title capped at two lines rather than pushing the button
     off the image. */
  /* Extra room at the bottom: the pagination dots live there too, and bottom-placed copy
     was landing underneath them. */
  .slide-content { padding: 16px 16px 30px; }
  .slide-content-in { max-width: 100%; }
  .slide-content h2 { font-size: 19px; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-content p { font-size: 12.5px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-content .btn-buy { height: 40px; font-size: 14px; padding: 0 18px; }
  .spm-top-left      { align-items: flex-start;  justify-content: flex-start; text-align: left; }
  .spm-top-center    { align-items: flex-start;  justify-content: center;     text-align: center; }
  .spm-top-right     { align-items: flex-start;  justify-content: flex-end;   text-align: right; }
  .spm-middle-left   { align-items: center;      justify-content: flex-start; text-align: left; }
  .spm-middle-center { align-items: center;      justify-content: center;     text-align: center; }
  .spm-middle-right  { align-items: center;      justify-content: flex-end;   text-align: right; }
  .spm-bottom-left   { align-items: flex-end;    justify-content: flex-start; text-align: left; }
  .spm-bottom-center { align-items: flex-end;    justify-content: center;     text-align: center; }
  .spm-bottom-right  { align-items: flex-end;    justify-content: flex-end;   text-align: right; }
}

/* Per-section device visibility. CSS rather than a server-side skip, because the same HTML
   is cached and served to every device. */
@media (max-width: 760px)     { .secw-desktop-only { display: none; } }
@media (min-width: 760.02px)  { .secw-mobile-only  { display: none; } }

/* COD fee tag on the payment option */
.pay-fee { font-weight: 500; font-size: 12px; color: var(--ink-soft); }

/* ---- full-width layout ----
   With --container: 100% the wrap has no max-width, so the 20px gutter alone would leave text
   running edge to edge on a wide monitor. Give it a little more room to breathe. */
@media (min-width: 1200px) {
  .sf-wrap, .sf-header-inner, .sf-footer-inner {
    padding-left: max(20px, 3vw); padding-right: max(20px, 3vw);
  }
}

/* ---- hero layout variants ----
   classic keeps the original full-bleed centred banner; these two are the alternatives. */
.sec-hero.hl-banner { padding-top: calc(38px * var(--space)); padding-bottom: calc(38px * var(--space)); }
.sec-hero.hl-banner .hero-inner { max-width: var(--container); }

/* Split: text and image side by side, image second on desktop so the copy leads. */
.sec-hero.hl-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); max-width: var(--container); margin: 0 auto; background-image: none; }
.sec-hero.hl-split .hero-inner { max-width: none; margin: 0; text-align: left; }
.sec-hero.hl-split .hero-actions { justify-content: flex-start; }
.sec-hero.hl-split .hero-media { order: 2; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.sec-hero.hl-split .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The scrim exists to make text readable OVER a photo; in split they never overlap. */
.sec-hero.hl-split.has-img::before { display: none; }
.sec-hero.hl-split.has-img .hero-inner, .sec-hero.hl-split.has-img .hero-h,
.sec-hero.hl-split.has-img .hero-sub { color: var(--ink); }
.sec-hero.hl-split.has-img .hero-cta2 { color: var(--ink); }
@media (max-width: 860px) {
  .sec-hero.hl-split { grid-template-columns: 1fr; }
  .sec-hero.hl-split .hero-media { order: -1; aspect-ratio: 16 / 9; }
}
