/* =========================================================
   AutoDalis — modern minimalist theme
   ========================================================= */

:root {
  /* Soft charcoal ink family — used for dark surfaces (header, hero, footer).
     Deliberately not pure black: a faint warm-grey undertone reads as chosen,
     not just "#000". Text on dark uses --cream, not pure #fff, for the same reason. */
  --ink: #131217;
  --ink-soft: #1b1a1f;
  --ink-elevated: #221f26;
  --ink-line: rgba(255,255,255,.07);
  --ink-line-strong: rgba(255,255,255,.14);
  --cream: #f3eee7;
  --cream-dim: rgba(243,238,231,.58);
  --cream-faint: rgba(243,238,231,.36);
  --paper: #ffffff;
  --paper-soft: #f7f6f4;
  --page-bg: #f2f1ee;
  --accent: #eb7a33;
  --accent-dark: #c8631f;
  --accent-soft: #fdefe4;
  --muted: #63636a;
  --muted-light: #98979c;
  --border: #e8e7e3;
  --border-strong: #dcdbd6;
  --danger: #dc2626;
  --success: #157a45;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  /* Warm-tinted, layered, low shadows — a hair of brown/orange in the ink so
     elevation reads considered, not the flat cool-grey of a default UI kit. */
  --shadow-sm: 0 1px 2px rgba(46,34,22,.05), 0 4px 12px -4px rgba(46,34,22,.06);
  --shadow-md: 0 2px 4px rgba(46,34,22,.04), 0 14px 32px -12px rgba(46,34,22,.14);
  --shadow-lg: 0 4px 8px rgba(46,34,22,.04), 0 32px 64px -24px rgba(46,34,22,.20);
  --ff-display: 'Space Grotesk', 'Inter', sans-serif;
  --ff-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--ff-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-weight: 700; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; }
::selection { background: var(--accent); color: #fff; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
img { max-width: 100%; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,.7,.2,1), transform .8s cubic-bezier(.16,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Orchestrated hero entrance — each element resolves a beat after the last. */
.hero3-eyebrow.reveal { transition-delay: .02s; }
.hero3-inner h1.reveal, .hero-split-title.reveal { transition-delay: .09s; }
.hero3-sub.reveal, .hero-split-sub.reveal { transition-delay: .17s; }
.oemsearch.reveal { transition-delay: .25s; }
.hero-split-right.reveal { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Above-the-fold HERO animates on page load (CSS only), so it never flashes
   blank while waiting for the IntersectionObserver. Below-the-fold sections
   keep the JS .is-visible scroll-reveal. */
@keyframes heroReveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero3-eyebrow.reveal, .hero-split-title.reveal, .hero3-inner h1.reveal,
.hero3-sub.reveal, .hero-split-sub.reveal, .oemsearch.reveal, .hero-split-right.reveal {
  animation: heroReveal .8s cubic-bezier(.16,.7,.2,1) both;
}
.hero3-eyebrow.reveal { animation-delay: .02s; }
.hero-split-title.reveal, .hero3-inner h1.reveal { animation-delay: .09s; }
.hero3-sub.reveal, .hero-split-sub.reveal { animation-delay: .17s; }
.oemsearch.reveal { animation-delay: .25s; }
.hero-split-right.reveal { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .hero3-eyebrow.reveal, .hero-split-title.reveal, .hero3-inner h1.reveal,
  .hero3-sub.reveal, .hero-split-sub.reveal, .oemsearch.reveal, .hero-split-right.reveal { animation: none; }
}

/* Eyebrow label */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.eyebrow-light { color: #ffb088; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--paper-soft); color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--border); }
.announce-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; letter-spacing: .01em; gap: 20px; }
.announce-call { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.announce-center { flex: 1; text-align: center; }
.announce-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.announce-right svg { opacity: .7; }
.announce-business { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--border); }
.announce a { color: var(--muted); }
.announce a:hover { color: var(--ink); }
@media (max-width: 860px) { .announce-call, .announce-right span:not(.announce-business) { display: none; } .announce-inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 34px; height: 80px; }
.logo { font-family: var(--ff-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--accent); }

.mainnav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; }
.nav-link { color: var(--muted); position: relative; padding: 6px 0; }
.nav-link.active, .nav-link:hover { color: var(--ink); }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-dropdown { position: relative; cursor: pointer; }
.nav-dropdown .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-panel {
  display: none; position: absolute; top: 130%; left: -14px; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; min-width: 260px; z-index: 20;
  grid-template-columns: 1fr 1fr; gap: 2px;
}
.nav-dropdown:hover .dropdown-panel { display: grid; }
.dropdown-panel a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; color: var(--ink); }
.dropdown-panel a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Brand logo chips: real manufacturer logos normalized to a uniform square
   canvas, shown identically sized on a white chip (see views/components.js). */
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 999px; font-weight: 800; font-family: var(--ff-display, inherit); letter-spacing: -0.02em;
  line-height: 1; vertical-align: middle;
}
h1 .brand-logo, .catalog-main h1 .brand-logo { margin-right: 14px; }
.admin-table .brand-logo { display: flex; }
.brand-logo-img { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8%; box-sizing: border-box; }
.brand-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Neutral emblem for a brand without a logo file — never a lettered circle. */
.brand-logo-generic { color: var(--muted, #9aa0a6); }
.brand-logo-generic svg { display: block; margin: auto; }

.header-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; max-width: 380px; margin-left: auto; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 999px; padding: 9px 17px; color: var(--muted); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.header-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.header-search input { flex: 1; border: none; background: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink); }
.header-search input::placeholder { color: var(--muted-light); }
.header-search svg { flex-shrink: 0; opacity: .6; transition: opacity .18s ease, color .18s ease; }
.header-search:focus-within svg { opacity: 1; color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 0 8px; color: var(--muted); }
.lang-switch .lang-link { color: var(--muted); }
.lang-switch .lang-link.active { color: var(--ink); }
.lang-switch .lang-sep { color: var(--muted-light); }
.mobile-panel .lang-switch { padding: 10px 0 0; font-size: 14px; }
.icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); }
.icon-btn:hover { background: var(--paper-soft); }
.cart-dot { position: absolute; top: 2px; right: 2px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--paper); }
.cart-dot-pop { animation: cartDotPop .35s ease; }
@keyframes cartDotPop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
/* Add-to-cart inline success state (any add-to-cart button, JS-driven) */
.btn.is-added, button.is-added { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }
.is-adding { opacity: .75; cursor: default; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 34px; height: 34px; border: none; background: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-search { display: flex; align-items: center; gap: 8px; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; margin-bottom: 10px; }
.mobile-search input { flex: 1; border: none; background: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink); }
.mobile-search svg { flex-shrink: 0; color: var(--muted); }
.mobile-search button { border: none; background: none; padding: 0; display: flex; color: var(--muted); cursor: pointer; }
.mobile-panel { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--paper); border-top: 1px solid var(--border); }
.mobile-panel.is-open { display: flex; }
.mobile-panel .nav-link { padding: 10px 0; font-size: 15px; color: var(--ink); }
.mobile-panel .lang-switch, .mobile-panel .lang-switch .lang-link { color: var(--muted); }
.mobile-panel .lang-switch .lang-link.active { color: var(--accent); }
.mobile-panel-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mobile-panel-brands a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }

/* ---------- Mono / technical type accent ---------- */
.mono-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }

/* ---------- Hero 3 — the search console is the product ---------- */
.hero3 { background: var(--page-bg); padding: 84px 32px 76px; text-align: center; position: relative; overflow: hidden; }
.hero3-inner { position: relative; z-index: 1; }
.hero3-eyebrow {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 20px;
}
.hero3-inner h1 {
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; color: var(--ink); margin: 0 auto 20px;
  letter-spacing: -0.038em; line-height: 1.04; max-width: 16ch; text-wrap: balance;
}
.hero3-inner h1 span { color: var(--accent); }
.hero3-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 552px; margin: 0 auto 40px; text-wrap: balance; }

/* A single, very soft warm wash behind the search — just enough to lift the
   card off the page, no line-art or hard glow competing for attention. */
.hero3-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero3-glow {
  position: absolute; top: 52%; left: 50%; width: 1080px; height: 720px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(235,122,51,.10) 0%, rgba(235,122,51,.035) 38%, transparent 68%);
}

/* ============================================================
   Hero (split) — search left, live European supplier network
   right, price-ledger proof below. The platform's front door.
   ============================================================ */
.hero-split { background: var(--page-bg); padding: 100px 32px 76px; position: relative; overflow: hidden; }
.hero-split-inner { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 68px; align-items: center; }
.hero-split-left { text-align: left; min-width: 0; }
.hero-split-left .hero3-eyebrow { margin-bottom: 24px; }
.hero-split-title { font-size: clamp(36px, 3.9vw, 53px); font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1.06; margin: 0 0 26px; }
.hero-split-title span { color: var(--accent); }
.hero-split-sub { font-size: 18px; line-height: 1.62; color: var(--muted); max-width: 40ch; margin: 0 0 44px; }
.hero-split-left .oemsearch { margin: 0; max-width: 640px; }
.hero-split-left .oemsearch-brands { justify-content: flex-start; }

/* right — live OEM result card: one code → every supplier compared by stock,
   delivery and price. The product itself, not decoration. Search stays hero. */
