/* ===========================================================================
   JapanPartsLK — storefront styles
   Industrial precision × Japanese engineering. Gunmetal steel + rationed
   Hinomaru red, mono part numbers, blueprint-grid motif, sharp corners.
   Tokens & component language ported from the JapanPartsLK design system.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Saira:wght@500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Steel / gunmetal neutrals */
  --steel-0:#fff; --steel-50:#f4f5f7; --steel-100:#e4e7ea; --steel-200:#c7ccd2;
  --steel-300:#a1a8b1; --steel-400:#7a828d; --steel-500:#565f6a; --steel-600:#3d454e;
  --steel-700:#2b3138; --steel-800:#1f242a; --steel-900:#15181c; --steel-950:#0e1013;

  /* Hinomaru red */
  --red-50:#fdf1f1; --red-100:#fbe3e4; --red-200:#f6c2c5; --red-400:#e24450;
  --red-500:#d11f2a; --red-600:#b01620; --red-700:#8e1218;

  /* Amber accent */
  --amber-50:#fef8e9; --amber-100:#fceecf; --amber-400:#f4b23e; --amber-500:#e8950f; --amber-600:#c77a0a;
  /* Steel blue / green */
  --blue-50:#eef5fc; --blue-500:#2e7bd0; --blue-600:#1f5fa6;
  --green-50:#ecf8f1; --green-100:#d8f0e2; --green-500:#2a9d63; --green-600:#1f7a4d;

  /* Semantic */
  --surface-page:var(--steel-50); --surface-card:var(--steel-0); --surface-inverse:var(--steel-950);
  --text-strong:var(--steel-950); --text-body:var(--steel-700); --text-muted:var(--steel-500);
  --text-faint:var(--steel-400); --text-on-dark:var(--steel-50); --text-on-dark-muted:var(--steel-300);
  --brand:var(--red-500); --brand-hover:var(--red-600); --brand-press:var(--red-700);
  --brand-tint:var(--red-50); --on-brand:var(--steel-0);
  --accent:var(--amber-500);
  --border-subtle:var(--steel-100); --border-default:var(--steel-200); --border-strong:var(--steel-300);
  --border-inverse:var(--steel-700); --focus-ring:color-mix(in srgb, var(--red-500) 45%, transparent);
  --grid-line:color-mix(in srgb, var(--steel-400) 18%, transparent);

  /* Type */
  --font-display:'Saira','Arial Narrow',system-ui,sans-serif;
  --font-body:'Hanken Grotesk',system-ui,-apple-system,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',monospace;

  /* Radii — sharp & mechanical */
  --radius-xs:2px; --radius-sm:4px; --radius-md:6px; --radius-lg:10px; --radius-pill:999px;

  /* Elevation */
  --shadow-xs:0 1px 0 rgba(14,16,19,.04),0 1px 2px rgba(14,16,19,.06);
  --shadow-sm:0 1px 2px rgba(14,16,19,.08),0 2px 4px rgba(14,16,19,.05);
  --shadow-md:0 2px 4px rgba(14,16,19,.08),0 6px 14px rgba(14,16,19,.08);
  --shadow-lg:0 8px 24px rgba(14,16,19,.12),0 2px 6px rgba(14,16,19,.08);

  /* Motion */
  --ease-standard:cubic-bezier(.2,0,0,1);
  --dur-fast:140ms;
  --transition-control:background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard),transform var(--dur-fast) var(--ease-standard);

  --maxw:1240px;
  --gutter:clamp(1rem,4vw,3rem);
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0;
  font-family:var(--font-body);
  font-size:.9375rem;
  line-height:1.5;
  color:var(--text-body);
  background:var(--surface-page);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5 {
  font-family:var(--font-display); color:var(--text-strong); line-height:1.18;
  letter-spacing:-.015em; margin:0; font-weight:700;
}
p { margin:0; }
a { color:var(--blue-600); text-decoration:none; }

.wrap { max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }

/* Brand atoms ------------------------------------------------------------- */
.jp-eyebrow {
  font-family:var(--font-mono); font-size:.72rem; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--text-muted);
}
.jp-partno {
  font-family:var(--font-mono); font-weight:500; letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.jp-blueprint {
  background-color:var(--surface-inverse);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:28px 28px;
}

/* ===========================================================================
   Header chrome — sticky dark bar with utility strip
   =========================================================================== */
.site-header { position:sticky; top:0; z-index:20; background:var(--steel-950); border-bottom:1px solid var(--steel-800); }
.util-strip { background:var(--brand); color:#fff; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.04em; }
.util-strip .wrap { display:flex; justify-content:space-between; align-items:center; padding-top:6px; padding-bottom:6px; gap:12px; }
.util-strip .util-right { opacity:.92; }

.header-bar { display:flex; align-items:center; gap:24px; padding-top:14px; padding-bottom:14px; }
.brand-logo { display:flex; flex:0 0 auto; }
.brand-logo img { height:38px; display:block; }
.header-bar .back-link {
  display:inline-flex; align-items:center; gap:6px; color:var(--steel-300);
  font-size:.84rem; font-weight:600;
}
.header-bar .back-link:hover { color:#fff; }

/* In-header search (product page / compact) */
.header-search { flex:1; max-width:460px; position:relative; }
.header-search input {
  width:100%; height:42px; padding:0 14px 0 40px;
  background:var(--steel-900); border:1.5px solid var(--steel-700); border-radius:var(--radius-sm);
  color:#fff; font-family:var(--font-mono); font-size:.85rem; letter-spacing:.02em; outline:none;
  transition:var(--transition-control);
}
.header-search input::placeholder { color:var(--steel-500); }
.header-search input:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--focus-ring); }
.header-search .search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--steel-400); pointer-events:none; }
.header-nav { display:flex; align-items:center; gap:4px; margin-left:auto; }
.header-nav a {
  font-size:.84rem; font-weight:600; color:var(--steel-300);
  padding:8px 12px; border-radius:var(--radius-md); transition:color .15s;
}
.header-nav a:hover, .header-nav a.active { color:#fff; text-decoration:none; }
.nav-divider { width:1px; height:24px; background:var(--steel-700); margin:0 6px; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px;
  border-radius:var(--radius-sm); color:var(--steel-300); transition:var(--transition-control); }
.icon-btn:hover { color:#fff; background:var(--steel-800); text-decoration:none; }

/* ===========================================================================
   Hero — dark blueprint with red glow
   =========================================================================== */
.hero { position:relative; overflow:hidden; color:#fff; background:var(--steel-950);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:32px 32px; border-bottom:1px solid var(--steel-800); }
.hero::before { content:""; position:absolute; top:-120px; right:-80px; width:380px; height:380px;
  border-radius:50%; background:radial-gradient(circle,rgba(209,31,42,.22),transparent 70%); pointer-events:none; }
.hero .wrap { position:relative; padding-top:64px; padding-bottom:72px; }
.hero-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
@media (max-width:860px){ .hero-grid { grid-template-columns:1fr; gap:32px; } }
.hero-actions { display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }

/* Fast-lookup card */
.lookup-card { background:var(--steel-900); border:1px solid var(--steel-700); border-top:3px solid var(--brand);
  border-radius:var(--radius-lg); padding:26px; }
.lookup-card .lk-eyebrow { font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--amber-400); margin-bottom:5px; }
.lookup-card h3 { font-family:var(--font-display); font-weight:700; font-size:1.38rem; color:#fff; margin:0 0 16px; }
.lookup-card .lk-fields { display:flex; flex-direction:column; gap:12px; }
.lookup-card input, .lookup-card select {
  height:46px; border-radius:var(--radius-sm); border:1.5px solid var(--steel-700); background:var(--steel-950);
  color:#fff; font-size:.95rem; padding:0 14px; outline:none; width:100%; transition:var(--transition-control); }
.lookup-card input { font-family:var(--font-mono); letter-spacing:.02em; }
.lookup-card input::placeholder { color:var(--steel-500); }
.lookup-card select { font-family:var(--font-body); color:var(--steel-300); cursor:pointer; appearance:none; -webkit-appearance:none;
  padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23a1a8b1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; }
.lookup-card input:focus, .lookup-card select:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--focus-ring); }
.lookup-card .lk-foot { font-size:.76rem; color:var(--steel-500); margin-top:14px; text-align:center; }
.lookup-card .lk-foot a { color:var(--red-400); }

/* Value props */
.value-props { padding-top:56px; padding-bottom:8px; }
.vp-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:860px){ .vp-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .vp-grid { grid-template-columns:1fr; } }
.vp-card { background:var(--surface-card); border:1px solid var(--border-subtle); border-top:3px solid var(--brand);
  border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-xs); }
.vp-card svg { color:var(--brand); margin-bottom:14px; }
.vp-card h3 { font-family:var(--font-display); font-weight:700; font-size:1.12rem; color:var(--text-strong); margin-bottom:7px; }
.vp-card p { font-size:.84rem; line-height:1.55; color:var(--text-muted); }

/* Section head (featured / catalog) */
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.section-head .eyebrow { font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-muted); margin-bottom:6px; }
.section-head h2 { font-family:var(--font-display); font-weight:800; font-size:2rem; letter-spacing:-.02em; color:var(--text-strong); }
.featured { padding-top:48px; }

