/* ================= BRANDS & MODELS CATALOGUE CSS ================= */
:root {
  --bg-dark: #070a13;
  --bg-card: rgba(13, 21, 39, 0.85);
  --bg-card-hover: rgba(18, 30, 56, 0.95);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(37, 211, 102, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --brand-green: #25d366;
  --brand-cyan: #38bdf8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(37, 211, 102, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 211, 102, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

.brands-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.brands-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.brands-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brands-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brands-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
}

.nav-item-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #86efac;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-item-highlight:hover {
  background: #25d366;
  color: #070a13;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* ================= HERO SECTION ================= */
.brands-hero {
  padding: 48px 0 28px;
  text-align: center;
  position: relative;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #86efac;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.hero-search-input {
  width: 100%;
  background: rgba(13, 21, 39, 0.9);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 44px;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-search-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ================= SECTION HEADINGS ================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-num {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--brand-green);
  background: rgba(37, 211, 102, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

/* ================= BRANDS CHIPS / GRID (SECTION 08) ================= */
.brands-section {
  padding: 24px 0 36px;
}

.brands-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.brand-chip-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}

.brand-chip-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.brand-chip-card.active {
  background: rgba(18, 38, 30, 0.95);
  border-color: var(--brand-green);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.brand-chip-logo {
  height: 38px;
  max-width: 90px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.brand-chip-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.brand-chip-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
}

/* ================= TYRE MODELS SHOWCASE (SECTION 09) ================= */
.models-showcase-section {
  padding: 20px 0 60px;
}

.models-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.active-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-brand-logo {
  height: 36px;
  max-width: 80px;
  object-fit: contain;
}

.active-brand-text h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.active-brand-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.size-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.size-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.size-chip-btn.active {
  background: rgba(37, 211, 102, 0.2);
  border-color: var(--brand-green);
  color: #86efac;
}

/* ================= TYRE MODELS GRID ================= */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.model-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.model-img-wrap {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.model-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.6));
  transition: transform var(--transition-fast);
}

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

.model-brand-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 10, 19, 0.85);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.model-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.model-sizes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.model-size-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.model-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-model-wa {
  flex: 1;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-model-wa:hover {
  background: #25d366;
  color: #070a13;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-model-match {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-model-match:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

/* ================= EMPTY STATE & LOADING ================= */
.models-empty-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.models-empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.models-empty-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.models-empty-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 18px;
}

/* ================= FOOTER ================= */
.brands-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 8, 17, 0.95);
  padding: 24px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.brands-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

@media (max-width: 640px) {
  .brands-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .brand-chip-card {
    padding: 10px 6px;
  }
  .brand-chip-logo {
    height: 28px;
    margin-bottom: 6px;
  }
  .models-grid {
    grid-template-columns: 1fr;
  }
  .header-nav span {
    display: none;
  }
}
