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

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --surface: #f5f5f5;
  --border: #e2e2e2;
  --text: #1a1a1a;
  --text-muted: #6b7175;
  --accent: #e63946;
  --accent-hover: #d32f3f;
  --gold: #c9952c;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

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

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

img {
  max-width: 100%;
  display: block;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--text);
}

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

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-ig {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-ig:hover {
  color: var(--accent);
}

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

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== NAV DROPDOWN (Desktop hover + Mobile accordion) ===== */
.nav-has-sub {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-sub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: transform 0.25s, color 0.2s;
}

.nav-sub-toggle:hover {
  color: var(--text);
}

.nav-sub-toggle.open {
  transform: rotate(180deg);
}

/* Desktop hover dropdown */
.nav-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  background: transparent;
  list-style: none;
  min-width: 160px;
  z-index: 100;
}

.nav-sub-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: -1;
}

.nav-has-sub:hover .nav-sub-menu {
  display: block;
}

.nav-sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-sub-menu li a:hover {
  background: var(--surface);
  color: var(--text);
}

/* ===== NAV 3RD LEVEL (brand → models) ===== */
.nav-brand-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.nav-sub-brand-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-sub-brand-link:hover {
  color: var(--text);
}

.nav-sub-sub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: transform 0.25s, color 0.2s;
}

.nav-sub-sub-toggle.open {
  transform: rotate(180deg);
}

.nav-model-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f9f9;
  border-left: 2px solid var(--border);
  margin-left: 28px;
}

.nav-model-menu.open {
  max-height: 600px;
}

.nav-model-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}

.nav-model-menu li a:hover {
  color: var(--accent);
  background: rgba(230,57,70,0.04);
}

/* ===== MODEL JUMP DROPDOWN ===== */
.model-jump-wrap {
  display: none;
  justify-content: center;
  margin-bottom: 24px;
}

.model-jump-wrap.visible {
  display: flex;
}

#modelJumpSelect {
  padding: 10px 40px 10px 16px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7175' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s;
  min-width: 220px;
}

#modelJumpSelect:focus {
  border-color: var(--accent);
}

/* ===== SIZE SELECT IN MODAL ===== */
.size-select {
  padding: 10px 40px 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7175' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  width: 100%;
  transition: border-color 0.2s;
}

.size-select:focus {
  border-color: var(--gold);
}

/* ===== QUANTITY STEPPER ===== */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  background: var(--surface);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 4px;
}

/* ===== QUANTITY ROW + TOTAL ===== */
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-total {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.qty-total strong {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== SIMILAR OPTIONS ===== */
.similar-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.similar-card {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  background: var(--surface);
}

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

.similar-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.similar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.similar-name {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 8px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-price {
  font-size: 0.65rem;
  color: var(--gold);
  padding: 0 8px 6px;
  font-weight: 500;
}

.free-ship-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== HERO (Compact Banner) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0a0a0a url('images/hero.jpg') center/cover no-repeat;
  margin-top: 56px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 800px;
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 6px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 40%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-stats {
  display: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.25);
}

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

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.hero .btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-full {
  width: 100%;
}

/* ===== SECTION STYLES ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 12px;
}

.section-title.left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

.section-subtitle a {
  color: var(--accent);
  font-weight: 600;
}

/* ===== BRANDS SECTION ===== */
.brands {
  padding: 64px 0;
}

.brand-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.brand-tab {
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.brand-tab:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.brand-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ===== SERIES SUB-TABS ===== */
.series-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.series-tabs:empty {
  display: none;
}

.series-tab {
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.series-tab:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.series-tab.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
}

.series-group.series-hidden {
  display: none;
}

.brand-section {
  margin-bottom: 48px;
  animation: fadeUp 0.4s ease-out;
}

.brand-section.hidden {
  display: none;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 3px;
}

.brand-desc {
  display: none;
}

.brand-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
}

.brand-price span {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

/* ===== SERIES & WHEEL CARDS ===== */
.series-group {
  margin-bottom: 32px;
}

.series-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-left: 4px;
  color: var(--text-muted);
}

.series-title span {
  color: var(--text-muted);
  font-weight: 400;
}

.wheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.wheel-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
}

.wheel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.wheel-img-wrap {
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
}

.wheel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wheel-card:hover .wheel-img-wrap img {
  transform: scale(1.05);
}

.wheel-card-info {
  padding: 12px 14px 16px;
  text-align: center;
}

.wheel-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.wheel-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.wheel-swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
}

.wheel-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.wheel-swatch:hover {
  border-color: var(--text-muted);
  transform: scale(1.15);
}

.wheel-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text);
}

.wheel-swatch-more {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== WHEEL DETAIL MODAL ===== */
.wheel-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 24px;
}

.wheel-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wheel-modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}

.wheel-modal-overlay.active .wheel-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-images {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
}

.modal-images img {
  width: 100%;
  display: block;
}

.modal-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.modal-specs {
  flex: 1;
  margin-bottom: 24px;
}

