/*
Theme Name: Demontas
Theme URI: https://mediumorchid-hawk-157965.hostingersite.com
Author: Demontas Team
Author URI: https://mediumorchid-hawk-157965.hostingersite.com
Description: Custom WordPress theme for Demontas - used auto parts and racing team
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: demontas
*/

/* ============================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ============================================ */
:root {
  /* Colors — matched to Demontas logo olive-green */
  --clr-bg-dark:     #0a0a0a;
  --clr-bg-card:     #141414;
  --clr-bg-surface:  #1a1a1a;
  --clr-bg-elevated: #222222;
  --clr-primary:      #87a020;
  --clr-primary-dark: #6b8019;
  --clr-primary-glow: rgba(135, 160, 32, 0.3);
  --clr-accent:       #a3c226;
  --clr-metal:        #8d99ae;
  --clr-metal-light:  #b0bec5;
  --clr-text:         #f1f1f1;
  --clr-text-muted:   #9e9e9e;
  --clr-text-dim:     #666666;
  --clr-white:        #ffffff;
  --clr-border:       rgba(255, 255, 255, 0.08);
  --clr-border-hover: rgba(255, 255, 255, 0.15);

  /* Theme accents */
  --clr-racing-accent: #87a020;
  --clr-parts-accent:  #4a90d9;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Sizing */
  --container-max:  1200px;
  --container-wide: 1400px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body:has(.split-landing) {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* ============================================
   SPLIT LANDING PAGE
   ============================================ */
.split-landing {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  overflow: hidden;
  background: var(--clr-bg-dark);
  display: flex;
  flex-direction: column;
}

/* Top logo bar */
.split-logo-top {
  flex-shrink: 0;
  z-index: 10003;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.split-logo-top img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.7));
}

/* Hide legacy centered logo elements */
.split-logo-center,
.split-logo-img {
  display: none;
}

/* Split sides wrapper */
.split-sides {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.split-sides .split-side {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition:
    clip-path var(--transition-slow),
    filter    var(--transition-smooth);
}

.split-side .split-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity var(--transition-smooth);
}

.split-side .split-content {
  position: absolute;
  z-index: 2;
  padding: 2rem;
  transition:
    transform var(--transition-smooth),
    opacity   var(--transition-smooth);
}

/* Racing side — top-left triangle */
.split-side--racing {
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(135deg, #0f1408 0%, #0b0f05 50%, #080a03 100%);
  z-index: 2;
}

.split-side--racing .split-bg {
  background: radial-gradient(ellipse at 25% 30%, rgba(135, 160, 32, 0.18) 0%, transparent 65%);
}

.split-side--racing .split-content {
  top: 18%;
  left: 12%;
  text-align: left;
}

/* Parts side — bottom-right triangle */
.split-side--parts {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #050a1a 0%, #000812 50%, #00050d 100%);
  z-index: 2;
}

.split-side--parts .split-bg {
  background: radial-gradient(ellipse at 75% 70%, rgba(74, 144, 217, 0.15) 0%, transparent 65%);
}

.split-side--parts .split-content {
  bottom: 18%;
  right: 12%;
  text-align: right;
}

/* Diagonal divider line */
.split-diagonal-line {
  position: absolute;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  overflow: hidden;
}

.split-diagonal-line::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 150%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(135, 160, 32, 0.6) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(74, 144, 217, 0.6) 80%,
    transparent 100%);
  transform-origin: top left;
  transform: rotate(45deg) translateY(-1px);
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1);
}

/* Desktop hover effects */
.split-sides:hover .split-side--racing {
  clip-path: polygon(0 0, 85% 0, 0 85%);
  filter: brightness(0.5);
}

.split-sides:hover .split-side--parts {
  clip-path: polygon(100% 15%, 100% 100%, 15% 100%);
  filter: brightness(0.5);
}

.split-sides .split-side--racing:hover {
  clip-path: polygon(0 0, 100% 0, 15% 100%, 0 100%);
  filter: brightness(1);
}

