/* EARSHOT — concept AirPods store
   Visual language: soft grey canvas, big rounded cards, frosted pills,
   gradient "phone" cards and dot orbs (from the UI Templates folder). */

:root {
  --bg: #EEEEF1;
  --bg-2: #F7F7F9;
  --ink: #0E0F12;
  --muted: #8C8E96;
  --line: rgba(14, 15, 18, .08);
  --white: #FFFFFF;
  --blue: #1E6BFF;
  --blue-2: #0B52E8;
  --c1: #5A8DFF;
  --c2: #1C45C4;
  --glow: #A9C6FF;
  --radius-xl: 64px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow-soft: 0 18px 50px rgba(28, 34, 58, .10), 0 2px 6px rgba(28, 34, 58, .05);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --deck-top: 52vh;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #07090D;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 999px; }

/* subtle dot grid behind the intro (template "Helpful Empty Spaces") */
.shop::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 60%;
  background-image: radial-gradient(rgba(14,15,18,.07) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ---------- Icons ---------- */
.icon-btn svg, .round-btn svg, .btn svg, .feat-icon svg, .empty-icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */
.topbar {
  position: fixed; z-index: 40; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(16px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(160deg, #3B7BFF, #1446D8);
  box-shadow: 0 6px 16px rgba(30,107,255,.35), inset 0 1px 0 rgba(255,255,255,.35);
  display: grid; place-items: center;
}
.brand-mark canvas { width: 26px; height: 26px; }
.brand-word { font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); }
.nav-link { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s, box-shadow .3s; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); }

.icon-btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease);
}
.icon-btn:hover { transform: scale(1.06); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(30,107,255,.4);
}

/* topbar over dark sections */
.topbar { transition: color .4s; }
.topbar .brand-word, .topbar .nav, .topbar .nav-link, .topbar .bag-btn { transition: color .4s, background .4s, box-shadow .4s; }
.topbar.on-dark .brand-word { color: #fff; }
.topbar.on-dark .nav { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.topbar.on-dark .nav-link { color: rgba(255,255,255,.6); }
.topbar.on-dark .nav-link:hover { color: #fff; }
.topbar.on-dark .bag-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

/* ---------- Intro (template: number pill + title + grey subtitle) ---------- */
.shop {
  position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
    var(--bg);
  border-radius: 56px 56px 0 0;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.intro {
  position: absolute; z-index: 5; left: 50%; top: clamp(92px, 12vh, 132px);
  transform: translateX(-50%); width: min(92vw, 820px);
  text-align: center; pointer-events: none;
}
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .08em; }
.mask > span { display: inline-block; will-change: transform; }
.num-pill {
  display: inline-grid; place-items: center; min-width: 64px; height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow-soft);
  font-size: 18px; font-weight: 500; color: var(--muted); margin-bottom: 16px;
}
.num-pill .mask { padding: 0; }
.title {
  margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(40px, 6.4vw, 84px);
}
.subtitle {
  margin: 12px auto 0; max-width: 660px; color: var(--muted);
  font-size: clamp(15px, 1.5vw, 20px); font-weight: 500; line-height: 1.35;
}

/* ---------- Deck: gradient card the products float over ---------- */
.deck {
  position: absolute; z-index: 1; left: 50%; top: var(--deck-top); bottom: -64px;
  width: min(1040px, calc(100vw - 340px)); transform: translateX(-50%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--c1) 0%, var(--c2) 92%);
  box-shadow: 0 -10px 60px rgba(28,34,58,.08), 0 40px 120px color-mix(in srgb, var(--c2) 45%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.deck-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 18%, color-mix(in srgb, var(--glow) 55%, transparent) 0%, transparent 70%),
    radial-gradient(30% 40% at 85% 75%, rgba(255,255,255,.10) 0%, transparent 70%);
  mix-blend-mode: screen;
}
.deck-orb, .ring { position: absolute; pointer-events: none; }
.deck-orb { opacity: .55; }
.ring-text {
  font-family: var(--font); font-weight: 800; font-size: 50px; letter-spacing: .14em;
  fill: rgba(255,255,255,.2);
}
.hint {
  position: absolute; left: 0; right: 0; bottom: calc(var(--bar-h, 84px) + 104px); margin: 0;
  text-align: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.6); pointer-events: none;
}

