:root {
  --primary: #cc1e20;
  --primary-dark: #cc1e20;
  --secondary: #f0f0f0;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
}

.dark-theme {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #f97316;
  --dark: #f8fafc;
  --light: #0f172a;
  --gray: #94a3b8;
  --light-gray: #1e293b;
  --card-bg: rgba(30, 41, 59, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ================= Header & Navigation ================= */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1.5rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; transition: var(--transition);
}
header.scrolled {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--card-border);
}

/* When NOT scrolled — transparent background, white text on hero */
header:not(.scrolled) { 
  background: transparent; 
}
header:not(.scrolled) .logo {
  color: white;
}
header:not(.scrolled) .menu-toggle { 
  color: white; 
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}
header:not(.scrolled) .nav-btns .btn-outline {
  color: white;
  border-color: white;
}
header:not(.scrolled) .nav-btns .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* When SCROLLED — solid background, theme colors */
header.scrolled { 
  background: var(--card-bg); 
  box-shadow: 0 1px 2px rgba(0,0,0,0.1); 
  backdrop-filter: blur(15px);
}
header.scrolled .logo {
  color: var(--primary);
}
header.scrolled .menu-toggle { 
  color: var(--text-primary);
  border-color: var(--card-border);
  background: var(--card-bg);
}
header.scrolled .nav-btns .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem; font-weight: 900; color: var(--primary);
  transition: var(--transition);
  z-index: 1002;
}
.logo span { color: var(--secondary); }

.logo img {
  height: 80px; /* adjust as needed */
  width: auto;
  object-fit: contain;
}

/* Base nav (mobile-first: off-canvas) */
nav {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 340px; height: 100vh;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 90px 24px 24px;
  box-shadow: -12px 0 32px rgba(0,0,0,0.15);
  transition: var(--transition);
  z-index: 1001;
  border-left: 1px solid var(--card-border);
}
nav.active { right: 0; }
nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
nav a {
  text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 1.05rem;
  position: relative; transition: var(--transition);
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}
nav a::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
nav a:hover { 
  color: var(--primary); 
  padding-left: 10px;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem; font-weight: 900; color: var(--primary);
}
.logo span { color: var(--secondary); }

.logo img {
  height: 80px; /* adjust as needed */
  width: auto;
  object-fit: contain;
}
/* Base nav (mobile-first: off-canvas) */
nav {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 340px; height: 100vh;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 90px 24px 24px;
  box-shadow: -12px 0 32px rgba(0,0,0,0.15);
  transition: var(--transition);
}
nav.active { right: 0; }
nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
nav a {
  text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 1.05rem;
  position: relative; transition: var(--transition);
}
nav a::after {
  content: ""; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

.menu-toggle { display: none; font-size: 1.4rem; color: var(--text-primary); cursor: pointer; }
.nav-close { display: none; position: absolute; top: 18px; right: 18px; font-size: 1.6rem; cursor: pointer; }

.nav-btns { display: flex; align-items: center; gap: 1.5rem; }

.theme-toggle {
  background: var(--card-bg); border: 2px solid var(--card-border);
  border-radius: 50%; width: 45px; height: 45px; font-size: 1.2rem;
  color: var(--text-primary); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { transform: rotate(25deg) scale(1.1); background: var(--primary); color: white; }

.btn {
  padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-decoration: none; display: inline-block; text-align: center;
}
.btn-primary { background: var(--primary); color: white; border: 2px solid var(--primary); }
.btn-primary:hover { background: transparent; color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37,99,235,0.2); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* ================= Hero ================= */
.hero {
  height: 100vh; position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.4) 100%);
  z-index: -1;
}
.dark-theme .hero::before {
  background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: var(--transition); }
.hero-content { max-width: 1200px; flex: 1; margin: 0 auto; padding-top: 96px; } /* clears fixed header */
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; max-width: 500px; }

