/*
Theme Name: Vejle Auto Group
Theme URI: https://vejleautogroup.dk/
Author: Vejle Auto Group
Description: Premium dark luxury theme for Vejle Auto Group.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: vejle-auto-group
*/

/*
 * Vejle Auto Group – Stylesheet
 *
 * This CSS file defines the global styles, colour palette and section-specific
 * layouts for the Vejle Auto Group website. The design follows a dark
 * luxury theme with glassmorphism effects, smooth transitions and responsive
 * behaviour for mobile devices.
 */

/* ======= Colour palette variables ======= */
:root {
  --color-black: #070707;
  --color-graphite: #151515;
  --color-white: #f5f5f2;
  --color-accent: #c8a45d;
  --color-accent-hover: #b5934b;
  --color-gray: #2b2b2b;
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-accent: rgba(200, 164, 93, 0.3);
  --gradient-gold: linear-gradient(135deg, #c8a45d 0%, #8b7340 100%);
  --gradient-dark: linear-gradient(180deg, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, 0.8) 100%);
  --blur-glass: blur(20px);
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* ======= Global resets ======= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e1c98a;
}

img {
  max-width: 100%;
  height: auto;
}

/* ======= Container utility ======= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Improved spacing utilities */
section {
  padding: 8rem 0;
}

section:first-of-type {
  padding-top: 0;
}

/* ======= Buttons ======= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-black);
  box-shadow: 0 4px 20px rgba(200, 164, 93, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 164, 93, 0.5);
  background: linear-gradient(135deg, #d4b46d 0%, #9b8350 100%);
}

/* Shimmer effect for primary buttons */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.btn-primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-black);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-black);
  transform: translateY(-2px);
}

/* ======= Section titles ======= */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(245, 245, 242, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: rgba(245, 245, 242, 0.65);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ======= Header / Navigation ======= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-black);
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.site-header.scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  position: relative;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
  color: var(--color-white);
  transition: color 0.3s ease;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gradient-gold);
  box-shadow: 0 0 8px rgba(200, 164, 93, 0.4);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

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

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

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

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

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

/* ======= Favorites Nav Icon ======= */
.nav-favorites {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.nav-favorites svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-white);
  fill: none;
  transition: all 0.3s ease;
}

.nav-favorites:hover {
  border-color: var(--color-accent);
  background: rgba(200, 164, 93, 0.08);
  transform: translateY(-2px);
}

.nav-favorites:hover svg {
  stroke: var(--color-accent);
}

.nav-favorites .favorites-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(245, 245, 242, 0.6);
  min-width: 1.1em;
  text-align: center;
}

.nav-favorites .favorites-count.has-items {
  color: var(--color-black);
  background: var(--gradient-gold);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.nav-favorites[aria-current="page"] {
  border-color: var(--color-accent);
  background: rgba(200, 164, 93, 0.1);
}

.nav-favorites[aria-current="page"] svg {
  stroke: var(--color-accent);
  fill: var(--color-accent);
}

/* hide ::after/::before underline for icon link */
.main-nav a.nav-favorites::after,
.main-nav a.nav-favorites::before {
  display: none;
}

/* ======= Favorites Empty State ======= */
.favorites-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin-top: 2rem;
}

.favorites-empty svg {
  stroke: var(--color-accent);
  margin-bottom: 1.5rem;
}

.favorites-empty h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.favorites-empty p {
  color: rgba(245, 245, 242, 0.6);
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.favorites-empty .btn {
  display: inline-flex;
}

/* ======= Hero Section ======= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.hero-cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(7, 7, 7, 0.7) 100%);
  z-index: 2;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(0deg, rgba(7, 7, 7, 1) 0%, rgba(7, 7, 7, 0.8) 40%, transparent 100%);
  z-index: 3;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, rgba(200, 164, 93, 0.05), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem 0;
}

.hero-text-container {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -2.5px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-title .title-line {
  display: block;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(245, 245, 242, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.9;
  color: rgba(245, 245, 242, 0.75);
  margin-bottom: 3rem;
  max-width: 620px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 6rem;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-accent);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

/* Staggered animation for stat cards */
.stat-card:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.stat-card:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.stat-card:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(200, 164, 93, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-accent);
  background: rgba(200, 164, 93, 0.08);
  box-shadow: 0 12px 40px rgba(200, 164, 93, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(245, 245, 242, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 4;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.5);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scrollLine {
  0%, 100% {
    height: 60px;
  }
  50% {
    height: 30px;
  }
}

/* ======= Inventory Section ======= */
.inventory-section {
  background-color: var(--color-graphite);
  padding: 8rem 0;
  position: relative;
}

.inventory-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

/* Filter Bar */
.filter-bar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(20px);
  position: sticky;
  top: 100px;
  z-index: 100;
  transition: all 0.4s ease;
}

.filter-bar.sticky {
  background: rgba(7, 7, 7, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--color-border-accent);
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(245, 245, 242, 0.7);
}

.filter-select {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

/* Native dropdown panel — readable dark options */
.filter-select option,
#calc-months option,
#trade-condition option {
  background-color: #151515;
  color: #f5f5f2;
  padding: 0.5rem;
}

.filter-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gradient-gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200, 164, 93, 0.4);
  transition: transform 0.2s ease;
}

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

