/*
Theme Name: VinFast Phan Trọng Tuệ Đà Nẵng
Theme URI: https://vinfastdng.com/
Author: VinFast Phan Trọng Tuệ Đà Nẵng
Description: Theme WordPress cho đại lý VinFast Phan Trọng Tuệ Đà Nẵng - Đại lý chính hãng lớn nhất miền Trung.
Version: 1.0
Text Domain: vinfast-theme
*/

:root {
  --primary: #00529b;
  --primary-dark: #003d75;
  --accent: #da251d;
  --accent-light: #ff4136;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --border: #e9ecef;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.admin-bar header.site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar header.site-header { top: 46px; } }
body {
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== HEADER ===== */
header.site-header {
  background: var(--bg-white);
  padding: 0 5%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo img { height: 36px; width: auto; }
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links li { list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
  background: var(--primary);
  color: white;
}
.nav-hotline {
  background: var(--accent);
  color: white !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
}
.nav-hotline:hover { background: var(--accent-light) !important; }
.nav-dropdown { position: relative; }
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { display: block; }
.nav-submenu a { display: block; white-space: nowrap; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.85), rgba(0, 82, 155, 0.7)),
    url('hinh-anh/hero-bg.jpg') center/cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 60px 5%;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-light));
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; line-height: 1.1; }
.hero p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 30px; font-weight: 300; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

/* Hero Slider (dynamic banners) */
.hero-slider { position: relative; overflow: hidden; padding: 0; }
.hero-slides { position: relative; width: 100%; min-height: 520px; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.hero-slide.active { position: relative; opacity: 1; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 520px; }
.hero-slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,40,80,0.7), rgba(0,82,155,0.4)); display: flex; align-items: center; justify-content: center; }
.hero-slider .hero-content { color: #fff; text-align: center; }
.hero-cta-btn { display: inline-block; margin-top: 16px; padding: 12px 32px; background: var(--accent); color: #fff; border-radius: 50px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.hero-cta-btn:hover { background: #c41e17; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 2; transition: background 0.2s; }
.hero-nav:hover { background: rgba(255,255,255,0.4); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: transparent; cursor: pointer; transition: all 0.2s; padding: 0; }
.hero-dot.active { background: #fff; border-color: #fff; }

/* Detail Banner */
.detail-banner { max-width: 1200px; margin: 0 auto 24px; padding: 0 5%; }
.detail-banner img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-item { text-align: center; padding: 24px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== SECTIONS ===== */
.section { padding: 70px 5%; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; color: var(--primary); font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.section-alt { background: var(--bg-white); }

/* ===== CALCULATOR ===== */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto 0;
}
.calc-box {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}
.calc-box h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}
.calc-form .form-group { margin-bottom: 14px; }
.calc-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.calc-form select,
.calc-form input[type="text"],
.calc-form input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.calc-form select:focus,
.calc-form input:focus { border-color: var(--primary); }
.range-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-wrapper input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}
.range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.range-value {
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  background: #e8f4fd;
  padding: 4px 10px;
  border-radius: 6px;
}
.calc-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--bg-light);
}
.calc-result h4 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
}
.calc-table td {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--bg-light);
}
.calc-table td:first-child { color: var(--text-muted); }
.calc-table td:last-child { text-align: right; font-weight: 600; color: var(--text-dark); }
.calc-table .calc-total td {
  border-top: 2px solid var(--primary);
  border-bottom: none;
  padding-top: 14px;
  font-size: 16px;
}
.calc-table .calc-total td:last-child {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}
.calc-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}
.calc-note a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* === KẾT QUẢ TRẢ GÓP === */
.loan-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 5%;
}
.loan-summary-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.loan-summary-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.loan-summary-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.loan-summary-value.accent { color: var(--primary); font-size: 1.35rem; }