.split-sides .split-side--parts:hover {
  clip-path: polygon(85% 0, 100% 0, 100% 100%, 0 100%);
  filter: brightness(1);
}

/* Split icons */
.split-side .split-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.split-side:hover .split-icon {
  transform: scale(1.2);
  opacity: 1;
}

/* Split titles */
.split-side .split-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.6rem;
  line-height: 1;
  transition:
    letter-spacing var(--transition-smooth),
    text-shadow   var(--transition-smooth);
}

.split-side--racing .split-title {
  color: #c8d96e;
  text-shadow: 0 0 60px rgba(135, 160, 32, 0.25);
}

.split-side--parts .split-title {
  color: #7ab3e8;
  text-shadow: 0 0 60px rgba(74, 144, 217, 0.2);
}

.split-side:hover .split-title {
  letter-spacing: 0.35em;
}

.split-side--racing:hover .split-title {
  color: #d4e87a;
  text-shadow:
    0 0 80px rgba(135, 160, 32, 0.5),
    0 0 120px rgba(135, 160, 32, 0.15);
}

.split-side--parts:hover .split-title {
  color: #90c5f5;
  text-shadow:
    0 0 80px rgba(74, 144, 217, 0.5),
    0 0 120px rgba(74, 144, 217, 0.15);
}

/* Subtitle */
.split-side .split-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 400;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

/* CTA button */
.split-side .split-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all var(--transition-smooth);
  opacity: 0;
  transform: translateY(15px);
}

.split-side:hover .split-cta {
  opacity: 1;
  transform: translateY(0);
}

.split-side--racing .split-cta {
  background: #87a020;
  color: var(--clr-white);
  box-shadow: 0 4px 25px rgba(135, 160, 32, 0.3);
}

.split-side--racing .split-cta:hover {
  background: #6b8019;
  box-shadow: 0 6px 35px rgba(135, 160, 32, 0.4);
}

.split-side--parts .split-cta {
  background: var(--clr-parts-accent);
  color: var(--clr-white);
  box-shadow: 0 4px 25px rgba(74, 144, 217, 0.3);
}

.split-side--parts .split-cta:hover {
  background: #3a7ec5;
  box-shadow: 0 6px 35px rgba(74, 144, 217, 0.4);
}

/* Decorative stripe pattern */
.split-side .split-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.04;
}

.split-side--racing .split-lines::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(45deg,
    transparent, transparent 50px,
    rgba(135, 160, 32, 0.4) 50px, rgba(135, 160, 32, 0.4) 51px);
}

.split-side--parts .split-lines::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(-45deg,
    transparent, transparent 50px,
    rgba(74, 144, 217, 0.4) 50px, rgba(74, 144, 217, 0.4) 51px);
}

/* Prevent long-press context menu on touch */
.split-side {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10, 10, 10, 0.95);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .logo-accent { color: var(--clr-primary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.06);
}

.theme-racing .main-nav a.active { color: var(--clr-primary); }
.theme-parts  .main-nav a.active { color: var(--clr-parts-accent); }

.nav-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-fast);
  border: 1px solid var(--clr-border);
}

.theme-racing .nav-switch { color: var(--clr-parts-accent); border-color: rgba(74, 144, 217, 0.3); }
.theme-racing .nav-switch:hover { background: rgba(74, 144, 217, 0.1); border-color: var(--clr-parts-accent); }
.theme-parts  .nav-switch { color: var(--clr-primary); border-color: rgba(135, 160, 32, 0.3); }
.theme-parts  .nav-switch:hover { background: rgba(135, 160, 32, 0.1); border-color: var(--clr-primary); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  border: 1px solid;
  backdrop-filter: blur(8px);
}

.theme-racing .hero-badge {
  color: rgba(135, 160, 32, 0.9);
  border-color: rgba(135, 160, 32, 0.2);
  background: rgba(135, 160, 32, 0.08);
}