.hero-car-circle {
  width: 400px; height: 400px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(249,115,22,0.3));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; position: relative;
  animation: float 6s ease-in-out infinite; box-shadow: 0 20px 60px rgba(37,99,235,0.3);
}
.dark-theme .hero-car-circle {
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(249,115,22,0.4));
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 20px 60px rgba(59,130,246,0.4);
}
.hero-car-circle::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  z-index: -1; animation: rotate 10s linear infinite;
}
.hero-car-image {
  width: 300px; height: 200px;
  background-image: url("https://images.unsplash.com/photo-1555215695-3004980ad54e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hero h1 {
  font-family: "Montserrat", sans-serif; font-size: 4rem; font-weight: 900; line-height: 1.1;
  margin-bottom: 1.5rem; color: white;
}
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; }

/* ================= Filters ================= */
.filters-section { background-color: transparent; padding: 60px 0; position: relative; z-index: 10; }
.filters-container {
  background-color: rgba(255,255,255,0.12);
  border-radius: 15px; padding: 30px; box-shadow: var(--shadow);
  max-width: 1200px; margin: 0 auto; border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}
.dark-theme .filters-container { background-color: rgba(15,23,42,0.45); }

.filters-title { text-align: center; margin-bottom: 24px; color: var(--secondary); font-size: 1.8rem; }

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* <-- more flexible */
  gap: 16px;
  margin-bottom: 24px;
}

.filter-group {
  background-color: var(--bg-secondary);
  border-radius: 12px; padding: 16px; transition: var(--transition);
  border: 1px solid var(--card-border);
}
.filter-group:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(37,99,235,0.1); }

.filter-group label {
  display: block; margin-bottom: 10px; font-weight: 600; color: var(--text-primary); font-size: 1.05rem;
}

.filter-select,
.price-input input {
  width: 100%; padding: 12px 15px; border-radius: 8px;
  border: 1px solid var(--card-border); background-color: var(--card-bg);
  font-size: 1rem; transition: var(--transition); color: var(--text-primary);
  min-height: 44px; /* touch-friendly */
}
.filter-select:focus,
.price-input input:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.price-range-container {
  display: flex; gap: 12px; flex-wrap: wrap; /* wraps on small screens */
}
.price-input { flex: 1 1 200px; }

.search-btn-container { text-align: center; }
.search-btn {
  padding: 14px 40px; font-size: 1.1rem; font-weight: 600;
  background-color: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer;
  transition: var(--transition); box-shadow: 0 5px 15px rgba(255, 2, 2, 0.3);
}
.search-btn:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(172, 160, 159, 0.4); }

/* Dark theme inputs legibility */
.dark-theme .filter-select,
.dark-theme .price-input input {
  background-color: rgba(30,41,59,0.85);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* ================== Breakpoints ================== */

/* Large tablets */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .filters-container { padding: 24px; }
}

/* Tablets & landscape phones */
/* --- Fix: keep Search button visible on small screens --- */
@media (max-width: 768px) {
  /* Let the hero grow and show all content */
  .hero {
    height: auto;              /* stop forcing 100vh */
    min-height: 100dvh;        /* still fill the screen when short */
    overflow: visible;         /* allow content below the fold */
    padding-bottom: 24px;      /* breathing room for the button */
  }

  /* Make the button full-width and easy to tap */
  .search-btn {
    display: block;
    width: 100%;
  }

  /* Ensure there’s space below the filters */
  .filters-container {
    margin-bottom: 12px;
  }
}

/* Extra safety for very small phones */
@media (max-width: 400px) {
  .hero { padding-bottom: 32px; }
}

/* Phones */
@media (max-width: 600px) {
  .filters-grid { grid-template-columns: 1fr; } /* single column */
  .filters-container { margin: 0 10px; padding: 16px; }
  .filter-group label { font-size: 1rem; margin-bottom: 8px; }
  .filter-select, .price-input input { padding: 10px 12px; font-size: 0.95rem; }
  .filters-title { font-size: 1.4rem; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero h1 { font-size: 2rem; }
  .filters-container { padding: 12px; }
}

/* Desktop nav reset */
@media (min-width: 992px) {
  nav {
    position: static; right: auto; height: auto; width: auto;
    background: transparent; box-shadow: none; padding: 0;
  }
  nav ul { flex-direction: row; gap: 2.5rem; }
  .menu-toggle, .nav-close { display: none; }
}

/* Stats Section */
.stats {
  padding: 5rem 5%;
  background: var(--bg-secondary);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--card-border);
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Featured Cars */
.featured {
  padding: 6rem 5%;
  background: var(--bg-primary);
}

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

.section-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.car-card {
  border-radius: 15px;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--card-border);
  width: 350px;
}

