:root {
  --color-primary: #2d2d2d;
  --color-accent: #d4a932;
  --color-accent-dark: #b8922a;
  --color-accent-glow: rgba(212, 169, 50, 0.15);
  --color-light: #f5f5f7;
  --color-white: #ffffff;
  --color-text: #2d2d2d;
  --color-text-light: #6b7280;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
  color: var(--color-white);
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 169, 50, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 169, 50, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  background: rgba(212, 169, 50, 0.2);
  color: var(--color-accent);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(212, 169, 50, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 169, 50, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.filter-group select {
  padding: 0.65rem 2rem 0.65rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-light);
  cursor: pointer;
  min-width: 150px;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-group select:hover {
  border-color: var(--color-accent);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.filter-group input[type="text"],
.filter-group input[type="number"] {
  padding: 0.65rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-light);
  width: 140px;
  transition: all var(--transition);
}

.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.filter-group input::placeholder {
  color: #9ca3af;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  background: var(--color-light);
  transition: all var(--transition);
}

.filter-checkbox:hover {
  border-color: var(--color-accent);
}

.filter-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.filter-reset {
  padding: 0.65rem 1.25rem;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--color-text-light);
  transition: all var(--transition);
  margin-left: auto;
}

.filter-reset:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.filter-count {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  
  .filter-group select,
  .filter-group input[type="text"],
  .filter-group input[type="number"] {
    width: 100%;
    min-width: auto;
  }
  
  .filter-reset {
    margin-left: 0;
  }
}

.card .price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-accent);
}

.car-specs-list {
  margin: 0.5rem 0;
}

.car-spec-line {
  color: #666;
  margin: 0.2rem 0;
  font-size: 0.85rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Section */
.section {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  color: var(--color-white);
  padding: 4rem 1rem 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer a {
  color: #aaa;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #888;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  margin-right: 0.5rem;
}

.section-icon svg {
  width: 20px;
  height: 20px;
}

/* Specs table */
.specs-table {
  width: 100%;
  font-size: 0.9rem;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th {
  text-align: left;
  padding: 0.35rem 0.5rem 0.35rem 0;
  font-weight: 500;
  color: #666;
  width: 50%;
  font-size: 0.85rem;
}

.specs-table td {
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

/* Car Detail Layout */
.car-variant {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-top: 0.25rem;
}

.car-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.car-images {
  position: relative;
}

.main-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.main-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.image-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.image-nav svg {
  width: 28px;
  height: 28px;
}

.image-nav-prev { left: 1rem; }
.image-nav-next { right: 1rem; }

.image-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.sold-badge-large {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
}

.coming-soon-large {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  border-color: var(--color-accent);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.price-box {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c49a2e 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.price-box > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.office-fee {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.price-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.price-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quick-spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.9rem;
}

.spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.spec-icon svg {
  width: 20px;
  height: 20px;
}

.contact-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.contact-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.contact-box p {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

.contact-box .btn {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-box .btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.contact-box .btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-large {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.specs-sections {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.specs-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
}

.specs-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

.car-description {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.car-description h3 {
  margin: 0 0 1rem;
}

.description-content {
  color: #444;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 992px) {
  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .car-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .quick-specs {
    grid-template-columns: 1fr 1fr;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Sold badge */
.sold-badge {
  background: #dc3545;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Service icons */
.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #e8c04a 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(212, 169, 50, 0.3);
  transition: transform var(--transition);
}

.card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

/* HGK Parts section */
.hgk-parts {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hgk-parts::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 169, 50, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.parts-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.parts-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.parts-content p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.parts-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.parts-brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.parts-brand-divider {
  opacity: 0.5;
  font-weight: 300;
}

.parts-brand-label {
  opacity: 0.85;
}

.parts-brand-shop {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.parts-brand-shop:hover {
  text-decoration: underline;
}

.parts-content {
  max-width: 1000px;
}

.parts-lead {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.parts-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 0 auto 2rem;
  max-width: 900px;
}

.parts-category {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.parts-category:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: var(--color-accent);
}

.parts-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 50%;
  color: var(--color-primary);
}

.parts-icon svg {
  width: 26px;
  height: 26px;
}

.parts-category h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: white;
}

.parts-category p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.75;
  line-height: 1.4;
}

.parts-segments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.parts-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.parts-segment svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .carousel-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .carousel-track {
    flex-direction: column;
    gap: 1rem;
  }
  
  .carousel-card {
    min-width: 100%;
    max-width: 100%;
  }
}

/* Car Carousel */
.carousel-section { background: var(--color-light); }

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carousel-card .car-card {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

/* Car Cards */
.car-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.car-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #e9e9e9;
  overflow: hidden;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-image img {
  transform: scale(1.05);
}

.car-card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
  line-height: 1.3;
  min-height: 2.6em;
}

.car-card-specs {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 1.4em;
}

.car-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

.car-card-price-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(50, 50, 50, 0.85);
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.car-card-btn {
  margin-top: auto;
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: white;
  text-align: center;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: background var(--transition);
}

.car-card-btn:hover {
  background: var(--color-accent-dark);
  color: white;
}

/* Coming Soon Badge */
.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sold Badge */
.sold-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #dc3545;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Carousel Wrapper with Buttons */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--color-accent);
  color: white;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  align-items: stretch;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel > .car-card {
  flex: 0 0 auto;
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
  height: auto;
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
  
  .carousel > .car-card {
    min-width: 280px;
    max-width: 280px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(50, 50, 50, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
  padding: 0.5rem;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-nav svg {
  width: 32px;
  height: 32px;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--color-accent);
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--color-accent);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--color-accent-dark);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid #e5e7eb;
}

.cookie-btn-decline:hover {
  border-color: var(--color-text-light);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1400;
}

.fab-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 169, 50, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.fab-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(212, 169, 50, 0.5);
}

.fab-toggle svg {
  width: 26px;
  height: 26px;
  transition: opacity 0.2s, transform 0.3s;
}

.fab-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.fab-container.open .fab-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.fab-container.open .fab-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.fab-container.open .fab-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.fab-action:hover {
  transform: scale(1.05);
  color: white;
}

.fab-action svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fab-phone { background: #2563eb; }
.fab-whatsapp { background: #25d366; }
.fab-form { background: var(--color-primary); }

/* Sort Bar */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sort-bar label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.sort-bar select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--color-white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color var(--transition);
}

.sort-bar select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Print Styles */
@media print {
  .header, .footer, .mobile-nav, .mobile-menu-btn,
  .fab-container, .cookie-banner, .filter-bar, .sort-bar,
  .car-card-btn, .contact-box, .carousel-wrapper, .carousel-btn,
  .image-nav, .lightbox { display: none !important; }

  body { background: white; color: black; font-size: 12pt; }
  .section { padding: 1rem 0; }
  .car-detail-layout { grid-template-columns: 1fr; }
  .main-image img { max-height: 400px; object-fit: contain; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .specs-card { border: 1px solid #ccc; break-inside: avoid; }
  .price-box { background: none; color: black; border: 2px solid #333; }
  .price-value { color: black; }
  a { color: black; text-decoration: none; }
}
