/* ==========================================================================
   PARTSGRAM — Design System
   Aesthetic: Industrial-utilitarian. Canadian-clean. Trust over flash.
   Inspired by technical catalogs, not consumer ecommerce templates.
   ========================================================================== */

/* Fonts — distinctive but business-appropriate */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Colors — industrial blue + signal orange, no consumer pastels */
  --brand: #1E3A5F;         /* Deep navy — primary */
  --brand-mid: #2E75B6;     /* Industrial blue */
  --brand-light: #E8F1FA;   /* Pale blue bg */
  --accent: #F27E1F;        /* Signal orange — CTAs only */
  --accent-dark: #D86610;

  --ink: #0F172A;           /* Near-black text */
  --ink-soft: #334155;      /* Body text */
  --muted: #64748B;         /* Secondary text */
  --line: #E2E8F0;          /* Borders */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;       /* Section backgrounds */
  --bg-dark: #0F1E35;       /* Dark footer/bands */

  --success: #15803D;
  --warn: #B45309;
  --danger: #B91C1C;

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale — 8px grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radius — small, industrial */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Shadows — subtle, not puffy */
  --shadow-sm: 0 1px 2px rgba(15, 30, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 30, 53, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 30, 53, 0.12);

  /* Layout */
  --max-w: 1280px;
  --header-h: 140px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-mid); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: var(--s-4); }
.mono { font-family: var(--font-mono); }

/* Containers */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--s-5); }

section { padding: var(--s-8) 0; }
section.tight { padding: var(--s-7) 0; }
.section-dark { background: var(--bg-dark); color: #CBD5E1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-soft { background: var(--bg-soft); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--brand);
  color: #CBD5E1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.topbar a { color: #CBD5E1; }
.topbar a:hover { color: #fff; }
.topbar-badges { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.topbar-badges span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links { display: flex; gap: var(--s-4); }

.header-main {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-4) 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--brand);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 40px; height: 40px;
  background-image: url('../assets/logo-cube.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.logo-mark-dark {
  /* For dark footer: same image, works as-is since cube is cyan */
  width: 40px; height: 40px;
  background-image: url('../assets/logo-cube.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
/* PARTSGRAM wordmark style: "PARTS" in cyan, "GRAM" in grey (matches logo) */
.logo .wordmark-parts { color: #4FC3E0; }
.logo .wordmark-gram { color: #64748B; }

.search-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
  justify-self: center;
}
.search-wrap input {
  width: 100%;
  padding: 14px 54px 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}
.search-wrap button {
  position: absolute;
  right: 4px; top: 4px; bottom: 4px;
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.search-wrap button:hover { background: var(--brand-mid); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.header-action:hover { background: var(--bg-soft); color: var(--brand); }
.header-action svg { width: 20px; height: 20px; }
.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: 2px;
}

/* Nav */
.nav-main {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  display: inline-block;
  padding: 14px var(--s-4);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
}
.nav-inner a:hover { color: var(--brand-mid); }
.nav-inner a.is-active { color: var(--brand); }
.nav-inner a.is-active::after {
  content: "";
  position: absolute;
  left: var(--s-4); right: var(--s-4);
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.nav-inner a.nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* Mobile header */
.hamburger {
  display: none;
  background: var(--bg-soft);
  padding: 10px;
  border-radius: var(--r-sm);
}
.hamburger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto auto; gap: var(--s-3); }
  .search-wrap { grid-column: 1 / -1; order: 3; }
  .header-actions .action-label { display: none; }
  .hamburger { display: flex; }
  .nav-main { display: none; }
  .nav-main.is-open { display: block; }
  .nav-inner { flex-direction: column; overflow-x: visible; }
  .nav-inner a { border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .topbar-badges { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-mid); color: #fff; }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: #fff; color: var(--brand); border-color: #fff; }

.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ==========================================================================
   HERO (Homepage)
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  background:
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%),
    radial-gradient(ellipse at top right, rgba(46, 117, 182, 0.08), transparent 60%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.hero-inner {
  position: relative;
  max-width: 880px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--accent);
}
.hero h1 {
  margin-bottom: var(--s-4);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-mid), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto var(--s-6);
}
.hero-search {
  max-width: 660px;
  margin: 0 auto var(--s-5);
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 20px 160px 20px 26px;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: var(--r-md);
  font-size: 17px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s;
}
.hero-search input:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 4px rgba(46, 117, 182, 0.12), var(--shadow-md);
}
.hero-search button {
  position: absolute;
  right: 6px; top: 6px; bottom: 6px;
  padding: 0 22px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
}
.hero-search button:hover { background: var(--brand-mid); }
.hero-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.hero-tips {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: var(--s-5);
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tips span { display: inline-flex; align-items: center; gap: 6px; }
.hero-tips span::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-6);
  gap: var(--s-5);
  flex-wrap: wrap;
}
.section-head-text h2 { margin-bottom: 6px; }
.section-head-text p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
}
.category-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: all 0.2s ease;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-tile::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.category-tile:hover {
  border-color: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-tile:hover::after { transform: scaleX(1); }
.category-icon {
  width: 44px; height: 44px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  font-size: 24px;
}
.category-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.category-tile .count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   BRANDS STRIP
   ========================================================================== */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.brand-cell {
  background: #fff;
  padding: var(--s-5) var(--s-4);
  text-align: center;
  transition: background 0.15s;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-cell:hover { background: var(--bg-soft); color: var(--brand); }
.brand-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   VALUE CARDS (Why Partsgram)
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-5);
}
.value-card {
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
}
.value-card h4 {
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.value-card p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ==========================================================================
   FABRICATION PROMO (Split)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: var(--s-5); } }
.split-visual {
  background: var(--brand);
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: grid;
  place-items: center;
}
.split-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 24px),
    radial-gradient(ellipse at bottom right, rgba(242, 126, 31, 0.4), transparent 60%);
}
.split-visual .visual-content {
  position: relative;
  text-align: center;
  padding: var(--s-6);
}
.visual-content .big-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.visual-content .big-num-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}
.split-content h2 { margin-bottom: var(--s-3); }
.split-content p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: var(--s-4); }
.split-content ul { margin-bottom: var(--s-5); }
.split-content li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.split-content li:last-child { border-bottom: 0; }
.split-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   QUICK ORDER / ACCOUNT SPLIT
   ========================================================================== */