.car-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.car-img {
  height: 220px;
  width: 350px;
  background-size: cover;
  background-position: center;
}

.car-info {
  padding: 1.5rem;
}

.car-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.car-title h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.car-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.3rem;
}

.car-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.car-detail {
  text-align: center;
}

.car-detail i {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.car-detail span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Testimonials */
.testimonials {
  padding: 6rem 5%;
  background: var(--bg-secondary);
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--card-border);
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -15px;
  color: var(--primary);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  border: 2px solid var(--primary);
}

.author-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  padding: 6rem 5%;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
}

.cta h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  color: white;
}

.cta .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 4rem 5% 2rem;
}

.dark-theme footer {
  background: #0a0e1a;
  color: var(--text-secondary);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-col p,
.footer-col a {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--card-border);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--text-secondary);
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 8rem 5% 2rem;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
  }

  .hero-image {
    order: 1;
  }

  .hero-car-circle {
    width: 300px;
    height: 300px;
  }

  .hero-car-image {
    width: 220px;
    height: 150px;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 2rem;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--card-border);
  }

  nav.active {
    right: 0;
  }

    nav ul {
      flex-direction: column;
      margin-top: 3rem;
    }

    ul li a {
      color: #333;
      text-decoration: none;
      padding: 5px 10px;
  }

  ul li.active a {
      color: #fff;
      background-color: #007bff; /* Active tab color */
      border-radius: 4px;
  }


  .nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 8rem 5% 2rem;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
  }

  .hero-image {
    order: 1;
  }

  .hero-car-circle {
    width: 280px;
    height: 280px;
  }

  .hero-car-image {
    width: 200px;
    height: 130px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 6rem 5% 2rem;
  }

  .hero-car-circle {
    width: 250px;
    height: 250px;
  }

  .hero-car-image {
    width: 180px;
    height: 120px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .btn {
    width: 100%;
  }

  .newsletter-form {
    width: 100%;
  }
}

/* ===== Categories ===== */
.categories {
  padding: 6rem 5%;
  background: var(--bg-primary);
}

.categories .section-header { text-align: center; margin-bottom: 2.5rem; }
.categories .section-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: .75rem;
}
.categories .section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
}

.category-card:hover { transform: translateY(-8px); }

.category-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.65) 100%);
}

.dark-theme .category-card::after {
  background: linear-gradient(180deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.75) 100%);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.25rem;
  z-index: 1;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.category-title {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .3px;
}

.category-icon { color: #fff; font-size: 1.5rem; }

/* Responsive tune */
@media (max-width: 576px) {
  .category-card { height: 200px; }
  .category-title { font-size: 1.05rem; }
}

/* ===== Promotions / Slider ===== */
.promos {
  padding: 6rem 5%;
  background: var(--bg-secondary);
}

.promo-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.promo-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.promo-slide {
  position: relative;
  min-width: 100%;
  height: 420px;
}

@media (max-width: 768px) {
  .promo-slide { height: 340px; }
}

.promo-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.promo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.15) 0%, rgba(15,23,42,0.75) 100%);
}

.dark-theme .promo-slide::after {
  background: linear-gradient(180deg, rgba(15,23,42,0.25) 0%, rgba(15,23,42,0.85) 100%);
}

.promo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  gap: 0.75rem;
}

.promo-badges { display: flex; gap: 8px; margin-bottom: 0.25rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
}

.badge--promo { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.badge--news  { background: linear-gradient(135deg, #14b8a6, #06b6d4); }

.promo-title {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.promo-text {
  color: rgba(255,255,255,0.9);
  max-width: 720px;
  margin-bottom: 0.5rem;
}

/* Arrows */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.promo-nav:hover { background: var(--primary); color: #fff; }
.promo-nav.prev { left: 12px; }
.promo-nav.next { right: 12px; }

/* Dots */
.promo-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.promo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: var(--transition);
}
.promo-dot.active { background: var(--primary); border-color: var(--primary); }
