/* ============================================================
   The Sendicate — Gravity MTB Deals storefront
   ============================================================ */
:root {
  --ink: #14161a;
  --ink-soft: #3a3f47;
  --muted: #707783;
  --line: #e6e8ec;
  --line-strong: #d3d7dd;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --brand: #16181d;
  --accent: #c7f23f;        /* acid green — energy, used sparingly */
  --accent-ink: #14161a;
  --deal: #e0452a;          /* discount red */
  --deal-soft: #fdecea;
  --verify: #1f7a4d;        /* street-verified green */
  --verify-soft: #e8f5ee;
  --gold: #c6912a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.06), 0 1px 1px rgba(16, 18, 22, 0.04);
  --shadow-md: 0 6px 22px rgba(16, 18, 22, 0.10);
  --shadow-lg: 0 18px 50px rgba(16, 18, 22, 0.18);
  --header-h: 64px;
  --nav-h: 50px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.brand-name {
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
}

.search {
  position: relative;
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 19px; height: 19px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 999px;
  padding: 0 42px 0 42px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.search input::placeholder { color: #9aa0a8; }
.search input:focus { box-shadow: 0 0 0 3px rgba(199, 242, 63, 0.55); }
.search-clear {
  position: absolute;
  right: 10px;
  border: none;
  background: #eceef1;
  color: var(--ink-soft);
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  display: grid; place-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.account-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0 13px;
  font-weight: 700;
  font-size: 0.84rem;
}
.account-btn:hover { background: rgba(255,255,255,0.1); }
.account-btn.signed-in { width: 38px; padding: 0; justify-content: center; background: #fff; color: var(--ink); }
.account-btn.signed-in svg { display: none; }
.account-btn svg { width: 17px; height: 17px; }
.region-select select {
  height: 38px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0 30px 0 14px;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.region-select select option { color: var(--ink); }
.saved-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.saved-btn svg { width: 17px; height: 17px; }
.saved-count { min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(20,22,26,.14); font-size: .72rem; }

/* ---------- Watchlist status ---------- */
.watch-strip { background: #fff; border-bottom: 1px solid var(--line); }
.watch-strip-inner { max-width: 1480px; min-height: 62px; margin: 0 auto; padding: 9px 22px; display: flex; align-items: center; gap: 13px; }
.watch-strip-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--accent); }
.watch-strip-icon svg { width: 18px; height: 18px; }
.watch-strip.has-items .watch-strip-icon { background: var(--verify); color: #fff; }
.watch-strip-copy { display: grid; min-width: 0; }
.watch-strip-copy strong { font-size: .86rem; }
.watch-strip-copy span { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-strip-signals { margin-left: auto; display: flex; gap: 6px; }
.watch-strip-signals span { padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.watch-strip-action { min-height: 36px; padding: 0 12px; border: none; background: transparent; color: var(--verify); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.watch-strip-action:hover { text-decoration: underline; }

/* ---------- Category nav ---------- */
.category-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  height: var(--nav-h);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 22px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.74);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.cat-pill:hover { color: #fff; background: rgba(255,255,255,0.10); }
.cat-pill.active { color: var(--accent-ink); background: var(--accent); }

/* ---------- Region picker ---------- */
.region-banner {
  background: linear-gradient(180deg, #1b1e24 0%, #14161a 100%);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.region-banner[hidden] { display: none; }
.region-banner { position: relative; }
.region-banner-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 48px 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.region-banner-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}
.region-banner-close:hover { background: rgba(255,255,255,0.22); }
.region-banner-copy { display: flex; align-items: center; gap: 14px; }
.region-pin { font-size: 1.6rem; line-height: 1; }
.region-banner-copy strong { font-size: 1.05rem; display: block; }
.region-banner-copy p { margin: 3px 0 0; font-size: 0.88rem; color: rgba(255,255,255,0.7); max-width: 460px; }
.region-options { display: flex; flex-wrap: wrap; gap: 8px; }
.region-opt {
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
}
.region-opt:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.region-opt .ro-count { opacity: 0.6; font-weight: 600; margin-left: 5px; font-size: 0.8rem; }
.region-opt.recommended {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.region-opt.recommended .ro-count { opacity: 0.7; }
.region-opt.region-all {
  border-style: dashed;
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}
.region-opt.region-all:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Header region control: a subtle chip shown only once a region is chosen. */
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.region-chip:hover { background: rgba(255,255,255,0.18); }
.region-chip .chip-caret { opacity: 0.6; font-size: 0.9rem; }
.region-chip[hidden] { display: none; }

/* ---------- Shell layout ---------- */
.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 22px 60px;
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-toggle { display: none; }

/* ---------- Filters ---------- */
.filters {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px 18px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-h) - var(--nav-h) - 40px);
  overflow-y: auto;
}
.filters-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 10px;
  position: sticky;
  top: 0;
  background: var(--surface);
}
.filters-head h2 { font-size: 1.02rem; margin-right: auto; }
.link-btn {
  border: none; background: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
}
.filters-close { display: none; }
.filters-footer { display: none; }

.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group h3 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 11px;
}
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-list.scroll { max-height: 232px; overflow-y: auto; padding-right: 4px; }
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
  border-radius: 7px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check:hover { background: var(--surface-2); }
.check input { accent-color: var(--ink); width: 15px; height: 15px; flex-shrink: 0; }
.check span { flex: 1; }
.check .count { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.filter-search {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 0.85rem;
  margin-bottom: 9px;
  outline: none;
}
.filter-search:focus { border-color: var(--ink); }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--ink); }
.range-row output { font-size: 0.85rem; font-weight: 700; min-width: 56px; text-align: right; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Static SEO pages ---------- */
.shell-single {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 22px 60px;
}
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 18px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 600; }

.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 1.9rem; letter-spacing: -0.02em; }
.page-intro { max-width: 760px; color: var(--ink-soft); margin: 10px 0 0; font-size: 1rem; line-height: 1.55; }

.seo-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 24px;
}
.seo-summary p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.seo-summary strong { color: var(--ink); }

.home-hero { padding: 30px 0 24px; max-width: 820px; }
.home-hero .eyebrow {
  color: var(--clay, #b8492f);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin: 0 0 10px;
}
.home-hero h1 { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.03em; }
.home-hero p { font-size: 1.08rem; color: var(--ink-soft); margin: 16px 0 0; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .btn-solid, .hero-actions .btn-outline { height: 48px; display: inline-flex; align-items: center; padding: 0 26px; border-radius: 999px; }

.dept-grid-wrap { margin: 36px 0; }
.dept-grid-wrap h2, .section-head h2, .related h2, .home-trust + * { font-size: 1.3rem; }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.dept-tile {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; font-weight: 700; transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.dept-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dept-tile b { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 16px; }
.section-head a { color: var(--blue); font-weight: 600; font-size: 0.9rem; }

.related { margin: 34px 0; }
.related h2 { margin-bottom: 14px; }
.rel-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.rel-link {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; font-size: 0.86rem; font-weight: 600; transition: background 0.12s, color 0.12s;
}
.rel-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.home-trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
  margin: 44px 0 10px;
}
.home-trust article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.home-trust h3 { font-size: 1.02rem; margin-bottom: 8px; }
.home-trust p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.shell-single .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}

@media (max-width: 720px) {
  .home-hero h1 { font-size: 1.8rem; }
  .home-hero { padding: 18px 0; }
  .shell-single { padding: 16px 14px 50px; }
  .shell-single .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .page-head h1 { font-size: 1.4rem; }
}

/* ============================================================
   Rider dashboard
   ============================================================ */
.dashboard-page { min-height: 100vh; background: #f2f3f5; }
.dash-header {
  height: 66px; padding: 0 max(22px, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between;
  background: var(--brand); color: #fff; border-bottom: 2px solid var(--accent);
}
.dash-header nav { display: flex; align-items: center; gap: 20px; font-size: .86rem; font-weight: 700; }
.dash-header nav button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-weight: 800; }
.dash-shell { max-width: 1280px; margin: 0 auto; padding: 42px 22px 70px; }
.dash-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.dash-title h1 { font-size: 2rem; line-height: 1.1; }
.dash-title > div > p:last-child { margin: 8px 0 0; color: var(--muted); }
.dash-title .btn-solid, .dash-empty .btn-solid { display: inline-flex; align-items: center; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 34px; }
.dash-stats article { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; border-right: 1px solid var(--line); }
.dash-stats article:last-child { border-right: none; }
.dash-stats span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.dash-stats strong { margin-top: 4px; font-size: 1.7rem; }
.watchlist-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.watchlist-head h2 { font-size: 1.2rem; }
.watchlist-head p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.watchlist-head label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.watchlist-head select { height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 30px 0 10px; font: inherit; color: var(--ink); }
.watchlist { display: grid; gap: 10px; }
.watch-card {
  position: relative; display: grid; grid-template-columns: minmax(260px, 1.45fr) minmax(140px, .6fr) minmax(220px, 1fr) minmax(130px, .55fr) auto;
  gap: 24px; align-items: center; min-height: 132px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.watch-product { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 15px; min-width: 0; }
.watch-product img { width: 82px; height: 82px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.watch-product div { min-width: 0; }
.watch-product p { margin: 0 0 4px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.watch-product h3 { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.watch-product span { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.watch-price { display: grid; }
.watch-price > span, .watch-chart > span { color: var(--muted); font-size: .68rem; font-weight: 700; }
.watch-price strong { font-size: 1.25rem; margin: 4px 0; }
.watch-price small { color: var(--muted); font-size: .7rem; }
.watch-price small.down { color: var(--verify); font-weight: 700; }
.mini-chart svg, .chart-empty svg { width: 100%; height: 60px; overflow: visible; }
.mini-chart polyline { fill: none; stroke: var(--verify); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mini-chart circle { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.mini-chart .gridline, .chart-empty path { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.chart-empty circle { fill: var(--accent); stroke: var(--ink); }
.chart-empty p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.watch-status { display: grid; gap: 5px; font-size: .7rem; }
.watch-status small, .watch-status > span:last-child { color: var(--muted); }
.listing-active { color: var(--verify); font-weight: 800; }
.listing-active::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--verify); }
.watch-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.watch-actions button { border: none; background: none; color: var(--muted); font-size: 1.25rem; line-height: 1; }
.watch-actions a { white-space: nowrap; color: var(--ink); font-size: .75rem; font-weight: 800; }
.dash-empty { text-align: center; padding: 80px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dash-empty h2 { font-size: 1.25rem; }
.dash-empty p { margin: 7px 0 22px; color: var(--muted); }

@media (max-width: 1050px) {
  .watch-card { grid-template-columns: minmax(260px, 1.4fr) minmax(140px, .7fr) minmax(180px, 1fr) auto; }
  .watch-status { grid-column: 2 / 4; grid-row: 2; display: flex; gap: 14px; }
  .watch-actions { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 720px) {
  .dash-header { padding: 0 14px; }
  .dash-header nav a { display: none; }
  .dash-shell { padding: 26px 14px 50px; }
  .dash-title { align-items: flex-start; }
  .dash-title h1 { font-size: 1.55rem; }
  .dash-title .btn-solid { width: 42px; padding: 0; overflow: hidden; font-size: 0; justify-content: center; }
  .dash-title .btn-solid::after { content: "+"; font-size: 1.4rem; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stats article { min-height: 82px; padding: 15px; border-bottom: 1px solid var(--line); }
  .dash-stats article:nth-child(2) { border-right: 0; }
  .watchlist-head { align-items: flex-start; }
  .watchlist-head label { font-size: 0; }
  .watchlist-head select { font-size: .75rem; max-width: 150px; }
  .watch-card { grid-template-columns: 1fr auto; gap: 15px; padding: 14px; }
  .watch-product { grid-column: 1 / 3; grid-template-columns: 68px 1fr; }
  .watch-product img { width: 68px; height: 68px; }
  .watch-price { grid-column: 1; }
  .watch-chart { grid-column: 1 / 3; }
  .watch-status { grid-column: 1 / 3; grid-row: auto; flex-wrap: wrap; }
  .watch-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .watch-actions button { position: absolute; top: 12px; right: 12px; }
}

/* ---------- Catalog ---------- */
.catalog { min-width: 0; }
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.catalog-actions { display: flex; align-items: center; gap: 10px; }
.result-line h1 { font-size: 1.5rem; }
.result-line p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.result-line strong { color: var(--ink); }
.sort-select select {
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 10px;
  padding: 0 34px 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2314161a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.quick-filters::-webkit-scrollbar { display: none; }
.quick-filters-label {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.quick-filters button,
.quick-filters a {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.quick-filters button:hover,
.quick-filters a:hover { border-color: var(--ink); color: var(--ink); }
.quick-filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick-filters a { margin-left: auto; color: var(--verify); border-color: transparent; background: transparent; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chips:empty { display: none; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.active-chip button {
  border: none; background: var(--line); color: var(--ink-soft);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.95rem; line-height: 1; display: grid; place-items: center;
}

/* ---------- Product grid + cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-media .ph {
  color: var(--line-strong);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-discount {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--deal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  letter-spacing: 0.01em;
}
.badge-score {
  position: absolute;
  top: 10px; right: 10px;
  min-width: 58px; height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.badge-score::before { content: "SEND"; font-size: .57rem; letter-spacing: .05em; opacity: .72; }
.badge-score.elite { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge-score.strong { border-color: var(--verify); color: var(--verify); }

.card-save {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s, transform 0.14s, background 0.14s;
}
.card:hover .card-save { opacity: 1; transform: none; }
.card-save svg { width: 17px; height: 17px; color: var(--ink-soft); fill: none; stroke: currentColor; stroke-width: 2; }
.card-save.saved { opacity: 1; transform: none; background: var(--ink); }
.card-save.saved svg { color: #fff; fill: #fff; }

.card-body {
  padding: 13px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  cursor: pointer;
}
.card-title:hover { color: var(--ink-soft); }
.card-spec {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 9px 0 0;
  flex-wrap: wrap;
}
.card-price .now { font-size: 1.16rem; font-weight: 800; color: var(--ink); }
.card-price .was { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  width: fit-content;
}
.card-tag.verify { background: var(--verify-soft); color: var(--verify); }
.card-tag.lowest { background: var(--accent); color: var(--accent-ink); }
.card-tag svg { width: 12px; height: 12px; }

.card-foot {
  margin-top: auto;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-retailer { font-size: 0.76rem; color: var(--muted); }
.card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-cta svg { width: 13px; height: 13px; }
.card-links { display: inline-flex; align-items: center; gap: 9px; }
.card-track-link { color: var(--verify); font-size: .76rem; font-weight: 800; }
.card-track { border: none; background: none; padding: 4px 0; color: var(--verify); font-size: .76rem; font-weight: 800; }
.card-track::before { content: "+"; margin-right: 3px; }
.card-track.active { color: var(--ink); }
.card-track.active::before { content: "✓"; color: var(--verify); }
.pd-actions { margin-top: 20px; }
.pd-actions .btn-solid { display: inline-flex; align-items: center; }

/* ---------- Catalog footer ---------- */
.catalog-foot { text-align: center; margin-top: 34px; }
.catalog-foot p { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
.btn-outline {
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 30px;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.empty h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn-solid {
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 18px;
  height: 42px;
}
.icon-btn {
  border: none; background: none;
  font-size: 1.5rem; line-height: 1;
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 8px;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.75);
  padding: 44px 22px 30px;
  margin-top: 30px;
}
.footer-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand strong { color: #fff; letter-spacing: 0.06em; font-size: 1rem; }
.footer-brand p { max-width: 420px; font-size: 0.88rem; margin: 8px 0 0; }
.footer-news label { display: block; color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 9px; }
.news-row { display: flex; gap: 8px; }
.news-row input {
  height: 42px; border: none; border-radius: 9px;
  padding: 0 13px; font-size: 0.9rem; min-width: 220px;
}
.footer-news .btn-solid { background: var(--accent); color: var(--accent-ink); }
.news-msg { font-size: 0.82rem; color: var(--accent); margin: 8px 0 0; min-height: 1em; }
.disclosure {
  max-width: 1480px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Dialogs ---------- */
dialog.quickview {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 720px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
dialog::backdrop { background: rgba(16, 18, 22, 0.55); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,0.85); }
.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.dialog-header h2 { font-size: 1.15rem; }
.dialog-header p { margin: 3px 0 0; color: var(--muted); font-size: 0.82rem; }

.qv-body { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media {
  background: var(--surface-2);
  display: grid; place-items: center;
  padding: 26px;
  min-height: 300px;
}
.qv-media img { object-fit: contain; max-height: 340px; mix-blend-mode: multiply; }
.qv-info { padding: 30px 28px; position: relative; }
.qv-brand { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.qv-title { font-size: 1.32rem; margin: 6px 0 14px; line-height: 1.25; }
.qv-price { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; margin-bottom: 6px; }
.qv-price .now { font-size: 1.7rem; font-weight: 800; }
.qv-price .was { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.qv-price .off { background: var(--deal); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 3px 8px; border-radius: 7px; }
.qv-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.qv-meta span {
  font-size: 0.76rem; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.qv-value {
  border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: 0.88rem;
  background: var(--verify-soft); border: 1px solid #cfe8da; color: #16613c;
}
.qv-value.muted { background: var(--surface-2); border-color: var(--line); color: var(--ink-soft); }
.qv-note { font-size: 0.86rem; color: var(--ink-soft); margin: 12px 0; }
.qv-note b { color: var(--ink); }
.qv-actions { display: flex; gap: 10px; margin-top: 20px; }
.qv-actions .btn-solid { flex: 1; height: 46px; border-radius: 11px; display: grid; place-items: center; }
.qv-actions .btn-ghost {
  height: 46px; padding: 0 18px; border-radius: 11px;
  border: 1.5px solid var(--line-strong); background: #fff; font-weight: 700; color: var(--ink);
}
.qv-actions .btn-ghost.saved { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Saved list ---------- */
.saved-body { padding: 18px 22px 24px; max-height: 70vh; overflow-y: auto; }
.saved-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.saved-item img { width: 62px; height: 62px; object-fit: contain; background: var(--surface-2); border-radius: 9px; }
.saved-item .si-main { flex: 1; }
.saved-item h4 { font-size: 0.92rem; margin: 0 0 3px; }
.saved-item p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.saved-item .si-price { font-weight: 800; }
.saved-item .si-actions { text-align: right; }
.saved-item button.card-cta { border: none; background: none; padding: 3px 0; margin-left: auto; }
.saved-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.saved-empty h3 { color: var(--ink); font-size: 1rem; margin-bottom: 5px; }
.saved-empty p { margin: 0; }
.saved-dashboard-link { display: block; text-align: center; padding: 18px 10px 4px; font-weight: 700; color: var(--verify); }

/* ---------- Accounts + tracking ---------- */
.auth-dialog { max-width: 470px !important; }
.auth-panel { padding: 34px; }
.auth-kicker { margin: 0 0 7px; color: var(--verify); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-panel h2 { font-size: 1.55rem; line-height: 1.15; }
.auth-copy { margin: 10px 0 22px; color: var(--muted); font-size: 0.92rem; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.auth-form input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink); background: #fff; font: inherit; outline: none;
}
.auth-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(199,242,63,.35); }
.auth-form .btn-solid { height: 46px; margin-top: 2px; }
.form-error { min-height: 1em; margin: -4px 0; color: var(--deal); font-size: 0.8rem; }
.auth-switch { display: block; width: 100%; border: none; background: none; margin-top: 17px; color: var(--verify); font-weight: 700; }
.auth-switch + .auth-switch { margin-top: 9px; }
.consent-option { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; font-weight: 500 !important; line-height: 1.4; }
.consent-option input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--verify); }
.prototype-note { margin: 22px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.account-panel { text-align: center; }
.account-avatar { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); font-weight: 800; font-size: 1.15rem; }
.account-panel .auth-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.account-panel .btn-solid { display: inline-flex; align-items: center; }
.btn-quiet { height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-weight: 700; }

.track-dialog { max-width: 620px !important; }
.track-panel { padding: 28px; }
.track-product { display: grid; grid-template-columns: 82px 1fr; gap: 16px; align-items: center; padding-right: 28px; margin-bottom: 24px; }
.track-product img { width: 82px; height: 82px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
.track-product p { margin: 0 0 4px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.track-product h2 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 5px; }
.track-product strong { font-size: 1.1rem; }
.track-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 0 12px; border-top: 1px solid var(--line); }
.track-heading h3 { font-size: .95rem; }
.track-heading p { margin: 3px 0 0; font-size: .78rem; color: var(--muted); }
.status-dot { color: var(--verify); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verify); margin-right: 6px; }
.alert-option, .target-price { min-height: 68px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.alert-option span, .target-price > span:first-child { display: grid; gap: 3px; }
.alert-option b, .target-price b { font-size: .88rem; }
.alert-option small, .target-price small { color: var(--muted); font-size: .76rem; }
.alert-option input { width: 38px; height: 21px; accent-color: var(--verify); }
.price-input { display: flex; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.price-input i { padding: 0 9px; color: var(--muted); font-size: .7rem; font-style: normal; font-weight: 700; background: var(--surface-2); height: 100%; display: grid; place-items: center; }
.price-input input { width: 88px; height: 100%; border: none; border-left: 1px solid var(--line); padding: 0 9px; font: inherit; }
.track-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn-danger { height: 42px; padding: 0 15px; border: 1px solid #efc6bf; background: #fff; color: var(--deal); border-radius: 8px; font-weight: 700; margin-right: auto; }

/* ---------- Drawer scrim (mobile filters) ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(16,18,22,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
  }
  .filter-toggle svg { width: 18px; height: 18px; }
  .pill-count { background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.72rem; padding: 1px 7px; }
  .filters {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(340px, 86vw);
    z-index: 50;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }
  .filters.open { transform: none; }
  .filters-close { display: grid; place-items: center; }
  .filters-footer {
    display: block;
    position: sticky;
    bottom: -18px;
    margin: 14px -18px -18px;
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .filters-apply {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
  }
}
@media (min-width: 981px) { .drawer-scrim { display: none !important; } }

@media (max-width: 720px) {
  .header-inner { gap: 11px; padding: 0 14px; height: 58px; }
  .brand-name { display: none; }
  .account-btn { width: 38px; padding: 0; justify-content: center; }
  .account-btn span { display: none; }
  .account-btn.signed-in span { display: inline; }
  .saved-btn { width: auto; min-width: 42px; padding: 0 9px; justify-content: center; gap: 4px; }
  .saved-btn .saved-label { display: none; }
  .saved-btn .saved-count { font-size: .68rem; }
  .watch-strip-inner { padding: 6px 14px; min-height: 44px; gap: 9px; }
  .watch-strip-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .watch-strip-icon svg { width: 15px; height: 15px; }
  .watch-strip-signals { display: none; }
  .watch-strip-copy span { display: none; }
  .watch-strip-copy strong { font-size: .78rem; }
  .watch-strip-action { font-size: 0; padding: 0 5px; margin-left: auto; }
  .watch-strip-action span { font-size: 1.1rem; }
  .region-select { display: none; }
  .category-nav { padding: 0 14px; }
  .shell { padding: 18px 14px 50px; }
  .catalog-head { align-items: center; flex-wrap: wrap; gap: 11px; }
  .result-line { width: 100%; }
  .catalog-actions { width: 100%; }
  .filter-toggle { margin: 0; min-height: 40px; border-radius: 8px; box-shadow: none; flex: 1; justify-content: center; }
  .sort-select { flex: 1; }
  .sort-select select { width: 100%; min-height: 40px; border-radius: 8px; }
  .quick-filters { margin: 0 -14px 14px; padding: 0 14px; }
  .quick-filters-label { display: none; }
  .quick-filters a { margin-left: 0; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-media { min-height: 200px; padding: 18px; }
  .qv-media img { max-height: 220px; }
  .qv-info { padding: 22px 20px; }
  .result-line h1 { font-size: 1.2rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .card-save { opacity: 1; transform: none; }
  .auth-panel, .track-panel { padding: 24px 20px; }
  .track-product { grid-template-columns: 64px 1fr; }
  .track-product img { width: 64px; height: 64px; }
  .target-price { align-items: flex-start; flex-direction: column; }
}

/* ============================================================
   Product compare pages (/p/<slug>/) + compare links
   ============================================================ */
.card-compare {
  display: inline-block;
  margin-top: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--verify);
  text-decoration: none;
}
.card-compare:hover { text-decoration: underline; }

.pd-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin: 18px 0 30px;
}
.pd-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  min-height: 260px;
  overflow: hidden;
}
.pd-media img { max-width: 100%; max-height: 380px; object-fit: contain; }
.pd-media .ph { color: var(--muted); font-weight: 700; }
.pd-info h1 { margin: 2px 0 10px; font-size: 1.55rem; line-height: 1.2; }
.pd-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.cmp-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.pd-info { min-width: 0; }
.cmp-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.family-table { min-width: 680px; }
.cmp-table th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line-strong);
}
.cmp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp-table tr:first-child td { background: var(--verify-soft); }
.cmp-shop { font-weight: 700; }
.cmp-region { display: block; font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.cmp-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-was { color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.cmp-lowest {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
}
.cmp-delta { display: inline-block; margin-left: 8px; font-size: 0.74rem; font-weight: 700; color: var(--deal); }
.cmp-act { text-align: right; }

.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.cmp-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cmp-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cmp-tile-name { font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.cmp-tile-meta { font-size: 0.78rem; color: var(--verify); font-weight: 600; }

@media (max-width: 760px) {
  .pd-wrap { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .pd-media { min-height: 200px; }
  .cmp-table th:nth-child(3), .cmp-table td:nth-child(3) { display: none; }
  .family-table { min-width: 0; }
  .family-table thead { display: none; }
  .family-table tbody,
  .family-table tr,
  .family-table td { display: block; width: 100%; }
  .family-table tr { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .family-table tr:first-child td { background: transparent; }
  .family-table td { padding: 3px 10px; border: 0; }
  .family-table td:nth-child(3) { display: block; }
  .family-table .cmp-price { font-size: 1.05rem; }
  .family-table .cmp-act { padding-top: 8px; text-align: left; }
  .family-table .card-cta { display: inline-flex; }
}

/* Weekly digest (/best-deals/) */
.digest-list { list-style: none; margin: 18px 0 40px; padding: 0; max-width: 860px; }
.digest-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.digest-rank {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 26px;
}
.digest-body { display: flex; flex-direction: column; gap: 3px; }
.digest-name { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.digest-name:hover { text-decoration: underline; }
.digest-meta { font-size: 0.85rem; color: var(--verify); font-weight: 600; }
.digest-meta a { color: inherit; }

/* Region strip (home page) */
.region-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 6px 0 26px;
}
.region-strip-label { font-weight: 700; font-size: 0.9rem; }
.region-strip-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.region-pill {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.region-pill:hover { border-color: var(--ink); }
.region-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.region-strip-note { font-size: 0.78rem; color: var(--muted); }
.region-hidden { display: none !important; }
.app-region {
  max-width: 1480px;
  margin: 6px auto 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
@media (max-width: 720px) {
  .app-region {
    padding: 8px 14px;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .app-region::-webkit-scrollbar { display: none; }
  .region-strip-label { display: none; }
  .region-strip-pills { flex-wrap: nowrap; }
  .region-pill { padding: 5px 11px; font-size: .78rem; }
  .region-strip-note { display: none; }
}