.spec-group {
  margin-bottom: 20px;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.spec-value {
  font-size: 0.95rem;
  line-height: 1.6;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.spec-chip {
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.spec-chip--selectable {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.spec-chip--selectable:hover {
  border-color: var(--gold);
  color: var(--text);
}

.spec-chip--selectable.spec-chip--active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  font-weight: 600;
}

.spec-chip--dual::after {
  content: '2x';
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  margin-left: 4px;
  vertical-align: super;
}

.spec-chip--active.spec-chip--dual::after {
  color: #fff;
}

#dynamicSpecs .spec-group {
  animation: fadeUp 0.15s ease-out;
}

.modal-quote-btn {
  margin-top: auto;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 80px 0;
  background: var(--surface);
}

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

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.gallery-item.large {
  grid-column: span 2;
}

.gallery-placeholder {
  aspect-ratio: 16/10;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-item.large .gallery-placeholder {
  aspect-ratio: 2/1;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-points {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.point-icon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  min-width: 40px;
  letter-spacing: 1px;
}

.about-point h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.about-img-placeholder {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: var(--surface);
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

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

.contact-social-card svg {
  flex-shrink: 0;
  color: var(--text);
}

.contact-social-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-social-card strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-social-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FOOTER (Keep Dark) ===== */
.footer {
  padding: 48px 0 32px;
  background: #1a1a1a;
  color: #f0f0f0;
}

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

.footer .logo {
  color: #f0f0f0;
}

.footer-brand p {
  color: #888;
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f0f0f0;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
}

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

/* ===== RESPONSIVE ===== */

/* --- Tablet & below (768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Mobile nav */
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    padding: 80px 40px;
    gap: 24px;
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--text);
  }

  /* Mobile nav - brands accordion */
  .nav-has-sub:hover .nav-sub-menu {
    display: none; /* disable hover on mobile */
  }

  .nav-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--surface);
    border-left: 2px solid var(--accent);
    margin: 4px 0 4px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-sub-menu.open {
    display: block;
    max-height: 200px;
  }

  .nav-sub-menu li a {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  /* Nav backdrop */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Hero */
  .hero {
    min-height: 40vh;
  }

  .hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Sections */
  .brands {
    padding: 48px 0;
  }

  .gallery {
    padding: 48px 0;
  }

  .about {
    padding: 48px 0;
  }

  .contact {
    padding: 48px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }

  /* Model jump dropdown */
  #modelJumpSelect {
    min-width: 180px;
    font-size: 16px; /* prevent iOS zoom */
  }

  /* Brand tabs — horizontal scroll */
  .brand-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
    padding-bottom: 4px;
    gap: 6px;
  }

  .brand-tabs::-webkit-scrollbar {
    display: none;
  }

  .brand-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.72rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Series sub-tabs — horizontal scroll on mobile */
  .series-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
    gap: 6px;
  }

  .series-tabs::-webkit-scrollbar {
    display: none;
  }

  .series-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.68rem;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  /* Brand header */
  .brand-header {
    padding: 16px 4px;
    margin-bottom: 16px;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .brand-price {
    font-size: 1.1rem;
  }

  /* Series */
  .series-group {
    margin-bottom: 24px;
  }

  .series-title {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  /* Wheel grid — 3 columns on tablet */
  .wheel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .wheel-card:hover {
    transform: none;
    box-shadow: none;
  }

  .wheel-card-info {
    padding: 8px 8px 12px;
  }

  .wheel-name {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .wheel-price {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .wheel-swatch {
    width: 18px;
    height: 18px;
  }

  .wheel-swatch-more {
    font-size: 0.6rem;
  }

  /* Modal — bottom sheet on mobile */
  .wheel-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .wheel-modal {
    max-width: 100%;
    max-height: 95dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-images {
    max-height: 250px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: row;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .modal-images img {
    min-width: 100%;
    height: 250px;
    object-fit: cover;
    scroll-snap-align: start;
  }

  .modal-info {
    padding: 20px 16px 24px;
  }

  .modal-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .spec-group {
    margin-bottom: 14px;
  }

  .spec-label {
    font-size: 0.65rem;
  }

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

  .spec-chip {
    font-size: 0.68rem;
    padding: 3px 10px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.large {
    grid-column: span 2;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    order: -1;
  }

  .section-title.left {
    text-align: center;
  }

  /* Contact */
  .contact-socials {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Prevent iOS zoom on input focus */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* --- Small tablets / large phones (600px) --- */
@media (max-width: 600px) {
  .wheel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }

  .brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .brand-price {
    font-size: 0.95rem;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* --- Small phones (480px) --- */
@media (max-width: 480px) {
  .contact-socials {
    grid-template-columns: 1fr;
  }

  .wheel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .wheel-card-info {
    padding: 6px 6px 10px;
  }

  .wheel-name {
    font-size: 0.65rem;
  }

  .wheel-price {
    font-size: 0.6rem;
  }

  .wheel-swatches {
    gap: 4px;
  }

  .wheel-swatch {
    width: 16px;
    height: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .hero {
    min-height: 35vh;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .hero-actions .btn {
    padding: 14px 24px;
    font-size: 0.8rem;
    min-height: 48px;
  }

  .brand-header {
    padding: 12px 4px;
    margin-bottom: 12px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  .series-title {
    font-size: 0.72rem;
  }

  .brands, .gallery, .about, .contact {
    padding: 36px 0;
  }

  .modal-images {
    max-height: 200px;
  }

  .modal-images img {
    height: 200px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .footer {
    padding: 28px 0 20px;
  }

  .footer-links {
    gap: 12px;
    font-size: 0.8rem;
  }

  .footer-brand p {
    font-size: 0.8rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* --- Very small phones (360px) --- */
@media (max-width: 360px) {
  .hero-tagline {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 12px;
  }

  .wheel-grid {
    gap: 8px;
  }

  .wheel-name {
    font-size: 0.6rem;
  }

  .modal-info {
    padding: 16px 12px 20px;
  }
}
