/* ============================================================
   JUNCHI MOTORS JAPAN — Design System
   Japanese car export specialist · Aertssen-grade industrial
   Light base / heavy dark sections / safety orange
   ============================================================ */

:root {
  --orange:       #FF6B00;
  --orange-dark:  #E05A00;
  --ink:          #15181E;
  --ink-2:        #1D2129;
  --bg:           #F2F3F5;
  --card:         #FFFFFF;
  --text:         #262A31;
  --muted:        #6B7280;
  --line:         #DFE2E8;
  --font-head:    'Oswald', 'Barlow Semi Condensed', Arial, sans-serif;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
  --font-body:    'Barlow Semi Condensed', 'Segoe UI', Arial, sans-serif;
  --shadow:       0 2px 10px rgba(21, 24, 30, .07);
  --shadow-hover: 0 16px 40px rgba(21, 24, 30, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--orange); color: #fff; }

/* ---------------- Eyebrow / Section head ---------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--orange); }

.section { padding: 90px 0; position: relative; }
.section-head { margin-bottom: 46px; position: relative; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700; color: var(--ink);
  letter-spacing: 1.5px; text-transform: uppercase;
  line-height: 1.05; margin-top: 12px;
}
.section-more {
  position: absolute; right: 0; bottom: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
  border-bottom: 2px solid var(--orange); padding-bottom: 3px;
}
.section-more:hover { color: var(--orange); }

/* ---------------- Buttons (slanted, industrial) ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 34px;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 12.5px; }

/* ---------------- Top strip / Header ---------------- */

.top-strip {
  background: var(--orange); color: #fff;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0; text-align: center;
}
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 14px rgba(21, 24, 30, .06);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%;
  box-shadow: 0 1px 5px rgba(10, 12, 16, .28);
  flex: none;
}
.logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: 2px; line-height: 1.05; text-transform: uppercase; }
.logo-text small { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; letter-spacing: 3.5px; color: var(--muted); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  color: #555C67; font-family: var(--font-head);
  font-size: 14.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 18px; position: relative;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; background: var(--orange);
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn { position: relative; font-size: 22px; color: var(--ink); padding: 4px 6px; }
.cart-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--orange); color: #fff;
  font-family: var(--font-mono); font-size: 11px;
  min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; padding: 0 4px;
}
.nav-toggle { display: none; color: var(--ink); font-size: 26px; }

/* ---------------- Hero (Japan sourcing, dark showroom bg) ---------------- */

.hero {
  background: #0A0C10;
  color: #fff;
  position: relative; overflow: hidden;
  padding: 40px 0 76px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
  /* Fill the first screen exactly (below strip+header ≈ 104px) so the
     brand owns the initial viewport; svh handles mobile browser chrome. */
  min-height: calc(100vh - 104px);
  min-height: calc(100svh - 104px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 68%;
  animation: heroDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* readability scrim + slow light sweep */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 12, 16, .88) 0%, rgba(10, 12, 16, .55) 42%, rgba(10, 12, 16, .25) 70%, rgba(10, 12, 16, .45) 100%),
    linear-gradient(0deg, rgba(10, 12, 16, .55) 0%, transparent 30%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .10) 48%, transparent 58%);
  background-size: 250% 100%;
  animation: heroSweep 9s ease-in-out infinite;
}
@keyframes heroDrift {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.09) translateX(-1.5%); }
}
@keyframes heroSweep {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -40% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .hero-bg::before { animation: none; }
}
.hero-watermark {
  position: absolute; top: 4%; right: -2%;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(120px, 22vw, 320px);
  line-height: .85; letter-spacing: 4px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .10);
  text-transform: uppercase; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.hero-media-tag {
  position: absolute; left: 24px; bottom: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  color: rgba(255, 255, 255, .85); text-transform: uppercase;
  background: rgba(10, 12, 16, .55); padding: 6px 12px;
  backdrop-filter: blur(4px);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--orange);
  transition: transform .25s;
}
.hero-scroll:hover { transform: translateX(-50%) scale(1.18); }
/* bright band flows down the chevrons via the SVG gradient animation;
   glow makes the traveling light band pop against the dark hero */
