/* =====================================================================
   BYTEWELL storefront theme (loaded after app.css on public store pages only).
   Night (default): near-black ground, lime for actions, violet glow behind products.
   Light: white ground, purple for actions. Switch in Admin › Settings › Homepage.
   Fonts: Inter and Space Grotesk, self-hosted (SIL Open Font License).
   ===================================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root[data-theme] {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --r-xl: 28px; --r-lg2: 22px; --r-md2: 16px;
  --container: 1360px;
}
:root[data-theme="light"] {
  --cta: #6C4AE4; --cta-hover: #5A39D0; --on-cta: #FFFFFF;
  --violet: #6C4AE4; --violet-strong: #6C4AE4; --violet-soft: #F1EDFD;
  --stage: radial-gradient(circle at 50% 55%, #F6F3FF 0%, #FFFFFF 75%);
  --hero-stage: radial-gradient(circle at 50% 58%, #ECE6FD 0%, #F7F7F9 70%);
  --ticker-bg: #F7F7F9; --wa: #25D366; --wa-ink: #06210F;
  --shadow-card: 0 12px 32px rgba(23, 23, 23, .08);
  --chip-ring: #DCD3FA;
  color-scheme: light;
}
:root[data-theme="night"] {
  --bg: #09090E; --surface: #13131B; --subtle: #1A1A24;
  --text: #F2F2F7; --text-2: #A3A3B5; --text-3: #8E8EA3;
  --accent: #C6F432; --accent-hover: #D7FF5A; --accent-soft: rgba(198, 244, 50, .12); --accent-ring: rgba(198, 244, 50, .3);
  --on-accent: #0B0B10;
  --border: #23232F; --border-strong: #3A3A4E;
  --success: #4ADE80; --success-soft: #0F2A18;
  --warning: #FFB547; --warning-soft: #2A2010;
  --danger: #FF7A6B; --danger-soft: #2A1512;
  --info: #8FB8FF; --info-soft: #101B30;
  --header-bg: rgba(9, 9, 14, .88);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
  --cta: #C6F432; --cta-hover: #D7FF5A; --on-cta: #0B0B10;
  --violet: #B7A6FF; --violet-strong: #6C4AE4; --violet-soft: #1A1630;
  --stage: radial-gradient(circle at 50% 55%, #1F1A38 0%, #111118 72%);
  --hero-stage: radial-gradient(circle at 50% 58%, #2E2366 0%, #14121F 68%);
  --ticker-bg: #09090E; --wa: #25D366; --wa-ink: #06210F;
  --shadow-card: 0 0 0 1px #4A3FA0, 0 20px 44px rgba(0, 0, 0, .5);
  --chip-ring: #6C4AE4;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
body.store { font-family: var(--font); background: var(--bg); color: var(--text); }
.store h1, .store h2, .store h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }
.store .container { max-width: var(--container); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .store .container { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.store .price { font-family: var(--display); font-variant-numeric: tabular-nums; }
.store a:hover { color: var(--accent); }
.store .eyebrow { color: var(--accent); letter-spacing: .12em; }
.eyebrow-muted { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 650; color: var(--text-2); }
.eyebrow-violet { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 650; color: var(--violet); }
.fine-print { font-size: .78rem; color: var(--text-3); margin: 12px 0 0; }
.store .input, .store .select, .store .textarea { background: var(--surface); color: var(--text); }
.store .card { background: var(--surface); }
.store .btn-primary { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.store .btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--on-cta); }
.store .pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--border); color: var(--text-2); font-size: .78rem; font-weight: 600; }
:root[data-theme="night"] .alert-success { border-color: #1E5233; color: #B9F3CF; }
:root[data-theme="night"] .alert-error, :root[data-theme="night"] .alert-danger { border-color: #5A2A24; color: #FFC9C1; }
:root[data-theme="night"] .alert-warning { border-color: #4A3A1A; color: #FFE1A8; }
:root[data-theme="night"] .alert-info { border-color: #22365C; color: #C9DBFF; }
:root[data-theme="night"] .table tbody tr:hover td { background: var(--subtle); }
:root[data-theme="night"] .skeleton { background: linear-gradient(90deg, #1A1A24 25%, #23232F 50%, #1A1A24 75%); background-size: 200% 100%; }
:root[data-theme="night"] .chip:hover { background: rgba(198, 244, 50, .2); }

/* ---------------------------------------------------------------- buttons */
.btn-lime { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--cta); color: var(--on-cta); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn-lime:hover { background: var(--cta-hover); color: var(--on-cta) !important; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.btn-outline:hover { border-color: var(--text); color: var(--text) !important; }
.btn-outline.is-loading, .btn-lime.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn-outline.is-loading::after, .btn-lime.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text-3) transparent var(--text-3) transparent; animation: spin .8s linear infinite; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--text-2); color: var(--text) !important; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); font-weight: 700; font-size: .9rem; }
.btn-wa:hover { color: var(--wa-ink) !important; filter: brightness(1.06); }
.btn-ghost-pill { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); font-weight: 650; font-size: .9rem; }