/* CTA band */
.cta-band { background:var(--brand); border-radius:var(--radius-xl); padding:44px clamp(24px,5vw,56px);
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; margin:48px 0 0; }
.cta-band h2 { font-family:var(--font-display); font-weight:800; font-size:1.85rem; letter-spacing:-.02em; color:#fff; margin:0 0 6px; }
.cta-band p { font-size:1rem; color:rgba(255,255,255,.9); margin:0; }
.cta-wrap { max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono);
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--amber-400); margin-bottom:18px; }
.hero-eyebrow::before { content:""; width:22px; height:2px; background:var(--amber-400); }
.hero h2 { font-family:var(--font-display); font-weight:800; font-size:clamp(2.4rem,5vw,3.6rem);
  line-height:.98; letter-spacing:-.03em; color:#fff; }
.hero h2 .accent { color:var(--red-400); }
.hero p.sub { font-size:1.06rem; line-height:1.55; color:var(--steel-300); max-width:560px; margin:18px 0 0; }
.hero-stats { display:flex; gap:30px; margin-top:30px; flex-wrap:wrap; }
.hero-stat .n { font-family:var(--font-mono); font-weight:600; font-size:1.5rem; color:#fff; }
.hero-stat .l { font-size:.78rem; color:var(--steel-400); margin-top:3px; }

/* ===========================================================================
   Search / catalog controls
   =========================================================================== */
main.wrap { padding-top:28px; padding-bottom:60px; }

.vehicle-picker { margin:0 0 18px; }
.vehicle-bar-label, .filters-label { font-family:var(--font-mono); font-size:.7rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--text-faint); display:block; margin-bottom:10px; }

.make-logos { display:flex; flex-wrap:wrap; gap:8px; }
.make-chip {
  display:flex; align-items:center; gap:8px; padding:6px 12px 6px 8px;
  background:var(--surface-card); border:1px solid var(--border-default); border-radius:var(--radius-pill);
  color:var(--text-strong); font-size:.8rem; font-weight:600; cursor:pointer;
  transition:var(--transition-control);
}
.make-chip:hover { border-color:var(--border-strong); background:var(--steel-50); }
.make-chip.active { border-color:var(--brand); background:var(--brand-tint); color:var(--brand-press); }
.make-chip img { height:20px; width:auto; max-width:64px; object-fit:contain; background:#fff; border-radius:3px; padding:1px; }

.model-row { display:flex; align-items:center; gap:10px; margin-top:12px; flex-wrap:wrap; }
.model-row select, .sort-select {
  height:40px; padding:0 12px; font-size:.85rem; font-family:var(--font-body);
  color:var(--text-strong); background:var(--surface-card);
  border:1.5px solid var(--border-strong); border-radius:var(--radius-sm); outline:none;
  cursor:pointer; min-width:160px; transition:var(--transition-control);
}
.model-row select:focus, .sort-select:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--focus-ring); }
.model-row select:disabled { opacity:.5; cursor:default; }

/* Primary part-number lookup bar */
.search-bar { display:flex; gap:10px; margin:0 0 8px; }
#query {
  flex:1; height:48px; padding:0 16px; font-size:1rem; font-family:var(--font-mono);
  letter-spacing:.01em; color:var(--text-strong); background:var(--surface-card);
  border:1.5px solid var(--border-strong); border-radius:var(--radius-sm); outline:none;
  transition:var(--transition-control);
}
#query::placeholder { font-family:var(--font-body); letter-spacing:0; color:var(--text-faint); }
#query:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--focus-ring); }

/* Buttons -------------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:48px; padding:0 24px; font-family:var(--font-body); font-size:.97rem; font-weight:600;
  letter-spacing:.005em; line-height:1; border:1.5px solid transparent; border-radius:var(--radius-sm);
  cursor:pointer; white-space:nowrap; user-select:none; transition:var(--transition-control);
  -webkit-tap-highlight-color:transparent;
}
.btn:active { transform:translateY(1px); }
.btn-primary { background:var(--brand); color:var(--on-brand); border-color:var(--brand); box-shadow:var(--shadow-xs); }
.btn-primary:hover { background:var(--brand-hover); border-color:var(--brand-hover); }
.btn-primary:disabled { opacity:.5; cursor:default; }
.btn-secondary { background:var(--surface-card); color:var(--text-strong); border-color:var(--border-strong); }
.btn-secondary:hover { background:var(--steel-50); border-color:var(--steel-400); text-decoration:none; }
.btn-sm { height:40px; padding:0 16px; font-size:.85rem; }
#submit-btn { /* legacy id */ }

/* Image / availability filters — segmented pills */
.filters { display:flex; align-items:center; gap:8px; margin:16px 0 0; flex-wrap:wrap; }
.filter-btn {
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.04em; text-transform:uppercase;
  padding:7px 14px; color:var(--text-muted); background:var(--surface-card);
  border:1px solid var(--border-default); border-radius:var(--radius-pill); cursor:pointer;
  transition:var(--transition-control);
}
.filter-btn:hover { color:var(--text-strong); border-color:var(--border-strong); }
.filter-btn.active { color:#fff; background:var(--brand); border-color:var(--brand); }

.meta { font-size:.8rem; color:var(--text-muted); margin:14px 2px 0; }
.meta code { font-family:var(--font-mono); background:var(--steel-100); padding:1px 6px;
  border-radius:var(--radius-xs); color:var(--text-strong); }

.results-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  flex-wrap:wrap; margin:22px 2px 0; }
.status { font-family:var(--font-mono); font-size:.8rem; letter-spacing:.02em; color:var(--text-muted); min-height:20px; }

/* ===========================================================================
   Results grid + PartCard
   =========================================================================== */
.results {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(248px,1fr));
  gap:18px; margin:14px 0 0;
}

.card {
  display:flex; flex-direction:column; background:var(--surface-card);
  border:1px solid var(--border-subtle); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-xs); transition:var(--transition-control);
}
.card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.card a { color:inherit; text-decoration:none; display:flex; flex-direction:column; height:100%; }