.hero-scroll .chev-flow { filter: drop-shadow(0 0 4px rgba(255, 107, 0, .9)); }
/* reduced motion → hide the flow layer, keep the faint static arrows */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .chev-flow { display: none; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(46px, 5.9vw, 84px);
  line-height: .98; letter-spacing: 2px; text-transform: uppercase;
  margin: 18px 0 20px;
}
.hero h1 span { color: var(--orange); }
.hero-sub { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn-dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* Route graphic */
.route-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow);
  padding: 30px 30px 26px;
  font-family: var(--font-mono);
}
.route-card h3 {
  font-family: var(--font-head); font-size: 15px; letter-spacing: 3px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 20px; font-weight: 600;
}
.route-svg { width: 100%; height: auto; }
/* ---------------- Custom dropdown (replaces native select UI) ---------------- */

.cselect { position: relative; display: inline-block; min-width: 150px; }
.cselect select { display: none !important; }
.cselect-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); background-color: var(--bg);
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  cursor: pointer; user-select: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cselect-trigger::after {
  content: ''; flex-shrink: 0; width: 12px; height: 8px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1,1 L6,7 L11,1' fill='none' stroke='%23FF6B00' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .2s;
}
.cselect-trigger.placeholder { color: var(--muted); }
.cselect-trigger:hover { border-color: #B9BFC9; background-color: #fff; }
.cselect.open .cselect-trigger {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .16);
  background-color: #fff;
}
.cselect.open .cselect-trigger::after { transform: rotate(180deg); }
.cselect-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
  box-shadow: var(--shadow-hover);
  max-height: 264px; overflow-y: auto;
  display: none;
}
.cselect.open .cselect-list { display: block; animation: csel-in .15s ease; }
@keyframes csel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cselect-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text);
  cursor: pointer; border-bottom: 1px solid var(--bg);
}
.cselect-item:last-child { border-bottom: none; }
.cselect-item:hover { background: #FFF1E4; }
.cselect-item.active { color: var(--orange); font-weight: 700; background: #FFF8F2; }

/* width contexts */
.hero-quick .cselect { display: block; width: 100%; min-width: 0; }
.hero-quick .cselect-trigger { padding: 13px 14px; font-size: 14px; }
.filter-bar .cselect { min-width: 140px; }
.result-bar .cselect { min-width: 190px; }
.parts-side .cselect { display: block; width: 100%; min-width: 0; }

/* ---------------- Styled selects (custom chevron, no native look) ---------------- */

.select-chev {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1,1 L6,7 L11,1' fill='none' stroke='%23FF6B00' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.select-chev:hover { border-color: #B9BFC9 !important; background-color: #fff !important; }
.select-chev:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .16);
  background-color: #fff !important;
}

.hero-quick { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.hero-quick label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--muted); text-transform: uppercase; margin-bottom: -6px;
}
.hero-quick select {
  width: 100%;
  border: 1px solid var(--line); background-color: var(--bg);
  padding: 13px 14px; font-family: var(--font-mono); font-size: 14px;
  color: var(--text); outline: none;
}
.route-legend {
  display: flex; justify-content: space-between; margin-top: 18px;
  font-size: 12.5px; color: var(--muted); letter-spacing: 1px;
}
.route-legend strong { display: block; color: var(--ink); font-size: 16px; letter-spacing: 2px; }
.route-legend .port-b { text-align: right; }
.route-custom { margin: 14px 0 2px; font-size: 12px; letter-spacing: .4px; }
.route-custom a { color: var(--orange); text-decoration: none; border-bottom: 1px dashed rgba(255, 107, 0, .5); }
.route-custom a:hover { border-bottom-style: solid; }

/* ---------------- Model showcase (giant panels) ---------------- */

