@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --white: #FFFFFF;
}

/* Light Theme Variables */
:root, html[data-theme="light"] {
  --primary: #0B1F3A;         /* Deep Navy Blue */
  --accent-orange: #F97316;   /* Energetic Orange */
  --accent-green: #16A34A;    /* Trustworthy Green */
  --bg-light: #F6F8FB;        /* Soft Cool Grey */
  --card-bg: #FFFFFF;         /* Pure White */
  --black-grid: #050B14;      /* Deep Midnight Black */
  --text-dark: #111827;       /* Charcoal Black */
  --text-muted: #4B5563;      /* Muted Slate Grey */
  --border-color: #E5E7EB;    /* Thin Light Border */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* Premium Midnight Dark Theme Variables */
html[data-theme="dark"] {
  --primary: #93C5FD;         /* Soft Glowing Accent Blue */
  --accent-orange: #FB923C;   /* Radiant Sunset Orange */
  --accent-green: #4ADE80;    /* Bright Mint Green */
  --bg-light: #0B1120;        /* Deep Space Midnight Blue */
  --card-bg: #151F32;         /* Polished Obsidian Navy Card */
  --black-grid: #020617;      /* True Void Dark Grid */
  --text-dark: #F3F4F6;       /* Bright Soft Grey / Ice White */
  --text-muted: #9CA3AF;      /* Soft Muted Grey */
  --border-color: #1F2937;    /* Slate Shadow Border */
  --glass-bg: rgba(21, 31, 50, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
}

/* Smooth transitions when switching themes */
body, header, section, footer, .card, .gallery-item, .modal-card, .btn-nav, .form-group input, .form-group select, .mega-menu, #navbar, .theme-toggle-btn {
  transition: background-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
              color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Managed by Lenis */
  overflow-x: hidden;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

/* ==========================================================================
   3. STICKY NAVBAR & MEGA MENU
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.9rem 0;
  z-index: 1000;
  color: #FFFFFF;
  background: rgba(5, 11, 20, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.6rem 0;
  color: var(--text-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.logo-link {
  position: relative;
  height: 50px;
  width: 270px; /* Perfectly sized to accommodate the logo width (180 * 1.5) without overlapping links */
  display: block;
  flex-shrink: 0; /* Guarantee that the logo container never shrinks and overlaps with Home */
}

.logo-img {
  height: 180px; /* Elegant slightly reduced desktop size to prevent link collision */
  width: auto;
  position: absolute;
  top: -60px; /* Vertically centered for the 180px height */
  left: 0;
  z-index: 1001;
  pointer-events: none;
  transition: var(--transition-smooth);
}

@media (max-width: 1200px) {
  .logo-link {
    width: 220px; /* Scaled down slightly to prevent link collision on medium screens */
    height: 44px;
  }
  .logo-img {
    height: 146px;
    top: -51px;
  }
  .nav-links {
    gap: 1.25rem; /* Compress the gap to make sure all links fit in one line */
  }
}

@media (max-width: 991px) {
  .logo-link {
    width: 240px; /* Width exactly matches 160 * 1.5 */
  }
  .logo-img {
    height: 160px;
    top: -55px;
  }
}

@media (max-width: 768px) {
  .logo-link {
    width: 165px; /* Width exactly matches 110 * 1.5 to eliminate button overlap */
    height: 40px;
  }
  .logo-img {
    height: 110px;
    top: -35px;
  }
}

@media (max-width: 480px) {
  .logo-link {
    width: 135px; /* Width exactly matches 90 * 1.5 to leave maximum room for CTA buttons */
    height: 32px;
  }
  .logo-img {
    height: 90px;
    top: -28px;
  }
}

/* Scrolled Navbar Override logo/links */
#navbar.scrolled .logo, #navbar.scrolled .nav-link {
  color: var(--text-dark);
}

/* Premium Theme Toggle Button */
.theme-toggle-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(20deg);
  background: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #FFFFFF;
}

#navbar.scrolled .btn-nav-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.btn-nav-outline:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
}

#navbar.scrolled .btn-nav-outline:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
}

.btn-nav-solid {
  background: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  color: #FFFFFF;
}

.btn-nav-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

