/* Store A: storefront views (home, shop, product, wishlist, compare).
   Every class starts with .sa- . Colours come from the tokens in styles.css, so light and dark both work.
   One local constant: --sa-star is the same rating gold the shared .stars use. */

.sa-home, .sa-shop, .sa-product, .sa-page { --sa-star: #F2A900; }

/* ---------- section scaffolding ---------- */
.sa-sec { padding-block: 48px; }
.sa-sec-tight { padding-block: 18px 34px; }
.sa-sec-surface { background: var(--surface); border-block: 1px solid var(--line); }
.sa-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.sa-sec-head h2 { margin-top: 6px; font-size: var(--fs-3xl); letter-spacing: -.02em; }
.sa-sec-head p { color: var(--ink-3); margin-top: 8px; max-width: 58ch; }
.sa-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.sa-eyebrow-accent { color: var(--accent); }
.grid-products.sa-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-products.sa-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sa-sec { padding-block: 34px; } .sa-sec-head h2 { font-size: var(--fs-2xl); } }

/* ====================================================================
   HOME: a big question, a search bar in the middle, devices floating around it
   ==================================================================== */
.sa-stage { position: relative; overflow-x: clip; max-width: 1440px; margin-inline: auto; min-height: 640px; display: grid; place-items: center; padding: 70px max(16px, env(safe-area-inset-right, 0px)) 70px max(16px, env(safe-area-inset-left, 0px)); isolation: isolate; }
.sa-stage::before { content: ""; position: absolute; inset: 4% 12%; z-index: -2; background: radial-gradient(closest-side, var(--brand-soft), transparent); opacity: .9; }
.sa-center { width: min(680px, 100%); display: grid; justify-items: center; text-align: center; gap: 18px; position: relative; z-index: 2; }
.sa-center h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.sa-sub { color: var(--ink-2); font-size: var(--fs-lg); max-width: 46ch; text-wrap: balance; }
.sa-search { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 8px 8px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-2); transition: box-shadow .15s, border-color .15s; }
.sa-search:focus-within { border-color: var(--brand); box-shadow: var(--ring), var(--shadow-2); }
.sa-search-ico { display: grid; color: var(--ink-3); }
.sa-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-lg); }
.sa-search input::placeholder { color: var(--ink-3); }
.sa-search input::-webkit-search-cancel-button { display: none; }
.sa-search .btn { border-radius: 999px; padding-inline: 28px; }
.sa-search .suggest { text-align: left; border-radius: 20px; }
.sa-asks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sa-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); transition: border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.sa-ask .ico { color: var(--brand); transition: transform .15s; }
.sa-ask:hover { border-color: var(--brand); color: var(--brand-strong); box-shadow: var(--shadow-1); }
.sa-ask:hover .ico { transform: translateX(3px); }
.sa-ask-wa { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.sa-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sa-float { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 4 / 3; pointer-events: auto; transform: rotate(var(--r)); animation: sa-bob 7s ease-in-out var(--d) infinite; outline-offset: 6px; }
.sa-float-art { position: absolute; inset: 0; display: block; transition: transform .25s ease; filter: drop-shadow(0 18px 18px rgba(13, 27, 32, .16)); }
.sa-float-art .pimg-art { padding: 0; }
.sa-float-art .pimg-photo { border-radius: 16px; padding: 0; object-fit: cover; }
.sa-float:hover .sa-float-art, .sa-float:focus-visible .sa-float-art { transform: scale(1.1); }
.sa-float-tip { position: absolute; left: 50%; top: calc(100% - 6px); transform: translate(-50%, 6px); padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.sa-float:hover .sa-float-tip, .sa-float:focus-visible .sa-float-tip { opacity: 1; transform: translate(-50%, 0); }
@keyframes sa-bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-12px) rotate(calc(var(--r) * -.6)); } }
:root[data-theme="dark"] .sa-float-art { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sa-float-art { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); } }
@media (prefers-reduced-motion: reduce) { .sa-float { animation: none; } }
.sa-trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding-block: 18px; border-block: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }
.sa-trust li { display: inline-flex; align-items: center; gap: 9px; }
.sa-trust .ico { color: var(--brand); }
.sa-home .sa-sec-head h2 { font-size: var(--fs-2xl); }
.sa-home .sa-sec-tight { padding-block: 44px 12px; }
@media (max-width: 899px) {
  .sa-stage { min-height: 0; padding-block: 190px 190px; }
  .sa-float { left: var(--mx); top: var(--my); width: var(--mw); }
  .sa-float[data-m="0"] { display: none; }
  .sa-float-tip { display: none; }
  .sa-sub { font-size: var(--fs); }
  .sa-search { padding-left: 14px; }
  .sa-search .btn { padding-inline: 18px; min-height: 46px; }
}
@media (max-width: 480px) { .sa-search-ico { display: none; } .sa-search { padding-left: 18px; } .sa-ask { font-size: 13px; padding-inline: 13px; } }

