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

:root {
  --primary-color: #00b14f;
  --primary-hover: #009944;
  --secondary-color: #0068ff;
  --text-dark: #111827;
  --text-gray: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background-color: var(--white);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-img {
  width: auto;
  height: 36px;
  margin-right: 8px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-white {
  background: var(--white);
  color: var(--text-dark);
}

.btn-white:hover {
  background: #f3f4f6;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: url('../assets/images/backdrop/backdrop1.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--white);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Featured Cars */
.featured-cars {
  padding: 5rem 5%;
  background: var(--white);
}

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

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

.car-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.car-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.car-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.car-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.car-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.car-meta svg {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.car-footer {
  margin-top: auto; /* đẩy xuống đáy */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.price {
  font-weight: 800;
  color: var(--text-dark);
}

.price span.label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2px;
}

.price span.unit {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 400;
}

.view-details {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.view-details:hover {
  background: var(--primary-hover);
}

.view-all-container {
  text-align: center;
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all:hover {
  text-decoration: underline;
}

/* Why Choose Us */
.benefits-reviews {
  background: var(--bg-light);
  padding: 5rem 5%;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  margin-bottom: 6rem;
}

.benefit-item .icon {
  width: 64px;
  height: 64px;
  background: #e6f8ee;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-item .icon svg {
  width: 32px;
  height: 32px;
}

.benefit-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.benefit-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.review-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  min-height: 60px;
}

.reviewer {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* CTA Section */
.cta-section {
  background: var(--primary-color);
  padding: 5rem 5%;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.95;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-blue {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-blue:hover {
  background: #005ce6;
}

.cta-buttons .btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.cta-buttons .btn svg {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

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

/* Footer */
footer {
  background: #0d1321;
  color: #8b9ab8;
  padding: 4rem 5% 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

/* Column 1: Brand */
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
  flex-shrink: 0;
}

.footer-logo-text {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #8b9ab8;
  max-width: 240px;
}

/* Column headings */
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.85rem;
}

/* Quick links */
.footer-col .footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-col .footer-link:hover {
  color: #00d966;
}

/* Contact & Get in Touch items */
.footer-col .footer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #8b9ab8;
  font-size: 0.88rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: default;
}

.footer-col a.footer-item {
  cursor: pointer;
  transition: color 0.25s;
}

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

.footer-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #8b9ab8;
}

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

/* Bottom bar */
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #1c2540;
  font-size: 0.83rem;
  color: #5a6a8a;
}

/* Floating Chat */
.floating-chat {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
  z-index: 100;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 0.95rem;
}

.floating-chat svg {
  width: 20px;
  height: 20px;
}

.floating-chat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
}

/* Cars Page Layout */
.page-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 5%;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.pricing-notice {
  background: var(--white);
  padding: 2rem 5%;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}

.pricing-content {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-range {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.pricing-tip {
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pricing-range {
    font-size: 1.25rem;
  }
  .pricing-tip {
    font-size: 1rem;
  }
}


.cars-layout {
  display: flex;
  padding: 3rem 5%;
  gap: 3rem;
  background: var(--bg-light);
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 280px;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 6rem;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.filter-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
}

.filter-group input[type="radio"] {
  accent-color: var(--secondary-color);
  width: 16px;
  height: 16px;
}

.price-slider {
  width: 100%;
  accent-color: var(--secondary-color);
  margin-bottom: 1rem;
}

.price-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
}

.filter-footer {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.cars-main {
  flex: 1;
}

@media (max-width: 1024px) {
  .cars-layout {
    flex-direction: column;
    align-items: center;
    padding: 2rem 5%;
  }

  .sidebar {
    width: 100%;
    max-width: 600px;
    flex: none;
    position: static;
    margin-bottom: 3rem;
  }

  .cars-main {
    width: 100%;
  }
}

/* Detail Page Layout */
.detail-page {
  padding: 3rem 5%;
  background: var(--bg-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-light);
  align-items: start;
}

/* ── Gallery ── */
.detail-gallery {
  position: sticky;
  top: 5.5rem;
}

.detail-main-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
  background: #e5e7eb;
  position: relative;
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

/* ── Gallery Navigation Arrows ── */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
}

.detail-main-img:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--text-dark);
}

.gallery-arrow-left {
  left: 12px;
}

.gallery-arrow-right {
  right: 12px;
}

/* ── Image Counter ── */
.gallery-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 5;
}

/* ── Thumbnails Wrapper with Arrows ── */
.detail-thumbs-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thumb-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.thumb-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.thumb-arrow:hover svg {
  color: white;
}

.thumb-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
  transition: color 0.25s;
}

.thumb-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.thumb-arrow:disabled:hover {
  background: var(--white);
  border-color: #e5e7eb;
}

.thumb-arrow:disabled:hover svg {
  color: var(--text-gray);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.detail-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
  background: #e5e7eb;
}

.detail-thumb:hover {
  transform: translateY(-2px);
}

.detail-thumb.active {
  border-color: var(--primary-color);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Info panel ── */
.detail-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-car-name {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.detail-car-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ── Price & Specs Card ── */
.detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.detail-price-display {
  font-size: 1.9 rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.detail-price-display span {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 400;
}

/* ── Specs Grid ── */
.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-spec-item {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-spec-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.detail-spec-item .spec-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.detail-spec-item .spec-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.detail-spec-full {
  grid-column: 1 / -1;
}

/* ── Action Buttons ── */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.detail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.detail-btn svg {
  width: 20px;
  height: 20px;
}

.detail-btn-call {
  background: var(--primary-color);
  color: white;
}

.detail-btn-call:hover {
  background: var(--primary-hover);
}

.detail-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-btn-zalo {
  background: #0068ff;
  color: white;
}

.detail-btn-zalo:hover {
  background: #005ce6;
}

/* ── Car Details Extra Info (Thông tin xe + Tiện ích + Mô tả) ── */
.detail-extra-info {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-info-section {
  padding: 1.75rem;
}

.detail-info-section:first-child {
  border-right: 1px solid #e5e7eb;
}



/* Thông tin xe rows */
.detail-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.detail-info-row .info-label {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.detail-info-row .info-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Tiện ích (features) list */
.detail-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.feature-check {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}



.detail-full-desc {
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

/* Similar Cars */
.similar-cars {
  padding: 5rem 5%;
  background: var(--white);
}

.similar-cars .section-subtitle {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.similar-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
}

.similar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.similar-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.similar-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.similar-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.similar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.similar-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.similar-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-gray);
}

.btn-view-details {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-view-details:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

@media (max-width: 992px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-gallery {
    position: static;
  }

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

  .detail-info-section:first-child {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .similar-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .detail-car-name {
    font-size: 1.75rem;
  }

  .detail-price-display {
    font-size: 1.75rem;
  }

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

  .detail-spec-full {
    grid-column: auto;
  }

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

  .detail-card {
    padding: 1.25rem;
  }

  .gallery-arrow {
    opacity: 1;
    width: 36px;
    height: 36px;
  }

  .gallery-arrow svg {
    width: 16px;
    height: 16px;
  }

  .detail-info-section {
    padding: 1.25rem;
  }

}

/* Contact Page Layout */
.contact-page {
  padding: 4rem 5%;
  background: #f9fafb;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 0 0 380px;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-text .label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.info-text .val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.quick-contact {
  border-top: 1px solid #f3f4f6;
  padding-top: 2rem;
  margin-top: 2rem;
}

.quick-contact h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-form-box {
  flex: 1;
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-form-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* .form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s;
} */

/* .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
} */

.form-info-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 1rem;
}

.form-row-flex {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .form-row-flex {
    flex-direction: column;
    gap: 0;
  }
}

.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-container {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    width: 100%;
  }

  .contact-form-box {
    padding: 2rem;
  }
}

/* Contact & Booking Page Custom Layout */
.contact-booking-page {
  padding: 4rem 5%;
  background-color: #f9fafb;
}



.contact-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-booking-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.contact-booking-card:last-child {
  margin-bottom: 0;
}

.contact-booking-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1rem;
}

/* Contact Information List */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.contact-info-list li:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: #e6f8ee;
  color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-text-box strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-text-box span {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* Quick Contact Buttons */
.quick-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-contact-btn:last-child {
  margin-bottom: 0;
}

.quick-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.quick-contact-btn svg {
  width: 22px;
  height: 22px;
}

.btn-zalo-bg { background-color: #0068ff; }
.btn-wa-bg { background-color: #25d366; }

/* Responsive Constraints */
@media (max-width: 1024px) {

  .featured-cars .car-grid,
  .benefits-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  /* Ẩn nav desktop button "Đặt Xe" khi mobile */
  header > .btn {
    display: none;
  }

  .featured-cars .car-grid,
  .car-grid,
  .benefits-grid,
  .reviews-grid,
  .contact-booking-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-booking-page {
    padding: 3rem 4%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ═══════════════════════════════════════════
   HAMBURGER MENU (Mobile / Tablet)
═══════════════════════════════════════════ */

/* Nút hamburger - ẩn trên desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 200;
}

.hamburger-btn:hover {
  background: rgba(0, 177, 79, 0.08);
}

/* Ba gạch hamburger */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  margin: 2.5px 0;
}

/* Chuyển từ hamburger → X khi active */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: block; 
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 150;
  transform: translateX(105%);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.nav-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Mobile Nav Header */
.mobile-nav-header {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #84f780 0%, #499545 100%); 
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 140px;
}

.mobile-nav-logo {
  width: 60px;
  height: 60px;
  background: var(--white);
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mobile-nav-header h3 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.mobile-nav ul {
  list-style: none;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav ul li {
  margin: 0;
  border: none;
}

.mobile-nav ul li a {
  display: flex;
  align-items: center;
  padding: 1.15rem 2rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 1.25rem;
  border-left: 4px solid transparent;
}

.mobile-nav ul li a svg {
  width: 22px;
  height: 22px;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: rgba(132, 251, 103, 0.08);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.mobile-nav ul li a:hover svg,
.mobile-nav ul li a.active svg {
  color: var(--primary-color);
}

/* Nút "Đặt Xe" trong mobile nav */
.mobile-nav .mobile-book-btn {
  display: flex;
  margin: 0.5rem 1.5rem 1.5rem;
}

.mobile-nav .mobile-book-btn .btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  justify-content: center;
}

/* Backdrop (mờ nền khi nav mở) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 140;
  opacity: 0;
  pointer-events: none; /* QUAN TRỌNG: không chặn click khi ẩn */
  transition: opacity 0.3s ease;
}

.nav-backdrop.backdrop-visible {
  opacity: 1;
  pointer-events: auto; /* chỉ chặn click khi menu đang mở */
}

@media (max-width: 768px) {
  /* Hiện hamburger */
  .hamburger-btn {
    display: flex;
  }

  /* Hiện mobile nav */
  .mobile-nav {
    display: block;
  }

  /* Ẩn desktop nav */
  header nav {
    display: none;
  }

  /* Hiện backdrop */
  .nav-backdrop {
    display: block;
  }
}

/* ═══════════════════════════════════════════
   REVIEWS PAGE
═══════════════════════════════════════════ */

/* Page header variant */
.reviews-page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #009944 100%);
}

/* Two-column layout */
.reviews-page {
  background: var(--bg-light);
  padding: 3rem 5%;
}

.reviews-page-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ── Review Form Box ── */
.review-form-wrapper {
  position: sticky;
  top: 5.5rem;
}

.review-form-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-icon {
  width: 52px;
  height: 52px;
  background: #e6f8ee;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.form-icon svg {
  width: 28px;
  height: 28px;
}

.review-form-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* Success message */
.success-msg {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #e6f8ee;
  color: #166534;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.3s ease;
}

.success-msg svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Form groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  box-sizing: border-box;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.12);
  background: var(--white);
}

.form-control.input-error {
  border-color: #ef4444;
  animation: shake 0.35s ease;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  display: block;
}

/* Star Rating Picker */
.star-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  padding: 0 0.1rem;
}

.star-btn.active,
.star-btn.hover {
  color: #fbbf24;
}

.star-btn:hover {
  transform: scale(1.2);
}

/* Submit button block */
.btn-block {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.btn-block svg {
  width: 18px;
  height: 18px;
}

.btn-loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Reviews List ── */
.reviews-list-wrapper {
  min-width: 0;
}

.reviews-list-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.reviews-list-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.review-count-badge {
  background: #e6f8ee;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Skeleton Loading */
.reviews-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skeleton-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.skeleton-stars  { height: 20px; width: 100px; }
.skeleton-text-sm { height: 14px; width: 80px; }
.skeleton-text-lg { height: 16px; width: 100%; }
.skeleton-text-md { height: 16px; width: 75%; }

/* Empty State */
.reviews-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  gap: 1rem;
}

.reviews-empty svg {
  width: 56px;
  height: 56px;
  opacity: 0.4;
}

.reviews-empty p {
  font-size: 1rem;
}

/* Reviews Dynamic Grid */
.reviews-dynamic-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.reviews-column-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Review Card */
.review-dynamic-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: cardFadeIn 0.4s ease both;
}

.review-dynamic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.rdc-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.rdc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.rdc-meta {
  min-width: 0;
}

.rdc-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdc-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.rdc-stars {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 0.85rem;
}

.r-star {
  font-size: 1.1rem;
}

.r-star.filled {
  color: #fbbf24;
}

.r-star.empty {
  color: #d1d5db;
}

.rdc-comment {
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Animations ── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .reviews-page-container {
    grid-template-columns: 1fr;
  }

  .review-form-wrapper {
    position: static;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .review-form-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .reviews-page {
    padding: 2rem 4%;
  }

  .review-form-box {
    padding: 1.75rem;
  }

  .reviews-dynamic-grid {
    grid-template-columns: 1fr;
  }
}