@media (max-width: 768px) {
  .nav-ctas {
    gap: 0.6rem;
  }
  .btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem; /* Compact container padding to free up horizontal space */
  }
  .nav-ctas {
    gap: 0.4rem;
  }
  .btn-nav {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

@media (max-width: 450px) {
  /* On small mobile screens, hide CTA text to morph buttons into compact, elegant circular pills */
  .btn-nav .btn-text {
    display: none;
  }
  .btn-nav {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .nav-ctas {
    gap: 0.35rem;
  }
}

/* Make the parent item relative so the dropdown aligns to it */
.nav-item-mega {
  position: relative;
}

/* Mega Menu container */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 260px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) translateX(-50%);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 1.5rem;
  z-index: 999;
}

.nav-item-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(15px) translateX(-50%);
}

.mega-container {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.mega-sidebar {
  border-right: none;
  padding-right: 0;
}

.mega-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.mega-categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-cat-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.mega-cat-link:hover {
  background: var(--bg-light);
  color: var(--accent-orange);
  padding-left: 0.75rem;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mega-car-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
}

.mega-car-card:hover {
  background: #FFFFFF;
  border-color: var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.mega-car-card img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

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

.mega-car-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.mega-car-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
}

/* ==========================================================================
   4. FULLSCREEN CINEMATIC HERO
   ========================================================================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure container fills hero flex width properly */
#hero .container {
  width: 100%;
  position: relative;
  z-index: 4;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;          /* faded in by GSAP when ready */
  will-change: transform, opacity;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 20, 0.35) 0%,
    rgba(5, 11, 20, 0.5) 50%,
    rgba(5, 11, 20, 0.85) 100%
  );
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-car-tag-wrap {
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.hero-car-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent-orange);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
}

/* Glassmorphism Slider Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-arrow-left {
  left: 2rem;
}

.hero-arrow-right {
  right: 2rem;
}

/* Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(5, 11, 20, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: var(--accent-orange);
  width: 28px;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .hero-arrow {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .hero-arrow-left {
    left: 0.75rem;
  }
  .hero-arrow-right {
    right: 0.75rem;
  }
  .hero-dots {
    bottom: 8.5rem;
  }
}

.hero-title-wrap {
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 650px;
  line-height: 1.6;
  text-align: center;
}

/* Trust Badges Styling */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  align-items: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.hero-badge i {
  color: var(--accent-orange);
  font-size: 0.95rem;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-hero-solid {
  background: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  color: #FFFFFF;
}

.btn-hero-solid:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.btn-hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #FFFFFF;
}

.btn-hero-outline:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.scroll-indicator i {
  font-size: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

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

/* ==========================================================================
   5. FLOATING SEARCH PANEL
   ========================================================================== */
.search-panel-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -6rem; /* Overlap Hero elegantly */
  padding: 0 2rem;
}

.search-panel {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(5, 11, 20, 0.12); /* Modern dark premium shadow */
  padding: 2.25rem 2.5rem;
  border: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 1.5rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-select-wrapper {
  position: relative;
}

.search-select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 12px;
  appearance: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-select:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.search-select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-search {
  background: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  color: #FFFFFF;
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-search:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* ==========================================================================
   6. WHITE CAR SLIDER SECTION
   ========================================================================== */
#product-slider {
  background: #FFFFFF;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.slider-title span {
  color: var(--accent-orange);
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide.exit-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100px);
}

.slide.exit-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(100px);
}

.slide-content-left {
  flex: 1;
  max-width: 380px;
  padding-right: 2rem;
}

.slide-car-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.slide-car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

.slide-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.slide-spec-item {
  display: flex;
  flex-direction: column;
}

.slide-spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.btn-slide-detail {
  padding: 0.85rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-slide-detail:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.slide-image-right {
  flex: 1.3;
  display: flex;
  justify-content: center;
  position: relative;
}

.slide-image-right img {
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(11, 31, 58, 0.15));
  transition: var(--transition-smooth);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(11, 31, 58, 0.1);
}

.slider-arrow-left {
  left: -60px;
}

.slider-arrow-right {
  right: -60px;
}

.slider-dots {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--accent-orange);
  width: 25px;
  border-radius: 5px;
}

/* ==========================================================================
   7. FEATURED USED CARS GRID
   ========================================================================== */
#featured-cars {
  padding: 6rem 0;
  background: var(--bg-light);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.section-title span {
  color: var(--accent-orange);
}

.section-desc {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 500px;
}

.car-grid {
  grid-template-columns: repeat(3, 1fr);
}

.car-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease both;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(11, 31, 58, 0.08);
  border-color: rgba(249, 115, 22, 0.2);
}

.car-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.car-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.car-card:hover .car-card-img-wrap img {
  transform: scale(1.06);
}

.inspected-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-green);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

