/* ============================================================
   MKIV.PARTS — Public Stylesheet (JDM Clean Theme)
   Engineered by Ghost Eagle Dynamics | v1.0.00
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #CC0000;
  --red-dark: #aa0000;
  --black:    #111111;
  --white:    #ffffff;
  --surface:  #F4F4F4;
  --border:   #E0E0E0;
  --text:     #111111;
  --muted:    #666666;
  --hint:     #999999;
  --radius:   6px;
  --radius-lg:10px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V50l28-16 28 16v34L28 100z' fill='none' stroke='%23000' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Safari lazy-load fix — scoped to product images only */
.gallery-main img,
.gallery-thumb img,
.part-card img,
.parts-grid img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
button { cursor: pointer; font-family: inherit; }

h1,h2,h3,h4 { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: 0.02em; line-height: 1.1; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section    {
  padding: 56px 0;
}
.section-sm { padding: 32px 0; }

/* ── MAINTENANCE ADMIN BAR ────────────────────────────────── */
.maintenance-admin-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ff0033;
  color: #ffffff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid #cc0000;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.6);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
}
.maintenance-admin-bar a {
  color: #ffff00;
  text-decoration: underline;
  margin-left: 12px;
  font-weight: 700;
}
.maintenance-admin-bar a:hover {
  color: #ffffff;
}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h, 72px);
  max-width: 1160px;
  margin: 0 auto;
  gap: 16px;
}