/* ====================================================================
   SHOP
   ==================================================================== */
.sa-shop-top { background: var(--surface); border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.sa-crumbs { flex-wrap: nowrap; overflow: hidden; }
.sa-crumbs > * { flex: none; white-space: nowrap; }
.sa-crumbs > .sa-crumb-last { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 600; }
.sa-shop-title h1 { font-size: var(--fs-3xl); letter-spacing: -.025em; }
.sa-shop-title p { margin-top: 6px; color: var(--ink-3); }
.sa-pills { display: none; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sa-pills::-webkit-scrollbar { display: none; }
.sa-pill-btn { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: var(--fs-sm); font-weight: 600; }
.sa-pill-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.sa-shop-body { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 24px 24px; }
.sa-side .sa-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.sa-fg { padding: 18px 18px 16px; border-bottom: 1px solid var(--line); }
.sa-fg:last-child { border-bottom: 0; }
.sa-fg h3 { margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.sa-catlist { display: grid; gap: 2px; }
.sa-catitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); text-align: left; transition: background .12s; }
.sa-catitem:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.sa-catitem[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.sa-catitem:disabled { opacity: .42; cursor: default; }
.sa-catitem em, .sa-check em { font-style: normal; font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sa-catitem[aria-pressed="true"] em { color: inherit; }
.sa-checks { display: grid; gap: 1px; }
.sa-check { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.sa-check:hover { background: var(--surface-2); }
.sa-check-t { flex: 1; min-width: 0; }
.sa-check.is-zero { opacity: .45; }
.sa-check.sa-more:not(.is-sel) { display: none; }
.sa-filters.is-brands-open .sa-check.sa-more { display: flex; }
.sa-showmore { margin-top: 6px; padding: 6px; border: 0; background: none; color: var(--brand); font-weight: 700; font-size: var(--fs-sm); }
.sa-showmore:hover { text-decoration: underline; }
.sa-price-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.sa-price-in label { position: relative; display: block; }
.sa-naira { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.sa-price-in .input { padding: 0 8px 0 24px; font-variant-numeric: tabular-nums; }
.sa-dash { color: var(--ink-3); }
.sa-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sa-range { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.sa-range:hover { border-color: var(--brand); color: var(--brand); }
.sa-range[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.sa-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; }

.sa-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.sa-filter-btn { display: none; position: relative; }
.sa-fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; }
.sa-count { color: var(--ink-3); } .sa-count b { color: var(--ink); }
.sa-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sa-sort { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.sa-sort .select { width: auto; min-width: 190px; }
.sa-seg { display: inline-flex; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.sa-seg button { display: grid; place-items: center; width: 42px; height: 40px; border: 0; background: none; color: var(--ink-3); }
.sa-seg button:hover { color: var(--ink); }
.sa-seg button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); }
.sa-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.sa-chips .chip { height: 32px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.sa-chips .chip button { color: inherit; }
.sa-chips .chip button:hover { background: var(--brand); color: var(--brand-ink); }
.sa-clear { padding: 6px 8px; border: 0; background: none; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sa-rows { display: grid; gap: 14px; }
.sa-rows .pcard-row .pcard-hl { -webkit-line-clamp: 3; }
.sa-rows .pcard-row .pcard-media { width: 260px; }
.sa-noresult { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-l); }
.sa-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.sa-empty-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.sa-empty-cats .chip:hover { background: var(--brand-soft); color: var(--brand-strong); }
.sa-drawer-foot { display: flex; gap: 10px; width: 100%; } .sa-drawer-foot .btn-primary { flex: 1; }
.drawer .sa-filters { margin: -4px 0 0; }
.drawer .sa-fg { padding-inline: 0; }

@media (max-width: 900px) {
  .sa-shop-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; }
  .sa-side { display: none; }
  .sa-pills { display: flex; }
  .sa-filter-btn { display: inline-flex; }
  .sa-tools { margin-left: 0; width: 100%; } .sa-sort { flex: 1; } .sa-sort .select { flex: 1; min-width: 0; }
  .sa-count { margin-left: auto; }
}
@media (max-width: 560px) {
  .sa-shop-title h1 { font-size: var(--fs-2xl); }
  .sa-rows .pcard-row .pcard-media { width: auto; }
}
@media (pointer: coarse) { .sa-check, .sa-catitem { min-height: 44px; } .sa-range { min-height: 38px; } }

/* ====================================================================
   PRODUCT
   ==================================================================== */
.sa-draft { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 12px 16px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); }
.sa-pgrid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 10px; }
.sa-gallery { position: sticky; top: 132px; min-width: 0; }
.sa-stage-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-xl); background: var(--media-bg); border: 1px solid var(--line); }
.sa-slides, .sa-slide { position: absolute; inset: 0; }
.sa-slide { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; cursor: zoom-in; }
.sa-slide.is-on { opacity: 1; visibility: visible; }
.sa-slide .pimg-art { padding: 5% 8%; }
.sa-stage-badges { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 80px); pointer-events: none; }
.sa-zoom-btn, .sa-nav { position: absolute; z-index: 3; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-1); backdrop-filter: blur(6px); }
.sa-zoom-btn:hover, .sa-nav:hover { background: var(--surface); color: var(--brand); }
.sa-zoom-btn { top: 12px; right: 12px; width: 40px; height: 40px; }
.sa-nav { top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
.sa-prev { left: 12px; } .sa-next { right: 12px; }
.sa-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 120px)); gap: 10px; margin-top: 12px; }
.sa-thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid var(--line); border-radius: var(--r); background: var(--media-bg); }
.sa-thumb .pimg-art { padding: 5px; }
.sa-thumb:hover { border-color: var(--line-strong); }
.sa-thumb.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.sa-zoom { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--media-bg); overflow: hidden; }

