:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #fcfcfb;
  --surface-2: #f0efeb;
  --line: #e4e2dc;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #7c7a74;
  --accent: #e8590c;
  --accent-ink: #b8460a;
  --accent-soft: #fdeee4;
  --good: #0f7b3f;
  --good-soft: #e3f4ea;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --muted-soft: #eeede9;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #7c5cc4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 18, 12, .05), 0 4px 16px rgba(20, 18, 12, .05);
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #232321;
    --line: #2f2f2c;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --ink-3: #8f8e86;
    --accent: #f07a35;
    --accent-ink: #f59a63;
    --accent-soft: #3a2416;
    --good: #4cc38a;
    --good-soft: #17301f;
    --warn: #e0a83a;
    --warn-soft: #33280f;
    --muted-soft: #262624;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #a08ae6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); letter-spacing: 0; margin-top: -3px; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 42px 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; right: 13px; top: 12px; color: var(--ink-3); }
.status-pill { margin-inline-start: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 10px; position: relative; }
.status-text { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.dot.live { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.refresh-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.refresh-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.refresh-btn:disabled { opacity: .6; cursor: default; }
.status-msg { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; white-space: normal; width: max-content; max-width: 300px; z-index: 30; }

/* Sections */
main { padding: 28px 0 80px; }
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--ink-2); max-width: 640px; }
.stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.stat span { font-size: 13px; color: var(--ink-3); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { color: var(--ink-3); margin-inline-start: 4px; }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }

/* 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); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--line) 50%, var(--ink-3)); }
.card .thumb { aspect-ratio: 1; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.card .thumb img { width: 86%; height: 86%; object-fit: contain; }
.card .brand { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; text-transform: uppercase; }
.card h3 { font-size: 14.5px; line-height: 1.4; margin: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.price small { font-size: 13px; font-weight: 600; margin-inline-start: 1px; }
.meta { font-size: 12.5px; color: var(--ink-3); }
.was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tag-drop { background: var(--good-soft); color: var(--good); }
.tag-hot { background: var(--accent-soft); color: var(--accent-ink); }

/* Combo list */
.combo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.combo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; text-decoration: none; }
.combo:hover { box-shadow: var(--shadow); }
.combo-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.combo h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; }
.combo .store { font-size: 13px; color: var(--ink-2); }

/* Importer badges */
.imp { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.imp svg { flex: none; }
.imp-official { background: var(--good-soft); color: var(--good); }
.imp-parallel { background: var(--warn-soft); color: var(--warn); }
.imp-importer, .imp-unknown { background: var(--muted-soft); color: var(--ink-2); }

/* Product page */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.p-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.p-img { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; }
.p-img img { width: 86%; height: 86%; object-fit: contain; }
.p-head h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.015em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile .label { font-size: 12.5px; color: var(--ink-3); }
.tile .value { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.tile .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 22px; }
.panel h2 { font-size: 17px; margin: 0 0 4px; font-weight: 800; }
.panel .hint { margin: 0 0 14px; color: var(--ink-3); font-size: 13px; }

/* Chart */
.chart-wrap { position: relative; }
.chart svg { width: 100%; height: 280px; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; background: var(--c); }
.legend i.dashed { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .1s; z-index: 2; }
.tip b { font-weight: 700; }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 5px; }
.empty-chart { padding: 36px 0; text-align: center; color: var(--ink-3); font-size: 14px; }

/* Offers table */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.best td { background: color-mix(in srgb, var(--good-soft) 55%, transparent); }
.table .t-title { color: var(--ink-2); font-size: 13px; max-width: 360px; }
.table .t-store { font-weight: 600; white-space: nowrap; }
.table .t-price { font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.go { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.go:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }

.us-box { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.note { font-size: 12.5px; color: var(--ink-3); }

.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--ink-3); font-size: 13px; }
.footer p { margin: 4px 0; max-width: 760px; }

.loading { padding: 60px 0; text-align: center; color: var(--ink-3); }
.more { display: block; margin: 22px auto 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 18px; cursor: pointer; }
.more:hover { border-color: var(--ink-3); }
.more[hidden] { display: none; }