.hero-split-right { display: flex; align-items: center; justify-content: center; }
.hero-result { width: 100%; max-width: 330px; margin-left: auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.hero-result-top { padding: 17px 19px 15px; border-bottom: 1px solid var(--border); }
.hr-eyebrow { display: block; font-family: var(--ff-mono); font-size: 9px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 10px; }
.hr-code { font-family: var(--ff-mono); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.hr-name { font-size: 12px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hr-brand { font-family: var(--ff-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .06em; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--ink); }
.hero-result-cols { display: grid; grid-template-columns: 1fr auto 66px; gap: 8px; padding: 11px 19px 7px; }
.hero-result-cols span { font-family: var(--ff-mono); font-size: 8.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.hr-col-price { text-align: right; }
.hr-row { display: grid; grid-template-columns: 1fr auto 66px; gap: 8px; align-items: center; padding: 11px 19px; border-top: 1px solid var(--border); }
.hr-row.best { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.hr-sup { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hr-sup-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hr-sup-name { font-size: 12.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hr-best { font-family: var(--ff-mono); font-size: 7.5px; font-weight: 700; letter-spacing: .05em; color: var(--accent-dark); background: #fff; border: 1px solid rgba(224,122,63,.35); border-radius: 4px; padding: 2px 5px; }
.hr-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.hr-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.hr-status.in { color: var(--success); }
.hr-status.in::before { background: var(--success); }
.hr-status.order { color: #b4790a; }
.hr-status.order::before { background: #e0932a; }
.hr-dl { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-price { font-family: var(--ff-mono); font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: right; letter-spacing: -0.01em; white-space: nowrap; }
.hr-price-best { color: var(--accent-dark); }
.hero-result-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 19px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--accent-dark); transition: gap .2s ease, background .15s ease; }
.hero-result-more:hover { gap: 10px; background: var(--paper-soft); }

/* Split-hero responsive */
@media (max-width: 1080px) {
  .hero-split { padding: 76px 28px 60px; }
  .hero-split-inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
}
@media (max-width: 900px) {
  .hero-split { padding: 48px 24px 44px; }
  .hero-split-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-split-left { order: 1; }
  .hero-split-right { order: 2; justify-content: flex-start; }
  .hero-result { margin: 0; max-width: 380px; }
  .hero-split-title { font-size: clamp(32px, 7vw, 44px); }
  .hero-split-sub { font-size: 16px; margin-bottom: 32px; }
}
@media (max-width: 640px) {
  .hero-result { max-width: 100%; }
}

.search-console {
  max-width: 984px; margin: 0 auto; background: var(--paper); border-radius: 26px; padding: 38px 44px 0;
  box-shadow: 0 2px 6px rgba(30,25,20,.04), 0 40px 70px -30px rgba(30,25,20,.2), inset 0 0 0 1px var(--border);
  text-align: left;
}
.sc-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 16px; }
/* The OEM search bar is the single most important control on the page --
   sized and weighted to read as the obvious first action, with the
   manufacturer chips below deliberately muted so they don't compete. */
.sc-form {
  display: flex; align-items: center; gap: 14px; background: var(--paper-soft); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 8px 8px 8px 26px; height: 86px;
  transition: border-color .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s cubic-bezier(.2,.7,.3,1), background .25s ease, transform .25s cubic-bezier(.2,.7,.3,1);
}
.sc-form:focus-within {
  border-color: var(--accent); background: var(--paper); transform: translateY(-1px);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 18px 34px -16px rgba(235,122,51,.4);
}
.sc-form svg { flex-shrink: 0; color: var(--muted-light); width: 24px; height: 24px; transition: color .2s ease, transform .2s ease; }
.sc-form:focus-within svg { color: var(--accent); transform: scale(1.08); }
.sc-form input { flex: 1; border: none; outline: none; background: none; font-size: 21px; font-weight: 500; font-family: inherit; color: var(--ink); min-width: 0; }
.sc-form input::placeholder { color: var(--muted-light); font-weight: 400; }
.sc-form button {
  border: none; background: linear-gradient(155deg, var(--accent) 0%, var(--accent-dark) 130%); color: #fff; padding: 0 42px; height: 70px;
  border-radius: 14px; font-weight: 700; font-size: 16.5px; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 16px 30px -10px rgba(224,122,63,.55); transition: box-shadow .2s ease, transform .15s cubic-bezier(.2,.7,.3,1); will-change: transform;
}
.sc-form button:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 22px 38px -10px rgba(224,122,63,.6); }
.sc-form button:active { transform: translateY(0) scale(.98); box-shadow: 0 8px 18px -8px rgba(224,122,63,.5); }

.sc-examples { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; opacity: .8; }
.sc-examples .lbl { font-size: 11.5px; color: var(--muted-light); margin-right: 2px; }
.qp {
  font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .01em; white-space: nowrap;
  border: 0; background: none; box-shadow: none; padding: 0; border-radius: 0;
  transition: color .16s ease;
}
.qp:hover { color: var(--accent-dark); }
.qp-more { color: var(--ink); font-weight: 600; }
.qp-more:hover { color: var(--accent-dark); }

/* ===== Homepage hero — "Marketplace OS" (Concept C): structured search that
   shows live supplier results. Hairline cards, tabular prices, not bubbly. ===== */
.oemsearch { max-width: 680px; margin: 0 auto; }
.oemsearch-seg { display: inline-flex; gap: 2px; background: rgba(20,18,15,.05); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.oemsearch-seg .seg { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); border: 0; background: none; padding: 8px 20px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.oemsearch-seg .seg:hover { color: var(--ink); }
.oemsearch-seg .seg.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.oemsearch-form {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 11px 11px 11px 24px; box-shadow: 0 2px 8px rgba(46,34,22,.06), 0 44px 80px -36px rgba(46,34,22,.30);
  transition: border-color .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s cubic-bezier(.2,.7,.3,1), transform .22s cubic-bezier(.2,.7,.3,1);
}
.oemsearch-form:focus-within { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 8px rgba(46,34,22,.06), 0 44px 80px -36px rgba(46,34,22,.30); }
.oemsearch-ico { color: var(--muted-light); flex-shrink: 0; width: 22px; height: 22px; transition: color .2s ease; }
.oemsearch-form:focus-within .oemsearch-ico { color: var(--accent); }
/* input[type=text] attribute selector to out-specify the global form-input
   rule (border/padding/radius) further down the sheet — otherwise the hero
   input renders as a boxed field nested inside the search pill. */
.oemsearch-form input[type=text] {
  flex: 1; border: 0; outline: 0; padding: 0; border-radius: 0; box-shadow: none;
  font-family: var(--ff-mono); font-size: 18.5px; font-weight: 500; letter-spacing: .01em;
  background: none; min-width: 0; color: var(--ink);
}
.oemsearch-form input[type=text]:focus { box-shadow: none; }
.oemsearch-form input::placeholder { color: var(--muted-light); font-weight: 400; letter-spacing: 0; }
.oemsearch-form button {
  flex-shrink: 0; background: var(--accent); color: #fff; border: 0; font: inherit; font-weight: 650; font-size: 16px;
  padding: 0 34px; height: 58px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(224,122,63,.55);
  transition: background .18s ease, box-shadow .2s ease, transform .14s cubic-bezier(.2,.7,.3,1);
}
.oemsearch-form button:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(224,122,63,.55); }
.oemsearch-form button:active { transform: translateY(0) scale(.985); box-shadow: 0 5px 12px -6px rgba(224,122,63,.5); }
.oemsearch-results { margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-align: left; box-shadow: var(--shadow-lg); }
.oemsearch-row { display: grid; grid-template-columns: 26px minmax(0,auto) 1fr auto auto; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.oemsearch-row:first-child { border-top: 0; }
.oemsearch-row:hover, .oemsearch-row.active { background: var(--paper-soft, #f6f7f9); }
.oemsearch-row .brand-logo { width: 24px !important; height: 24px !important; }
.oemsearch-code { font-family: var(--ff-mono, monospace); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.oemsearch-name { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oemsearch-meta { color: var(--muted-light); font-size: 11.5px; font-family: var(--ff-mono, monospace); white-space: nowrap; }
.oemsearch-price { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oemsearch-empty { padding: 16px; color: var(--muted); font-size: 13.5px; text-align: center; }
.oemsearch-brands { display: flex; flex-wrap: wrap; gap: 9px 22px; justify-content: flex-start; align-items: center; margin-top: 30px; }
.oemsearch-brands-label { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); margin-right: 2px; }

/* Stats live in their own section below the hero (search stays the sole focus
   of the first screen). Standalone card, no longer bleeding into the console. */
.hero-stats { background: var(--page-bg); padding: 0 32px 60px; }
.sc-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 860px; margin: 0 auto; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.sc-stats div { text-align: center; padding: 21px 12px 19px; border-left: 1px solid var(--border); transition: background .2s ease; }
.sc-stats div:first-child { border-left: none; }
.sc-stats div:hover { background: var(--paper-soft); }
.sc-stat-icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 9px; color: var(--accent); opacity: .8; transition: transform .2s ease; }
.sc-stats div:hover .sc-stat-icon { transform: translateY(-2px); }
.sc-stats b { display: block; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.sc-stats span:not(.sc-stat-icon) { display: block; margin-top: 7px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-light); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 32px; }
.trustbar-inner { display: flex; justify-content: center; gap: 20px 48px; flex-wrap: wrap; }
.trustbar-inner span { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.trustbar-inner i { display: flex; font-style: normal; line-height: 1; flex-shrink: 0; color: var(--accent); }

/* ---------- How it works ---------- */
.steps { background: var(--page-bg); padding: 60px 32px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--paper); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.step-card:hover { transform: translateY(-5px) scale(1.008); box-shadow: var(--shadow-md); border-color: rgba(235,122,51,.28); }
.step-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: background .25s ease, color .25s ease, transform .25s ease;
}
.step-card:hover .step-icon { background: var(--accent); color: #fff; transform: scale(1.08) rotate(-3deg); }
.step-n { display: block; font-family: var(--ff-mono); font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.step-card b { display: block; font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.015em; }
.step-sub { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }

/* Step preview mocks -- small, realistic UI fragments (a search result, a
   supplier comparison, a shipment timeline) instead of plain example text,
   so each card explains the feature rather than just describing it. */
.step-preview { transition: border-color .25s ease; }
.step-preview-search { background: var(--paper-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; transition: border-color .25s ease; }
.preview-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.preview-row-muted { color: var(--muted-light); }
.preview-row-muted svg { flex-shrink: 0; }
.preview-arrow { text-align: center; color: var(--border-strong); font-size: 12px; line-height: 1.8; }
.preview-row-result { font-weight: 700; color: var(--ink); }
.preview-result-brand { background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px; letter-spacing: .03em; margin-right: 2px; }
.preview-result-code { font-family: var(--ff-mono); font-size: 13px; }

.step-preview-compare { display: flex; flex-direction: column; gap: 6px; }
.preview-supplier-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--paper-soft);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; font-size: 12px; transition: border-color .25s ease;
}
.preview-supplier-name { font-weight: 700; color: var(--ink); font-size: 11.5px; }
.preview-supplier-price { font-family: var(--ff-mono); font-weight: 700; color: var(--accent-dark); }
.preview-supplier-days { color: var(--muted); font-size: 10.5px; white-space: nowrap; }

.step-preview-timeline { background: var(--paper-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.preview-timeline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.preview-timeline-node { background: var(--paper); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.preview-timeline-node-mid { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.preview-timeline-arrow { color: var(--border-strong); font-size: 13px; }
.preview-timeline-note { font-size: 11px; line-height: 1.55; color: var(--muted); margin: 0; }

.step-card:hover .step-preview-search,
.step-card:hover .preview-supplier-row,
.step-card:hover .step-preview-timeline { border-color: rgba(235,122,51,.25); }

/* ---------- Sections ---------- */
.section { padding: 112px 32px; }
.section-title { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; }
.section-sub { color: var(--muted); margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 20px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; font-size: 14.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease, color .2s ease; }
.link-arrow:hover { color: var(--accent); gap: 10px; }
.link-arrow-light { color: var(--muted); }
.link-arrow-light:hover { color: var(--accent); }

/* ---------- Brand wall — real manufacturer logos, a scale/trust signal ---------- */
.brand-index { background: var(--paper); padding: 60px 32px; }
.console-head { margin-bottom: 30px; }
.console-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.console-title { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.console-sub { color: var(--muted); margin-top: 10px; max-width: 480px; font-size: 15px; }

.brand-wall { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
/* Hairline grid lines via each tile (right+bottom) so an incomplete last row
   leaves WHITE space, not the grey grid background. */
.brand-wall-tile { box-shadow: inset -1px -1px 0 var(--border); }
.brand-wall-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); padding: 22px 8px; font-family: var(--ff-display); font-weight: 600; font-size: 11px;
  color: var(--muted); text-align: center; position: relative; z-index: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.brand-wall-tile:hover {
  background: var(--accent-soft); color: var(--accent-dark); transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 26px -14px rgba(235,122,51,.4); z-index: 1; border-radius: 10px;
}
.brand-wall-tile .brand-logo { transition: transform .2s ease; }
.brand-wall-tile:hover .brand-logo { transform: scale(1.1); }

/* ---------- Editorial statement — a single confident moment ---------- */
.editorial { background: var(--page-bg); position: relative; padding: 60px 32px; overflow: hidden; }
.editorial-inner { position: relative; z-index: 1; max-width: 780px; }
.editorial-title { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.16; color: var(--ink); margin: 0 0 18px; }
.editorial-sub { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 560px; margin: 0 0 30px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; cursor: pointer; border: none; font-size: 14.5px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-light:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-large { padding: 16px 28px; font-size: 15.5px; width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.icon-btn-sm { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--paper); color: var(--muted); cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.icon-btn-sm:hover { border-color: var(--danger); color: var(--danger); background: #fef2f2; }
.btn-mini { padding: 6px 12px; font-size: 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; }
.btn-mini:hover { border-color: var(--ink); }
/* .btn-mini's white background would otherwise win the cascade over
   .btn-primary's background while leaving its white text untouched,
   rendering "Add to cart" invisible (white text on white button). */
.btn-mini.btn-primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn-mini.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); }

/* ---------- FAQ ---------- */
.faq-accordion { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; font-size: 16px; font-weight: 600;
  font-family: var(--ff-display); display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--ink);
}
.faq-question:hover { color: var(--accent); }
.faq-icon { font-size: 20px; font-weight: 400; color: var(--accent); transition: transform .25s ease; flex-shrink: 0; }
.faq-question.is-active .faq-icon { transform: rotate(135deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); padding: 0 4px; }
.faq-answer p { padding-bottom: 20px; max-width: 640px; }
.faq-answer.open { max-height: 400px; }

.faq-dark { background: var(--paper); padding: 60px 32px; }

/* ---------- Business CTA — an elevated white card, not a full-bleed band ---------- */
.business-cta { background: var(--page-bg); padding: 60px 32px; }
.business-cta-inner {
  max-width: 1240px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(30,25,20,.03), 0 30px 60px -30px rgba(30,25,20,.2);
  padding: 56px 64px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.business-cta h2 { font-size: 36px; letter-spacing: -0.03em; margin-bottom: 12px; color: var(--ink); }
.business-cta p { color: var(--muted); max-width: 420px; font-size: 15.5px; }
.business-cta-text { position: relative; z-index: 1; }
.business-cta-inner .btn { position: relative; z-index: 1; }
/* Abstract technical-diagram graphic on the right -- a network of connected
   parts nodes, echoing the site's own "multi-supplier network" pitch rather
   than a generic stock illustration. Ink/accent only, no extra colors. */
.business-cta-graphic { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 380px; height: 260px; color: var(--ink); opacity: .07; pointer-events: none; z-index: 0; }
@media (max-width: 900px) { .business-cta-graphic { display: none; } }

.search-page-form { display: flex; align-items: center; gap: 10px; max-width: 520px; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 20px; margin: 24px 0 32px; }
.search-page-form svg { color: var(--muted); flex-shrink: 0; }
.search-page-form input { flex: 1; border: none; background: none; outline: none; font-size: 14.5px; padding: 10px 0; font-family: inherit; }
.search-page-form button { border: none; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 14px; transition: background .2s ease; }
.search-page-form button:hover { background: var(--accent); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 20px 24px 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Brand/catalog layout ---------- */
.brand-layout { display: flex; gap: 40px; padding: 24px 24px 80px; align-items: flex-start; }
.filters { width: 240px; flex-shrink: 0; background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.filters h3 { font-family: var(--ff-display); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-light); margin-bottom: 12px; }
.filter-link { display: flex; align-items: center; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--muted); transition: background .15s ease, color .15s ease; }
.filter-link.active, .filter-link:hover { color: var(--ink); background: var(--paper-soft); }
.filter-link.active { color: var(--accent-dark); font-weight: 700; background: var(--accent-soft); }
.catalog-main { flex: 1; }
.catalog-main h1 { font-size: 32px; margin-bottom: 6px; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* A grid with only 1-3 items (e.g. "related products") shouldn't stretch across
   all 4 tracks and leave a lopsided empty gap — cap it to the real item count. */
.product-grid:has(> :nth-child(1):last-child) { grid-template-columns: minmax(0, 260px); }
.product-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 260px)); }
.product-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 260px)); }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--border-strong); }
.product-thumb { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; background: var(--paper-soft); transition: transform .15s ease; will-change: transform; }
/* Admin-uploaded product photo (background removed, composited on white by
   lib/productPhoto.js) — sized to fill whichever thumb container it's in. */
.product-photo-img { width: 100%; height: 100%; object-fit: contain; padding: 14px; display: block; }
.oem-thumb .product-photo-img, .product-detail-thumb .product-photo-img { padding: 8px; }
.thumb-initials { font-size: 32px; font-weight: 800; opacity: .55; font-family: var(--ff-display); }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge-discontinued { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.deposit-note { display: inline-block; font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.product-replacement-notice { background: var(--paper-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; margin: 12px 0; }
.product-replacement-notice a { font-weight: 600; margin-left: 4px; }
.product-info { padding: 16px 18px 20px; }
.product-cat { font-size: 11px; text-transform: uppercase; color: var(--muted-light); letter-spacing: .06em; margin-bottom: 6px; font-weight: 600; }
.product-name { font-weight: 700; font-size: 14.5px; line-height: 19px; margin-bottom: 6px; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-code { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.product-price { margin-bottom: 8px; }
.old-price { text-decoration: line-through; color: var(--muted-light); font-size: 13px; margin-right: 8px; }
.price { font-weight: 700; font-size: 18px; color: var(--accent); font-family: var(--ff-display); }
.product-stock { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.product-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.in-stock { color: var(--success); }
.in-stock::before { background: var(--success); }
/* Prominent in-stock pill on the product detail page (own warehouse = fast). */
.product-stock.in-stock { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(21,122,69,.10); font-size: 12.5px; font-weight: 700; }
.product-stock.in-stock::before { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(21,122,69,.15); }
.out-stock { color: #b45309; }
.out-stock::before { background: #b45309; }

/* ---------- Inline supplier offers preview (search result cards) ---------- */
.card-offers { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.card-offers-head { margin-bottom: 6px; }
.card-offers-count { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-light); }
.card-offers-list { display: flex; flex-direction: column; gap: 4px; }
.card-offer-row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 8px; font-size: 12.5px; }
.card-offer-row:first-child .card-offer-price { color: var(--success); }
.card-offer-supplier { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-offer-delivery { color: var(--muted-light); font-size: 11.5px; white-space: nowrap; }
.card-offer-price { font-weight: 700; font-family: var(--ff-display); white-space: nowrap; }
.card-offers-more { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.pagination-btn { padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 14px; }
.pagination-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination-btn.disabled { opacity: .4; pointer-events: none; }
.pagination-jump { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pagination-jump input[type=number] { width: 70px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.pagination-jump button { border: none; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.pagination-jump button:hover { background: var(--accent); }

/* ---------- Product detail ---------- */
.product-detail { display: flex; gap: 64px; padding: 40px 32px 72px; }
.product-detail-thumb-wrap { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.product-detail-thumb { width: 400px; height: 360px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; will-change: transform; background: var(--paper); box-shadow: var(--shadow-sm); }
.product-detail-thumb .brand-logo-img { padding: 26px; border-radius: var(--radius-lg); box-shadow: none; border: none; }
.thumb-initials-lg { font-size: 68px; font-weight: 800; opacity: .55; font-family: var(--ff-display); }
.product-detail-info { flex: 1; }

/* ---------- Product photo gallery + lightbox ---------- */
.product-photo-img.gallery-main-img { cursor: zoom-in; }
.gallery-zoom-hint {
  position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 15px; color: var(--ink); transition: background .15s ease, transform .15s ease;
}
.gallery-zoom-hint:hover { background: #fff; transform: scale(1.08); }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink);
}
.gallery-arrow:hover { background: #fff; }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--paper); padding: 4px; cursor: pointer; overflow: hidden; flex-shrink: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb:hover { border-color: var(--border-strong); }

.photo-lightbox { position: fixed; inset: 0; background: rgba(10,9,12,.92); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px; }
.photo-lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); background: #fff; user-select: none; -webkit-user-drag: none; }
.lightbox-close, .lightbox-arrow { border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255,255,255,.22); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 26px; }
.lightbox-arrow-prev { left: 20px; }
.lightbox-arrow-next { right: 20px; }
.product-detail-info h1 { margin: 8px 0 12px; font-size: 30px; }
.product-detail-price { margin: 18px 0; }
.product-detail-price .price { font-size: 30px; }
.product-desc { color: var(--muted); margin: 18px 0 28px; max-width: 520px; font-size: 15px; }
.add-to-cart-form { display: flex; align-items: center; gap: 18px; }
.qty-input { width: 74px; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-left: 8px; font-family: inherit; }
.price-from { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.product-detail-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wishlist-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .15s ease;
}
.wishlist-toggle-btn:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.wishlist-toggle-btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.wishlist-toggle-btn.is-active svg { fill: var(--accent); }

/* ---------- Multi-supplier offers table ---------- */
.offers-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.offers-sort-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.offers-sort-form select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; }
.offers-table-wrap { overflow-x: auto; }
.offers-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.offers-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-light); padding: 0 10px 12px; font-weight: 600; }
.offers-table td { padding: 14px 10px; border-top: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: middle; }
.offers-table td .in-stock, .offers-table td .out-stock { font-size: 12.5px; font-weight: 600; }
.offer-row-unavailable { opacity: .55; }
.offer-row-warehouse { background: #f2faf5; }
.offer-row-warehouse td:first-child { box-shadow: inset 3px 0 0 var(--success); }
.offer-add-form { display: flex; align-items: center; gap: 8px; }
.offer-unavailable-label { color: var(--muted); font-size: 13px; }

/* Mobile: the 7-column supplier comparison table doesn't fit — turn each offer
   row into a self-contained card (supplier heading + labelled rows + full-width
   buy button) so price and "add to cart" are always visible, no side-scroll. */
@media (max-width: 700px) {
  .offers-table-wrap { overflow-x: visible; }
  .offers-table { min-width: 0; }
  .offers-table, .offers-table tbody, .offers-table tr, .offers-table td { display: block; width: 100%; }
  .offers-table thead { display: none; }
  .offers-table tr { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
  .offers-table td { border: none; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; text-align: right; }
  .offers-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .offers-table td.offer-cell-num { display: none; }
  .offer-cell-supplier { font-size: 16px; font-weight: 800; color: var(--ink); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); justify-content: flex-start; }
  .offer-cell-supplier::before { display: none; }
  .offer-cell-price { font-size: 18px; font-weight: 800; color: var(--ink); }
  .offer-cell-action { display: block; margin-top: 12px; padding-top: 0; }
  .offer-cell-action::before { display: none; }
  .offer-add-form { width: 100%; }
  .offer-add-form .btn-mini { flex: 1; padding: 12px 16px; font-size: 15px; }
  .qty-input-sm { width: 64px; padding: 12px 8px; }
}
.qty-input-sm { width: 68px; padding: 8px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; text-align: center; }

/* ---------- Search: exact OEM code match ---------- */
/* A deliberately different register from the rest of the shop: a shopper who
   searched an exact OEM code already knows what they want, so this page skips
   the hero/description/gallery pattern entirely and gets straight to a compact
   header + a stack of supplier offer cards they can buy from immediately. */
.oem-page { background: var(--paper); padding-bottom: 64px; }

.oem-header { display: flex; align-items: flex-start; gap: 20px; padding: 28px 32px 26px; border-bottom: 1px solid var(--border); }
.oem-thumb { position: relative; flex-shrink: 0; width: 72px; height: 72px; border-radius: var(--radius); background: var(--paper-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.oem-info { flex: 1; min-width: 0; }
.oem-eyebrow { margin-bottom: 6px; }
.oem-title { font-size: 26px; margin-bottom: 4px; }
.oem-subtitle { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.oem-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.oem-meta strong { color: var(--ink); font-family: var(--ff-display); font-weight: 700; }
.oem-meta-label { color: var(--muted); }
.oem-meta-dot { color: var(--border-strong); }
.oem-meta-warehouse { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-weight: 700; }
.oem-detail-link { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.oem-detail-link:hover { color: var(--accent); }

.oem-offers { padding: 28px 32px 0; }
.oem-offers-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.oem-offers-head h2 { font-size: 19px; }

.sort-toggle { display: inline-flex; align-items: center; gap: 2px; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.sort-toggle-btn { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sort-toggle-btn:hover { color: var(--ink); }
.sort-toggle-btn.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

.offer-cards { display: flex; flex-direction: column; gap: 12px; }
.offer-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.offer-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.offer-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.offer-card-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.offer-card-best:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.offer-card-warehouse:hover { box-shadow: 0 0 0 1px var(--success), var(--shadow-md); }
.offer-card-warehouse { border-color: var(--success); background: #f2faf5; box-shadow: 0 0 0 1px var(--success), var(--shadow-sm); }
.offer-card-unavailable { opacity: .5; }
.offer-card-unavailable:hover { transform: none; box-shadow: var(--shadow-sm); }

.offer-card-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.offer-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer-card-supplier { font-family: var(--ff-display); font-weight: 700; font-size: 16.5px; }
.offer-card-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.offer-badge svg { flex-shrink: 0; opacity: .85; }
.offer-badge-best { background: var(--accent); color: #fff; }
.offer-badge-warehouse { background: var(--success); color: #fff; }
.offer-badge-delivery { background: var(--paper-soft); color: var(--muted); border: 1px solid var(--border); }
.offer-badge-stock-in { background: #eaf7ef; color: var(--success); }
.offer-badge-stock-out { background: #fdf2e3; color: #a3660b; }
.offer-badge-moq { background: var(--paper-soft); color: var(--muted); border: 1px solid var(--border); }

.offer-card-action { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.offer-card-price { font-family: var(--ff-display); font-weight: 700; font-size: 21px; min-width: 84px; text-align: right; }
.offer-card-form { display: flex; align-items: center; gap: 12px; }
.qty-stepper { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-step { width: 34px; height: 100%; display: flex; align-items: center; justify-content: center; background: none; border: none; font-size: 16px; line-height: 1; color: var(--ink); cursor: pointer; }
.qty-step:hover { background: var(--accent-soft); color: var(--accent-dark); }
.qty-stepper-input { width: 48px; height: 100%; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-weight: 700; font-size: 14px; font-family: inherit; -moz-appearance: textfield; }
.qty-stepper-input::-webkit-outer-spin-button, .qty-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-cart { display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border: none; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-cart:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

@media (max-width: 700px) {
  .oem-header { padding: 22px 20px 20px; gap: 14px; }
  .oem-thumb { width: 56px; height: 56px; }
  .oem-title { font-size: 21px; }
  .oem-detail-link { display: none; }
  .oem-offers { padding: 22px 20px 0; }
  .offer-card { padding: 16px 18px; }
  .offer-card-action { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .offer-card-price { text-align: left; font-size: 19px; }
  .offer-card-form { width: 100%; }
  .btn-cart { flex: 1; }
}

/* ---------- Cart (order-history table on the account page reuses .cart-table) ---------- */
.cart-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-light); padding: 16px 10px 12px; font-weight: 600; }
.cart-table td { padding: 16px 10px; border-top: 1px solid var(--border); text-align: left; font-size: 14px; }
.cart-table tr:last-child td { border-bottom: none; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 18px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 20px;
}
.cart-line-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--paper-soft); flex-shrink: 0; }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line-name { font-weight: 700; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-name:hover { color: var(--accent-dark); }
.cart-line-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted-light); }
.cart-line-supplier { color: var(--muted); }
.cart-line-deposit { font-size: 12px; color: var(--muted-light); }
.cart-line-price { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-update { border: none; background: none; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; }
.cart-line-update:hover { color: var(--accent-dark); }
.cart-line-total { font-size: 15.5px; font-weight: 700; font-family: var(--ff-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-line-remove { display: flex; }
.cart-line-remove-btn { border: 1px solid var(--border); background: var(--paper); width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--muted-light); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.cart-line-remove-btn:hover { border-color: #e0827a; color: #c23b2f; background: #fdf0ef; }

.cart-summary-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px 24px; position: sticky; top: 104px; }
.cart-summary-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-light); margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 9px 0; }
.cart-summary-row span:first-child { color: var(--muted); }
.cart-summary-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-summary-discount span:last-child { color: #0d8a4e; }
.cart-discount-code { color: var(--ink); font-weight: 700; }
.cart-discount-toggle { margin: 8px 0 10px; }
.cart-discount-toggle summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--accent-dark); display: flex; align-items: center; gap: 6px; transition: color .15s ease; }
.cart-discount-toggle summary::-webkit-details-marker { display: none; }
.cart-discount-toggle summary::before { content: '+'; font-size: 15px; line-height: 1; color: var(--muted-light); transition: transform .2s ease; }
.cart-discount-toggle[open] summary::before { content: '−'; }
.cart-discount-toggle summary:hover { color: var(--accent); }
.cart-discount-toggle .cart-discount-form { margin-top: 10px; }
.cart-discount-form { display: flex; gap: 8px; margin: 4px 0 10px; }
.cart-discount-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; font-family: inherit; outline: none; }
.cart-discount-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cart-discount-form .btn { padding: 0 16px; font-size: 13px; white-space: nowrap; }
.cart-discount-remove-form { margin: 2px 0 10px; }
.cart-discount-error { font-size: 12.5px; color: #c23b2f; margin: -2px 0 10px; }
.cart-loyalty-form { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 4px 0 10px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.cart-loyalty-note { font-size: 12.5px; color: var(--muted); }
.cart-loyalty-note strong { color: var(--accent-dark); }
.cart-summary-loyalty span:last-child { color: #0d8a4e; }
.cart-summary-divider { height: 1px; background: var(--border); margin: 6px 0 4px; }
.cart-summary-vat { font-size: 13px; }
.cart-summary-vat span:first-child { color: var(--muted-light); }
.cart-summary-vat span:last-child { color: var(--muted); font-weight: 500; }
.cart-summary-final { font-weight: 700; padding-top: 10px; font-size: 18px; font-family: var(--ff-display); }
.cart-checkout-btn { display: block; width: 100%; text-align: center; margin-top: 18px; }
.cart-trust { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.cart-trust li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.cart-trust li svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Checkout ---------- */
.checkout-layout { display: flex; gap: 48px; padding: 28px 24px 70px; align-items: flex-start; }
.checkout-form { flex: 2; }
.checkout-form h1 { font-size: 28px; margin-bottom: 20px; }
.checkout-form h3 { margin-top: 30px; font-size: 16px; margin-bottom: 12px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row label, .auth-form label { flex: 1; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: var(--muted); gap: 7px; }
.form-row label.full { flex: 1 1 100%; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.radio-group { display: flex; gap: 20px; margin-bottom: 12px; font-size: 14px; flex-wrap: wrap; font-weight: 500; }
.radio-group label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); flex-direction: row !important; }
.checkbox-label input[type=checkbox] { width: auto; }
.pickup-panel { background: var(--paper-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: -4px 0 20px; }
.pickup-select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; margin-top: 6px; }
.pickup-status { margin: 6px 0; }
.pickup-manual { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.order-summary { flex: 1; background: var(--paper); border-radius: var(--radius-lg); padding: 26px 24px; position: sticky; top: 104px; box-shadow: var(--shadow-sm); }
.order-summary h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-light); margin-bottom: 16px; }
.order-summary-items { display: flex; flex-direction: column; margin-bottom: 4px; }
.order-summary-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.order-summary-row span:first-child { flex: 1; min-width: 0; color: var(--muted); }
.order-summary-row span:last-child { flex-shrink: 0; font-weight: 600; }
.order-summary-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 16px; font-size: 17px; font-family: var(--ff-display); }
.order-summary-free { color: #0d8a4e; font-weight: 700; }

/* ---------- Checkout: progress stepper ---------- */
.checkout-steps { display: flex; align-items: flex-start; gap: 6px; padding: 30px 0 6px; max-width: 620px; margin: 0 auto; }
.checkout-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--muted-light); flex-shrink: 0; cursor: pointer; }
.checkout-step-dot { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; background: var(--paper); color: var(--muted-light); transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.checkout-step-label { font-size: 11.5px; font-weight: 600; white-space: nowrap; letter-spacing: .01em; }
.checkout-step.is-done .checkout-step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkout-step.is-done .checkout-step-label { color: var(--ink); }
.checkout-step.is-active .checkout-step-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.checkout-step.is-active .checkout-step-label { color: var(--ink); }
.checkout-step-line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; margin-top: 15px; transition: background .3s ease; }
.checkout-step-line.is-done { background: var(--accent); }

/* ---------- Checkout: panels ---------- */
.checkout-panel { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px 28px; margin-bottom: 20px; transition: box-shadow .2s ease; }
.checkout-panel-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-family: var(--ff-display); margin: 0 0 18px; color: var(--ink); }
.checkout-panel-title svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Checkout: selectable method cards (replace plain radios) ---------- */
/* Full-width stacked rows, not a grid -- Lithuanian delivery/payment labels
   ("Pristatymas į paštomatą", "Montonio — kortelė, bankinis mokėjimas") are
   too long to wrap cleanly in a multi-column card grid at any reasonable
   width, and this is exactly how Stripe/Shopify Checkout lay these out too. */
.method-grid { display: flex; flex-direction: column; gap: 10px; }
.method-grid-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.method-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--paper); transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease, background .18s ease; }
.method-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.method-card:hover { border-color: rgba(235,122,51,.5); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.method-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.method-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.method-card:has(input:disabled):hover { transform: none; box-shadow: none; border-color: var(--border); }
.method-card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-soft); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; transition: background .18s ease, color .18s ease; }
.method-card:has(input:checked) .method-card-icon { background: var(--accent); color: #fff; }
.method-card-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.method-card-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.method-card-sub { font-size: 12px; color: var(--muted-light); }
.method-card-price { flex-shrink: 0; margin-left: 12px; font-size: 13px; font-weight: 700; color: #0d8a4e; white-space: nowrap; }
.method-card-tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; transition: all .18s ease; margin-left: auto; }
.method-card:has(input:checked) .method-card-tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.method-card-price + .method-card-tick { margin-left: 0; }
.method-card-compact { padding: 13px 16px; }

/* ---------- Checkout: business toggle switch ---------- */
.business-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 6px 0 2px; }
.business-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.business-toggle-switch { width: 40px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; flex-shrink: 0; transition: background .2s ease; }
.business-toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.business-toggle input:checked + .business-toggle-switch { background: var(--accent); }
.business-toggle input:checked + .business-toggle-switch::after { transform: translateX(16px); }
.business-toggle input:focus-visible + .business-toggle-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.business-toggle-text { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.business-toggle-text svg { color: var(--muted-light); }
.business-fields { margin-top: 16px; }

/* ---------- Checkout: trust badges ---------- */
/* Checkout form fields: slightly taller, calmer focus, inline validation */
.checkout-form input[type=text], .checkout-form input[type=email], .checkout-form input[type=number] {
  padding: 14px 15px; font-size: 14.5px; background: var(--paper);
}
.checkout-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
/* :user-invalid only reddens a field the customer actually touched+left invalid,
   never fields they haven't reached yet (unlike :invalid). */
.checkout-form input:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }

/* Country select: match the taller checkout text inputs */
.checkout-form select#countrySelect {
  padding: 14px 15px; font-size: 14.5px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; background: var(--paper); color: var(--ink); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease; cursor: pointer;
}
.checkout-form select#countrySelect:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }

/* "Typical couriers for your region" hint below delivery methods */
.carrier-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.carrier-hint-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.carrier-hint-label svg { color: var(--accent); flex-shrink: 0; }
.carrier-hint-chips { display: inline-flex; flex-wrap: wrap; gap: 7px; }

/* Accepted-payment chips (trademark-safe text chips, same as footer) */
.payment-accepted { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.payment-accepted-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.payment-accepted-label svg { color: var(--accent); flex-shrink: 0; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 22px; }
.trust-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.trust-badge svg { color: var(--accent); flex-shrink: 0; }
.trust-badge-summary { margin-top: 14px; justify-content: center; width: 100%; color: var(--muted-light); }

/* ---------- Auth ---------- */
.auth-page { max-width: 440px; margin: 48px auto; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.auth-page h1 { font-size: 30px; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* Premium prose helpers for the legal / info pages */
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { text-decoration: none; }
.page-intro { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; margin-bottom: 22px; }
.checkout-terms a, .checkout-muted a { color: var(--accent); text-decoration: underline; }
.product-cat a { color: var(--accent-dark); }
.product-cat a:hover { text-decoration: underline; }
.prose .prose-lead { font-size: 17px; line-height: 1.65; color: var(--ink); margin-bottom: 6px; }
.prose .prose-note { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.prose h2 { font-size: 19px; margin-top: 30px; margin-bottom: 8px; }

/* Cookie consent banner — small, bottom-left corner, slides up */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 1200; max-width: 372px;
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20,22,28,.20); padding: 18px 20px 16px;
  transform: translateY(24px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-inner { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.cookie-banner-icon { color: var(--accent); margin-top: 2px; grid-row: span 2; }
.cookie-banner-text { font-size: 13px; line-height: 1.55; color: var(--ink); margin: 0; }
.cookie-banner-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-accept { grid-column: 2; justify-self: start; margin-top: 12px; padding: 9px 22px; font-size: 14px; }
@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* Checkout "Reach us" shipping-quote panel */
.quote-panel { margin-top: 16px; padding: 18px; background: var(--bg, #f5f4f1); border: 1px solid var(--border); border-radius: var(--radius-md); }
.quote-panel-lead { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; display: flex; gap: 9px; align-items: flex-start; }
.quote-panel-lead svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.quote-panel-msg { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.quote-panel-msg textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); resize: vertical; color: var(--ink); }
.quote-status { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.quote-status.is-ok { color: #16794a; }
.quote-status.is-error { color: var(--danger, #c0392b); }

/* ---------- Footer "Website solutions" trigger + modal ---------- */
.footer-dot { opacity: .5; }
.footer-websolutions { font: inherit; font-size: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; position: relative; }
.footer-websolutions::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, var(--accent), #6f8cff); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.footer-websolutions:hover { color: var(--accent); }
.footer-websolutions:hover::after { transform: scaleX(1); }
.footer-websolutions-spark { width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd9a3, var(--accent) 55%, #6f8cff);
  box-shadow: 0 0 0 0 rgba(242,89,28,.5); animation: websolSpark 2.4s ease-in-out infinite; }
@keyframes websolSpark { 0%,100% { box-shadow: 0 0 0 0 rgba(242,89,28,.45); transform: scale(1); } 50% { box-shadow: 0 0 0 5px rgba(242,89,28,0); transform: scale(1.25); } }

.websol-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(12,14,18,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: websolFade .25s ease; }
@keyframes websolFade { from { opacity: 0; } to { opacity: 1; } }
.websol-card { position: relative; width: 100%; max-width: 460px; overflow: hidden; border-radius: 22px;
  background: linear-gradient(160deg, #14181f 0%, #0d1015 60%, #12161d 100%); color: #f4f1ea;
  border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 90px rgba(0,0,0,.5);
  padding: 34px 30px 30px; animation: websolPop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes websolPop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.websol-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; pointer-events: none; z-index: 0; }
.websol-orb-1 { width: 220px; height: 220px; top: -70px; right: -60px; background: radial-gradient(circle, #f2591c, transparent 70%); animation: websolFloat 9s ease-in-out infinite; }
.websol-orb-2 { width: 200px; height: 200px; bottom: -80px; left: -50px; background: radial-gradient(circle, #4f6bff, transparent 70%); animation: websolFloat 11s ease-in-out infinite reverse; }
@keyframes websolFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px,-14px); } }
.websol-body { position: relative; z-index: 1; }
.websol-close { position: absolute; top: -18px; right: -12px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #f4f1ea; font-size: 15px; cursor: pointer; transition: background .2s; }
.websol-close:hover { background: rgba(255,255,255,.2); }
.websol-eyebrow { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: #ffb27d; margin-bottom: 10px; }
.websol-title { font-size: 26px; line-height: 1.15; margin: 0 0 10px; font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, #ffd9a3 30%, #9fb2ff 60%, #fff 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: websolShine 6s linear infinite; }
@keyframes websolShine { to { background-position: 220% center; } }
.websol-lead { font-size: 14px; line-height: 1.6; color: #c3c9d2; margin: 0 0 16px; }
.websol-features { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.websol-features li { font-size: 13.5px; color: #e6e9ee; display: flex; align-items: center; gap: 9px; }
.websol-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(242,89,28,.18); color: #ffb27d; font-size: 11px; flex-shrink: 0; }
.websol-form { display: flex; flex-direction: column; gap: 10px; }
.websol-form-row { display: flex; gap: 10px; }
.websol-form input, .websol-form textarea { flex: 1; width: 100%; font: inherit; font-size: 14px; padding: 11px 13px; color: #f4f1ea;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; resize: vertical; }
.websol-form input::placeholder, .websol-form textarea::placeholder { color: #8b93a0; }
.websol-form input:focus, .websol-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.websol-send { margin-top: 4px; }
.websol-status { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.websol-status.is-ok { color: #7fe0a8; }
.websol-status.is-error { color: #ff9a8a; }
@media (max-width: 480px) { .websol-form-row { flex-direction: column; } .websol-title { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .footer-websolutions-spark, .websol-orb, .websol-title, .websol-overlay, .websol-card { animation: none; }
}
.form-errors { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 6px; }
.form-error-item { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form-error-item svg { flex-shrink: 0; }
.form-success { background: #f0fdf4; color: var(--success); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 6px; }

/* ---- Frontend QA fixes (missing classes / mobile input zoom) ---- */
.admin-muted { color: var(--muted-light); }
.checkout-account-opt { margin: 8px 0 4px; }
.checkout-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink); margin: 4px 0; line-height: 1.5; }
.checkout-check input[type=checkbox] { width: auto; margin-top: 3px; flex: none; }
.checkout-check a { color: var(--accent-dark, var(--accent)); }
.checkout-terms { margin: 14px 0 6px; }
.checkout-muted { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.catalog-sidebar-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; }
.search-empty { padding: 32px 0; color: var(--muted); font-size: 15px; }
.brand-intro { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 68ch; margin: 4px 0 18px; }
.cat-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.cat-hub-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; background: var(--paper-soft, #fff); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-hub-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-hub-name { font-family: var(--ff-display); font-weight: 600; }
.cat-hub-count { color: var(--muted); font-size: 13px; font-family: var(--ff-mono); }
.cat-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.cat-subnav .filter-link { border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
/* iOS zooms in when a focused field is < 16px — keep interactive fields at 16px on phones. */
@media (max-width: 1024px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } }

/* ---------- Account ---------- */
.account-section-title { font-family: var(--ff-display); font-size: 18px; font-weight: 700; margin: 36px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.empty-state { padding: 24px 0 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--muted); }

/* ---------- Confirmation ---------- */
.confirmation { max-width: 580px; margin: 0 auto; text-align: center; }
.confirmation h1 { font-size: 28px; margin-bottom: 14px; }
.confirmation-icon { width: 68px; height: 68px; line-height: 68px; border-radius: 50%; background: #f0fdf4; color: var(--success); font-size: 30px; margin: 0 auto 20px; }
.confirmation .order-summary { text-align: left; margin-top: 26px; position: static; }

/* ---------- Contact ---------- */
.contact-layout { display: flex; gap: 56px; }
.contact-info { flex: 1; font-size: 15px; display: flex; flex-direction: column; gap: 14px; }
.contact-info p { display: flex; align-items: center; gap: 10px; }
.contact-info svg { flex-shrink: 0; color: var(--accent); }
.contact-layout .auth-form { flex: 2; }

/* ---------- Prose (static pages) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: 34px; margin-bottom: 20px; }
.prose p { color: #3a3a3a; margin-bottom: 14px; font-size: 15.5px; }
.prose li { color: #3a3a3a; font-size: 15.5px; margin-bottom: 8px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-soft); color: var(--muted); margin-top: 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; gap: 50px; padding: 64px 24px 44px; flex-wrap: wrap; }
.footer-brand { flex: 1.4; min-width: 240px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; max-width: 320px; }
.footer-col { flex: 1; min-width: 160px; }
.footer-col h4 { color: var(--ink); margin-bottom: 16px; font-size: 14px; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-logo { margin-bottom: 4px; color: var(--ink); }
.footer-logo span { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; font-size: 13px; color: var(--muted-light); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-trust { border-top: 1px solid var(--border); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .01em;
  color: var(--muted); background: var(--paper); border: 1px solid var(--border); border-radius: 7px; padding: 6px 11px;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.trust-chip:hover { border-color: var(--border-strong); color: var(--ink); transform: translateY(-1px); }
.trust-chip-ssl { color: var(--muted); background: var(--accent-soft); border-color: transparent; }
.trust-chip-ssl svg { color: var(--accent-dark); flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mainnav, .header-search { display: none; }
  .burger { display: flex; }
  .hero3 { padding: 48px 24px 56px; }
  .search-console { padding: 26px 24px 0; }
  .hero-stats { padding: 0 24px 40px; }
  .sc-stats { grid-template-columns: repeat(2, 1fr); }
  .sc-stats div:nth-child(3) { border-left: none; }
  .sc-stats div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .steps-grid { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(5, 1fr); }
  .editorial { padding: 80px 24px; }
  .editorial-title { font-size: 34px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .announce-right { display: none; }
}
@media (max-width: 700px) {
  .brand-layout, .checkout-layout, .product-detail, .contact-layout { flex-direction: column; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .order-summary { position: static; }
  .checkout-panel { padding: 20px 18px; }
  /* Stack paired form fields so the form can't overflow the viewport */
  .form-row { flex-direction: column; gap: 14px; }
  .checkout-form, .checkout-panel, .checkout-layout { min-width: 0; }
  .checkout-form input, .checkout-form select, .checkout-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
  .checkout-steps { padding: 22px 0 4px; }
  .checkout-step-label { font-size: 10px; }
  .method-grid-compact { grid-template-columns: 1fr; }
  .method-card-price { display: none; }
  .cart-line { grid-template-columns: 52px 1fr; grid-template-areas: "thumb info" "qty qty" "price total" "remove remove"; row-gap: 10px; }
  .cart-line-thumb { grid-area: thumb; width: 52px; height: 52px; }
  .cart-line-info { grid-area: info; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-price { grid-area: price; }
  .cart-line-total { grid-area: total; justify-self: end; }
  .cart-line-remove { grid-area: remove; justify-self: end; }
  .filters { width: 100%; }
  /* ============================================================
     Mobile hero — a SEARCH PLATFORM, not a landing page. Compact
     (no full-viewport dead space): big logo, one headline line, a
     large prominent search card (~90% width), brand chips WITH logos,
     and the first stat blocks visible on the same screen.
     ============================================================ */
  .announce { display: none; }
  .logo { font-size: 26px; }
  .hero3 { min-height: 0; display: block; padding: 32px 16px 22px; }
  .hero3-inner { width: 100%; min-width: 0; }
  .hero3-eyebrow { font-size: 11px; letter-spacing: .13em; margin-bottom: 12px; }
  .hero3-inner h1 { font-size: 30px; line-height: 1.08; letter-spacing: -0.036em; font-weight: 800; margin: 0 auto 14px; max-width: 14ch; }
  .hero3-sub { display: block; font-size: 14.5px; line-height: 1.5; margin: 0 auto 24px; max-width: 34ch; }
  /* Concept C search — segmented control + big bar + live results, full width */
  .oemsearch { max-width: 100%; }
  .oemsearch-seg { display: flex; width: 100%; margin-bottom: 12px; }
  .oemsearch-seg .seg { flex: 1; padding: 9px 8px; font-size: 12.5px; }
  .oemsearch-form { padding: 6px 6px 6px 14px; border-radius: 14px; gap: 8px; }
  .oemsearch-form input[type=text] { font-size: 16.5px; }
  .oemsearch-form button { height: 50px; padding: 0 20px; font-size: 15px; }
  .oemsearch-row { grid-template-columns: 24px 1fr auto; gap: 10px; padding: 12px; }
  .oemsearch-row .oemsearch-name, .oemsearch-row .oemsearch-meta { display: none; }
  .oemsearch-brands { margin-top: 22px; gap: 9px 18px; }
  .oemsearch-brands-label { display: none; }
  .qp { font-size: 13px; padding: 0; background: none; color: var(--muted); }
  .qp:nth-child(n+6) { display: none; }
  .qp-more { display: inline !important; }
  /* First stats visible right below the search */
  .hero-stats { padding: 18px 16px 28px; }
  .sc-stats { grid-template-columns: repeat(2, 1fr); }
  .sc-stats div { padding: 16px 8px; }
  .sc-stats div:nth-child(3) { border-left: none; }
  .sc-stats div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .sc-stats b { font-size: 20px; }
  .trustbar-inner { gap: 16px 22px; }
  .steps { padding: 56px 20px; }
  .brand-index { padding: 56px 20px; }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .console-title { font-size: 26px; }
  .editorial { padding: 64px 20px; }
  .editorial-title { font-size: 26px; }
  .business-cta { padding: 56px 20px; }
  .business-cta-inner { padding: 36px 28px; }
  .business-cta h2 { font-size: 26px; }
  .section { padding: 56px 20px; }
  .product-detail-thumb { width: 100%; }
  .auth-page { margin: 24px auto; padding: 28px 22px; }
  .lightbox-arrow { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-arrow-prev { left: 8px; }
  .lightbox-arrow-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
  .photo-lightbox { padding: 16px; }
}

/* ---------- My Account ---------- */
.main-no-footer { display: block; min-height: calc(100vh - 130px); }
.account-shell { display: grid; grid-template-columns: 246px 1fr; gap: 36px; padding: 40px 32px 80px; align-items: start; }
.account-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 14px; box-shadow: var(--shadow-sm); }
.account-user { display: flex; align-items: center; gap: 12px; padding: 6px 10px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.account-user-avatar { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.account-user-info { display: flex; flex-direction: column; min-width: 0; }
.account-user-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-user-info span { font-size: 12px; color: var(--muted-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.account-nav-item:hover { background: var(--paper-soft); color: var(--ink); }
.account-nav-item.active { background: var(--accent-soft); color: var(--accent-dark); }
.account-nav-icon { display: flex; color: inherit; flex-shrink: 0; }
.account-nav-count { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.account-nav-logout { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); }
.account-nav-logout:hover { color: var(--danger); background: #fef2f2; }

.account-main { min-width: 0; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { font-size: 27px; letter-spacing: -0.02em; margin: 0; }
.account-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.account-summary-bullets { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 13.5px; font-weight: 500; }
.account-summary-sep { color: var(--border-strong); font-size: 10px; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 14px; }
.account-section-head h2 { font-size: 18px; margin: 0; }
.account-section-link { font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.account-section-link:hover { text-decoration: underline; }
.account-panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; margin-top: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease; }
.account-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 18px; color: var(--ink); }
.account-panel h3 svg { color: var(--accent-dark); flex-shrink: 0; }
.account-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.account-form input, .account-form select, .account-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.account-form input:focus, .account-form select:focus, .account-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.account-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 8px; }
.account-summary-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(155deg, var(--paper) 55%, var(--accent-soft) 160%);
  position: relative; overflow: hidden; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.account-summary-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity .2s ease; }
.account-summary-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(235,122,51,.3); }
.account-summary-card:hover::before { opacity: 1; }
.account-summary-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); transition: transform .2s ease; }
.account-summary-card:hover .account-summary-icon { transform: scale(1.08) rotate(-4deg); }
.account-summary-value { font-family: var(--ff-display); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.account-summary-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.account-summary-view {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11.5px; font-weight: 700;
  color: var(--accent-dark); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease;
}
.account-summary-view svg { transition: transform .2s ease; }
.account-summary-card:hover .account-summary-view { opacity: 1; transform: translateX(0); }
.account-summary-card:hover .account-summary-view svg { transform: translateX(2px); }

.order-card-list, .track-order-list, .vehicle-card-list, .address-card-list, .invoice-card-list, .discount-card-list { display: flex; flex-direction: column; gap: 14px; }
.order-card, .track-order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; background: var(--paper); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.order-card:hover, .track-order-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.order-card-no { font-weight: 700; font-size: 14.5px; }
.order-card-date { display: block; font-size: 12px; color: var(--muted-light); margin-top: 2px; }

.order-card-products { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.order-product-row { display: flex; align-items: center; gap: 12px; }
.order-product-thumb {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; background: var(--paper-soft); border: 1px solid var(--border); overflow: hidden;
}
.order-product-thumb-img { width: 100%; height: 100%; object-fit: contain; }
.order-product-thumb-initials { font-size: 11px; font-weight: 700; color: var(--muted); }
.order-product-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.order-product-name { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-product-code { font-size: 11.5px; color: var(--muted-light); font-family: var(--ff-mono); }
.order-product-qty { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.order-product-price { font-size: 13.5px; font-weight: 700; font-family: var(--ff-mono); flex-shrink: 0; min-width: 64px; text-align: right; }
.order-product-more { font-size: 12px; color: var(--accent-dark); font-weight: 600; padding-left: 56px; }

.order-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-card-total { font-size: 13px; color: var(--muted); }
.order-card-total strong { color: var(--ink); font-family: var(--ff-mono); }
.order-card-address { font-size: 12.5px; color: var(--muted-light); }
.order-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.order-progress { display: flex; align-items: flex-start; gap: 0; margin: 4px 0; }
.order-progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.order-progress-dot { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--paper); color: var(--muted-light); font-size: 10px; font-weight: 700; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.order-progress-step.is-done .order-progress-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-progress-step.is-active .order-progress-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.order-progress-label { font-size: 10.5px; color: var(--muted-light); font-weight: 600; }
.order-progress-step.is-done .order-progress-label, .order-progress-step.is-active .order-progress-label { color: var(--ink); }
.order-progress-line { flex: 1; height: 2px; background: var(--border); margin-top: 10px; border-radius: 2px; }
.order-progress-line.is-done { background: var(--accent); }
.order-progress-cancelled { padding: 4px 0; }
.order-progress-lg .order-progress-dot { width: 30px; height: 30px; font-size: 12px; }
.order-progress-lg .order-progress-label { font-size: 12px; }
.order-progress-lg .order-progress-line { margin-top: 14px; }

.vehicle-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.vehicle-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.vehicle-card-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0; overflow: hidden; }
.vehicle-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.vehicle-plate {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--ff-mono); font-weight: 700;
  font-size: 14.5px; letter-spacing: .03em; background: var(--paper-soft); border: 1.5px solid var(--border-strong);
  border-radius: 6px; padding: 4px 10px;
}
.vehicle-plate-year { font-weight: 600; font-size: 11.5px; color: var(--muted); border-left: 1.5px solid var(--border-strong); padding-left: 8px; }
.vehicle-card-vin { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted-light); letter-spacing: .04em; }
.vehicle-card-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.wishlist-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px;
  background: var(--paper); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.wishlist-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-3px); }
.wishlist-card .product-card, .wishlist-card .product-card:hover { border: none; box-shadow: none; padding: 0; transform: none; }
.wishlist-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.wishlist-card-actions form:first-child { flex: 1; }
.wishlist-card-actions .btn { width: 100%; justify-content: center; }

.address-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--paper); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.address-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.address-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.address-card-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); }
.badge-default { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--success); background: #ecfdf3; padding: 3px 9px; border-radius: 999px; }
.address-card-body { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.address-card-actions { display: flex; align-items: flex-start; gap: 10px; }
.address-edit-toggle summary { cursor: pointer; list-style: none; }
.address-edit-toggle summary::-webkit-details-marker { display: none; }
.address-edit-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }

.invoice-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.invoice-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.invoice-card-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0; }
.invoice-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.invoice-card-body span { font-size: 12.5px; color: var(--muted-light); }
.invoice-card-amount { font-weight: 700; font-family: var(--ff-mono); margin-right: 4px; }

.rewards-hero {
  display: flex; align-items: center; gap: 20px; padding: 28px 30px; border-radius: var(--radius-lg); margin-bottom: 8px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 60%, var(--accent-dark) 160%); color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.rewards-hero::after {
  content: ''; position: absolute; top: -40%; right: -10%; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(235,122,51,.35) 0%, transparent 70%);
}
.rewards-hero-icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.12); color: var(--accent); flex-shrink: 0; position: relative; z-index: 1;
}
.rewards-hero-body { display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.rewards-hero-label { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }
.rewards-hero-amount { font-family: var(--ff-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.rewards-hero-unit { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); }
.rewards-hero-caption { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

.discount-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease; }
.discount-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.discount-card-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0; }
.discount-card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 1; min-width: 0; }
.discount-card-value { font-family: var(--ff-display); font-size: 19px; font-weight: 700; color: var(--accent-dark); }
.discount-card-code { font-family: var(--ff-mono); font-size: 13.5px; letter-spacing: .06em; background: var(--paper-soft); border: 1px solid var(--border); padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.discount-card-note { font-size: 12px; color: var(--muted-light); }

.notification-list { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.notification-item { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: inherit; transition: background .15s ease; }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: var(--paper-soft); }
.notification-item.is-unread { background: var(--accent-soft); }
.notification-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper-soft); color: var(--muted); flex-shrink: 0; }
.notification-item.is-unread .notification-icon { background: #fff; color: var(--accent-dark); }
.notification-body { display: flex; flex-direction: column; gap: 3px; }
.notification-body strong { font-size: 13.5px; }
.notification-body span { font-size: 12.5px; color: var(--muted); }
.notification-date { color: var(--muted-light) !important; font-size: 11.5px !important; margin-top: 2px; }
.notification-dot { position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.toggle-row { flex-direction: row !important; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--ink); }
.toggle-soon { font-style: normal; font-size: 11px; color: var(--muted-light); margin-left: 6px; }
.toggle-switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle-track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background .2s ease; }
.toggle-track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: var(--shadow-sm); }
.toggle-switch input:checked + .toggle-track { background: var(--accent); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); }

/* Storefront status pills -- mirrors the color coding already used in public/css/admin.css */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--paper-soft); color: var(--muted); flex-shrink: 0; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-Naujas { background: #e6f1fd; color: #1c64d1; }
.status-Apdorojamas { background: #fef3d6; color: #b4790a; }
.status-Paruoštas { background: #dcf6fa; color: #0891a8; }
.status-Išsiųstas { background: #eee6fd; color: #7c3ded; }
.status-Įvykdytas { background: #ddf6e6; color: #12965a; }
.status-Atšauktas { background: #fde6e6; color: #d5322f; }

@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; padding: 28px 20px 64px; gap: 20px; }
  .account-sidebar { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding: 10px; }
  .account-user { display: none; }
  .account-nav { flex-direction: row; }
  .account-nav-item { flex-direction: column; gap: 4px; padding: 8px 12px; font-size: 10.5px; white-space: nowrap; }
  .account-nav-logout { margin-top: 0; padding-top: 8px; border-top: none; border-left: 1px solid var(--border); border-radius: 0; }
  .account-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .rewards-hero { flex-direction: column; align-items: flex-start; text-align: left; padding: 24px; }
  .order-product-price { min-width: 0; }
  .order-product-more { padding-left: 0; }
}

/* Custom 404 */
.error-page { text-align: center; max-width: 560px; margin: 0 auto; }
.error-code { font-family: var(--ff-display); font-size: 88px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.error-page h1 { font-size: 26px; margin: 8px 0 10px; }
.error-sub { color: var(--muted); margin-bottom: 24px; }
.error-search { display: flex; gap: 8px; margin: 0 auto 20px; max-width: 420px; }
.error-search input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; font: inherit; }
.error-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.error-links a { color: var(--muted); text-decoration: none; }
.error-links a:hover { color: var(--accent); }

/* OEM page rich content (Phase 2 SEO) */
.oem-content { display: grid; gap: 40px; }
.oem-about h2, .oem-family h2, .oem-faq h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.oem-about p { color: var(--muted); line-height: 1.7; max-width: 760px; }
.oem-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.oem-facts li { background: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.oem-facts li span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-light); }
.oem-facts li a { color: var(--accent); text-decoration: none; font-weight: 600; }
.oem-muted { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.oem-family-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.oem-family-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.oem-family-list a:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.oem-family-code { font-family: var(--ff-mono, monospace); font-weight: 600; }
.oem-family-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: 13px; }
.oem-family-price { margin-left: auto; font-weight: 700; color: var(--accent); white-space: nowrap; }
.oem-faq-item { border-top: 1px solid var(--border); padding: 16px 0; }
.oem-faq-item:first-of-type { border-top: none; }
.oem-faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.oem-faq-item p { color: var(--muted); line-height: 1.7; max-width: 760px; }

/* ---------- Shipping calculator (product page) ---------- */
.ship-calc { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); padding: 18px 20px; max-width: 460px; }
.ship-calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ship-calc-eyebrow { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.ship-calc-from { font-size: 13.5px; color: var(--muted); }
.ship-calc-from b { font-family: var(--ff-display); font-size: 16px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.ship-calc-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ship-calc-country { flex: 1 1 150px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; background: var(--paper); color: var(--ink); cursor: pointer; }
.ship-calc-postal { flex: 1 1 110px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; }
.ship-calc-country:focus, .ship-calc-postal:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ship-calc-btn { flex: 0 0 auto; padding: 11px 20px; }
.ship-calc-results { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.ship-method { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.ship-method + .ship-method { border-top: 1px solid var(--border); border-radius: 0; }
.ship-method.best { background: var(--accent-soft); border-color: transparent; border-radius: var(--radius-sm); box-shadow: inset 2px 0 0 var(--accent); }
.ship-method-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.ship-method-dl { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; color: var(--muted-light); }
.ship-method-price { font-family: var(--ff-display); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ship-method.best .ship-method-price { color: var(--accent-dark); }
.ship-none, .ship-quote-msg { font-size: 13.5px; color: var(--muted); margin: 4px 2px; line-height: 1.5; }
.ship-calc-quote .ship-quote-msg { margin-top: 6px; }
@media (max-width: 700px) { .ship-calc { max-width: 100%; } .ship-calc-btn { flex: 1 1 100%; } }

/* Zero/blank-priced items → "price on request" (never a €0 buy) */
.price.price-on-request { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.card-offer-price:not(:empty) { white-space: nowrap; }

/* VIES VAT validation status (checkout business toggle) */
.vies-status { font-size: 13px; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; }
.vies-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.vies-checking { color: var(--muted); }
.vies-valid, .vies-reverse { color: var(--success); }
.vies-invalid { color: var(--danger); }

/* ---------- Shipping drawer (secondary, below offers) ---------- */
.ship-drawer-wrap { margin-top: 8px; }
.ship-drawer { border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.ship-drawer[open] { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.ship-drawer-summary { display: flex; align-items: center; gap: 16px; padding: 15px 20px; cursor: pointer; list-style: none; }
.ship-drawer-summary::-webkit-details-marker { display: none; }
.ship-drawer-summary:hover { background: var(--paper-soft); }
.ship-drawer-title { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.ship-drawer-ico, .ship-notice-ico { display: flex; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); align-items: center; justify-content: center; flex-shrink: 0; }
.ship-drawer-labels { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ship-drawer-sub { font-size: 13px; color: var(--muted); }
.ship-drawer-from { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ship-drawer-from b { font-family: var(--ff-display); font-size: 17px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; margin-left: 3px; }
.ship-drawer-chevron { display: flex; color: var(--muted-light); transition: transform .2s ease; flex-shrink: 0; }
.ship-drawer[open] .ship-drawer-chevron { transform: rotate(180deg); }
.ship-drawer-body { padding: 4px 20px 20px; border-top: 1px solid var(--border); }
.ship-drawer-body .ship-calc { margin: 0; max-width: 620px; border: 0; padding: 14px 0 0; background: none; }
.ship-notice { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); padding: 16px 20px; }
.ship-notice .ship-quote-msg { margin-top: 4px; }
@media (max-width: 640px) {
  .ship-drawer-summary { flex-wrap: wrap; gap: 10px 14px; }
  .ship-drawer-from { order: 3; width: 100%; }
}

/* ---------- Offers = product-page focus (sits right under the hero) ---------- */
.product-detail { padding-bottom: 28px; }
.offers-panel { padding-top: 6px; padding-bottom: 48px; }
.offers-panel-head { align-items: flex-start; }
.offers-panel-heading { display: flex; flex-direction: column; gap: 3px; }
.offers-panel-heading .section-title { display: flex; align-items: center; gap: 10px; }
.offers-panel-sub { color: var(--muted); font-size: 14.5px; margin: 2px 0 0; }
.offers-count { display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-mono); font-size: 15px; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border-radius: 8px; padding: 1px 10px; }
@media (max-width: 700px) { .offers-panel-heading .section-title { font-size: 24px; } }

/* ---------- Product spec panel (fills space beside the image) ---------- */
.product-specs { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.product-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-strong); border-bottom-color: var(--border); }
.product-specs > div:last-child { border-bottom: 0; }
.product-specs dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.product-specs dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.product-specs dd a { color: var(--accent-dark); }
.product-specs .spec-mono { font-family: var(--ff-mono); font-size: 13px; letter-spacing: -0.01em; }

/* ---------- Premium OEM placeholder (no product photo) ---------- */
.product-detail-thumb.is-placeholder { background: #fff; }
.oem-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.oem-placeholder .brand-logo, .oem-placeholder .brand-logo-img { width: 96px !important; height: 96px !important; }
.oem-placeholder-code { font-family: var(--ff-mono); font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.oem-placeholder-brand { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Best-price badge + delivered-total columns ---------- */
.offer-best-badge { display: inline-block; font-family: var(--ff-mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 5px; padding: 2px 6px; vertical-align: middle; margin-left: 7px; }
.offers-table tr.offer-row-best td { background: var(--accent-soft); }
.offers-table tr.offer-row-best .offer-cell-price { color: var(--accent-dark); font-weight: 700; }
.offer-cell-ship { color: var(--muted); white-space: nowrap; }
.offer-cell-total { font-weight: 700; font-family: var(--ff-display); color: var(--ink); white-space: nowrap; }

/* ---------- Shipping drawer: clearer expand affordance ---------- */
.ship-drawer-chevron { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); align-items: center; justify-content: center; }
.ship-drawer-summary:hover .ship-drawer-chevron { background: var(--accent); color: #fff; }
.ship-drawer:not([open]) .ship-drawer-summary { background: linear-gradient(180deg, #fff 0%, var(--paper-soft) 100%); }

/* ---------- Best VALUE (cheapest delivered total) — green ---------- */
.offer-bestvalue-badge { display: inline-block; font-family: var(--ff-mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #1c8a4e; border-radius: 5px; padding: 2px 6px; vertical-align: middle; margin-left: 7px; white-space: nowrap; }
.offers-table tr.offer-row-bestvalue td { background: rgba(28,138,78,.07); }
.offers-table tr.offer-row-bestvalue .offer-cell-total { color: #146b3d; font-weight: 700; }
.offer-quote-mini { font-size: 11px; color: var(--muted); font-style: italic; white-space: nowrap; }

/* ---------- "Code adjusted, please verify" search notice ---------- */
.code-adjusted-notice { display: flex; gap: 12px; align-items: flex-start; margin: 18px auto 0; padding: 14px 18px; background: #fff8e6; border: 1px solid #f0d488; border-left: 4px solid #e0a72e; border-radius: 10px; color: #6b4e12; font-size: 14px; line-height: 1.5; }
.code-adjusted-notice .code-adjusted-ico { font-size: 18px; line-height: 1.2; flex: 0 0 auto; }
.code-adjusted-notice b { color: #4a3608; font-weight: 700; }

/* ---------- Admin: Documents module ---------- */
.doc-tabs { display: flex; gap: 6px; margin: 12px 0 16px; flex-wrap: wrap; }
.doc-tab { padding: 7px 14px; border-radius: 8px; font-size: 13px; color: #555; text-decoration: none; border: 1px solid #e4e4e4; }
.doc-tab.is-active { background: #111; color: #fff; border-color: #111; }
.doc-search { display: flex; gap: 8px; margin: 0 0 16px; max-width: 520px; }
.doc-search input { flex: 1; padding: 8px 12px; border: 1px solid #d8d8d8; border-radius: 8px; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-form .admin-panel { margin-bottom: 16px; }
.doc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #666; }
.doc-fields .doc-col2 { grid-column: 1 / -1; }
.doc-fields input, .doc-fields select { padding: 8px 10px; border: 1px solid #d8d8d8; border-radius: 8px; font-size: 14px; }
.doc-lines input { padding: 6px 8px; border: 1px solid #e2e2e2; border-radius: 6px; width: 100%; box-sizing: border-box; }
.doc-totals { margin: 16px 0 16px auto; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.doc-totals > div { display: flex; justify-content: space-between; font-size: 14px; }
.doc-total-grand { border-top: 2px solid #111; padding-top: 8px; margin-top: 4px; font-size: 17px; font-weight: 700; }
@media (max-width: 760px) { .doc-grid, .doc-fields { grid-template-columns: 1fr; } }

/* Product condition badge (all parts are new — payment-provider compliance) */
.product-condition { margin: -2px 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-condition-badge { display: inline-flex; align-items: center; gap: 5px; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.product-condition-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* slug-based status pills (space/diacritic-safe) — added for launch */
.status-naujas{background:#e6f1fd;color:#1c64d1;}
.status-apdorojamas{background:#fef3d6;color:#b4790a;}
.status-paruostas{background:#dcf6fa;color:#0891a8;}
.status-issiustas{background:#eee6fd;color:#7c3ded;}
.status-ivykdytas{background:#ddf6e6;color:#12965a;}
.status-atsauktas{background:#fde6e6;color:#d5322f;}
.status-tiekejo-velavimas{background:#fef3d6;color:#b4790a;}
.status-atsaukimas-paprasytas{background:#fdeede;color:#a8560c;}
.status-nebegaminama{background:#f1f0ed;color:#6b7280;}

/* Add-to-cart toast — clear feedback + one-tap cart access (esp. mobile) */
.cart-toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%) translateY(24px);z-index:2000;display:flex;align-items:center;gap:14px;background:#181b21;color:#fff;padding:11px 14px 11px 16px;border-radius:12px;box-shadow:0 10px 34px rgba(0,0,0,.28);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;max-width:calc(100vw - 28px)}
.cart-toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
.cart-toast-msg{font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.cart-toast-btn{background:#fff;color:#181b21;font-weight:700;font-size:13px;padding:8px 13px;border-radius:8px;text-decoration:none;white-space:nowrap;flex-shrink:0}
.cart-toast-btn:hover{background:#f0efec}

/* Language flag dropdown */
.lang-switch{position:relative}
.lang-current{display:inline-flex;align-items:center;gap:5px;background:none;border:1px solid var(--border,#e5e7eb);border-radius:8px;padding:5px 8px;cursor:pointer;font:inherit;font-size:12.5px;font-weight:600;color:var(--ink,#181b21);line-height:1}
.lang-current .lang-flag{font-size:15px}
.lang-menu{position:absolute;top:calc(100% + 6px);right:0;background:#fff;border:1px solid var(--border,#e5e7eb);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.14);padding:5px;min-width:158px;z-index:1600;display:flex;flex-direction:column;gap:1px}
.lang-menu[hidden]{display:none}
.lang-opt{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:7px;text-decoration:none;color:var(--ink,#181b21);font-size:13.5px;white-space:nowrap}
.lang-opt:hover{background:var(--paper,#f4f2ee)}
.lang-opt.active{font-weight:700;background:var(--paper,#f4f2ee)}
.lang-opt .lang-flag{font-size:16px}

/* Mobile/tablet header: keep lang + account + cart ALL visible, just compact */
@media (max-width: 980px){
  .header-actions{gap:4px}
  .site-header .header-inner{gap:8px}
  .lang-current{padding:5px 7px}
  .lang-current svg{display:none}
  .header-actions .icon-btn{padding:6px}
}
@media (max-width: 560px){
  .lang-current{padding:5px 6px;border-color:transparent;gap:3px}
  .lang-current .lang-code{display:none}
  .header-actions{gap:2px}
}

/* tablet-landscape header compaction — prevents cart/search clipping at 981-1100px */
@media (max-width: 1100px){
  .mainnav, .header-search{display:none}
  .burger{display:flex}
  .header-actions{gap:4px}
  .lang-current{padding:5px 7px}
  .lang-current svg{display:none}
  .header-actions .icon-btn{padding:6px}
}

/* iPhone SE narrow footer — stop the brand column overflowing at <=360px */
@media (max-width: 360px){
  .container{padding-left:16px;padding-right:16px}
  .footer-top,.footer-trust,.footer-bottom{padding-left:14px;padding-right:14px}
  .footer-brand,.footer-col{min-width:0}
}

/* ============================================================================
   DARK THEME — opt-in via the header toggle (sets <html data-theme="dark">).
   Reuses the site's existing charcoal/cream/orange world (the same tokens the
   dark hero + footer already use), extended across every surface. Only the
   theme tokens are redefined here, so the 600+ var() usages flip automatically;
   the handful of "dark chip" background:var(--ink) spots are overridden below
   (since --ink becomes light in dark mode).
   ========================================================================== */
:root[data-theme="dark"] {
  --ink: #f3eee7;             /* primary text -> cream */
  --ink-soft: #ece6dd;
  --ink-elevated: #262430;
  --cream: #f3eee7;
  --cream-dim: rgba(243,238,231,.60);
  --cream-faint: rgba(243,238,231,.34);
  --paper: #1b1a20;          /* cards / raised surfaces (was #fff) */
  --paper-soft: #232128;     /* secondary surfaces */
  --page-bg: #121116;        /* page background (warm near-black) */
  --accent: #f0873e;         /* keep the brand orange — pops on dark */
  --accent-dark: #e5722a;
  --accent-soft: rgba(240,135,62,.15);
  --muted: #a09ea7;          /* muted text, lighter for contrast on dark */
  --muted-light: #74727c;
  --border: #302e38;         /* borders / hairlines */
  --border-strong: #3d3a45;
  --danger: #f0736e;
  --success: #34c07a;
  /* Real, deep shadows — the warm low-alpha light shadows vanish on dark. */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45), 0 4px 12px -4px rgba(0,0,0,.55);
  --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 16px 34px -12px rgba(0,0,0,.65);
  --shadow-lg: 0 6px 12px rgba(0,0,0,.5), 0 34px 64px -24px rgba(0,0,0,.75);
}

/* "Dark chip" elements used background:var(--ink) with white text — now that
   --ink is light, repaint them so they stay legible on the dark UI. */
:root[data-theme="dark"] .cart-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--paper); }
:root[data-theme="dark"] .burger span { background: var(--ink); }
:root[data-theme="dark"] .btn-outline:hover,
:root[data-theme="dark"] .btn-outline-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .search-page-form button,
:root[data-theme="dark"] .pagination-jump button { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .badge-discontinued { background: #3d3a45; color: var(--ink); }

/* Inputs/selects: give fields a visible dark surface + border. */
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: var(--paper-soft); color: var(--ink); border-color: var(--border);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: var(--muted-light); }

/* Theme toggle button in the header. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--paper); color: var(--muted); cursor: pointer; padding: 0;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ---- Dark-mode surface + photo fixes (QA pass) ---- */
/* Light surfaces that used hardcoded #fff -> repaint to the dark surface token. */
:root[data-theme="dark"] .hero-result,
:root[data-theme="dark"] .oemsearch-form,
:root[data-theme="dark"] .oemsearch-results,
:root[data-theme="dark"] .sc-stats,
:root[data-theme="dark"] .brand-wall,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .offers-table tr,
:root[data-theme="dark"] .oem-facts li,
:root[data-theme="dark"] .btn-light,
:root[data-theme="dark"] .btn-mini { background: var(--paper); }
:root[data-theme="dark"] .oemsearch-seg { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .oemsearch-seg .seg.on { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .header-search:focus-within { background: var(--paper-soft); }
:root[data-theme="dark"] .hr-best { background: var(--paper-soft); }

/* Product PHOTOS stay on a light tile — white-background photos would look harsh
   as bright squares on the dark UI, so the image sits on a clean light card
   (intentional, premium) while the surrounding card stays dark. */
:root[data-theme="dark"] .product-thumb,
:root[data-theme="dark"] .product-detail-thumb,
:root[data-theme="dark"] .product-detail-thumb.is-placeholder { background: #f4f3f1; }

/* Dark hero/CTA that used var(--ink) (now light) — keep it a real dark gradient. */
:root[data-theme="dark"] .rewards-hero { background: linear-gradient(135deg, #201e26 0%, #17161c 60%, var(--accent-dark) 220%); }

/* Dark-mode: remaining light surfaces (cookie banner, focused form fields). */
:root[data-theme="dark"] .cookie-banner { background: var(--paper); }
:root[data-theme="dark"] .checkout-form input:focus,
:root[data-theme="dark"] .checkout-form select:focus,
:root[data-theme="dark"] .checkout-form select#countrySelect:focus { background: var(--paper-soft); }

/* Dark-mode: language dropdown panel (was hardcoded #fff). */
:root[data-theme="dark"] .lang-menu { background: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
:root[data-theme="dark"] .lang-opt:hover,
:root[data-theme="dark"] .lang-opt.active { background: var(--paper-soft); }

/* ============================================================================
   DARK THEME — PREMIUM PASS. Flat black reads cheap; depth reads designed.
   Richer blue-charcoal palette (not flat grey), an atmospheric page glow (warm
   top-right + cool bottom-left, like the studio CTA block), a hair of top-edge
   highlight on cards for elevation, and inputs with subtle gradient + soft
   border. Appended after the base dark block so these values win.
   ========================================================================== */
:root[data-theme="dark"] {
  --ink: #f4efe8;
  --ink-soft: #ece6dd;
  --ink-elevated: #262a36;
  --cream: #f4efe8;
  --paper: #191b23;          /* cards — warm blue-charcoal, not grey */
  --paper-soft: #20222d;
  --page-bg: #0f1016;        /* deep base */
  --muted: #9c9daa;
  --muted-light: #6c6e7c;
  --border: #292c38;         /* faint blue hairline */
  --border-strong: #373b4a;
  --accent: #f0873e;
  --accent-dark: #e5722a;
  --accent-soft: rgba(240,135,62,.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 6px 16px -6px rgba(0,0,0,.6);
  --shadow-md: 0 2px 6px rgba(0,0,0,.5), 0 20px 42px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 8px 18px rgba(0,0,0,.55), 0 40px 80px -28px rgba(0,0,0,.8);
}

/* Atmospheric page background — a warm orange glow top-right + a cool navy glow
   bottom-left over a deep base. This is what makes it feel designed, not black. */
:root[data-theme="dark"] body {
  background:
    radial-gradient(1150px 580px at 87% -10%, rgba(240,135,62,.11), transparent 56%),
    radial-gradient(1050px 660px at 3% 112%, rgba(74,90,156,.13), transparent 56%),
    #0d0e13;
  background-attachment: fixed;
}

/* Cards get a faint top-edge highlight (light hitting the top) for elevation. */
:root[data-theme="dark"] .hero-result,
:root[data-theme="dark"] .oemsearch-form,
:root[data-theme="dark"] .oemsearch-results,
:root[data-theme="dark"] .sc-stats,
:root[data-theme="dark"] .brand-wall,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .oem-facts li {
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 42%),
    var(--paper);
  border-color: var(--border);
}
:root[data-theme="dark"] .product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

/* Header + announce: subtle depth, translucent so the page glow shows through. */
:root[data-theme="dark"] .site-header { background: rgba(20,22,29,.82); backdrop-filter: saturate(1.1) blur(10px); -webkit-backdrop-filter: saturate(1.1) blur(10px); border-bottom-color: var(--border); }
:root[data-theme="dark"] .announce { background: rgba(15,16,22,.6); border-bottom-color: var(--border); }
:root[data-theme="dark"] .site-footer { background: rgba(20,22,29,.5); border-top-color: var(--border); }

/* Inputs: soft gradient fill + gentle border, like the studio block fields. */
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .oemsearch-form,
:root[data-theme="dark"] .header-search {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)), var(--paper-soft);
  border-color: var(--border);
}
:root[data-theme="dark"] .header-search:focus-within,
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Photo + logo tiles stay light, but a touch softer than pure white so they sit
   calmly on the dark UI instead of glaring. */
:root[data-theme="dark"] .product-thumb,
:root[data-theme="dark"] .product-detail-thumb,
:root[data-theme="dark"] .product-detail-thumb.is-placeholder { background: #f1efec; }

/* ---- Dark mode: MORE BLUE + fix search input target ---- */
:root[data-theme="dark"] {
  --page-bg: #0d1018;
  --paper: #161b28;          /* blue-navy charcoal card */
  --paper-soft: #1d2333;
  --border: #2a3143;         /* bluish hairline */
  --border-strong: #3a4358;
  --ink-elevated: #242b3d;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(1150px 560px at 88% -12%, rgba(240,135,62,.10), transparent 55%),
    radial-gradient(1200px 740px at -2% 116%, rgba(66,96,196,.22), transparent 58%),
    #090c14;
  background-attachment: fixed;
}
/* The search CONTAINER is the visual field; keep the inner <input> seamless so
   the whole box is the click/type target (a border on the input made a tiny,
   hard-to-hit box within the box). */
:root[data-theme="dark"] .oemsearch-form input,
:root[data-theme="dark"] .header-search input,
:root[data-theme="dark"] .oemsearch-form input:focus,
:root[data-theme="dark"] .header-search input:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ambient orange glow that gently PULSES around the whole page edges (dark mode)
   — a premium breathing halo framing the viewport. pointer-events:none so it
   never blocks; sits under popups (cookie/menus) so it only frames content. */
@keyframes pageGlow {
  0%, 100% { box-shadow: inset 0 0 130px -56px rgba(240,135,62,.07), inset 0 0 44px -26px rgba(240,135,62,.035); }
  50%      { box-shadow: inset 0 0 165px -50px rgba(240,135,62,.14), inset 0 0 58px -24px rgba(240,135,62,.075); }
}
:root[data-theme="dark"] body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; border-radius: inherit;
  animation: pageGlow 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { :root[data-theme="dark"] body::after { animation: none; box-shadow: inset 0 0 150px -52px rgba(240,135,62,.09); } }

/* Dark mode: remaining edge surfaces. */
:root[data-theme="dark"] .notification-item.is-unread .notification-icon { background: var(--paper-soft); }
:root[data-theme="dark"] .code-adjusted-notice { background: rgba(224,167,46,.12); border-color: rgba(224,167,46,.35); color: #e8c980; }
:root[data-theme="dark"] .cart-toast-btn { background: var(--paper-soft); color: var(--ink); }
