/* ==========================================================================
   VerParts — stylesheet
   Layout concept: a trade counter in a browser. Dense, left-aligned,
   information first; one signal-yellow action colour against cold steel
   neutrals, so the thing to press is never in question.
   ========================================================================== */

:root {
  /* Surfaces and ink */
  --bg:          #FFFFFF;
  --bg-sunk:     #F3F6F9;
  --surface:     #FFFFFF;
  --surface-2:   #F7F9FB;
  --line:        #DFE5EB;
  --line-strong: #C3CCD6;
  --ink:         #131A21;
  --ink-2:       #46525E;
  --ink-3:       #6E7C8A;

  /* Structural dark, used for header, footer and hero */
  --brand:       #121A22;
  --brand-2:     #1B2631;
  --brand-3:     #2A3845;
  --on-brand:    #EEF2F6;
  --on-brand-2:  #A3B1BF;

  /* Actions and state */
  --accent:      #F5C21B;
  --accent-dark: #DCAB0C;
  --accent-ink:  #121A22;
  --link:        #1F5F9E;
  --good:        #17704A;
  --good-bg:     #E7F4EE;
  --warn:        #9C6209;
  --warn-bg:     #FDF2DF;
  --bad:         #A8291A;
  --bad-bg:      #FBEBE8;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Scale */
  --wrap: 1280px;
  --r-sm: 3px;
  --r:    5px;
  --r-lg: 8px;
  --shadow-1: 0 1px 2px rgba(19, 26, 33, .06), 0 1px 1px rgba(19, 26, 33, .04);
  --shadow-2: 0 4px 16px rgba(19, 26, 33, .10), 0 1px 3px rgba(19, 26, 33, .06);
  --shadow-3: 0 12px 34px rgba(19, 26, 33, .16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0F151B;
    --bg-sunk:     #0A0F14;
    --surface:     #151D25;
    --surface-2:   #1A232C;
    --line:        #26313B;
    --line-strong: #37444F;
    --ink:         #ECF1F6;
    --ink-2:       #B6C2CE;
    --ink-3:       #8291A0;
    --brand:       #0A0F14;
    --brand-2:     #131C24;
    --brand-3:     #22303B;
    --on-brand:    #ECF1F6;
    --on-brand-2:  #96A5B3;
    --link:        #74B4EC;
    --good:        #5FC79A;
    --good-bg:     #12301F;
    --warn:        #E7B45C;
    --warn-bg:     #332513;
    --bad:         #EE8E7E;
    --bad-bg:      #331814;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 4px 16px rgba(0, 0, 0, .55);
    --shadow-3: 0 12px 34px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:          #0F151B;
  --bg-sunk:     #0A0F14;
  --surface:     #151D25;
  --surface-2:   #1A232C;
  --line:        #26313B;
  --line-strong: #37444F;
  --ink:         #ECF1F6;
  --ink-2:       #B6C2CE;
  --ink-3:       #8291A0;
  --brand:       #0A0F14;
  --brand-2:     #131C24;
  --brand-3:     #22303B;
  --on-brand:    #ECF1F6;
  --on-brand-2:  #96A5B3;
  --link:        #74B4EC;
  --good:        #5FC79A;
  --good-bg:     #12301F;
  --warn:        #E7B45C;
  --warn-bg:     #332513;
  --bad:         #EE8E7E;
  --bad-bg:      #331814;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .55);
  --shadow-3: 0 12px 34px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* --------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.017em;
  text-wrap: balance;
  font-weight: 700;
}

h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(23px, 2.7vw, 33px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
h4 { font-size: 15px; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; font-weight: 600; border-radius: var(--r);
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.num  { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- top bar ---- */

.topbar {
  background: var(--brand);
  color: var(--on-brand-2);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 7px; min-height: 34px;
}
.topbar ul { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar a { color: var(--on-brand-2); text-decoration: none; }
.topbar a:hover { color: var(--on-brand); text-decoration: underline; }
.topbar .tick { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .topbar .hide-sm { display: none; } }

/* -------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--brand-2);
  color: var(--on-brand);
  box-shadow: var(--shadow-2);
}
body::before {
  content: "";
  position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--brand);
  z-index: 70;
}
.header-main .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--on-brand);
}
.logo img { display: block; height: 40px; width: auto; max-width: 100%; }
.logo-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: var(--r);
  color: var(--accent-ink);
}
.logo-mark svg { width: 24px; height: 24px; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b {
  font-family: var(--font-display); font-weight: 800;
  font-size: 21px; letter-spacing: -0.025em;
}
.logo-text span {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-brand-2); font-weight: 500;
}

.header-search { display: flex; width: 100%; max-width: 560px; }
.header-search input {
  flex: 1 1 auto; min-width: 0;
  background: var(--bg);
  border: 1px solid transparent;
  border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  padding: 11px 14px;
  color: var(--ink);
  font-size: 14.5px;
}
.header-search input::placeholder { color: var(--ink-3); }
.header-search button {
  flex: 0 0 auto;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 0 var(--r) var(--r) 0;
  padding: 0 18px; font-weight: 650; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.header-search button:hover { background: var(--accent-dark); }

.header-tools { display: flex; align-items: center; gap: 6px; }
.tool {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; cursor: pointer;
  color: var(--on-brand); text-decoration: none;
  padding: 8px 11px; border-radius: var(--r);
  font-size: 13.5px;
}
.tool:hover { background: rgba(255, 255, 255, .09); }
.tool svg { width: 21px; height: 21px; flex: 0 0 21px; }
.tool-label { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.tool-label small { color: var(--on-brand-2); font-size: 11px; }
.tool-label b { font-weight: 600; font-size: 13px; }
.cart-tool { position: relative; }
.cart-count {
  position: absolute; top: 1px; left: 19px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 10px; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none !important; }

.nav-toggle { display: none; }

/* ----------------------------------------------------------------- nav ---- */

.site-nav { background: var(--brand-3); border-top: 1px solid rgba(255, 255, 255, .06); }
.site-nav .wrap { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav .wrap::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; white-space: nowrap;
  padding: 12px 14px;
  color: var(--on-brand); text-decoration: none;
  font-size: 13.5px; font-weight: 550;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav .nav-spacer { margin-left: auto; }
.site-nav .nav-deal { color: var(--accent); font-weight: 650; }

@media (max-width: 900px) {
  .header-main .wrap { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-search { order: 3; grid-column: 1 / -1; max-width: none; }
  .tool-label { display: none; }
  .cart-count { left: 19px; }
}

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  background: var(--brand); color: var(--on-brand-2);
  margin-top: 64px; font-size: 14px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding-block: 52px 40px;
}
.site-footer h4 {
  color: var(--on-brand); font-size: 12px; letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 15px; font-weight: 650;
}
.site-footer a { color: var(--on-brand-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer li + li { margin-top: 9px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 20px 28px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-chip {
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-sm);
  padding: 3px 9px; font-size: 11px; letter-spacing: .04em;
  font-weight: 600; color: var(--on-brand-2);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--font-body); font-weight: 650; font-size: 14.5px;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .12s, border-color .12s, color .12s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--brand-2); color: var(--on-brand); }
.btn-dark:hover { background: var(--brand-3); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn-line { background: transparent; color: var(--on-brand); border-color: rgba(255, 255, 255, .3); }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- hero ----- */

.hero {
  background: var(--brand);
  color: var(--on-brand);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}
/* Faint workshop hazard stripe, bottom-left, as texture not decoration. */
.hero::after {
  content: "";
  position: absolute; left: -10%; bottom: -70px; width: 60%; height: 150px;
  background: repeating-linear-gradient(-55deg, var(--accent) 0 14px, transparent 14px 34px);
  opacity: .07; pointer-events: none;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  padding-block: 62px 66px; align-items: start; position: relative; z-index: 1;
}
.hero h1 { color: #FFF; max-width: 15ch; }
.hero-lede { color: var(--on-brand-2); font-size: 17px; max-width: 48ch; margin-top: 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.hero-points li { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--on-brand); }
.hero-points svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 17px; }

/* The registration lookup — the one piece of real UK parts-counter hardware. */
.reg-panel {
  background: var(--brand-2);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-3);
}
.reg-panel h2 { color: #FFF; font-size: 20px; }
.reg-panel > p { color: var(--on-brand-2); font-size: 13.5px; margin: 8px 0 18px; }

.plate {
  display: flex; align-items: stretch;
  border-radius: 6px; overflow: hidden;
  border: 2px solid #0B0E11;
  background: #F6C500;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.plate-gb {
  flex: 0 0 42px;
  background: #063298; color: #FFF;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 7px; gap: 4px;
}
.plate-stars { font-size: 13px; line-height: 1; color: #F6C500; letter-spacing: -1px; }
.plate-gb b { font-size: 13px; letter-spacing: .04em; }
.plate input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 5.4vw, 36px); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #11151A;
  padding: 12px 10px; text-align: center;
}
.plate input::placeholder { color: rgba(17, 21, 26, .38); }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: 0 0 0 3px var(--accent), 0 2px 0 rgba(0, 0, 0, .35); }

.reg-actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } }
.reg-actions .btn { flex: 1 1 auto; }
.reg-note { margin-top: 14px; font-size: 12.5px; color: var(--on-brand-2); }
.reg-note button {
  background: none; border: 0; color: var(--accent);
  cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline;
}
.reg-result {
  margin-top: 16px; padding: 13px 15px; border-radius: var(--r);
  font-size: 13.5px; display: flex; gap: 11px; align-items: flex-start;
}
.reg-result svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.reg-result.is-found { background: rgba(23, 112, 74, .18); color: #9FE3C2; border: 1px solid rgba(95, 199, 154, .35); }
.reg-result.is-missing { background: rgba(168, 41, 26, .16); color: #F2B3A8; border: 1px solid rgba(238, 142, 126, .3); }
.reg-result b { color: #FFF; display: block; }

.hero .wrap > * { min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn { flex: 0 1 auto; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 48px; }
  .hero h1 { max-width: none; }
}

/* ------------------------------------------------------------ sections ---- */

.section { padding-block: 60px; }
.section-sunk { background: var(--bg-sunk); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head p { color: var(--ink-3); margin: 7px 0 0; max-width: 60ch; }
.section-head a { font-weight: 600; white-space: nowrap; }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; padding: 0;
  max-width: none;
}
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px max(16px, env(safe-area-inset-left, 0px));
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.trust-item svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--ink); margin-top: 1px; }
.trust-item b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 650; }
.trust-item span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .trust .wrap { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
}

/* Category tiles */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 20px 18px;
  text-decoration: none; position: relative;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.cat-card:hover {
  border-color: var(--ink-3); box-shadow: var(--shadow-2); transform: translateY(-2px);
}
.cat-card svg { width: 30px; height: 30px; color: var(--ink); margin-bottom: 8px; }
.cat-card b { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 700; }
.cat-card span { font-size: 13px; color: var(--ink-3); }
.cat-card em {
  font-style: normal; font-size: 12px; color: var(--ink-3);
  margin-top: 10px; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------- product cards ---- */

.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .product-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .product-grid.cols-4 { grid-template-columns: 1fr; } }
.product-grid.is-list { grid-template-columns: 1fr; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

/* Product imagery sits on white in both themes, the way a parts catalogue
   shoots it. Until a photograph exists the tile is simply white. */
.shot {
  position: relative;
  display: block;
  background: #FFFFFF;
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10%;
}
.shot img[hidden] { display: none !important; }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .055em;
  text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm);
  background: var(--brand-2); color: #FFF;
}
.badge-save { background: var(--accent); color: var(--accent-ink); }
.badge-kit  { background: #1F5F9E; color: #FFF; }
.grade {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .055em;
  text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm); color: #FFF;
  background: var(--good);
}
.grade-b { background: #1F5F9E; }
.grade-c { background: var(--warn); }
.grade-list { margin-top: 14px; }
.grade-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.grade-list li:last-child { border-bottom: 0; }
.grade-list .grade { flex: 0 0 76px; text-align: center; }
.donor { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface, #fff); padding: 14px 16px 12px; }
.donor h3 { font-size: 15px; margin-bottom: 6px; }
.donor .spec-table { margin: 0; }
.donor p { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

.card-body { padding: 15px 15px 0; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.card-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.card-title { font-size: 15px; line-height: 1.34; font-weight: 600; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-sku { font-size: 12px; color: var(--ink-3); }
.card-donor { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

.stars { display: inline-flex; gap: 1px; color: var(--accent); }
.stars svg { width: 13px; height: 13px; }
.stars .off { color: var(--line-strong); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in  { color: var(--good); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--bad); }

.card-foot {
  padding: 13px 15px 15px; margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price b {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.price small { font-size: 11.5px; color: var(--ink-3); }
.price del { font-size: 12.5px; color: var(--ink-3); }
.card-foot .btn { flex: 0 0 auto; }

/* List view */
.is-list .card { flex-direction: row; align-items: stretch; }
.is-list .shot {
  flex: 0 0 200px; aspect-ratio: auto;
  border-radius: var(--r) 0 0 var(--r);
  border-bottom: 0; border-right: 1px solid var(--line);
}
.is-list .card-body { padding: 16px 18px; justify-content: center; }
.is-list .card-foot {
  flex-direction: column; align-items: flex-end; justify-content: center;
  border-left: 1px solid var(--line); flex: 0 0 200px; gap: 10px; padding: 16px 18px;
}
.is-list .card-foot .btn { width: 100%; }
@media (max-width: 720px) {
  .is-list .card { flex-direction: column; }
  .is-list .shot { flex: none; aspect-ratio: 4 / 3; border-radius: var(--r) var(--r) 0 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .is-list .card-foot { flex-direction: row; align-items: flex-end; border-left: 0; flex: none; }
  .is-list .card-foot .btn { width: auto; }
}

/* ---------------------------------------------------------- breadcrumbs --- */

.crumbs { padding-block: 16px; font-size: 13px; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------------------------------------------------------- shop layout --- */

.shop-layout {
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
  gap: 30px; align-items: start; padding-bottom: 56px;
}
@media (max-width: 960px) { .shop-layout { grid-template-columns: 1fr; gap: 18px; } }

.filters {
  position: sticky; top: 140px;
  max-height: calc(100vh - 160px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r);
}
@media (max-width: 960px) { .filters { position: static; max-height: none; overflow: visible; } }
.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.filters-head h2 { font-size: 15px; }
.filters-head button {
  background: none; border: 0; color: var(--link); cursor: pointer;
  font-size: 13px; padding: 2px 0; text-decoration: underline;
}
.fgroup { border-bottom: 1px solid var(--line); padding: 15px 16px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > h3 {
  font-size: 11.5px; letter-spacing: .085em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 650; margin-bottom: 11px;
  font-family: var(--font-body);
}
.fopt {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.fopt:hover { color: var(--ink); }
.fopt input { width: 16px; height: 16px; accent-color: var(--brand-2); flex: 0 0 16px; margin: 0; cursor: pointer; }
.fopt .count { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.frange { display: flex; align-items: center; gap: 9px; }
.frange input {
  width: 100%; min-width: 0; padding: 9px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); font-size: 14px;
}
.frange span { color: var(--ink-3); }

.mobile-filter-toggle { display: none; }
@media (max-width: 960px) {
  .mobile-filter-toggle { display: inline-flex; }
  .filters[hidden] { display: none !important; }
}

.shop-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 15px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.shop-toolbar .count { color: var(--ink-2); font-size: 14px; }
.shop-toolbar .count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.toolbar-right label { font-size: 13.5px; color: var(--ink-3); }
select.control, input.control {
  padding: 9px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: 14px;
}
.viewswitch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.viewswitch button {
  background: var(--bg); border: 0; padding: 8px 10px; cursor: pointer; color: var(--ink-3);
  display: grid; place-items: center;
}
.viewswitch button svg { width: 17px; height: 17px; display: block; }
.viewswitch button[aria-pressed="true"] { background: var(--brand-2); color: #FFF; }
@media (max-width: 620px) { .viewswitch { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 5px 7px 5px 13px;
  font-size: 13px; color: var(--ink-2);
}
.chip button {
  background: var(--line); border: 0; cursor: pointer; color: var(--ink-2);
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; line-height: 1; padding: 0;
}
.chip button:hover { background: var(--bad); color: #FFF; }

.empty {
  text-align: center; padding: 70px 20px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r);
}
.empty svg { width: 42px; height: 42px; color: var(--ink-3); margin-bottom: 14px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-3); max-width: 46ch; margin-inline: auto; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; padding: 9px 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--r); cursor: pointer; color: var(--ink-2); font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.pager button:hover:not([disabled]) { border-color: var(--ink-3); }
.pager button[aria-current="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #FFF; font-weight: 650; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }

/* Vehicle banner shown when a registration is active */
.vehicle-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--brand-2); color: var(--on-brand);
  border-radius: var(--r); padding: 13px 16px; margin-bottom: 16px;
}
.vehicle-bar .plate-mini {
  background: #F6C500; color: #11151A; border: 2px solid #0B0E11;
  border-radius: 4px; padding: 3px 10px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .05em; font-size: 15px;
}
.vehicle-bar b { color: #FFF; }
.vehicle-bar span { color: var(--on-brand-2); font-size: 13.5px; }
.vehicle-bar button {
  margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .3);
  color: var(--on-brand); border-radius: var(--r); padding: 7px 13px;
  cursor: pointer; font-size: 13px;
}
.vehicle-bar button:hover { background: rgba(255, 255, 255, .12); }

/* -------------------------------------------------------- product page ---- */

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding-bottom: 20px; }
@media (max-width: 940px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }

.gallery-main {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r);
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r);
  aspect-ratio: 1; cursor: pointer; padding: 0; position: relative; overflow: hidden;
}
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gallery-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.thumb-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; color: #6E7C8A; background: rgba(255,255,255,.9);
  padding: 3px 4px; text-align: center; letter-spacing: .03em;
}

.pdp-brandline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.brand-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .02em; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 3px 9px;
}
.pdp h1 { font-size: clamp(25px, 3.1vw, 35px); }
.pdp-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.pdp-summary { margin-top: 18px; font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }

.buybox {
  margin-top: 24px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
}
.buybox-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox-price b {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.028em; font-variant-numeric: tabular-nums;
}
.buybox-price del { color: var(--ink-3); font-size: 17px; }
.buybox-price .save {
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-sm);
  letter-spacing: .04em; text-transform: uppercase;
}
.buybox-vat { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.buybox-row { display: flex; gap: 12px; margin-top: 18px; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); }
.qty button {
  width: 42px; background: none; border: 0; cursor: pointer; color: var(--ink);
  font-size: 19px; line-height: 1; padding: 0;
}
.qty button:hover { background: var(--surface-2); }
.qty input {
  width: 54px; border: 0; border-inline: 1px solid var(--line-strong);
  text-align: center; background: transparent; font-weight: 650;
  font-variant-numeric: tabular-nums; padding: 11px 0;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number] { -moz-appearance: textfield; }
.buybox-row .btn { flex: 1 1 200px; }
.buybox-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 9px; align-items: flex-start; }
.buybox-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--ink-3); }

.fitment {
  margin-top: 20px; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.fitment h3 {
  font-size: 13px; padding: 11px 15px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); font-family: var(--font-body);
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 650;
}
.fitment ul { padding: 6px 15px 12px; }
.fitment li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.fitment li:last-child { border-bottom: 0; }
.fitment li svg { width: 15px; height: 15px; color: var(--good); flex: 0 0 15px; align-self: center; }
.fitment li b { color: var(--ink); font-weight: 600; }
.fitment li span { color: var(--ink-3); font-size: 13px; }
.fitment li.is-match { background: var(--good-bg); margin-inline: -15px; padding-inline: 15px; }

/* Detail tabs */
.tabs { margin-top: 48px; border-top: 1px solid var(--line); }
.tablist { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tablist button {
  background: none; border: 0; cursor: pointer;
  padding: 15px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-3);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding-block: 26px; }
.tabpanel[hidden] { display: none !important; }
.prose { max-width: 70ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.72; }

.spec-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th { color: var(--ink-3); font-weight: 500; width: 46%; }
.spec-table td { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table tr:nth-child(odd) { background: var(--surface-2); }

.oe-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.oe-num {
  font-family: var(--font-mono); font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 11px; color: var(--ink);
}

/* ------------------------------------------------------------ cart page --- */

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 342px; gap: 28px; align-items: start; padding-bottom: 56px; }
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.cart-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .shot { aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--line); }
.cart-line h3 { font-size: 15px; font-weight: 600; font-family: var(--font-body); line-height: 1.35; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; }
.cart-line-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.cart-line-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.cart-line-controls .qty button { width: 34px; font-size: 17px; }
.cart-line-controls .qty input { width: 44px; padding: 8px 0; }
.link-btn { background: none; border: 0; cursor: pointer; color: var(--ink-3); font-size: 13px; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--bad); }
.cart-line-price { text-align: right; }
.cart-line-price b { font-family: var(--font-display); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-line-price small { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 76px minmax(0, 1fr); }
  .cart-line-price { grid-column: 2; text-align: left; }
}

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: 140px; }
@media (max-width: 920px) { .summary { position: static; } }
.summary h2 { font-size: 18px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 14.5px; }
.summary-row span { color: var(--ink-3); }
.summary-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.summary-total span { color: var(--ink); font-weight: 650; font-size: 16px; }
.summary-total b { font-family: var(--font-display); font-size: 25px; letter-spacing: -0.02em; }
.summary .btn { margin-top: 16px; }
.summary-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.freeship { background: var(--good-bg); color: var(--good); border-radius: var(--r); padding: 11px 13px; font-size: 13px; margin-top: 14px; font-weight: 550; }

/* --------------------------------------------------------------- misc ----- */

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--warn-bg); border: 1px solid rgba(156, 98, 9, .28);
  border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; color: var(--warn);
}
.notice svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.notice b { display: block; }