@media (max-width: 720px) {
  .top .wrap { gap: 12px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .status-pill { order: 2; margin-inline-start: auto; }
  .status-text { display: none; }
  .p-head { grid-template-columns: 1fr; }
  .p-img { max-width: 240px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .combo-list { grid-template-columns: 1fr; }
  .table .t-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Images: combo cards and offer rows */
.combo { grid-template-columns: 96px 1fr; align-items: start; gap: 14px; }
.combo-img { width: 96px; height: 96px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.combo-img img { width: 88%; height: 88%; object-fit: contain; }
.combo-body { display: grid; gap: 8px; min-width: 0; }
.t-thumb { width: 64px; padding-inline-end: 0 !important; }
.thumb-tile { width: 56px; height: 56px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: #52514e; font-size: 18px; }
.thumb-tile img { width: 90%; height: 90%; object-fit: contain; }
.thumb-tile.logo img { width: 92%; height: auto; max-height: 70%; }
@media (max-width: 720px) {
  .combo { grid-template-columns: 76px 1fr; }
  .combo-img { width: 76px; height: 76px; }
  .thumb-tile { width: 44px; height: 44px; }
  .t-thumb { width: 50px; }
}
.seg[hidden] { display: none; }
.card .brand { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.type-label { margin-inline-start: auto; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 1px 7px; font-size: 11.5px; }
.chip-type { background: var(--surface-2); }
#sources a { color: var(--ink-2); }

/* Deals ("מומלצים"): one strong badge, the same on every card, the home row and the product page */
:root { --deal: #c2410c; }
.card .thumb { position: relative; }
.deal-badge { direction: ltr; unicode-bidi: isolate; background: var(--deal); color: #fff; font-weight: 800; font-size: 13.5px; line-height: 1; padding: 6px 8px 5px; border-radius: 8px; letter-spacing: -.01em; white-space: nowrap; }
.card .deal-badge { position: absolute; top: 8px; inset-inline-start: 8px; box-shadow: 0 2px 6px rgba(194, 65, 12, .25); }
.card-deal { border-color: color-mix(in srgb, var(--deal) 28%, var(--line)); }
.card-deal:hover { border-color: color-mix(in srgb, var(--deal) 55%, var(--line)); }
.deal-ref { font-size: 13px; color: var(--ink-2); margin-top: -6px; }
.meta.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--deal) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--deal) 30%, var(--line)); }
.deal-banner .deal-badge { font-size: 17px; padding: 8px 10px 7px; flex: none; }
.deal-text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.deal-text b { color: var(--ink); font-weight: 700; font-size: 15px; }
.seg button small { color: var(--ink-3); font-weight: 500; margin-inline-start: 2px; }
.chip-more { white-space: nowrap; }
@media (max-width: 720px) {
  .section-head { flex-wrap: wrap; }
  .deal-banner { flex-wrap: wrap; gap: 10px 12px; }
  .deal-banner .go { flex-basis: 100%; justify-content: flex-end; }
  .card .deal-badge { top: 6px; inset-inline-start: 6px; font-size: 12.5px; }
}
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head .legend { margin-bottom: 0; }

/* Header links: deals and the kit builder, one tap from every page */
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { background: var(--ink); color: var(--bg); }
.refresh-btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .logo small { display: none; }
  .nav { order: 1; margin-inline-start: 4px; }
  .nav a { padding: 6px 10px; font-size: 13.5px; }
  .refresh-btn { padding: 7px; }
  .refresh-btn span { display: none; }
}

/* Builder entry on the home page */
.builder-cta { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.builder-cta:hover { border-color: var(--accent); transform: translateY(-1px); }
.builder-cta-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.builder-cta-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.builder-cta-text b { font-size: 16.5px; font-weight: 800; }
.builder-cta-text span { color: var(--ink-2); font-size: 14px; }
.builder-cta-go { flex: none; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
@media (max-width: 720px) {
  .builder-cta { flex-wrap: wrap; gap: 10px 14px; }
  .builder-cta-go { flex-basis: 100%; text-align: end; }
}

/* Contents tags (what a set holds) */
.kit-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.kit-tags span { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; }
.combo-deal .deal-badge { flex: none; }
.combo-deal .price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.combo-deal .deal-ref { margin-top: 0; }

/* Verdicts */
.verdict { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--muted-soft); border-radius: 7px; padding: 3px 9px; }
.verdict.good { color: var(--good); background: var(--good-soft); }
.verdict.bad { color: var(--warn); background: var(--warn-soft); }
.warn { margin: 10px 0 0; font-size: 13.5px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 7px 10px; }

/* Product page: combo against its parts */
.cv { border-top: 1px solid var(--line); padding: 10px 0; }
.cv:first-of-type { border-top: 0; }
.cv summary { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.cv summary::-webkit-details-marker { display: none; }
.cv summary::after { content: '▾'; margin-inline-start: auto; color: var(--ink-3); }
.cv[open] summary::after { content: '▴'; }
.cv-store { font-weight: 700; }
.cv-price { font-weight: 800; font-size: 16px; }
.cv .kit-tags { margin: 10px 0 6px; }
.cv-parts { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.cv-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.cv-parts a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* The builder */
.build { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 22px; align-items: start; }
.build-form { position: sticky; top: 80px; margin-top: 0; }
.build-form h1 { font-size: 24px; margin: 0 0 4px; font-weight: 800; letter-spacing: -.015em; }
.build-form h3 { font-size: 14px; margin: 18px 0 8px; font-weight: 700; }
.build-form .hint.small { font-size: 12.5px; margin: -4px 0 8px; }
.build-form .chips { gap: 6px; }
.build-form .chip { display: inline-flex; align-items: center; gap: 5px; }
.chip-off { opacity: .45; }
.build-form .chip-extra, .plat-compare li.extra { display: none; }
.build-form .chips.show-extra .chip-extra { display: inline-flex; }
.plat-compare ul.show-extra li.extra { display: block; }
.plat-more { margin-top: 6px; border: 0; background: none; color: var(--accent-ink); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 4px 2px; }
.chip-toggle { border-style: dashed; color: var(--ink-2); }
.build-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.build-results { min-width: 0; transition: opacity .15s; }
.build-results.busy { opacity: .45; pointer-events: none; }
.build-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 2px 0; }
.build-total { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.build-total small { font-size: 18px; }
.plat-compare h3 { margin: 0 0 8px; font-size: 15px; }
.plat-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plat-compare button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid transparent; background: var(--surface-2); border-radius: 9px; padding: 8px 11px; cursor: pointer; font-size: 14px; text-align: start; }
.plat-compare button:hover { border-color: var(--ink-3); }
.plat-compare button[aria-current] { background: var(--ink); color: var(--bg); }
.plat-compare small { font-size: 11.5px; opacity: .75; margin-inline-start: 4px; }
.option-top { border-color: color-mix(in srgb, var(--deal) 40%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--deal) 10%, transparent); }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.option-head h2 { margin: 0; font-size: 16.5px; }
.option-total { font-size: 24px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.parts { list-style: none; margin: 12px 0 0; padding: 0; }
.part { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.part-main { display: grid; gap: 4px; min-width: 0; }
.part-what { font-weight: 700; font-size: 14px; }
.part-title { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.part-title a { color: inherit; text-decoration: none; }
.part-title a:hover { text-decoration: underline; }
.part-end { display: grid; justify-items: end; gap: 4px; }
.part-price { font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.away { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 5px; padding: 1px 6px; margin-inline-start: 4px; }
@media (max-width: 900px) {
  .build { grid-template-columns: 1fr; }
  .build-form { position: static; }
}
@media (max-width: 720px) {
  .part { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .build-total { font-size: 30px; }
}

.part-price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); text-align: end; }
.build-bar { display: none; }
@media (max-width: 900px) {
  .build-bar:not([hidden]) { position: fixed; z-index: 25; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
  .build-bar b { font-weight: 800; font-size: 17px; }
  .build-bar.gone { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* A set's parts bought separately */
.sep { margin-top: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.sep-title { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.sep-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.sep-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 3px 0; }
.sep-what { color: var(--ink-2); min-width: 0; display: grid; gap: 1px; }
.sep-model { font-size: 12px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sep-model a, .sep-price a { color: inherit; text-decoration: none; }
.sep-model a:hover { text-decoration: underline; }
.sep-price { font-weight: 700; white-space: nowrap; text-align: end; }
.sep-price a { color: var(--accent-ink); }
.sep-price small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.sep-sum { border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 6px !important; font-weight: 700; }
.sep-sum span:first-child { color: var(--ink); }
.sep-verdict { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.sep-verdict.good { color: var(--good); }
.sep-verdict.bad { color: var(--warn); }
.sep-full .sep-list li { padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.sep-full .sep-list li.sep-sum { border-bottom: 0; }
.combo-deal .price-row .meta { flex: 1; min-width: 0; }
.part-sep { grid-column: 1 / -1; }
.sep-code { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sep-code a { color: inherit; text-decoration: none; }
.sep-code a:hover { text-decoration: underline; }
.sep-code em { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--warn); margin-inline-start: 4px; }
.part-code { font-size: 13px; font-weight: 700; color: var(--ink); }

/* A set's page: what's inside and what it costs without a combo, right under the header */
.combo-panel h2 { margin-bottom: 10px; }
.combo-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; align-items: end; }
.combo-vs > div { background: var(--surface-2); border-radius: 10px; padding: 9px 12px; display: grid; gap: 2px; }
.combo-vs b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.combo-vs .verdict { grid-column: 1 / -1; justify-self: start; }
.cv-more { margin-top: 10px; }
.cv-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--accent-ink); }
.cv-more .cv-parts li { align-items: center; }
.cv-more .verdict { font-size: 11.5px; padding: 2px 7px; margin-inline-start: 6px; }
.deal-ref b.good { color: var(--good); font-weight: 700; }
.deal-ref b.bad { color: var(--warn); font-weight: 700; }

/* A set's own page */
.set-tags { margin-top: 12px; }
.set-buy { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 14px; }
.set-buy .price { font-size: 30px; }
.btn-buy { background: var(--deal); color: #fff; border-radius: 11px; padding: 10px 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-buy:hover { filter: brightness(1.08); }
.set-link { display: inline-block; margin-top: 10px; }
.set-more { margin: 18px 2px 0; }
.cv-parts a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* Phones: offers as cards, filter rows that swipe, a shorter home page */
.offer-list { display: none; list-style: none; margin: 0; padding: 0; }
.oc { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.oc:first-child { border-top: 0; }
.oc.best { background: color-mix(in srgb, var(--good-soft) 55%, transparent); margin: 0 -12px; padding: 12px; border-radius: 10px; }
.oc .thumb-tile { width: 48px; height: 48px; }
.oc-main { display: grid; gap: 5px; min-width: 0; }
.oc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.oc-store { font-weight: 700; font-size: 14.5px; }
.oc-price { font-weight: 800; font-size: 17px; white-space: nowrap; text-align: end; }
.oc-price .was { display: block; font-size: 12px; font-weight: 500; }
.oc-title { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; }
.tagx { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; }
.tagx.warnx { color: var(--warn); background: var(--warn-soft); }
.oc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.more-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
@media (max-width: 720px) {
  .table-scroll { display: none; }
  .offer-list { display: block; }
  .chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px 4px; scroll-padding-inline: 20px; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); }
  .chips.scroll-x::-webkit-scrollbar { display: none; }
  .chips.scroll-x .chip { flex: none; }
  .grid.popular > :nth-child(n+13) { display: none; }
  .stats { gap: 14px 22px; }
}
.stat-status b { font-size: 16px; font-weight: 700; line-height: 1.6; }
@media (max-width: 720px) {
  .hero p { font-size: 14px; }
  .stat b { font-size: 19px; }
  .stat-status b { font-size: 14.5px; }
}

/* Builder: labelled fields, the option's item and store count */
.field { display: grid; gap: 5px; }
.field-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.field[hidden], #b-power[hidden] { display: none; }
#b-power { margin-top: 10px; }
.option-sub { margin: -2px 0 8px; }
.mini-head { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
@media (max-width: 720px) {
  .nav a { padding: 6px 8px; }
  .logo { gap: 8px; }
}
@media (max-width: 380px) {
  .logo > span:last-child { font-size: 17px; }
  .nav a { padding: 6px 6px; font-size: 13px; }
}
/* Phones: logo + three links on the first row, search + refresh on the second */
@media (max-width: 720px) {
  .top .search { order: 3; flex: 1 1 calc(100% - 56px); }
  .top .status-pill { order: 4; margin-inline-start: 0; }
  .refresh-btn { width: 42px; height: 42px; justify-content: center; border-radius: 12px; }
}

/* Amazon rating */
.stars { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars b { color: #b7791f; font-weight: 700; }
@media (prefers-color-scheme: dark) { .stars b { color: #f0b429; } }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; text-decoration: none; color: inherit; }
.rating-line:hover .meta { text-decoration: underline; }
.stars-big { font-size: 16px; letter-spacing: 1px; background: linear-gradient(to left, #f0b429 var(--r), var(--line) var(--r)); -webkit-background-clip: text; background-clip: text; color: transparent; direction: rtl; }
.rating-line b { font-size: 15px; }
/* Several brands */
.toolbar .chips .chip svg { margin-inline-end: 3px; vertical-align: -1px; }
.hint-line { width: 100%; font-size: 12px; margin-top: -4px; }
.sep-note { font-size: 11.5px; color: var(--warn); font-weight: 600; }

.ratings { display: grid; gap: 2px; margin-top: 6px; }
.ratings .rating-line { margin-top: 2px; }
.no-rating { margin-top: 6px; }
.sep-stars { color: #b7791f; font-weight: 700; font-size: 11.5px; }
@media (prefers-color-scheme: dark) { .sep-stars { color: #f0b429; } }
