/* racegearlab.com — Dark racing theme, mobile-first */

:root {
  /* Backgrounds */
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-elevated: #282828;

  /* Accent colors */
  --red: #ff3e3e;
  --red-dark: #cc1f1f;
  --red-glow: rgba(255, 62, 62, 0.15);
  --blue: #00d4ff;
  --blue-glow: rgba(0, 212, 255, 0.15);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --yellow: #facc15;
  --yellow-bg: rgba(250, 204, 21, 0.12);
  --orange: #f97316;
  --orange-bg: rgba(249, 115, 22, 0.12);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.12);

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #888888;
  --text-on-accent: #ffffff;

  /* Borders */
  --border: #2a2a2a;
  --border-hover: #3a3a3a;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(255, 62, 62, 0.2);

  /* Radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', var(--font);
  --max-w: 1200px;

  /* Tier colors */
  --tier-budget: #22c55e;
  --tier-budget-bg: rgba(34, 197, 94, 0.1);
  --tier-value: #3b82f6;
  --tier-value-bg: rgba(59, 130, 246, 0.1);
  --tier-pro: #f59e0b;
  --tier-pro-bg: rgba(245, 158, 11, 0.1);
  --tier-elite: #ef4444;
  --tier-elite-bg: rgba(239, 68, 68, 0.1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text-primary); }

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

/* ============ LAYOUT ============ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
}

/* ============ HEADER / NAV ============ */

.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-links a.active {
  color: var(--red);
}

.nav-arrow {
  font-size: 0.6em;
  margin-left: 2px;
  opacity: 0.5;
  transition: transform 0.2s;
}

/* ---- Mega-menu (Gear) ---- */
.has-mega, .has-dropdown {
  position: relative;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 680px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
  padding: 0;
  animation: megaFadeIn 0.15s ease;
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.has-mega:hover .mega-menu,
.has-mega .mega-menu.open {
  display: block;
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 20px 24px 12px;
}

.mega-col {
  padding: 0 12px;
  border-right: 1px solid var(--border);
}

.mega-col:last-child {
  border-right: none;
}

.mega-col-highlight {
  background: rgba(0, 212, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  border-right: none;
}

.mega-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.mega-col-highlight h4 {
  color: #00d4ff;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col ul li a {
  display: block;
  padding: 5px 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.15s;
  text-decoration: none;
  background: none;
}

.mega-col ul li a:hover {
  color: var(--text-primary);
}

.mega-bottom {
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mega-bottom a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.mega-bottom a:hover {
  text-decoration: underline;
}

/* ---- Dropdown (Guides) ---- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  padding: 8px 0;
  list-style: none;
  animation: megaFadeIn 0.15s ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown .dropdown-menu.open {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 7px 18px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all 0.15s;
  text-decoration: none;
  background: none;
}

.dropdown-menu li a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 4px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.open > li > a {
    display: block;
    padding: 12px 14px;
  }

  /* Mobile mega-menu: stack vertically */
  .nav-links.open .mega-menu,
  .nav-links.open .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-card);
    margin: 0 0 4px 0;
    padding: 8px 0 8px 12px;
    animation: none;
  }

  .has-mega:hover .mega-menu,
  .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .has-mega .mega-menu.open,
  .has-dropdown .dropdown-menu.open {
    display: block;
  }

  .mega-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px;
  }

  .mega-col {
    border-right: none;
    padding: 0;
  }

  .mega-bottom { padding: 8px 12px; border-top: none; }

  .nav-arrow { display: inline; }
}

/* ============ COMPACT HERO ============ */

.hero-compact {
  position: relative;
  padding: 56px 0 48px;
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 62, 62, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-compact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero-compact-tagline {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 8px 0 0;
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 32px 0 28px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-cta--primary {
  background: var(--red);
  color: #fff;
}
.hero-cta--primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 62, 62, 0.3);
}
.hero-cta--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.hero-cta--secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Category bar */
.cat-bar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.cat-bar-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-bar-link {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cat-bar-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.cat-bar-link--hot {
  background: var(--red-glow);
  color: var(--red);
}
.cat-bar-link--hot:hover {
  background: rgba(255, 62, 62, 0.25);
  color: var(--red);
}

@media (max-width: 768px) {
  .hero-compact { padding: 36px 0 32px; }
  .hero-stats { gap: 20px; margin: 24px 0 20px; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-divider { height: 28px; }
  .hero-ctas { gap: 8px; }
  .hero-cta { padding: 8px 20px; font-size: 0.875rem; }
}

/* ============ GEAR NAV SIDEBAR ============ */

.gear-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: calc(var(--max-w) + 244px);
  margin: 0 auto;
  padding: 0 20px;
}

.gear-nav {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 20px 0 24px 0;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  margin-left: -20px;
  padding-left: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gear-nav::-webkit-scrollbar { width: 4px; }
.gear-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.gear-nav-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 16px 8px;
  margin: 0;
}

.gear-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gear-nav-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.gear-nav-item a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-left-color: var(--border-hover);
}
.gear-nav-item.active > a {
  color: var(--red);
  font-weight: 600;
  border-left-color: var(--red);
  background: var(--red-glow);
}