.showcase { background: var(--bg); }
.showcase-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 74vh; margin-bottom: 6px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.showcase-panel:nth-child(even) .showcase-media { order: 2; }
.showcase-media { position: relative; overflow: hidden; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.showcase-panel:hover .showcase-media img { transform: scale(1.04); }
.showcase-body {
  padding: clamp(40px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.showcase-index {
  font-family: var(--font-mono); color: var(--orange);
  font-size: 14px; letter-spacing: 4px;
}
.showcase-name {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, 7vw, 104px); line-height: .95; letter-spacing: 2px;
  margin: 14px 0 6px; color: var(--ink);
}
.showcase-tag { font-size: 19px; color: var(--muted); letter-spacing: .5px; }
.showcase-specs {
  display: flex; gap: 34px; margin: 30px 0 34px;
  font-family: var(--font-mono);
}
.showcase-specs div strong { display: block; color: var(--orange); font-size: 24px; letter-spacing: 1px; }
.showcase-specs div span { color: var(--muted); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; }
.showcase-body .btn { align-self: flex-start; }
.showcase-ghost {
  position: absolute; bottom: -4%; right: -1%;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(90px, 11vw, 170px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(21, 24, 30, .07);
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* ---------------- How it works ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.step {
  background: var(--card); padding: 38px 28px 34px; position: relative;
  transition: background .25s;
}
.step:hover { background: var(--ink); }
.step:hover .step-title { color: #fff; }
.step:hover .step-text { color: #AEB5C0; }
.step-num {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 3px;
  color: var(--orange); display: block; margin-bottom: 16px;
}
.step-num::after { content: ''; display: block; width: 40px; height: 3px; background: var(--orange); margin-top: 10px; }
.step-icon { font-size: 34px; margin-bottom: 14px; }
.step-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink);
  margin-bottom: 10px; transition: color .25s;
}
.step-text { font-size: 14.5px; color: var(--muted); transition: color .25s; }

/* ---------------- Stats band (skewed dark) ---------------- */

.stats-band {
  background: var(--ink); color: #fff;
  padding: 80px 0;
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  margin: -3vw 0;
  position: relative; z-index: 2;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { border-left: 3px solid var(--orange); padding-left: 22px; }
.stat strong {
  display: block;
  font-family: var(--font-head); font-size: clamp(38px, 4vw, 56px);
  font-weight: 700; color: var(--orange); line-height: 1;
}
.stat span {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); color: #8B929E;
  font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase;
}

/* ---------------- Car cards ---------------- */

.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.car-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.car-card {
  background: var(--card); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.car-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s; z-index: 3;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.car-card:hover::before { transform: scaleX(1); }
.car-card-media { position: relative; display: block; }
.car-card-media img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.badge-featured {
  position: absolute; top: 14px; left: 0;
  background: var(--orange); color: #fff;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px 5px 11px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.badge-eligible {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(21, 24, 30, .88); color: #7FE3A0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px;
  padding: 4px 9px; text-transform: uppercase;
}
.badge-year {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(21, 24, 30, .88); color: #fff;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  padding: 4px 10px;
}
.car-card-body { padding: 17px 19px 19px; display: flex; flex-direction: column; flex: 1; }
.car-title {
  font-size: 16.5px; font-weight: 700; color: var(--ink);
  line-height: 1.35; height: 2.7em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.car-card:hover .car-title { color: var(--orange); }
.car-price { margin: 9px 0 11px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.car-price em { font-family: var(--font-head); font-style: normal; font-size: 27px; letter-spacing: .5px; }
.car-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.car-meta li { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.car-meta li + li::before { content: ''; width: 1px; height: 10px; background: var(--line); margin: 0 8px; }
.car-card-foot {
  margin-top: auto; padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.car-model-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.fav-btn { font-size: 19px; color: #C2C8D0; line-height: 1; padding: 2px 4px; transition: transform .15s; }
.fav-btn:hover { transform: scale(1.2); }
.fav-btn.faved { color: var(--orange); }

/* ---------------- Stock page / filters ---------------- */

.page-head {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  color: var(--ink);
  padding: 56px 0 60px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 2px; text-transform: uppercase; line-height: 1;
  margin-top: 12px;
}
.page-head p { color: var(--muted); font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 2px; margin-top: 10px; text-transform: uppercase; }
.page-head .ghost {
  position: absolute; right: -1%; bottom: -18%;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(80px, 10vw, 150px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(21, 24, 30, .07);
  pointer-events: none; user-select: none;
}

.filter-toggle { display: none; }
.filter-bar {
  background: var(--card); box-shadow: var(--shadow);
  border-top: 4px solid var(--ink);
  padding: 20px 22px; margin: 30px 0;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.model-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 9px 20px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--bg); color: var(--text);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .2s, color .2s;
}
.pill:hover { background: #E7EAEE; }
.pill.active { background: var(--orange); color: #fff; }
.filter-bar select, .sort-select {
  border: 1px solid var(--line); background: var(--bg);
  padding: 10px 13px; font-family: var(--font-mono); font-size: 13px;
  color: var(--text); outline: none; min-width: 140px;
}
.filter-bar select:focus, .sort-select:focus { border-color: var(--orange); }
.filter-reset { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1px; color: var(--muted); text-decoration: underline; text-transform: uppercase; }
.filter-reset:hover { color: var(--orange); }
.result-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; font-family: var(--font-mono); font-size: 13.5px;
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
}
.result-bar em { color: var(--orange); font-style: normal; font-size: 19px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 90px 0;
  color: var(--muted); font-size: 18px;
}
.empty-state small { color: #9AA1AC; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 10px; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 13px;
  background: var(--card); color: var(--text);
  font-family: var(--font-mono); font-size: 14px; box-shadow: var(--shadow);
}
.pagination button:hover:not([disabled]) { background: var(--ink); color: #fff; }
.pagination button.active { background: var(--orange); color: #fff; }
.pagination button[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------------- Detail page ---------------- */

.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1px; color: var(--muted); margin: 26px 0; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--orange); }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.gallery-main img { width: 100%; box-shadow: var(--shadow); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumb { position: relative; opacity: .55; transition: opacity .2s; outline: 2px solid transparent; outline-offset: -2px; }
.thumb.active { opacity: 1; outline-color: var(--orange); }
.thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(21, 24, 30, .8); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px;
  padding: 4px 0; text-align: center; text-transform: uppercase;
}

.price-card { background: var(--card); color: var(--text); box-shadow: var(--shadow); padding: 30px; border-top: 4px solid var(--orange); }
.badge-featured-lg { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 2px; color: var(--orange); text-transform: uppercase; }
.price-card h1 { font-family: var(--font-head); font-size: 26px; letter-spacing: 1px; color: var(--ink); margin: 10px 0 18px; line-height: 1.25; text-transform: uppercase; }
.price-row { display: flex; align-items: baseline; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-now { color: var(--orange); font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.price-now em { font-family: var(--font-head); font-style: normal; font-size: 46px; line-height: 1; letter-spacing: 1px; }
.price-note-cnf { font-family: var(--font-mono); color: var(--muted); font-size: 12.5px; letter-spacing: 1px; margin-top: 8px; }
.key-specs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 24px; text-align: center; }
.key-specs strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.key-specs span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.price-card .btn + .btn { margin-top: 10px; }
.price-note { margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; color: var(--muted); text-align: center; text-transform: uppercase; }

.ship-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line); border: 2px solid var(--line);
  margin-top: 30px;
}
.ship-strip div {
  background: var(--card); padding: 18px 22px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  letter-spacing: 1px;
}
.ship-strip strong { display: block; color: var(--ink); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }

.detail-section { background: var(--card); box-shadow: var(--shadow); padding: 36px 38px; margin-top: 30px; }
.detail-section .section-head { margin-bottom: 22px; }
.detail-section .section-head h2 { font-size: 30px; }

/* Datasheet table (machinery spec-plate style, light) */
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; }
.spec-table th {
  width: 230px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink); background: #EEF0F4;
  border-right: 3px solid var(--orange);
}
.spec-table td { font-family: var(--font-mono); font-size: 15px; color: var(--text); letter-spacing: .5px; }
.spec-table tr:nth-child(even) td { background: var(--bg); }
.spec-table tr + tr td, .spec-table tr + tr th { border-top: 1px solid var(--line); }
.car-desc { font-size: 16.5px; line-height: 1.85; color: var(--text); }

/* ---------------- Parts shop ---------------- */

.parts-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.parts-side { background: var(--card); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 98px; border-top: 4px solid var(--orange); }
.parts-side h3 {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
.cat-item {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  padding: 12px 12px; font-size: 15px; font-weight: 600; color: var(--text);
  border-left: 3px solid transparent;
  transition: background .15s;
}
.cat-item small { font-family: var(--font-mono); color: var(--muted); font-weight: 400; }
.cat-item:hover { background: var(--bg); }
.cat-item.active { border-left-color: var(--orange); background: #FFF1E4; color: var(--orange); }
.parts-side select {
  width: 100%; margin-top: 14px;
  border: 1px solid var(--line); background: var(--bg);
  padding: 11px 12px; font-family: var(--font-mono); font-size: 13px; outline: none;
}

.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.part-card { background: var(--card); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.part-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.part-card-media { position: relative; }
.part-card-media img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.part-cat {
  position: absolute; top: 12px; left: 0;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  padding: 4px 13px 4px 10px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.part-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.part-card-body h3 { font-size: 16px; color: var(--ink); }
.part-fit { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; margin: 6px 0 13px; text-transform: uppercase; }
.part-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.part-price { color: var(--orange); font-family: var(--font-head); font-size: 23px; font-weight: 700; }
.part-price em { font-style: normal; font-family: var(--font-mono); font-size: 13px; margin-right: 2px; }
.part-stock { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; color: #9AA1AC; margin-top: 10px; text-transform: uppercase; }

/* ---------------- Cart drawer ---------------- */

.cart-overlay {
  position: fixed; inset: 0; background: rgba(15, 17, 22, .6);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 200;
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 94vw;
  background: var(--bg); z-index: 201;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .3, 1);
  display: flex; flex-direction: column;
  box-shadow: -16px 0 50px rgba(0, 0, 0, .3);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  background: var(--ink); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 3px solid var(--orange);
}
.cart-head h3 { font-family: var(--font-head); letter-spacing: 3px; font-size: 17px; text-transform: uppercase; font-weight: 700; }
.cart-head span { font-family: var(--font-mono); color: #8B929E; font-size: 13px; }
.cart-close { color: #fff; font-size: 19px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; color: var(--muted); padding: 80px 0; font-size: 16px; font-family: var(--font-mono); letter-spacing: 1px; }
.cart-item { display: flex; gap: 12px; background: var(--card); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.cart-item img { width: 92px; height: 60px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { color: var(--orange); font-family: var(--font-mono); font-size: 14px; margin: 3px 0 7px; }
.qty-ctrl { display: flex; align-items: center; gap: 2px; }
.qty-ctrl button { width: 25px; height: 25px; background: var(--bg); font-size: 14px; font-weight: 700; border: 1px solid var(--line); }
.qty-ctrl span { min-width: 32px; text-align: center; font-family: var(--font-mono); font-size: 14px; }
.cart-remove { width: auto !important; padding: 0 8px; margin-left: auto; color: var(--muted); font-size: 11.5px !important; font-weight: 400 !important; font-family: var(--font-mono); text-transform: uppercase; }
.cart-remove:hover { color: #D33; }
.cart-foot { background: var(--card); padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }
.cart-total strong { color: var(--orange); font-family: var(--font-head); font-size: 26px; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed; bottom: 36px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 14px 28px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 1px;
  opacity: 0; visibility: hidden; transition: all .25s; z-index: 300;
  border-left: 4px solid var(--orange);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  max-width: 90vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--ink); color: #8B929E; margin-top: 0; border-top: 4px solid var(--orange); }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px; padding: 60px 24px 46px;
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.8; }
.site-footer h4 {
  color: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer a { display: block; font-size: 14px; padding: 5px 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer p { font-size: 14px; padding: 3px 0; font-family: var(--font-mono); letter-spacing: .5px; }
.footer-bottom {
  border-top: 1px solid #282D37;
  text-align: center; padding: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  color: #5C636E; text-transform: uppercase;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
  .car-grid { grid-template-columns: repeat(3, 1fr); }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 991px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 90px; min-height: calc(100vh - 94px); min-height: calc(100svh - 94px); justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-panel { grid-template-columns: 1fr; min-height: 0; }
  .showcase-panel:nth-child(even) .showcase-media { order: 0; }
  .showcase-media img { aspect-ratio: 16 / 9; height: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .detail-grid { grid-template-columns: 1fr; }
  .car-grid, .car-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .parts-layout { grid-template-columns: 1fr; }
  .parts-side { position: static; }
  .ship-strip { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .top-strip { font-size: 10.5px; letter-spacing: 1px; padding: 7px 10px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 8px 24px 18px;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 18px 30px rgba(21, 24, 30, .1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 6px; border-top: 1px solid var(--line); }

  .hero-cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .showcase-specs { gap: 22px; flex-wrap: wrap; }
  .car-grid, .car-grid.cols-3, .part-grid { grid-template-columns: 1fr; }

  .filter-toggle {
    display: block; width: 100%; margin: 22px 0 0;
    background: var(--ink); color: #fff; padding: 15px;
    font-family: var(--font-head); font-size: 14px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  }
  .filter-bar { display: none; margin-top: 12px; }
  .filter-bar.open { display: flex; }
  .filter-bar select { flex: 1 1 45%; min-width: 0; }

  .result-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .key-specs { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .spec-table th { width: 130px; font-size: 11.5px; }
  .spec-table th, .spec-table td { padding: 12px 13px; }
  .detail-section { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; max-width: 100vw; }
}

/* ---------------- Auth pages (login / register) ---------------- */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  position: relative; overflow: hidden; padding: 40px 16px;
}
.auth-wrap .ghost {
  position: absolute; right: -2%; bottom: -10%;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(120px, 18vw, 260px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(21, 24, 30, .06);
  pointer-events: none; user-select: none;
}
.auth-card {
  background: var(--card); box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  padding: 44px 42px 36px; width: 100%; max-width: 420px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  position: relative; z-index: 1;
}
.auth-card h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 34px; letter-spacing: 2px; text-transform: uppercase;
  margin: 10px 0 24px;
}
.auth-card label {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  margin: 16px 0 6px;
}
.auth-card input {
  width: 100%; padding: 13px 14px; font-size: 16px;
  border: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-body); color: var(--text); outline: none;
}
.auth-card input:focus { border-color: var(--orange); background: #fff; }
.auth-card .btn { margin-top: 24px; }

/* Back-to-home entry on standalone auth pages */
.auth-back {
  position: absolute; top: 22px; left: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  color: var(--muted); text-decoration: none; text-transform: uppercase;
}
.auth-back:hover { color: var(--orange); }
.auth-back img { width: 26px; height: 26px; border-radius: 50%; }
.auth-err { color: #C62828; font-size: 14px; margin-top: 12px; min-height: 18px; font-family: var(--font-mono); }
.auth-alt { margin-top: 20px; text-align: center; font-size: 15px; color: var(--muted); }
.auth-alt a { color: var(--orange); font-weight: 700; margin-left: 6px; }

/* ---------------- Header: language toggle + auth area ---------------- */
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1px;
  padding: 6px 10px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--orange); color: var(--orange); }
.auth-area { display: flex; align-items: center; gap: 10px; }
.auth-link {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text);
  background: none; border: none; cursor: pointer; padding: 0;
}
.auth-link:hover { color: var(--orange); }
.auth-cta { color: var(--orange); }
.auth-user { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