.thumb {
  position:relative; aspect-ratio:4/3; background:var(--steel-100);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:20px 20px;
  display:flex; align-items:center; justify-content:center; color:var(--steel-400);
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.04em; text-transform:uppercase;
}
.thumb img { width:100%; height:100%; object-fit:cover; }
.thumb .source-tag {
  position:absolute; top:10px; left:10px; font-family:var(--font-mono); font-size:.62rem;
  font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#fff;
  background:rgba(14,16,19,.78); padding:3px 8px; border-radius:var(--radius-pill); backdrop-filter:blur(2px);
}

/* English placeholder card (replaces the store's generic JP text image) */
.ph-card { width:100%; height:100%; display:flex; flex-direction:column; text-align:center;
  font-family:var(--font-body); color:var(--text-strong);
  background:var(--steel-950);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:20px 20px; }
.ph-top, .ph-bottom { flex:1; display:flex; align-items:center; justify-content:center; padding:6px; }
.ph-top { font-family:var(--font-display); font-weight:800; color:#fff; font-size:.92rem;
  letter-spacing:.02em; text-transform:uppercase; }
.ph-mid { flex:1.3; display:flex; align-items:center; justify-content:center; padding:8px 12px; }
.ph-mid span { font-family:var(--font-mono); font-weight:500; font-size:.78rem; line-height:1.35; color:var(--steel-300); }
.ph-bottom { font-family:var(--font-mono); color:var(--amber-400); font-size:.62rem;
  letter-spacing:.16em; text-transform:uppercase; }
.ph-big .ph-top { font-size:1.6rem; }
.ph-big .ph-mid span { font-size:1.1rem; }
.ph-big .ph-bottom { font-size:.8rem; }

.card-body { padding:16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.maker-eyebrow { font-family:var(--font-mono); font-size:.66rem; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text-faint); }
.title-en { font-family:var(--font-display); font-weight:700; font-size:1.06rem; line-height:1.15;
  letter-spacing:-.01em; color:var(--text-strong); }
.title-ja { font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); letter-spacing:.01em; }

.vehicle-slot:empty { display:none; }
.vehicle { display:inline-flex; align-items:center; font-family:var(--font-mono); font-size:.68rem;
  font-weight:500; letter-spacing:.02em; color:var(--text-muted); background:var(--steel-50);
  border:1px solid var(--border-default); border-radius:var(--radius-xs); padding:2px 7px; }

/* Skeleton shimmer (light theme) */
.skeleton-lines { display:flex; flex-direction:column; gap:7px; padding:3px 0; }
.sk { height:14px; border-radius:var(--radius-xs);
  background:linear-gradient(90deg,var(--steel-100) 25%,var(--steel-50) 37%,var(--steel-100) 63%);
  background-size:400% 100%; animation:shimmer 1.3s ease-in-out infinite; }
.sk.short { width:60%; }
@keyframes shimmer { 0%{background-position:100% 0;} 100%{background-position:0 0;} }

.row { margin-top:auto; padding-top:12px; border-top:1px solid var(--border-subtle);
  display:flex; align-items:center; justify-content:space-between; gap:8px; }
.prices { display:flex; flex-direction:column; line-height:1.2; }
.price { font-family:var(--font-mono); font-weight:600; font-size:1.12rem; color:var(--text-strong);
  font-variant-numeric:tabular-nums; }
.price-jpy { font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); font-variant-numeric:tabular-nums; }

/* Status pill */
.badge { display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:.68rem;
  font-weight:500; letter-spacing:.04em; text-transform:uppercase; padding:4px 11px;
  border-radius:var(--radius-pill); white-space:nowrap; }
.badge::before { content:""; width:7px; height:7px; border-radius:50%; }
.badge.in { color:var(--green-600); background:var(--green-50); border:1px solid var(--green-500); }
.badge.in::before { background:var(--green-500); }
.badge.out { color:var(--steel-500); background:var(--steel-100); border:1px solid var(--steel-400); }
.badge.out::before { background:var(--steel-400); }

/* ===========================================================================
   Product detail
   =========================================================================== */
.detail { margin:28px 0 60px; }
.crumb { font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); letter-spacing:.04em;
  text-transform:uppercase; margin-bottom:18px; }
.crumb a { color:var(--text-muted); }
.detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:start; }
@media (max-width:760px){ .detail-grid { grid-template-columns:1fr; gap:28px; } }

.gallery-main {
  aspect-ratio:4/3; border:1px solid var(--border-subtle); border-radius:var(--radius-lg);
  overflow:hidden; display:flex; align-items:center; justify-content:center;
  background:var(--steel-100);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:26px 26px;
}
.gallery-main img { width:100%; height:100%; object-fit:contain; }
.gallery-main.no-img { color:var(--steel-400); font-family:var(--font-mono); font-size:.8rem;
  text-transform:uppercase; letter-spacing:.06em; }
