/* Noto Sans Georgian (SIL OFL 1.1), self-hosted variable font 400–800: no Google Fonts round trip (SEO-07) */
@font-face { font-family: 'Noto Sans Georgian'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/noto-georgian-ka.woff2) format('woff2'); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: 'Noto Sans Georgian'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/noto-georgian-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Georgian'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/noto-georgian-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; }
/* ==========================================================================
   AutoParts.ge — public design system
   Concept: "night garage" — deep navy frame, one signal-orange accent for action,
   green reserved for money saved / best price. White cards on a cool grey page.
   8px grid · radii 10/14/18/24 · tabular numbers for every price.
   ========================================================================== */

:root {
  --navy: #0b1320;
  --navy-2: #131d2e;
  --navy-3: #1d2a40;
  --accent: #ff6a13;
  --accent-600: #e85a06;
  --accent-50: #fff3ea;
  --green: #077a42;   /* white text on it and it on light tints ≥ 4.5:1 (axe audit 2026-10-30: #0a8f4f was 4.15) */
  --green-50: #e8f7ef;
  --bg: #f2f4f8;
  --surface: #fff;
  --soft: #f1f4f8;
  --line: #e2e7ee;
  --line-2: #cfd7e2;
  --text: #0f1729;
  --text-2: #465468;
  --muted: #5d6981;
  --danger: #d92d20;
  --danger-50: #fef3f2;
  --warn: #b54708;
  --warn-50: #fffaeb;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06);
  --shadow: 0 4px 16px rgba(15, 23, 41, .08);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 41, .22);
  --header-h: 64px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-600); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