.car-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.car-card-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.car-card-specs span:not(:last-child)::after {
  content: '•';
  margin-left: 0.5rem;
  color: #CBD5E1;
}

.car-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.car-card-price-wrap {
  display: flex;
  flex-direction: column;
}

.car-card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.car-card-emi {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.car-card-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-card-detail {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-card-detail:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-card-whatsapp {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-card-whatsapp:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

/* Share action row — modal bottom buttons */
.share-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
}

[data-theme="light"] .share-btn {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

.share-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

/* On very small screens ensure they wrap neatly and stay readable */
@media (max-width: 400px) {
  .share-actions-row {
    gap: 0.4rem;
  }
  .share-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
  }
}


/* ==========================================================================
   8. BLACK MODULAR GRID SECTION
   ========================================================================== */
#modular-grid {
  background: var(--black-grid);
  color: #FFFFFF;
  padding: 6rem 0;
}

.grid-title {
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 4rem;
}

.grid-title span {
  color: var(--accent-orange);
}

.modular-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.grid-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: var(--transition-smooth);
  animation: fadeInUp 0.7s ease both;
}

.grid-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.grid-card-icon {
  font-size: 2.2rem;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

.grid-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.grid-card-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* Mixed card sizes */
.grid-card-double {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.grid-card-double-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.grid-card:hover .grid-card-double-img {
  transform: scale(1.03);
}

/* ==========================================================================
   9. EMI CALCULATOR SECTION
   ========================================================================== */
#emi-calculator {
  padding: 6rem 0;
  background: #FFFFFF;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calculator-info h2 span {
  color: var(--accent-orange);
}

.calculator-info p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.calculator-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-header span.val {
  color: var(--primary);
  font-size: 1rem;
}

/* Range Input styling */
.calc-range {
  width: 100%;
  -webkit-appearance: none;
  background: #E2E8F0;
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-outputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.calc-out-item {
  display: flex;
  flex-direction: column;
}

.calc-out-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.calc-out-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.calc-out-value-orange {
  color: var(--accent-orange);
}

/* ==========================================================================
   10. PREMIUM GALLERY SECTION
   ========================================================================== */
/* Radial glow blobs in background */
.gallery-section {
  position: relative;
  padding: 7rem 0 6rem;
  background: #030712; /* Premium deep dark space */
  overflow: hidden;
  perspective: 1200px; /* Enable 3D space for tilt effect */
}

.gallery-bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.gallery-bg-blur.glow-1 {
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14) 0%, transparent 75%);
  animation: floatBlob1 24s infinite alternate ease-in-out;
}

.gallery-bg-blur.glow-2 {
  bottom: -15%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(11, 31, 58, 0.35) 0%, transparent 75%);
  animation: floatBlob2 28s infinite alternate ease-in-out;
}

.gallery-bg-blur.glow-3 {
  top: 35%;
  left: 35%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 75%);
  animation: floatBlob3 18s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(90px, 40px) scale(1.15); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-80px, -60px) scale(0.9); }
}

@keyframes floatBlob3 {
  0% { transform: translate(0, 0) scale(0.95); }
  100% { transform: translate(60px, -70px) scale(1.05); }
}

.gallery-section .container {
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gallery-title span {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Showroom Filter Tabs ── */
.gallery-filters-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -1.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 10;
}

.gallery-filters {
  display: flex;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.35rem;
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  gap: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-filter-btn:hover {
  color: #FFFFFF;
}

.gallery-filter-btn.active {
  background: var(--accent-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

/* ── Grid Layout ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 290px 290px;
  gap: 1.3rem;
}

/* Spotlight: col 1-2, row 1-2 (double height) */
.gallery-spotlight {
  grid-column: span 2;
  grid-row: span 2;
}

/* Wide card: col 3-4, single row */
.gallery-wide {
  grid-column: span 2;
}

/* ── Individual Gallery Item ── */
.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: #0a1122;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease;
  will-change: transform;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(249, 115, 22, 0);
  z-index: 4;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.gallery-item:hover::after {
  border-color: rgba(249, 115, 22, 0.35);
}

.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ── Mouse Glow Border Effect ── */
.gallery-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    140px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(249, 115, 22, 0.12),
    transparent 80%
  );
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

/* ── Image Wrap ── */
.gallery-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: grayscale(100%) brightness(0.7);
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.05) translateZ(10px);
  filter: grayscale(0%) brightness(0.75) saturate(1.2);
}

/* ── Dark Gradient Overlay ── */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(5, 11, 20, 0.4) 60%,
    rgba(5, 11, 20, 0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
  transition: background 0.4s ease;
  transform: translateZ(20px); /* 3D pop effect */
}

.gallery-spotlight .gallery-overlay {
  padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(5, 11, 20, 0.55) 50%,
    rgba(5, 11, 20, 0.96) 100%
  );
}