.thumbs { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.thumb-pick { width:72px; height:60px; object-fit:cover; border-radius:var(--radius-md);
  border:1px solid var(--border-default); cursor:pointer; transition:var(--transition-control); }
.thumb-pick.active, .thumb-pick:hover { border:2px solid var(--brand); }

.detail-maker { font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-muted); margin-bottom:8px; }
.detail-title { font-family:var(--font-display); font-weight:800; font-size:2rem; line-height:1.08;
  letter-spacing:-.02em; color:var(--text-strong); margin:0 0 6px; }
.detail-title-ja { font-family:var(--font-mono); color:var(--text-faint); font-size:.8rem; margin-bottom:16px; }
.detail-price { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.detail-price .price { font-size:2.1rem; }
.detail-price .price-jpy { font-size:.85rem; }

.buy-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.qty { display:flex; align-items:center; height:48px; border:1.5px solid var(--border-strong);
  border-radius:var(--radius-sm); overflow:hidden; background:var(--surface-card); }
.qty button { width:42px; height:100%; background:transparent; color:var(--text-body);
  border:none; font-size:18px; cursor:pointer; transition:var(--transition-control); }
.qty button:hover { background:var(--steel-100); }
.qty input { width:48px; height:100%; text-align:center; background:transparent; color:var(--text-strong);
  border:none; border-left:1px solid var(--border-subtle); border-right:1px solid var(--border-subtle);
  font-family:var(--font-mono); font-weight:600; font-size:1rem; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.buy-btn { flex:1; min-width:200px; }
.share-btn { height:48px; padding:0 16px; background:var(--surface-card); color:var(--text-body);
  border:1.5px solid var(--border-strong); border-radius:var(--radius-sm); cursor:pointer;
  font-family:var(--font-body); font-weight:600; font-size:.9rem; transition:var(--transition-control); }
.share-btn:hover { border-color:var(--steel-400); background:var(--steel-50); }
.share-msg { color:var(--green-600); font-family:var(--font-mono); font-size:.76rem; height:18px; margin-top:8px; }

.spec-card { margin-top:22px; background:var(--surface-card); border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg); padding:6px 20px; box-shadow:var(--shadow-xs); }
.specs h3, .variants h3, .desc h3, .recommended h3 {
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-faint); font-weight:500; margin:0 0 12px; }
.specs table { width:100%; border-collapse:collapse; font-size:.88rem; }
.specs th, .specs td { text-align:left; padding:11px 0; border-bottom:1px solid var(--border-subtle); vertical-align:top; }
.spec-card .specs th:last-child, .spec-card .specs td:last-child {}
.specs tr:last-child th, .specs tr:last-child td { border-bottom:none; }
.specs th { color:var(--text-muted); font-weight:500; width:40%; font-family:var(--font-body); }
.specs td { color:var(--text-strong); font-family:var(--font-mono); letter-spacing:.01em; }

.variants, .desc { margin-top:24px; }
.variants ul { list-style:none; padding:0; margin:0; }
.variants li { display:flex; align-items:center; gap:10px; justify-content:space-between;
  padding:11px 0; border-bottom:1px solid var(--border-subtle); font-size:.88rem; color:var(--text-strong); }
.prices-inline { display:flex; align-items:baseline; gap:8px; }
.prices-inline .price { font-size:.95rem; }
.desc-body { font-size:.92rem; color:var(--text-body); line-height:1.7; }
.muted { color:var(--text-muted); }

.fitment { display:flex; gap:6px; flex-wrap:wrap; margin-top:16px; align-items:center; }
.fitment .fit-label { font-size:.78rem; color:var(--text-muted); margin-right:4px; }

.recommended { margin-top:56px; }
.recommended h3 { font-family:var(--font-display); font-weight:800; font-size:1.5rem;
  letter-spacing:-.02em; color:var(--text-strong); text-transform:none; margin-bottom:18px; }
.rec-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:18px; }
.rec-card { background:var(--surface-card); border:1px solid var(--border-subtle); border-radius:var(--radius-lg);
  overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column;
  box-shadow:var(--shadow-xs); transition:var(--transition-control); }
.rec-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.rec-thumb { aspect-ratio:4/3; background:var(--steel-100);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size:18px 18px;
  display:flex; align-items:center; justify-content:center; color:var(--steel-400);
  font-family:var(--font-mono); font-size:.66rem; text-transform:uppercase; }
.rec-thumb img { width:100%; height:100%; object-fit:cover; }
.rec-title { font-family:var(--font-display); font-weight:700; font-size:.9rem; padding:12px 12px 4px; line-height:1.2; }
.rec-price { font-family:var(--font-mono); font-weight:600; font-size:.9rem; padding:0 12px 12px;
  color:var(--text-strong); display:flex; align-items:baseline; gap:6px; }
.rec-price .price-jpy { font-size:.7rem; }

/* ===========================================================================
   Footer — dark
   =========================================================================== */
.site-footer { background:var(--steel-950); color:var(--steel-300); margin-top:64px; }
.footer-top { display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:32px;
  padding-top:48px; padding-bottom:28px; }