/* frosted bottom bar (template: "Mountain Vibes" player pill) */
.bar {
  position: absolute; left: 24px; right: 24px; bottom: 88px; z-index: 3;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 20px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: #fff;
}
.bar-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar-thumb {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.bar-thumb img { width: 78%; height: 78%; object-fit: contain; }
.bar-text { display: flex; flex-direction: column; min-width: 0; }
.bar-name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.bar-price { font-size: 14px; color: rgba(255,255,255,.72); font-weight: 500; }
.bar-mid { flex: 1; display: flex; justify-content: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.92);
}
.bar-actions { display: flex; gap: 8px; flex: none; }

.btn {
  height: 52px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-blue {
  background: linear-gradient(180deg, #3B82FF, var(--blue-2)); color: #fff;
  box-shadow: 0 14px 30px rgba(30,107,255,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* swatches (Max colour picker) */
.swatches { display: flex; gap: 10px; align-items: center; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; position: relative;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.15);
  transition: transform .35s var(--ease);
}
.swatch::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .35s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }
.swatch-label { font-size: 13px; font-weight: 600; opacity: .85; min-width: 70px; }

/* ---------- Stage (floating products) ---------- */
.stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.item {
  position: absolute; left: 0; top: 0;
  width: var(--S, 420px); height: var(--S, 420px);
  perspective: 1100px; pointer-events: auto; cursor: grab;
  will-change: transform, opacity;
  border-radius: 40px;
}
.shop.is-dragging .item { cursor: grabbing; }
.item-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.item-img, .item-depth, .item-glare {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.item-img { filter: drop-shadow(0 30px 40px rgba(10,20,40,.18)); }
.item-depth { filter: brightness(.8) saturate(.95); opacity: 0; }
.item-glare {
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.75) 47%, rgba(255,255,255,0) 60%);
  background-size: 260% 260%;
  mix-blend-mode: soft-light;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transform: translateZ(1px);
}
.item-shadow {
  position: absolute; left: 18%; right: 18%; bottom: -2%; height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8,14,30,.45), rgba(8,14,30,0));
  filter: blur(6px);
}

/* cursor label */
.cursor-pill {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
}
.cursor-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(30,107,255,.18); }

/* corners (template: bookmark bottom-left, arrow bottom-right) */
.corner { position: absolute; z-index: 6; bottom: 30px; display: flex; align-items: center; gap: 10px; }
.corner-left { left: clamp(16px, 4vw, 56px); flex-direction: column; align-items: flex-start; gap: 10px; }
.corner-right { right: clamp(16px, 4vw, 56px); }
.counter { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter b { color: var(--ink); font-weight: 700; }
.progress { width: 96px; height: 4px; border-radius: 99px; background: rgba(14,15,18,.08); overflow: hidden; }
.progress i { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .6s var(--ease); }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { transform: scale(1.08); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; color: #fff;
  background: radial-gradient(90% 70% at 50% 55%, #0F1D3F 0%, #07090D 62%);
  border-radius: 0 0 0 0;
}
.loader-top, .loader-bottom {
  position: absolute; left: clamp(16px, 4vw, 56px); right: clamp(16px, 4vw, 56px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5);
}
.loader-top { top: 26px; }
.loader-bottom { bottom: 34px; }
.loader-bottom b { color: var(--blue); }
.loader-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.loader-orb {
  position: absolute; left: 50%; top: 50%; width: min(78vh, 86vw); height: min(78vh, 86vw);
  transform: translate(-50%, -50%);
}
.loader-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.loader-num { font-weight: 600; letter-spacing: -.06em; line-height: .9; font-size: clamp(88px, 16vw, 220px); font-variant-numeric: tabular-nums; }
.loader-num .mask { padding: 0 .04em .06em; }
.loader-num sup { font-size: .28em; color: var(--blue); letter-spacing: 0; vertical-align: top; position: relative; top: .35em; margin-left: .06em; }
.loader-status { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.loader-status .mask { padding: 0; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--blue); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.45s; }
.eq i:nth-child(4) { animation-delay: -.1s; } .eq i:nth-child(5) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5B93FF, var(--blue)); box-shadow: 0 0 14px rgba(30,107,255,.9); }
@media (max-width: 720px) {
  .loader-tag, .loader-bottom span:first-child { display: none; }
  .loader-bottom { justify-content: center; }
}