.sa-info { min-width: 0; }
.sa-kicker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.sa-brandlink { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.sa-brandlink:hover { text-decoration: underline; }
.sa-sku { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.sa-title { margin: 8px 0 12px; font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; }
.sa-rate-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: var(--fs-sm); }
.sa-rate-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sa-buybox { display: grid; gap: 18px; margin-top: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.sa-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.sa-price strong { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.7rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sa-price s { color: var(--ink-3); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.sa-save { padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-sm); font-weight: 700; }
.sa-price-note { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-sm); }
.sa-cond { padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); }
.sa-cond-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.sa-cond p { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.sa-cond-unit { display: block; margin-top: 4px; } .sa-cond-unit b { color: var(--ink); }
.sa-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sa-hl li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.sa-hl svg { margin-top: 2px; color: var(--brand); }
.sa-stock { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-sm); }
.sa-stock > span:last-child { color: var(--ink-3); }
.sa-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.sa-stock.is-in b { color: var(--ok); }
.sa-stock.is-low .sa-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } .sa-stock.is-low b { color: var(--accent); }
.sa-stock.is-out .sa-dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); } .sa-stock.is-out b { color: var(--bad); }
.sa-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.sa-qty { height: 52px; } .sa-qty button { height: 50px; width: 42px; } .sa-qty input { height: 50px; }
.sa-add, .sa-buy { height: 52px; min-height: 52px; }
.sa-notify { grid-column: 1 / -1; }
.sa-secondary { display: flex; flex-wrap: wrap; gap: 10px; }
.sa-secondary .btn { flex: 1 1 150px; min-height: 44px; }
.sa-tbtn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.sa-tbtn[data-act="wish"][aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.sa-tbtn[data-act="wish"][aria-pressed="true"] svg { fill: currentColor; }
.sa-wa { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.sa-wa:hover { background: var(--ok-soft); color: var(--ok); }
.sa-est { margin-top: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.sa-est-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.sa-est-t { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; } .sa-est-t svg { color: var(--brand); }
.sa-est-sel { flex: 1 1 220px; max-width: 280px; }
.sa-est-out { margin-top: 12px; }
.sa-est-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: var(--fs-sm); }
.sa-est-row > span { color: var(--ink-3); } .sa-est-row b { text-align: right; } .sa-est-row b small { display: block; color: var(--ink-3); font-weight: 500; }
.sa-est-row b.is-ok { color: var(--ok); }
.sa-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sa-promises li { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--r-l); background: var(--brand-soft); color: var(--brand-strong); }
.sa-promises b { display: block; color: var(--ink); font-size: var(--fs-sm); line-height: 1.3; } .sa-promises small { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.35; }

.sa-tabs { margin-top: 52px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.sa-tabs .tabs { padding-inline: 12px; }
.sa-tabs .tabs button { padding: 16px 16px; }
.sa-tabpanel { padding: 30px; }
.sa-tabpanel h3 { font-size: var(--fs-xl); }
.sa-desc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; }
.sa-desc p { max-width: 64ch; margin-top: 10px; color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.7; }
.sa-desc h4 { margin: 24px 0 12px; font-size: var(--fs); }
.sa-inbox { align-self: start; padding: 22px; border-radius: var(--r-l); background: var(--surface-2); } .sa-inbox h4 { margin-top: 0; }
.sa-bullets { display: grid; gap: 10px; }
.sa-bullets li { display: flex; align-items: flex-start; gap: 10px; } .sa-bullets svg { margin-top: 3px; color: var(--brand); }
.sa-bullets-lg { gap: 14px; }
.sa-specs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 44px; }
.sa-specs-wrap h3 { margin-bottom: 8px; }
.sa-specs-wrap .kv > div { justify-content: flex-start; gap: 24px; }
.sa-specs-wrap .kv dt { flex: 0 0 34%; max-width: 200px; } .sa-specs-wrap .kv dd { text-align: left; font-weight: 500; }
.sa-rsum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.sa-rsum-score { display: grid; gap: 4px; justify-items: start; }
.sa-rsum-score b { font-family: var(--font-display); font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.sa-rsum-score small { color: var(--ink-3); }
.sa-bars { display: grid; gap: 7px; max-width: 440px; width: 100%; }
.sa-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.sa-bar > span { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; } .sa-bar svg { color: var(--sa-star); fill: currentColor; }
.sa-bar em { color: var(--ink-3); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.sa-rsum-cta p { margin-bottom: 10px; color: var(--ink-2); }
.sa-rform { display: grid; gap: 16px; max-width: 640px; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface-2); }
.sa-rform h4 { font-size: var(--fs-lg); }
.sa-rate { min-width: 0; margin: 0; padding: 0; border: 0; } .sa-rate legend { padding: 0; margin-bottom: 6px; }
.sa-rate-stars { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.sa-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sa-rate-stars label { padding: 4px; color: var(--line-strong); cursor: pointer; transition: color .1s, transform .1s; }
.sa-rate-stars label svg { display: block; }
.sa-rate-stars input:checked ~ label, .sa-rate-stars label:hover, .sa-rate-stars label:hover ~ label { color: var(--sa-star); }
.sa-rate-stars input:checked ~ label svg, .sa-rate-stars label:hover svg, .sa-rate-stars label:hover ~ label svg { fill: currentColor; }
.sa-rate-stars input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 8px; }
.sa-rform-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sa-reviews { margin-top: 6px; }
.sa-review { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sa-review:last-child { border-bottom: 0; }
.sa-review-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; }
.sa-review-top time { margin-left: auto; color: var(--ink-3); font-size: var(--fs-sm); }
.sa-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: var(--fs-xs); font-weight: 700; }
.sa-review p { margin-top: 8px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.sa-noreviews { padding: 28px 0 6px; } .sa-more-note { padding-top: 8px; font-size: var(--fs-sm); }
.sa-deliv { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; }
.sa-deliv h3 { margin-bottom: 14px; }
.sa-note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ink-3); font-size: var(--fs-sm); }

