/* ========================================
   THEAEROHOUSE — Design System
   theaerohouse.co.uk
======================================== */

:root {
  --red: #e31b23;
  --red-dark: #b81219;
  --red-glow: rgba(227,27,35,0.3);
  --bg: #080808;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --bg-modal: #0f0f0f;
  --border: #222222;
  --border-light: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --gold: #c9a84c;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 24px rgba(227,27,35,0.25);
  --transition: 0.2s ease;
  --nav-h: 70px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }

/* ========================================
   LAYOUT
======================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

/* ========================================
   HEADER / NAV
======================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(8,8,8,0.99); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: white;
}
.nav-logo .logo-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-search-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.nav-search-btn:hover { background: rgba(255,255,255,0.1); }
.nav-cart-btn {
  position: relative;
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.nav-cart-btn:hover { background: rgba(255,255,255,0.1); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: white;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-count.visible { display: flex; }
.nav-cta {
  padding: 8px 18px; border-radius: 8px;
  background: var(--red); color: white;
  font-size: 0.85rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

/* Search Bar Overlay */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  padding: 80px 24px 40px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.search-overlay.open { transform: translateY(0); }
.search-overlay-inner { max-width: 700px; margin: 0 auto; }
.search-overlay input {
  width: 100%; padding: 18px 24px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); color: white;
  font-size: 1.25rem;
}
.search-overlay input:focus { outline: none; border-color: var(--red); }
.search-overlay-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.5rem; color: var(--text-muted);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.search-overlay-close:hover { color: white; }

/* ========================================
   HERO
======================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 40%, #1a0505 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 50%, rgba(227,27,35,0.08) 0%, transparent 70%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(227,27,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,27,35,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(227,27,35,0.12); border: 1px solid rgba(227,27,35,0.25);
  font-size: 0.8rem; font-weight: 600; color: var(--red);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.hero h1 { margin-bottom: 24px; max-width: 700px; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; }
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 64px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat { }
.hero-stat .number {
  font-size: 2rem; font-weight: 800; color: white;
  letter-spacing: -0.04em;
}
.hero-stat .number span { color: var(--red); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Plate Search in Hero */
.hero-plate-search {
  display: flex; align-items: stretch; gap: 0;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.plate-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  background: #f5d000; color: #000;
  font-weight: 900; font-size: 1.1rem;
  letter-spacing: 0.05em;
  min-width: 54px;
}
.hero-plate-search input {
  flex: 1; padding: 16px 16px;
  background: transparent; border: none;
  color: white; font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-plate-search input::placeholder { color: var(--text-dim); font-weight: 400; letter-spacing: 0.05em; text-transform: none; }
.hero-plate-search input:focus { outline: none; }
.hero-plate-search button {
  padding: 0 24px;
  background: var(--red); color: white;
  font-weight: 700; font-size: 0.9rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.hero-plate-search button:hover { background: var(--red-dark); }
.hero-plate-hint { font-size: 0.8rem; color: var(--text-dim); }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-red); }
.btn-secondary { background: rgba(255,255,255,0.06); color: white; border: 1px solid var(--border-light); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: white; border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: white; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; }