.theme-parts .hero-badge {
  color: rgba(74, 144, 217, 0.9);
  border-color: rgba(74, 144, 217, 0.2);
  background: rgba(74, 144, 217, 0.08);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-meta .back-nav { margin-bottom: 0; }

.hero-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.2) 0%, rgba(74, 144, 217, 0.1) 100%);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(74, 144, 217, 0.25);
}

.theme-racing .hero-indicator {
  background: linear-gradient(135deg, rgba(135, 160, 32, 0.2) 0%, rgba(135, 160, 32, 0.1) 100%);
  border-color: rgba(135, 160, 32, 0.25);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.theme-racing .hero h1 {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(135,160,32,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-parts .hero h1 {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(74,144,217,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(135,160,32,0.9) 0%, rgba(115,140,25,0.95) 100%);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(135, 160, 32, 0.25);
  border: 1px solid rgba(135, 160, 32, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(145,175,35,0.95) 0%, rgba(125,150,30,1) 100%);
  box-shadow: 0 8px 30px rgba(135, 160, 32, 0.35);
  transform: translateY(-2px);
}

.btn-parts {
  background: linear-gradient(135deg, rgba(74,144,217,0.9) 0%, rgba(55,120,190,0.95) 100%);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(74, 144, 217, 0.25);
  border: 1px solid rgba(74, 144, 217, 0.3);
}

.btn-parts:hover {
  background: linear-gradient(135deg, rgba(85,155,225,0.95) 0%, rgba(65,130,200,1) 100%);
  box-shadow: 0 8px 30px rgba(74, 144, 217, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
}

.theme-racing .section-label { color: var(--clr-primary); }
.theme-parts  .section-label { color: var(--clr-parts-accent); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--clr-white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.container      { max-width: var(--container-max);  margin: 0 auto; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-smooth);
}

.card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background: var(--clr-bg-surface);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--clr-white);
}

.card-text {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }

/* Curated slider */
.curated-slider { position: relative; padding: 0 3rem; }

.curated-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 1fr);
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) transparent;
}

.curated-track .slider-card { scroll-snap-align: start; }

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: rgba(20, 24, 32, 0.8);
  color: var(--clr-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 3;
}

.slider-nav:hover { border-color: var(--clr-parts-accent); color: var(--clr-parts-accent); }
.slider-nav--prev { left: 0.5rem; }
.slider-nav--next { right: 0.5rem; }

/* ============================================
   PARTS — CATEGORIES
   ============================================ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.category-card:hover {
  border-color: rgba(74, 144, 217, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 144, 217, 0.08);
}

.category-icon  { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.8; }
.category-name  { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--clr-white); margin-bottom: 0.35rem; }
.category-count { font-size: 0.8rem; color: var(--clr-text-dim); }

/* ============================================
   PARTS — SEARCH BOX
   ============================================ */
.search-box {
  display: flex;
  max-width: 550px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.search-box input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.search-box input::placeholder { color: rgba(255, 255, 255, 0.35); }

.search-box button {
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, rgba(74,144,217,0.9) 0%, rgba(55,120,190,0.95) 100%);
  border: none;
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-box button:hover { background: #3a7ec5; }

/* ============================================
   PRODUCT CARDS (generic)
   ============================================ */
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30,35,45,0.6) 0%, rgba(20,24,32,0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--clr-bg-surface);
}

.product-info { padding: 1.25rem; }

.product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-parts-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--clr-text-dim);
  margin-bottom: 1rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-white);
}

.product-price .price-label {
  font-size: 0.72rem;
  color: var(--clr-text-dim);
  font-weight: 400;
  display: block;
}

/* Product card image section */
.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15,18,25,0.8) 0%, rgba(25,30,40,0.6) 100%);
  position: relative;
}

.product-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-image::before { opacity: 1; }

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(15,18,25,0.8) 0%, rgba(25,30,40,0.6) 100%);
}