/* Subcategory nesting */
.gear-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.gear-nav-item.active .gear-nav-sub,
.gear-nav-item.expanded .gear-nav-sub {
  max-height: 500px;
}
.gear-nav-sub a {
  padding: 5px 16px 5px 32px;
  font-size: 0.75rem;
  font-weight: 400;
  border-left: 2px solid transparent;
}
.gear-nav-sub .active a {
  color: var(--text-primary);
  font-weight: 600;
  border-left-color: var(--red);
}

.gear-nav-count {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.gear-page-content {
  min-width: 0;
}
.gear-page-content .section { padding-left: 0; padding-right: 0; }
.gear-page-content .container { max-width: 100%; padding: 0 24px; }
.gear-page-content .grid-4 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .gear-page { display: block; max-width: var(--max-w); }
  .gear-nav { display: none; }
  .gear-page-content .container { padding: 0 20px; max-width: var(--max-w); }
}

/* ============ HORIZONTAL SCROLL ROW ============ */

.hp-scroll-wrap {
  position: relative;
}
.hp-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.hp-scroll-row::-webkit-scrollbar { display: none; }
.hp-scroll-row .hp-product-card {
  min-width: 240px;
  max-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
  transition: all 0.2s;
  font-size: 1.25rem;
}
.scroll-btn:hover { background: var(--bg-card-hover); border-color: var(--red); }
.scroll-btn-left { left: -20px; }
.scroll-btn-right { right: -20px; }

@media (max-width: 768px) {
  .scroll-btn { display: none; }
  .hp-scroll-row .hp-product-card { min-width: 200px; }
}

/* ============ HERO (legacy fallback) ============ */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

/* ============ CATEGORY CARDS ============ */

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--red-glow);
  color: var(--red);
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* ============ SECTION HEADERS ============ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
}

.section-header a:hover {
  color: var(--text-primary);
}

/* ============ PRODUCT CARDS ============ */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-elevated);
}

.product-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-specs {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--red);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--yellow);
}

/* ============ PRODUCT IMAGE WRAP ============ */

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #111);
}

.product-card-placeholder .placeholder-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

/* ============ AMAZON CTA BUTTON ============ */

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF9900;
  color: #111;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-amazon:hover {
  background: #e68a00;
  box-shadow: 0 0 16px rgba(255,153,0,0.3);
  color: #111;
}

.btn-amazon svg {
  flex-shrink: 0;
}

/* ============ TIER BADGES ============ */

.tier {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier-budget { background: var(--tier-budget-bg); color: var(--tier-budget); }
.tier-value { background: var(--tier-value-bg); color: var(--tier-value); }
.tier-pro { background: var(--tier-pro-bg); color: var(--tier-pro); }
.tier-elite { background: var(--tier-elite-bg); color: var(--tier-elite); }

/* ============ COMPARISON TABLE ============ */

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background: var(--bg-card-hover);
}

.comparison-table .product-link {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table .product-link:hover {
  color: var(--red);
}

/* ============ COST TABLE ============ */

.cost-table .cost-group-header td {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
}

.cost-table .cost-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cost-table .cost-value {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.cost-table .cost-total-row td {
  border-top: 2px solid var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--bg-card);
}

/* ============ GUIDE CARDS ============ */

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.guide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.guide-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-elevated);
}

.guide-card-body {
  padding: 20px;
}

.guide-card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 8px;
}

.guide-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.guide-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ BRAND GRID ============ */

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 2/1;
  text-decoration: none;
  transition: all 0.25s ease;
}

.brand-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.brand-card img {
  max-height: 40px;
  filter: brightness(0) invert(0.7);
  transition: filter 0.25s;
}

.brand-card:hover img {
  filter: brightness(0) invert(1);
}

/* ============ CTA BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ============ BREADCRUMBS ============ */

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 12px 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-muted);
}

/* ============ FILTER CHIPS ============ */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--red);
  color: var(--text-on-accent);
  border-color: var(--red);
}

/* ============ AFFILIATE CTA ============ */

.affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--text-on-accent);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

div.affiliate-cta {
  display: block;
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 12px 24px;
}

.affiliate-cta:hover {
  background: var(--red-dark);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}

.affiliate-cta-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.affiliate-cta-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: none;
}

/* ============ PRODUCT INLINE LINKS ============ */