/* ========================================
   CARDS
======================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Product Card */
.product-card { position: relative; }
.product-card .product-image {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: #0e0e0e;
}
.product-card .product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card .product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-bestseller { background: var(--red); color: white; }
.badge-premium { background: #7c3aed; color: white; }
.badge-official { background: #1d4ed8; color: white; }
.badge-iconic { background: #c9a84c; color: #000; }
.badge-luxury { background: #111; color: var(--gold); border: 1px solid var(--gold); }
.badge-popular { background: rgba(255,255,255,0.1); color: white; }
.badge-value { background: var(--success); color: white; }
.badge-new { background: var(--info); color: white; }

.product-card .product-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px);
  transition: all var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 34px; height: 34px;
  background: rgba(8,8,8,0.85); border: 1px solid var(--border-light);
  border-radius: 6px; color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.product-action-btn:hover { background: var(--red); border-color: var(--red); }
.product-action-btn.compare-active { background: var(--red); border-color: var(--red); }
.product-card .product-body { padding: 16px; }
.product-card .product-brand {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  color: var(--red); letter-spacing: 0.06em; margin-bottom: 4px;
}
.product-card .product-name {
  font-weight: 600; font-size: 0.92rem; line-height: 1.3;
  margin-bottom: 8px; color: white;
}
.product-card .product-fitment {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px;
}
.product-card .product-price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card .price { font-size: 1.15rem; font-weight: 700; color: white; }
.product-card .price-original {
  font-size: 0.85rem; color: var(--text-dim);
  text-decoration: line-through; margin-left: 6px;
}
.product-card .rating { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-muted); }
.product-card .rating .stars { color: #f59e0b; }
.product-card .add-cart-btn {
  width: 34px; height: 34px;
  background: var(--red); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: all var(--transition); flex-shrink: 0;
}
.product-card .add-cart-btn:hover { background: var(--red-dark); transform: scale(1.05); }

/* Brand Card */
.brand-card {
  padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  cursor: pointer;
}
.brand-card .brand-flag { font-size: 1.5rem; }
.brand-card .brand-name { font-weight: 700; font-size: 1rem; }
.brand-card .brand-specialty { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.brand-card .brand-tier {
  padding: 3px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.tier-luxury { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }
.tier-premium { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.tier-popular { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.tier-budget { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.brand-card:hover { border-color: var(--red); }
.brand-card:hover .brand-name { color: var(--red); }

/* ========================================
   SECTION HEADERS
======================================== */
.section-header { margin-bottom: 48px; }
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--red); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--red); }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; font-size: 1rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::before { display: none; }
.section-header.centered p { margin: 0 auto; }

/* ========================================
   FILTER BAR
======================================== */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.filter-group label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.filter-select {
  padding: 8px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: white; font-size: 0.875rem; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px; cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--red); }
.filter-search {
  flex: 2; min-width: 200px;
  position: relative;
}
.filter-search input {
  width: 100%; padding: 8px 12px 8px 36px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 6px; color: white; font-size: 0.875rem;
}
.filter-search input:focus { outline: none; border-color: var(--red); }
.filter-search .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.filter-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.filter-reset { font-size: 0.8rem; color: var(--red); white-space: nowrap; cursor: pointer; }

/* ========================================
   COMPARE BAR
======================================== */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(17,17,17,0.97);
  border-top: 1px solid var(--border-light);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner { max-width: 1440px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 16px; }
.compare-items { display: flex; gap: 12px; flex: 1; }
.compare-slot {
  width: 120px; height: 68px;
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.compare-slot.filled { border-style: solid; border-color: var(--red); }
.compare-slot img { width: 100%; height: 100%; object-fit: cover; }
.compare-slot .remove-compare {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.8); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; cursor: pointer;
}
.compare-slot-empty { font-size: 0.7rem; color: var(--text-dim); text-align: center; }
.compare-bar-actions { display: flex; gap: 10px; }
.compare-bar label { font-size: 0.8rem; color: var(--text-muted); }

/* ========================================
   FORMS
======================================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); color: white; font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--red);
}
.form-input::placeholder { color: var(--text-dim); }

/* ========================================
   PLATE SEARCH FULL
======================================== */
.plate-search-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
}
.plate-search-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius); padding: 4px;
  margin-bottom: 32px; width: fit-content;
}
.plate-tab {
  padding: 8px 20px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); cursor: pointer;
}
.plate-tab.active { background: var(--red); color: white; }
.plate-input-row {
  display: flex; align-items: stretch; max-width: 600px; border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid var(--border-light);
}
.plate-gb {
  background: #003189; color: white;
  padding: 0 14px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-align: center;
  min-width: 44px; flex-direction: column; gap: 2px;
}
.plate-gb .gb-stars { font-size: 0.55rem; letter-spacing: 0; color: #f5d000; }
.plate-gb .gb-text { color: #f5d000; font-size: 0.85rem; }
.plate-main-input {
  flex: 1; padding: 16px 20px;
  background: #f5d000; border: none;
  font-size: 1.6rem; font-weight: 900; letter-spacing: 0.15em;
  text-transform: uppercase; text-align: center; color: #000;
}
.plate-main-input:focus { outline: none; }
.plate-main-input::placeholder { color: rgba(0,0,0,0.35); font-weight: 700; }
.plate-search-btn {
  padding: 0 28px;
  background: var(--red); color: white;
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
  transition: background var(--transition);
}
.plate-search-btn:hover { background: var(--red-dark); }
.plate-result-box {
  margin-top: 20px; padding: 16px 20px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  display: none;
}
.plate-result-box.visible { display: block; }
.plate-result-box .result-vehicle { font-weight: 700; font-size: 1.1rem; }
.plate-result-box .result-details { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.manual-select-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 600px;
}

/* ========================================
   MODALS
======================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-modal); border: 1px solid var(--border-light);
  border-radius: 20px; padding: 32px; max-width: 480px; width: 90%;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-close { color: var(--text-muted); font-size: 1.2rem; transition: color var(--transition); }
.modal-close:hover { color: white; }

/* ========================================
   CART DRAWER
======================================== */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 3000;
  width: 400px; max-width: 100%;
  background: var(--bg-modal);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed; inset: 0; z-index: 2999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-brand { font-size: 0.72rem; color: var(--red); margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 24px; height: 24px; border-radius: 4px; background: rgba(255,255,255,0.06); color: white; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.cart-item-price { font-weight: 700; font-size: 0.95rem; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.cart-empty { padding: 48px 24px; text-align: center; color: var(--text-muted); }

/* ========================================
   TOAST
======================================== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 500;
  transform: translateX(120%); opacity: 0;
  transition: all 0.3s; min-width: 260px; box-shadow: var(--shadow);
}
.toast.visible { transform: translateX(0); opacity: 1; }
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: rgba(227,27,35,0.3); }
.toast.error .toast-icon { color: var(--red); }

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: var(--text-dim); }

/* ========================================
   PAGE BANNER
======================================== */
.page-banner {
  padding: calc(var(--nav-h) + 40px) 0 60px;
  background: linear-gradient(180deg, rgba(227,27,35,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ========================================
   TAGS
======================================== */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-red { background: rgba(227,27,35,0.1); color: var(--red); border-color: rgba(227,27,35,0.2); }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ========================================
   STAR RATING
======================================== */
.stars-display { display: flex; gap: 2px; }
.star-filled { color: #f59e0b; }
.star-empty { color: var(--border); }

/* ========================================
   DIVIDERS
======================================== */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0.4; }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.footer-brand .footer-logo span { color: var(--red); }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.social-btn:hover { background: var(--red); border-color: var(--red); color: white; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: white; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ========================================
   STICKY CTA BAR (mobile)
======================================== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: rgba(17,17,17,0.97); border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: none;
}
@media (max-width: 768px) { .sticky-cta { display: flex; gap: 12px; } }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-in { animation: fadeIn 0.4s ease forwards; }
.loading-spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ========================================
   PRODUCT DETAIL
======================================== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery .main-img {
  aspect-ratio: 4/3; background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px;
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-gallery .thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.product-gallery .thumb.active { border-color: var(--red); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price-block { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 24px 0; }
.product-info .big-price { font-size: 2rem; font-weight: 800; }
.product-info .big-price .original { font-size: 1.1rem; text-decoration: line-through; color: var(--text-dim); margin-left: 10px; }
.product-specs { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.spec-row { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row .spec-key { color: var(--text-muted); width: 140px; flex-shrink: 0; }
.spec-row .spec-val { font-weight: 500; }

/* ========================================
   COMPARE TABLE
======================================== */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.875rem; min-width: 200px; }
.compare-table thead th { background: var(--bg-card); font-weight: 700; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-table thead th:first-child { position: sticky; left: 0; background: var(--bg-card); z-index: 1; }
.compare-table tbody td:first-child { position: sticky; left: 0; background: var(--bg); color: var(--text-muted); font-weight: 500; z-index: 1; }
.compare-table .product-col-header { text-align: center; }
.compare-table .product-col-header img { width: 100%; max-width: 180px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); margin: 0 auto 8px; }
.compare-table .product-col-header .name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.compare-table .product-col-header .brand { font-size: 0.75rem; color: var(--red); }
.compare-best { color: var(--success); font-weight: 600; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ========================================
   TESTIMONIALS
======================================== */
.review-card { padding: 24px; }
.review-card .review-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 12px; }
.review-card .review-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; }
.review-card .reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.review-card .reviewer-name { font-weight: 600; font-size: 0.85rem; }
.review-card .reviewer-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ========================================
   HOW IT WORKS
======================================== */
.step-card { padding: 32px; text-align: center; position: relative; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: rgba(227,27,35,0.1); border: 1px solid rgba(227,27,35,0.2); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--red); margin: 0 auto 20px; }
.step-card h3 { margin-bottom: 12px; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .manual-select-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .compare-items { display: none; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-wide { padding: 0 16px; }
  .plate-search-section { padding: 24px 16px; }
}

/* ========================================
   MOBILE NAV DRAWER
======================================== */
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 1500;
  background: var(--bg-modal);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 80px 24px 24px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ========================================
   UTILITY
======================================== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.no-scroll { overflow: hidden; }