/* ── Custom Pulsing Live Status Indicator Dot ── */
.gallery-tag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
  z-index: 3;
  transition: var(--transition-smooth);
}

.gallery-tag-dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.gallery-tag-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: pulseDot 1.8s infinite ease-out;
  opacity: 0;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ── Car Info Block ── */
.gallery-item-info {
  margin-bottom: 0.75rem;
  transform: translateY(35px); /* Hide specs initially */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.gallery-item-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
}

.gallery-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.gallery-spotlight .gallery-item-name {
  font-size: 1.7rem;
}

/* ── Specifications hover drawer ── */
.gallery-item-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-item-specs {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}

.spec-pill i {
  font-size: 0.65rem;
  color: var(--accent-orange);
}

.gallery-item:hover .spec-pill {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.09);
}

/* ── CTA Row ── */
.gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
  width: fit-content;
}

.gallery-item:hover .gallery-cta {
  opacity: 1;
  transform: translateY(0);
}

.gallery-cta:hover {
  background: #ea580c;
}

.gallery-cta i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-cta i {
  transform: translateX(3px);
}

/* ── Shimmer Effect ── */
.gallery-shimmer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}

.gallery-shimmer::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -75%;
  width: 50%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: skewX(-20deg);
  transition: none;
  opacity: 0;
}

.gallery-item:hover .gallery-shimmer::after {
  animation: galleryShimmer 0.65s ease forwards;
}

@keyframes galleryShimmer {
  0%   { left: -75%; opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* ── Bottom CTA Row ── */
.gallery-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery-bottom-cta p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: var(--accent-orange);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.gallery-btn-all:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.gallery-btn-all i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.gallery-btn-all:hover i {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px 240px;
  }
  .gallery-spotlight {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 220px);
  }
  .gallery-spotlight {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-wide {
    grid-column: span 2;
  }
  .gallery-bottom-cta {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .gallery-spotlight .gallery-item-name {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 220px);
  }
  .gallery-spotlight,
  .gallery-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ==========================================================================
   11. SELL YOUR CAR SECTION
   ========================================================================== */
#sell-car {
  padding: 6rem 0;
  background: var(--bg-light);
}

.sell-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.sell-details h2 span {
  color: var(--accent-orange);
}

.sell-details p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}

.sell-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sell-step {
  display: flex;
  gap: 1rem;
}

.sell-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sell-step-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.sell-step-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.sell-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.form-group-full {
  grid-column: span 2;
}

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

.form-input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.btn-form-submit {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: var(--transition-smooth);
}

.btn-form-submit:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

/* ==========================================================================
   11. FINAL CINEMATIC BANNER
   ========================================================================== */
#final-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
}

.banner-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 58, 0.8);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  padding: 0 2rem;
  max-width: 700px;
}

.banner-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.btn-banner {
  background: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  color: #FFFFFF;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* ==========================================================================
   12. CONTACT FOOTER
   ========================================================================== */
footer {
  background: linear-gradient(135deg, #0b192c 0%, #1a365d 50%, #0f172a 100%);
  color: #FFFFFF;
  padding: 5rem 0 3rem;
  border-top: 4px solid var(--accent-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--accent-orange);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: #FFFFFF;
}

.social-icon:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-orange);
  padding-left: 0.25rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
}

.footer-contact-item i {
  color: var(--accent-orange);
  margin-top: 0.25rem;
}

