/* MotorClad — Dark automotive aesthetic */
/* Fonts loaded via Google Fonts in layout */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --charcoal: #1a1a1a;
  --steel: #2d2d2d;
  --gunmetal: #4a4a4a;
  --silver: #8a8a8a;
  --chrome: #c0c0c0;
  --white: #f5f5f0;
  --oil: #1c1c1c;
  --flame: #e84a1c;
  --flame-glow: #ff6b3d;
  --amber: #f0a030;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .flame-mark {
  width: 20px;
  height: 20px;
  background: var(--flame);
  clip-path: polygon(50% 0%, 80% 30%, 100% 60%, 70% 100%, 30% 100%, 0% 60%, 20% 30%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--flame);
  color: var(--white) !important;
  padding: 8px 20px;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--flame-glow) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.2s ease;
}

/* ─── PAGE WRAPPER ─── */
.page {
  padding-top: 72px;
  min-height: 100vh;
}

/* ─── HERO ─── */
.hero {
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,74,28,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--flame);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.04em;
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--chrome);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--silver);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--flame);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--flame-glow);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,74,28,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ─── SECTION ─── */
.section {
  padding: 80px 48px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--white);
}

.section-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.section-link:hover {
  color: var(--white);
}

.section-link .arrow {
  transition: transform 0.2s ease;
}

.section-link:hover .arrow {
  transform: translateX(4px);
}

/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.product-card:hover {
  background: var(--steel);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--steel);
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.9);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
  filter: brightness(1);
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--steel) 0%, var(--charcoal) 100%);
}

.product-card-placeholder .placeholder-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gunmetal);
  letter-spacing: -0.04em;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--flame);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 6px;
}

.product-card-tagline {
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 20px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.product-links {
  display: flex;
  gap: 8px;
}

.product-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--chrome);
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.product-link-btn:hover {
  border-color: var(--flame);
  color: var(--flame);
  background: rgba(232,74,28,0.08);
}

/* ─── CATEGORY CARDS ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.category-card {
  background: var(--charcoal);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-card:hover {
  background: var(--steel);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.2s ease;
}

.category-card:hover .category-number {
  color: var(--gunmetal);
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.category-desc {
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.6;
  flex: 1;
}

.category-cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.category-card:hover .category-cta {
  gap: 12px;
}

/* ─── CATALOG PAGE ─── */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 72px);
}

.catalog-sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 48px 32px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gunmetal);
  margin-bottom: 24px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--silver);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--white);
  border-left-color: var(--gunmetal);
}

.sidebar-nav a.active {
  color: var(--white);
  border-left-color: var(--flame);
  background: rgba(232,74,28,0.06);
}

.catalog-main {
  padding: 48px;
}

.catalog-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.catalog-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 8px;
}

.catalog-desc {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.6;
}

/* Empty catalog state */
.catalog-empty {
  padding: 80px 48px;
  text-align: center;
}

.catalog-empty h2 {
  font-size: 1.5rem;
  color: var(--silver);
  margin-bottom: 8px;
}

.catalog-empty p {
  color: var(--gunmetal);
}

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  padding: 64px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-size: 0.78rem;
  color: var(--silver);
}

.product-breadcrumb a {
  transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
  color: var(--white);
}

.product-breadcrumb .sep {
  color: var(--gunmetal);
}

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

.product-detail-image {
  aspect-ratio: 1;
  background: var(--charcoal);
  overflow: hidden;
  position: relative;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--steel) 0%, var(--charcoal) 100%);
}

.product-detail-placeholder .pdp-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gunmetal);
  letter-spacing: -0.04em;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-detail-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
}

.product-detail-name {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--white);
}

.product-detail-tagline {
  font-size: 1rem;
  color: var(--chrome);
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid var(--flame);
}

.product-detail-description {
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.75;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.buy-btn-amazon {
  background: #ff9900;
  color: #000;
}

.buy-btn-amazon:hover {
  background: #ffb347;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,153,0,0.25);
}

.buy-btn-ebay {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.buy-btn-ebay:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.buy-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.buy-btn-label .via {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-transform: uppercase;
}

.buy-btn-label .platform {
  font-size: 0.88rem;
  font-weight: 700;
}

.buy-btn .arrow-icon {
  opacity: 0.7;
  font-size: 1.1rem;
}

/* ─── DIVIDER ─── */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* ─── BRAND BAR ─── */
.brand-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}

.brand-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gunmetal);
}

.brand-bar-dot {
  width: 4px;
  height: 4px;
  background: var(--flame);
  border-radius: 50%;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--gunmetal);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--silver);
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--gunmetal);
  text-align: right;
}

/* ─── ERROR PAGE ─── */
.error-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 16px;
}

.error-message {
  font-size: 1.1rem;
  color: var(--silver);
  margin-bottom: 32px;
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 60px 24px 60px;
  }

  .section {
    padding: 60px 24px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
    height: auto;
    padding: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 14px;
  }

  .sidebar-nav a.active {
    border-left: none;
    border-bottom-color: var(--flame);
  }

  .catalog-main {
    padding: 32px 24px;
  }

  .product-detail {
    padding: 32px 24px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
    gap: 32px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-legal {
    text-align: left;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-bar {
    padding: 20px 24px;
    gap: 32px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
}

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

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ─── UTILITY ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