.product-link {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 62, 62, 0.3);
  transition: all 0.15s;
}

.product-link:hover {
  color: var(--red-dark);
  border-bottom-color: var(--red);
}

/* ============ CONTENT / ARTICLE ============ */

.article-content {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--text-primary);
}

/* ============ VERDICT BOX ============ */

.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.verdict-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.verdict-box p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ FAQ ACCORDION ============ */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 0 18px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.5;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-sister-sites {
  display: flex;
  gap: 16px;
}

.footer-sister-sites a {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-sister-sites a:hover {
  color: var(--red);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

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

/* ============ MISC ============ */

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Network banner */
.network-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.network-banner p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.network-banner strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .network-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ RACING NETWORK SECTION ============ */

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.network-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.network-card .network-icon {
  font-size: 2rem;
  line-height: 1;
}

.network-card .network-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: contain;
  margin-bottom: 4px;
}

.network-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.network-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.network-card .network-stat {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

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

/* ============ AFFILIATE KIT CTA ============ */

.kit-cta {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.kit-cta h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.kit-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.kit-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.kit-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kit-item .kit-price {
  color: var(--tier-budget);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============ ENHANCED GEAR LINKS ============ */

.gear-card-enhanced {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gear-card-enhanced:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.gear-card-enhanced h3 {
  font-size: 1rem;
  margin: 0;
}

.gear-card-enhanced p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.gear-card-enhanced .gear-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin-top: auto;
  padding-top: 8px;
}

/* ============ COST TABLE ENHANCEMENTS ============ */

.cost-table thead th.col-budget { color: var(--tier-budget); }
.cost-table thead th.col-mid { color: var(--tier-pro); }
.cost-table thead th.col-pro { color: var(--tier-elite); }

.cost-table .cost-cell.col-budget .cost-value { color: var(--tier-budget); }
.cost-table .cost-cell.col-mid .cost-value { color: var(--tier-pro); }
.cost-table .cost-cell.col-pro .cost-value { color: var(--tier-elite); }

.cost-table a {
  color: var(--red);
  font-weight: 500;
}

.cost-table a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}


/* ============ HOMEPAGE — PRODUCT SHOWCASE ============ */

/* (legacy cat-strip removed — replaced by .cat-bar) */

/* Product grid — horizontal scrollable on mobile, 3-col on desktop */
.hp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Product card */
.hp-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.hp-product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hp-product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
}
.hp-product-img-wrap img,
.hp-product-img-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.hp-product-card:hover .hp-product-img-wrap img {
  transform: scale(1.06);
}
.hp-product-img-wrap img {
  object-fit: cover;
}

.hp-tier {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hp-tier.tier-budget { background: rgba(34,197,94,0.15); color: #22c55e; }
.hp-tier.tier-value { background: rgba(0,212,255,0.15); color: #00d4ff; }
.hp-tier.tier-pro { background: rgba(255,62,62,0.15); color: #ff3e3e; }
.hp-tier.tier-elite { background: rgba(250,204,21,0.15); color: #facc15; }

.hp-product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hp-product-brand {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hp-product-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.hp-product-verdict {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.hp-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.stars {
  color: #FFB800;
  font-size: 1rem;
  letter-spacing: 2px;
}
.star-num {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hp-product-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.hp-product-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  margin-top: 8px;
  border-radius: var(--radius);
  background: #FF9900;
  color: #111;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.hp-product-cta:hover {
  background: #e68a00;
  box-shadow: 0 0 16px rgba(255,153,0,0.3);
  color: #111;
}
.hp-product-cta svg {
  flex-shrink: 0;
}

/* Discipline grid */
.hp-discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-discipline-grid > :nth-child(n+5) {
  /* Last row (3 items) — use grid-column for centering handled below */
}

.hp-discipline-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  display: block;
}
.hp-discipline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hp-discipline-card:hover img {
  transform: scale(1.05);
}
.hp-discipline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.hp-discipline-overlay h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin: 0;
}
.hp-discipline-overlay p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin: 2px 0 0;
}

/* Cost cards */
.hp-cost-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.hp-cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-cost-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.hp-cost-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
}
.hp-cost-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============ HOMEPAGE RESPONSIVE ============ */
@media (max-width: 900px) {
  .hp-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .hp-discipline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-cost-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hp-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hp-product-img-wrap {
    height: 60px;
  }
  .hp-product-name {
    font-size: 0.8125rem;
  }
  .hp-product-verdict {
    display: none;
  }
  .hp-discipline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ SIDEBAR FILTER LAYOUT ============ */

.gear-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.gear-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.gear-sidebar::-webkit-scrollbar {
  width: 4px;
}
.gear-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

.sidebar-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-section h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.sidebar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.sidebar-check:hover {
  color: var(--text-primary);
}

.sidebar-check input[type="checkbox"] {
  accent-color: var(--red);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.sidebar-check .count {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.brand-search {
  width: 100%;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: var(--font);
  margin-bottom: 8px;
  outline: none;
}

.brand-search:focus {
  border-color: var(--red);
}

.brand-list {
  max-height: 180px;
  overflow-y: auto;
}

.brand-list::-webkit-scrollbar {
  width: 3px;
}
.brand-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.price-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-btn {
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.price-btn:hover,
.price-btn.active {
  background: var(--red);
  color: var(--text-on-accent);
  border-color: var(--red);
}

.sidebar-clear {
  display: block;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  text-align: center;
  margin-top: 12px;
}

.sidebar-clear:hover {
  border-color: var(--red);
  color: var(--red);
}

.active-filters {
  display: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.active-filters.show {
  display: block;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: none;
}

.no-results.show {
  display: block;
}

/* Sidebar mobile toggle */
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 16px;
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .gear-layout {
    grid-template-columns: 1fr;
  }

  .gear-sidebar {
    position: static;
    max-height: none;
    display: none;
  }

  .gear-sidebar.open {
    display: block;
  }

  .sidebar-toggle {
    display: inline-flex;
  }
}

/* ============ QUICK-VIEW MODAL ============ */

.qv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: qvFadeIn 0.15s ease;
}

.qv-overlay.open {
  display: flex;
}

@keyframes qvFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qv-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: qvSlideUp 0.2s ease;
}

@keyframes qvSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.qv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 0;
}

.qv-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}

.qv-close:hover {
  color: var(--text-primary);
}

.qv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 24px 24px;
}

.qv-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-secondary);
}

.qv-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.15);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qv-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qv-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qv-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.qv-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--yellow);
}

