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

:root {
  /* Colors */
  --blue-900: #1e3a5f;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --orange-500: #f97316;
  --orange-400: #fb923c;

  --gray-950: #0a0f1a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  --bg: #f1f5f9;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --container-pad: 24px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 28px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.08);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 220ms ease;
  --t-slow:   350ms ease;
}

/* ============================================================
   BASE
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--blue-800); }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--gray-900);
}

.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.view { display: none; }
.view.active { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(37,99,235,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  border-color: var(--gray-400);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-300, #93c5fd);
}
.btn-outline-blue:hover {
  background: var(--blue-50);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: var(--r-lg);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--blue-600);
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  background: var(--gray-100);
  color: var(--gray-900);
}

.header .btn-primary {
  margin-left: 8px;
  flex-shrink: 0;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--t-normal);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-950); /* fallback if image hasn't loaded */
  background-image: url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 100px 0 80px;
}

/* Dark overlay so text stays readable over any photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 15, 26, 0.82) 0%,
    rgba(10, 15, 26, 0.55) 60%,
    rgba(10, 15, 26, 0.30) 100%
  );
  z-index: 0;
}

.hero-bg-shapes { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.1); }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat { text-align: left; }

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  margin: 0 28px;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-section {
  padding: 72px 0 80px;
}

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

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--gray-500);
  font-size: 15px;
  margin-top: 4px;
}

/* Search */
.search-wrap {
  position: relative;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.search-input {
  width: 240px;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.search-input::placeholder { color: var(--gray-400); }
.search-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Category group */
.brand-category-group {
  margin-bottom: 52px;
}

.brand-category-group:last-child {
  margin-bottom: 0;
}

.brand-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-category-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-category-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.brand-category-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Brand Card */
.brand-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-color, var(--blue-600));
  opacity: 0;
  transition: opacity var(--t-normal);
}

.brand-card:hover {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.brand-card:hover::before { opacity: 1; }

.brand-card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  background: var(--brand-color, var(--blue-600));
  letter-spacing: -0.5px;
  overflow: hidden;
}

/* When a logo image is used: full-width banner, fixed height */
.brand-card-logo--image {
  width: 100%;
  height: 80px;
  border-radius: var(--r-md);
  padding: 0;
}

.brand-card-logo--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px 16px;
}

.brand-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.brand-card-tagline {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.brush-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.brush-count span {
  color: var(--blue-600);
}

.brand-card-arrow {
  color: var(--gray-400);
  transition: color var(--t-fast), transform var(--t-fast);
}
.brand-card:hover .brand-card-arrow {
  color: var(--blue-600);
  transform: translateX(3px);
}

.no-results {
  text-align: center;
  padding: 64px 0;
  color: var(--gray-400);
}
.no-results svg { margin: 0 auto 16px; opacity: 0.4; }
.no-results p { font-size: 16px; }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  background: var(--white);
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
}

.why-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

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

.why-card {
  padding: 28px 24px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--gray-100);
  background: var(--gray-50);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.why-card:hover {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================================
   BRAND DETAIL VIEW
   ============================================================ */
.brand-hero {
  background: linear-gradient(135deg, var(--gray-950) 0%, var(--brand-color, var(--blue-900)) 100%);
  padding: 48px 0;
  color: var(--white);
}

.brand-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--t-fast);
  margin-bottom: 16px;
  text-decoration: none;
}
.back-btn:hover { color: var(--white); }

.brand-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-hero-info h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.brand-hero-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

/* Brand info panel */
.brand-info-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 0;
}

.brand-info-inner {
  max-width: 780px;
}

.brand-info-inner--with-specs {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.brand-info-desc {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
}

/* Specs column (axel diameters + model groups) */
.brand-specs-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 280px;
}

.brand-specs-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-specs-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
}

/* Axel diameter chips */
.axel-list,
.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.axel-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--blue-50);
  color: var(--blue-700, #1d4ed8);
  border: 1.5px solid var(--blue-100);
  font-variant-numeric: tabular-nums;
}

.model-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}

@media (max-width: 768px) {
  .brand-info-inner--with-specs {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .brand-specs-col { min-width: 0; }
}

/* Catalog section */
.catalog-section {
  padding: 56px 0 80px;
}

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

.catalog-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
  background: var(--blue-50);
}
.filter-chip.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

