/* Night-shift workshop theme (from the finalised design): dark bay floor, parts-bin inventory rows,
   burgundy used sparingly to mark what matters (price, stock, calls to action). */
:root {
  --bg: #15100F; --surface: #1F1716; --surface-2: #281E1D; --ink: #F4ECE9; --ink-soft: #AC9793;
  --burgundy: #E0455C; --burgundy-deep: #A42A3C; --line: #362725; --wa: #25D366; --wa-ink: #0b2e17;
  --ok: #4fbf7a; --warn: #e3a33b;
  color-scheme: dark;
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 0;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2EDEB; --surface: #FFFFFF; --surface-2: #EFE4E2; --ink: #211715; --ink-soft: #725E5A;
    --burgundy: #A42A3C; --burgundy-deep: #7A1C2A; --line: #E0D2CF; --ok: #1f7a45; --warn: #9a6200; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2EDEB; --surface: #FFFFFF; --surface-2: #EFE4E2; --ink: #211715; --ink-soft: #725E5A;
  --burgundy: #A42A3C; --burgundy-deep: #7A1C2A; --line: #E0D2CF; --ok: #1f7a45; --warn: #9a6200; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
main.wrap { flex: 1; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.pre { white-space: pre-line; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--burgundy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

/* ---------- buttons ---------- */
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--burgundy); color: #fff; border: 1px solid transparent; padding: 12px 20px; font-family: var(--font-display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; text-decoration: none; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .15s, transform .05s; white-space: nowrap; }
.cta-btn:hover { background: var(--burgundy-deep); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); clip-path: none; }
.cta-btn.ghost:hover { border-color: var(--ink-soft); background: var(--surface-2); }
.cta-btn.wa { background: var(--wa); color: var(--wa-ink); }
.cta-btn.wa:hover { background: #1fb257; }
.cta-btn.big { padding: 15px 22px; font-size: 15px; width: 100%; }
.cta-btn.small { padding: 7px 12px; font-size: 12.5px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); cursor: pointer; position: relative; text-decoration: none; }
.link-more { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--burgundy); }
.link-more:hover { text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-soft); text-decoration: underline; }
.danger { color: var(--burgundy); }

/* ---------- header ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--ink); }
header.main { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.header-in { display: flex; align-items: center; gap: 20px; padding-block: 16px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; line-height: 1.1; flex-shrink: 0; }
.logo span { color: var(--burgundy); }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; border: 1px solid var(--line); background: var(--surface); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 11px 14px; outline: none; }
.search input::placeholder { color: var(--ink-soft); }
.search button { background: transparent; border: 0; padding: 0 14px; cursor: pointer; color: var(--ink-soft); }
.search:focus-within { border-color: var(--burgundy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-btn { padding: 10px 14px; }
.cart-count { position: absolute; top: -7px; right: -7px; background: var(--burgundy); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-family: var(--font-mono); }
.menu-btn { display: none; }
.mainnav { display: flex; gap: 26px; padding-block: 0 12px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; align-items: center; }
.mainnav > a { text-decoration: none; color: var(--ink-soft); padding-block: 4px; border-bottom: 2px solid transparent; }
.mainnav > a:hover, .mainnav > a[aria-current] { color: var(--ink); border-bottom-color: var(--burgundy); }
.mainnav-cats { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; border-bottom: 1px solid var(--line); }
.hero-text { padding-block: 56px 48px; padding-right: 40px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 10px; }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5.2vw, 58px); line-height: .98; margin: 0 0 20px; text-wrap: balance; }
.hero h1 span { color: var(--burgundy); }
.hero-text > p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 48ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-search { display: flex; margin-top: 28px; max-width: 520px; border: 1px solid var(--line); background: var(--surface); }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 14px 16px; outline: none; }
.hero-search .cta-btn { clip-path: none; }
.hero-stock { border-left: 1px solid var(--line); padding: 56px 0 48px 40px; display: flex; flex-direction: column; }
.hero-stock .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 16px; }
.stockrow { display: flex; justify-content: space-between; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 13.5px; gap: 12px; text-decoration: none; }
.stockrow:hover .part { color: var(--burgundy); }
.stockrow .part { font-weight: 500; }
.stockrow .make { color: var(--ink-soft); font-size: 12px; display: block; }
.stockrow .price { font-family: var(--font-mono); color: var(--burgundy); font-weight: 500; white-space: nowrap; }
.hero-stock .link-more { margin-top: 18px; }

/* ---------- sections ---------- */
.section { padding-block: 52px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section h2, .page-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 3vw, 34px); margin: 0; line-height: 1.05; }
.page-title { margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--surface); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 7px; text-decoration: none; transition: background .15s; min-width: 0; }
.card:hover { background: var(--surface-2); }
.card:hover .card-title { color: var(--burgundy); }
.card-media { aspect-ratio: 4/3; background: var(--surface-2); position: relative; overflow: hidden; margin-bottom: 4px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-make { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-pn { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; gap: 8px; }
.card-price { font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: var(--burgundy); }
.card-cond { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; }
.card.is-sold .card-media img { filter: grayscale(1) opacity(.55); }
.card.is-sold .card-price { color: var(--ink-soft); text-decoration: line-through; }
.badge { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; display: inline-block; }
.card-media .badge { position: absolute; top: 8px; left: 8px; }
.badge-new { background: var(--burgundy); color: #fff; }
.badge-used { background: rgba(21,16,15,.82); color: #F4ECE9; border: 1px solid rgba(244,236,233,.25); }
.badge-grade { border: 1px solid var(--line); color: var(--ink-soft); }
.badge-stock { color: var(--ok); border: 1px solid currentColor; }
.badge-reserved { color: var(--warn); border: 1px solid currentColor; }
.badge-sold { color: var(--ink-soft); border: 1px solid currentColor; }
.sold-flag { position: absolute; inset: auto 0 0 0; background: rgba(21,16,15,.85); color: #F4ECE9; text-align: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; padding: 6px; font-size: 13px; }
.sold-flag.reserved { background: rgba(160,100,10,.9); }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); opacity: .7; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gallery-main .ph { aspect-ratio: 4/3; background: var(--surface-2); }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.cat { background: var(--surface); text-decoration: none; color: var(--ink); padding: 22px 12px; text-align: center; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.cat small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: none; font-weight: 500; letter-spacing: 0; }
.cat:hover { background: var(--surface-2); color: var(--burgundy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); padding: 7px 13px; font-size: 13px; text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--burgundy); color: var(--burgundy); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.trust-item { background: var(--surface); padding: 26px 20px; }
.trust-item .num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--burgundy); display: block; margin-bottom: 4px; text-transform: uppercase; }
.trust-item .lbl { font-size: 13px; color: var(--ink-soft); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); counter-reset: s; }
.steps li { background: var(--surface); padding: 22px 20px; counter-increment: s; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: '0' counter(s); font-family: var(--font-mono); color: var(--burgundy); font-size: 13px; }
.steps strong { font-family: var(--font-display); text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }
.steps span { color: var(--ink-soft); font-size: 13.5px; }

#sell { border-bottom: 0; }
.sell-strip { background: var(--surface-2); padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; border-left: 4px solid var(--burgundy); }
.sell-strip h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); }
.sell-strip p { margin: 0; color: var(--ink-soft); max-width: 48ch; line-height: 1.55; }
.sell-strip .ctawrap { text-align: right; }

