/* Vision Auto Solutions — online shop (2026 rebuild)
   One stylesheet for every shop page. Colours come from the logo:
   badge red, shield black, white. Change the tokens below to re-skin. */

:root {--ok-text:#166534;--red-text:#b91c1c;
  --brand: #d61f2b;          /* logo badge red */
  --brand-ink: #ffffff;
  --brand-dark: #a8141e;
  --ink: #15171c;            /* body text */
  --ink-2: #4a505c;          /* secondary text */
  --ink-3: #5a606c;
  --bg: #f5f4f1;             /* page */
  --surface: #ffffff;        /* cards */
  --surface-2: #efeee9;
  --line: #e2e0da;
  --night: #111318;          /* header / hero */
  --night-2: #1b1e25;
  --ok: #11672f;
  --ok-bg: #e3f4e8;
  --warn: #7f4c00;--warn-text:#92400e;
  --warn-bg: #fff2d6;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --focus: #2563eb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,18,24,.06), 0 6px 18px rgba(16,18,24,.06);
  --shadow-lg: 0 18px 50px rgba(16,18,24,.18);
  --wrap: 1240px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {--ok-text:#4ade80;--red-text:#f87171;
    --ink: #eceef2; --ink-2: #b6bcc8; --ink-3: #8f96a3;
    --bg: #0d0f13; --surface: #161920; --surface-2: #1d2129; --line: #2a2f39;
    --night: #08090c; --night-2: #12151b;
    --ok: #15803d; --ok-bg: #12301c; --warn: #fbbf24; --warn-text:#fbbf24; --warn-bg: #33270b; --bad: #f87171; --bad-bg: #3a1513;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {--ok-text:#4ade80;--red-text:#f87171;
  --ink: #eceef2; --ink-2: #b6bcc8; --ink-3: #8f96a3;
  --bg: #0d0f13; --surface: #161920; --surface-2: #1d2129; --line: #2a2f39;
  --night: #08090c; --night-2: #12151b;
  --ok: #15803d; --ok-bg: #12301c; --warn: #fbbf24; --warn-bg: #33270b; --bad: #f87171; --bad-bg: #3a1513;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 850; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 750; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-size: .92em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: #111; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .link { color: #ff6b74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link { color: #ff6b74; } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 650; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.input, .select, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.input:focus, .select:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: .88rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- top bar & header ---------- */
.topbar { background: var(--night); color: #cfd3db; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 34px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .tb-left { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 720px) { .topbar .tb-hide { display: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--night-2); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hdr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.brand b { display: block; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.05; }
.brand span { display: block; white-space: nowrap; font-size: .68rem; letter-spacing: .14em; color: #ff8a91; font-weight: 700; }
.brand span.est { display: inline; }
.search { position: relative; display: flex; }
.search input { flex: 1; min-height: 46px; border-radius: 999px 0 0 999px; border: 0; padding: 0 18px; background: #fff; color: #111; min-width: 0; }
.search button svg { width: 22px; height: 22px; }
.search button { border: 0; border-radius: 0 999px 999px 0; background: var(--brand); color: #fff; padding: 0 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.search button:hover { background: var(--brand-dark); }
.hdr-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 6px 8px; color: #fff; text-decoration: none; background: none; border: 0; border-radius: 10px; font-size: .72rem; font-weight: 600; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 0; right: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; display: none; align-items: center; justify-content: center; }
.badge.show { display: inline-flex; }
.catnav { background: var(--night-2); border-top: 1px solid rgba(255,255,255,.07); }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: block; padding: 11px 14px; color: #d8dbe2; text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.catnav a:hover, .catnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand); }
.vehicle-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; border: 0; cursor: pointer; margin: 6px 0; white-space: nowrap; }
.vehicle-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 860px) {
  .hdr { grid-template-columns: auto auto; grid-template-areas: "brand actions" "search search"; padding-bottom: 12px; gap: 10px 12px; min-height: 0; padding-top: 10px; }
  .brand { grid-area: brand; } .hdr-actions { grid-area: actions; justify-content: flex-end; } .search { grid-area: search; }
  .brand b { font-size: .95rem; } .brand span.est { display: none; } .icon-btn { min-width: 44px; } .icon-btn .lbl { display: none; }
}

/* ---------- hero (home) ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(214,31,43,.45), transparent 60%), linear-gradient(180deg, var(--night-2), var(--night)); color: #fff; padding: 46px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff5a64; }
.hero p.lead { font-size: 1.1rem; color: #cdd1da; max-width: 36em; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #ff8a91; margin-bottom: 12px; }
.finder { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); }
.finder h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.finder .row3 { display: grid; grid-template-columns: 1fr 1fr 128px; gap: 10px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .finder .row3 { grid-template-columns: 1fr 1fr; } .finder .row3 .yr { grid-column: span 2; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.stats div { background: rgba(255,255,255,.04); padding: 14px 16px; }
.stats b { display: block; font-size: 1.35rem; color: #fff; }
.stats span { font-size: .8rem; color: #aab0bc; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-3); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card .cap { position: absolute; inset: auto 0 0 0; padding: 56px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6) 40%, rgba(0,0,0,.88)); text-shadow: 0 1px 2px rgba(0,0,0,.5); color: #fff; }
.cat-card b { display: block; font-size: 1.05rem; }
.cat-card span { font-size: .8rem; opacity: .85; }
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .usp { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .usp { grid-template-columns: 1fr; } }
.usp > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.usp svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: 8px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 62px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.store-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.store-card .info { padding: 26px; }
.store-card .map { background: var(--night-2); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
@media (max-width: 760px) { .store-card { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 650; }

/* ---------- product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.p-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.p-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-media .ph { opacity: .9; filter: saturate(.85); }
.p-media .tag { position: absolute; left: 8px; top: 8px; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; color: var(--ink-3); }
.p-name { font-weight: 750; font-size: 1rem; line-height: 1.25; text-decoration: none; color: var(--ink); }
.p-name::after { content: ""; position: absolute; inset: 0; }
.p-card { position: relative; }
.p-fit { font-size: .85rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-no { font-size: .78rem; color: var(--ink-3); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 850; font-size: 1.15rem; letter-spacing: -.01em; }
.price .was { font-size: .85rem; color: var(--ink-3); text-decoration: line-through; font-weight: 600; margin-left: 6px; }
.price-ask { font-weight: 700; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.add-btn { position: relative; z-index: 2; }
@media (max-width: 520px) {
  .p-body { padding: 10px; } .p-name { font-size: .92rem; } .p-foot { flex-direction: column; align-items: stretch; }
  .p-foot .btn { width: 100%; }
}
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 750; padding: 3px 9px; border-radius: 999px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color:var(--ok-text,var(--ok)); background: var(--ok-bg); }
.stock.low { color:var(--warn-text); background: var(--warn-bg); }
.stock.out { color: var(--ink-2); background: var(--surface-2); }
.tag-used { background: var(--night); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .05em; }

/* ---------- catalogue page ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 22px 0 16px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; padding-top: 24px; padding-bottom: 60px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.filters { align-self: start; position: sticky; top: 130px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-height: calc(100vh - 150px); overflow: auto; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: .94rem; }
.opt:hover { background: var(--surface-2); }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.opt .n { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
@media (max-width: 960px) {
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); max-height: none; border-radius: 0; z-index: 60; transform: translateX(105%); transition: transform .2s; top: 0; }
  .filters.open { transform: none; box-shadow: var(--shadow-lg); }
}
.filters .f-head { display: none; }
@media (max-width: 960px) { .filters .f-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar .count { font-weight: 700; }
.toolbar .right { display: flex; gap: 8px; align-items: center; }
.toolbar .select { min-height: 40px; width: auto; padding: 6px 10px; }
.only-mobile { display: none; }
@media (max-width: 960px) { .only-mobile { display: inline-flex; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters .chip { font-size: .8rem; padding: 5px 10px; }
.loading-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 12px; }
.loading-bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.empty { text-align: center; padding: 40px 18px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; display: none; }
.scrim.show { display: block; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; padding: 26px 0 50px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }
.gallery .main { aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { width: 70px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: var(--surface); cursor: pointer; flex: none; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { font-size: .82rem; color: var(--ink-3); margin-top: 8px; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 16px; }
.buybox .price { font-size: 1.8rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { width: 40px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 700; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 46px; text-align: center; border: 0; background: none; height: 42px; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.buy-row .btn-primary { flex: 1; min-width: 180px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.specs th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 9px 12px 9px 0; width: 40%; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; word-break: break-word; }
.assure { display: grid; gap: 10px; margin-top: 16px; }
.assure div { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.assure svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 1px; }
.fit-box { border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.fit-box.yes { background: var(--ok-bg); color:var(--ok-text,var(--ok)); }
.fit-box.maybe { background: var(--warn-bg); color:var(--warn-text); }
.fit-box.no { background: var(--bad-bg); color: var(--bad); }
.fit-box b { color: inherit; }
.pdp-tabs { margin-top: 26px; }
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.acc summary { cursor: pointer; padding: 14px 16px; font-weight: 750; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-3); }
details.acc[open] summary::after { content: "–"; }
details.acc > div { padding: 0 16px 16px; color: var(--ink-2); }

/* ---------- cart & checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .85rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 58px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.line .nm { font-weight: 750; text-decoration: none; }
.line .ctrl { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.line .tot { font-weight: 800; text-align: right; }
@media (max-width: 520px) { .line { grid-template-columns: 56px 1fr; } .line img { width: 56px; height: 48px; } .line .tot { grid-column: 2; text-align: left; } }
.summary { position: sticky; top: 130px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; font-weight: 850; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.radio-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(214,31,43,.12); }
.radio-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.radio-card b { display: block; }
.radio-card span { font-size: .88rem; color: var(--ink-3); }
.radio-card .fee { margin-left: auto; font-weight: 800; white-space: nowrap; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: .93rem; background: var(--surface-2); border: 1px solid var(--line); }
.notice.info { background: #eaf1ff; border-color: #c9dafc; color: #1e3a8a; }
:root[data-theme="dark"] .notice.info { background: #13213f; border-color: #22396a; color: #c7d7ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice.info { background: #13213f; border-color: #22396a; color: #c7d7ff; } }
.notice.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.notice.ok { background: var(--ok-bg); border-color: transparent; color:var(--ok-text,var(--ok)); }
.secure { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); margin-top: 10px; justify-content: center; }
.secure svg { width: 16px; height: 16px; }

/* ---------- drawer (mini cart) & toast ---------- */
.drawer:not(.open) { visibility: hidden; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); z-index: 70; transform: translateX(105%); transition: transform .22s, visibility .22s; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer .body { flex: 1; overflow: auto; padding: 0 18px; }
.drawer footer { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 200%); visibility: hidden; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 650; z-index: 90; transition: transform .25s; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #b9bec9; padding: 44px 0 24px; margin-top: 30px; font-size: .92rem; }
.site-footer a { color: #e6e8ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .f-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-logos span { border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 3px 8px; font-size: .75rem; font-weight: 700; color: #e6e8ee; }
.wa-fab { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 50; }
.wa-fab svg { width: 28px; height: 28px; }

/* ---------- help / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; padding-top: .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.help-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; padding-top: 26px; padding-bottom: 60px; }
.help-nav { position: sticky; top: 130px; align-self: start; display: grid; gap: 4px; }
.help-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.help-nav a:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 860px) { .help-layout { grid-template-columns: 1fr; } .help-nav { position: static; display: flex; flex-wrap: wrap; } }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--ink-3); border-bottom: 3px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 750; background: var(--surface-2); }

/* ---------- modal ---------- */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(0,0,0,.5); }
dialog.modal .m-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
dialog.modal .m-body { padding: 18px 20px 20px; }

/* no-photo tile: honest placeholder instead of a stock photo of a different part */
.ph-tile { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; background: radial-gradient(120% 90% at 30% 20%, var(--surface), var(--surface-2)); color: var(--ink-3); }
.ph-tile svg { width: 34%; max-width: 110px; height: auto; color: var(--ink-3); opacity: .55; }
.ph-tile span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.line .ph-tile svg { width: 60%; } .line .ph-tile span { display: none; } .line .ph-tile { width: 72px; height: 58px; border-radius: 10px; }
@media (max-width: 520px) { .line .ph-tile { width: 56px; height: 48px; } }

@media (max-width: 1240px) { .site-header .brand span.est { display: none; } }
.line > div, .checkout > *, .layout > *, .pdp > *, .p-body { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 > :first-child { grid-column: span 2; } }

/* ---------- comma search + views (parts page) ---------- */
.refine-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.refine-label { display: block; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.refine-row { position: relative; }
.refine-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.refine-ico svg { width: 18px; height: 18px; display: block; }
.refine-row .input { padding-left: 38px; width: 100%; }
.refine-hint { margin: 6px 0 0; }
.refine-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.refine-chips:not(:empty) { margin-top: 8px; }
.refine-arrow { color: var(--ink-3); font-weight: 800; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle button { appearance: none; border: 0; background: transparent; color: var(--ink-2); width: 40px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button[aria-pressed="true"] { background: var(--night); color: #fff; }
.view-toggle button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
@media (max-width: 960px) { .toolbar .right { flex-wrap: wrap; } }

/* list view: one wide row per part */
.p-grid.p-list { grid-template-columns: 1fr; gap: 10px; }
.p-list .p-card { flex-direction: row; align-items: stretch; }
.p-list .p-media { width: 150px; flex: none; aspect-ratio: auto; min-height: 110px; }
.p-list .p-body { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; row-gap: 3px; align-content: center; }
.p-list .p-body > * { grid-column: 1; }
.p-list .p-foot { grid-column: 2; grid-row: 1 / span 5; margin: 0; padding: 0; flex-direction: column; align-items: flex-end; justify-content: center; }
.p-list .p-fit { -webkit-line-clamp: 3; }
@media (max-width: 620px) {
  .p-list .p-media { width: 96px; min-height: 0; }
  .p-list .p-body { grid-template-columns: 1fr; padding: 10px; }
  .p-list .p-foot { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 6px; }
  .p-list .p-foot .btn { width: auto; }
}

/* table view: compact rows, scrolls sideways inside its box on small screens */
.p-grid.p-tablev { display: block; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
.table-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.p-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .9rem; }
.p-table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.p-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-table tbody tr:hover { background: var(--surface-2); }
.p-table tbody tr:last-child td { border-bottom: 0; }
.p-table td.n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p-table td.fit { max-width: 260px; color: var(--ink-2); font-size: .84rem; }
.p-table .p-name { font-size: .94rem; }
.p-table .p-name::after { content: none; }
.p-table .price { font-size: 1rem; white-space: nowrap; }