.product-card-info {
  padding: 1.35rem 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(74, 144, 217, 0.85);
  font-weight: 600;
}

.theme-racing .product-card-cat { color: rgba(135, 160, 32, 0.85); }

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(74, 144, 217, 0.95);
  margin-top: auto;
  padding-top: 0.5rem;
}

.theme-racing .product-card-price { color: rgba(135, 160, 32, 0.95); }

/* Featured product variant */
.product-featured {
  border-color: rgba(74, 144, 217, 0.25);
  background: linear-gradient(180deg, rgba(74,144,217,0.08) 0%, rgba(20,24,32,0.8) 100%);
}

.product-featured:hover {
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 0 30px rgba(74,144,217,0.1);
}

.theme-racing .product-featured {
  border-color: rgba(135, 160, 32, 0.25);
  background: linear-gradient(180deg, rgba(135,160,32,0.08) 0%, rgba(20,24,32,0.8) 100%);
}

.theme-racing .product-featured:hover {
  border-color: rgba(135, 160, 32, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 0 30px rgba(135,160,32,0.1);
}

.product-featured-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 2.25rem; height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   RACING — STATS
   ============================================ */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem 0;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-text-muted);
}

/* ============================================
   RACING — TEAM CARDS
   ============================================ */
.team-card { text-align: center; padding: 2rem; }

.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--clr-bg-surface);
  border: 3px solid var(--clr-border);
  object-fit: cover;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover::after { opacity: 1; }

/* Zoom overlay circle */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px; height: 60px;
  background: rgba(135, 160, 32, 0.9);
  border-radius: 50%;
  z-index: 3;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover::before { transform: translate(-50%, -50%) scale(1); }

.gallery-item .zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 4;
  color: white;
  font-size: 1.5rem;
  pointer-events: none;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover .zoom-icon { transform: translate(-50%, -50%) scale(1); }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px; right: 0;
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--clr-white);
  font-size: 1.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1.2rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.theme-parts .form-group input:focus,
.theme-parts .form-group textarea:focus,
.theme-parts .form-group select:focus {
  border-color: var(--clr-parts-accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon { font-size: 1.5rem; margin-top: 0.15rem; opacity: 0.7; }

.contact-detail h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.25rem;
}

.contact-detail p { font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--clr-bg-card);
  border-top: 1px solid var(--clr-border);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.footer-brand .footer-logo .logo-accent { color: var(--clr-primary); }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--clr-white); }

.footer-bottom {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--clr-text-dim);
}

.footer-socials { display: flex; gap: 1rem; }

.footer-socials a {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

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

/* ============================================
   BACK NAVIGATION BUTTON
   ============================================ */
.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.back-nav:hover { color: var(--clr-white); border-color: var(--clr-primary); background: rgba(135,160,32,0.1); }
.theme-parts .back-nav:hover { border-color: var(--clr-parts-accent); background: rgba(74,144,217,0.1); }
.back-nav svg { width: 16px; height: 16px; }

/* ============================================
   BRAND CARDS
   ============================================ */
.brand-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(30,35,45,0.5) 0%, rgba(20,24,32,0.7) 100%);
  backdrop-filter: blur(10px);
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05) inset;
  border-color: rgba(74, 144, 217, 0.3);
}

.theme-racing .brand-card:hover { border-color: rgba(135, 160, 32, 0.3); }

.brand-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  height: 80px;
  overflow: hidden;
}

.brand-card-logo img {
  width: auto; height: auto;
  max-width: 70px; max-height: 50px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.85;
}

.brand-card:hover .brand-card-logo img { transform: scale(1.08); opacity: 1; }

.brand-card-letter {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(50, 55, 65, 0.7);
  transition: all 0.3s ease;
}

.brand-card:hover .brand-card-letter         { color: rgba(74, 144, 217, 0.9); }
.theme-racing .brand-card:hover .brand-card-letter { color: rgba(135, 160, 32, 0.9); }