.loan-totals {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.loan-total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid var(--border);
}
.loan-total-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.loan-total-item:last-child { border-radius: 0 0 var(--radius) var(--radius); border-top: none; }
.loan-total-item.highlight {
  background: var(--primary);
  border-color: var(--primary);
}
.loan-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.loan-total-item.highlight .loan-total-label { color: rgba(255,255,255,0.9); }
.loan-total-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}
.loan-total-value.warning { color: var(--accent); }
.loan-total-item.highlight .loan-total-value { color: #fff; font-size: 1.4rem; }

.loan-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}
.loan-detail-wrap h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.loan-table-scroll {
  max-height: 460px;
  overflow-y: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.loan-monthly-table {
  width: 100%;
  border-collapse: collapse;
}
.loan-monthly-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.loan-monthly-table th {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  text-align: right;
  white-space: nowrap;
}
.loan-monthly-table th:first-child { text-align: center; border-radius: var(--radius) 0 0 0; }
.loan-monthly-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.loan-monthly-table td {
  padding: 10px 14px;
  font-size: 13px;
  text-align: right;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
}
.loan-monthly-table td:first-child { text-align: center; font-weight: 700; color: var(--primary); }
.loan-monthly-table tbody tr:hover { background: #f8fbff; }
.loan-monthly-table tbody tr.year-divider { border-top: 2px solid var(--primary); }
.calc-buttons {
  display: flex;
  gap: 16px;
  max-width: 1100px;
  margin: 24px auto 0;
}
.calc-buttons .btn-submit { flex: 1; }

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: white;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.car-card.hidden {
  display: none;
}
.car-category {
  margin-bottom: 8px;
}
.car-category-tag {
  display: inline-block;
  background: #e8f4fd;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}
.car-category-tag:hover {
  background: var(--primary);
  color: white;
}

/* ===== CAR GRID ===== */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.car-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
}
.car-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.car-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}
.car-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #e8eef5, #dfe6ed);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.car-card:hover .car-img img { transform: scale(1.05); }
.car-info { padding: 20px; }
.car-name { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--text-dark); }
.car-type { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.car-price { color: var(--accent); font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.car-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.car-spec { background: var(--bg-light); padding: 6px 12px; border-radius: 8px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.btn-action {
  display: block;
  text-align: center;
  padding: 13px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}
.btn-action:hover { background: var(--primary-dark); transform: scale(1.02); }

/* ===== PRICE TABLE ===== */
.price-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.price-table thead { background: var(--primary); color: white; }
.price-table th { padding: 16px 20px; text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.price-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.price-table tr:hover td { background: #f0f7ff; }
.price-highlight { color: var(--accent); font-weight: 700; }
.price-table a { color: var(--primary); font-weight: 600; text-decoration: none; }
.price-table a:hover { text-decoration: underline; }

/* ===== INSTALLMENT ===== */
.installment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.installment-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.installment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.installment-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.installment-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-dark); }
.installment-card p { font-size: 14px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info-box {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.contact-info-box h3 { font-size: 20px; margin-bottom: 20px; color: var(--primary); }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; font-size: 14px; }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  font-weight: 600;
}
.contact-form-box {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.contact-form-box h3 { font-size: 20px; margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-submit:hover { background: var(--accent-light); transform: scale(1.02); }

/* ===== DETAIL PAGE ===== */
.breadcrumb {
  padding: 16px 5%;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.detail-image {
  background: linear-gradient(135deg, #e8eef5, #dfe6ed);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
}
.detail-info {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.detail-type { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.detail-name { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.detail-price { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

/* Version Picker */
.version-picker { margin-bottom: 20px; }
.version-label { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.version-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.version-btn { padding: 8px 16px; border: 2px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.2s; }
.version-btn:hover { border-color: var(--primary); color: var(--primary); }
.version-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Version Gallery */
.version-gallery { margin-bottom: 20px; }
.ver-gallery-main { border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.ver-gallery-main img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.ver-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ver-thumb { width: 60px; height: 60px; padding: 0; border: 2px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; background: none; transition: border-color 0.2s; }
.ver-thumb:hover { border-color: var(--primary); }
.ver-thumb.active { border-color: var(--primary); }
.ver-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Versions Table */
.versions-table th { text-align: left; padding: 12px 16px; background: var(--primary); color: #fff; font-weight: 600; }
.versions-table td { padding: 12px 16px; }
.versions-table .price-highlight { font-weight: 700; color: var(--accent); }
.detail-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.article-section { padding-top: 40px; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--primary); margin: 24px 0 12px; font-weight: 700; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.1rem; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; margin: 20px 0; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content table th, .article-content table td { padding: 10px 12px; border: 1px solid #e0e0e0; text-align: left; }
.article-content table th { background: var(--primary); color: #fff; font-weight: 600; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.quick-spec { background: var(--bg-light); padding: 14px 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.quick-spec-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.quick-spec-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.quick-spec-value { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.detail-cta { display: flex; gap: 12px; }
.btn-primary { flex: 1; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition); }
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.02); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-light); }

.specs-section { max-width: 1200px; margin: 0 auto; padding: 0 5% 60px; }
.specs-section h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; font-weight: 800; }
.specs-table { width: 100%; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--bg-light); }
.specs-table td { padding: 16px 24px; font-size: 14px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--text-muted); width: 40%; }
.specs-table td:last-child { font-weight: 700; color: var(--text-dark); }

.other-cars { max-width: 1200px; margin: 0 auto; padding: 0 5% 60px; }
.other-cars h2 { font-size: 1.5rem; color: var(--primary); font-weight: 800; }

/* Carousel */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-card {
  flex: 0 0 240px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.carousel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.other-card-img { height: 140px; background: linear-gradient(135deg, #e8eef5, #dfe6ed); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.other-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.carousel-card:hover .other-card-img img { transform: scale(1.05); }
.other-card-info { padding: 14px; }
.other-card-info h4 { font-size: 14px; margin-bottom: 4px; }
.other-card-info .price { color: var(--accent); font-size: 13px; font-weight: 700; }

/* ===== FOOTER ===== */
footer.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.footer-brand { font-size: 14px; line-height: 1.8; }
.footer-brand h3 { color: white; font-size: 18px; margin-bottom: 12px; }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: #aaa; text-decoration: none; font-size: 13px; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-col ul { list-style: none; }
.footer-col ul li a { display: block; color: #aaa; text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #666; }

/* ===== STICKY CONTACT ===== */
.sticky-contact {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.contact-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 24px;
  transition: all var(--transition);
}
.contact-icon:hover { transform: scale(1.15); }
.zalo-btn { background: #0068ff; padding: 0; }
.zalo-btn img { width: 100%; height: 100%; border-radius: 50%; }
.call-btn { background: var(--accent); animation: pulse 2s infinite; }
.messenger-btn { background: linear-gradient(135deg, #0695FF, #A334FA, #FF6968); }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(218, 37, 29, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 4px 25px rgba(218, 37, 29, 0.5); }
}

/* ===== IMAGE SLIDER ===== */
.detail-gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e8eef5, #dfe6ed);
}
.slider-main {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.slider-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slider-slide.active {
  opacity: 1;
  position: relative;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
}
.slider-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.slider-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: all var(--transition);
  opacity: 0.6;
}
.slider-thumb:hover { opacity: 0.9; }
.slider-thumb.active {
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(0, 82, 155, 0.3);
}
.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== POST GRID (Tin tức & Khuyến mãi) ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8eef5, #dfe6ed);
  overflow: hidden;
  position: relative;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  z-index: 1;
}
.tag-news { background: var(--primary); }
.tag-promo { background: var(--accent); }
.post-card-body { padding: 20px; }
.post-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.post-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a { text-decoration: none; color: inherit; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.post-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.post-card-link:hover { text-decoration: underline; }

.promo-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.promo-deadline {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}
.btn-view-all {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}
.btn-view-all:hover { background: var(--primary-dark); transform: scale(1.02); }

/* Single post */
.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5% 60px;
}
.single-post-container h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.single-post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.single-post-featured {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.single-post-featured img { width: 100%; height: auto; display: block; }
.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}
.single-post-content p { margin-bottom: 16px; }
.single-post-content h2 { font-size: 1.4rem; color: var(--primary); margin: 30px 0 12px; }
.single-post-content h3 { font-size: 1.2rem; color: var(--text-dark); margin: 24px 0 10px; }
.single-post-content ul, .single-post-content ol { margin: 0 0 16px 20px; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px 0; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
  border: 1px solid var(--border);
  color: var(--text-dark);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 400px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin: -30px 5% 0; }
  .stat-item:nth-child(2) { border-right: none; }
  .section-header h2 { font-size: 1.5rem; }
  .car-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .single-post-container h1 { font-size: 1.5rem; }
  .calc-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 10px 12px; }
  .detail-container { grid-template-columns: 1fr; gap: 20px; }
  .detail-image { height: 250px; }
  .slider-main { height: 260px; }
  .slider-thumb { width: 56px; height: 40px; }
  .detail-name { font-size: 1.5rem; }
  .detail-price { font-size: 1.3rem; }
  .version-btn { padding: 6px 12px; font-size: 12px; }
  .ver-thumb { width: 48px; height: 48px; }
  .hero-slides { min-height: 300px; }
  .hero-slide-img { min-height: 300px; }
  .hero-nav { width: 36px; height: 36px; font-size: 16px; }
  .loan-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .loan-summary-value { font-size: 1rem; }
  .loan-summary-value.accent { font-size: 1.1rem; }
  .loan-total-item { flex-direction: column; gap: 6px; text-align: center; padding: 14px 16px; }
  .loan-total-value { font-size: 1.1rem; }
  .loan-total-item.highlight .loan-total-value { font-size: 1.2rem; }
  .loan-monthly-table th, .loan-monthly-table td { padding: 8px 6px; font-size: 11px; }
  .quick-specs { grid-template-columns: 1fr; }
  .detail-cta { flex-direction: column; }
  .carousel-card { flex: 0 0 200px; }
  .other-card-img { height: 110px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; text-align: left; }
  .nav-dropdown { width: 100%; }
  .nav-submenu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    box-shadow: none;
  }
  .nav-submenu a { font-size: 12px; }
  .menu-toggle { display: block; }
}