.footer-map-wrap {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   13. MODAL POPUPS (CAR DETAIL & SUCCESS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 3rem;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  background: var(--bg-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

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

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.modal-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.modal-img-wrap {
  position: relative;
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
}

.modal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Gallery Navigation Buttons overlay on main image */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white, #ffffff);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav-btn.prev-btn {
  left: 1rem;
}

.gallery-nav-btn.next-btn {
  right: 1rem;
}

/* Thumbnails Strip */
.modal-thumbnails-strip {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  align-items: center;
}

/* Custom Scrollbar for Thumbnails */
.modal-thumbnails-strip::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbnails-strip::-webkit-scrollbar-track {
  background: transparent;
}

.modal-thumbnails-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.modal-thumbnails-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Thumbnail Item */
.modal-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 2px solid transparent;
  padding: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.modal-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.modal-thumb-item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.modal-thumb-item.active {
  border-color: var(--accent-orange, #F97316);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
  transform: translateY(-2px);
}

.modal-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-info-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.modal-info-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-info-val {
  font-weight: 600;
  color: var(--primary);
}

.modal-checklist {
  grid-column: span 2;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.modal-checklist-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.modal-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.modal-check-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-check-item i {
  color: var(--accent-green);
}

/* Success popup modal variant */
.modal-success-card {
  max-width: 450px;
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent-green);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   14. MEDIA QUERIES & RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1200px) {
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .btn-search {
    grid-column: span 3;
    justify-content: center;
  }
  .slider-arrow-left {
    left: -20px;
  }
  .slider-arrow-right {
    right: -20px;
  }
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modular-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-card-double {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  #navbar {
    background: rgba(11, 31, 58, 0.95);
    padding: 1rem 0;
  }
  .nav-links {
    display: none; /* In a real app we'd add a burger menu, let's simplify */
  }
  .nav-ctas {
    margin-left: auto;
  }
  .slide-image-right {
    display: none;
  }
  .slide-content-left {
    max-width: 100%;
    padding-right: 0;
  }
  .calculator-wrapper,
  .sell-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-checklist {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .btn-search {
    grid-column: span 1;
  }
  .car-grid,
  .modular-layout,
  .modal-checklist-grid {
    grid-template-columns: 1fr;
  }
  .grid-card-double {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .grid-card-double-img {
    height: 180px;
  }
  .calc-outputs {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .sell-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sell-card {
    padding: 1.2rem;
  }
}

/* ==========================================================================
   10. LOADING SCREEN STYLES
   ========================================================================== */
#cm-loader-bg {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}

/* Removed .cm-loader-area since we use full viewport width now */

.cm-moving-car {
  position: absolute;
  top: 40%;
  left: -20%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
}

.cm-svg-car {
  width: 180px;
  height: auto;
  z-index: 2;
}

.cm-smoke-wrap {
  position: absolute;
  bottom: 10px;
  left: -30px;
  width: 60px;
  height: 20px;
  z-index: 1;
}

.cm-smoke {
  position: absolute;
  bottom: 0;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0;
  animation: cmSmokeAnim 0.8s linear infinite;
}

.cm-smoke-1 { left: 30px; animation-delay: 0s; }
.cm-smoke-2 { left: 15px; animation-delay: 0.3s; }
.cm-smoke-3 { left: 0px; animation-delay: 0.6s; }

@keyframes cmSmokeAnim {
  0% { transform: scale(0.5) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(3) translate(-30px, -10px); opacity: 0; }
}

.cm-full-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: all 0.5s ease-out;
  z-index: 5;
}

.cm-full-logo img {
  max-height: 250px;
  width: 100%;
  object-fit: contain;
}

/* Progress Bar */
.cm-progress-container {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 10;
}

.cm-progress-text {
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.cm-progress-bar-wrap {
  width: 40vw;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.cm-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ff1e00;
  border-radius: 4px;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .cm-progress-bar-wrap {
    width: 75vw;
  }
}

.cm-drive-animation {
  animation: cmDrive 3s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

@keyframes cmDrive {
  0% { left: -20%; }
  100% { left: 110%; }
}

.cm-reveal-logo {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.cm-loader-hide {
  opacity: 0 !important;
  pointer-events: none;
}

/* Delivery Status Badges in Customer View */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-badge.available {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.in-transit {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.delivered {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.delivery-status-badge {
  border-radius: 6px;
  font-size: 0.7rem;
}

/* Fullscreen Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2010;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent-orange);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content-wrap {
  width: 80%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image-container {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

#lightbox-img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

#lightbox-img:not(.zoomed) {
  cursor: zoom-in;
}

.lightbox-thumbnails-strip {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  width: 90%;
  max-width: 600px;
  overflow-x: auto;
  justify-content: center;
  padding: 0.5rem 0;
  z-index: 2010;
}

.lightbox-thumb-item {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb-item.active {
  border-color: var(--accent-orange);
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-nav {
    display: none !important;
  }
  .lightbox-content-wrap {
    width: 95%;
  }
}

/* ==========================================================================
   13. STANDALONE HAPPY DELIVERIES SECTION STYLES
   ========================================================================== */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.delivery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.delivery-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.delivery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.delivery-thumbs img {
  opacity: 0.7;
  transition: all 0.2s ease;
}

.delivery-thumbs img:hover {
  opacity: 1;
  border-color: var(--accent-orange) !important;
}

@media (max-width: 768px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
