/* Inter, self-hosted (variable 400–800; SIL Open Font License). Subsets: latin, latin-ext
   (Azerbaijani letters and ₼), cyrillic. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Təzə Bazar — design tokens */
:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #566375;
  --line: #e3e8e6;
  --line-strong: #cfd8d4;
  --brand: #0b7f47;
  --brand-strong: #086b3b;
  --brand-ink: #ffffff;
  --brand-soft: #e7f6ee;
  --accent: #ffd43b;
  --accent-ink: #1f1a00;
  --sale: #c62f35;
  --sale-soft: #fdecec;
  --warn-soft: #fff6d6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px rgba(15, 23, 42, .10);
  --img-bg: #ffffff;
  --header-h: 120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1210; --surface: #121b18; --surface-2: #17221e; --text: #e8efec; --text-2: #c3cfca;
    --muted: #8a9a94; --line: #23302b; --line-strong: #314139; --brand: #2fbf71; --brand-strong: #46d184;
    --brand-ink: #04140b; --brand-soft: #12301f; --sale-soft: #3a1618; --warn-soft: #332a0d;
    --shadow: none; --shadow-hover: 0 0 0 1px var(--line-strong); --img-bg: #f4f6f5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 14px; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 0; }
h3 { font-size: 16px; margin: 0 0 6px; }
section { margin-top: 36px; }
.ico { width: 20px; height: 20px; flex: none; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.sec-head h1 { margin: 0; }

/* ---------- header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; gap: 24px; align-items: center; padding-top: 14px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo-text b { color: var(--brand); font-weight: 800; }
.logo-sm .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.logo-sm .logo-mark svg { width: 16px; height: 16px; }
.logo-sm .logo-text { font-size: 18px; }

.search { flex: 1; min-width: 0; display: flex; align-items: center; position: relative; background: var(--surface);
          border: 2px solid var(--accent); border-radius: 14px; transition: box-shadow .15s; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(255, 212, 59, .35); }
.search-ico { width: 19px; height: 19px; color: var(--muted); position: absolute; left: 14px; pointer-events: none; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 12px 11px 42px; font: inherit; background: transparent; color: var(--text); outline: none; }
.search button { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 0 22px; align-self: stretch; cursor: pointer; border-radius: 0 10px 10px 0; }
.search button:hover { filter: brightness(.97); }

.langs { display: flex; gap: 2px; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.langs a { text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.langs a:hover { color: var(--text); }
.langs a.on { background: var(--brand-soft); color: var(--brand-strong); }

.cats { display: flex; gap: 4px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 7px 14px 7px 11px; border-radius: 999px; white-space: nowrap; color: var(--text-2); font-weight: 500; }
.cats a .ico { width: 18px; height: 18px; color: var(--muted); }
.cats a:hover { background: var(--surface-2); }
.cats a.on { background: var(--brand-soft); color: var(--brand-strong); }
.cats a.on .ico { color: var(--brand); }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-ink);
       border: 1px solid transparent; border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; text-decoration: none;
       cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--brand-strong); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn-big { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand-strong); border-radius: 999px; padding: 2px 9px; font-weight: 600; font-size: 12px; }
.pill.bad { background: var(--sale-soft); color: var(--sale); }
.pill.wait { background: var(--warn-soft); color: #8a6d00; }
.avatar { --h: 150; width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-grid; place-items: center;
          font-weight: 800; font-size: 15px; color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 60% 92%); }
.avatar.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; margin-right: 8px; vertical-align: middle; }
@media (prefers-color-scheme: dark) { .avatar { color: hsl(var(--h) 60% 80%); background: hsl(var(--h) 35% 20%); } }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 28px;
        background: radial-gradient(1200px 400px at 0% 0%, var(--brand-soft), transparent 60%), var(--surface);
        border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-strong);
           background: var(--surface); border: 1px solid var(--line); padding: 5px 12px 5px 8px; border-radius: 999px; }
.eyebrow .ico { width: 16px; height: 16px; color: var(--brand); }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.035em; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 17px; color: var(--text-2); margin: 0 0 22px; max-width: 600px; }
.hero-search { display: flex; align-items: center; position: relative; background: var(--surface); border: 2px solid var(--text);
               border-radius: 16px; max-width: 640px; box-shadow: var(--shadow); }
.hero-search .search-ico { left: 16px; width: 21px; height: 21px; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 15px 12px 15px 46px; font: inherit; font-size: 16px; background: transparent; color: var(--text); outline: none; }
.hero-search button { border: 0; margin: 5px; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: 11px 20px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-chips a { text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.brand-chips a:hover { border-color: var(--brand); color: var(--brand-strong); }
.hero-stats { display: grid; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.stat b { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13.5px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none;
        display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
        box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.tile:hover { box-shadow: var(--shadow-hover); border-color: var(--brand); }
.tile-ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.tile-ico .ico { width: 30px; height: 30px; }
.tile-name { font-weight: 700; font-size: 17px; }
.tile-count { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.tile-count .ico { width: 15px; height: 15px; transition: transform .15s; }
.tile:hover .tile-count .ico { transform: translateX(3px); color: var(--brand); }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.how-step p { margin: 0; color: var(--text-2); font-size: 14px; }
.how-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-soft); color: #8a6d00; display: grid; place-items: center; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .how-ico { color: var(--accent); } }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; display: flex;
        flex-direction: column; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; min-width: 0; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 1 / 1; background: var(--img-bg); display: flex; align-items: center; justify-content: center; padding: 18px; }
.thumb img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 8px; border-radius: 8px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.card-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 14px; line-height: 1.35; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.card-price { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.card-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.card-credit { font-size: 12.5px; color: var(--text-2); }
.card-stores { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin-top: 4px; }
.save { color: var(--brand-strong); font-weight: 600; }

/* ---------- listing ---------- */
.crumbs { margin: 18px 0 2px; color: var(--muted); font-size: 13.5px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results-head .count { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.filter-toggle { display: none; }
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky;
           top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.filters fieldset { border: 0; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 10px; align-items: center; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.check em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12.5px; }
.brands .check.extra { display: none; }
.brands.all .check.extra { display: flex; }
.more { background: none; border: 0; color: var(--brand-strong); font-weight: 600; padding: 6px 0 0; cursor: pointer; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; }
.seg input:checked + span { background: var(--text); color: var(--surface); border-color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface-2); color: var(--text); }
.row2 input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.filter-actions { display: flex; align-items: center; gap: 14px; }
.reset { color: var(--muted); font-size: 13.5px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 500; padding: 5px 8px 5px 12px; border-radius: 999px; }
.chip .ico { width: 14px; height: 14px; opacity: .7; }
.chip:hover .ico { opacity: 1; }
.sorts { display: flex; gap: 2px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-left: auto; }
.sorts a { text-decoration: none; padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.sorts a:hover { color: var(--text); }
.sorts a.on { background: var(--brand-soft); color: var(--brand-strong); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 28px 0 8px; }
.pager a { text-decoration: none; font-weight: 600; color: var(--brand-strong); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); justify-self: start; }
.pager a:last-child { justify-self: end; }
.empty { padding: 40px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty.slim { padding: 24px; }
.empty-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: inline-grid; place-items: center; color: var(--muted); margin-bottom: 10px; }
.empty p { margin: 0 0 12px; }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; background: var(--surface);
           border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-top: 10px; }
.product-img { background: var(--img-bg); border-radius: 14px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 22px; border: 1px solid var(--line); }
.product-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product h1 { font-size: 30px; margin: 4px 0 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.spec b { color: var(--muted); font-weight: 500; margin-right: 4px; }
.best { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px;
        padding: 20px 22px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: 16px; }
.best-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-strong); }
.best-price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.best-price s { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.best-store { display: flex; align-items: center; gap: 10px; color: var(--text-2); margin-top: 6px; }
.best-store .avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.facts .ico { color: var(--muted); width: 19px; height: 19px; }
.facts .good .ico { color: var(--brand); }

.offers { display: grid; gap: 8px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 110px auto; gap: 16px; align-items: center;
         background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.offer.top { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.offer.oos { opacity: .55; }
.offer-store { display: flex; gap: 12px; align-items: center; min-width: 0; }
.offer-store .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.offer-price { display: flex; flex-direction: column; }
.offer-price b { font-size: 19px; letter-spacing: -.02em; }
.offer-price s { color: var(--muted); font-size: 13px; }
.offer-credit { display: flex; flex-direction: column; font-size: 14px; }
.offer-credit span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.offer-credit .ico { width: 16px; height: 16px; color: var(--muted); }

.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }

.buybar { display: none; }

.about { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.about h2 { margin-bottom: 8px; }
.about p { margin: 0 0 8px; color: var(--text-2); max-width: 860px; }

/* ---------- tables (status) ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .err { white-space: normal; max-width: 360px; }

/* ---------- footer ---------- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid p { margin: 6px 0 0; max-width: 420px; }
.foot h2, .foot h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot a { text-decoration: none; color: var(--text-2); }
.foot a:hover { color: var(--brand-strong); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .offer { grid-template-columns: minmax(0, 1fr) 130px 130px auto; }
  .offer-seen { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 0px; }
  .wrap { padding: 0 16px; }
  .top { position: static; }
  .top-row { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
  .search { flex-basis: 100%; order: 2; }
  .langs { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; border-radius: 20px; margin-top: 16px; }
  .hero h1 { font-size: 32px; overflow-wrap: anywhere; }
  .hero-search button { padding: 11px 14px; }
  .lead { font-size: 15.5px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .tiles, .how { grid-template-columns: 1fr; }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .sorts { margin-left: 0; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .sorts a { white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .thumb { padding: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-price { font-size: 17px; }
  .product { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  .product-img { max-height: 320px; aspect-ratio: auto; }
  .product-img img { max-height: 280px; }
  .product h1 { font-size: 22px; }
  .best { padding: 16px; }
  .best .btn { width: 100%; }
  .best-price { font-size: 30px; }
  .offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "store price" "credit btn"; gap: 10px 12px; padding: 12px; }
  .offer-store { grid-area: store; }
  .offer-price { grid-area: price; text-align: right; }
  .offer-credit { grid-area: credit; flex-direction: row; gap: 8px; align-items: center; }
  .offer > .btn { grid-area: btn; padding: 8px 12px; }
  .offer-store .ttl { max-width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .has-buybar { padding-bottom: 76px; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px;
            padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
            box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .buybar > div { display: flex; flex-direction: column; line-height: 1.25; }
  .buybar b { font-size: 19px; }
  .buybar .btn { padding: 11px 18px; }
}
@media (max-width: 380px) {
  .grid { gap: 8px; }
  .card-title { font-size: 13px; }
  .hero h1 { font-size: 28px; }
}

/* ---------- landings, sections, FAQ ---------- */
.lead-sm { margin: -6px 0 6px; color: var(--text-2); font-size: 15.5px; }
.intro { margin: 0 0 18px; color: var(--muted); max-width: 900px; font-size: 14.5px; }
.check.dim { opacity: .45; }
.seg small { color: var(--muted); font-size: 11px; margin-left: 2px; }
.seg input:checked + span small { color: inherit; opacity: .7; }
.sec-head-link { justify-content: space-between; align-items: flex-end; }
.sec-head-link > div { display: flex; flex-direction: column; gap: 2px; }
.see-all { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--brand-strong); white-space: nowrap; }
.see-all .ico { width: 16px; height: 16px; transition: transform .15s; }
.see-all:hover .ico { transform: translateX(3px); }
.grid-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seo-links { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.link-groups { display: grid; gap: 16px; }
.link-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.link-group .brand-chips { margin-top: 0; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); }
.notfound { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.notfound .hero-search { width: 100%; margin: 12px auto; }
.brand-chips.center { justify-content: center; }
@media (max-width: 1080px) { .grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-row > :nth-child(5) { display: none; } }
@media (max-width: 900px) {
  .grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-row > :nth-child(5) { display: none; }
  .seo-links { padding: 16px; }
}

/* ---------- characteristics ---------- */
.card-specs { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-table { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px;
              background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.spec-table > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) { .spec-table { grid-template-columns: minmax(0, 1fr); padding: 4px 16px; } }

.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.foot-links > div { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .foot-links { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ---------- comparison ---------- */
.tg-alert { margin-top: 16px; margin-right: 8px; }
.card-wrap { position: relative; min-width: 0; display: flex; }
.card-wrap > .card { flex: 1; }
.cmp-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
           background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer;
           opacity: 0; transition: opacity .15s, background .15s; }
.cmp-btn .ico { width: 18px; height: 18px; }
.card-wrap:hover .cmp-btn, .cmp-btn:focus-visible, .cmp-btn.on { opacity: 1; }
.cmp-btn.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (hover: none) { .cmp-btn { opacity: 1; } }
.cmp-toggle { margin-top: 16px; }
.cmp-toggle.on { background: var(--brand-soft); border-color: var(--brand); }
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--text); color: var(--surface);
           box-shadow: 0 -6px 20px rgba(15, 23, 42, .15); }
.cmp-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.cmp-bar .ico { width: 18px; height: 18px; vertical-align: -4px; }
.cmp-bar-actions { display: flex; align-items: center; gap: 14px; }
.cmp-bar .reset { color: inherit; opacity: .75; background: none; border: 0; cursor: pointer; }
.has-buybar .cmp-bar { bottom: 68px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 40; background: var(--text); color: var(--surface);
         padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-hover); max-width: calc(100vw - 32px); }
.cmp-diff-label { font-size: 14px; }
.cmp-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: calc(160px + var(--cols) * 200px); table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-label { width: 160px; color: var(--muted); font-weight: 500; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp-col { position: relative; font-weight: 400; }
.cmp-head { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.cmp-img { height: 170px; background: var(--img-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.cmp-img img { max-height: 100%; width: auto; object-fit: contain; }
.cmp-title { font-weight: 600; line-height: 1.3; }
.cmp-price { font-size: 20px; font-weight: 800; margin-top: 8px; }
.cmp-buy { margin-top: 8px; width: 100%; }
.cmp-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
              background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.cmp-remove .ico { width: 14px; height: 14px; }
.cmp-table tr.differs td { background: color-mix(in srgb, var(--warn-soft) 60%, transparent); font-weight: 600; }
.cmp-diff-only .cmp-table tr.same { display: none; }

/* ---------------------------------------------------------------- AI assistant */
.ai { max-width: 920px; margin: 0 auto 40px; }
.ai-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; margin: 8px 0 18px; }
.ai-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; }
.ai-head p { margin: 0; grid-column: 1; }
.ai-head .btn { grid-row: 1 / span 2; grid-column: 2; padding: 8px 14px; }
.ai-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; }
.ai-avatar .ico { width: 22px; height: 22px; }
.ai-thread { display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.ai-row { display: flex; scroll-margin-bottom: 96px; scroll-margin-top: 130px; }
.ai-user { justify-content: flex-end; }
.ai-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; width: 100%; }
.ai-bubble { max-width: min(640px, 88%); padding: 11px 15px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
             background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.ai-user .ai-bubble { background: var(--brand); color: #fff; border-color: transparent; border-radius: 16px; border-top-right-radius: 4px; }
.ai-note { max-width: min(640px, 88%); padding: 9px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--text); font-size: 14px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px;
           font: inherit; font-size: 14px; cursor: pointer; }
.ai-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.ai-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-links .btn { padding: 8px 14px; font-size: 14px; }
.ai-links .btn + .btn { background: transparent; color: var(--brand-strong); border-color: var(--line-strong); }
.ai-recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ai-rec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ai-why { margin: 0; padding: 0 4px; list-style: none; font-size: 13px; color: var(--text-2); }
.ai-why li { padding-left: 16px; position: relative; margin: 2px 0; }
.ai-why li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-strong); font-weight: 700; }
.ai-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-blink 1.2s infinite both; }
.ai-typing span:nth-child(2) { animation-delay: .2s; } .ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-form { position: sticky; bottom: 12px; display: flex; gap: 8px; margin-top: 18px; padding: 6px; background: var(--surface);
           border: 2px solid var(--brand); border-radius: 16px; box-shadow: var(--shadow); }
.ai-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; padding: 8px 10px; outline: none; }
.ai-form button { flex: none; width: 44px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ai-form button .ico { width: 20px; height: 20px; }
.ai-disclaimer { text-align: center; margin-top: 10px; }
.nav-ai { color: var(--brand-strong) !important; font-weight: 700; }
@media (max-width: 700px) {
  /* Phones: the three picks become one swipeable row instead of a 2+1 grid. */
  .ai-recs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto;
             scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .ai-recs::-webkit-scrollbar { display: none; }
  .ai-rec { scroll-snap-align: start; }
  .nav-ai { order: -1; }
  .ai-row { scroll-margin-top: 12px; }  /* the header is not sticky on phones */
  .ai-head h1 { font-size: 22px; }
  .ai-bubble, .ai-note { max-width: 100%; }
}
.hero-ai { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.hero-ai:hover { text-decoration: underline; }
.hero-ai .ico { width: 18px; height: 18px; }
.ai-thread { padding-bottom: 6px; }
.ai-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.ai-pop { background: var(--brand-soft); border-color: transparent; color: var(--text); font-weight: 500; }
.ai-pop::before { content: "↗ "; color: var(--brand-strong); }

/* ---------------------------------------------------------------- rankings, families, guides */
.helper-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.helper-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft);
                  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.helper-strip a:hover { text-decoration: underline; }
.helper-strip .ico { width: 17px; height: 17px; color: var(--brand-strong); }
.rank-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rank-item { display: grid; grid-template-columns: 40px 150px minmax(0, 1fr) 190px; gap: 18px; align-items: start;
             background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.rank-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; }
.rank-item:nth-child(-n+3) .rank-no { background: var(--accent); color: var(--accent-ink); }
.rank-img { display: block; aspect-ratio: 1; background: var(--img-bg, #fff); border-radius: 12px; overflow: hidden; }
.rank-img img { width: 100%; height: 100%; object-fit: contain; }
.rank-title { font-size: 18px; margin: 2px 0 6px; }
.rank-title a { color: var(--text); text-decoration: none; }
.rank-title a:hover { text-decoration: underline; }
.rank-body .ai-why { font-size: 14px; margin-top: 8px; }
.rank-buy { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: right; }
.rank-buy .card-price { font-size: 22px; }
.rank-buy .btn { margin-top: 8px; padding: 9px 12px; font-size: 14px; }
.rank-cmp { position: static; align-self: flex-end; margin-top: 4px; }
.rank-score { margin-top: 2px; }
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.method h2 { margin: 0 0 8px; font-size: 18px; }
.method p { margin: 0 0 8px; color: var(--text-2); }
.links-inline { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 0; font-weight: 600; }
.links-inline a { color: var(--brand-strong); text-decoration: none; }
.fam-table-wrap { overflow-x: auto; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fam-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fam-table th, .fam-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.fam-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.fam-table tr:last-child td { border-bottom: 0; }
.fam-table a { color: var(--text); }
.fam-size { font-weight: 700; white-space: nowrap; }
.fam-price { white-space: nowrap; }
.fam-sizes .sec-head a { color: var(--brand-strong); font-weight: 600; text-decoration: none; }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 12px;
             background: var(--surface); color: var(--text); text-decoration: none; min-width: 92px; }
.size-pill span { font-size: 13px; color: var(--muted); }
.size-pill:hover { border-color: var(--brand); }
.size-pill.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.guide { max-width: 820px; }
.guide h1 { margin: 6px 0 8px; }
.guide-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; margin: 18px 0 8px; }
.guide-toc ol { margin: 0; padding-left: 18px; line-height: 1.9; }
.guide-toc a { color: var(--brand-strong); text-decoration: none; }
.guide-sec { margin: 28px 0; scroll-margin-top: 130px; }
.guide-sec h2 { font-size: 21px; margin: 0 0 10px; }
.guide-sec p { line-height: 1.65; margin: 0 0 12px; color: var(--text-2); }
.guide-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.guide-opt { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
             background: var(--surface); color: var(--text); text-decoration: none; }
.guide-opt:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.guide-opt-label { font-weight: 600; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 30px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
              background: var(--surface); color: var(--text); text-decoration: none; }
.guide-card:hover { border-color: var(--brand); }
.guide-ico .ico { width: 28px; height: 28px; color: var(--brand-strong); }
@media (max-width: 700px) {
  .rank-item { grid-template-columns: 30px 92px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .rank-no { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
  .rank-title { font-size: 15.5px; }
  .rank-buy { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left; }
  .rank-buy .card-price { font-size: 19px; }
  .rank-buy .btn { margin: 0 0 0 auto; }
  .rank-cmp { margin: 0; }
  .fam-table th:nth-child(4), .fam-table td:nth-child(4) { display: none; }
  .guide-sec { scroll-margin-top: 12px; }
}
.rank-cmp { opacity: 1; }

/* ---------------------------------------------------------------- admin */
.adm-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 14px 0 8px; }
.adm-head h1 { margin: 0; font-size: 24px; }
.adm-tabs { display: flex; gap: 4px; }
.adm-tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; }
.adm-tabs a.on { background: var(--brand-soft); color: var(--brand-strong); }
.adm-h2 { font-size: 18px; margin: 26px 0 10px; }
.adm-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table th { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.paused td { opacity: .6; }
.adm-table tr.sel td { background: var(--brand-soft); }
.adm-table a { color: var(--text); }
.adm-table .btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.adm-runs { min-width: 260px; }
.run { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--surface-2); cursor: default; }
.run-ok { background: #e6f6ec; color: #11643a; }
.run-bad, .run-failed { background: #fdecec; color: #a3261f; }
.run-running { background: #fff6d6; color: #7a5a00; }
.adm-err { font-size: 12px; color: #a3261f; margin-top: 2px; max-width: 420px; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-ok { background: #e6f6ec; color: #11643a; }
.tag-bad { background: #fdecec; color: #a3261f; }
.tag-off { background: var(--surface-2); color: var(--muted); }
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.adm-kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.adm-kpis b { font-size: 26px; }
.adm-kpis span { color: var(--muted); font-size: 13px; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .adm-cols { grid-template-columns: minmax(0, 1fr); } .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* category groups in the top bar */
.cats .nav-grp { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; cursor: pointer;
                 padding: 7px 12px 7px 11px; border-radius: 999px; white-space: nowrap; color: var(--text-2); font-weight: 500; }
.cats .nav-grp .ico { width: 18px; height: 18px; color: var(--muted); }
.cats .nav-grp:hover, .cats .nav-grp[aria-expanded="true"] { background: var(--surface-2); }
.cats .nav-grp.on { background: var(--brand-soft); color: var(--brand-strong); }
.cats .nav-grp.on .ico { color: var(--brand); }
.nav-grp .caret { font-size: 11px; color: var(--muted); transition: transform .15s; }
.nav-grp[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-panel { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 20px 12px; }
.nav-panel[hidden] { display: none; }
.nav-panel a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; text-decoration: none;
               color: var(--text); background: var(--surface-2); font-weight: 500; white-space: nowrap; }
.nav-panel a .ico { width: 18px; height: 18px; color: var(--brand-strong); }
.nav-panel a:hover, .nav-panel a.on { background: var(--brand-soft); color: var(--brand-strong); }
@media (max-width: 700px) {
  /* one swipeable row on phones, like the category bar itself */
  .nav-panel { padding: 2px 16px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav-panel::-webkit-scrollbar { display: none; }
}

/* hubs (brand, group) */
.hub-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 6px 0 28px; }
.hub-cat { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
           background: var(--surface); color: var(--text); text-decoration: none; }
.hub-cat:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.hub-cat .tile-ico .ico { width: 26px; height: 26px; color: var(--brand-strong); }
.hub-cat-name { font-weight: 700; font-size: 16px; }
.brand-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 30px; }
.brand-index a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
                 background: var(--surface); color: var(--text); text-decoration: none; }
.brand-index a:hover { border-color: var(--brand); }
.sec-head h2 a { color: inherit; text-decoration: none; }
.sec-head .links-inline { margin: 0; gap: 14px; }
.nav-panel a.nav-hub { background: none; color: var(--brand-strong); font-weight: 600; }

/* price-history facts */
.price-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 999px;
               background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 700; }
.price-badge .ico { width: 15px; height: 15px; }
.price-facts { list-style: none; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: var(--surface);
               border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.price-facts li { padding-left: 18px; position: relative; }
.price-facts li::before { content: "•"; position: absolute; left: 4px; color: var(--muted); }
.price-facts.is-low { border-color: var(--brand); background: var(--brand-soft); }
.price-facts.is-low li:first-child { font-weight: 600; }
.price-facts.is-above li:first-child { font-weight: 600; }

/* Colour variants of one model: a label per offer and chips that filter the offers list */
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.cchip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.offer-color { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }
.sw-black { background: #1b1b1b; } .sw-white { background: #fff; } .sw-silver { background: linear-gradient(135deg, #e6e8ea, #a9adb2); }
.sw-grey { background: #8a8f95; } .sw-inox { background: linear-gradient(135deg, #d7d9dc, #8f949a); } .sw-beige { background: #e8dcc4; }
.sw-red { background: #c62f35; } .sw-blue { background: #2f5fc6; } .sw-green { background: #8fbf9f; } .sw-gold { background: linear-gradient(135deg, #f1d58a, #c49a3a); }
.offer[hidden] { display: none; }
.adm-bar { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: var(--line); vertical-align: middle; overflow: hidden; }
.adm-bar i { display: block; height: 100%; background: var(--brand); }

/* Header search suggestions */
.suggest { position: absolute; top: calc(100% + 8px); left: -2px; right: -2px; z-index: 60; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; }
.sg-sec + .sg-sec { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.sg-head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px 4px; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; min-height: 40px; }
.sg-item:hover, .sg-item.on { background: var(--surface-2); }
.sg-item.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.sg-chip .sg-meta { margin-left: auto; }
.sg-img { width: 44px; height: 44px; flex: none; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.sg-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sg-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-meta { font-size: 12.5px; color: var(--muted); }
.sg-price { font-weight: 700; white-space: nowrap; }
.sg-all { color: var(--brand-strong); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.sg-none { padding: 14px 10px; color: var(--muted); }
@media (max-width: 640px) {
  .suggest { max-height: 60vh; }
  .sg-price { font-size: 14px; }
}

/* Product page: the landing pages this model is listed on */
.list-links { display: flex; flex-wrap: wrap; gap: 8px; }
.list-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.list-link:hover { border-color: var(--brand); color: var(--brand-strong); }

/* Brand theme: dispute.az (violet + cyan, from the dispute.az placeholder). Text-safe shades of the
   placeholder's #7c5cff are used for text on white (#6d4cf5 ~ 5:1). */
html[data-brand="dispute"] {
  --brand: #6d4cf5; --brand-strong: #5636e0; --brand-ink: #ffffff; --brand-soft: #efebff;
  --accent: #22d3ee; --accent-ink: #052a33;
}
html[data-brand="dispute"] .logo-mark { background: #0b0d12; }
html[data-brand="dispute"] .logo-mark svg { width: 26px; height: 26px; }
html[data-brand="dispute"] .logo-sm .logo-mark svg { width: 21px; height: 21px; }
@media (prefers-color-scheme: dark) {
  html[data-brand="dispute"] {
    --brand: #8b74ff; --brand-strong: #a593ff; --brand-ink: #0b0d12; --brand-soft: #221a45;
    --accent: #22d3ee; --accent-ink: #052a33;
  }
}

.foot-counter { padding-top: 12px; padding-bottom: 4px; opacity: .8; }

/* Old forum URLs (app.legacy): a friendly landing page */
.legacy { padding-top: 24px; padding-bottom: 48px; }
.legacy-card { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.legacy-card h1 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 32px); }
.legacy-lead { font-size: 17px; line-height: 1.6; }
.legacy-search { display: flex; gap: 8px; margin: 18px 0; }
.legacy-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: 12px; font: inherit; background: var(--surface); color: var(--text); }
.legacy-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.legacy-links { font-size: 14px; }