/* ---------- catalogue ---------- */
.crumbs { font-size: 12.5px; color: var(--ink-soft); padding-block: 18px 6px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.catalog-head { padding-block: 10px 22px; }
.catalog-head .muted { max-width: 70ch; margin: 6px 0 0; }
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-bottom: 56px; align-items: start; }
.filters { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 16px; }
.filters-box { background: var(--surface); border: 1px solid var(--line); }
.filters-box summary { padding: 14px 16px; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .03em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filters-box summary::after { content: '+'; color: var(--burgundy); }
.filters-box[open] summary::after { content: '–'; }
.filters-box summary::-webkit-details-marker { display: none; }
.filter-form { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; }
@media (min-width: 861px) {
  .filters-box summary { pointer-events: none; }
  .filters-box summary::after { content: ''; }
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
label.check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--ink); }
label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { background: var(--bg); border: 1px solid var(--line); padding: 11px 12px; font-size: 15px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--burgundy); }
input[type=checkbox] { accent-color: var(--burgundy); width: 18px; height: 18px; }
.help-box { background: var(--surface-2); padding: 18px; border-left: 3px solid var(--burgundy); display: flex; flex-direction: column; gap: 8px; }
.help-box p { margin: 0 0 6px; color: var(--ink-soft); font-size: 13.5px; }
.results .cards { grid-template-columns: repeat(3, 1fr); }
.empty { background: var(--surface); border: 1px solid var(--line); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h2 { font-family: var(--font-display); text-transform: uppercase; margin: 0; }
.empty p { color: var(--ink-soft); margin: 0 0 8px; max-width: 46ch; }
.big-empty { margin-block: 60px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding-block: 14px 48px; border-bottom: 1px solid var(--line); align-items: start; }
.gallery { position: sticky; top: 130px; min-width: 0; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--surface-2); border: 1px solid var(--line); scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main > * { flex: 0 0 100%; scroll-snap-align: center; }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--surface-2); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 76px; padding: 0; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; }
.gallery-thumbs button[aria-current] { border-color: var(--burgundy); }
.gallery-thumbs img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.product-info h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; margin: 12px 0 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.price-big { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--burgundy); margin: 0 0 18px; }
.specs { margin: 0 0 20px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.specs dd { margin: 0; }
.specs dd a { color: var(--ink); text-decoration-color: var(--line); }
.copy { margin-left: 8px; background: transparent; border: 1px solid var(--line); font-size: 11px; padding: 2px 8px; cursor: pointer; color: var(--ink-soft); font-family: var(--font-body); }
.buy { display: grid; gap: 10px; }
.note { font-size: 13px; color: var(--ink-soft); border-left: 3px solid var(--burgundy); padding: 4px 0 4px 12px; margin: 18px 0; }
.notice { background: var(--surface-2); padding: 14px 16px; margin-bottom: 12px; border-left: 3px solid var(--ink-soft); }
.description { margin-top: 8px; }
.description h2 { font-size: 18px !important; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.info-grid a { background: var(--surface); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.info-grid strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.info-grid span { color: var(--ink-soft); font-size: 12px; }
.info-grid a:hover { background: var(--surface-2); }

/* ---------- prose / info pages ---------- */
.prose { max-width: 70ch; }
.prose p, .prose li { line-height: 1.7; color: var(--ink); }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; margin: 28px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--burgundy); }
.prose a { color: var(--burgundy); }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 60ch; }
.info-page { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-block: 14px 56px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--burgundy); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 130px; }
.contact-card h2 { font-family: var(--font-display); text-transform: uppercase; margin: 0; font-size: 20px; }
.contact-card p { margin: 0 0 6px; color: var(--ink-soft); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; margin: 0 0 12px; letter-spacing: .02em; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); margin: 20px 0 24px; }
.contact-grid.two { grid-template-columns: 1fr 1fr; background: none; border: 0; gap: 18px; margin-top: 0; }
.contact-grid.two .panel { margin: 0; }
.contact-tile { background: var(--surface); padding: 24px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.contact-tile svg { color: var(--burgundy); }
.contact-tile strong { font-size: 16px; word-break: break-word; }
.contact-tile span { color: var(--ink-soft); font-size: 13px; }
.contact-tile:hover { background: var(--surface-2); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { color: var(--ink-soft); }
.socials a:hover { color: var(--burgundy); }

/* ---------- basket & forms ---------- */
.basket { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding-block: 14px 56px; align-items: start; }
.basket-items { display: flex; flex-direction: column; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.basket-items > p, .basket-items > .empty { margin: 0; background: var(--surface); padding: 24px; border: 0; }
.bitem { background: var(--surface); display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px; align-items: center; }
.bitem img, .bitem .bph { width: 84px; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); }
.bitem a { text-decoration: none; font-weight: 600; }
.bitem .meta { font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono); }
.bitem .warn { color: var(--warn); font-size: 12.5px; }
.bitem-side { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.bitem-side .price { font-family: var(--font-mono); color: var(--burgundy); font-weight: 600; }
.qty { display: flex; border: 1px solid var(--line); }
.qty button { background: transparent; border: 0; width: 30px; height: 30px; cursor: pointer; }
.qty span { min-width: 28px; display: grid; place-items: center; font-family: var(--font-mono); }
.basket-form { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 130px; margin: 0; }
.basket-form p { margin: 0; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.basket-total strong { font-family: var(--font-mono); font-size: 22px; color: var(--burgundy); }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.sell-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; font-weight: 600; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,.35); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: var(--burgundy); font-weight: 700; }
.form-error { color: var(--burgundy); font-weight: 600; margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; padding-block: 40px 24px; color: var(--ink-soft); font-size: 13.5px; }
.fcol { display: flex; flex-direction: column; gap: 8px; }
.fcol h4 { margin: 0 0 4px; color: var(--ink); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 13.5px; letter-spacing: .03em; }
.fcol a { text-decoration: none; }
.fcol a:hover { color: var(--ink); }
.legal { font-size: 11.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-block: 16px 24px; margin: 0; }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); z-index: 40; transition: transform .15s; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards, .results .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .phone-btn span { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 16px; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .header-in { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .menu-btn { display: inline-flex; }
  .logo { flex: 1; font-size: 17px; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .phone-btn { width: 42px; height: 42px; padding: 0; }
  .mainnav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-block: 0 12px; }
  .mainnav.open { display: flex; }
  .mainnav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mainnav-cats { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  .mainnav-cats a { border: 1px solid var(--line); padding: 6px 10px; text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 13px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 34px 0 30px; }
  .hero-stock { border-left: none; border-top: 1px solid var(--line); padding: 28px 0 32px; }
  .hero-actions .cta-btn { flex: 1; }
  .section { padding-block: 38px; }
  .cards, .results .cards { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 10px 10px 12px; }
  .card-title { font-size: 13.5px; }
  .card-price { font-size: 14.5px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat { padding: 18px 8px; font-size: 12px; }
  .trust, .steps { grid-template-columns: repeat(2, 1fr); }
  .sell-strip { grid-template-columns: 1fr; text-align: center; border-left: none; border-top: 4px solid var(--burgundy); padding: 32px 20px; }
  .sell-strip .ctawrap { text-align: center; }
  .sell-strip p { margin-inline: auto; }
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .help-box { display: none; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; margin-inline: -16px; }
  .gallery-main { border-inline: 0; }
  .gallery-thumbs { padding-inline: 16px; }
  .info-page, .basket { grid-template-columns: 1fr; gap: 20px; }
  .contact-card, .basket-form { position: static; }
  .contact-grid, .contact-grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .fcol:first-child { grid-column: 1 / -1; }
  .row3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 110px 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .bitem { grid-template-columns: 64px 1fr; }
  .bitem img, .bitem .bph { width: 64px; }
  .bitem-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-search .cta-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
