/* Zakka customer app v2 — AUTODOC-app structure, Zakka identity.
   Navy + teal from the Zakka mark, amber (dashboard warning-light) for actions.
   Status is always icon + word: the owner is colour blind, so are many customers. */
:root {
  --navy: #111c41; --navy-2: #1a2a56; --navy-3: #24366b;
  --teal: #1f7f98; --teal-ink: #16657a; --teal-soft: #e1f0f3;
  --amber: #f5a524; --amber-press: #e0920f; --amber-ink: #111c41; --amber-soft: #fff1d6;
  --bg: #eef1f5; --panel: #ffffff; --panel-2: #f7f9fb;
  --ink: #131b2c; --ink-soft: #4f5b6c; --ink-faint: #8792a2; --line: #e1e6ec;
  --late: #c2410c; --late-soft: #fde8dc; --soon: #a16207; --soon-soft: #fdf3d7;
  --ok: #16657a; --ok-soft: #e1f0f3; --unk-soft: #eceff3;
  --plate: #ffffff; --plate-band: #1d4fa3;
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 22px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 28px;
  --e1: 0 1px 2px rgba(17, 28, 65, .06), 0 1px 1px rgba(17, 28, 65, .04);
  --e2: 0 6px 18px -8px rgba(17, 28, 65, .22), 0 2px 4px rgba(17, 28, 65, .05);
  --e3: 0 -10px 30px -12px rgba(17, 28, 65, .28);
  --font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-num: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  --font-ar: 'Noto Kufi Arabic', 'Geeza Pro', Tahoma, sans-serif;
  --tab-h: 62px; --dur: .18s;
  color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0a1020; --panel: #121a2e; --panel-2: #172038; --ink: #e8edf5; --ink-soft: #a9b3c4; --ink-faint: #6e798b; --line: #233048;
    --teal-soft: #10303a; --amber-soft: #3a2a0c; --late: #fb923c; --late-soft: #3b1a0c; --soon: #facc15; --soon-soft: #352a08;
    --ok: #5ec2d8; --ok-soft: #10303a; --unk-soft: #1b2438;
    --e1: 0 1px 2px rgba(0, 0, 0, .4); --e2: 0 6px 18px -8px rgba(0, 0, 0, .6); --e3: 0 -10px 30px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
body.has-action { padding-bottom: calc(var(--tab-h) + 76px + env(safe-area-inset-bottom)); }
.ar, [lang="ar"] { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; }
a { color: var(--teal-ink); }
:root[data-theme="dark"] a:not([class]) { color: var(--ok); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; display: block; }
svg { flex: none; }
.spacer { flex: 1; }

/* ------------------------------------------------ header: brand, search, car */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff;
  padding: env(safe-area-inset-top) var(--s4) var(--s3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.topbar-row { display: flex; align-items: center; gap: var(--s2); height: 52px; }
.brand { display: flex; align-items: center; gap: var(--s2); color: #fff; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); display: grid; place-items: center; font: 700 19px/1 var(--font-num); }
.brand-name { font: 700 20px/1 var(--font-num); letter-spacing: .3px; display: flex; flex-direction: column; gap: 2px; }
.brand-name small { font: 500 11px/1 var(--font); opacity: .65; letter-spacing: .2px; }
.icon-btn { width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; margin-left: -8px; }
.icon-btn#waTop { margin: 0 -8px 0 0; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { background: rgba(255, 255, 255, .12); }
.topsearch { display: flex; align-items: center; gap: var(--s2); height: 46px; padding: 0 var(--s3); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.topsearch svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-faint); stroke-width: 2.2; stroke-linecap: round; }
.topsearch input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 15px; color: #131b2c; }
.topsearch input::placeholder { color: #8792a2; }
.topbar.compact .topsearch { display: none; }

/* the car bar is a number plate — the one memorable thing */
.carbar {
  margin-top: var(--s3); width: 100%; display: flex; align-items: stretch; gap: 0; padding: 0; border: 0; cursor: pointer;
  border-radius: 9px; background: var(--plate); color: #111c41; overflow: hidden; text-align: left;
  box-shadow: inset 0 0 0 2px #111c41, 0 2px 0 rgba(0, 0, 0, .25);
}
.carbar .band { width: 30px; background: var(--plate-band); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 9px/1.1 var(--font-ar); gap: 2px; }
.carbar .band b { font: 700 11px/1 var(--font-num); }
.carbar .plate-txt { flex: 1; padding: 7px var(--s3); min-width: 0; text-align: left; }
.carbar .plate-car, .carbar .plate-sub { display: block; }
.carbar .plate-car { font: 700 17px/1.15 var(--font-num); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carbar .plate-sub { font-size: 12px; color: #4f5b6c; }
.carbar .plate-go { display: flex; align-items: center; padding: 0 var(--s3); font: 600 13px/1 var(--font); color: var(--teal-ink); border-left: 1px dashed #c9d1db; }
.carbar.empty .plate-car { text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------ bottom tabs + sticky action */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 25; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--panel); border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--ink-faint); font-size: 11.5px; font-weight: 600; }
.tabbar a .ar { font-size: 9.5px; font-weight: 400; line-height: 1.25; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--navy); }
:root[data-theme="dark"] .tabbar a.active { color: #fff; }
.tabbar a.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
.tabbar a.active svg { stroke-width: 2.3; }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--amber-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.actionbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 24;
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--panel); box-shadow: var(--e3);
}
.actionbar .ab-price { display: flex; flex-direction: column; line-height: 1.1; }
.actionbar .ab-price small { font-size: 12px; color: var(--ink-soft); }

/* ------------------------------------------------ layout + type */
main { max-width: 640px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s6); outline: none; }
.stack > * + * { margin-top: var(--s5); }
.stack.tight > * + * { margin-top: var(--s3); }
.row { display: flex; align-items: center; gap: var(--s2); }
.row.wrap { flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1, .h1 { font: 700 26px/1.15 var(--font-num); letter-spacing: .1px; }
h2, .h2 { font: 700 19px/1.2 var(--font-num); letter-spacing: .1px; }
h3, .h3 { font-size: 16px; font-weight: 600; }
.bi { display: flex; flex-direction: column; }
.bi .ar { font-size: .78em; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.h1.bi .ar, .h2.bi .ar { font-size: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.section-head a, .link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--teal-ink); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ surfaces */
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--e1); padding: var(--s4); }
.card.flat { box-shadow: none; border: 1px dashed var(--line); background: transparent; }
.card + .card { margin-top: var(--s3); }
.list { background: var(--panel); border-radius: var(--r); box-shadow: var(--e1); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list > *:last-child { border-bottom: 0; }
.list .chev { color: var(--ink-faint); font-size: 22px; line-height: 1; }
.list.block > * { display: block; }

/* odometer: the garage hero */
.garage-hero { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--e2); position: relative; overflow: hidden; }
.garage-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .04); }
.garage-hero .muted, .garage-hero .bi .ar { color: rgba(255, 255, 255, .7); }
.odo { display: inline-flex; gap: 3px; margin: var(--s2) 0 var(--s1); }
.odo i { font: 700 30px/1 var(--font-num); font-style: normal; width: 26px; height: 42px; display: grid; place-items: center; border-radius: 5px; background: #0a1230; box-shadow: inset 0 -12px 14px rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.odo i.dim { color: rgba(255, 255, 255, .25); }
.odo .unit { align-self: flex-end; margin-left: 6px; font: 600 14px/1 var(--font); color: rgba(255, 255, 255, .75); }
.garage-hero form { display: flex; gap: var(--s2); margin-top: var(--s3); position: relative; z-index: 1; }
.garage-hero .input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.garage-hero .input::placeholder { color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 46px; padding: 0 var(--s4); border-radius: var(--r-sm); border: 1px solid transparent; background: var(--navy-2); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform var(--dur), background var(--dur); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--amber); color: var(--amber-ink); }
.btn.primary:active { background: var(--amber-press); }
.btn.teal { background: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.garage-hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn.wa { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.wa svg { width: 20px; height: 20px; fill: none; stroke: #1f9d55; stroke-width: 2; }
.btn.danger { background: transparent; color: var(--late); border-color: transparent; }
.btn.sm { min-height: 36px; padding: 0 var(--s3); font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .ar { font-weight: 400; opacity: .85; font-size: .88em; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
label.field { display: block; }
label.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: var(--s1); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); font-size: 16px; }
.input:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px var(--teal-soft); }
textarea.input { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.searchbar { display: flex; gap: var(--s2); }
.searchbar .input { flex: 1; }
.check { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); }
.chips { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 calc(var(--s4) * -1); padding: 0 var(--s4); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); cursor: pointer; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--unk-soft); border-radius: var(--r-sm); padding: 4px; }
.seg button { border: 0; background: transparent; min-height: 40px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--panel); box-shadow: var(--e1); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.qty button { width: 40px; height: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font: 700 17px/1 var(--font-num); }