.two-col-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 800px) { .two-col-cta { grid-template-columns: 1fr; } }
.cta-card {
  padding: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.cta-card.dark {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.cta-card.dark h3 { color: #fff; }
.cta-card.dark p { color: rgba(255,255,255,0.8); }
.cta-card h3 { margin-bottom: var(--s-3); }
.cta-card p { margin-bottom: var(--s-4); }

.quick-order-mock {
  font-family: var(--font-mono);
  background: var(--bg-soft);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: var(--s-4);
  border: 1px dashed var(--line);
}
.quick-order-mock div { padding: 4px 0; color: var(--ink-soft); }
.quick-order-mock .prompt { color: var(--accent); }

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.industry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-4);
}
.industry-item {
  text-align: center;
  padding: var(--s-5) var(--s-3);
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.industry-item:hover { background: var(--brand-light); }
.industry-item .icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.industry-item .label {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px; left: 14px;
  font-family: Georgia, serif;
  font-size: 60px;
  color: var(--brand-light);
  line-height: 1;
  font-weight: 700;
}
.testimonial .quote {
  position: relative;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: var(--s-4);
  font-style: italic;
}
.testimonial .cite {
  font-size: 13px;
  color: var(--muted);
}
.testimonial .cite strong { color: var(--ink); font-style: normal; }

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: var(--s-3);
}

/* ==========================================================================
   FINAL BAND
   ========================================================================== */
.cta-band {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(242, 126, 31, 0.18), transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 60px 100%;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-7) 0;
  position: relative;
}
@media (max-width: 800px) { .cta-band-inner { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: var(--s-8) 0 var(--s-5);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.footer-col h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: var(--s-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul li { padding: 4px 0; }
.footer-col a { color: #94A3B8; }
.footer-col a:hover { color: #fff; }
.footer-brand {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: var(--s-3);
  display: flex; align-items: center; gap: 10px;
}
.footer-tagline { color: #94A3B8; margin-bottom: var(--s-4); line-height: 1.55; }
.footer-contact { font-size: 13px; }
.footer-contact div { padding: 3px 0; }
.footer-contact strong { color: #fff; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

.footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  color: #64748B;
  font-size: 13px;
}
.footer-bottom a { color: #94A3B8; margin-left: var(--s-4); }
.payment-logos { display: flex; gap: 8px; }
.payment-logos span {
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 600;
}

/* ==========================================================================
   PAGE HEADERS (inner pages)
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 8px; color: var(--line); }
.page-header h1 { margin-bottom: var(--s-3); }
.page-header .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 720px; }

/* ==========================================================================
   SHOP LAYOUT
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-6);
}
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.shop-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
}
.filter-group { margin-bottom: var(--s-5); }
.filter-group h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--s-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
}
.filter-group label:hover { color: var(--brand); }
.filter-group input[type="checkbox"] { accent-color: var(--brand); }
.filter-count { color: var(--muted); font-size: 12px; margin-left: auto; font-family: var(--font-mono); }

.shop-main .shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.shop-toolbar .result-count { color: var(--muted); font-size: 14px; font-family: var(--font-mono); }
.shop-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--brand-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}
.product-badge.oem { background: var(--brand); color: #fff; }
.product-badge.aftermarket { background: var(--accent); color: #fff; }

.product-visual {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.product-visual svg {
  width: 60%;
  height: 60%;
  opacity: 0.3;
  color: var(--brand);
}

.product-card .brand {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.product-card .pname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.35;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .part-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  margin-bottom: var(--s-3);
}
.product-card .stock {
  font-size: 12px;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stock.in-stock { color: var(--success); }
.stock.low { color: var(--warn); }
.stock.quote-only { color: var(--brand); }
.stock::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 99px;
  background: currentColor;
}
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.product-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.product-card .price small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-body);
}

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.pd-gallery {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: var(--s-7);
}
.pd-gallery svg { width: 60%; height: 60%; color: var(--brand); opacity: 0.35; }
.pd-info .brand {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.pd-info h1 { font-size: 1.85rem; margin-bottom: var(--s-3); }
.pd-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--r-sm);
}
.pd-meta-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.pd-meta-item .val {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
}
.pd-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.pd-price small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; font-family: var(--font-body); }

.qty-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.qty-control {
  display: flex;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qty-control button {
  width: 42px; height: 42px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  transition: background 0.15s;
}
.qty-control button:hover { background: var(--bg-soft); }
.qty-control input {
  width: 60px;
  text-align: center;
  border: 0;
  border-left: 2px solid var(--line);
  border-right: 2px solid var(--line);
  font-weight: 600;
  font-size: 16px;
}
.qty-control input:focus { outline: none; }

.pd-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }

.fits-models {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}
.fits-models summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-display);
}
.fits-models-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-3);
}
.fits-models-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s-5);
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-soft);
  width: 40%;
  font-weight: 500;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.form-grid.full { grid-template-columns: 1fr; }
.field { margin-bottom: var(--s-4); }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field label .req { color: var(--danger); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.form-card h3 {
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--s-5);
}

@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Side-by-side layout for form pages */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-6);
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form-aside {
  background: var(--brand-light);
  border-radius: var(--r-md);
  padding: var(--s-5);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
}
.form-aside h4 {
  color: var(--brand);
  margin-bottom: var(--s-3);
}
.form-aside ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}
.form-aside ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.form-aside ul li:last-child { border-bottom: 0; }

/* ==========================================================================
   PROSE (About, FAQ, content pages)
   ========================================================================== */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: var(--s-4); }
.prose h2 { margin-top: var(--s-7); margin-bottom: var(--s-4); }
.prose h3 { margin-top: var(--s-5); margin-bottom: var(--s-3); }
.prose ul, .prose ol { margin-bottom: var(--s-4); padding-left: 24px; }
.prose ul li, .prose ol li {
  padding: 6px 0;
  color: var(--ink-soft);
  list-style: disc;
}
.prose ol li { list-style: decimal; }
.prose strong { color: var(--ink); }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: var(--s-4) 0;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .a {
  padding: 0 0 var(--s-4) 0;
  color: var(--ink-soft);
}

/* ==========================================================================
   CART / ACCOUNT
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-6);
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cart-table th {
  background: var(--bg-soft);
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.cart-table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: 0; }
.cart-item-row {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.cart-item-vis {
  width: 64px; height: 64px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--ink-soft);
}
.summary-row.total {
  border-top: 2px solid var(--ink);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.25rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-5 { margin-top: var(--s-5); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.hide-on-mobile { }
@media (max-width: 700px) { .hide-on-mobile { display: none; } }

/* Print */
@media print {
  .header-main, .nav-main, .topbar, footer, .cta-band { display: none; }
}

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.5s ease-out both;
}
.fade-up:nth-child(2) { animation-delay: 0.05s; }
.fade-up:nth-child(3) { animation-delay: 0.1s; }
.fade-up:nth-child(4) { animation-delay: 0.15s; }