.filter-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--gradient-gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(200, 164, 93, 0.4);
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-sort label {
  font-size: 0.9rem;
  color: rgba(245, 245, 242, 0.7);
  font-weight: 500;
}

.btn-clear-filters {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-filters:hover {
  border-color: var(--color-accent);
  background: rgba(200, 164, 93, 0.1);
  color: var(--color-accent);
}

.filter-results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: rgba(245, 245, 242, 0.6);
  font-weight: 500;
}

#price-value,
#km-value {
  color: var(--color-accent);
  font-weight: 600;
}

/* Two-column inventory layout (biler.html) */
.inventory-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.inventory-layout .filter-bar {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  z-index: 1;
  background: rgba(15, 15, 15, 0.6);
}

.inventory-layout .filter-controls {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.inventory-layout .filter-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.inventory-layout .inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 0;
}

.filter-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.car-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.car-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.car-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-border-accent), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.car-card:hover::before {
  opacity: 1;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border-accent);
}

.car-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: var(--color-black);
}

.car-image {
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-image {
  transform: scale(1.08);
}

/* Favorite Button */
.btn-favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-favorite svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  fill: none;
  transition: all 0.3s ease;
}

.btn-favorite:hover {
  background: rgba(200, 164, 93, 0.9);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.btn-favorite:hover svg {
  stroke: var(--color-black);
}

.btn-favorite.active {
  background: var(--gradient-gold);
  border-color: var(--color-accent);
}

.btn-favorite.active svg {
  fill: var(--color-black);
  stroke: var(--color-black);
}

.btn-favorite-detail.active {
  border-color: var(--color-accent);
  background: rgba(200, 164, 93, 0.1);
  color: var(--color-accent);
}

.btn-favorite-detail.active svg {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

.car-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid;
  width: fit-content;
}

.badge-new {
  background: rgba(200, 164, 93, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.badge-certified {
  background: rgba(100, 200, 100, 0.2);
  border-color: #64c864;
  color: #64c864;
}

.badge-electric {
  background: rgba(100, 150, 255, 0.2);
  border-color: #6496ff;
  color: #6496ff;
}

.car-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1.5rem;
}

.car-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.car-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  flex: 1;
}

.car-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -1px;
}

.price-currency {
  font-size: 0.9rem;
  color: rgba(245, 245, 242, 0.5);
  font-weight: 500;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(245, 245, 242, 0.5);
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.car-meta span {
  position: relative;
  padding-right: 1rem;
}

.car-meta span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: 0.4rem;
  color: var(--color-border);
}

.car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-size: 0.75rem;
  color: rgba(245, 245, 242, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
}

.inventory-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ======= Financing Section ======= */
.financing-section {
  background-color: var(--color-black);
  padding: 8rem 0;
  position: relative;
}

.financing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

.financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Financing Calculator */
.financing-calculator {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-accent);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-premium);
}

.financing-calculator h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-accent);
  font-weight: 600;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.calc-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(245, 245, 242, 0.7);
}

.calc-group input,
.calc-group select {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.calc-group input:focus,
.calc-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.calc-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.calc-result {
  margin-top: 2rem;
  transition: all 0.4s ease;
}

.calc-result.hidden {
  display: none;
}

.result-card {
  background: rgba(200, 164, 93, 0.05);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.result-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(245, 245, 242, 0.6);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.result-details {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.result-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-detail span:first-child {
  font-size: 0.8rem;
  color: rgba(245, 245, 242, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-detail span:last-child {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
}

.result-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-ctas .btn {
  flex: 1;
  min-width: 180px;
  justify-content: center;
}

/* Financing Info Card */
.financing-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.financing-info-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-weight: 600;
}

.financing-info-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.75);
  margin-bottom: 2rem;
}

.financing-list {
  list-style: none;
  margin: 2rem 0;
  padding-left: 0;
  display: grid;
  gap: 1rem;
}

.financing-list li {
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--color-accent);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.financing-list li:hover {
  background: rgba(200, 164, 93, 0.05);
  transform: translateX(8px);
}

.financing-list li::before {
  content: '→';
  position: absolute;
  left: 1rem;
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.financing-options {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.option-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: var(--color-accent);
  background: rgba(200, 164, 93, 0.05);
  transform: translateX(8px);
}

.option-card h4 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.option-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(245, 245, 242, 0.6);
}


/* ======= Trade-In Section ======= */
.trade-in-section {
  background-color: var(--color-graphite);
  padding: 8rem 0;
  position: relative;
}

.trade-in-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

.trade-in-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.trade-in-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(245, 245, 242, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.trade-in-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.75);
  margin-bottom: 2rem;
}

.trade-in-benefits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.trade-in-benefits li {
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--color-accent);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.trade-in-benefits li:hover {
  background: rgba(200, 164, 93, 0.05);
  transform: translateX(8px);
}

.trade-in-benefits li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.trade-in-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-accent);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-premium);
}

.trade-in-form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-accent);
  font-weight: 600;
}