.ic { flex: none; display: inline-block; vertical-align: -0.18em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(255, 106, 19, .55); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hp { position: absolute; left: -9999px; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--accent-600); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); box-shadow: 0 6px 16px -6px rgba(255, 106, 19, .6); }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: var(--navy-3); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); background: var(--soft); color: var(--text); cursor: pointer; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--accent-600); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 106, 19, .7); }
/* the logo image (assets/logo-96.png, owner 2026-10-10): no tile behind it */
.brand-logo { background: #fff; box-shadow: none; border-radius: 10px; padding: 2px; object-fit: contain; box-sizing: border-box; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--accent); }
.brand-name i { font-style: normal; font-weight: 500; color: #8795ab; }
.header-search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; }
.header-search .ic { position: absolute; left: 14px; color: #8795ab; pointer-events: none; }
.header-search input { width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07); color: #fff; outline: none; transition: background .15s, border-color .15s; }
.header-search input::placeholder { color: #8795ab; }
.header-search input:focus { background: rgba(255, 255, 255, .12); border-color: var(--accent); }
.header-icon { display: none; color: #fff; margin-left: auto; padding: 8px; }
.offline-banner { position: sticky; top: var(--header-h); z-index: 39; background: var(--warn-50); color: var(--warn); text-align: center; font-size: 13.5px; padding: 8px 16px; }

/* ---------- hero + finder ---------- */
.hero { position: relative; color: #fff; padding: 56px 0 44px; /* no overflow:hidden — it clipped the dropdowns */
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 106, 19, .22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(56, 97, 170, .25), transparent 60%),
    var(--navy); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero .wrap { position: relative; }
.hero-copy { max-width: none; }
.hero h1, .hero-title { margin: 0; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 span, .hero-title span { color: var(--accent); }
.hero-sub { margin: 14px 0 0; font-size: 18px; color: #aab6c8; max-width: 620px; }

.finder { margin-top: 28px; background: var(--surface); color: var(--text); border-radius: var(--r-xl); padding: 18px 20px 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.finder-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--soft); border-radius: 12px; }
.finder-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s, color .15s; }
.finder-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.finder-tab.active .ic { color: var(--accent); }
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.car-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.car-meta:not(:has(:not([hidden]))) { display: none; }
.vehicle-hint { font-size: 13px; }
/* „ჩემი მანქანები“ (assets/garage.js): saved cars above the selectors — tap one to see its parts */
.garage { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.garage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.garage-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.garage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.garage-item { display: flex; align-items: stretch; min-width: 0; max-width: 100%; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.garage-item.active { border-color: var(--accent-600); background: var(--accent-50); }
.garage-pick { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 7px 4px 7px 14px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.garage-car { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garage-pick small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.garage-del { flex: none; width: 34px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; border-radius: 0 999px 999px 0; }
.garage-del:hover, .garage-del:focus-visible { color: var(--text); }
.garage-pick:focus-visible, .garage-del:focus-visible { outline: 2px solid var(--accent-600); outline-offset: -2px; }
.garage-empty { color: var(--muted); font-size: 13px; }
.garage-save { justify-self: start; max-width: 100%; }
.garage-save span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garage-note { margin: 0; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--accent-50); }
.garage-note.warn { background: #fff4e5; color: #8a4b00; }
.garage-note a { font-weight: 600; }
.gen-hint { margin: 0; font-size: 13px; color: var(--text-2); }
.finder-search { position: relative; display: flex; gap: 10px; margin-top: 14px; }
.finder-search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.finder-search input { flex: 1; min-width: 0; height: 56px; padding: 0 16px 0 50px; border: 2px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  font-size: 16.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.finder-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
.finder-search .btn { height: 56px; border-radius: var(--r); padding: 0 32px; }
.vin-row { display: flex; align-items: center; gap: 10px; }
#vin-input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 2px solid var(--line-2); border-radius: var(--r); outline: none; text-transform: uppercase;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 20px; letter-spacing: .14em; }
#vin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
#vin-input::placeholder { letter-spacing: .04em; font-size: 16px; color: #9aa5b5; }
.vin-count { flex: none; min-width: 58px; text-align: center; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vin-count.ok { background: var(--green-50); color: var(--green); }
.vin-row .btn { height: 56px; border-radius: var(--r); }
.vin-help { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.vin-help .ic { margin-top: 2px; }
.vin-notice { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.vin-notice.ok { background: var(--green-50); color: #065f46; }
.vin-notice.error { background: var(--danger-50); color: var(--danger); }
.vin-notice .warn { color: var(--warn); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: #b3bfd0; font-size: 14.5px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--accent); }

/* results mode: the finder stays, the marketing copy goes */
.is-results .hero { padding: 20px 0 22px; }
.is-results .hero-copy, .is-results .trust, .is-results .vin-help { display: none; }
.is-results .finder { margin-top: 0; padding: 14px 16px 16px; }
.is-results .finder-tabs { margin-bottom: 12px; }

/* ---------- searchable dropdowns (combo.js) ---------- */
.combo { position: relative; min-width: 0; }
.combo-native { display: none !important; }
.combo-input { width: 100%; height: 48px; padding: 0 36px 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; outline: none; cursor: pointer; text-overflow: ellipsis;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7789' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.combo-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); cursor: text; }
.combo-input::placeholder { color: var(--muted); }
.combo.disabled .combo-input { background-color: var(--soft); color: var(--muted); cursor: not-allowed; border-color: var(--line); }
.combo.need .combo-input, select.need { border-color: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.combo-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.combo-opt { padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.combo-opt.active { background: var(--accent-50); color: var(--accent-600); }
.combo-opt.selected { font-weight: 700; }
.combo-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.combo-empty { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.combo:has(#f-engine) .combo-list { left: auto; min-width: min(360px, 90vw); max-height: 380px; }

/* ---------- quick bar (phones, results) ---------- */
.quick-bar { display: none; }
.quick-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.vehicle-chip { flex: 1; min-width: 0; }
.vehicle-chip span { overflow: hidden; text-overflow: ellipsis; }
.quick-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }

/* ---------- home: catalog, makes, how ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
#catalog { margin-top: 48px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.cat-tile { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 136px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(255, 106, 19, .35); }
.cat-tile-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); }
.cat-tile-name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.cat-tile-n { margin-top: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.make-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.make-chips a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: border-color .15s, background .15s; }
.make-chips a:hover { border-color: var(--navy); }
.make-chips span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.how { margin-top: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; }
.steps h3 { margin: 14px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.is-results .home-only { display: none; }

/* ---------- results layout + filters ---------- */
.results-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 32px; }
.is-home .results-layout { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
.is-home .results-layout .filters { display: none; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filters-title { margin: 4px 4px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filters-title ~ .filters-title { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cat-list, .sub-list { margin: 0; padding: 0; list-style: none; }
.cat-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: none; text-align: left;
  font-size: 14.5px; cursor: pointer; transition: background .12s; }
.cat-list button:hover { background: var(--soft); }
.cat-list button.active { background: var(--accent-50); color: var(--accent-600); font-weight: 600; }
.cat-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: var(--text-2); font-size: 16px; }
.cat-icon svg { width: 18px; height: 18px; }
.cat-list button.active .cat-icon { background: var(--surface); color: var(--accent-600); }
.cat-label { flex: 1; min-width: 0; line-height: 1.3; }
.cat-count { font-size: 12.5px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chev { color: var(--muted); font-size: 11px; }
.sub-list { margin: 2px 0 6px 42px; border-left: 2px solid var(--line); }
.sub-list button { padding: 6px 10px; font-size: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); }
.price-inputs input { width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); outline: none; font-variant-numeric: tabular-nums; }
.price-inputs input:focus { border-color: var(--accent); }
.range { position: relative; height: 28px; margin: 14px 4px 2px; }
.range-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.range-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 4px; background: var(--accent); }
.range input { position: absolute; left: -4px; right: -4px; top: 0; width: calc(100% + 8px); height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.range input::-webkit-slider-runnable-track { background: none; border: 0; }
.range input::-moz-range-track { background: none; border: 0; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow); cursor: grab; }
.range input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 106, 19, .25); }
.range input:disabled { opacity: .4; }
.range-scale { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.results-head h1, .results-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.results-head p { margin: 4px 0 0; font-size: 14px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); flex: none; }
.sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); appearance: none; cursor: pointer; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7789' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--text-2); border: 1px solid transparent; }
.chip.ok { background: var(--green-50); color: var(--green); }
.chip.fail { background: var(--danger-50); color: var(--danger); }
.chip.none { background: var(--soft); color: var(--muted); font-weight: 500; }
button.chip { cursor: pointer; height: 34px; padding: 0 14px; font-size: 13.5px; background: var(--surface); border-color: var(--line-2); }
button.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.freshness { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.status { padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.status.error { background: var(--danger-50); border-color: #fecdca; color: var(--danger); }
.status.info, .status.loading { background: #eff5ff; border-color: #d1e0ff; color: #1d4ed8; }
.status .btn { margin-left: 8px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f5f7fa; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-img img.ok { background: #fff; }   /* until it has loaded, the category icon underneath stays visible */
.ph { display: grid; place-items: center; color: #c2cad6; }
.card-img .ph svg { width: 52px; height: 52px; stroke-width: 1.3; }
.card-cat-tag { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: rgba(11, 19, 32, .72); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(4px); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px; }
.card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fit { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.card-fit svg { flex: none; color: var(--muted); margin-top: 1px; }
.card-warn { padding: 4px 8px; border-radius: 8px; background: var(--warn-50); color: var(--warn); font-size: 12px; line-height: 1.4; }
.price-list { margin: 2px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px dashed var(--line); }
.price-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px; font-size: 13.5px; }
.price-list li.cheapest { padding: 6px 8px; border-radius: 9px; background: var(--green-50); }
.store-mini { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; background: #64748b; }
.store-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.store-name small { color: var(--muted); }
.row-variant { padding: 0 5px; border-radius: 4px; background: var(--soft); font-size: 11px; }
.store-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cheapest .store-price { color: var(--green); font-weight: 800; font-size: 15px; }
.card-more { display: flex; align-items: center; font-size: 12px; color: var(--muted); }
.card-more .store-mini { width: 18px; height: 18px; font-size: 9.5px; border: 2px solid #fff; margin-right: 3px; }
.card-more span:last-child { margin-left: 10px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.save-pill { padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.variant-pill { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.single-offer { font-size: 12.5px; color: var(--muted); }
.btn-compare { margin-left: auto; color: var(--accent-600); font-size: 13.5px; font-weight: 700; }
.btn-compare::after { content: ' →'; }
.card-foot { margin-top: auto; }
.card-price { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-price small { margin-right: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.card.skeleton .card-img, .card.skeleton i { background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.card.skeleton i { display: block; height: 12px; margin: 4px 0; border-radius: 6px; }
.card.skeleton i.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; padding: 56px 16px; text-align: center; color: var(--text-2); }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 30px; }
.empty-icon.ok { background: var(--green-50); color: var(--green); }
.empty h3 { margin: 0 0 6px; font-size: 19px; color: var(--text); }
.empty p { margin: 6px 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0 0; font-size: 14px; color: var(--muted); }


/* ---------- product page ---------- */
.breadcrumb { margin: 20px 0 16px; font-size: 13.5px; color: var(--muted); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-600); }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.product-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; background: #f5f7fa; border-radius: var(--r-lg); overflow: hidden; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-img .ph svg { stroke-width: 1.2; }
.img-credit { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--text-2); font-size: 11.5px; box-shadow: var(--shadow-sm); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; cursor: pointer; }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-cat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); font-size: 13px; font-weight: 600; text-decoration: none; }
.product-info h1 { margin: 12px 0 16px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.specs { margin: 0 0 20px; }
.specs > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs > div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 13.5px; }
.specs dd { margin: 0; font-size: 14.5px; }
.fitments > div + div { margin-top: 4px; }
.price-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.price-box small { color: #9aa7ba; }
.price-box .muted { color: #9aa7ba; }
.price-big { margin: 2px 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offers { margin-top: 36px; }
.offers h2, .similar h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.offers h2 .muted { font-weight: 500; }
/* filters inside the card (owner 2026-10-10): one row per group — label + chips; „not stated“ dimmer */
.offer-filters { display: grid; gap: 8px; margin: 14px 0 4px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
/* the label is its own column: a long row of chips wraps under its first chip („ყველა“), never back under the label (owner 2026-10-23) */
.of-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 6px 10px; min-width: 0; }
.of-label { font-size: 13px; font-weight: 700; color: var(--text-2); min-height: 34px; display: flex; align-items: center; }
.of-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.of-group .chip-n { font-weight: 500; opacity: .7; font-size: 12px; }
.of-group .chip-unknown:not(.active) { color: var(--muted); border-style: dashed; }
.of-empty { margin: 2px 0 0; }
/* admin: one listing — another card / another part (only it, or a rule) — product.php */
.offer-admin { margin-top: 8px; font-size: 13px; }
.offer-admin summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.offer-admin-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.offer-admin-row input { flex: 1 1 200px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text); }
.offer-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.offer.best { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.offer-store { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.offer-thumb { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }
.store-logo { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: #64748b; color: #fff; font-weight: 700; }
/* the store column shrinks with the row: long seller names break, the type badge wraps only when nothing else fits (360 px) */
.offer-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.offer-body .badge { white-space: normal; }
/* small phones: the letter logo gives its width to the store text — the seller's name already says who it is */
@media (max-width: 400px) { .offer-store .store-logo { display: none; } }
.offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12.5px; }
.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.official { background: var(--green-50); color: var(--green); }
.badge.private { background: var(--soft); color: var(--text-2); }
.offer-variants { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.variant-tag { padding: 2px 8px; border-radius: 6px; background: var(--accent-50); color: var(--accent-600); font-size: 12px; font-weight: 600; }
.offer-title { margin-top: 6px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-price { text-align: right; font-size: 21px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer.best .offer-price { color: var(--green); }
.best-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--green); }
.offer-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.phone-hint { max-width: 180px; text-align: right; }
.similar { margin-top: 44px; }
.similar .grid { margin-top: 14px; }
.buy-bar { display: none; }

/* ---------- forms (add part) ---------- */
.form-page { max-width: 860px; }
.form-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.form-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.form-section { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.form-section legend { margin: 0 0 12px; padding: 0; font-size: 16px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input:not(.combo-input), .field select, .field textarea { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 15.5px; outline: none; }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; }
.field input[type=file] { height: auto; padding: 10px; }
.field input:not(.combo-input):focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-error { color: var(--danger); font-size: 12.5px; }
.seller-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.radio-card { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card:has(:checked) { border-color: var(--accent); background: var(--accent-50); }
.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card strong { display: block; }
.radio-card small { color: var(--muted); }
.listing-form > .btn { margin-top: 8px; }

/* ---------- content pages ---------- */
.page-narrow { max-width: 820px; padding-top: 28px; }
.prose { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.prose h1 { margin: 0 0 16px; font-size: 30px; font-weight: 800; }
.prose h2 { margin: 28px 0 8px; font-size: 20px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.75; }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; padding: 48px 0 24px; background: var(--navy); color: #97a4b8; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-about p { max-width: 340px; margin: 14px 0 0; line-height: 1.7; }
.site-footer h2 { margin: 4px 0 12px; font-size: 13.5px; font-weight: 700; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 2px; }
.site-footer li a { display: inline-block; padding: 3px 0; }   /* a 25 px tall tap target (WCAG 2.2 2.5.8, audit 2026-10-22) — the same rhythm as before */
.site-footer a:not(.brand) { color: #97a4b8; text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.footer-legal p { margin: 4px 0; }
.bottom-nav { display: none; }
.sheet-head, .sheet-foot { display: none; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(11, 19, 32, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .product-hero { gap: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .header-search { max-width: 360px; }
}

/* ---------- phones: native-app shell ---------- */
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
  .wrap { padding: 0 16px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-search { display: none; }
  .header-icon { display: block; }

  .hero { padding: 28px 0 24px; }
  .hero-sub { font-size: 15.5px; margin-top: 10px; }
  .finder { margin-top: 20px; padding: 14px; border-radius: var(--r-lg); }
  .finder-tabs { display: flex; margin-bottom: 14px; }
  .finder-tab { flex: 1; justify-content: center; padding: 0 10px; }
  .car-grid { gap: 10px; }
  .combo-input { font-size: 16px; }
  .finder-search input, #vin-input { height: 52px; font-size: 16px; }
  .finder-search .btn, .vin-row .btn { height: 52px; padding: 0 18px; }
  .vin-row { flex-wrap: wrap; }
  .vin-row #vin-input { flex-basis: calc(100% - 70px); letter-spacing: .08em; }
  .vin-row .btn { width: 100%; }
  .trust { font-size: 13.5px; gap: 8px 18px; }

  /* results: the hero shrinks to a search bar, the car + filters live in bottom sheets */
  .is-results .hero { padding: 12px 0; }
  .is-results .finder { padding: 8px; border-radius: var(--r); box-shadow: none; }
  .is-results .finder-tabs { display: none; }
  .is-results .finder-search { margin-top: 0; }
  .is-results .finder-search input { height: 46px; border-width: 1.5px; }
  .is-results .finder-search .btn { height: 46px; padding: 0 16px; box-shadow: none; }
  .is-results .quick-bar { display: flex; gap: 8px; position: sticky; top: var(--header-h); z-index: 30; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }

  .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 0 16px calc(16px + var(--safe-b)); background: var(--surface); color: var(--text); border: 0; border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, .2); transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s; }
  .sheet.open { transform: none; visibility: visible; }
  .sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 18px 0 12px; background: var(--surface); font-size: 17px; }
  .sheet .sheet-head::before { content: ''; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .sheet .sheet-foot { display: block; position: sticky; bottom: calc(-16px - var(--safe-b)); padding: 12px 0 16px; background: var(--surface); }
  .sheet .combo-list { position: static; max-height: 260px; margin-top: 6px; box-shadow: none; }
  .sheet .car-grid { grid-template-columns: 1fr; }
  body.sheet-open { overflow: hidden; }
  /* home: the car finder is the page itself, not a sheet */
  .is-home .finder-car.sheet { position: static; transform: none; visibility: visible; max-height: none; overflow: visible; padding: 0; border-radius: 0; box-shadow: none; background: none; z-index: auto; transition: none; }
  .is-home .finder-car .sheet-head, .is-home .finder-car .sheet-foot { display: none; }
  .is-home .finder-car .combo-list { position: absolute; max-height: 280px; box-shadow: var(--shadow-lg); }
  .is-home .finder-car .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .results-layout, .is-home .results-layout { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .is-home .results-layout { margin-top: 28px; }
  .filters { top: auto; max-height: 88vh; border-radius: 22px 22px 0 0; }
  .is-home .results-layout .filters { display: block; }
  .results-head { align-items: center; margin-bottom: 12px; }
  .results-head h1, .results-head h2 { font-size: 19px; }
  .results-head p { font-size: 13px; }
  .sort > span { display: none; }
  .sort select { height: 38px; font-size: 13.5px; }
  .freshness { display: none; }

  #catalog { margin-top: 32px; }
  .section-head h2 { font-size: 20px; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
  .cat-tile { min-height: 0; padding: 12px 8px; align-items: center; text-align: center; gap: 8px; border-radius: var(--r); }
  .cat-tile-ic { width: 44px; height: 44px; }
  .cat-tile-name { font-size: 12.5px; }
  .cat-tile-n { display: none; }
  .make-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .make-chips li { flex: none; }
  .how { margin-top: 40px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { padding: 18px; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .steps h3 { margin: 6px 0 4px; }
  .steps p { grid-column: 2; }

  /* list cards: image left, prices right — like a native shopping app */
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #grid .card { flex-direction: row; border-radius: var(--r); }
  #grid .card-img { flex: none; width: 112px; aspect-ratio: auto; align-self: stretch; min-height: 132px; }
  #grid .card-img .ph svg { width: 36px; height: 36px; }
  #grid .card-cat-tag { display: none; }
  #grid .card-body { padding: 12px; gap: 6px; }
  .card-title { font-size: 14.5px; }
  .price-list li { font-size: 13px; padding: 3px 8px; }
  .btn-compare { display: none; }
  .grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .breadcrumb { margin: 14px 0 12px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: var(--r-lg); }
  .product-img { aspect-ratio: 4 / 3; }
  .product-info h1 { font-size: 21px; }
  .specs > div { grid-template-columns: 104px minmax(0, 1fr); }
  .price-box { padding: 16px; }
  .price-box .btn { width: 100%; }
  .price-big { font-size: 28px; }
  .offers { margin-top: 28px; }
  .offers h2, .similar h2 { font-size: 19px; }
  .offer-filters { padding: 10px; }
  .of-group { grid-template-columns: minmax(0, 1fr); }
  .of-label { min-height: 0; font-size: 12.5px; }
  .of-group button.chip { height: 32px; padding: 0 11px; font-size: 13px; }
  .offer { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .offer-action { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
  .offer-action .btn { flex: 1; }
  .phone-hint { max-width: none; text-align: left; flex: 1 1 100%; }
  .offer-thumb { display: none; }
  /* one seller's several listings: the photo is what tells them apart (owner 2026-10-25) */
  .offer.seller-many .offer-thumb { display: block; width: 48px; height: 48px; }
  .offer.seller-many .store-logo { display: none; }   /* the name is written beside it — room for the photo */
  .offer-store .store-logo { width: 30px; height: 30px; font-size: 14px; }
  .offer-store { gap: 10px; }
  .has-buy-bar { padding-bottom: calc(var(--nav-h) + 72px + var(--safe-b)); }
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 44;
    padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 23, 41, .08); }
  .buy-price small { display: block; font-size: 11.5px; color: var(--muted); }
  .buy-price strong { font-size: 21px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
  .buy-bar .btn { min-width: 132px; }

  .form-card, .prose { padding: 20px 16px; border-radius: var(--r-lg); }
  .page-narrow { padding-top: 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .seller-types { grid-template-columns: 1fr; }
  .field input, .field select { font-size: 16px; }

  .site-footer { margin-top: 48px; padding: 32px 0 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: 1 / -1; }

  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--nav-h) + var(--safe-b));
    padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); }
  .bottom-nav .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none;
    -webkit-tap-highlight-color: transparent; }
  .bottom-nav .tab.active { color: var(--accent-600); }
  .bottom-nav .tab:active { transform: scale(.94); }
}

@media (max-width: 380px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #grid .card-img { width: 96px; }
}

/* store colours (last: they must win over .store-mini / .store-logo defaults) */
.src-tegeta { background: #d32f2f; } .src-pp { background: #f57c00; } .src-autopia { background: #1565c0; }
.src-myparts { background: #2e7d32; } .src-alvadi { background: #6a1b9a; } .src-autonawilebi { background: #00838f; }
.src-yourcarparts { background: #37474f; } .src-autopartsge { background: var(--accent); } .src-nawilebi { background: #0e7490; }
.src-otomotors { background: #b91c1c; } .src-pitstop { background: #ca8a04; } .src-uap { background: #1e3a8a; }
.src-goparts { background: #0f766e; } .src-topautoparts { background: #7c3aed; } .src-zupart { background: #c2410c; } .src-mydubai { background: #0e7490; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* QA fixes: long Georgian words never overflow; radios/touch sizes */
h1, h2, h3, .cat-label, .cat-tile-name, .card-title, .store-name { overflow-wrap: break-word; }
.prose h1, .product-info h1, .form-card h1 { overflow-wrap: anywhere; }
.radio-card input, .field input[type=radio], .field input[type=checkbox] { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) {
  .prose h1 { font-size: 24px; }
  .sub-list button, .cat-list button { min-height: 40px; }
}
.cat-list button { min-height: 38px; }
@media (max-width: 760px) {
}

/* admin-only tools on the product page (teach the catalogue) */
.admin-tools { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 14px; border: 1.5px dashed var(--accent); border-radius: var(--r); background: var(--accent-50); }
.admin-tools > strong { font-size: 13px; color: var(--accent-600); }
.admin-tool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-tool .combo { flex: 1 1 240px; }
.admin-tool .combo-input { height: 38px; }
.btn.danger { color: var(--danger); border-color: #fecdca; }
.btn.danger:hover { background: var(--danger-50); }

/* visitor feedback: stars + "wrong product" report */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -6px 0 16px; }
.stars { display: inline-flex; gap: 2px; }
.star { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: #cfd6e0; cursor: pointer; transition: color .1s, transform .1s; }
.star svg { fill: currentColor; stroke: currentColor; }
.star.on { color: #f5a524; }
.star:hover { transform: scale(1.12); }
.rating.busy { opacity: .6; pointer-events: none; }
.rating-text { font-size: 13.5px; color: var(--muted); }
.rating-text strong { color: var(--text); font-size: 15px; }
.offers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.report-open { min-height: 40px; padding: 0 4px; color: var(--muted); font-weight: 500; }
.report-open:hover { color: var(--danger); }
.report-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); color: var(--text); }
.report-dialog::backdrop { background: rgba(11, 19, 32, .55); }
.report-dialog form { padding: 24px; }
.report-dialog h2 { margin: 0 0 4px; font-size: 20px; }
.report-reasons { display: grid; gap: 8px; margin: 16px 0; }
.report-reasons .radio-card { padding: 11px 14px; align-items: center; }
.report-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.report-msg.ok { background: var(--green-50); color: var(--green); }
.report-msg.error { background: var(--danger-50); color: var(--danger); }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; }
.card-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.card-rating::before { content: '★'; color: #f5a524; font-size: 14px; }
.card-rating small { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .report-dialog { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; }
  .report-dialog form { padding: 20px 16px calc(20px + var(--safe-b)); }
  .star { width: 40px; height: 40px; }
}

/* accounts: header link, sign-in, my account */
.header-account { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16); font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; }
.header-account:hover { background: rgba(255, 255, 255, .08); }
.auth-page { display: grid; place-items: start center; padding-top: 40px; }
.auth-card, .auth-cta { width: min(460px, 100%); padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); text-align: center; }
.auth-cta { width: auto; max-width: 620px; margin: 0 auto; }
.auth-card h1, .auth-cta h1 { margin: 12px 0 6px; font-size: 24px; font-weight: 800; }
.auth-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--accent-50); color: var(--accent-600); }
.auth-form { margin-top: 20px; text-align: left; }
.phone-input { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; }
.phone-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
.phone-input span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 600; }
.field .phone-input input { border: 0; box-shadow: none; height: 50px; font-size: 18px; letter-spacing: .04em; padding-left: 6px; }
.field .otp-input { height: 60px; text-align: center; font-size: 28px; letter-spacing: .5em; font-variant-numeric: tabular-nums; font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.auth-links form { margin: 0; }
.auth-links .link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.auth-note { margin: 20px 0 0; }
.account-page { padding-top: 24px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-grid .form-card h1, .account-grid .form-card h2 { font-size: 22px; margin: 0 0 8px; }
.account-grid .section-head { margin-bottom: 12px; }
.company-fields { margin-top: 4px; }
.ok-text { color: var(--green); }
.logout-form { margin-top: 16px; text-align: center; }
.my-listings { margin: 0; padding: 0; list-style: none; }
.my-listings li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-listings li a { color: var(--text); font-weight: 600; text-decoration: none; }
.my-listings .my-meta { grid-column: 1; font-size: 13px; color: var(--muted); }
.my-listings .chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.chip.warn { background: var(--warn-50); color: var(--warn); }
.seller-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 14.5px; }
.seller-line .chip { padding: 2px 8px; font-size: 11.5px; }
@media (max-width: 760px) {
  .header-account { margin-left: auto; border: 0; padding: 0 8px; }
  .header-account span { display: none; }
  .header-account + .header-icon { margin-left: 0; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-page { padding-top: 16px; }
  .auth-card { padding: 24px 18px; }
}
/* forms on phones: the last button never sits under the fixed bottom navigation */
@media (max-width: 760px) {
  .form-page, .account-page, .auth-page { padding-bottom: 24px; }
  html { scroll-padding-bottom: calc(var(--nav-h) + 24px); }
}

.auth-cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pw-change { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.pw-change summary { cursor: pointer; font-weight: 600; }
.pw-change form { margin-top: 12px; }
.acc-delete summary, .acc-delete-btn { color: var(--danger); }   /* the account's deletion: a danger action, out of the way */
.acc-delete-btn { border-color: color-mix(in srgb, var(--danger) 35%, #fff); }
.auth-links a { font-size: 14px; }

/* registration step (profile only): one centred card, like sign-in / register */
.account-grid.account-setup { grid-template-columns: minmax(0, 520px); justify-content: center; }
.account-setup .form-card h1 { text-align: center; }

/* add-part: live price comparison (assets/price-insight.js) */
.cat-suggest { color: var(--green) !important; font-size: 12.5px; }
.price-insight { margin: 22px 0 6px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #fbfcfe, #fff); transition: border-color .2s; }
.price-insight.loading { opacity: .7; }
.pi-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.pi-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.price-insight.v-best, .price-insight.v-good { border-color: #a7e3c1; }
.price-insight.v-best .pi-title::before, .price-insight.v-good .pi-title::before { background: var(--green); }
.price-insight.v-mid { border-color: #fcd9a5; }
.price-insight.v-mid .pi-title::before { background: #f59e0b; }
.price-insight.v-high, .price-insight.v-warn { border-color: #fecdca; }
.price-insight.v-high .pi-title::before, .price-insight.v-warn .pi-title::before { background: var(--danger); }
.pi-card { margin: 0 0 14px; font-size: 13.5px; color: var(--text-2); }
.pi-card a { font-weight: 600; }
.pi-first { margin: 0; font-size: 14.5px; }
.pi-scale { position: relative; padding-top: 30px; margin: 4px 6px 6px; }
.pi-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #d1f2df, #fdf0cf 55%, #fde0dc); }
.pi-band { position: absolute; top: -3px; bottom: -3px; border-radius: 999px; background: rgba(10, 143, 79, .16); border: 1.5px dashed rgba(10, 143, 79, .5); }
.pi-median { position: absolute; top: -6px; width: 2px; height: 22px; margin-left: -1px; background: var(--text-2); border-radius: 2px; }
.pi-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2.5px solid var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); cursor: help; }
.pi-pin { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; transition: left .25s ease; }
.pi-pin b { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px -3px rgba(255, 106, 19, .6); }
.pi-pin::after { content: ''; width: 3px; height: 22px; background: var(--accent); border-radius: 2px; }
.pi-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pi-axis span { display: flex; flex-direction: column; }
.pi-axis span:last-child { text-align: right; }
.pi-axis small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.pi-verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.pi-label { padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.v-best .pi-label, .v-good .pi-label { background: var(--green-50); color: var(--green); }
.v-mid .pi-label { background: #fef3c7; color: #b45309; }
.v-high .pi-label, .v-warn .pi-label { background: var(--danger-50); color: var(--danger); }
.pi-rank { font-size: 13.5px; color: var(--text-2); }
.pi-advice { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.pi-note { margin: 8px 0 0; }
.pi-axis { position: relative; }
.pi-axis { position: relative; height: 38px; display: block; margin-top: 10px; }
.pi-lab { position: absolute; top: 0; display: flex; flex-direction: column; white-space: nowrap; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pi-lab small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.pi-lab.pi-mid { transform: translateX(-50%); align-items: center; }
.pi-lab.pi-left { transform: translateX(-6px); }
.pi-lab.pi-right { transform: translateX(calc(-100% + 6px)); align-items: flex-end; }

/* my listings: edit */
.my-listings li { grid-template-columns: minmax(0, 1fr) auto; }
.my-listings .my-title { font-weight: 600; }
.my-listings .my-edit { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text) !important; text-decoration: none; }
.my-listings .my-edit:hover { background: var(--soft); }
.delete-listing { margin-top: 12px; }
.btn.danger { color: var(--danger); }

.price-change { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-change .old { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.price-change b { color: var(--green); }

/* account: position alerts — full-width banner on top (amber = off, green = on) */
.alert-banner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 0 20px; padding: 22px 24px; border-radius: var(--r-xl); border: 1px solid #ffd48a; background: linear-gradient(120deg, #fff8e8, #fff1d6); color: #5c3b00; }
.alert-banner.is-on { border-color: #a9e2bf; background: linear-gradient(120deg, #ecfbf2, #dcf5e6); color: #0f4d2a; }
.alert-banner-info { display: flex; gap: 16px; align-items: flex-start; }
.alert-banner-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #ffb020; color: #fff; box-shadow: 0 6px 16px rgba(255, 150, 0, .3); }
.alert-banner.is-on .alert-banner-ic { background: #1fa45a; box-shadow: 0 6px 16px rgba(31, 164, 90, .3); }
.alert-banner h2 { margin: 2px 0 6px; font-size: 21px; font-weight: 800; color: inherit; }
.alert-banner p { margin: 0; font-size: 14px; line-height: 1.55; }
.alert-banner-note { display: block; margin-top: 4px; font-size: 12px; opacity: .75; }
.alert-banner-ctl { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg, 14px); background: rgba(255, 255, 255, .75); color: var(--text); }
.alert-banner .email-row { display: flex; gap: 10px; align-items: flex-end; }
.alert-banner .email-row .field { flex: 1; margin: 0; }
.alert-banner .email-row .btn { flex: none; min-height: 46px; }
.alert-banner .field small:not(.field-error) { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.alert-settings { display: grid; gap: 12px; }
.alert-hours { margin: 0; padding: 0; border: 0; min-width: 0; }
.alert-hours[disabled] { opacity: .5; }
.alert-hours legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.alert-hours legend small { font-weight: 500; color: var(--muted); }
.alert-hours-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.alert-hours-row .field { margin: 0; }
.alert-hours-row .btn { min-height: 46px; }
.alert-hours-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.alert-email summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.alert-email form { margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; line-height: 1.6; font-weight: 600; font-style: normal; vertical-align: middle; }
.tag.ok { background: #e7f7ee; color: #127a3e; }
.tag.warn { background: #fff4e0; color: #9a5b00; }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; position: relative; width: 48px; height: 28px; border-radius: 99px; background: #c9ced6; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: #1fa45a; }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent-600); outline-offset: 2px; }
.switch strong { display: block; font-size: 14px; }
.switch small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .alert-banner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 16px; }
}
@media (max-width: 420px) {
  .alert-banner .email-row { flex-direction: column; align-items: stretch; }
  .alert-hours-row { grid-template-columns: 1fr 1fr; }
  .alert-hours-row .btn { grid-column: 1 / -1; }
}
/* product: price watch (buyers, no account) */
.watch-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px dashed var(--line); border-radius: var(--r); background: transparent; color: var(--accent-600); font: 600 14px/1.3 inherit; cursor: pointer; text-align: left; }
.watch-open:hover { background: var(--accent-50); border-color: var(--accent-600); }
/* save the card to the profile (product.php — the same list as the app) */
.save-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--text); font: 600 14px/1.3 inherit; cursor: pointer; }
.save-card:hover { border-color: #e11d48; }
.save-card.is-on { border-color: #e11d48; color: #be123c; background: #fff1f2; }
.save-card > span:first-child { font-size: 18px; color: #e11d48; }
/* account.php: kept auction checks + saved cards (the app shows the same lists) */
.my-checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.my-checks a { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; }
.my-checks a:hover { border-color: var(--accent-600); }
.my-checks img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-soft, #f1f4f8); }
.my-checks span { display: grid; gap: 2px; min-width: 0; }
.my-checks strong { overflow-wrap: anywhere; }
.my-checks small { color: var(--muted); }
.my-checks small.warn { color: #b45309; font-weight: 600; }
/* account.php (owner 2026-10-11): adding a listing comes first; checks + saved cards at the bottom */
.add-listing-cta { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 16px 20px; border-radius: var(--r-lg, 16px);
  background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(255, 106, 19, .25); }
.add-listing-cta:hover { background: var(--accent-600); color: #fff; }
.add-listing-cta:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.add-listing-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .2); flex: none; }
.add-listing-cta > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.add-listing-cta strong { font-size: 20px; line-height: 1.25; }
.add-listing-cta small { font-size: 14px; opacity: .95; }
.add-listing-go { font-size: 24px; flex: none; }
.account-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.account-more .form-card h2 { font-size: 22px; margin: 0 0 8px; }
@media (max-width: 900px) { .account-more { grid-template-columns: minmax(0, 1fr); } }
/* account.php tiles (owner 2026-10-11 — assets/account-tabs.js shows one section at a time) */
/* the size filter (tires / rims — index.php #wheel-filter) */
.wheel-filter { display: grid; gap: 8px; margin-top: 4px; }
/* the chosen car's factory wheel specs (lib/wheelfit.php) */
.wheel-car { display: grid; gap: 4px; margin: 0; padding: 8px 10px; border-radius: 10px; background: #ecfdf3; color: #14532d; font-size: 13px; line-height: 1.4; }
.wheel-car b { color: #0f172a; }
.wheel-fits small { display: block; margin-top: 6px; }
.wf-more > summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: #fff4ec; color: #ea580c;
  font-weight: 700; font-size: 13.5px; cursor: pointer; list-style: none; }
.wf-more > summary::-webkit-details-marker { display: none; }
.wf-more > summary::after { content: '▾'; transition: transform .15s; }
.wf-more[open] > summary::after { transform: rotate(180deg); }
.wf-more > summary:focus-visible { outline: 2px solid #ea580c; outline-offset: 2px; }
.wf-more .wf-hide, .wf-more[open] .wf-show { display: none; }
.wf-more[open] .wf-hide { display: inline; }
.wf-more[open] > summary { margin-bottom: 6px; }
/* a tire / rim card's size as its sellers state it (lib/wheelfit.php wheel_card_specs) */
.wheel-specs { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line, #e7ebf0); border-radius: 14px; background: var(--surface, #fff); }
.wheel-specs h2 { margin: 0 0 8px; font-size: 16px; }
.wheel-specs dl { display: grid; gap: 6px; margin: 0 0 8px; }
.wheel-specs dl > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 10px; align-items: baseline; }
.wheel-specs dt { color: var(--muted, #64748b); font-size: 13.5px; }
.wheel-specs dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.wheel-specs dd small { color: var(--muted, #64748b); font-weight: 400; }
.wheel-specs .ws-factory { padding-top: 6px; border-top: 1px dashed var(--line, #e7ebf0); }
.wheel-specs .ws-warn { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; }
.wheel-specs p.small { margin: 0; }
.wheel-filter .wheel-field span { font-size: 13px; color: var(--muted); }
.acc-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.acc-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--surface, #fff); color: inherit; text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.acc-tile:hover { border-color: var(--accent); }
.acc-tile:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.acc-tile-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); }
.acc-tile-label { font-weight: 700; font-size: 15px; line-height: 1.25; }
.acc-tile-n { position: absolute; top: 12px; right: 12px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #0f172a; color: #fff;
  font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.acc-tile.is-main { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-tile.is-main .acc-tile-ic { background: rgba(255, 255, 255, .22); color: #fff; }
.acc-tile.is-main .acc-tile-n { background: #fff; color: var(--accent-600); }
.acc-tile.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.acc-tile.is-main.is-active { box-shadow: 0 0 0 3px #0f172a inset; }
.account-page.tabs-on .account-grid, .account-page.tabs-on .account-more { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .acc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .acc-tile.is-main { grid-column: 1 / -1; min-height: 84px; flex-direction: row; align-items: center; justify-content: flex-start; } .acc-tile { min-height: 96px; } }
@media (max-width: 480px) { .add-listing-cta { padding: 14px; gap: 12px; } .add-listing-cta strong { font-size: 18px; } .add-listing-ic { width: 42px; height: 42px; } }
.watch-dialog form { text-align: center; }
.watch-dialog .field { text-align: left; }
.watch-dialog .field input { font-size: 16px; }
.watch-dialog .tiny { font-size: 12px; margin: 10px 0 0; }

/* listings: lifetime + renew (lib/billing.php) */
.my-listings .my-life { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.my-listings .my-life.warn { color: #9a5b00; font-weight: 600; }
.my-listings .my-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.my-listings .my-actions form { margin: 0; }
.my-listings .my-actions .my-edit { margin-top: 0; }

/* add-part: what this listing costs */
.fee-box { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--soft, #f6f8fb); }
.fee-box strong { display: block; font-size: 14.5px; }
.fee-box small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.fee-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e7f7ee; color: #127a3e; }
.fee-box.is-paid .fee-ic { background: #fff4e0; color: #9a5b00; }
.fee-box.is-short { border-color: #f5c2c0; background: #fff6f5; }
.fee-box.is-short .fee-ic { background: #fee4e2; color: #b42318; }

/* account: wallet */
.wallet-card { margin-top: 20px; }
.wallet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wallet-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft, #f6f8fb); }
.wallet-stat small { display: block; font-size: 12.5px; color: var(--muted); }
.wallet-stat strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-stat strong span { font-size: 13px; font-weight: 600; color: var(--muted); }
.wallet-stat em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.wallet-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.promo-chip { padding: 6px 12px; border-radius: 999px; background: #ecfbf2; color: #0f4d2a; font-size: 13px; font-weight: 600; border: 1px solid #a9e2bf; }
.wallet-rules { margin: 12px 0 0; line-height: 1.6; }
.wallet-h { margin: 20px 0 10px; font-size: 16px; font-weight: 800; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.package { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg, 14px); text-align: center; }
.package-name { font-size: 16px; }
.package-n { font-size: 28px; font-weight: 800; line-height: 1.1; }
.package-n small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.package-price { font-size: 20px; font-weight: 800; color: var(--accent-600); }
.package .btn { margin-top: 6px; }
.wallet-topup { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.wallet-topup summary { cursor: pointer; font-weight: 700; }
.wallet-topup-body { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-kind { font-weight: 700; }
.ledger-note { color: var(--muted); overflow-wrap: anywhere; }
.ledger-note small { margin-left: 4px; font-size: 12px; }
.ledger-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-amt.plus { color: #127a3e; }
.ledger-amt.minus { color: #b42318; }
@media (max-width: 600px) {
  .wallet-stats { gap: 8px; }
  .wallet-stat { padding: 10px; }
  .wallet-stat strong { font-size: 18px; }
  .wallet-stat strong span { display: block; font-size: 11px; }
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-kind { grid-column: 1 / -1; }
}

.combo-list.up { top: auto; bottom: calc(100% + 6px); }

/* sort = searchable dropdown too (combo.js): fixed compact width, list aligned to the right edge */
.sort .combo { width: 190px; flex: none; }
.sort .combo-input { height: 40px; font-size: 14px; border-radius: var(--r-sm); }
.sort .combo-list { left: auto; right: 0; min-width: 200px; }
.results-head > div:first-child { min-width: 0; }
@media (max-width: 640px) {
  .sort .combo { width: 148px; }
  .sort .combo-input { height: 38px; font-size: 13px; padding-right: 30px; }
}

/* account: active listings vs the free limit (2 / 3) */
.quota { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft, #f6f8fb); }
.quota-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.quota-top strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.quota-note { color: var(--muted); font-size: 13px; }
.quota-bar { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quota-bar span { display: block; height: 100%; border-radius: inherit; background: #1fa45a; transition: width .3s; }
.quota.is-full { border-color: #ffd48a; background: #fff8e8; }
.quota.is-full .quota-bar span { background: #f59e0b; }
.quota.is-full .quota-note { color: #9a5b00; font-weight: 600; }
.quota-inf { font-size: 22px; line-height: 1; vertical-align: -1px; }

/* payments: top-up by card (account wallet) + return page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.topup-form { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg, 14px); background: var(--soft, #f6f8fb); }
.topup-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.topup-amounts legend { width: 100%; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.amount-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.amount-chip input:checked + span { border-color: var(--accent-600); background: var(--accent-50); color: var(--accent-600); }
.amount-chip input:focus-visible + span { outline: 2px solid var(--accent-600); outline-offset: 2px; }
.amount-custom { position: relative; flex: 1 1 110px; max-width: 160px; }
.amount-custom input { width: 100%; height: 42px; padding: 0 30px 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; }
.amount-custom em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.topup-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 0; }
.pay-btn.pay-bog { background: #ff5b00; }
.pay-btn.pay-bog:hover { background: #e65200; }
.pay-btn.pay-tbc { background: #00a3e0; }
.pay-btn.pay-tbc:hover { background: #008fc4; }
.pay-btn.pay-test { background: #475467; }
.package .pay-btn { font-size: 13.5px; }
.pay-result.is-succeeded .auth-ic { background: #e7f7ee; color: #127a3e; }
.pay-result.is-failed .auth-ic, .pay-result.is-expired .auth-ic, .pay-result.is-error .auth-ic { background: #fee4e2; color: #b42318; }
.pay-facts { display: grid; gap: 6px; margin: 16px 0; padding: 12px 14px; border-radius: var(--r); background: var(--soft, #f6f8fb); text-align: left; }
.pay-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pay-facts dt { color: var(--muted); }
.pay-facts dd { margin: 0; font-weight: 700; white-space: nowrap; }
.pay-spinner { width: 28px; height: 28px; margin: 0 auto 14px; border: 3px solid var(--line); border-top-color: var(--accent-600); border-radius: 50%; animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation-duration: 3s; } }
.pay-test-actions { display: grid; gap: 8px; }

/* QA 2026-09-28 (logged-in pages, tools/qa-user.php) */
/* header: a long account name must never push the header wider than the screen */
.header-search { min-width: 0; }
.header-account span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .header-account span { display: none; } .header-account { padding: 0 10px; } }
/* buttons inside narrow cards wrap instead of sticking out */
.package .btn, .topup-providers .btn { height: auto; min-height: 44px; padding: 8px 12px; white-space: normal; line-height: 1.3; text-align: center; max-width: 100%; }
.package { min-width: 0; }
.package-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.topup-providers { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
/* headings with an action button wrap on small screens */
.section-head { flex-wrap: wrap; row-gap: 8px; align-items: center; }
.section-head h2 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .wallet-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-stat:first-child { grid-column: 1 / -1; }
  .wallet-stat small { overflow-wrap: anywhere; }
}

/* results: the shop chips / freshness / status line arrive after the search — their space is reserved (CLS) */
.is-results .results-meta { min-height: 72px; }
@media (max-width: 640px) { .is-results .results-meta { min-height: 96px; } }

/* product: savings + price range (design audit P1-1) */
.price-box > div:first-child { flex: 1 1 260px; min-width: 0; }
.price-box-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.save-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; }
.price-range { position: relative; height: 8px; margin: 12px 0 6px; border-radius: 99px; background: linear-gradient(90deg, #19c37d, #f5b700 55%, #ef6b3b); }
.price-range span { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #19c37d; transform: translate(-2px, -50%); }
.price-range-legend { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price-range-legend small { font-size: 12px; }

/* product: condition, price drop, views (design audit P2) */
.drop-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: rgba(25, 195, 125, .16); color: #6ee7b7; font-size: 13px; font-weight: 800; }
.cond-tag, .drop-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.cond-tag.cond-new { background: #eef4ff; color: #1d4ed8; }
.cond-tag.cond-used { background: #f1f4f8; color: #465468; }
.drop-tag { background: var(--green-50); color: var(--green); }
.views-count { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .price-range-legend small:nth-child(2) { display: none; } }

/* ---------- VIP (design: Badges board) — always labelled; only the card's place in a list changes ---------- */
.vip-pill { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.vip-pill.vip-svip { background: #ff5a1f; color: #fff; }
.vip-pill.vip-vipplus { background: var(--navy); color: #ff8a47; }
.vip-pill.vip-vip { background: var(--accent-50); color: var(--accent-600); border: 1px solid #ffc9a3; }
.card.card-svip { border: 2px solid #ff5a1f; box-shadow: 0 10px 24px -12px rgba(255, 90, 31, .45); }
.card.card-vipplus { border: 2px solid #ffb27a; }
.card.card-vip { border-color: #ffd3b3; }
.svip-head .vip-pill, .svip-strip .svip-head .vip-pill { position: static; }

/* S-VIP first places above a result list */
#svip-strip:empty { display: none; }
.svip-strip { margin: 0 0 16px; padding: 12px; border-radius: var(--r-lg); background: #fff7f2; border: 1px solid #ffd3b3; }
.svip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: #b44604; font-weight: 600; flex-wrap: wrap; }
.svip-head a { margin-left: auto; font-weight: 600; }
.svip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; }

/* home: SUPER VIP carousel */
.home-svip { margin-top: 28px; }
.svip-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svip-head-row h2 { letter-spacing: .02em; }
.svip-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ff5a1f; color: #fff; }
.svip-sub { font-size: 14px; }
.svip-how { margin-left: auto; font-size: 14px; font-weight: 600; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; scrollbar-width: thin; }
.carousel > .card { scroll-snap-align: start; }

/* home: category showcases */
.showcase { margin-top: 36px; }
.showcase-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.showcase-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); }
.count-chip { height: 26px; padding: 0 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; }
.showcase-subs { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.showcase-subs a { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; display: inline-flex; align-items: center; text-decoration: none; }
.showcase-all { font-weight: 700; }
.showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.showcase-grid > .card:nth-child(n+5) { display: none; }
@media (min-width: 1440px) { .showcase-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .showcase-grid > .card:nth-child(5) { display: flex; } }

/* home: shops + seller call to action */
.shops-strip { margin-top: 40px; }
.shop-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.shop-tiles li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.shop-tiles strong { font-size: 13.5px; }
.shop-tiles small { font-size: 12px; color: var(--muted); }
.seller-cta { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 28px 32px; border-radius: var(--r-xl); background: var(--navy); color: #fff; }
.seller-cta h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.seller-cta h2 span { color: var(--accent); }
.seller-cta p { margin: 0; color: #c3ccda; line-height: 1.6; }
.seller-cta > div { flex: 1; min-width: 0; }

@media (max-width: 1100px) { .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .showcase-grid > .card:nth-child(n+4) { display: none; } }
@media (max-width: 640px) {
  .carousel { grid-auto-columns: 78%; }
  .carousel-btn, .svip-sub { display: none; }
  .showcase-subs { display: none; }
  .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase-grid > .card:nth-child(n+3) { display: none; }
  .seller-cta { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .seller-cta h2 { font-size: 22px; }
  /* catalog: a swipeable two-row strip instead of 1.5 screens of tiles (design audit P2-7) */
  .cat-tiles { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 28px; }
  .cat-tiles > li { scroll-snap-align: start; }
}
@media (max-width: 400px) {
  .cat-tiles { grid-auto-columns: 35%; }
  .cat-tile { padding-inline: 4px; }
  .cat-tile-name { font-size: 12px; }
}

/* account: VIP status + purchase dialog (design: VipBuy board) */
.my-listings .my-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.my-listings .my-stats span { display: inline-flex; align-items: center; gap: 4px; }
.vip-tag { height: 20px; padding: 0 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.vip-tag.vip-svip { background: #ff5a1f; color: #fff; }
.vip-tag.vip-vipplus { background: var(--navy); color: #ff8a47; }
.vip-tag.vip-vip { background: var(--accent-50); color: var(--accent-600); }
.vip-tiers, .vip-days { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.vip-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vip-days legend { grid-column: 1 / -1; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.vip-days .amount-chip span { width: 100%; justify-content: center; padding: 0; }
.vip-tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.vip-tier:has(input:checked) { border: 2px solid var(--accent); background: #fffaf5; }
.vip-tier input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.vip-tier-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.vip-tier-top { display: flex; align-items: center; gap: 8px; }
.vip-tier-top .vip-pill { position: static; }
.vip-tier-top em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--green); }
.vip-tier small { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.vip-tier b { white-space: nowrap; font-size: 14px; }
.vip-tier.is-off { opacity: .5; cursor: not-allowed; }
.vip-sum .is-total { padding-top: 6px; border-top: 1px solid var(--line); }

/* SEO-15: listing intro (facts from our data) + generation chips */
.list-intro { margin: -6px 0 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.list-intro p { margin: 0; max-width: 90ch; }
.list-intro a { color: var(--text); font-weight: 600; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gen-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.gen-chips a:hover { border-color: var(--accent); }
.gen-chips small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* 404 / 410: ways back */
.nf-cats { margin: 8px auto 40px; text-align: center; }
.nf-cats h2 { font-size: 16px; margin: 0 0 12px; }
.nf-cats ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nf-cats .chip { min-height: 40px; padding: 8px 14px; font-size: 13.5px; text-decoration: none; background: var(--surface); border-color: var(--line); color: var(--text); }
.nf-cats .chip:hover { border-color: var(--accent); }
.nf-search { display: flex; gap: 8px; max-width: 460px; margin: 16px auto; }
.nf-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: inherit; font-size: 16px; color: var(--text); }
.nf-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* the seller is told what the automatic photo check saw (lib/images.php image_flag_notice) */
.photo-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: var(--r); font-size: 13.5px; line-height: 1.5; text-align: left; }
.photo-note .ic { flex: none; margin-top: 1px; }
.photo-note.is-warn { background: var(--warn-50); color: var(--warn); }
.photo-note.is-error { background: var(--danger-50); color: var(--danger); }
.photo-note.is-info { background: var(--soft); color: var(--text-2); }
.my-listings .photo-note { grid-column: 1 / -1; margin: 4px 0; font-size: 12.5px; }

/* a paid S-VIP card links to its own offer on the product page (#offer-<id>): that row is shown and marked */
.offer:target { scroll-margin-top: calc(var(--header-h, 64px) + 16px); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50), inset 0 0 0 1px var(--accent); }

/* one seller's listing (listing.php — where a paid S-VIP spot leads) */
.listing-page .product-img { position: relative; }
.listing-vip { position: absolute; top: 12px; left: 12px; }
.listing-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.listing-seller { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 14px; }
.listing-price .phone-btn { flex: 0 1 auto; white-space: nowrap; }
.card-price { margin-top: 6px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .listing-price .phone-btn { flex: 1 1 100%; justify-content: center; } }

/* listing photos (partials/listing-form.php + assets/photo-picker.js): 1…5, drag to reorder, photo 1 = cover */
.photo-picker { border-radius: var(--r-lg); transition: box-shadow .15s; }
.photo-picker.is-drop { box-shadow: 0 0 0 3px var(--accent-50), 0 0 0 1px var(--accent); }
.photo-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.photo-tile, .photo-add-tile { position: relative; aspect-ratio: 1; border-radius: var(--r); }
.photo-tile { overflow: hidden; background: var(--soft); border: 1px solid var(--line); cursor: grab; touch-action: none; user-select: none; outline-offset: 2px; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.photo-tile.is-cover { border: 2px solid var(--accent); }
.photo-tile.is-dragging { z-index: 5; cursor: grabbing; box-shadow: var(--shadow-lg); opacity: .92; transition: none; }
.photo-tiles.is-sorting .photo-tile:not(.is-dragging) { transition: transform .12s; }
.photo-num { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 700; }
.photo-tile.is-cover .photo-num { background: var(--accent); }
.photo-del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .78); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.photo-del:hover, .photo-del:focus-visible { background: var(--danger); }
.photo-flag { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; text-align: center; }
.photo-flag.is-bad { background: var(--danger); color: #fff; }
.photo-flag.is-wait { background: rgba(15, 23, 42, .7); color: #fff; font-weight: 600; }
.photo-tile.is-uploading img { opacity: .45; }
.photo-spin { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, .6); border-top-color: var(--accent); border-radius: 50%; animation: photo-spin .8s linear infinite; }
@keyframes photo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .photo-spin { animation-duration: 2.4s; } }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; border: 2px dashed var(--line); border-radius: var(--r); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; padding: 6px; }
.photo-add:hover, .photo-add:focus-within { border-color: var(--accent); color: var(--accent-600); }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-add-ic { font-size: 26px; line-height: 1; font-weight: 400; }
.photo-count { color: var(--muted); font-weight: 500; }
.photo-help { margin: 10px 0 0; }
.photo-error { margin: 8px 0 0; color: var(--danger); font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) { .photo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* long codes without spaces in titles ("XU30/AL10/AL20/ALA10/ALH10") wrap instead of widening the card on small phones */
.card-body { min-width: 0; }
.card-title { overflow-wrap: anywhere; }

/* one line per problem photo under the grid: what is in the photo vs what the listing is */
.photo-notes { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: #fffaeb; color: #b54708; font-size: 13.5px; line-height: 1.5; }
.photo-notes li + li { margin-top: 4px; }
.photo-flag { overflow-wrap: anywhere; line-height: 1.25; }
@media (max-width: 640px) { .photo-flag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; } }

/* home: „ყველა პროდუქტი →“ instead of the pager — the list itself (?view=all) starts at its own page 1 */
.is-home #pager { display: none !important; }
.home-all { margin: 24px 0 0; text-align: center; }
.home-all .btn { min-width: 260px; }
@media (max-width: 560px) { .home-all .btn { width: 100%; min-width: 0; } }
/* the shop's stated stock on an offer (product.php, lib/linkcheck.php check_stock) */
.stock-tag { display: inline-flex; align-items: center; gap: 3px; min-height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.stock-tag small { font-weight: 500; opacity: .75; }
.stock-in { background: var(--green-50); color: var(--green); }
.stock-order { background: #fff7e6; color: #9a5b00; }
.stock-warn { grid-column: 1 / -1; order: 3; margin-top: -8px; padding: 7px 10px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 760px) { .offer:has(.stock-warn) .offer-action { order: 4; } .stock-warn { margin-top: 0; } }
.stock-warn + .stock-warn { margin-top: 0; }
.wheel-note-ok { background: #e8f6ec; color: #1d5e33; }
.wheel-note-info { background: #eef3fb; color: #24456e; }

/* language + currency menu (docs/i18n.md) — our design: navy header pill, orange accent, the finder-tabs segmented switch */
.locale-menu { position: relative; flex: none; }
.locale-menu > summary { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; white-space: nowrap; }
.locale-menu > summary::-webkit-details-marker { display: none; }
.locale-menu > summary:hover, .locale-menu[open] > summary { background: rgba(255, 255, 255, .08); }
.locale-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 14px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(11, 19, 32, .18); }
.locale-h { margin: 0 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.locale-langs { display: grid; gap: 4px; margin-bottom: 14px; }
.locale-lang { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.locale-lang:hover { background: var(--soft); }
.locale-lang.on { background: var(--accent-50); border-color: rgba(255, 106, 19, .25); }
.locale-code { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.locale-lang.on .locale-code { background: var(--accent); }
.locale-check { margin-left: auto; color: var(--accent-600); display: inline-flex; }
.locale-cur { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.locale-cur-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 9px; color: var(--text-2);
  text-decoration: none; font-weight: 600; font-size: 14px; }
.locale-cur-opt b { font-size: 16px; }
.locale-cur-opt.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.locale-cur-opt.on b { color: var(--accent); }
.locale-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
/* ₾ / $ switch next to a price (product page): the same segmented control, small */
.cur-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-left: 10px; border-radius: 10px; background: var(--soft); vertical-align: middle; }
.cur-switch button { min-width: 38px; height: 36px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.cur-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
@media (max-width: 760px) {
  .locale-menu > summary { border: 0; padding: 0 6px; }
  .locale-menu > summary span { display: none; }
  .locale-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}
/* badges are flex: the space before a switchable price (<span class="money">) is kept with a gap */
.save-badge, .drop-badge { gap: .3em; }
/* a closed <details> still gets a layout in Chrome (content-visibility): the closed panel must not stick out of phones */
.locale-menu:not([open]) .locale-panel { display: none; }
/* tablets: the header row is full (search, nav, post, account) — the menu shows the globe only */
@media (max-width: 1024px) {
  .locale-menu > summary { padding: 0 9px; }
  .locale-menu > summary span { display: none; }
}

/* ---------- auction damage analyzer (auction.php, owner 2026-10-05) ---------- */
.auction-hero { padding-bottom: 36px; }
.auction-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 106, 19, .14); color: #ffb37f; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.auction-form { max-width: 920px; margin-left: auto; margin-right: auto; }
.auction-form .fld > span { margin-bottom: 2px; }
.auction-url { margin-top: 4px; }
.auction-vin { margin-top: 12px; }
.auction-vin input { height: 48px; padding: 0 14px; border: 2px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 16px;
  letter-spacing: .08em; text-transform: uppercase; max-width: 340px; }
.auction-vin input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
.auction-help { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.auction-error { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--danger-50); color: var(--danger); font-size: 14px; font-weight: 600; }
.auction-body { padding-top: 28px; padding-bottom: 48px; display: grid; gap: 22px; }   /* top / bottom only: the .wrap keeps its side gutter (owner: the edges did not line up) */
.auction-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.auction-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.auction-steps .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.auction-steps li.is-now { color: var(--text); border-color: var(--accent); }
.auction-steps li.is-now .dot { background: var(--accent); animation: auction-pulse 1s ease-in-out infinite; }
.auction-steps li.is-done { color: var(--green); }
.auction-steps li.is-done .dot { background: var(--green); }
@keyframes auction-pulse { 50% { transform: scale(1.5); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .auction-steps li.is-now .dot { animation: none; } }
.auction-result { display: grid; gap: 18px; }
.auction-result > section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.auction-car { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.auction-car h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.01em; }
.auction-car-links { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.auction-src { font-size: 13px; color: var(--muted); font-weight: 600; }
.auction-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--text-2); font-size: 14px; }
.auction-facts span + span::before { content: '·'; margin-right: 14px; color: var(--line-2); }
.auction-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.auction-result > .auction-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px; }
.auction-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--soft); }
.auction-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auction-ai h3, .auction-parts h3 { margin: 0 0 8px; font-size: 18px; }
.auction-ai p { margin: 0 0 10px; color: var(--text-2); }
.auction-damage { margin: 0 0 10px; padding-left: 20px; color: var(--text); }
.auction-damage li { margin: 3px 0; }
.auction-warn { padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-50); color: var(--warn); font-weight: 600; }
.auction-warn.is-sold { margin-bottom: 10px; background: var(--danger-50); color: var(--danger); border: 1px solid #fecdca; }
.auction-warn.is-sold p { margin: 0; } .auction-warn.is-sold a { color: inherit; }
.auction-sold-tip { margin-top: 4px !important; font-weight: 500; }
.auction-note { margin: 0; font-size: 13px; color: var(--muted); }
.auction-parts-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.auction-parts-head h3 small { color: var(--muted); font-weight: 600; }
.auction-total { margin: 0; font-size: 15px; }
.auction-total b { font-size: 20px; color: var(--accent-600); }
.auction-total small { color: var(--muted); }
.auction-part-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auction-part { border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.auction-part.sev-severe { border-left-color: var(--danger); }
.auction-part.sev-moderate { border-left-color: var(--warn); }
.auction-part.sev-minor { border-left-color: var(--green); }
.auction-part-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.badge-sev, .badge-likely { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--text-2); }
.sev-severe .badge-sev { background: var(--danger-50); color: var(--danger); }
.sev-moderate .badge-sev { background: var(--warn-50); color: var(--warn); }
.sev-minor .badge-sev { background: var(--green-50); color: var(--green); }
.badge-likely { background: var(--accent-50); color: var(--accent-600); }
.auction-part-desc { margin: 6px 0 10px; font-size: 14px; color: var(--text-2); }
.auction-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.auction-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); color: inherit;
  text-decoration: none; min-width: 0; border: 1px solid transparent; }
.auction-card:hover { border-color: var(--accent); }
.auction-card-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.auction-card-meta { font-size: 13px; color: var(--muted); }
.auction-card-meta b { color: var(--text); font-size: 15px; }
.auction-none { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.auction-more { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.auction-how h2 { margin: 0 0 12px; font-size: 20px; }
.auction-how-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.auction-how-list li { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.auction-how-list .ic { color: var(--accent); }
.auction-how-list span { font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) {
  .auction-steps, .auction-how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .auction-car { flex-direction: column; }
  .auction-car h2 { font-size: 20px; }
  .auction-result > section { padding: 14px; }
  .auction-steps li { padding: 10px; font-size: 13px; }
  .auction-how-list { grid-template-columns: 1fr; }
  .auction-url { flex-direction: column; }
  .auction-url .btn { width: 100%; }
  .auction-url .finder-search-ic { display: none; }
  .auction-url input { padding-left: 14px; flex: none; width: 100%; }
  .auction-vin input { max-width: none; width: 100%; }
}
.auction-result > .auction-verdict { display: grid; gap: 6px; padding: 18px 20px; border-width: 2px; }
.auction-verdict b { font-size: 20px; }
.auction-verdict p { margin: 0; }
.auction-verdict.is-lost { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }
/* the URL field keeps its touch size (QA: 26 px tall) */
.auction-url input { height: 56px; }
@media (max-width: 760px) { .auction-url input { height: 52px; } }
.auction-inspect { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-50); }
.auction-inspect b { color: var(--accent-600); }
.auction-inspect ul { margin: 6px 0 0; padding-left: 20px; }
.auction-repairable h3 { margin: 0 0 8px; font-size: 18px; }
.auction-repairable h3 small { color: var(--muted); font-weight: 600; }
.auction-repairable ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.auction-repairable li { margin: 4px 0; }
.auction-repairable b { color: var(--text); }

/* ---------- photo viewer (assets/lightbox.js) ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: #070b13;
  color: #fff; -webkit-user-select: none; user-select: none; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.lb-count { font-size: 14px; font-weight: 600; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.lb-tools { display: flex; gap: 6px; }
.lb-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .2); outline: none; }
.lb-btn:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.lb-close { background: rgba(255, 106, 19, .25); }
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; min-height: 0; min-width: 0; touch-action: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .15s ease-out; transform-origin: center; cursor: zoom-in; }
.lb.is-zoomed .lb-img { cursor: grab; transition: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lb-nav:hover, .lb-nav:focus-visible { background: var(--accent); outline: none; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb.is-zoomed .lb-nav { opacity: .35; }
.lb-thumbs { display: flex; gap: 6px; padding: 10px 14px 14px; overflow-x: auto; scrollbar-width: thin; }
.lb-thumb { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: #111827; cursor: pointer; opacity: .6; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.is-on { border-color: var(--accent); opacity: 1; }
.lb-thumb:hover, .lb-thumb:focus-visible { opacity: 1; outline: none; }
@media (max-width: 560px) {
  .lb-nav { width: 40px; height: 56px; font-size: 32px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-thumb { width: 60px; height: 44px; }
  .lb-btn { min-width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lb-img { transition: none; } }
.auction-gallery a { cursor: zoom-in; }
.auction-part.sev-check { border-left-color: var(--accent); }
.sev-check .badge-sev { background: var(--accent-50); color: var(--accent-600); }
.auction-maybe .auction-parts-head { display: block; }

/* ---------- header: two rows (owner 2026-10-05: „ძებნას ადგილი აღარ რჩება“) ----------
   row 1: logo · a wide search · + განცხადება · language · account;  row 2: the menu, slim. Phones: the app shell (bottom nav). */
:root { --header-h: 106px; }   /* both rows: sticky offsets (filters, quick bar, offline banner) use it */
.header-row { height: 64px; }
.header-search { max-width: 720px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.header-sub { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.header-sub .wrap { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; overflow-x: auto; scrollbar-width: none; }
.header-sub .wrap::-webkit-scrollbar { display: none; }
.header-sub a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; color: #c3ccda;
  text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-sub a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.header-sub a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.header-sub-new { padding: 1px 6px; border-radius: 999px; background: rgba(255, 106, 19, .2); color: #ffb37f; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .header-row { height: 56px; }
  .header-sub, .header-add { display: none; }
  .header-actions { gap: 4px; }
}

/* auction hero: centred (owner 2026-10-05: „გაცენტრე, ნაწერი ლამაზად ჩასვი“) */
.auction-hero .hero-copy { text-align: center; }
.auction-hero .hero-sub { max-width: 760px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.auction-hero .hero-title { text-wrap: balance; }
.auction-help { text-align: center; }
.auction-how h2 { text-align: center; }
.auction-how .auction-note { text-align: center; }
@media (max-width: 900px) { .header-sub .wrap { justify-content: safe center; } }   /* centred while it fits; a row that overflows starts at the left */

/* ---------- text never breaks mid-phrase (owner 2026-10-05: „ნაწერი შუაში რო წყდება“) ---------- */
.hero-sub { max-width: 880px; text-wrap: balance; }
.results-layout { grid-template-columns: 300px minmax(0, 1fr); }
.filters { padding: 14px 12px; }
.cat-list button { gap: 9px; }
.cat-label { text-wrap: balance; }
@media (max-width: 1024px) {
  .results-layout { grid-template-columns: 268px minmax(0, 1fr); }
  .cat-list button { font-size: 14px; padding: 7px 6px; }
  .cat-icon { width: 30px; height: 30px; }
}
.results-head h1, .results-head h2 { text-wrap: balance; }
@media (max-width: 1024px) { .results-head { flex-wrap: wrap; align-items: center; } }
/* owner 2026-10-05: the hero centred — home and catalog alike; the auction form as wide as the search form */
.auction-form { max-width: none; }
.auction-hero .hero-sub { max-width: 1040px; }
.hero .hero-copy { text-align: center; }
.hero .hero-sub { margin-left: auto; margin-right: auto; }

.trust { justify-content: center; }
/* centred on every width, phones too (owner 2026-10-10) */
/* the Copart button (bookmarklet) block in the auction form */
.auction-bm { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--soft); text-align: left; }
.auction-bm-head b { display: block; font-size: 14.5px; }
.auction-bm-head span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.auction-bm-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.auction-bm-steps li + li { margin-top: 4px; }
.auction-bm-btn { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 13.5px; text-decoration: none; cursor: grab; box-shadow: var(--shadow-sm); }
.auction-bm-btn:hover { background: var(--accent-600); color: #fff; }
.auction-bm-note { margin: 8px 0 0; font-size: 13px; color: var(--accent-600); font-weight: 600; }
.auction-bm-head { cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.auction-bm-head::-webkit-details-marker { display: none; }
.auction-bm-head::after { content: ""; position: absolute; right: 2px; top: 6px; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.auction-bm[open] .auction-bm-head::after { transform: rotate(-135deg); top: 10px; }
/* auction: a part whose shops are being asked right now */
.auction-searching { display: flex; align-items: center; gap: 8px; color: var(--accent-600); }
.auction-searching .spin { width: 14px; height: 14px; border: 2px solid var(--accent-50); border-top-color: var(--accent); border-radius: 50%; animation: auction-spin .8s linear infinite; flex: none; }
@keyframes auction-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auction-searching .spin { animation: none; } }
/* auction: the Chrome extension's state (assets/ext-bridge.js) */
.auction-ext-status { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; color: var(--muted); }
.auction-ext-status.is-on { color: #1b7f3b; font-weight: 600; }
/* auction: sign-in wall + the payment confirmation of a waiting analysis (owner 2026-10-06) */
.auction-signin { text-align: center; padding: 28px 24px; }
.auction-signin-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-50); color: var(--accent-600); }
.auction-signin h2 { margin: 12px 0 6px; font-size: 22px; font-weight: 800; }
.auction-signin p { margin: 0 auto; max-width: 560px; color: var(--muted); text-wrap: balance; }
.auction-signin-acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.auction-quota { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--text-2); }
.auction-pay { margin: 0 0 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.auction-pay h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.auction-pay-lead { margin: 0; color: var(--text-2); }
.auction-pay-car { margin: 10px 0 0; }
.auction-pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 12px; }
.auction-pay-opt { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--soft); }
.auction-pay-opt .btn { margin-top: 6px; }
.auction-pay-price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .auction-pay { padding: 18px 16px; } .auction-signin-acts .btn { flex: 1; } }
.auction-returned { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r); background: #e7f7ee; color: #127a3e; font-weight: 600; }
.auction-refund-rule { display: inline-block; margin-top: 4px; color: #127a3e; font-weight: 600; }
.auction-ext-status.is-old { color: #9a5b00; background: #fff4e0; }
/* auction: airbags by zone, the wheels, the engine bay (owner 2026-10-09) */
.auction-checks h3 { margin: 0 0 8px; font-size: 18px; }
.xc-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.xc-list li { padding: 10px 12px; border-radius: var(--r-sm); border-left: 4px solid var(--line); background: var(--bg, #f6f8fb); font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.xc-list li b { display: block; margin-bottom: 2px; color: var(--text); }
.xc-list li small { color: var(--muted); }
.xc-list li.is-ok { border-left-color: var(--green); }
.xc-list li.is-warn { border-left-color: var(--warn); }
.xc-list li.is-bad { border-left-color: var(--danger); }
.xc-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.xc-grid .is-bad { color: var(--danger); font-weight: 600; }
/* auction: the dashboard read (engine running, warning lights) */
.auction-dash h3 { margin: 0 0 8px; font-size: 18px; }
.auction-dash h3 small { color: var(--muted); font-weight: 600; font-size: 13px; }
.dash-run { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.dash-run.is-on { background: var(--green-50); color: var(--green); }
.dash-run.is-off { background: var(--warn-50); color: var(--warn); }
.dash-warn { margin: 0 0 10px; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.dash-warn li { margin: 4px 0; overflow-wrap: anywhere; }
.dash-warn b { color: var(--text); }
/* stickers (lib/stickers.php): the home board „მოძებნე ნაწილი სტიკერით“, the chips on a listing's own card / offer row */
.home-stickers { margin-top: 18px; }
.sticker-board { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; align-items: center; gap: 12px 24px; padding: 18px 22px;
  border: 1px solid #a5e3ec; border-radius: var(--r-lg); background: #f2fbfd; }
.sticker-board h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.sticker-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sticker-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; text-align: center;
  color: var(--text); text-decoration: none; min-height: 100%; }
.sticker-tile:hover, .sticker-tile:focus-visible { background: #fff; box-shadow: 0 0 0 2px var(--st, var(--accent)); outline: none; }
.sticker-tile-ic { font-size: 26px; line-height: 1; }
.sticker-tile-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sticker-tile small { color: var(--muted); font-size: 12px; }
.sticker-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.sticker-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5;
  color: var(--st, #0ea5e9); background: color-mix(in srgb, var(--st, #0ea5e9) 12%, #fff); border: 1px solid color-mix(in srgb, var(--st, #0ea5e9) 35%, #fff); }
.sticker-note { margin: 6px 0 0; }
#f-sticker + .combo, #f-sticker { width: 100%; }
@media (max-width: 700px) {
  .sticker-board { grid-template-columns: 1fr; padding: 14px; }
  .sticker-tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
/* auction: the VIN read off a photo, the car's earlier sales */
.auction-vin p { margin: 0 0 8px; }
.auction-vin code { font-size: 15px; letter-spacing: .04em; overflow-wrap: anywhere; }
.auction-vin-lots { font-size: 14px; overflow-wrap: anywhere; }

/* other cars' parts that fit (owner 2026-10-10, api/cross-search.php) */
.cross { margin-top: 28px; display: grid; gap: 22px; }
.cross-sec h2 { margin: 0 0 4px; font-size: 20px; }
.cross-group { margin-top: 14px; }
.cross-group h3 { margin: 0 0 10px; font-size: 16px; }
.cross-group h3 small { color: var(--muted); font-weight: 600; font-size: 13px; }
.cross-warn { margin: 6px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-50); color: var(--warn); font-weight: 600; font-size: 14px; }
.cross-sec.is-platform .cross-grid { opacity: .78; }
.cross-sec.is-platform .cross-grid:hover { opacity: 1; }
.cross-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 32px) / 3)); grid-template-columns: none; gap: 16px;
              overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.cross-grid > * { scroll-snap-align: start; }
@media (max-width: 640px) { .cross-grid { grid-auto-columns: 78%; gap: 12px; } }
.results-layout > .results, .cross, .cross-sec, .cross-group { min-width: 0; }   /* the cards' scroll row never widens the column */

/* market price indicator on an offer (lib/marketprice.php, owner 2026-10-10) */
.mp-badge { display: block; width: max-content; max-width: 124px; margin: 4px 0 0 auto; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700;
            line-height: 1.3; white-space: normal; text-align: center; }
@media (max-width: 480px) { .mp-badge { max-width: 82px; font-size: 11px; padding: 2px 6px; } }
.mp-green { background: var(--green-50); color: var(--green); }
.mp-red { background: var(--danger-50); color: var(--danger); }
.mp-gray { background: var(--bg, #f1f4f8); color: var(--text-2); }

/* shop slang the query used (data/slang.php) */
.slang-hint { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }

.cross-badge { display: inline-block; vertical-align: middle; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cross-badge.is-green { background: var(--green-50); color: var(--green); }
.cross-badge.is-gray { background: var(--bg, #f1f4f8); color: var(--text-2); border: 1px solid var(--line); }
/* a price far below the card's other offers (lib/marketprice.php price_warnings): the offer keeps its place, the buyer is warned */
.price-warn { margin-top: 6px; padding: 6px 9px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; text-align: left; }
.price-warn[hidden] { display: none; }
#pb-warn { margin: 6px 0 2px; font-size: 13px; }
.buy-warn { font-size: 14px; cursor: help; }

/* search suggestions (assets/suggest.js, api/suggest.php): under the field, the part names with their counts */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .35); padding: 6px; max-height: min(60vh, 420px); overflow-y: auto; text-align: left; }
.suggest-head { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.suggest-note { font-size: 13px; padding: 8px 10px; margin-bottom: 4px; border-radius: 10px; background: var(--accent-50); color: var(--text); }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; min-width: 0; }
.suggest-item:hover, .suggest-item.active { background: var(--accent-50); }
.suggest-ic { color: var(--muted); flex: none; }
.suggest-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-count { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* admin → SEO: a card's / list's own intro text under its heading (lib/seoedit.php seo_page('intro')) */
.seo-intro { margin: -6px 0 16px; max-width: 75ch; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.list-intro .seo-intro { margin: 0 0 8px; font-size: 14.5px; }

/* advert slots (lib/ads.php, owner 2026-10-25): printed only while ads are on — no empty box otherwise. The slot reserves the height the
   admin set (desktop / phone) so the page never jumps when the ad loads (CLS); a small „რეკლამა“ label marks it as an advert. */
.ad-slot { display: block; position: relative; box-sizing: border-box; margin: 16px auto; min-height: var(--ad-h, 90px); text-align: center; overflow: hidden; contain: layout paint; }
.ad-slot .ad-label { display: block; margin: 0 0 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.ad-slot .ad-body { display: flex; justify-content: center; align-items: center; max-width: 100%; }
.ad-slot .ad-body > * { max-width: 100%; }
.ad-slot.ad-top, .ad-slot.ad-bottom { max-width: 1240px; padding: 0 20px; }
.ad-slot.ad-top { margin-top: 12px; margin-bottom: 0; }
.ad-slot.ad-product_bottom { margin: 24px 0; }
.ad-slot.ad-product_side { margin: 12px 0 0; }
@media (max-width: 760px) {
  .ad-slot { min-height: var(--ad-hm, 100px); margin: 12px auto; }
  .ad-slot.ad-top, .ad-slot.ad-bottom { padding: 0 16px; }
}
/* the admin's look at the places (?ads_preview=1): an outlined box with the slot's name */
.ad-slot.ad-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 16px;
  border: 2px dashed var(--accent); border-radius: var(--r); background: repeating-linear-gradient(45deg, var(--accent-50), var(--accent-50) 10px, #fff 10px, #fff 20px); color: var(--accent-600); }
.ad-slot.ad-top.ad-preview, .ad-slot.ad-bottom.ad-preview { max-width: 1200px; }
.ad-preview-name { font-weight: 800; font-size: 14px; }
.ad-preview small { color: var(--text-2); font-size: 12px; }

/* the seller's name on a card's offer row leads to their store (lib/stores.php) */
.offer-store-link { color: inherit; text-decoration: none; }
.offer-store-link:hover { color: var(--accent-600); text-decoration: underline; }

/* a seller's number behind one click (lib/phones.php, assets/phone.js): its start + „ნახვა“; the number replaces it */
.phone-reveal .phone-num, .phone-revealed .phone-num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.phone-reveal .phone-show { padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; }
.btn-ghost.phone-reveal .phone-show, .st-phone-link .phone-show { background: var(--accent-50); color: #a8400a; }   /* 4.5:1 on the tint */
.st-phone-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; text-decoration: none; }
.st-phone-link .ic { color: var(--st, var(--accent)); }

/* a store's services (lib/stores.php STORE_SERVICES — the seller's statement): its store page, the directory, a card's offer row */
.st-services { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.st-svc { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: var(--st-soft, var(--green-50)); color: var(--green); }
.st-svc .ic { color: var(--st, var(--green)); }
.store-page .st-svc { color: color-mix(in srgb, var(--st) 75%, #000); }
.st-svc-more { background: var(--soft); color: var(--muted); }
.offer-meta .st-services { flex-basis: 100%; margin: 2px 0 0; gap: 4px; }
.offer-meta .st-svc { height: 22px; padding: 0 8px; font-size: 11.5px; }