/* ---------------------------------------------------------------- ticker + header */
.ticker { background: var(--ticker-bg); border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }
.ticker-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 36px; }
.ticker-items { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
.ticker-items::-webkit-scrollbar { display: none; }
.ticker-items span { display: inline-flex; align-items: center; gap: 8px; }
.ticker-items i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ticker-contact { display: flex; gap: 16px; flex: none; }
.ticker-contact a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767px) { .ticker-contact { display: none; } }

.store .site-header { top: env(safe-area-inset-top, 0px); border-bottom-color: var(--border); }
.store .header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; height: auto; padding: 14px 0; }
.store .header-main .menu-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; flex: none; }
.logo:hover { color: var(--text) !important; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--cta); color: var(--on-cta); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; }
.logo-word span { color: var(--cta); }
.store .header-search { max-width: 640px; width: 100%; justify-self: center; margin: 0; }
.store .header-search .input { height: 50px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--border); padding-left: 46px; color: var(--text); }
.store .header-search .input::placeholder { color: var(--text-3); }
.store .header-search .input:focus { background: var(--surface); border-color: var(--accent); }
.store .header-search .search-icon { left: 17px; top: 15px; }
.store .header-actions { display: flex; gap: 8px; align-items: center; }
.cart-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-weight: 700; font-size: .92rem; }
.cart-pill:hover { background: var(--cta-hover); color: var(--on-cta) !important; }
.store .cart-pill .cart-count { position: static; min-width: 22px; height: 22px; background: var(--on-cta); color: var(--cta); font-size: .75rem; }
.store .cart-pill .cart-count[data-count="0"] { display: grid; }
.store .suggest { background: var(--surface); border-color: var(--border); }
.store .suggest img { background: var(--stage); }
.store .cat-nav { border-top-color: var(--border); }
.store .cat-nav a { color: var(--text-2); }
.store .cat-nav a:hover, .store .cat-nav a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.store .drawer-panel { background: var(--surface); color: var(--text); }
.store .drawer-panel a:hover { background: var(--subtle); }
.store .drawer-panel .logo { padding: 0; }
.store .drawer-panel .logo:hover { background: none; }
@media (max-width: 960px) {
  .store .header-main .menu-toggle { display: inline-grid; }
  .store .header-main { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; }
}
@media (max-width: 700px) {
  .store .header-main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 10px; padding: 10px 0 12px; }
  .store .header-main .menu-toggle { display: none; }
  .store .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .store .header-search .input { height: 46px; }
  .store .header-search .search-icon { top: 13px; }
  .header-actions { grid-column: 3; }
  .hide-sm, .cart-label { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .logo { font-size: 1.25rem; }
}

