/*
Theme Name: Bao Gia Xe VinFast
Theme URI: https://baogiaxevinfast.com/
Author: BAOGIAXEVINFAST.COM
Description: Theme WordPress doc lap cho website bao gia xe VinFast, dat hang va tin tuc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baogiaxevinfast
Tags: ecommerce, news, custom-logo, featured-images, responsive-layout
*/

:root {
  --bgv-blue: #0057e7;
  --bgv-blue-2: #0b71ff;
  --bgv-navy: #061a3f;
  --bgv-deep: #020f27;
  --bgv-green: #00a86b;
  --bgv-yellow: #ffd23f;
  --bgv-text: #12213d;
  --bgv-muted: #66738a;
  --bgv-line: #dfe8f5;
  --bgv-bg: #f4f8ff;
  --bgv-soft: #eaf3ff;
  --bgv-radius: 8px;
  --bgv-container: 1180px;
  --bgv-shadow: 0 18px 44px rgba(0, 62, 156, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bgv-text);
  background: #fff;
  font-family: Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.bgv-container {
  width: min(var(--bgv-container), calc(100% - 56px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  color: #fff;
  background: linear-gradient(90deg, #052762, #0645a8);
  font-size: 13px;
  font-weight: 700;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.topbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e4ebf5;
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}
.site-branding { flex: 0 0 320px; }
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.logo-mark {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}
.logo-mark::before,
.logo-mark::after {
  position: absolute;
  top: 4px;
  width: 8px;
  height: 38px;
  content: "";
  background: linear-gradient(180deg, #0d1b35, #9aa7ba);
  border-radius: 99px;
  transform-origin: top center;
}
.logo-mark::before { left: 13px; transform: rotate(-33deg); }
.logo-mark::after { right: 13px; transform: rotate(33deg); }
.logo-word {
  display: block;
  color: #111c34;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}
.logo-word span { color: var(--bgv-blue); }
.logo-tagline {
  display: block;
  margin-top: 5px;
  color: #26344e;
  font-size: 12px;
  font-weight: 750;
}

.site-nav { flex: 1; }
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  color: #10203c;
  border-radius: var(--bgv-radius);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--bgv-blue);
  background: #edf4ff;
}
.site-nav .current-menu-item a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -19px;
  height: 3px;
  content: "";
  background: var(--bgv-blue);
  border-radius: 999px;
}

.button,
.quote-submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #004ddb, #0b72ff);
  border: 0;
  border-radius: var(--bgv-radius);
  box-shadow: 0 14px 26px rgba(0, 83, 224, .25);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}
.button--light {
  color: var(--bgv-blue);
  background: #fff;
  border: 1px solid #d5e3f8;
  box-shadow: 0 10px 22px rgba(0, 62, 156, .1);
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #10203c;
  background: #f4f7ff;
  border: 1px solid #dde8f8;
  border-radius: var(--bgv-radius);
  cursor: pointer;
}

.hero {
  overflow: hidden;
  padding: 50px 0 86px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.95) 0 0, transparent 29%),
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(230,243,255,.95)),
    linear-gradient(135deg, #f8fbff 0%, #d9efff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 26px;
}
.hero-copy h1 {
  margin: 0;
  color: #061839;
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1 span {
  display: block;
  color: var(--bgv-blue);
}
.hero-copy p {
  margin: 14px 0 22px;
  color: #23314b;
  font-size: 17px;
  font-weight: 800;
}
.hero-points {
  display: grid;
  gap: 11px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  color: #17243d;
  font-weight: 850;
}
.icon-dot,
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--bgv-blue);
  background: #eaf3ff;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  font-weight: 950;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-art {
  position: relative;
  min-height: 390px;
}
.hero-emblem {
  position: absolute;
  top: -26px;
  left: 38%;
  color: rgba(6, 24, 57, .18);
  font-size: 250px;
  line-height: .75;
  font-weight: 200;
}
.vehicle-row {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1.08fr .92fr;
  align-items: end;
  gap: 0;
}
.vehicle-row img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 24px rgba(4, 20, 50, .23));
}
.vehicle-row img:nth-child(2) {
  z-index: 3;
  transform: scale(1.08) translateY(-8px);
}
.bike-row {
  position: absolute;
  right: 4px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: end;
  gap: 11px;
}
.bike {
  width: 45px;
  height: 80px;
  background: var(--bike, #d81920);
  border-radius: 26px 26px 12px 12px;
  box-shadow: inset 0 -18px 0 rgba(0,0,0,.16), 0 14px 22px rgba(0,0,0,.16);
}
.bike::before {
  display: block;
  width: 54px;
  height: 22px;
  margin: -12px 0 0 -5px;
  content: "";
  background: #f8fbff;
  border: 4px solid #25314a;
  border-radius: 999px 999px 12px 12px;
}

.search-panel {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}
.tabs {
  display: flex;
  gap: 8px;
}
.tab {
  min-width: 220px;
  padding: 14px 18px;
  color: #fff;
  background: #052762;
  border-radius: 8px 8px 0 0;
  font-weight: 950;
  text-align: center;
}
.tab + .tab {
  color: #10203c;
  background: #fff;
  border: 1px solid #e0e9f5;
  border-bottom: 0;
}
.finder {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 180px;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 0 8px 8px 8px;
  box-shadow: var(--bgv-shadow);
}
.finder label,
.quote-form label {
  display: grid;
  gap: 6px;
  color: #17243d;
  font-size: 13px;
  font-weight: 900;
}
.finder select,
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #12213a;
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
}