/* ------------------------------------------------ status: icon + word, never colour alone */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status .ar { font-weight: 400; }
.status.overdue { background: var(--late-soft); color: var(--late); }
.status.soon { background: var(--soon-soft); color: var(--soon); }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.unknown { background: var(--unk-soft); color: var(--ink-soft); }
.reminder { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s3); padding: var(--s4); border-bottom: 1px solid var(--line); }
.reminder:last-child { border-bottom: 0; }
.reminder .actions { grid-column: 1 / -1; display: flex; gap: var(--s2); flex-wrap: wrap; }
.gauge { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); }
.gauge .track { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gauge .track i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.gauge.soon .track i { background: var(--amber); }
.gauge.overdue .track i { background: repeating-linear-gradient(45deg, var(--late) 0 6px, #ea6a2a 6px 12px); }
.gauge small { font: 600 12.5px/1 var(--font-num); color: var(--ink-soft); min-width: 36px; text-align: right; }

/* ------------------------------------------------ catalogue */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
@media (min-width: 520px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat { background: var(--panel); border-radius: var(--r); box-shadow: var(--e1); padding: var(--s3) var(--s2); min-height: 112px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: flex-start; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.cat .ar { font-size: 11.5px; color: var(--ink-soft); font-weight: 400; }
.cat img { width: 56px; height: 56px; object-fit: contain; }
.cat .cat-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-ink); }
.cat .cat-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.quick a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); background: var(--panel); border-radius: var(--r); box-shadow: var(--e1); text-decoration: none; color: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.quick a .ar { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-soft); }
.quick .q-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--amber-soft); color: var(--navy); }
.quick .q-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .quick .q-ico { color: var(--amber); }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 560px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product { position: relative; background: var(--panel); border-radius: var(--r); box-shadow: var(--e1); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
/* 18/11: the photo is taken out of the layout so a tall picture (oil filter) can't stretch the box
   and spill over the name and part number; it always fits inside the square. */
/* 2026-11-19: square photo box that never grows with the picture. iPhone Safari let a tall (portrait)
   catalogue photo stretch the old aspect-ratio box and spill over the card text (Oil Filter 55589295).
   Fixed-height trick (height 0 + padding-bottom 100%) + paint containment = always square, always clipped. */
.product .ph { --ph-pad: var(--s2); display: block; aspect-ratio: auto; height: 0; padding: 0 0 100%; background: #fff; position: relative; overflow: hidden; contain: paint; flex: none; }
.product .ph img { position: absolute; top: var(--ph-pad); left: var(--ph-pad); width: calc(100% - 2 * var(--ph-pad)); height: calc(100% - 2 * var(--ph-pad)); max-width: none; object-fit: contain; display: block; }
.product .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #8792a2; font-size: 12px; }
.product .tag { position: absolute; top: 8px; left: 8px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--navy); color: #fff; }
.product .body { padding: var(--s2) var(--s3) var(--s3); display: flex; flex-direction: column; gap: 2px; flex: 1; border-top: 1px solid var(--line); }
.product .brand { font: 700 12.5px/1.2 var(--font-num); letter-spacing: .4px; text-transform: uppercase; color: var(--teal-ink); }
:root[data-theme="dark"] .product .brand { color: var(--ok); }
.product .name { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .name-ar { font-family: var(--font-ar); direction: rtl; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font: 700 19px/1.1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--ink); }
.product .price { margin-top: auto; padding-top: var(--s2); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: #fff; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; padding: var(--s4); }
.fit { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r); }
.fit .fit-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.fit.yes { background: var(--ok-soft); } .fit.yes .fit-ico { background: var(--teal); color: #fff; }
.fit.no { background: var(--soon-soft); } .fit.no .fit-ico { background: var(--amber); color: var(--navy); }
.fit.ask { background: var(--unk-soft); } .fit.ask .fit-ico { background: var(--ink-faint); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; }
.line { display: grid; grid-template-columns: 60px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: 0; }
.line img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: #fff; }
.was { text-decoration: line-through; color: var(--ink-faint); font-size: 13px; margin-right: 6px; }
.timeline { list-style: none; margin: 0; padding: var(--s4); }
.timeline li { display: flex; gap: var(--s3); padding-bottom: var(--s5); position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--teal); }
.timeline .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--unk-soft); color: var(--ink-faint); font-weight: 800; flex: none; }
.timeline .done .dot { background: var(--teal); color: #fff; }
.timeline .current .dot { box-shadow: 0 0 0 4px var(--teal-soft); }
details.card > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.card > summary::after { content: '+'; font-size: 22px; color: var(--ink-faint); }
details.card[open] > summary::after { content: '−'; }
details.card[open] > summary { margin-bottom: var(--s3); }

/* ------------------------------------------------ feedback */
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--ink-soft); }
.empty .big { font-size: 40px; margin-bottom: var(--s2); }
.empty .bi { align-items: center; }
.empty p { margin: var(--s3) 0 0; }
.skel { background: linear-gradient(90deg, var(--line) 25%, var(--panel-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 96px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); z-index: 40; max-width: calc(100% - 32px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--e2); font-size: 14.5px; font-weight: 500; }
body.has-action .toast { bottom: calc(var(--tab-h) + 90px + env(safe-area-inset-bottom)); }
.notice { padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--teal-soft); font-size: 14px; }
.err { color: var(--late); font-size: 14px; font-weight: 500; margin: 0; }
.auth { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }

/* ------------------------------------------------ bottom sheet (replaces browser pop-ups) */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 28, .5); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 86vh; overflow: auto; background: var(--panel); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s3) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); box-shadow: var(--e3); animation: up .22s ease-out; max-width: 640px; margin: 0 auto; }
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto var(--s3); }
@keyframes up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.pick { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 60px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer; text-align: left; margin-bottom: var(--s2); }
.pick.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

/* Catalogue filters + sort (2026-10-28) */
.filterbar { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.filterbar .sortsel { margin-left: auto; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input.sm { min-height: 36px; padding: 0 var(--s3); font-size: 13.5px; width: auto; }
.brandlist { max-height: 40vh; overflow-y: auto; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.askprice { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.brandlist .check { padding-right: var(--s3); }

/* Car picker on "Add a car" (2026-10-29): brand logos → model → year */
.pick-step { display: grid; gap: 2px; margin: var(--s2) 0; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 100px; padding: 10px 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font: 600 13px/1.2 var(--font); text-align: center; cursor: pointer; }
.brand-tile:hover, .brand-tile:focus-visible { border-color: var(--teal); outline: none; }
.brand-tile.other { border-style: dashed; }
.logo-plate { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 44px; padding: 4px 6px; background: #fff; border-radius: 8px; overflow: hidden; }
.logo-plate img { display: block; width: auto; height: auto; max-width: 52px; max-height: 36px; object-fit: contain; }
.logo-plate.big { width: 76px; height: 52px; }
.logo-plate.big img { max-width: 64px; max-height: 44px; }
.brand-letter { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 20px var(--font-num); }
.brand-letter.big { width: 52px; height: 52px; }
.picked { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); background: var(--panel-2); border-radius: var(--r-sm); margin-bottom: var(--s2); font-size: 17px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.pick-grid.years { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.pick-btn { min-height: 44px; padding: 6px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font: 600 14.5px var(--font); cursor: pointer; text-align: center; }
.pick-btn:hover, .pick-btn:focus-visible { border-color: var(--teal); outline: none; }
#carForm .row.wrap { gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s2); }

/* Phase 1 (30/10): axle, brand chips, richer cards, fit counts. Icon + word, never colour alone. */
.product .ph { position: relative; }
.axle-tag { position: absolute; top: 8px; left: 8px; font: 700 11.5px/1 var(--font-num); padding: 4px 8px; border-radius: 6px; background: var(--navy); color: #fff; letter-spacing: .3px; }
.axle-tag.rear { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.product .facts { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.product .facts b { color: var(--ink); }
.stock { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; margin-top: 4px; }
.stock.yes { color: var(--ok); }
.stock.no { color: var(--soon); }
/* Pre-order parts (4 Nov 2026): clock icon + words, never colour alone. */
.stock.pre { color: var(--ink); background: var(--unk-soft, #eef1f5); border: 1px dashed var(--ink-faint, #8a94a6); border-radius: 6px; padding: 2px 7px; flex-wrap: wrap; }
.stock.pre.tiny { font-size: 11px; margin: 2px 0; }
.fit.pre { background: var(--unk-soft, #eef1f5); border: 1.5px dashed var(--ink-faint, #8a94a6); }
.fit.pre .fit-ico { background: var(--navy); color: #fff; }
.chips.scroll { margin-bottom: 10px; }
.chip small { font-weight: 400; opacity: .7; }
.seg { display: flex; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.seg-btn { flex: 1; text-align: center; padding: 9px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.seg-btn.on { background: var(--navy); color: #fff; }
.seg-btn small { font-weight: 400; opacity: .75; }
.cat .fitcount { font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 99px; padding: 2px 8px; }
.axle-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.pick.big { flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; text-align: center; }
.pick.big small { color: var(--ink-soft); }
.axle-ico { font-size: 28px; line-height: 1; }

/* ------------------------------------------------ one shop: home rails + offers (2026-11-01) */
.addcar-hero { width: 100%; display: flex; align-items: center; gap: var(--s3); text-align: left; cursor: pointer; padding: var(--s4); border-radius: var(--r-lg); border: 2px dashed var(--teal); background: var(--panel); color: inherit; box-shadow: var(--e1); }
.addcar-hero .small { display: block; color: var(--ink-soft); margin-top: 4px; }
.addcar-hero .ac-plus { width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; font: 700 28px/1 var(--font-num); flex: none; }
.addcar-hero .chev { font-size: 26px; color: var(--ink-faint); }
.grow { flex: 1; min-width: 0; }
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding: 2px var(--s4) 4px; }
.offers::-webkit-scrollbar, .rail-track::-webkit-scrollbar { display: none; }
.offer { scroll-snap-align: start; position: relative; overflow: hidden; min-height: 138px; border-radius: var(--r-lg); padding: var(--s4); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); box-shadow: var(--e2); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); }
.offer .bi .ar, .offer .small { color: rgba(255, 255, 255, .78); }
.offer .small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; max-width: 34ch; }
.offer .h3 { font: 700 19px/1.2 var(--font-num); }
.offer .o-cta { align-self: flex-start; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 99px; position: relative; z-index: 1; }
.offer::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .06); }
.offer.o-car { background: linear-gradient(135deg, #16657a 0%, #1f7f98 100%); }
.offer.o-vip::after { border-style: dotted; }
.offer.o-vip { background: linear-gradient(135deg, #1a2a56 0%, #3a2a0c 140%); }
.offer.o-pick { background: linear-gradient(135deg, #24366b 0%, #111c41 100%); }
/* VIN watermark sits in the empty bottom-right corner, never under the title (2026-11-06). */
.offer.o-vin::before { content: 'VIN'; position: absolute; right: 16px; bottom: 12px; top: auto; font: 700 56px/1 var(--font-num); letter-spacing: 3px; color: rgba(255, 255, 255, .07); pointer-events: none; z-index: 0; }
:root[dir="rtl"] .offer.o-vin::before { right: auto; left: 16px; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding: 2px var(--s4) 6px; }
.rail-track > * { scroll-snap-align: start; }
.rail-track { scroll-padding-inline: var(--s4); } /* 2026-11-14: first card lines up with the heading instead of sticking to the screen edge */
#feed > * + * { margin-top: var(--s5); }
#feed:empty { display: none; }

/* ------------------------------------------------ computers: the same shop, wider (2026-11-01) */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  body.has-action { padding-bottom: 80px; }
  .topbar { display: grid; grid-template-columns: auto minmax(260px, 1fr) minmax(240px, 330px) auto; align-items: center; column-gap: var(--s4);
    padding: 10px max(24px, calc((100vw - 1200px) / 2)); }
  .topbar-row { height: auto; }
  .topbar-row .spacer, #waTop { display: none; }
  .topsearch { grid-column: 2; }
  .carbar { grid-column: 3; margin-top: 0; }
  .tabbar { grid-column: 4; position: static; height: auto; padding: 0; display: flex; gap: 2px; background: transparent; border: 0; }
  .tabbar a { color: rgba(255, 255, 255, .72); padding: 6px 10px; border-radius: 10px; min-width: 64px; }
  .tabbar a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .tabbar a.active { color: #fff; }
  .tabbar a.active::before { top: auto; bottom: -2px; left: 25%; right: 25%; border-radius: 3px; }
  .badge { top: 0; }
  main { max-width: 1200px; padding: var(--s6) 24px 48px; }
  .products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); }
  .cats { grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
  .quick { grid-template-columns: repeat(2, minmax(0, 320px)); }
  .offers { grid-auto-columns: calc((100% - 3 * var(--s3)) / 4); margin-inline: 0; padding-inline: 0; }
  .rail-track { grid-auto-columns: 210px; gap: var(--s3); margin-inline: 0; padding-inline: 0; }
  .actionbar { bottom: 0; left: 50%; right: auto; width: min(1200px, 100%); transform: translateX(-50%); border-radius: var(--r) var(--r) 0 0; }
  .sheet { bottom: 24px; border-radius: var(--r-lg); max-width: 560px; }
  .garage-hero, .addcar-hero { max-width: none; }
}


/* ------------------------------------------------ category groups, AUTODOC-style cards (2026-11-01) */
.groups { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.group { display: flex; align-items: center; gap: var(--s3); min-height: 112px; padding: var(--s2) var(--s4) var(--s2) var(--s2); background: #fff; color: #131b2c; border-radius: var(--r-lg); box-shadow: var(--e1); text-decoration: none; transition: transform var(--dur), box-shadow var(--dur); }
.group:active { transform: scale(.985); }
.group .g-img { flex: 0 0 42%; max-width: 170px; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.group .g-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.group .g-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.group .g-name { font: 600 19px/1.2 var(--font); }
.group .g-ar { font-family: var(--font-ar); font-size: 13px; color: #4f5b6c; }
.group .g-count { margin-top: 4px; font-size: 12px; font-weight: 600; color: #4f5b6c; background: #eef1f5; border-radius: 99px; padding: 2px 9px; }
.group .g-count.fit { color: #16657a; background: #e1f0f3; }
.group-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.group-head img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: var(--r); padding: 4px; box-shadow: var(--e1); }
@media (min-width: 600px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .groups { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .group:hover { box-shadow: var(--e2); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .group { transition: none; } .group:hover, .group:active { transform: none; } }

/* ── WhatsApp codes (2026-11-05): 6-box code, wrong-password shake, verified pill ──
   Every state has an icon + words, never colour alone (owner is colour blind). */
.linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 14px; font-weight: 600; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:disabled { color: var(--ink-faint); text-decoration: none; cursor: default; }
.otp-wrap { text-align: center; }
.otp-wrap .h2, .otp-wrap h2 { text-align: center; }
.otp-badge { width: 56px; height: 56px; margin: 2px auto 4px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy), var(--teal)); box-shadow: 0 10px 22px -10px rgba(17,28,65,.6); }
.otp-badge svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px auto 2px; max-width: 340px; }
.otp-box { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font: 700 24px/1 var(--font-num, inherit); color: var(--ink);
  background: var(--panel-2); border: 1.5px solid var(--line); border-radius: 12px; caret-color: var(--teal);
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; -moz-appearance: textfield; }
.otp-box:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); transform: translateY(-1px); }
.otp-box.filled { background: var(--panel); border-color: var(--navy-3); }
.otp-msg { min-height: 20px; margin: 0; font-size: 14px; font-weight: 600; }
.otp-msg.bad { color: var(--late); } .otp-msg.good { color: var(--ok); }
.otp-foot { display: flex; gap: 8px; justify-content: center; align-items: center; color: var(--ink-soft); flex-wrap: wrap; }
.otp-wrap.ok .otp-box { border-color: var(--ok); background: var(--ok-soft); }
.otp-wrap.busy .otp-box { opacity: .6; }
.bad .otp, form.bad { animation: zk-shake .42s cubic-bezier(.36,.07,.19,.97); }
.otp-wrap.bad .otp-box { border-color: var(--late); border-style: dashed; }
@keyframes zk-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: zk-spin .7s linear infinite; }
@keyframes zk-spin { to { transform: rotate(360deg); } }
.vpill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px; border-radius: 999px; font: 600 13.5px/1.2 var(--font, inherit); border: 1px solid transparent; }
.vpill.ok { background: var(--ok-soft); color: var(--ok); }
.vpill.todo { background: var(--amber-soft); color: var(--navy); border: 1.5px dashed var(--amber); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .bad .otp, form.bad, .spin { animation: none; } .otp-box:focus { transform: none; } }

/* ── Home as a bento grid (2026-11-05, "Pulse" reel) ─────────────────────────
   Car hero = the big tile; offers and shortcuts become tiles around it. */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento > .garage-hero, .bento > .addcar-hero { grid-column: 1 / -1; }
.bento .quick { display: contents; }
.bento .offers { grid-column: 1 / -1; min-width: 0; }
.bento .offer { min-height: 120px; border-radius: 22px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.bento .quick a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 20px; min-height: 104px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(17,28,65,.04), 0 12px 26px -20px rgba(17,28,65,.45);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.bento .quick .q-ico { transition: transform .35s cubic-bezier(.34,1.56,.64,1); background: linear-gradient(140deg, var(--navy), var(--teal)); color: #fff; }
.bento .quick a:nth-child(2) .q-ico { background: linear-gradient(140deg, #128c4a, #25d366); }
.bento .quick a:nth-child(3) .q-ico { background: linear-gradient(140deg, #c86a12, var(--amber)); }
.bento .garage-hero { border-radius: 24px; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 55%, var(--teal) 140%); }
@media (hover: hover) {
  .bento .quick a:hover, .bento .offer:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(17,28,65,.5); }
  .bento .quick a:hover .q-ico { transform: scale(1.12) rotate(-6deg); }
}
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento > .garage-hero, .bento > .addcar-hero { grid-column: span 2; grid-row: span 2; }
  .bento .offers { display: contents; }
  .bento .offer { grid-column: span 2; }
  .bento > .addcar-hero { flex-direction: column; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .bento .quick a, .bento .offer, .bento .quick .q-ico { transition: none; } }

/* Dark mode: dark-podium product shots fill their tile instead of sitting in a white frame (2026-11-06). */
:root[data-theme="dark"] .ph:has(img[src*="theme=dark"]) { background: #050608; padding: 0 0 100%; --ph-pad: 0px; }
:root[data-theme="dark"] .ph:has(img[src*="theme=dark"]) img { border-radius: inherit; }

/* ---- Live odometer (odometer.js, 2026-11-06): rolling digit wheels, tenths wheel inverted like a real
   odometer; tap the dial to type the km straight into the boxes. ---- */
.odo.live { position: relative; cursor: text; align-items: stretch; padding: 4px; margin-left: -4px; border-radius: 9px; outline: 2px solid transparent; transition: outline-color .15s, background .15s; }
.odo.live:hover, .odo.live:focus-visible { outline-color: rgba(255,255,255,.25); }
.odo.live .ow { position: relative; width: 26px; height: 42px; overflow: hidden; border-radius: 5px; background: #0a1230;
  box-shadow: inset 0 -12px 14px rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.1); }
.odo.live .ow::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45)); }
.odo.live .ow-strip { display: block; will-change: transform; }
.odo.live .ow-strip span { display: block; height: 42px; line-height: 42px; text-align: center; font: 700 30px/42px var(--font-num); color: #fff; font-variant-numeric: tabular-nums; }
.odo.live .ow.lead .ow-strip span, .odo.live.empty .ow .ow-strip span { color: rgba(255,255,255,.25); }
.odo.live .ow.tenths { background: #f2f4f8; }
.odo.live .ow.tenths .ow-strip span { color: #111c41; }
.odo.live .ow.tenths::after { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.25)); }
.odo.live .ow-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.6); align-self: flex-end; margin: 0 1px 6px; }
.odo.live .odo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; cursor: text; z-index: 2; caret-color: transparent; }
.odo.live:focus-within { outline-color: var(--amber); }
.odo.live.editing { outline-color: var(--amber); background: rgba(255,255,255,.06); }
.odo.live.editing .ow.typed .ow-strip span { color: var(--amber); }
.odo.live.editing .ow.tenths { opacity: .35; }
.odo.live.saving { opacity: .6; }
.odo-note { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .odo.live .ow-strip { transition: none !important; } }
/* Checkout location (2026-11-06 b) */
.loc-box { border: 1px solid var(--line, rgba(127,140,170,.25)); border-radius: 14px; padding: 12px 12px 4px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.loc-box legend { padding: 0 6px; font-size: 13px; font-weight: 600; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-pin-out { margin: -4px 0 0; }
.loc-pin-out a { font-weight: 600; }
/* Toters-style location (2026-11-06 c) */
.loc-labels { display: flex; gap: 6px; flex-wrap: wrap; }
.loc-lab { position: relative; }
.loc-lab input { position: absolute; opacity: 0; pointer-events: none; }
.loc-lab span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, rgba(127,140,170,.35)); font-size: 13px; cursor: pointer; }
.loc-lab input:checked + span { background: var(--amber, #e8a33d); color: var(--amber-ink, #1a1200); border-color: transparent; font-weight: 700; }
.loc-lab input:focus-visible + span { outline: 2px solid var(--amber, #e8a33d); outline-offset: 2px; }
.loc-map-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, rgba(127,140,170,.3)); }
.loc-map { height: 220px; background: #dfe6ee; z-index: 0; }
.loc-map-wrap .loc-pin { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 500; box-shadow: 0 4px 14px rgba(0,0,0,.25); background: #fff; color: #10204a; border: 0; white-space: nowrap; }
.loc-pin-out { margin: -4px 0 0; }
.loc-grid3 { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.leaflet-container { font: inherit; }
/* Car model photos (2026-11-18, car-models/carmodels.js) */
.pick-grid.models { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.pick-btn.has-pic { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 44px; padding: 8px 8px 10px; }
.pick-btn.has-pic .cm-pic { width: 100%; max-width: 110px; height: 56px; }
.pick-btn.has-pic .cm-pic.cm-none + span { padding: 6px 0; }
.picked .cm-pic { margin-left: auto; }
.list a .cm-pic, .pick .cm-pic { margin-right: var(--s3); }
.garage-hero .cm-pic { position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
@media (max-width: 420px) { .garage-hero .cm-pic.lg { width: 140px; height: 84px; } .garage-hero .cm-pic.md { width: 96px; height: 58px; } }
/* Generation tiles (2026-11-18) */
.pick-grid.gens .pick-btn.has-pic { gap: 2px; }
.pick-grid.gens .pick-btn .small { font-weight: 500; }
.picked .cm-pic.md img { width: 100%; height: 100%; object-fit: contain; }

/* Checkout add-ons on the basket screen (19/11/2026) */
.addons h2 { margin: 0; }
.addon-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.addon-row::-webkit-scrollbar { display: none; }
.addon { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; background: var(--panel-2, rgba(127,127,127,.06)); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.addon img, .addon .addon-ph { width: 100%; aspect-ratio: auto; height: 110px; object-fit: contain; background: #fff; border-radius: calc(var(--r) - 4px); display: block; }
.addon-name { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.addon-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.addon-foot .btn { min-height: 36px; }

/* Ask Zakka AI chat (19/11/2026) */
.ai-log { display: flex; flex-direction: column; gap: var(--s2); }
.ai-msg { scroll-margin-top: 140px; max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--panel); box-shadow: var(--e1); border-bottom-left-radius: 6px; }
.ai-msg.me { align-self: flex-end; background: var(--teal, #1f7a8c); color: #fff; border-bottom-right-radius: 6px; }
.ai-parts { margin-inline: 0; padding-inline: 0; }
.ai-wa { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }
.ai-wa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ai-ex { margin: 2px 0; }
.ai-form { display: flex; gap: var(--s2); position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); background: var(--bg, transparent); padding: 6px 0; z-index: 2; }
.ai-form .input { flex: 1; min-height: 46px; font-size: 16px; }
.ai-form .btn { min-height: 46px; }
.ai-typing { display: inline-flex; gap: 4px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint, #8792a2); animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ai-typing i { animation: none; } }
.ai-up { margin-top: 4px; font-size: 13.5px; }
.ai-ex { flex-wrap: wrap !important; overflow: visible !important; gap: 8px; }
.ai-ex .chip { white-space: normal; }