.trade-in-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(245, 245, 242, 0.7);
}

.form-group input,
.form-group select {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.trade-in-form button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}


/* ======= Car Detail Page (Shopify Template) ======= */
.car-detail-page {
  padding-top: 80px;
}

.breadcrumb-container {
  background: var(--color-graphite);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(245, 245, 242, 0.6);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span:last-child {
  color: var(--color-white);
  font-weight: 500;
}

.car-detail-section {
  background: var(--color-black);
  padding: 4rem 0 8rem 0;
}

.car-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

.car-gallery {
  position: sticky;
  top: 120px;
}

.main-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-graphite);
  margin-bottom: 1.5rem;
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.thumbnail {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: var(--color-graphite);
}

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

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.car-detail-info h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(245, 245, 242, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.car-price-detail {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.car-price-detail .price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.car-price-detail .price-currency {
  font-size: 1.5rem;
  color: rgba(245, 245, 242, 0.5);
}

.car-meta-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(245, 245, 242, 0.5);
  font-weight: 600;
}

.meta-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
}

.car-specs-detail {
  margin-bottom: 3rem;
}

.car-specs-detail h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  font-weight: 600;
}

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

.car-description {
  margin-bottom: 3rem;
}

.car-description h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  font-weight: 600;
}

.car-description p {
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.75);
}

.car-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.car-detail-actions .btn {
  width: 100%;
  justify-content: center;
}


/* ======= Why Choose Us Section ======= */
.why-us-section {
  background-color: var(--color-graphite);
  padding: 8rem 0;
  position: relative;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

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

.why-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.why-item:hover::before {
  transform: scaleX(1);
}

.why-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-hover);
  background: rgba(200, 164, 93, 0.03);
}

.why-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.why-item p {
  line-height: 1.7;
  color: rgba(245, 245, 242, 0.7);
}

/* ======= Reviews Section ======= */
.reviews-section {
  background-color: var(--color-black);
  padding: 8rem 0;
  position: relative;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-hover);
}

.review-text {
  font-style: italic;
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.8);
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

.review-author {
  margin-top: 1.5rem;
  font-weight: 600;
  text-align: right;
  color: var(--color-accent);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ======= Contact Section ======= */
.contact-section {
  background-color: var(--color-graphite);
  padding: 8rem 0;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 350px;
  font-size: 1rem;
  line-height: 2;
  color: rgba(245, 245, 242, 0.8);
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info strong {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-info a {
  color: var(--color-white);
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--color-accent);
}

.contact-form {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(245, 245, 242, 0.9);
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

/* ======= Footer ======= */
.site-footer {
  background-color: var(--color-black);
  padding: 4rem 0 2rem 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-accent), transparent);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-about {
  flex: 1 1 300px;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-about p {
  line-height: 1.7;
  color: rgba(245, 245, 242, 0.6);
}

.footer-links,
.footer-social {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(245, 245, 242, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
}

.footer-social .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-social .social-icons a:hover {
  background: var(--gradient-gold);
  border-color: var(--color-accent);
  color: var(--color-black);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: rgba(245, 245, 242, 0.5);
}

/* ======= Responsive adjustments ======= */
@media (max-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
  }

  .inventory-layout {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 3rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(7, 7, 7, 0.98);
    backdrop-filter: var(--blur-glass);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--color-border);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .nav-favorites {
    align-self: flex-start;
    padding: 0.5rem 0.9rem;
  }

  .nav-favorites svg {
    width: 18px;
    height: 18px;
  }

  /* Filter bar responsive */
  .filter-bar {
    top: 80px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-sort {
    width: 100%;
  }

  .btn-clear-filters {
    width: 100%;
  }

  /* Inventory layout collapses to single column on mobile */
  .inventory-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .inventory-layout .filter-bar {
    position: relative;
    top: 0;
    max-height: none;
    overflow-y: visible;
    display: none;
  }

  .inventory-layout .filter-bar.open {
    display: block;
  }

  .filter-toggle {
    display: block;
  }

  /* Financing responsive */
  .financing-grid {
    grid-template-columns: 1fr;
  }

  .result-ctas {
    flex-direction: column;
  }

  .result-ctas .btn {
    width: 100%;
  }

  /* Trade-in responsive */
  .trade-in-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  /* Car detail responsive */
  .car-detail-grid {
    grid-template-columns: 1fr;
  }

  .car-gallery {
    position: relative;
    top: 0;
  }

  .car-detail-info h1 {
    font-size: 2rem;
  }

  .car-price-detail .price-amount {
    font-size: 2.5rem;
  }

  .car-meta-detail {
    grid-template-columns: 1fr;
  }

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

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

  .hero-title .title-line {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    margin-top: 3rem;
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem 1.5rem;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .stat-number {
    font-size: 2rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .car-image-wrapper {
    height: 220px;
  }

  .car-info {
    padding: 1.5rem;
  }

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

  .car-price {
    align-items: flex-start;
  }

  .why-grid,
  .reviews-grid {
    gap: 1.5rem;
  }

  .contact-content {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    width: 100%;
  }

  .stat-card {
    width: 100%;
  }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }
}