@media (max-width:680px){ .footer-top { grid-template-columns:1fr; gap:24px; } }
.footer-top img { height:40px; margin-bottom:14px; }
.footer-blurb { font-size:.85rem; line-height:1.6; max-width:300px; color:var(--steel-400); }
.footer-col h4 { font-family:var(--font-mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--steel-500); font-weight:500; margin-bottom:14px; }
.footer-col a { display:block; color:var(--steel-300); font-size:.85rem; margin-bottom:9px; }
.footer-col a:hover { color:#fff; text-decoration:none; }
.footer-bottom { border-top:1px solid var(--steel-800); }
.footer-bottom .wrap { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  padding-top:16px; padding-bottom:16px; font-family:var(--font-mono); font-size:.72rem; color:var(--steel-500); }

/* Header auth CTA */
.header-nav .signin { color:var(--steel-300); font-size:.84rem; font-weight:600; padding:8px 4px 8px 10px; }
.header-nav .signin:hover { color:#fff; text-decoration:none; }
.avatar-pill { display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  background:transparent; border:1px solid var(--steel-700); border-radius:var(--radius-pill);
  padding:4px 12px 4px 4px; transition:var(--transition-control); }
.avatar-pill:hover { background:var(--steel-800); text-decoration:none; }
.avatar-pill .avatar { width:30px; height:30px; border-radius:50%; background:var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:.8rem; }
.avatar-pill .avatar-label { font-family:var(--font-body); font-size:.81rem; font-weight:600; color:#fff; }

/* ===========================================================================
   Account dashboard (signed-in, profile-aware)
   =========================================================================== */
.acct-band { background:var(--steel-950); color:#fff;
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size:28px 28px; }
.acct-band .wrap { padding-top:34px; padding-bottom:0; }
.acct-id-row { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.acct-avatar { width:64px; height:64px; border-radius:var(--radius-md); background:var(--brand);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display);
  font-weight:800; font-size:1.6rem; color:#fff; flex:0 0 auto; }
.acct-id { flex:1; min-width:200px; }
.acct-name-row { display:flex; align-items:center; gap:10px; margin-bottom:5px; flex-wrap:wrap; }
.acct-name-row h1 { font-family:var(--font-display); font-weight:800; font-size:1.6rem; letter-spacing:-.01em; color:#fff; margin:0; }
.acct-meta { font-family:var(--font-mono); font-size:.78rem; color:var(--steel-400); }
.acct-stats { display:flex; gap:40px; padding:24px 0 30px; flex-wrap:wrap; }
.acct-stat .n { font-family:var(--font-mono); font-weight:600; font-size:1.6rem; color:#fff; white-space:nowrap; }
.acct-stat .l { font-size:.78rem; color:var(--steel-400); margin-top:2px; white-space:nowrap; }

/* dark badges in the band */
.acct-badge { display:inline-flex; align-items:center; font-family:var(--font-body); font-size:.7rem;
  font-weight:600; padding:3px 9px; border-radius:var(--radius-pill); }
.acct-badge.brand { background:var(--brand); color:#fff; }
.acct-badge.success { background:var(--green-50); color:var(--green-600); }

/* demo profile switcher */
.profile-switcher { display:inline-flex; align-items:center; gap:10px; background:var(--steel-900);
  border-radius:var(--radius-sm); padding:5px 6px 5px 12px; }
.profile-switcher .ps-label { font-family:var(--font-mono); font-size:.62rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--steel-400); }
.profile-switcher .ps-group { display:flex; background:var(--steel-800); border-radius:var(--radius-xs); padding:3px; }
.profile-switcher button { font-family:var(--font-body); font-size:.76rem; font-weight:600; cursor:pointer;
  padding:5px 12px; border:none; border-radius:var(--radius-xs); background:transparent; color:var(--steel-300);
  transition:var(--transition-control); }
.profile-switcher button.active { background:var(--brand); color:#fff; }
.btn-inverse { background:var(--steel-0); color:var(--steel-950); border-color:var(--steel-0); }
.btn-inverse:hover { background:var(--steel-100); }

/* body */
.acct-body { display:grid; grid-template-columns:1fr 360px; gap:32px; align-items:start;
  padding-top:32px; padding-bottom:12px; }
@media (max-width:880px){ .acct-body { grid-template-columns:1fr; } }
.acct-main { display:flex; flex-direction:column; gap:28px; }
.acct-side { display:flex; flex-direction:column; gap:20px; }
.acct-sec-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.acct-h2 { font-family:var(--font-display); font-weight:800; font-size:1.31rem; color:var(--text-strong); }

/* list card (requests / orders) */
.list-card { background:var(--surface-card); border:1px solid var(--border-subtle); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-xs); }
.list-row { display:flex; align-items:center; gap:16px; padding:14px 18px; border-bottom:1px solid var(--border-subtle); }
.list-row:last-child { border-bottom:none; }
.list-row .grow { flex:1; min-width:0; }
.list-row .li-part { font-weight:600; font-size:.9rem; color:var(--text-strong); margin-bottom:3px; }
.list-row .li-part .qty { font-family:var(--font-mono); font-size:.68rem; color:var(--text-muted);
  background:var(--steel-100); padding:1px 6px; border-radius:var(--radius-xs); margin-left:8px; }
.list-row .li-sub { font-family:var(--font-mono); font-size:.74rem; color:var(--text-faint); }
.list-row .li-date { font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); white-space:nowrap; }
.list-row .li-price { font-family:var(--font-mono); font-weight:600; font-size:.92rem; color:var(--text-strong); white-space:nowrap; }

/* order/request status pills */
.order-pill { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:.66rem;
  font-weight:500; letter-spacing:.04em; text-transform:uppercase; padding:3px 9px; border-radius:var(--radius-pill);
  white-space:nowrap; }
.order-pill::before { content:""; width:6px; height:6px; border-radius:50%; }
.order-pill.delivered { color:var(--green-600); background:var(--green-50); border:1px solid var(--green-500); }
.order-pill.delivered::before { background:var(--green-500); }
.order-pill.transit { color:var(--blue-600); background:var(--blue-50); border:1px solid var(--blue-500); }
.order-pill.transit::before { background:var(--blue-500); }
.order-pill.instock, .order-pill.order { color:var(--amber-600); background:var(--amber-50); border:1px solid var(--amber-500); }
.order-pill.instock::before, .order-pill.order::before { background:var(--amber-500); }

/* trade-credit panel */
.trade-card { background:var(--surface-card); border:1px solid var(--border-subtle); border-top:3px solid var(--brand);
  border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-xs); }
.acct-eyebrow { font-family:var(--font-mono); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-faint); margin:0 0 14px; }
.trade-row { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.trade-row .lbl { font-size:.81rem; color:var(--text-muted); }
.trade-row .val { font-family:var(--font-mono); font-weight:600; font-size:.92rem; color:var(--text-strong); }
.trade-bar { height:8px; border-radius:99px; background:var(--steel-100); overflow:hidden; margin-bottom:8px; }
.trade-fill { height:100%; background:var(--brand); }
.trade-foot { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:.72rem; color:var(--text-muted); }

/* side cards */
.side-card { background:var(--surface-card); border:1px solid var(--border-subtle); border-radius:var(--radius-lg);
  padding:24px; box-shadow:var(--shadow-xs); }
.side-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.side-card-head a { font-size:.78rem; font-weight:600; color:var(--brand); }
.veh-row { display:flex; align-items:center; gap:12px; padding:11px 12px; border:1px solid var(--border-subtle);
  border-radius:var(--radius-md); background:var(--steel-50); margin-bottom:10px; }
.veh-row:last-child { margin-bottom:0; }
.veh-icon { width:34px; height:34px; border-radius:var(--radius-sm); background:var(--steel-200); color:var(--steel-600);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.veh-row .v-name { font-weight:600; font-size:.84rem; color:var(--text-strong); }
.veh-row .v-sub { font-family:var(--font-mono); font-size:.72rem; color:var(--text-muted); }
.acct-links a { display:flex; align-items:center; justify-content:space-between; padding:11px 0;
  border-bottom:1px solid var(--border-subtle); color:var(--text-body); font-size:.875rem; }
.acct-links a:last-child { border-bottom:none; }
.acct-links a:hover { color:var(--text-strong); text-decoration:none; }

/* ===========================================================================
   Signup — profile-aware (Individual / Garage / Dealer)
   =========================================================================== */
.signup { padding-top:36px; padding-bottom:24px; }
.signup-head { max-width:560px; margin-bottom:28px; }
.signup-head h1 { font-family:var(--font-display); font-weight:800; font-size:2.4rem;
  letter-spacing:-.02em; color:var(--text-strong); margin:0 0 10px; }
.signup-head p { font-size:1rem; line-height:1.6; color:var(--text-muted); }
.form-eyebrow { font-family:var(--font-mono); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-faint); margin:0 0 16px; }
.form-eyebrow.brand { color:var(--brand); }

/* Account-type chooser */
.type-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; max-width:760px; margin-bottom:32px; }
@media (max-width:640px){ .type-grid { grid-template-columns:1fr; } }
.type-card { text-align:left; cursor:pointer; background:var(--surface-card);
  border:1.5px solid var(--border-default); border-top:3px solid var(--border-default);
  border-radius:var(--radius-lg); padding:20px 18px; box-shadow:var(--shadow-xs);
  transition:var(--transition-control); font-family:var(--font-body); }
.type-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-sm); border-top-color:var(--steel-400); }
.type-card.selected { border-color:var(--brand); border-top-color:var(--brand); box-shadow:var(--shadow-md); transform:none; }
.type-card .tc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.type-card .tc-icon { width:42px; height:42px; border-radius:var(--radius-md); display:flex; align-items:center;
  justify-content:center; background:var(--steel-100); color:var(--text-muted); transition:var(--transition-control); }
.type-card.selected .tc-icon { background:var(--brand); color:#fff; }
.type-card .tc-radio { width:20px; height:20px; border-radius:50%; flex:0 0 auto; display:flex; align-items:center;
  justify-content:center; border:1.5px solid var(--border-strong); background:transparent; transition:var(--transition-control); }
.type-card.selected .tc-radio { border-color:var(--brand); background:var(--brand); color:#fff; }
.type-card .tc-radio svg { display:none; }
.type-card.selected .tc-radio svg { display:block; }
.type-card .tc-label { font-family:var(--font-display); font-weight:700; font-size:1.18rem; color:var(--text-strong); }
.type-card .tc-tagline { font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-faint); margin:3px 0 8px; }
.type-card .tc-blurb { font-size:.82rem; line-height:1.5; color:var(--text-muted); }

/* Signup body layout */
.signup-grid { display:grid; grid-template-columns:1fr 340px; gap:40px; align-items:start; }
@media (max-width:860px){ .signup-grid { grid-template-columns:1fr; } }
.form-card { background:var(--surface-card); border:1px solid var(--border-subtle);
  border-top:3px solid var(--brand); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-xs); }
.form-section + .form-section { margin-top:22px; }

/* Form fields */
.field { display:flex; flex-direction:column; gap:6px; }
.field > label { font-family:var(--font-body); font-size:.81rem; font-weight:600; color:var(--text-strong); }
.field input, .field select {
  height:40px; padding:0 12px; font-family:var(--font-body); font-size:.875rem; color:var(--text-strong);
  background:var(--surface-card); border:1.5px solid var(--border-default); border-radius:var(--radius-sm);
  outline:none; transition:var(--transition-control); width:100%;
}
.field input.mono { font-family:var(--font-mono); letter-spacing:.02em; }
.field input::placeholder { color:var(--text-faint); }
.field input:focus, .field select:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--focus-ring); }
.field select { appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23565f6a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .field-grid { grid-template-columns:1fr; } }