.section { padding: 34px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  color: #091936;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.view-link {
  color: var(--bgv-blue);
  font-weight: 900;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.choice-card {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #eaf5ff, #fff);
  border: 1px solid #e2ebf7;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 55, 120, .09);
}
.choice-card--bike { background: linear-gradient(135deg, #ecfff6, #f7fbff); }
.choice-card h3 {
  margin: 0 0 4px;
  color: var(--bgv-blue);
  font-size: 26px;
  font-weight: 950;
  text-transform: uppercase;
}
.choice-card--bike h3 { color: var(--bgv-green); }
.choice-card p {
  margin: 0 0 18px;
  color: #263550;
  font-weight: 750;
}
.choice-card img {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: min(56%, 360px);
  filter: drop-shadow(0 18px 18px rgba(4, 20, 50, .15));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.product-card,
.news-card,
.quote-card,
.content-card {
  background: #fff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 52, 104, .07);
}
.product-card {
  overflow: hidden;
  min-height: 190px;
  padding: 12px;
}
.product-media {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin-bottom: 9px;
  background: #f5f9ff;
  border-radius: 6px;
}
.product-media img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}
.product-card h3 {
  margin: 0;
  color: #0b1832;
  font-size: 15px;
  font-weight: 950;
}
.product-card p {
  margin: 3px 0 7px;
  color: var(--bgv-blue);
  font-size: 14px;
  font-weight: 950;
}
.product-card a {
  color: var(--bgv-blue);
  font-size: 12px;
  font-weight: 900;
}

.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #dfe8f4;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
}
.feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 13px 14px;
  background: #f8fbff;
}
.feature strong {
  display: block;
  color: #10203c;
  font-size: 13px;
  line-height: 1.2;
}
.feature span {
  display: block;
  margin-top: 3px;
  color: var(--bgv-muted);
  font-size: 12px;
}

.promo-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 22px 32px;
  color: #fff;
  background: linear-gradient(100deg, #00349f, #0062f4);
  border-radius: 8px;
  box-shadow: var(--bgv-shadow);
}
.promo-band h2 {
  margin: 0;
  color: var(--bgv-yellow);
  font-size: 30px;
  line-height: 1.06;
  font-weight: 950;
  text-transform: uppercase;
}
.promo-band p {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 900;
}
.promo-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-weight: 850;
}
.promo-items strong { color: var(--bgv-yellow); }

