/* ==========================================================================
   Bhaav — design system
   Violet from the MakePip mark, a warm "deal" orange, generous whitespace.
   ========================================================================== */

:root {
  --bg: #faf9ff;
  --surface: #ffffff;
  --surface-2: #f4f1ff;
  --surface-3: #ebe6fb;
  --line: #e6e1f6;
  --ink: #1a1433;
  --ink-2: #4b4570;
  --ink-3: #7d789b;

  --brand: #7c4dff;
  --brand-600: #6a38f0;
  --brand-700: #5628d1;
  --brand-50: #f1ecff;
  --on-brand: #ffffff;

  --deal: #ff6a3d;
  --deal-bg: #fff0ea;
  --good: #0c8f61;
  --good-bg: #e4f7ef;
  --warn: #a35a00;
  --warn-bg: #fff3dc;
  --bad: #c62646;
  --bad-bg: #ffe8ed;

  --shadow-1: 0 1px 2px rgba(45, 25, 110, 0.06), 0 6px 20px rgba(45, 25, 110, 0.07);
  --shadow-2: 0 18px 50px rgba(70, 35, 180, 0.22);
  --ring: 0 0 0 3px rgba(124, 77, 255, 0.35);

  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1200px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0d0920;
  --surface: #161033;
  --surface-2: #1e1744;
  --surface-3: #2a2160;
  --line: #2d2460;
  --ink: #f1eeff;
  --ink-2: #c3bce6;
  --ink-3: #8e86bd;
  --brand: #9b7bff;
  --brand-600: #8863ff;
  --brand-700: #7a52f5;
  --brand-50: #231a52;
  --on-brand: #12092d;
  --deal: #ff8a63;
  --deal-bg: #3a1f1a;
  --good: #3ddc9b;
  --good-bg: #0f2e25;
  --warn: #ffbf5e;
  --warn-bg: #33250c;
  --bad: #ff7a93;
  --bad-bg: #36111c;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 20px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d0920;
    --surface: #161033;
    --surface-2: #1e1744;
    --surface-3: #2a2160;
    --line: #2d2460;
    --ink: #f1eeff;
    --ink-2: #c3bce6;
    --ink-3: #8e86bd;
    --brand: #9b7bff;
    --brand-600: #8863ff;
    --brand-700: #7a52f5;
    --brand-50: #231a52;
    --on-brand: #12092d;
    --deal: #ff8a63;
    --deal-bg: #3a1f1a;
    --good: #3ddc9b;
    --good-bg: #0f2e25;
    --warn: #ffbf5e;
    --warn-bg: #33250c;
    --bad: #ff7a93;
    --bad-bg: #36111c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 20px 60px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
[hidden] { display: none !important; }
.ic { flex: none; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #9a72ff, #5a2fe0); box-shadow: 0 6px 16px rgba(106, 56, 240, 0.4); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.04em; }
.brand-name i { font-style: normal; color: var(--deal); }
.by { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); }
.partner-logo { height: 22px; width: auto; background: #fff; border-radius: 7px; padding: 2px 7px; box-shadow: 0 0 0 1px var(--line); }
.brand.whitelabel .partner-logo { height: 30px; box-shadow: none; padding: 0; background: transparent; }
:root[data-theme='dark'] .brand.whitelabel .partner-logo { background: #fff; padding: 3px 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-sun { display: none; }
:root[data-theme='dark'] .theme-sun { display: block; }
:root[data-theme='dark'] .theme-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(139, 92, 255, 0.85), transparent 62%),
    radial-gradient(700px 420px at -5% 0%, rgba(62, 30, 160, 0.9), transparent 60%),
    linear-gradient(180deg, #170c3f, #0f0829);
  padding: 62px 0 54px;
  transition: padding 0.25s ease;
}
.hero::before { content: ''; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-inner { position: relative; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #e4dcff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #35e0a1; box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(53, 224, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0); } }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 800; margin: 18px 0 14px; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb59c, #ff6a3d 55%, #ffd29c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 1.9vw, 19px); color: #cfc6f5; max-width: 640px; margin: 0 0 28px; }
.hero-art { position: absolute; right: -10px; top: 40px; width: 330px; height: 300px; pointer-events: none; opacity: 0.95; }
.hero-art .tile { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); animation: bob 7s ease-in-out infinite; }
.hero-art .tile:nth-child(2n) { animation-delay: -2.4s; width: 54px; height: 54px; }
.hero-art .tile:nth-child(3n) { animation-delay: -4.6s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(3deg); } }

.search { display: flex; gap: 8px; background: var(--surface); padding: 8px; border-radius: 20px; box-shadow: 0 20px 60px rgba(8, 3, 30, 0.5); max-width: 760px; }
.search .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink-3); min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 17px var(--font-text); padding: 13px 0; }
.search input::placeholder { color: var(--ink-3); }
/* the whole bar shows the focus ring (below); the global :focus-visible ring on the input inside it made a second, nested box */
.search input:focus-visible { box-shadow: none; border-radius: 0; }
.search:focus-within { box-shadow: 0 20px 60px rgba(8, 3, 30, 0.5), var(--ring); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 11px 18px; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform 0.12s, background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; box-shadow: 0 8px 20px rgba(106, 56, 240, 0.35); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-600), #4a1fb8); }
.btn-buy { background: var(--deal); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 61, 0.32); }
.btn-buy:hover { background: #f05a2c; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 11px; }
.trend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; color: #b9aee6; font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #ece7ff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, 0.16); }

body.searching .hero { padding: 26px 0 26px; }
body.searching .hero h1, body.searching .lede, body.searching .hero-art, body.searching .eyebrow { display: none; }
body.searching .trend { margin-top: 12px; }

/* store ticker */
.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ticker-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; }
/* the label stays put; the store pills scroll past it. Pauses on hover/focus; static + swipeable if motion is reduced. */
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 36px), transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 10px; padding-right: 10px; flex: none; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
.ticker-label { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; padding-right: 6px; flex: none; }
.store-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 22%, transparent); }