/* Brush Grid */
.brush-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Brush Card */
.brush-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
}
.brush-card:hover {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.brush-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
  overflow: hidden;
}

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

.brush-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.brush-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.brush-card-sku {
  font-size: 12px;
  color: var(--gray-400);
  font-family: monospace;
  margin-bottom: 12px;
}

.brush-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Color swatches */
.brush-colors {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.color-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-right: 2px;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  border: 2px solid rgba(0,0,0,0.08);
  position: relative;
}
.color-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1;
}
.color-swatch.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue-600);
}
.color-swatch[data-color="white"],
.color-swatch[data-color="White"] {
  border: 2px solid var(--gray-300);
}

.color-swatch-more {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: default;
}

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

/* Type badge colors */
.badge-foam      { background: #fef3c7; color: #92400e; }
.badge-nylon     { background: #dbeafe; color: #1e40af; }
.badge-polycloth { background: #f3e8ff; color: #6b21a8; }
.badge-side      { background: #dcfce7; color: #166534; }
.badge-top       { background: #ffe4e6; color: #9f1239; }
.badge-tire      { background: #1f2937; color: #f9fafb; }
.badge-wheel     { background: #ecfdf5; color: #065f46; }
.badge-rocker    { background: #fff7ed; color: #9a3412; }

/* Brush image backgrounds */
.img-foam      { background: linear-gradient(135deg, #fef9c3, #fef3c7); }
.img-nylon     { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.img-polycloth { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }
.img-side      { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.img-top       { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.img-tire      { background: linear-gradient(135deg, #374151, #1f2937); }
.img-wheel     { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.img-rocker    { background: linear-gradient(135deg, #fff7ed, #fed7aa); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: fadeIn var(--t-normal);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--t-normal);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all var(--t-fast);
}
.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal p { color: var(--gray-600); margin-bottom: 24px; font-size: 14px; }

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-950);
  color: var(--gray-400);
  padding: 56px 0 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-mark { color: var(--blue-400, #60a5fa); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
  color: var(--gray-500);
}

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

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a,
.footer-address {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 10px;
  transition: color var(--t-fast);
  text-decoration: none;
}
.footer-col a:hover { color: var(--gray-300); }
.footer-address { font-style: normal; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: var(--gray-300); }

/* ============================================================
   BRAND BODY (description + carousel side by side, specs below)
   ============================================================ */
.brand-body-section {
  background: var(--white);
  padding: 48px 0 56px;
}

.brand-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.brand-body-text .brand-info-desc {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
}

.brand-body-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
}

/* 4:3 aspect ratio track */
.carousel-track {
  position: relative;
  padding-bottom: 75%;
  height: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.12));
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-lg);
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.85);
}

/* ============================================================
   COLORS PAGE
   ============================================================ */
.colors-hero {
  background: linear-gradient(135deg, var(--gray-950) 0%, var(--blue-900) 100%);
  padding: 56px 0 48px;
  color: var(--white);
}

.colors-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.colors-intro {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 680px;
}

.colors-section {
  padding: 56px 0 80px;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 28px;
}

.color-palette-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.palette-title {
  padding: 16px 20px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}

.palette-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   MONTERING PAGE
   ============================================================ */
.montering-section {
  padding: 56px 0 80px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 16:9 aspect ratio wrapper */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--gray-950);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --container-pad: 16px; }

  .header-inner { gap: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav.open .nav-link { padding: 12px 16px; }
  .header .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 0; }
  .stat-divider { margin: 0 16px; }
  .stat-num { font-size: 22px; }

  .section-header { flex-direction: column; align-items: flex-start; }
  .search-input { width: 100%; }
  .search-wrap { width: 100%; }

  .brands-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .brand-card { padding: 20px 16px; }

  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

  .brand-hero-info h1 { font-size: 24px; }

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

  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }

  .brand-body-grid { grid-template-columns: 1fr; }
  .carousel-placeholder { font-size: 56px; }
  .carousel-btn { display: none; }

  .colors-grid { grid-template-columns: 1fr; }
  .video-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brands-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