.qv-cert {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}

.qv-verdict {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.qv-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.qv-features li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 2px 0;
  line-height: 1.4;
}

.qv-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.qv-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  margin-top: auto;
}

.qv-cta {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .qv-body {
    grid-template-columns: 1fr;
  }
  .qv-modal {
    max-width: 100%;
  }
}

/* ============ STICKY BOTTOM BAR ============ */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  z-index: 400;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 10px 0;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-bar-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-bar-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.sticky-bar-text {
  min-width: 0;
}

.sticky-bar-label {
  font-size: 0.6875rem;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sticky-bar-name {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.sticky-bar-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.sticky-bar .btn-amazon {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .sticky-bar-name { max-width: 140px; }
  .sticky-bar-price { display: none; }
  .sticky-bar .btn-amazon { padding: 6px 12px; font-size: 0.75rem; }
}

/* ============ RECENTLY VIEWED ============ */

.recently-viewed {
  padding: 24px 0;
}

.rv-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.rv-scroll::-webkit-scrollbar {
  height: 4px;
}
.rv-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.rv-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.rv-card:hover {
  border-color: var(--border-hover);
}

.rv-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.rv-card-body {
  padding: 8px 10px;
}

.rv-card-brand {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rv-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-card-price {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 2px;
}

/* ============ BUNDLE SUGGESTIONS ============ */

.bundle-section {
  margin-top: 2rem;
}

.bundle-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.bundle-grid::-webkit-scrollbar {
  height: 4px;
}
.bundle-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.bundle-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

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

.bundle-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.bundle-card-body {
  padding: 12px 14px;
}

.bundle-card-cat {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bundle-card-name {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bundle-card-price {
  font-size: 0.8125rem;
  color: var(--red);
  font-weight: 700;
}

.bundle-total {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bundle-total-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.bundle-total-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red);
}

/* ============ COMPARE FEATURE ============ */

.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  z-index: 450;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 12px 0;
}

.compare-bar.visible {
  transform: translateY(0);
}

.compare-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-items {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.compare-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0 2px;
  line-height: 1;
}

.compare-item-remove:hover {
  color: var(--red);
}

.compare-btn {
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background 0.15s;
}

.compare-btn:hover {
  background: var(--red-dark);
}

.compare-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Compare checkbox on card */
.compare-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .compare-check,
.compare-check.checked {
  opacity: 1;
}

.compare-check input {
  accent-color: var(--red);
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* Compare table modal */
.compare-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 500;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.compare-overlay.open {
  display: flex;
}

.compare-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
  animation: qvSlideUp 0.2s ease;
}

.compare-table-wrap .compare-close {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.compare-table-wrap .compare-close h3 {
  margin: 0;
  font-size: 1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--bg-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  position: sticky;
  left: 0;
  min-width: 100px;
}

.compare-table td {
  min-width: 160px;
}

.compare-table td img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Quick-view trigger on card */
.qv-trigger {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
  font-family: var(--font);
}

.product-card:hover .qv-trigger {
  opacity: 1;
}