.quote-section {
  padding: 42px 0 54px;
  background: var(--bgv-bg);
}
.quote-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
  align-items: start;
}
.quote-copy h2 {
  margin: 0 0 12px;
  color: #071936;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 950;
}
.quote-copy p {
  margin: 0 0 18px;
  color: #40506a;
  font-size: 17px;
}
.quote-card { padding: 22px; }
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.quote-form textarea {
  min-height: 92px;
  resize: vertical;
}
.quote-form .full { grid-column: 1 / -1; }
.quote-message {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 850;
}
.quote-message.ok {
  color: #075833;
  background: #e8fff3;
  border: 1px solid #bdeed6;
}
.quote-message.error {
  color: #8c1d18;
  background: #fff0ef;
  border: 1px solid #ffd0cc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.news-card { overflow: hidden; }
.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef5ff;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-badge {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: var(--bgv-blue);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}
.news-body { padding: 14px 15px 16px; }
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b778d;
  font-size: 12px;
  font-weight: 750;
}
.news-title {
  margin: 8px 0 0;
  color: #0d1b35;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 900;
}

.site-footer {
  color: #dbe8ff;
  background: linear-gradient(135deg, #03142e, #082b5d);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 32px;
  padding: 38px 0 28px;
}
.footer-grid .logo-word,
.footer-grid .logo-tagline { color: #fff; }
.footer-copy {
  max-width: 330px;
  color: #b7c8e5;
}
.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}
.footer-links,
.footer-contact,
.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li,
.footer-contact li {
  margin: 8px 0;
  color: #b7c8e5;
}
.footer-links a:hover { color: #fff; }
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  font-weight: 900;
}
.copyright {
  padding: 14px 0 22px;
  color: #9db3d2;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  gap: 10px;
}
.floating-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.floating-actions a:first-child { background: #0c63ff; }
.floating-actions a:last-child { background: #00a65a; }

.content-wrap {
  padding: 42px 0 56px;
  background: #f7fbff;
}
.content-card { padding: 28px; }
.entry-title {
  margin: 0 0 14px;
  color: #071936;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 950;
}
.entry-content {
  color: #25324a;
  font-size: 17px;
}
.entry-content img { border-radius: 8px; }
.pagination,
.nav-links {
  margin-top: 24px;
  text-align: center;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  margin: 0 3px;
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
}
.page-numbers.current {
  color: #fff;
  background: var(--bgv-blue);
}

@media (max-width: 1140px) {
  .site-branding { flex-basis: 286px; }
  .site-nav a { padding: 0 7px; font-size: 12px; }
  .finder { grid-template-columns: repeat(2, 1fr); }
  .finder .button { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .bgv-container { width: min(100% - 32px, var(--bgv-container)); }
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
    gap: 6px;
  }
  .topbar__right { justify-content: flex-start; gap: 8px 14px; }
  .header-inner { min-height: 68px; }
  .site-branding { flex: 1; }
  .logo-word { font-size: 20px; }
  .logo-tagline { font-size: 10px; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 14px 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e4ebf6;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }
  .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }
  .site-nav .current-menu-item a::after { display: none; }
  .menu-toggle { display: grid; }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 285px; }
  .hero-emblem { left: 31%; font-size: 160px; }
  .vehicle-row { grid-template-columns: 1fr 1fr; }
  .vehicle-row img:last-child { display: none; }
  .bike-row {
    transform: scale(.78);
    transform-origin: right bottom;
  }
  .tabs { display: none; }
  .finder { border-radius: 8px; }
  .choice-grid,
  .quote-grid,
  .promo-band { grid-template-columns: 1fr; }
  .choice-card img {
    width: 72%;
    opacity: .28;
  }
  .promo-items { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .floating-actions {
    left: 16px;
    right: 16px;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .logo-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .hero { padding-top: 36px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 15px; }
  .hero-art { min-height: 230px; }
  .search-panel { margin-top: -36px; }
  .finder,
  .product-grid,
  .features,
  .news-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .section-title { font-size: 21px; }
  .promo-band { padding: 22px; }
  .promo-band h2 { font-size: 25px; }
}