.brand-card-info { padding: 1rem 1.25rem; text-align: center; }

.brand-card-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.brand-card-count { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

/* ============================================
   WOOCOMMERCE — CATALOG
   ============================================ */
.woo-wrapper { padding-top: 5rem; min-height: 80vh; }

.catalog-hero {
  padding: 7rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--clr-bg-dark) 0%, #050a1a 50%, var(--clr-bg-dark) 100%);
  border-bottom: 1px solid var(--clr-border);
}

.catalog-hero .back-nav { margin-bottom: 1.5rem; }

.catalog-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}

.catalog-count { font-size: 0.9rem; color: var(--clr-text-muted); }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 2rem;
}

/* Sidebar */
.catalog-sidebar {
  position: sticky;
  top: 5rem;
  height: fit-content;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.sidebar-section {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.sidebar-search {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.sidebar-search:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.sidebar-list {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) transparent;
}

.sidebar-list::-webkit-scrollbar       { width: 6px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
.sidebar-list::-webkit-scrollbar-thumb:hover { background: var(--clr-text-dim); }

.sidebar-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-list li a:hover { color: var(--clr-white); background: rgba(255,255,255,0.04); }

.sidebar-list li a.active {
  color: var(--clr-parts-accent);
  background: rgba(74, 144, 217, 0.08);
  font-weight: 600;
  border-left: 3px solid var(--clr-parts-accent);
  margin-left: -3px;
}

.cat-count {
  font-size: 0.75rem;
  background: var(--clr-bg-surface);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  color: var(--clr-text-dim);
  min-width: 28px;
  text-align: center;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Pagination — custom */
.catalog-pagination { padding: 2rem 0; text-align: center; }

.catalog-pagination .page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.catalog-pagination .page-numbers li a,
.catalog-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-fast);
}

.catalog-pagination .page-numbers li a:hover           { color: var(--clr-white); border-color: var(--clr-parts-accent); }
.catalog-pagination .page-numbers li span.current      { background: var(--clr-parts-accent); color: var(--clr-white); border-color: var(--clr-parts-accent); }
.theme-racing .catalog-pagination .page-numbers li a:hover        { border-color: var(--clr-primary); }
.theme-racing .catalog-pagination .page-numbers li span.current   { background: var(--clr-primary); border-color: var(--clr-primary); }

.catalog-empty { text-align: center; padding: 4rem 2rem; }
.catalog-empty .empty-icon { font-size: 4rem; margin-bottom: 1rem; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.filter-info  { display: flex; align-items: center; gap: 1rem; }
.filter-count { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.filter-controls { display: flex; gap: 1rem; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 0.5rem; }

.filter-group label { font-size: 0.8rem; color: rgba(255,255,255,0.5); white-space: nowrap; }

.filter-group select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-group select:hover { border-color: rgba(255,255,255,0.2); background-color: rgba(255,255,255,0.08); }
.filter-group select:focus { border-color: rgba(74,144,217,0.5); box-shadow: 0 0 0 2px rgba(74,144,217,0.1); }
.filter-group select option { background: #1a1d24; color: rgba(255,255,255,0.9); }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
/* Hide unwanted default elements */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product-category .button,
.woocommerce-page ul.products li.product .button,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* Product grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product {
  background: linear-gradient(180deg, rgba(30,35,45,0.6) 0%, rgba(20,24,32,0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  margin: 0;
  display: flex;
  width: 100% !important;
  float: none !important;
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.woocommerce ul.products li.product a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  gap: 0.5rem;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  padding: 1.2rem 1.4rem 0.6rem;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.woocommerce ul.products li.product .price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(74, 144, 217, 0.95);
  padding: 0 1.4rem 1.4rem;
  display: block;
  text-align: center;
  margin-top: auto;
}

.woocommerce ul.products li.product .price del { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* WooCommerce notices */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-surface);
  color: var(--clr-text);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before { display: none; }

.woocommerce-info {
  border-color: rgba(74, 144, 217, 0.25);
  background: linear-gradient(135deg, rgba(74,144,217,0.08), rgba(20,24,32,0.9));
}

.woocommerce-error {
  border-color: rgba(230, 57, 70, 0.3);
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(20,24,32,0.9));
}

/* WooCommerce pagination */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
  margin-top: 3rem;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: linear-gradient(135deg, rgba(74,144,217,0.9) 0%, rgba(55,120,190,0.95) 100%);
  border-color: rgba(74, 144, 217, 0.5);
  color: white;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.single-product-page { padding-top: 5rem; min-height: 80vh; }

.breadcrumb { padding: 1.5rem 0; font-size: 0.85rem; color: var(--clr-text-dim); }
.breadcrumb a { color: var(--clr-text-muted); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb span { margin: 0 0.4rem; }
.breadcrumb .current { color: var(--clr-text); }

.single-product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  align-items: start;
}

/* Product gallery */
.product-gallery { position: sticky; top: 6rem; height: fit-content; }

.gallery-main {
  background: linear-gradient(135deg, rgba(25,30,40,0.6) 0%, rgba(15,18,25,0.8) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, rgba(15,18,25,0.9) 0%, rgba(25,30,40,0.7) 100%);
}

.gallery-main:hover img { transform: scale(1.02); }

.gallery-main::after {
  content: '🔍';
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.gallery-main:hover::after { opacity: 1; }

.gallery-thumbs { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.gallery-thumb {
  width: 72px; height: 72px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(25,30,40,0.6) 0%, rgba(15,18,25,0.8) 100%);
  padding: 0;
  transition: all 0.3s ease;
}

.gallery-thumb:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.gallery-thumb.active { border-color: rgba(74,144,217,0.6); box-shadow: 0 0 15px rgba(74,144,217,0.2); }
.theme-racing .gallery-thumb.active { border-color: rgba(135,160,32,0.6); box-shadow: 0 0 15px rgba(135,160,32,0.2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* WooCommerce flex thumbs */
.woocommerce div.product div.images .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: linear-gradient(135deg, rgba(25,30,40,0.6) 0%, rgba(15,18,25,0.8) 100%);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.woocommerce div.product div.images .flex-control-thumbs li:hover {
  border-color: rgba(74,144,217,0.35);
  transform: translateY(-2px);
}

.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Product info panels */
.product-panel {
  background: linear-gradient(145deg, rgba(20,24,32,0.9) 0%, rgba(12,14,20,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.product-panel--primary {
  background: linear-gradient(135deg, rgba(74,144,217,0.08) 0%, rgba(20,24,32,0.9) 100%);
  border-color: rgba(74, 144, 217, 0.25);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
}

.product-info .product-cats { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.product-cat-badge {
  padding: 0.4rem 1rem;
  background: rgba(74,144,217,0.08);
  border: 1px solid rgba(74,144,217,0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(74,144,217,0.9);
  transition: all 0.3s ease;
}

.product-cat-badge:hover { background: rgba(74,144,217,0.15); border-color: rgba(74,144,217,0.35); }

.theme-racing .product-cat-badge {
  background: rgba(135,160,32,0.08);
  border-color: rgba(135,160,32,0.2);
  color: rgba(135,160,32,0.9);
}

.product-info .product-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-price--xl {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(74, 144, 217, 0.95);
  margin-bottom: 1rem;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(74,144,217,0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(74,144,217,0.2);
}

.product-meta-quick { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.product-description {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.04);
}

.product-description p { margin-bottom: 0.85rem; }
.product-description p:last-child { margin-bottom: 0; }

.product-features {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(25,30,40,0.5) 0%, rgba(15,18,25,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

.product-features h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.features-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.feature-badge {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  transition: all 0.3s ease;
}

.feature-badge:hover { background: rgba(74,144,217,0.1); border-color: rgba(74,144,217,0.25); color: rgba(255,255,255,0.9); }
.theme-racing .feature-badge:hover { background: rgba(135,160,32,0.1); border-color: rgba(135,160,32,0.25); }

.product-cta { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; }
.product-cta .btn { flex: 1; min-width: 140px; justify-content: center; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.fade-in-up { animation: fadeInUp 0.8s ease both; }
.fade-in    { animation: fadeIn  0.6s ease both; }

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   WORDPRESS ADMIN BAR
   ============================================ */
body.admin-bar .site-header    { top: 32px; }
body.admin-bar .split-landing  { top: 32px; height: calc(100vh - 32px); }
body.admin-bar .catalog-hero   { padding-top: 9rem; }
body.admin-bar .single-product-page { padding-top: 7rem; }
body.admin-bar .woo-wrapper    { padding-top: 7rem; }

/* ============================================
   RESPONSIVE — 1180px
   ============================================ */
@media (max-width: 1180px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.6rem;
  }
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 220px 1fr; }
}

/* ============================================
   RESPONSIVE — 782px (admin bar)
   ============================================ */
@media (max-width: 782px) {
  body.admin-bar .site-header   { top: 46px; }
  body.admin-bar .split-landing { top: 46px; height: calc(100vh - 46px); }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {

  /* --- Split landing — mobile layout --- */
  .split-logo-top { padding: 1rem 1.5rem; }
  .split-logo-top img { height: 40px; }

  /* Disable all transitions/animations on split elements */
  .split-side,
  .split-side .split-content,
  .split-side .split-bg,
  .split-side .split-title,
  .split-side .split-cta {
    transition: none;
    animation: none;
  }

  /* Horizontal 50/50 split */
  .split-side--racing {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    filter: none;
  }

  .split-side--parts {
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    filter: none;
  }

  /* Disable hover effects on touch */
  .split-sides:hover .split-side--racing,
  .split-sides:hover .split-side--parts,
  .split-side--racing:hover,
  .split-side--parts:hover {
    /*clip-path: inherit;*/
    filter: none;
  }

  /* Racing content — centered in top half */
  .split-side--racing .split-content {
    position: absolute;
    top: 25%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    padding: 1rem;
  }

  /* Parts content — centered in bottom half */
  .split-side--parts .split-content {
    position: absolute;
    top: 75%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    padding: 1rem;
  }

  /* Lock content position on hover */
  .split-side:hover .split-content {
    transform: translate(-50%, -50%);
  }

  /* CTA always visible on mobile */
  .split-side .split-cta {
    opacity: 1;
    transform: none;
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.65rem 1.5rem;
  }

  /* Horizontal divider line */
  .split-diagonal-line::before {
    transform: rotate(0deg);
    top: 50%;
    left: 0;
    width: 100%;
  }

  /* Split title size */
  .split-side .split-title { font-size: 2rem; letter-spacing: 0.2em; }

  /* --- Navigation --- */
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-bg-surface);
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--clr-border);
  }

  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0.5rem; }
  .main-nav a { padding: 0.75rem 1rem; width: 100%; }

  /* --- Grids --- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* --- WooCommerce --- */
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 1.2rem;
  }

  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; max-height: none; }

  .filter-bar { flex-direction: column; align-items: stretch; gap: 1rem; }
  .filter-info { justify-content: center; }
  .filter-controls { justify-content: center; }

  .slider-nav { display: none; }
  .curated-slider { padding: 0 1rem; }
  .curated-track { grid-auto-columns: minmax(260px, 1fr); gap: 1.25rem; }

  /* --- Single product --- */
  .single-product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }

  /* --- Lightbox --- */
  .lightbox-nav { display: none; }
  .lightbox-content img { max-width: 95vw; }

  /* --- Misc --- */
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-row { gap: 1.5rem; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  .hero    { padding: 6rem 1rem 3rem; }
  .split-side .split-title { font-size: 1.6rem; }
  .split-side .split-icon  { font-size: 2rem; }
}