/* ---------- Overlays ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(20,22,30,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin-inline: auto;
  width: min(1180px, 100vw); height: min(92vh, 980px);
  transform: translateY(104%);
  border-radius: 48px 48px 0 0; background: var(--bg-2);
  box-shadow: 0 -30px 80px rgba(20,22,30,.18);
  overflow: hidden;
}
.sheet-dark { background: linear-gradient(180deg, #1D2833 0%, #0B0F14 70%); color: #fff; }
.sheet-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 28px clamp(16px, 4vw, 48px) 64px; }
.sheet-close { position: sticky; top: 0; margin-left: auto; z-index: 3; }
.sheet-dark .icon-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

/* detail layout */
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; margin-top: -24px; }
.detail-hero {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 48px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--c1), var(--c2));
  perspective: 1000px;
}
.detail-hero canvas { position: absolute; inset: 6%; width: 88%; height: 88%; opacity: .5; }
.detail-hero .detail-tilt { position: absolute; inset: 10%; transform-style: preserve-3d; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.detail-info .num-pill { margin-bottom: 18px; }
.detail-info h2 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.detail-info .lead { margin: 14px 0 0; color: var(--muted); font-size: 18px; font-weight: 500; line-height: 1.45; max-width: 460px; }
.price-row { display: flex; align-items: center; gap: 12px; margin: 26px 0; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -.04em; }
.price small { font-size: .5em; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 600; }
.tag-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #23C16B; }
.detail-swatches { margin: -6px 0 26px; color: var(--ink); }
.detail-swatches .swatch-label { color: var(--ink); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-actions .btn { height: 58px; padding: 0 28px; font-size: 16px; }

/* data cards (template: Interactive Data Cards / Visualize Your Numbers) */
.stats { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 16px; margin-top: 44px; }
.card {
  position: relative; border-radius: var(--radius-lg); padding: 24px; background: #fff;
  box-shadow: var(--shadow-soft); overflow: hidden; min-height: 210px;
}
.card-label { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card-value { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 14px; }
.card-value small { font-size: .45em; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.card-note { font-size: 14px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.card-battery { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.donut { width: 150px; height: 150px; flex: none; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.donut-center b { font-size: 26px; letter-spacing: -.03em; }
.donut-center span { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-dark { background: linear-gradient(180deg, #24323F, #0D1218); color: #fff; }
.card-dark .card-label, .card-dark .card-note { color: rgba(255,255,255,.6); }
.card-dark .wave { position: absolute; left: 0; right: 0; bottom: 18px; height: 90px; width: 100%; }
.trend { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(35,193,107,.16); color: #3BDB86; margin-left: 8px; vertical-align: middle; }
.mini-stack { display: grid; gap: 16px; }
.mini-stack .card { min-height: 0; padding: 20px 22px; }
.mini-stack .card-value { font-size: 30px; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.feature {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px;
  border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft);
}
.feat-icon {
  width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg, #F3F6FF, #E5ECFF); color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(30,107,255,.08);
}
.feat-icon svg { width: 26px; height: 26px; }
.feature b { display: block; font-size: 16px; letter-spacing: -.01em; }
.feature span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; font-weight: 500; }
.legal { margin: 36px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.sheet-dark .legal { color: rgba(255,255,255,.4); }

/* compare */
.compare-head { text-align: center; margin: -20px auto 34px; }
.compare-head .num-pill { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.compare-head h2 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.045em; line-height: 1; }
.compare-head p { margin: 12px 0 0; color: rgba(255,255,255,.55); font-size: 17px; font-weight: 500; }
.compare-wrap { overflow-x: auto; padding-bottom: 6px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 16px 12px; text-align: center; font-size: 15px; }
.compare-table tbody th { text-align: left; color: rgba(255,255,255,.55); font-weight: 600; white-space: nowrap; }
.compare-table tbody tr td, .compare-table tbody tr th { border-top: 1px solid rgba(255,255,255,.07); }
.compare-table td { font-weight: 600; }
.compare-table td.yes { color: #6FE3A6; }
.compare-table td.dim { color: rgba(255,255,255,.3); }
.compare-table .col-active { background: rgba(255,255,255,.05); }
.compare-table thead .col-active { border-radius: 24px 24px 0 0; }
.cmp-prod { display: grid; justify-items: center; gap: 10px; padding: 8px 4px; border-radius: 24px; width: 100%; }
.cmp-prod img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); transition: transform .5s var(--ease); }
.cmp-prod:hover img { transform: translateY(-4px) rotate(-4deg) scale(1.05); }
.cmp-prod b { font-size: 16px; }
.cmp-prod span { font-size: 13px; color: rgba(255,255,255,.55); font-weight: 600; }

/* bag drawer */
.drawer {
  position: fixed; z-index: 70; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px));
  border-radius: 40px; background: var(--bg-2); box-shadow: 0 30px 80px rgba(20,22,30,.25);
  display: flex; flex-direction: column; transform: translateX(110%);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 8px 28px; }
.drawer-head h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot { padding: 16px 20px 22px; }
.bag-row {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-soft);
}
.bag-thumb { width: 72px; height: 72px; flex: none; border-radius: 20px; background: linear-gradient(180deg, var(--c1), var(--c2)); display: grid; place-items: center; }
.bag-thumb img { width: 80%; height: 80%; object-fit: contain; }
.bag-meta { flex: 1; min-width: 0; }
.bag-meta b { display: block; font-size: 16px; letter-spacing: -.01em; }
.bag-meta span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font-weight: 700; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.bag-remove { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); align-self: flex-start; }
.bag-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 8px 16px; }
.bag-total span { color: var(--muted); font-weight: 600; }
.bag-total b { font-size: 28px; letter-spacing: -.03em; }
.drawer-foot .btn { width: 100%; height: 60px; font-size: 16px; }
.empty {
  margin: 8px 4px; padding: 44px 24px; border-radius: 30px; border: 1.5px dashed rgba(14,15,18,.14);
  display: grid; justify-items: center; text-align: center; gap: 10px;
}
.empty-icon {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: var(--blue);
  background: radial-gradient(circle at 35% 30%, #fff 0%, #E3ECFF 60%, #CFDDFF 100%);
  box-shadow: 0 20px 40px rgba(30,107,255,.25), inset 0 2px 6px rgba(255,255,255,.9);
  margin-bottom: 8px;
}
.empty-icon svg { width: 38px; height: 38px; }
.empty b { font-size: 18px; }
.empty p { margin: 0 0 8px; color: var(--muted); font-size: 14px; max-width: 260px; }

/* toast */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(20,22,30,.18); font-weight: 600; font-size: 14px;
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
}
.toast canvas { width: 34px; height: 34px; border-radius: 50%; background: #0E0F12; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .deck { width: calc(100vw - 48px); }
  .corner { display: none; }
}
@media (max-width: 900px) {
  .bar-mid .chip:nth-child(n+3) { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 0; }
  .detail-hero { max-width: 520px; width: 100%; justify-self: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > :first-child { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { padding: 16px; }
  .nav { display: none; }
  .icon-btn { width: 44px; height: 44px; }
  .intro { top: 76px; }
  .num-pill { height: 36px; min-width: 52px; font-size: 15px; margin-bottom: 12px; }
  .deck { width: calc(100vw - 24px); border-radius: 44px 44px 0 0; }
  .bar { left: 10px; right: 10px; bottom: 76px; flex-wrap: wrap; border-radius: 32px; padding: 10px; gap: 10px; }
  .bar-info { flex: 1; }
  .bar-thumb { width: 46px; height: 46px; }
  .bar-mid { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .bar-mid .chip { display: none; }
  .bar-actions { width: auto; }
  .bar-actions .btn { height: 46px; padding: 0 16px; font-size: 14px; }
  #detailsBtn { display: none; }
  .corner { display: none; }
  .cursor-pill { display: none; }
  .hint { font-size: 10px; letter-spacing: .18em; }
  .stats { grid-template-columns: 1fr; }
  .card-battery .donut { width: 120px; height: 120px; }
  .sheet { border-radius: 32px 32px 0 0; height: 94vh; }
  .detail-hero { border-radius: 32px; }
}
@media (hover: none) { .cursor-pill { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