.page-head { padding-block: 28px 24px; }
.page-head p { color: var(--ink-3); max-width: 66ch; margin-top: 10px; font-size: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.field select, .field input, .field textarea { min-width: 0; max-width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  padding: 11px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: 15px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field small { color: var(--ink-3); font-size: 12.5px; }

.toast {
  position: fixed; z-index: 120;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto; width: fit-content; max-width: 420px;
  background: var(--brand-2); color: #FFF;
  border-radius: var(--r); padding: 13px 18px;
  box-shadow: var(--shadow-3); font-size: 14px;
  display: flex; gap: 11px; align-items: center;
  transform: translateY(14px); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-on { opacity: 1; transform: translateY(0); }
.toast svg { width: 19px; height: 19px; color: var(--accent); flex: 0 0 19px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .cat-card:hover { transform: none; }
}

/* The eighth category tile is the way into the whole catalogue. */
.cat-card.is-all { background: var(--brand-2); border-color: var(--brand-2); }
.cat-card.is-all b { color: #FFF; }
.cat-card.is-all span, .cat-card.is-all em { color: var(--on-brand-2); }
.cat-card.is-all svg { color: var(--accent); }
.cat-card.is-all:hover { background: var(--brand-3); border-color: var(--brand-3); }

/* Buy box: quantity and the add button share a row, basket link sits under. */
.buybox-row .btn-primary { flex: 1 1 220px; }
.buybox-row .btn-ghost { flex: 1 1 100%; }

/* ------------------------------------------------------- trade account --- */

.price .locked { font-size: 15px; color: var(--ink-2); letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
.price small a { color: var(--link); }

.lockbox {
  margin-top: 24px; background: var(--brand-2); color: var(--on-brand);
  border-radius: var(--r); padding: 22px;
}
.lockbox h2 { color: #FFF; font-size: 21px; }
.lockbox p { color: var(--on-brand-2); margin: 8px 0 0; font-size: 14.5px; }
.lockbox .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.po-field { margin-top: 16px; }
.po-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.po-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.minorder { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: 11px 13px; font-size: 13px; margin-top: 14px; font-weight: 550; }
.terms-line { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.terms-line svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; }

.check-row { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; accent-color: var(--brand-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field .req { color: var(--bad); }
.acct-line { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.acct-line span { color: var(--ink-3); } .acct-line b { color: var(--ink); font-weight: 600; text-align: right; }

/* ------------------------------------------------------------ staff area -- */

.staff-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.staff-bar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.parts-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.parts-table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.parts-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.parts-table tr:last-child td { border-bottom: 0; }
.parts-table .thumb-cell { width: 64px; }
.parts-table .mini { width: 52px; height: 40px; background: #FFF; border: 1px solid var(--line); border-radius: 4px; display: block; object-fit: contain; }
.parts-table .mini.blank { display: block; }
.parts-table td b { color: var(--ink); font-weight: 600; }
.parts-table .row-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.btn-danger { background: var(--bad); color: #FFF; }
.btn-danger:hover { filter: brightness(.92); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; background: var(--good-bg); color: var(--good); }
.pill.low { background: var(--warn-bg); color: var(--warn); }
.pill.out { background: var(--bad-bg); color: var(--bad); }
.pill.new { background: var(--brand-2); color: #FFF; }

.part-form .field textarea { min-height: 96px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .form-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.fit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; max-height: 190px; overflow-y: auto; background: var(--bg); }
.upload { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.upload-preview { width: 168px; aspect-ratio: 4/3; background: #FFF; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; place-items: center; font-size: 12px; color: #6E7C8A; overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.form-msg { font-size: 13.5px; margin-top: 12px; }
.form-msg.err { color: var(--bad); } .form-msg.ok { color: var(--good); }
.staff-bar .field input { width: 100%; }
.upload > div:last-child { min-width: 0; flex: 1 1 200px; } .upload input[type=file] { width: 100%; }

.parts-table .mini-wrap { display: block; width: 52px; height: 40px; background: #FFF; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.parts-table .mini { width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; }