/* Checkbox (native, brand accent) */
.check { display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  font-family:var(--font-body); font-size:.875rem; color:var(--text-body); }
.check input { width:18px; height:18px; accent-color:var(--brand); cursor:pointer; flex:0 0 auto; }

/* Switch toggle */
.switch { display:inline-flex; align-items:center; gap:10px; cursor:pointer;
  font-family:var(--font-body); font-size:.875rem; color:var(--text-body); }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.switch .track { position:relative; width:40px; height:23px; border-radius:999px; background:var(--steel-300);
  transition:var(--transition-control); flex:0 0 auto; }
.switch .track::after { content:""; position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:999px;
  background:#fff; box-shadow:var(--shadow-sm); transition:left var(--dur-fast) cubic-bezier(.34,1.4,.5,1); }
.switch input:checked + .track { background:var(--brand); }
.switch input:checked + .track::after { left:20px; }

/* Brand chips (multi-select tags) */
.chip-label { font-family:var(--font-body); font-size:.81rem; font-weight:600; color:var(--text-strong);
  display:block; margin-bottom:9px; }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.tag-chip { font-family:var(--font-body); font-size:.78rem; font-weight:500; padding:5px 11px;
  border-radius:var(--radius-sm); border:1px solid var(--border-default); background:var(--surface-card);
  color:var(--text-body); cursor:pointer; transition:var(--transition-control); }
.tag-chip:hover { border-color:var(--border-strong); }
.tag-chip.active { border-color:var(--brand); background:var(--red-50); color:var(--red-600); }

/* Submit row */
.form-submit { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:26px;
  padding-top:20px; border-top:1px solid var(--border-subtle); }
.form-submit .hint { font-size:.78rem; color:var(--text-faint); }

/* Reassurance aside */
.aside-panel { position:sticky; top:96px; }
.aside-card { background:var(--steel-950); border-radius:var(--radius-lg); border-top:3px solid var(--brand);
  padding:24px; color:#fff;
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size:24px 24px; }
.aside-card .aside-title { font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--amber-400); margin-bottom:18px; }
.aside-step { display:flex; gap:14px; padding-bottom:18px; }
.aside-step:last-child { padding-bottom:0; }
.aside-step .n { font-family:var(--font-mono); font-weight:600; font-size:.8rem; color:var(--brand); width:22px; flex:0 0 auto; }
.aside-step .t { font-family:var(--font-display); font-weight:600; font-size:.94rem; color:#fff; margin-bottom:3px; }
.aside-step .d { font-size:.8rem; line-height:1.5; color:var(--steel-400); }
.aside-foot { display:flex; align-items:center; gap:10px; margin-top:16px; padding:0 4px; }
.aside-foot .note { font-size:.78rem; color:var(--text-faint); }

/* Success state */
.signup-done { max-width:620px; margin:0 auto; padding:64px 24px 24px; text-align:center; }
.signup-done .check-circle { width:64px; height:64px; border-radius:50%; background:var(--green-50);
  display:flex; align-items:center; justify-content:center; margin:0 auto 22px; }
.signup-done h1 { font-family:var(--font-display); font-weight:800; font-size:2.1rem; letter-spacing:-.02em;
  color:var(--text-strong); margin:0 0 12px; }
.signup-done p { font-size:1rem; line-height:1.6; color:var(--text-muted); margin-bottom:26px; }
.signup-done .pill { display:inline-flex; font-family:var(--font-body); font-size:.78rem; font-weight:600;
  color:var(--red-600); background:var(--red-50); padding:4px 11px; border-radius:var(--radius-pill); margin-bottom:14px; }
.signup-done .actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
