:root {
  --red: #d7000e;
  --red-dark: #a8000b;
  --ink: #1b1b1b;
  --ink-2: #4a4a4a;
  --ink-3: #7a7a7a;
  --line: #e4e4e4;
  --bg: #f4f4f4;
  --card: #fff;
  --green: #0b8a3e;
  --green-bg: #e3f5ea;
  --amber: #b45f00;
  --amber-bg: #fff1dc;
  --blue: #1f5fbf;
  --blue-bg: #e6eefb;
  --grey-bg: #ededed;
  --night: #1b1b1b;      /* always-dark surfaces: strip, hero, bundle tags */
  --sunk: #fafafa;
  --price: #d7000e;
  --radius: 6px;
  --font: "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-cond: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ececec; --ink-2: #c4c4c4; --ink-3: #929292; --line: #343434; --bg: #131313; --card: #1f1f1f;
    --green: #45d282; --green-bg: #15301f; --amber: #f2a446; --amber-bg: #36260f; --blue: #82adff; --blue-bg: #172447;
    --grey-bg: #2b2b2b; --night: #000; --sunk: #191919; --price: #ff4f57; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ececec; --ink-2: #c4c4c4; --ink-3: #929292; --line: #343434; --bg: #131313; --card: #1f1f1f;
  --green: #45d282; --green-bg: #15301f; --amber: #f2a446; --amber-bg: #36260f; --blue: #82adff; --blue-bg: #172447;
  --grey-bg: #2b2b2b; --night: #000; --sunk: #191919; --price: #ff4f57; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* --- header --- */
.topbar { background: var(--red); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 14px; align-items: center; }
.menu-btn { background: none; border: 0; color: #fff; display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.burger { display: grid; gap: 4px; }
.burger i { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; line-height: 0; }
.tagline { font: 600 11.5px/1.2 var(--font); color: #fff; opacity: .92; letter-spacing: .02em; padding-left: 4px; white-space: nowrap; }
.brand img { height: 50px; width: auto; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.2)); }
.brand:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 640px) { .brand img { height: 40px; } .tagline { font-size: 10.5px; } }
.search { flex: 1; display: flex; max-width: 640px; margin-left: auto; background: #fff; border-radius: 4px; overflow: hidden; }
.search input { -webkit-appearance: none; appearance: none; border-radius: 0; flex: 1; border: 0; color: #1b1b1b; background: #fff; padding: 10px 12px; font: inherit; min-width: 0; outline: none; }
.search button { border: 0; background: var(--night); color: #fff; padding: 0 14px; display: grid; place-items: center; }
.strip { background: var(--night); color: #fff; font-size: 13px; text-align: center; padding: 7px 16px; }
.strip:empty { display: none; }
.strip b { color: #ffd34d; }

/* --- drawer menu --- */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--card); color: var(--ink); z-index: 50; transform: translateX(-100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; box-shadow: 4px 0 24px rgba(0,0,0,.25); }
.drawer-head { background: var(--red); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.drawer-head button { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; }
.drawer-body { overflow-y: auto; flex: 1; }
.cat-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.cat-row a { flex: 1; padding: 12px 16px; text-decoration: none; font-weight: 600; }
.cat-row a:hover { color: var(--red); }
.cat-row button { border: 0; border-left: 1px solid var(--line); background: none; width: 46px; font-size: 18px; color: var(--ink-3); }
.cat-children { background: var(--sunk); }
.cat-children .cat-row a { padding-left: 30px; font-weight: 400; }
.cat-children .cat-children .cat-row a { padding-left: 44px; font-size: 14px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* --- page heads --- */
main { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
h1 { font: italic 800 30px/1.1 var(--font-cond); text-transform: uppercase; margin: 0 0 6px; letter-spacing: .01em; }
h2 { font: italic 800 22px/1.15 var(--font-cond); text-transform: uppercase; margin: 32px 0 4px; }
.sub { color: var(--ink-2); margin: 0 0 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 16px; }
.toolbar select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 13px; text-decoration: none; }
.chip:hover { border-color: var(--red); color: var(--red); }
.count { color: var(--ink-3); font-size: 14px; }

/* --- cards --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; position: relative; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 10px; }
.card .thumb img { max-height: 100%; object-fit: contain; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.card .name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font: 800 24px/1 var(--font-cond); color: var(--price); }
.strike { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
.via { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.via b { color: var(--ink); }
.badge-save { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font: 800 13px/1 var(--font-cond); padding: 6px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .02em; }
.oos { font-size: 12px; color: var(--ink-3); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; width: fit-content; text-transform: uppercase; letter-spacing: .03em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v-buy, .v-good { color: var(--green); background: var(--green-bg); }
.v-wait { color: var(--amber); background: var(--amber-bg); }
.v-fair { color: var(--blue); background: var(--blue-bg); }
.v-new { color: var(--ink-2); background: var(--grey-bg); }

/* --- item page --- */
.item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; }
.item > div { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.verdict { border-left: 6px solid; }
.verdict.v-buy, .verdict.v-good { border-color: var(--green); background: var(--green-bg); color: var(--ink); }
.verdict.v-wait { border-color: var(--amber); background: var(--amber-bg); color: var(--ink); }
.verdict.v-fair { border-color: var(--blue); background: var(--blue-bg); color: var(--ink); }
.verdict.v-new { border-color: #999; background: var(--grey-bg); color: var(--ink); }
.verdict .label { font: italic 900 26px/1 var(--font-cond); text-transform: uppercase; margin-bottom: 6px; }
.verdict.v-buy .label, .verdict.v-good .label { color: var(--green); }
.verdict.v-wait .label { color: var(--amber); }
.verdict.v-fair .label { color: var(--blue); }
.verdict p { margin: 4px 0; }
.verdict ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }

.ways { list-style: none; margin: 0; padding: 0; }
.way { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.way:first-child { border-top: 0; }
.way img { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.way .w-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.way .w-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.way .w-price { text-align: right; }
.way .w-price .price { font-size: 22px; }
.way.best { background: linear-gradient(90deg, rgba(11,138,62,.07), transparent); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 3px; background: var(--grey-bg); color: var(--ink-2); margin-right: 4px; }
.tag.best { background: var(--green); color: #fff; }
.tag.bundle { background: var(--night); color: #fff; }
.buy-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--price); text-decoration: none; white-space: nowrap; }
.buy-link:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--bg); border-radius: 4px; padding: 8px 10px; }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.stat .v { font: 800 18px/1.2 var(--font-cond); }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; }
.muted { color: var(--ink-3); font-size: 13px; }

/* --- misc --- */
.loading { padding: 60px 0; text-align: center; color: var(--ink-3); }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 360px; margin: 14px auto; }
.bar i { display: block; height: 100%; background: var(--red); transition: width .4s; }
.empty { background: var(--card); border: 1px dashed var(--line); padding: 30px; text-align: center; border-radius: var(--radius); color: var(--ink-2); }
.foot { font-size: 12.5px; color: var(--ink-3); padding-block: 24px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--price); font-size: 12.5px; text-decoration: underline; }
.hero { background: var(--night); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; }
.hero h1 { color: #fff; margin: 0; }
.hero p { margin: 4px 0 0; color: #ccc; }
.hero .big { font: italic 900 40px/1 var(--font-cond); color: #ffd34d; }

@media (max-width: 820px) {
  .item { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-label { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .price { font-size: 20px; }
  h1 { font-size: 24px; }
  .way { grid-template-columns: 48px 1fr; }
  .way img { width: 48px; height: 48px; }
  .way .w-price { grid-column: 2; text-align: left; }
  .hero { padding: 16px; gap: 10px 20px; }
  .hero .big { font-size: 32px; }
  .hero h1 + p { display: none; }
}

/* --- snapshot (static) mode: no remote photos, in-page back button --- */
.back-btn { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 0 4px 4px; }
.static .card .thumb { display: none; }
.static .card .body { border-top: 0; }
.static .badge-save { position: static; margin: 12px 12px 0; width: fit-content; }
.static .item { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.static .item > div:first-child { order: 2; }
.static .item > div:first-child .panel { margin-top: 0 !important; }
.static .way { grid-template-columns: 1fr auto; }
.static .way > span:first-child { display: none; }
@media (max-width: 640px) { .static .way { grid-template-columns: 1fr; } .static .way .w-price { grid-column: 1; } }

/* --- item gallery --- */
.gallery { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; scroll-snap-align: center; background: #fff; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(27,27,27,.65); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; }
.g-nav.prev { left: 10px; } .g-nav.next { right: 10px; }
.g-nav:focus-visible, .thumbs button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.g-count { position: absolute; bottom: 10px; right: 10px; background: rgba(27,27,27,.65); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 3px; border: 2px solid var(--line); border-radius: 4px; background: #fff; }
.thumbs button.on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* --- product info folds (like the store's accordions) --- */
.info { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.info > .muted { padding: 14px 16px; margin: 0; }
.fold { border-top: 1px solid var(--line); }
.fold:first-child { border-top: 0; }
.fold summary { list-style: none; cursor: pointer; padding: 16px; font: italic 800 20px/1.1 var(--font-cond); text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font: 400 28px/1 var(--font); font-style: normal; color: var(--ink-2); }
.fold[open] summary::after { content: "−"; }
.fold summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.fold-body { padding: 0 16px 18px; max-width: 900px; }
.fold-body p { margin: 0 0 10px; color: var(--ink-2); max-width: 70ch; }
.fold-body h3 { font: 700 15px/1.3 var(--font); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.fold-body ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.fold-body li { margin-bottom: 6px; }
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature img { width: 100%; border-radius: 4px; background: #fff; }
.feature > div:only-child { grid-column: 1 / -1; }
.spec-wrap { overflow-x: auto; }
.specs { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; font-weight: 600; color: var(--ink); }
.specs td { color: var(--ink-2); }
.specs tr:nth-child(odd) th, .specs tr:nth-child(odd) td { background: var(--sunk); }
.spec-group th { background: var(--grey-bg) !important; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.faq { padding: 12px 0; border-top: 1px solid var(--line); }
.faq:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; gap: 10px; }
  .g-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

/* --- item page: best price box, sections below --- */
.best-box .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
.best-box .price-row { margin: 0 0 6px; align-items: center; }
.best-box p { margin: 4px 0; }
.big-price { font-size: 38px; }
.badge-save.inline { position: static; }
.store-btn { display: inline-block; margin-top: 10px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 16px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; }
.store-btn:hover { background: var(--red-dark); }
.store-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.below { margin-top: 16px; display: grid; gap: 0; }
.static .badge-save.inline { margin: 0; }

/* --- verdict reason on cards, lowest-seen line on item page --- */
.verdict-line { display: flex; flex-direction: column; gap: 4px; }
.reason { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.v-text-wait { color: var(--amber); }
.v-text-buy, .v-text-good { color: var(--green); }
.v-text-fair { color: var(--blue); }
.v-text-new { color: var(--ink-3); }
.low-seen { background: var(--amber-bg); border-radius: 4px; padding: 8px 10px; margin: 6px 0 4px !important; font-size: 14px; }
.low-seen b { color: var(--amber); font-size: 16px; }

/* --- about & privacy page --- */
.about { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 26px; max-width: 760px; }
.about h2 { font-size: 20px; margin: 26px 0 8px; }
.about p, .about li { color: var(--ink-2); max-width: 68ch; }
.about p { margin: 0 0 12px; }
.about ul { padding-left: 20px; margin: 0 0 12px; }
.about li { margin-bottom: 8px; }
.about a { color: var(--price); }
.foot a.linkish { text-decoration: underline; }