/* ---------- Sections ---------- */
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.sub { color: var(--ink-3); margin: 6px 0 0; max-width: 620px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.cat-tile { --h: 262; text-align: left; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.cat-tile:hover { transform: translateY(-3px); border-color: hsl(var(--h) 80% 70%); box-shadow: 0 14px 34px hsl(var(--h) 80% 50% / 0.18); }
.cat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: hsl(var(--h) 70% 42%); background: hsl(var(--h) 90% 94%); }
:root[data-theme='dark'] .cat-ico { color: hsl(var(--h) 90% 78%); background: hsl(var(--h) 50% 22%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .cat-ico { color: hsl(var(--h) 90% 78%); background: hsl(var(--h) 50% 22%); } }
.cat-name { font-weight: 700; font-size: 15.5px; }
.cat-hint { font-size: 12.5px; color: var(--ink-3); margin-top: -10px; }

/* PC parts band: dark in both themes. Parts are grouped (core / storage & power / display); each tile says which specs its cards show. */
.pc-band { border-radius: 26px; padding: 30px; background: linear-gradient(135deg, #1c1042, #2d1a78 60%, #4a28b8); color: #fff; position: relative; overflow: hidden; }
.pc-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 61, 0.45), transparent 65%); pointer-events: none; }
.pc-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.pc-head > div:first-child { max-width: 560px; }
.pc-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb59c; }
.pc-band h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-top: 6px; }
.pc-band p { color: #cfc6f5; margin: 8px 0 0; font-size: 15px; }
.pc-cta { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--deal); color: #fff; text-decoration: none !important; box-shadow: 0 12px 28px rgba(255, 106, 61, 0.38); transition: transform 0.15s, background 0.15s; }
.pc-cta:hover { background: #f05a2c; transform: translateY(-2px); }
.pc-cta b { display: block; font-size: 16px; line-height: 1.2; }
.pc-cta small { display: block; font-size: 12.5px; font-weight: 600; opacity: 0.92; margin-top: 2px; }
.pc-cta-ico { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; flex: none; }
.pc-sections { position: relative; z-index: 1; display: grid; grid-template-columns: 4fr 4fr 2.1fr; gap: 26px; }
.pc-section h3 { font-family: var(--font-text); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #b9aee6; margin-bottom: 10px; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-section:last-child .pc-grid { grid-template-columns: minmax(0, 1fr); }
.pc-tile { --h: 262; display: flex; align-items: center; gap: 12px; padding: 12px; min-width: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; text-align: left; transition: background 0.15s, transform 0.15s, border-color 0.15s; }
.pc-tile:hover { background: rgba(255, 255, 255, 0.17); border-color: hsl(var(--h) 90% 75% / 0.7); transform: translateY(-2px); }
.pc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: hsl(var(--h) 95% 82%); background: hsl(var(--h) 60% 50% / 0.28); }
.pc-txt { min-width: 0; }
.pc-txt b { display: block; font-size: 14.5px; line-height: 1.25; }
.pc-txt small { display: block; font-size: 12px; font-weight: 500; color: #c3b8ee; line-height: 1.3; margin-top: 2px; }
.pc-popular { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #b9aee6; font-size: 13.5px; }

/* Spec chips on PC cards (read from the title; a chip appears only when the title states it) */
.specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: -2px; }
.spec { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; line-height: 1.5; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.spec.key { color: var(--brand-700); background: var(--brand-50); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
:root[data-theme='dark'] .spec.key { color: var(--brand); }
.spec.warn { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.spec.muted { color: var(--ink-3); background: transparent; border-style: dashed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .spec.key { color: var(--brand); } }

/* PC result filters: what kind of part, then the specs that matter for it */
.build-note { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-50); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); color: var(--ink-2); font-size: 14px; text-decoration: none !important; }
.build-note:hover { border-color: var(--brand); }
.build-note > span { flex: 1; min-width: 0; }
.build-note b { color: var(--ink); }
.build-note .ic { color: var(--brand-600); }
.facets { display: grid; gap: 8px; padding: 12px 14px; margin: -8px 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.facet-label { min-width: 92px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.facet .toggle { padding: 5px 11px; }
.facet .toggle .n { font-weight: 600; opacity: 0.7; font-variant-numeric: tabular-nums; }
.facet-note { font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.18s, box-shadow 0.18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(60, 30, 160, 0.16); }
/* Uniform photo frame: every card has the same box and every photo fills it the same way (letter-boxed on white, never
   cropped or stretched). The image is taken out of flow, so a tall or tiny source can never change the card's height. */
.card-media { position: relative; aspect-ratio: 1 / 0.82; background: #fff; border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.card-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; object-position: center; }
.card-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #c8c2e4; }
.card-media .badge { z-index: 1; }
.badge { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.01em; }
.badge.off { left: 10px; top: 10px; background: var(--deal); color: #fff; }
.badge.stores { right: 10px; top: 10px; background: var(--brand-50); color: var(--brand-700); }
:root[data-theme='dark'] .badge.stores { color: var(--brand); }
.badge.low { left: 10px; bottom: 10px; background: var(--good-bg); color: var(--good); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-weight: 650; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; color: var(--ink); cursor: pointer; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.price small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-right: 2px; font-family: var(--font-text); letter-spacing: 0; }
.mrp { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
.best-at { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-top: -4px; }
.best-at b { color: var(--ink); }
.mini { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.mini-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 5px 8px; border-radius: 9px; background: var(--surface-2); }
.mini-row.best { background: var(--good-bg); color: var(--good); font-weight: 700; }
.mini-row .amt { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-row .delta { font-size: 11.5px; opacity: 0.8; font-weight: 600; }
.mini-row.oos { opacity: 0.55; }
.mini-row.sus { background: var(--bad-bg); color: var(--bad); font-weight: 650; }
.mini-row.sus .ic { margin-left: -2px; }
.save-note { font-size: 12.5px; color: var(--good); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-actions .btn { flex: 1; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.rating .ic { color: #f5a623; fill: #f5a623; }
.from-tag { font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 2px 8px; border-radius: 999px; }

/* ---------- Results ---------- */
#results { padding-top: 26px; }
.progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.prog-pill { --c: var(--brand); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.prog-pill .state { font-weight: 700; font-size: 12px; color: var(--ink-3); }
.prog-pill.ok .state { color: var(--good); }
.prog-pill.pending .dot { animation: blink 1s infinite; }
.prog-pill.fail .state, .prog-pill.blocked .state, .prog-pill.robots .state { color: var(--bad); }
@keyframes blink { 50% { opacity: 0.25; } }
.res-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.res-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.res-meta { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.res-meta b { color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 20px; }
.toolbar label.f { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.select, .num { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; color: var(--ink); font: 600 13.5px var(--font-text); }
.num { width: 92px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.toggle[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.toggle .dot { width: 8px; height: 8px; box-shadow: none; }
.tb-sep { width: 1px; height: 26px; background: var(--line); margin: 0 2px; }
.tb-stores { display: flex; flex-wrap: wrap; gap: 6px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; margin-bottom: 18px; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); background: var(--surface); }
.empty h3 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.more-row { display: flex; justify-content: center; margin-top: 22px; }
.related { margin-top: 44px; padding-top: 28px; border-top: 1px dashed var(--line); }
.related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.related-head h2 { font-size: 22px; }
.from-tag.why { color: var(--ink-3); background: var(--surface-2); }
.side-vouchers { margin-top: 34px; }

/* skeleton */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sk-img { aspect-ratio: 1 / 0.82; } .sk-l { height: 14px; } .sk-l.s { width: 55%; } .sk-b { height: 38px; }

/* ---------- Vouchers ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 13.5px; color: var(--ink-2); }
.pill:hover { background: var(--surface-2); }
.pill[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill[aria-pressed='true'] .dot { box-shadow: none; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.coupon { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.coupon::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.coupon .top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.coupon .top .src { margin-left: auto; font-weight: 600; }
.coupon h3 { font-size: 16.5px; line-height: 1.3; font-weight: 700; }
.coupon p { margin: 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--deal-bg); color: var(--deal); }
.code-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px dashed color-mix(in srgb, var(--c) 60%, var(--line)); border-radius: 12px; background: var(--surface-2); }
.code-box code { font: 800 15px ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: 0.06em; flex: 1; }
.coupon .acts { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.kind { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-weight: 800; }

/* ---------- Stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.store-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.store-card .nm { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.store-card .st { font-size: 12.5px; color: var(--ink-3); }
.st-ok { color: var(--good) !important; font-weight: 700; }
.unavail { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.unavail summary { cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.unavail ul { margin: 0; padding: 0 18px 16px 18px; list-style: none; display: grid; gap: 10px; }
.unavail li { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.unavail li b { color: var(--ink); min-width: 140px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--brand-50); color: var(--brand-700); margin-bottom: 12px; font-family: var(--font-display); }
:root[data-theme='dark'] .step .n { color: var(--brand); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.trust { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--brand-50); color: var(--ink-2); font-size: 14px; }
.trust .ic { color: var(--brand-600); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--surface); }
.foot { display: flex; gap: 28px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.foot p { color: var(--ink-3); font-size: 13.5px; max-width: 560px; margin: 8px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.foot-links a { color: var(--ink-2); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.foot-links a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme='dark'] .foot-links a:hover { color: var(--brand); }
.foot .partner { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.foot .partner img { height: 28px; width: auto; background: #fff; padding: 3px 9px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Compare dialog ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(100% - 24px, 920px); max-height: calc(100dvh - 24px); overflow: visible; }
dialog::backdrop { background: rgba(14, 7, 40, 0.62); backdrop-filter: blur(5px); }
.dlg { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-2); overflow: hidden; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
.dlg-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 20px; font-weight: 750; flex: 1; line-height: 1.25; }
.dlg-body { overflow: auto; padding: 18px 20px 22px; display: grid; gap: 20px; }
.dlg-top { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.dlg-img { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; aspect-ratio: 1; display: grid; place-items: center; }
.dlg-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.big-price { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.savebox { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; padding: 7px 12px; border-radius: 12px; background: var(--good-bg); color: var(--good); font-weight: 750; font-size: 14px; }
.hist-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.chart { width: 100%; height: 120px; margin-top: 12px; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: color-mix(in srgb, var(--brand) 16%, transparent); }
.chart .pt { fill: var(--surface); stroke: var(--brand); stroke-width: 2.4; }
.chart text { fill: var(--ink-3); font: 600 10.5px var(--font-text); }
.otable { display: grid; gap: 8px; }
.orow { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.orow.best { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); background: color-mix(in srgb, var(--good-bg) 55%, var(--surface)); }
.orow.oos { opacity: 0.6; }
.orow .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.orow .who b { display: block; font-size: 15px; }
.orow .who .t { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.orow .amt { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; }
.orow .amt small { display: block; font-family: var(--font-text); font-weight: 600; font-size: 12.5px; color: var(--ink-3); letter-spacing: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.tag.best { background: var(--good); color: var(--on-brand); }
:root[data-theme='dark'] .tag.best { color: #062b1f; }
.tag.warn { background: var(--bad-bg); color: var(--bad); }
.tag.info { background: var(--surface-3); color: var(--ink-2); }
.dlg-vouchers { display: grid; gap: 8px; }
.mini-coupon { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }
.mini-coupon b { font-weight: 700; }
.disc { font-size: 12.5px; color: var(--ink-3); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 650; font-size: 14px; box-shadow: var(--shadow-2); transition: 0.25s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pc-sections { grid-template-columns: 1fr 1fr; }
  .pc-section:last-child { grid-column: 1 / -1; }
  .pc-section:last-child .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-art { display: none; }
  .nav a:not(.keep) { display: none; }
  .by span { display: none; }
}
@media (max-width: 640px) {
  .nav a { display: none; }
  .nav { margin-left: auto; }
  .hero { padding: 40px 0 38px; }
  .search { flex-direction: column; border-radius: 18px; }
  .search .btn { width: 100%; }
  .header-row { gap: 10px; }
  .brand-name { font-size: 22px; }
  .dlg-top { grid-template-columns: 1fr; }
  .dlg-img { max-width: 180px; }
  .orow { grid-template-columns: 1fr auto; }
  .orow .who .t { max-width: 190px; }
  .orow .cta { grid-column: 1 / -1; }
  .orow .cta .btn { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar .tb-sep { display: none; }
  .pc-band { padding: 20px; border-radius: 22px; }
  .pc-sections { grid-template-columns: 1fr; gap: 20px; }
  .pc-head { margin-bottom: 20px; }
  .pc-cta { width: 100%; }
  .pc-cta > .ic { margin-left: auto; }
  .pc-tile { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pc-section:last-child .pc-tile { flex-direction: row; align-items: center; gap: 12px; }
  .pc-txt b { overflow-wrap: anywhere; }
  .facet-label { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