/* ---------------------------------------------------------------- product cards (all store pages) */
.store .product-grid { gap: 14px; }
.store .product-card { background: var(--surface); border-color: var(--border); border-radius: var(--r-lg2); transition: border-color .2s, box-shadow .2s; }
.store .product-card:hover { border-color: transparent; box-shadow: var(--shadow-card); }
.store .product-card .pc-media { background: var(--stage); border-bottom: 1px solid var(--border); padding: 14px; }
.store .product-card .pc-media img { border-radius: 10px; }
.store .product-card .pc-body { gap: 7px; padding: 14px; min-width: 0; }
.store .product-card .pc-brand { color: var(--text-3); font-size: .7rem; letter-spacing: .1em; }
.store .product-card .pc-name { font-size: .92rem; font-weight: 600; margin: 0; line-height: 1.35; }
.store .product-card .pc-name a:hover { color: var(--violet); }
.store .product-card .pc-spec { color: var(--text-2); font-size: .8rem; }
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 4px; }
.store .pc-price .price { font-size: 1.2rem; font-weight: 700; }
.store .pc-price .price-old { margin: 0; }
.store .product-card .pc-add { width: 100%; height: 42px; border-radius: 12px; display: flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); background: var(--subtle); color: var(--text); font: inherit; font-weight: 650; font-size: .88rem; margin-top: 4px; }
.store .product-card .pc-add:hover:not(:disabled) { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.store .product-card .pc-add.is-loading { color: transparent; }
.badge-offer { background: var(--danger); color: #fff; }
.store .avail { font-size: .78rem; }

/* ---------------------------------------------------------------- home: top area */
.home-top { padding-top: 24px; }
.home-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.rail { border: 1px solid var(--border); border-radius: var(--r-lg2); background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.rail .eyebrow-muted { padding: 8px 10px 10px; }
.rail > a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; color: var(--text); font-size: .9rem; font-weight: 500; }
.rail > a:hover { background: var(--subtle); color: var(--text) !important; }
.rail-img { width: 36px; height: 36px; border-radius: 10px; background: var(--stage); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--violet); }
.rail-img .icon { width: 20px; height: 20px; }
.rail > a:hover .rail-img { color: var(--accent); border-color: var(--accent); }
.rail-name { flex: 1; min-width: 0; }
.rail-chev { color: var(--text-3); }
.rail-help { margin-top: 10px; padding: 14px; border-radius: var(--r-md2); background: var(--subtle); border: 1px solid var(--border); }
.rail-help p { font-size: .82rem; color: var(--text-2); margin: 6px 0 12px; }
.cat-chips { display: none; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 18px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.25; }
.chip-img { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--chip-ring), var(--violet)); display: grid; place-items: center; }
.chip-img .icon { width: 100%; height: 100%; border-radius: 50%; padding: 15px; background: var(--stage); border: 3px solid var(--bg); color: var(--violet); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: grid; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-lg2); background: var(--surface); color: var(--text); overflow: hidden; }
a.tile:hover { border-color: var(--border-strong); color: var(--text) !important; }
.tile-txt { padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile-txt h2 { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.15; }
.tile-txt p { margin: 0; color: var(--text-2); font-size: .9rem; }
.tile-go { margin-top: 4px; font-weight: 700; font-size: .88rem; color: var(--violet); }
.tile-pic { display: grid; place-items: center; padding: 16px; background: var(--stage); min-width: 0; min-height: 0; }
.tile-pic img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain; border-radius: 14px; }
.t-hero { grid-column: span 2; grid-row: span 2; grid-template-rows: minmax(0, 1fr) auto; }
.t-hero .tile-pic { background: var(--hero-stage); padding: 24px; }
.t-hero .tile-pic img { max-width: 400px; }
.t-hero h1 { margin: 2px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.08; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-hero h1 a:hover { color: var(--text) !important; }
.t-hero-text { grid-template-rows: auto; align-content: center; background: var(--hero-stage); }
.t-hero-text .tile-txt { padding: clamp(24px, 4vw, 48px); }
.tag-lime { align-self: flex-start; display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.hero-price .price { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.t-wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); }
.t-wide .tile-pic { padding: 12px; }
.t-pay { background: var(--violet-strong); border-color: var(--violet-strong); color: #FFFFFF; }
.t-pay .tile-txt { justify-content: space-between; height: 100%; }
.t-pay .eyebrow { color: #E7E0FF; margin: 0; }
.t-pay h2 { color: #FFFFFF; }
.t-pay p { color: #EFEBFF; }
.t-small { grid-template-rows: auto minmax(0, 1fr); }
.t-small .tile-pic img { max-width: 150px; }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.trust-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md2); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.trust-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.trust-tile strong { display: block; font-size: .88rem; }
.trust-tile span { font-size: .78rem; color: var(--text-2); }

/* ---------------------------------------------------------------- home: sections */
.home-section { margin-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 4px 0 0; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.sec-foot { display: flex; justify-content: center; margin-top: 22px; }
.tab-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.tab-pills::-webkit-scrollbar { display: none; }
.tab-pill { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); font-size: .88rem; font-weight: 600; }
.tab-pill:hover { border-color: var(--text-2); color: var(--text) !important; }
.tab-pill.is-active { background: var(--text); border-color: var(--text); color: var(--bg) !important; }
.home-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; transition: opacity .2s; }
.home-grid.is-loading { opacity: .45; }

.finder { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
.finder h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin: 8px 0 10px; }
.finder-ask .muted { max-width: 46ch; margin-bottom: 20px; }
.q-label { font-weight: 700; font-size: .9rem; margin: 0 0 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.opt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-weight: 600; font-size: .9rem; }
.opt:hover { border-color: var(--text-2); color: var(--text) !important; }
.opt[aria-pressed="true"] { background: var(--cta); border-color: var(--cta); color: var(--on-cta) !important; }
.finder-results { display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: opacity .2s; }
.finder-results.is-loading { opacity: .45; }
.match { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.match:hover { border-color: var(--violet); color: var(--text) !important; }
.match-img { width: 96px; height: 80px; border-radius: 12px; background: var(--stage); display: grid; place-items: center; overflow: hidden; }
.match-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.match-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.match-name { font-weight: 600; font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-why { font-size: .8rem; color: var(--text-2); }
.match-price { font-size: 1.05rem; text-align: right; }
.finder-note { font-size: .82rem; color: var(--text-2); margin: 4px 4px 0; }
.finder-empty { padding: 20px; border: 1px dashed var(--border-strong); border-radius: 18px; color: var(--text-2); }

.duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.duo-solo { grid-template-columns: minmax(0, 1fr); }
.duo-solo .duo-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
.duo-stack { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.panel { border: 1px solid var(--border); border-radius: var(--r-lg2); background: var(--surface); padding: clamp(18px, 2.4vw, 30px); min-width: 0; color: var(--text); }
.vs-panel h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 6px 0 0; }
.vs-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; margin: 16px 0 4px; }
.vs-head a { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.vs-head a > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs-img { display: grid; place-items: center; width: 100%; max-width: 150px; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--stage); }
.vs-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.vs { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88rem; }
.vs th, .vs td { text-align: left; padding: 11px 8px 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.vs th { color: var(--text-2); font-weight: 500; width: 28%; }
.vs td { font-weight: 600; }
.vs td.win { color: var(--accent); }
a.promo { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 16px; align-items: center; }
a.promo:hover { border-color: var(--border-strong); color: var(--text) !important; }
.promo h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin: 6px 0 8px; line-height: 1.2; }
.promo-go { font-weight: 700; font-size: .88rem; color: var(--violet); }
.promo-img { width: 130px; aspect-ratio: 1; border-radius: 16px; background: var(--stage); display: grid; place-items: center; }
.promo-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.promo-ico { width: 96px; height: 96px; justify-self: center; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.promo-ico .icon { width: 40px; height: 40px; }

.strip { border-radius: var(--r-xl); background: var(--violet-soft); border: 1px solid var(--border); padding: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.strip h2 { margin: 0 0 4px; }
.strip p { margin: 0; }

.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.brand-tile { min-height: 88px; padding: 12px; border-radius: var(--r-md2); border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-family: var(--display); font-weight: 700; font-size: 1.05rem; min-width: 0; transition: color .2s, border-color .2s; }
.brand-tile:hover { color: var(--text) !important; border-color: var(--border-strong); }
.brand-tile .brand-logo { height: 30px; width: auto; max-width: 100%; flex: none; }
.brand-tile .brand-logo.is-wordmark { height: auto; width: 100%; max-width: 116px; max-height: 30px; }
.brand-tile img.brand-logo { max-width: 120px; height: 36px; object-fit: contain; }
.brand-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.news { border-radius: var(--r-xl); background: var(--violet-soft); border: 1px solid var(--border); padding: clamp(22px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.news h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 6px; }
.news .muted { margin: 0; }
.news form { display: flex; gap: 10px; flex: 1 1 360px; max-width: 540px; }
.news .input { height: 52px; border-radius: 999px; padding: 0 20px; flex: 1; min-width: 0; background: var(--bg); }
.news-msg { flex-basis: 100%; margin: 0; font-size: .9rem; font-weight: 600; }
.news-msg.is-ok { color: var(--success); }
.news-msg.is-error { color: var(--danger); }

/* ---------------------------------------------------------------- footer */
.store .site-footer { background: var(--surface); border-top-color: var(--border); margin-top: 64px; }
.store .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer-brand .muted { margin: 12px 0 14px; max-width: 36ch; }
.store .site-footer h4 { color: var(--text-2); }
.store .site-footer ul a { color: var(--text); }
.store .footer-contact { margin-top: 4px; }
.pay-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.store .footer-bottom { border-top-color: var(--border); }

/* ---------------------------------------------------------------- bottom nav (phones) */
.bottom-nav { display: none; }
@media (max-width: 700px) {
  body.store { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; justify-content: space-around; align-items: flex-end;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--header-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
  .bottom-nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: .68rem; font-weight: 600; color: var(--text-3); }
  .bottom-nav a.is-active { color: var(--accent); }
  .bottom-nav .bn-search { flex: none; width: 58px; height: 58px; min-height: 0; margin-top: -26px; border-radius: 50%; background: var(--cta); color: var(--on-cta); border: 4px solid var(--bg); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
  .bottom-nav .bn-search:hover { color: var(--on-cta) !important; }
  .bn-count { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-size: .62rem; display: grid; place-items: center; }
  .bn-count[data-count="0"] { display: none; }
  .store .toast-wrap { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .home-shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .cat-chips { display: flex; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-hero { grid-column: span 2; grid-row: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .t-hero .tile-pic { order: 2; }
  .finder, .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-solo .duo-stack { grid-template-columns: minmax(0, 1fr); }
  .store .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-top { padding-top: 14px; }
  .home-section { margin-top: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .t-hero, .t-wide { grid-column: auto; }
  .t-hero { grid-template-columns: minmax(0, 1fr); }
  .t-hero .tile-pic { order: 0; padding: 16px; }
  .t-hero .tile-pic img { max-width: 250px; }
  .t-wide { grid-template-columns: minmax(0, 1fr) 120px; }
  .t-small { grid-template-columns: minmax(0, 1fr) 110px; grid-template-rows: auto; }
  .tile-txt { padding: 18px; }
  .hero-cta > * { flex: 1 1 auto; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .trust-tile { padding: 10px; gap: 10px; }
  .trust-tile span { display: none; }
  .trust-tile strong { font-size: .8rem; line-height: 1.3; }
  .trust-ico { width: 34px; height: 34px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .store .product-card .pc-body { padding: 10px; gap: 5px; }
  .store .product-card .pc-spec { display: none; }
  .store .pc-price .price { font-size: 1.05rem; }
  .store .product-card .pc-add { height: 40px; font-size: .82rem; }
  .match { grid-template-columns: 72px minmax(0, 1fr); }
  .match-img { width: 72px; height: 60px; }
  .match-price { grid-column: 2; text-align: left; }
  .vs-img { max-width: 110px; }
  a.promo { grid-template-columns: minmax(0, 1fr) 92px; }
  .promo-img { width: 92px; }
  .promo-ico { width: 72px; height: 72px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tile { min-height: 72px; }
  .news form { flex-direction: column; flex-basis: 100%; }
  .news .input { flex: none; }
  .news .btn-lime { width: 100%; }
  .store .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .t-wide, .t-small { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .home-grid, .finder-results { transition: none; } }

.nowrap-price { white-space: nowrap; }

/* ---------------------------------------------------------------- product page */
.pdp-wrap .breadcrumbs { padding-top: 16px; }
.pdp2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 8px; }
.pdp2-media { min-width: 0; }
.pdp2-gallery { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--hero-stage); padding: clamp(14px, 2.5vw, 28px); }
.pdp2-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 620px; margin: 0 auto; }
.pdp2-main img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.pdp2-badge { position: absolute; top: 4px; left: 4px; z-index: 1; background: var(--danger); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.pdp2-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; scrollbar-width: thin; }
.pdp2-thumbs button { flex: none; width: 76px; height: 76px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 6px; cursor: pointer; }
.pdp2-thumbs button.is-active, .pdp2-thumbs button:hover { border-color: var(--accent); }
.pdp2-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.pdp2-stats div { border: 1px solid var(--border); border-radius: var(--r-md2); background: var(--surface); padding: 14px; min-width: 0; }
.pdp2-stats b { display: block; font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--violet); overflow-wrap: anywhere; line-height: 1.2; }
.pdp2-stats span { font-size: .75rem; color: var(--text-2); }
.pdp2-buy { position: sticky; top: 96px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pdp2-brand { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.pdp2-buy h1 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.15; margin: 8px 0 6px; overflow-wrap: anywhere; }
.pdp2-ids { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--text-3); }
.pdp2-short { margin: 0; color: var(--text-2); }
.pdp2-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.pdp2-price .price { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1; }
.pdp2-stock { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md2); border: 1px solid var(--border); background: var(--subtle); font-size: .9rem; }
.pdp2-stock strong { display: block; }
.pdp2-stock span { color: var(--text-2); font-size: .82rem; }
.pdp2-stock .icon { color: var(--violet); margin-top: 1px; }
.pdp2-stock-in_stock { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.pdp2-stock-in_stock strong, .pdp2-stock-in_stock .icon { color: var(--success); }
.pdp2-stock-out_of_stock strong { color: var(--text-2); }
.pdp2-pay { border: 1px solid var(--border); border-radius: var(--r-md2); padding: 12px 14px; }
.pdp2-pay ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; color: var(--text-2); }
.pdp2-pay li { display: flex; gap: 8px; align-items: center; }
.pdp2-pay .icon { color: var(--violet); }
.pdp2-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pdp2-actions .qty { height: 48px; border-radius: 999px; overflow: hidden; border-color: var(--border-strong); }
.pdp2-actions .qty button, .pdp2-actions .qty input { background: transparent; color: var(--text); }
.pdp2-wide { width: 100%; }
.pdp2-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .82rem; color: var(--text-2); }
.pdp2-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.pdp2-ticks .icon { color: var(--violet); margin-top: 1px; }
.pdp2-ticks small { color: var(--text-3); }
.pdp2-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 40px; align-items: start; }
.pdp2-details h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 6px 0 14px; }
.store .pdp2-spec th { width: 38%; background: var(--subtle); color: var(--text-2); }
.store .pdp2-spec th, .store .pdp2-spec td { border-color: var(--border); overflow-wrap: anywhere; }
.pdp2-prose { color: var(--text); max-width: none; overflow-wrap: anywhere; }
.pdp2-prose ul { padding-left: 1.1em; }
.pdp2-prose li { margin: 4px 0; }
.pdp2-prose img { border-radius: 12px; }
.pdp2-sticky { display: none; }
@media (max-width: 960px) {
  .pdp2, .pdp2-details { grid-template-columns: minmax(0, 1fr); }
  .pdp2-buy { position: static; }
}
@media (max-width: 700px) {
  .pdp2-actions { grid-template-columns: auto minmax(0, 1fr); }
  .pdp2-actions .btn-lime { grid-column: 1 / -1; }
  .pdp2-thumbs button { width: 62px; height: 62px; }
  .pdp2-sticky { display: flex; position: fixed; z-index: 55; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--header-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
  .pdp2-sticky > div { display: flex; flex-direction: column; min-width: 0; }
  .pdp2-sticky .price { font-size: 1.15rem; font-weight: 700; }
  .pdp2-sticky .btn-lime { min-height: 44px; }
  body.store:has(.pdp2-sticky) { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- used / refurbished items */
.badge-used { background: var(--warning-soft); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }
.pc-badges { gap: 6px; flex-wrap: wrap; }
.pdp2-cond { margin-top: 8px; }
.pdp2-onrequest { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md2); border: 1px dashed var(--border-strong); color: var(--text-2); font-size: .86rem; }
.pdp2-onrequest .icon { color: var(--warning); margin-top: 2px; }

/* ---------------------------------------------------------------- categories */
.cat-nav-all { gap: 6px; color: var(--text) !important; font-weight: 650; }
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 28px; }
.subcat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--border); border-radius: var(--r-md2); background: var(--surface); color: var(--text); text-align: center; min-width: 0; }
.subcat-tile:hover { border-color: var(--accent); color: var(--text) !important; }
.subcat-tile.is-empty { opacity: .6; }
.subcat-img { width: 64px; height: 64px; border-radius: 14px; background: var(--stage); display: grid; place-items: center; overflow: hidden; color: var(--violet); }
.subcat-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.subcat-img .icon { width: 28px; height: 28px; }
.subcat-name { font-weight: 650; font-size: .88rem; line-height: 1.25; }
.subcat-count { font-size: .74rem; color: var(--text-3); }
.cat-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 24px; align-items: start; }
.cat-dir-item { border: 1px solid var(--border); border-radius: var(--r-lg2); background: var(--surface); padding: 14px; min-width: 0; }
.cat-dir-item.is-empty { opacity: .65; }
.cat-dir-head { display: flex; gap: 12px; align-items: center; color: var(--text); }
.cat-dir-head:hover { color: var(--accent) !important; }
.cat-dir-head strong { display: block; font-family: var(--display); font-size: 1.02rem; }
.cat-dir-img { width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--stage); display: grid; place-items: center; overflow: hidden; color: var(--violet); }
.cat-dir-img img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cat-dir-count { font-size: .78rem; color: var(--text-3); }
.cat-dir-subs { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.cat-dir-subs a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--text-2); font-size: .88rem; }
.cat-dir-subs a:hover { background: var(--subtle); color: var(--text) !important; }
.cat-dir-subs span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.drawer-group summary { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: var(--radius-sm); font-weight: 550; cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary:hover { background: var(--subtle); }
.drawer-chev { margin-left: auto; transition: transform .2s; }
.drawer-group[open] .drawer-chev { transform: rotate(180deg); }
.store .drawer-panel .drawer-sub { padding: 9px 8px 9px 44px; font-weight: 500; color: var(--text-2); }
.drawer-count { margin-left: auto; color: var(--text-3); font-size: .8rem; }

/* ---------------------------------------------------------------- cart, checkout, account: never wider than the screen */
.store .cart-layout, .store .account-layout, .store .listing { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .store .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (min-width: 900px) { .store .account-layout { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 1000px) { .store .listing { grid-template-columns: 260px minmax(0, 1fr); } }
.store .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
.store .cart-line-main > * { min-width: 0; }
.store .input-group .input { min-width: 0; }
.store .cart-line img { background: var(--stage); border-color: var(--border); }
.store .qty { border-color: var(--border-strong); }
.store .qty button, .store .qty input { background: var(--surface); color: var(--text); }
.store .summary { top: 96px; }
@media (max-width: 700px) { .store .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } .store .cart-line img { width: 64px; height: 64px; } }

/* ---------------------------------------------------------------- contact page */
.contact-head { max-width: 640px; margin: 8px 0 22px; }
.contact-head h1 { margin: 6px 0 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.contact-head p { color: var(--text-2); margin: 0; }
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.contact-way { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg2); background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 0; transition: border-color .15s, transform .15s; }
a.contact-way:hover { border-color: var(--accent); color: var(--text) !important; transform: translateY(-1px); }
.contact-way > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-way strong { font-family: var(--display); font-size: 1.05rem; }
.contact-way span span { color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; }
.contact-way em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.contact-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--subtle); color: var(--violet); flex: none; }
.contact-way.is-primary { background: var(--accent-soft); border-color: var(--accent-ring); }
.contact-way.is-primary .contact-ico { background: var(--wa); color: var(--wa-ink); }
.contact-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; padding-bottom: 40px; }
.contact-form h2, .contact-side h2 { margin: 0 0 6px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.contact-form form { margin-top: 16px; }
.contact-form .btn-lime { margin-top: 6px; }
.contact-side { display: grid; gap: 14px; }
.contact-side .panel p { margin: 6px 0 0; }
.contact-side .btn-outline { margin-top: 12px; }
.contact-links { list-style: none; margin: 8px 0 0; padding: 0; }
.contact-links li + li { border-top: 1px solid var(--border); }
.contact-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; color: var(--text); font-weight: 500; }
.contact-links a:hover { color: var(--accent) !important; }
@media (max-width: 900px) { .contact-main { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- category bar: "More" menu (app.js fits the bar) */
.cat-nav ul.is-fitted { overflow: visible; }
.cat-nav-more { position: relative; flex: none; }
.cat-nav-more > button { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: inherit; font-size: .88rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.cat-nav-more > button:hover, .cat-nav-more > button.is-active, .cat-nav-more.is-open > button { color: var(--text); border-bottom-color: var(--accent); }
.cat-nav-more > button .icon { transition: transform .15s; }
.cat-nav-more.is-open > button .icon { transform: rotate(180deg); }
.cat-nav .cat-nav-menu { display: none; position: absolute; right: 0; top: 100%; z-index: 60; flex-direction: column; gap: 0; min-width: 230px; max-height: 70vh; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.cat-nav-more.is-open .cat-nav-menu { display: flex; }
.cat-nav .cat-nav-menu a { display: flex; height: auto; padding: 10px 12px; border-bottom: 0; border-radius: 9px; }
.cat-nav .cat-nav-menu a:hover, .cat-nav .cat-nav-menu a.is-active { background: var(--subtle); color: var(--text); }