.sa-sticky { display: none; }
.sa-notify-form { margin-top: 14px; }

@media (max-width: 1000px) {
  .sa-pgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sa-gallery { position: static; }
  .sa-desc, .sa-specs-wrap, .sa-deliv { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sa-rsum { grid-template-columns: auto minmax(0, 1fr); } .sa-rsum-cta { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sa-product { padding-bottom: 78px; }
  .sa-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; align-items: center; gap: 12px;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -12px 28px -14px rgba(0, 0, 0, .35);
    transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .sa-sticky.is-on { transform: none; visibility: visible; }
  .sa-sticky-info { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
  .sa-sticky-info b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
  .sa-sticky-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: var(--fs-xs); }
  .sa-sticky .btn { min-height: 46px; flex: none; }
  .view-product.sa-bar-on ~ .compare-tray { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0; }
  .view-product.sa-bar-on ~ .wa-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .view-product.sa-bar-on ~ .compare-tray:not([hidden]) ~ .wa-fab { bottom: calc(152px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .sa-buybox { padding: 16px; border-radius: var(--r-l); }
  .sa-actions { grid-template-columns: auto minmax(0, 1fr); } .sa-buy { grid-column: 1 / -1; }
  .sa-hl { display: flex; flex-wrap: wrap; gap: 6px; }
  .sa-hl li { padding: 7px 12px; border-radius: 999px; }
  .sa-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sa-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sa-secondary .btn { padding: 0 8px; font-size: var(--fs-sm); flex: none; min-width: 0; }
  .sa-wa { grid-column: 1 / -1; }
  .sa-promises { grid-template-columns: 1fr; }
  .sa-tabpanel { padding: 20px 16px; }
  .sa-tabs .tabs { padding-inline: 4px; } .sa-tabs .tabs button { padding: 14px 12px; }
  .sa-rsum { grid-template-columns: 1fr; gap: 20px; }
  .sa-review { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .sa-review-top time { margin-left: 0; flex-basis: 100%; }
  .sa-est { padding: 16px; } .sa-est-sel { max-width: none; flex-basis: 100%; }
  .sa-rform { padding: 16px; }
}

/* ====================================================================
   WISHLIST + COMPARE (shared page head)
   ==================================================================== */
.sa-page { padding-bottom: 30px; }
.sa-pagehead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin: 8px 0 26px; }
.sa-pagehead h1 { font-size: var(--fs-3xl); letter-spacing: -.025em; }
.sa-pagehead p { margin-top: 6px; color: var(--ink-3); }
.sa-pagehead-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .sa-pagehead h1 { font-size: var(--fs-2xl); } .sa-pagehead-actions { width: 100%; } .sa-pagehead-actions .btn { flex: 1; } }

.sa-howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sa-step { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-family: var(--font-display); font-weight: 800; }
.sa-howto p { margin-top: 6px; color: var(--ink-3); }
.sa-howto-cta { margin-top: 30px; text-align: center; }
@media (max-width: 760px) { .sa-howto { grid-template-columns: 1fr; gap: 12px; } }

.sa-cmp-page { padding-bottom: 96px; }
.sa-cmp-opts { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-bottom: 14px; padding: 8px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.sa-cmp-opts .sa-toggle { gap: 14px; font-weight: 600; }
.sa-cmp-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.sa-cmp { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.sa-cmp th, .sa-cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); background: var(--surface); }
.sa-cmp td + td, .sa-cmp th + td { border-left: 1px solid var(--line); }
.sa-cmp tr:last-child > * { border-bottom: 0; }
.sa-cmp th[scope="row"] { position: sticky; left: 0; z-index: 2; width: 168px; font-weight: 600; color: var(--ink-2); }
.sa-cmp td { overflow-wrap: anywhere; }
.sa-cmp-top > * { border-bottom: 1px solid var(--line-strong); }
.sa-cmp-sec th { position: sticky; left: 0; z-index: 2; padding: 10px 16px; background: var(--surface-2); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sa-cmp.is-hl tr.is-diff > * { background: color-mix(in srgb, var(--brand-soft) 48%, var(--surface)); }
.sa-diff-dot { display: none; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.sa-cmp.is-hl .sa-diff-dot { display: inline-block; }
.sa-cmp.is-only tr.is-same { display: none; }
.sa-cmp-card { position: relative; display: grid; gap: 8px; align-content: start; }
.sa-cmp-x { position: absolute; top: 6px; right: 6px; z-index: 3; width: 32px; height: 32px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-1); }
.sa-cmp-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--media-bg); }
.sa-cmp-brand { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sa-cmp-name { min-height: 2.6em; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sa-cmp-card .price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: 1.4em; }
.sa-cmp-corner { vertical-align: bottom !important; }
.sa-cmp-corner b { display: block; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink); }
.sa-cmp-corner small { display: block; margin-top: 2px; color: var(--ink-3); font-weight: 500; }
.sa-cmp-name:hover { color: var(--brand); }
.sa-cmp-add { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 300px; padding: 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-l); color: var(--ink-3); text-align: center; transition: border-color .15s, background .15s; }
.sa-cmp-add:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.sa-cmp-add > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.sa-cmp-add b { color: var(--ink); } .sa-cmp-add small { max-width: 22ch; }
.sa-cmp-empty { background: var(--surface); }
.sa-cmp-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sa-tag { display: inline-flex; align-items: center; height: 22px; margin: 2px 0 0 8px; padding: 0 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.sa-avail { font-weight: 700; } .sa-avail.is-in { color: var(--ok); } .sa-avail.is-low { color: var(--accent); } .sa-avail.is-out { color: var(--bad); }
.sa-cmp-hl { display: grid; gap: 5px; }
.sa-cmp-hl li { position: relative; padding-left: 14px; font-size: var(--fs-sm); }
.sa-cmp-hl li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.sa-cmp-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 18px; } .sa-cmp-hint > .ico { color: var(--brand); }
.sa-cmp-hint > div { flex: 1 1 260px; } .sa-cmp-hint p { color: var(--ink-3); margin-top: 2px; }
@media (max-width: 640px) {
  .sa-cmp { min-width: 570px; }
  .sa-cmp th[scope="row"] { width: 96px; padding: 10px; font-size: 12.5px; }
  .sa-cmp td { padding: 10px; font-size: var(--fs-sm); }
  .sa-cmp-sec th { padding: 8px 10px; }
  .sa-cmp-add { min-height: 220px; padding: 12px; }
}

/* ---------- product cards inside Store A pages: keep the price and the Add button tidy on narrow screens ---------- */
@media (max-width: 520px) {
  :is(.sa-home, .sa-shop, .sa-page, .sa-product) .pcard-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  :is(.sa-home, .sa-shop, .sa-page, .sa-product) .pcard-foot .btn { width: 100%; min-height: 40px; }
  :is(.sa-home, .sa-shop, .sa-page, .sa-product) .pcard-foot .price { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
}

/* In dark mode the light button on the deep zones becomes the brand button, so it still reads as the main action. */
@media (prefers-color-scheme: dark) {
}

/* list layout: keep the rating clear of the wishlist and compare buttons */
.sa-rows .pcard-row .pcard-meta, .sa-rows .pcard-row .pcard-title { padding-right: 46px; }
@media (max-width: 560px) { .sa-rows .pcard-row .pcard-meta, .sa-rows .pcard-row .pcard-title { padding-right: 0; } }

/* three product columns beside the filter panel on wider screens */
@media (min-width: 1000px) { .sa-main .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-float:hover, .sa-float:focus-visible { animation-play-state: paused; }

/* ---------- product page: quiet. One main button, plain text for the rest, no boxes ---------- */
.shell-store .sa-buybox { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; gap: 20px; }
.shell-store .sa-save { padding: 0; background: none; color: var(--accent); }
.shell-store .sa-cond { padding: 0; background: none; border-radius: 0; }
.shell-store .sa-buybox .badge { height: auto; padding: 0; border-radius: 0; background: none; font-weight: 700; gap: 7px; }
.shell-store .sa-buybox .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.shell-store .sa-hl { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.shell-store .sa-hl li { padding: 0; border: 0; border-radius: 0; color: var(--ink-2); font-weight: 500; }
.shell-store .sa-hl svg { color: var(--ink-3); }
.shell-store .sa-buy { background: none; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.shell-store .sa-buy:hover { background: var(--surface-2); border-color: var(--ink-3); }
.shell-store .sa-secondary { gap: 4px 22px; }
.shell-store .sa-secondary .btn { flex: 0 0 auto; min-height: 36px; padding-inline: 0; border: 0; background: none; color: var(--ink-2); box-shadow: none; }
.shell-store .sa-secondary .btn:hover { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.shell-store .sa-tbtn[aria-pressed="true"], .shell-store .sa-tbtn[data-act="wish"][aria-pressed="true"] { background: none; color: var(--ink); }
.shell-store .sa-wa, .shell-store .sa-wa:hover { background: none; color: var(--ok); }
.shell-store .sa-est { padding: 18px 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.shell-store .sa-promises li { padding: 0; background: none; border-radius: 0; color: var(--ink-3); }
.shell-store .sa-tabs { background: none; border: 0; border-radius: 0; }
.shell-store .sa-tabs .tabs { padding-inline: 0; }
.shell-store .sa-tabpanel { padding: 30px 0; }
.shell-store .tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.shell-store .sa-buybox .badge-new { color: var(--brand); }
.shell-store .sa-buybox .badge-dark { color: var(--ink); }
.shell-store .sa-buybox .badge-sale { color: var(--accent); }
.shell-store .sa-buybox .badge-used { color: var(--ink-2); box-shadow: none; }

/* ---------- product cards: picture, name, price. Buttons appear on hover (always shown on touch). ---------- */
.shell-store .pcard { background: none; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.shell-store .pcard:hover { box-shadow: none; transform: none; border-color: transparent; }
.shell-store .pcard-media { border-radius: var(--r-l); }
.shell-store .pcard-body { padding: 12px 2px 0; }
.shell-store .pcard-badges .badge { height: auto; padding: 0; background: none; color: var(--accent); font-weight: 700; }
.shell-store .pcard-badges .badge-dark { color: var(--ink); }
.shell-store .pcard-foot .btn { background: none; color: var(--brand); padding-inline: 0; min-height: 32px; box-shadow: none; }
.shell-store .pcard-foot .btn:hover { background: none; color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .shell-store .pcard:not(:hover):not(:focus-within) .pcard-tools .icon-btn:not([aria-pressed="true"]),
  .shell-store .pcard:not(:hover):not(:focus-within) .pcard-foot .btn { opacity: 0; }
  .shell-store .pcard .pcard-tools .icon-btn, .shell-store .pcard .pcard-foot .btn { transition: opacity .12s; }
}
/* mid-size screens: smaller floating devices so they never sit on the headline */
@media (min-width: 900px) and (max-width: 1199px) { .sa-float { width: calc(var(--w) * .68); } .sa-stage h1 { position: relative; z-index: 2; } }
