/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --border: #222;
  --radius: 8px;
  --max-width: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon { color: var(--accent); font-size: 1.4rem; }

nav { display: flex; gap: 2rem; }
nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--text); }

/* === Hero === */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* === Features === */
.features { padding: 4rem 0; border-top: 1px solid var(--border); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature h3 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: 0.9rem; }

/* === Vehicle Filter === */
.vehicle-filter { padding: 2rem 0 0; }

.filter-bar {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 107, 53, 0.08);
}


.badge-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: #666;
  transition: all 0.2s;
  text-transform: uppercase;
}

.filter-btn:hover .badge-text { color: #aaa; }
.filter-btn.active .badge-text { color: #e8e8e8; }

.filter-sub {
  font-size: 0.7rem;
  opacity: 0.5;
}

.filter-count {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Products === */
.products-preview, .products-list { padding: 4rem 0; }
.products-preview h2, .products-list h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  color: var(--text);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.product-image { aspect-ratio: 4/3; overflow: hidden; background: #111; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder, .product-placeholder-lg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--border);
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}
.product-placeholder-lg { aspect-ratio: 1; font-size: 5rem; }

.product-info { padding: 1.2rem; }
.product-info h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.product-vehicle { font-size: 0.8rem; color: var(--text-muted); }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-top: 0.5rem; }

.section-cta { text-align: center; margin-top: 2rem; }

/* === Product Detail === */
.product-detail { padding: 3rem 0; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-info h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin-bottom: 1rem; }
.product-oem, .product-material { color: var(--text-muted); font-size: 0.9rem; }
.product-price-lg { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 1rem 0; }
.product-description { margin: 1.5rem 0; color: var(--text-muted); line-height: 1.8; }
.product-meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.product-meta p { margin-bottom: 0.5rem; }

/* === Custom CTA === */
.custom-cta {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.custom-cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin-bottom: 1rem; }
.custom-cta p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

/* === Page Header === */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h3 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.5rem; }
.footer-grid h4 { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 0.85rem; display: block; margin-bottom: 0.3rem; }

.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { gap: 1rem; }
  nav a { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .site-header .container { flex-direction: column; gap: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