.site-logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--black); letter-spacing: -0.01em; }
.logo-dot  { color: var(--red); }
.logo-sub  { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: var(--red); text-transform: uppercase; margin-top: 2px; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--black);
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--red); text-decoration: none; }
.nav-link.active { color: var(--red); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 10px; right: 10px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ───────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 85vw);
  background: var(--black);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-inner { padding: 64px 24px 32px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--white); font-size: 20px;
  padding: 8px; line-height: 1;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-link {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid #222;
  text-decoration: none;
  display: block;
  min-height: 44px;
}
.mobile-nav-link:hover { color: var(--red); text-decoration: none; }
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  min-height: 44px;
  justify-content: center;
}
.btn-primary   { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; color: #fff; }
.btn-outline   { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; text-decoration: none; }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 11px; min-height: 36px; }
.btn-block { width: 100%; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
}
.badge-new       { background: var(--black); color: #fff; }
.badge-oem       { background: #1a3a6b; color: #fff; }
.badge-excellent { background: #1a6b2a; color: #fff; }
.badge-good      { background: #4a4a4a; color: #fff; }
.badge-fair      { background: #8a4a00; color: #fff; }
.badge-default   { background: var(--surface); color: var(--muted); }
.badge-available { background: #1a6b2a; color: #fff; }
.badge-sold      { background: var(--red); color: #fff; }
.badge-sold-out  { background: #333; color: #fff; }
.badge-pending   { background: #8a6a00; color: #fff; }
.badge-reserved  { background: #1a3a6b; color: #fff; }
.badge-draft     { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.badge-red       { background: var(--red); color: #fff; }
.badge-tt        { background: #1a3a6b; color: #fff; }
.badge-na        { background: #2a6b1a; color: #fff; }

/* Group buy status badges */
.gb-open     { background: var(--red); color: #fff; }
.gb-ending   { background: #d06000; color: #fff; }
.gb-soon     { background: #555; color: #fff; }
.gb-shipped  { background: #1a6b2a; color: #fff; }
.gb-closed   { background: #333; color: #fff; }
.gb-cancelled{ background: #888; color: #fff; }

/* ── SECTION HEADERS ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--black);
  white-space: nowrap;
}
.section-title span { color: var(--red); }
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-link { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  padding: 56px 20px 48px;
  position: relative;
  overflow: hidden;
}
.hero.no-bg-img::before {
  content: 'SUPRA';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 180px;
  color: #fff;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
/* ── HERO SLIDESHOW ─────────────────────────────────────── */

/* Transition effect keyframes — randomly selected per slide */
@keyframes hero-fade {
  from { opacity: 0; transform: scale(1); }
  to   { opacity: var(--hero-slide-opacity, 0.08); transform: scale(1); }
}
@keyframes hero-zoom-in {
  from { opacity: 0; transform: scale(1.14); }
  to   { opacity: var(--hero-slide-opacity, 0.08); transform: scale(1); }
}
@keyframes hero-zoom-out {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: var(--hero-slide-opacity, 0.08); transform: scale(1); }
}
@keyframes hero-slide-left {
  from { opacity: 0; transform: translateX(48px) scale(1.04); }
  to   { opacity: var(--hero-slide-opacity, 0.08); transform: translateX(0) scale(1); }
}
@keyframes hero-slide-right {
  from { opacity: 0; transform: translateX(-48px) scale(1.04); }
  to   { opacity: var(--hero-slide-opacity, 0.08); transform: translateX(0) scale(1); }
}
@keyframes hero-drift {
  0%   { opacity: 0;    transform: scale(1) translateY(0); }
  50%  { opacity: var(--hero-slide-opacity, 0.08); }
  100% { opacity: var(--hero-slide-opacity, 0.08); transform: scale(1.06) translateY(-12px); }
}

.hero-slide.fx-fade       { animation: hero-fade       2.2s ease forwards; }
.hero-slide.fx-zoom-in    { animation: hero-zoom-in    2.4s ease forwards; }
.hero-slide.fx-zoom-out   { animation: hero-zoom-out   2.4s ease forwards; }
.hero-slide.fx-slide-left { animation: hero-slide-left 2.0s ease forwards; }
.hero-slide.fx-slide-right{ animation: hero-slide-right 2.0s ease forwards; }
.hero-slide.fx-drift      { animation: hero-drift      8s ease forwards; }

.hero-slideshow {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 65%;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
  mask-image: linear-gradient(to right, transparent 0%, black 35%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}
.hero-slide.active {
  opacity: var(--hero-slide-opacity, 0.08);
}
@media (max-width: 768px) {
  .hero-slideshow {
    width: 100%;
    top: 0; left: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  }
}
.hero-inner { max-width: 1160px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 88px);
  color: #fff;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-size: 15px;
  color: #888;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
}
.hero-check {
  font-size: 12px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-check::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--black);
  border-top: 1px solid #1e1e1e;
}
.stats-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid #222;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* ── CATEGORY PILLS ───────────────────────────────────────── */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 4px;
}
.cat-pill {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  text-decoration: none;
}

/* ── PART CARDS ───────────────────────────────────────────── */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.part-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.part-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.part-card-img {
  position: relative;
  background: var(--surface);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.part-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.part-card:hover .part-card-img img { transform: scale(1.03); }
.part-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: #ccc;
  letter-spacing: 2px;
}
.part-card-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.part-card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.part-card-cat { font-size: 10px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.part-card-title { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 6px; flex: 1; }
.part-card-meta { font-size: 11px; color: var(--hint); margin-bottom: 10px; }
.part-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.part-card-price { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--black); line-height: 1; }
.part-card-price.contact { font-size: 13px; font-weight: 700; color: var(--red); }
.part-card-ship { font-size: 10px; font-weight: 600; color: var(--red); margin-top: 2px; }

/* ── PART DETAIL PAGE ─────────────────────────────────────── */
.part-detail { max-width: 1160px; margin: 0 auto; padding: 32px 20px 48px; }
.part-detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }

.part-gallery { position: relative; min-width: 0; overflow: hidden; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 60px; color: #ccc; }
.gallery-zoom-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; max-width: 100%; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--red); }

.part-info { display: flex; flex-direction: column; gap: 20px; }
.part-info-header {}
.part-info-cat { font-size: 11px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.part-info-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: 1.05; color: var(--black); margin-bottom: 10px; }
.part-info-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.part-price-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
}
.part-price-amount { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--black); line-height: 1; }
.part-price-amount.contact { font-size: 20px; font-weight: 700; color: var(--red); }
.part-price-ship { font-size: 12px; color: var(--muted); margin-top: 4px; }

.part-condition-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.part-condition-label { font-size: 11px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.part-condition-grade { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.part-condition-notes { font-size: 13px; color: var(--muted); line-height: 1.55; }

.part-fits-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.part-fits-label { font-size: 11px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.part-fits-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.part-actions { display: flex; flex-direction: column; gap: 10px; }

/* Shipping calculator */
.shipping-calc { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.shipping-calc-title { font-size: 12px; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.shipping-calc-row { display: flex; gap: 8px; }
.shipping-calc-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; }
.shipping-calc-row input:focus { outline: none; border-color: var(--red); }
.shipping-rates { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.shipping-rate-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
}
.shipping-rate-option:hover, .shipping-rate-option.selected { border-color: var(--red); background: #fff5f5; }
.shipping-rate-option input[type=radio] { accent-color: var(--red); }
.rate-label { flex: 1; font-size: 13px; font-weight: 500; }
.rate-price { font-size: 14px; font-weight: 700; color: var(--black); }
.rate-days  { font-size: 11px; color: var(--hint); }

/* ── GROUP BUY CARDS ──────────────────────────────────────── */
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.gb-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.gb-card:hover { border-color: var(--red); box-shadow: var(--shadow); text-decoration: none; }

.gb-card-header {
  background: var(--black);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gb-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: #fff; letter-spacing: 0.02em; line-height: 1.1; flex: 1; }
.gb-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.gb-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

.gb-progress {}
.gb-progress-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.gb-progress-row span { font-size: 11px; font-weight: 700; }
.gb-progress-row span:last-child { color: var(--red); }
.gb-bar-bg { background: var(--surface); border-radius: 4px; height: 8px; overflow: hidden; }
.gb-bar    { height: 8px; background: var(--red); border-radius: 4px; transition: width 0.6s ease; }

.gb-meta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.gb-meta { font-size: 11px; color: var(--hint); }
.gb-meta strong { color: var(--black); font-weight: 700; }

/* GB Detail page */
.gb-detail { max-width: 860px; margin: 0 auto; padding: 32px 20px 56px; }
.gb-hero-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; }
.gb-detail-title { font-family: 'Bebas Neue', sans-serif; font-size: 52px; color: var(--black); line-height: 1; margin-bottom: 8px; }
.gb-subtitle { font-size: 16px; color: var(--muted); margin-bottom: 16px; }

.gb-tracker-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
}
.gb-tracker-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hint); margin-bottom: 12px; }
.gb-tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.gb-tracker-stat { text-align: center; }
.gb-tracker-num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--black); line-height: 1; }
.gb-tracker-lbl { font-size: 10px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.08em; }
.gb-countdown { font-size: 13px; font-weight: 700; color: var(--red); text-align: center; margin-top: 8px; }

.gb-update-log { margin: 24px 0; }
.gb-update-log-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--black); margin-bottom: 12px; }
.gb-update {
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.gb-update-date { font-size: 11px; color: var(--hint); margin-bottom: 4px; }
.gb-update-msg  { font-size: 14px; color: var(--black); line-height: 1.55; }

/* GB Join Form */
.gb-join-form {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  margin-top: 24px;
}
.gb-join-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: #fff; margin-bottom: 16px; }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--black); }
.form-label.light { color: #aaa; }
.form-control {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--red); }
.form-control.dark { background: #1a1a1a; border-color: #333; color: #fff; }
.form-control.dark:focus { border-color: var(--red); }
.form-control.dark::placeholder { color: #555; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23666'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11px; color: var(--hint); }
.form-error { font-size: 12px; color: var(--red); font-weight: 600; }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ea; border: 1px solid #a8d5b5; color: #1a5c2a; }
.alert-error   { background: #fdecea; border: 1px solid #f5a8a8; color: #8b1c1c; }
.alert-info    { background: #e8f0fe; border: 1px solid #a8c0f5; color: #1a3a8b; }
.alert-warning { background: #fef8e6; border: 1px solid #f5d58a; color: #7a5000; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: var(--hint); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--hint); }
.breadcrumb a:hover { color: var(--red); text-decoration: none; }
.breadcrumb .sep { color: #ccc; }

/* ── TABS ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hint);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  transition: color var(--transition);
}
.tab-btn:hover { color: var(--black); text-decoration: none; }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.page-btn:hover  { border-color: var(--red); color: var(--red); text-decoration: none; }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: fixed; top: 16px; right: 20px;
  color: #fff; font-size: 28px; background: none; border: none;
  cursor: pointer; z-index: 1000; line-height: 1; padding: 8px;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 24px; background: rgba(255,255,255,0.1);
  border: none; cursor: pointer; padding: 16px 12px; border-radius: 4px;
  min-width: 44px; min-height: 44px;
  transition: background var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: #aaa; font-size: 13px; }

/* ── ABOUT/WHY BUY SECTION ────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.why-icon { font-size: 24px; margin-bottom: 10px; }
.why-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 5px; }
.why-desc  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── FAQ ACCORDION ────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--surface); }
.faq-q.open  { background: var(--black); color: #fff; }
.faq-q::after { content: '+'; font-size: 20px; line-height: 1; flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.faq-a.open { display: block; }

/* ── SOLD ARCHIVE ─────────────────────────────────────────── */
.sold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sold-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sold-card-title { font-size: 14px; font-weight: 700; color: var(--black); }
.sold-card-price { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--red); }
.sold-card-date  { font-size: 11px; color: var(--hint); }

/* ── SEARCH ───────────────────────────────────────────────── */
.search-bar { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 32px; }
.search-bar input { flex: 1; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: inherit; }
.search-bar input:focus { outline: none; border-color: var(--red); }
.search-result-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: var(--surface); color: var(--muted); vertical-align: middle; margin-left: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-wrap { max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; }
.contact-title { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--black); margin-bottom: 8px; }
.contact-sub   { font-size: 15px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero { background: var(--black); padding: 36px 20px 28px; border-bottom: 3px solid var(--red); }
.page-hero-inner { max-width: 1160px; margin: 0 auto; }
.page-hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 6vw, 60px); color: #fff; line-height: 1; }
.page-hero-title span { color: var(--red); }
.page-hero-sub { font-size: 14px; color: #777; margin-top: 6px; }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.filter-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-bar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; background: #fff; cursor: pointer; min-height: 38px; }
.filter-bar select:focus { outline: none; border-color: var(--red); }
.filter-bar input[type=search], .filter-bar input[type=text] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  min-height: 38px;
  min-width: 160px;
}
.filter-bar input:focus { outline: none; border-color: var(--red); }
.filter-count { font-size: 12px; color: var(--hint); margin-left: auto; white-space: nowrap; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--black); margin-bottom: 8px; }
.empty-state-desc  { font-size: 14px; color: var(--muted); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding-top: 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: 13px; color: #666; line-height: 1.6; max-width: 340px; margin-bottom: 12px; }
.footer-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-checks span { font-size: 11px; color: #555; font-weight: 600; }

.footer-nav { display: flex; gap: 40px; }
.footer-nav-col { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #555; margin-bottom: 4px; }
.footer-nav-col a { font-size: 13px; color: #888; text-decoration: none; }
.footer-nav-col a:hover { color: var(--red); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom span { font-size: 11px; color: #444; }
.footer-version { color: #333; }

/* ── PAYPAL BUTTON AREA ───────────────────────────────────── */
.paypal-btn-wrap { margin-top: 12px; }
.paypal-total-display { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; }
.paypal-total-label { font-size: 13px; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: 0.06em; }
.paypal-total-amount { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--black); }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-red   { color: var(--red) !important; }
.text-muted { color: var(--muted) !important; }
.text-center{ text-align: center !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-2  { gap: 8px; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.honeypot { display: none !important; position: absolute; left: -9999px; }

/* ── MY GARAGE ───────────────────────────────────────────────── */
.garage-wrap { max-width: 800px; margin: 0 auto; padding: 40px 20px 80px; }

.garage-hero { text-align: center; margin-bottom: 32px; }
.garage-hero-icon { font-size: 48px; margin-bottom: 12px; }
.garage-title { font-family: 'Bebas Neue', sans-serif; font-size: 52px; color: #111; margin: 0 0 8px; }
.garage-sub { font-size: 14px; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }

.garage-add-card .garage-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 180px;
  gap: 14px;
  align-items: end;
}

.garage-vehicle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 240px;
  flex: 1;
  max-width: 320px;
  position: relative;
}
.garage-vehicle-icon { font-size: 28px; flex-shrink: 0; }
.garage-vehicle-info { flex: 1; }
.garage-vehicle-name { font-size: 14px; font-weight: 700; color: #111; }
.garage-vehicle-gen  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.garage-vehicle-remove {
  background: none; border: none; color: #ccc; cursor: pointer;
  font-size: 16px; padding: 4px; border-radius: 4px; transition: color .15s;
  flex-shrink: 0;
}
.garage-vehicle-remove:hover { color: var(--red); }

/* Part card position for badge overlay */
.part-card { position: relative; }

/* Garage filter banner */
#garage-filter-banner { flex-wrap: wrap; }

/* Selected fitment tag */
.selected-vehicle-tag,
.fitment-tag,
.vehicle-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff0f0;
    border: 1.5px solid #CC0000;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #CC0000;
    letter-spacing: 0.02em;
}

.selected-vehicle-tag .remove,
.fitment-tag .remove {
    color: #CC0000;
    opacity: 0.6;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.selected-vehicle-tag .remove:hover,
.fitment-tag .remove:hover {
    opacity: 1;
}

@media (max-width: 768px) {
  .garage-add-card .garage-selectors { grid-template-columns: 1fr; }
  .garage-vehicle-card { max-width: 100%; }
}

/* ── SOLD ARCHIVE ────────────────────────────────────────────── */
.sold-card {
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0.88;
  transition: opacity .2s, transform .2s;
}
.sold-card:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.sold-ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  background: var(--red);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 3px 12px 3px 10px;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
  z-index: 2;
}

/* ── VIEW ALL PARTS — Lux Shimmer Button ────────────────────── */
@keyframes lux-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn-view-all {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .12em;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    #aa0000 0%,
    #cc0000 40%,
    #ff6666 50%,
    #ffaaaa 53%,
    #ff6666 56%,
    #cc0000 65%,
    #aa0000 100%
  );
  background-size: 200% auto;
  animation: lux-shimmer 3s linear infinite;
  box-shadow: 0 4px 20px rgba(204,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(204,0,0,.45), 0 2px 8px rgba(0,0,0,.2);
  color: #fff;
  text-decoration: none;
}

.btn-view-all:active {
  transform: translateY(0);
}

/* ── NAV SIGN IN — auth link sits inside nav, inherits nav-link styles ── */
.nav-link--auth {
  margin-left: 16px;
  padding-left: 20px;
  border-left: 1px solid #E5E5E5;
}

/* ── CUSTOM 404 / ERROR PAGE ─────────────────────────────────── */
.error-page {
  padding: 100px 24px 140px;
  text-align: center;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.error-page .error-inner {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.error-page .error-code {
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-size: 200px !important;
  font-weight: 400 !important;
  line-height: 0.85 !important;
  color: #CC0000 !important;
  letter-spacing: 4px;
  margin: 0 0 8px;
  display: block;
  position: relative;
  text-shadow: 2px 2px 0 rgba(17, 17, 17, 0.08);
}

.error-page .error-divider {
  width: 80px;
  height: 3px;
  background: #111111;
  margin: 24px auto 28px;
  display: block;
}

.error-page .error-headline {
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-size: 48px !important;
  font-weight: 400 !important;
  color: #111111 !important;
  margin: 0 0 18px !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
}

.error-page .error-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  color: #555555 !important;
  max-width: 480px;
  margin: 0 auto 36px !important;
  line-height: 1.6;
}

.error-page .error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-page .error-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 2px solid #CC0000;
  min-height: 44px;
  cursor: pointer;
}

.error-page .error-actions .btn-primary {
  background: #CC0000;
  color: #FFFFFF;
}

.error-page .error-actions .btn-primary:hover {
  background: #A30000;
  border-color: #A30000;
  transform: translateY(-1px);
}

.error-page .error-actions .btn-secondary {
  background: transparent;
  color: #CC0000;
}

.error-page .error-actions .btn-secondary:hover {
  background: #CC0000;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .error-page {
    padding: 60px 20px 80px;
    min-height: 55vh;
  }
  .error-page .error-code {
    font-size: 120px !important;
    letter-spacing: 2px;
  }
  .error-page .error-headline {
    font-size: 32px !important;
    letter-spacing: 2px;
  }
  .error-page .error-text {
    font-size: 15px !important;
  }
  .error-page .error-actions {
    flex-direction: column;
    gap: 12px;
  }
  .error-page .error-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}


@media (max-width: 768px) {
  /* iOS input auto-zoom fix — 16px prevents zoom-on-focus without user-scalable=no */
  input, select, textarea {
    font-size: 16px !important;
  }
}
