:root {
  --blue: #0057b8;
  --red: #e21d2f;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f4f7fb;
  --dark: #07172e;
  --shadow: 0 16px 40px rgba(15, 23, 42, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar { background: var(--dark); color: #dbeafe; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 112px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.brand strong { display: block; font-size: 17px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 14px; }
.menu a:hover { color: var(--blue); }
.dropdown { position: relative; }
.dropdown-toggle::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 1000;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: grid; gap: 4px; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--soft); color: var(--blue); }
.quote { color: #fff; background: var(--red); padding: 11px 16px; border-radius: 999px; }
.hamburger { display: none; border: 0; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 22px; }

.hero { color: #fff; background: linear-gradient(90deg, rgba(2,8,23,.92), rgba(2,8,23,.70), rgba(2,8,23,.10)), url("./assert/vinfast-banner-2601-pc04b.jpg") center/cover no-repeat; }
.hero .container { min-height: 570px; display: grid; align-items: center; padding: 72px 0; }
.hero-content { max-width: 650px; }
.eyebrow, .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #eaf3ff; color: var(--blue); font-weight: 900; font-size: 13px; }
.hero .eyebrow { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
h1 { margin: 18px 0 14px; font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -2px; }
.hero p { margin: 0 0 28px; color: #e5edff; font-size: 18px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 900; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-secondary { background: #fff; color: #0f172a; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--blue); }

section { padding: 76px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -1px; }
.section-head p { max-width: 620px; margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.soft, .green { background: linear-gradient(180deg, #f7fbff, #fff); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.06); transition: .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.car-img { height: 178px; background: linear-gradient(180deg, #eef5ff, #fff); }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; }
.tag { display: inline-block; margin-bottom: 8px; color: var(--blue); background: #eaf3ff; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.price { color: var(--red); font-weight: 950; font-size: 34px; margin: 4px 0 12px; }
.card .price { font-size: 16px; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: 20px; }
.specs { display: grid; gap: 7px; color: var(--muted); font-size: 14px; min-height: 66px; }
.card-actions { display: flex; gap: 9px; margin-top: 16px; }
.card-actions a { flex: 1; text-align: center; border-radius: 12px; padding: 10px 8px; font-size: 13px; font-weight: 900; }
.call { background: var(--blue); color: #fff; }
.more { background: var(--soft); color: #1f2937; }

.promo { background: linear-gradient(90deg, rgba(0,62,134,.94), rgba(0,87,184,.78)), url("./assert/banner-vinfast-250721-t01.jpg") center/cover no-repeat; color: #fff; border-radius: 30px; padding: clamp(28px,5vw,58px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; box-shadow: var(--shadow); }
.promo h2 { margin: 0 0 12px; font-size: clamp(30px,4vw,52px); line-height: 1.05; }
.promo p { margin: 0; color: #e6f0ff; line-height: 1.7; }
.promo-box { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); border-radius: 24px; padding: 22px; }
.promo-box strong { display: block; font-size: 34px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { min-height: 220px; display: flex; flex-direction: column; justify-content: end; border-radius: 24px; padding: 22px; color: #fff; background: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.88)), url("./assert/vinfast-banner-2601-m06.jpg") center/cover; }
.news-card:nth-child(2) { background-image: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.88)), url("./assert/vinfast-vf-3-250529-c03bb.jpg"); }
.news-card:nth-child(3) { background-image: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.88)), url("./assert/vinfast-minio-green.png"); }
.news-card h3 { margin: 0 0 8px; }
.news-card p { margin: 0; color: #e5e7eb; }

.breadcrumb { padding: 22px 0; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); font-weight: 700; }
.product-hero { padding: 22px 0 58px; }
.product-layout { display: grid; grid-template-columns: 1fr .86fr; gap: 42px; align-items: start; }
.gallery-main { border-radius: 28px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 460px; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.thumbs img { height: 118px; width: 100%; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); cursor: pointer; }
.thumbs img.active-thumb { outline: 3px solid var(--blue); outline-offset: 2px; }
.summary { position: sticky; top: 96px; }
.summary h1 { color: var(--text); }
.line { font-size: 18px; color: #374151; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.color-panel { margin: 22px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.color-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.color-title span { color: var(--blue); font-weight: 900; }
.color-slogan { margin-top: 6px; color: var(--muted); font-size: 14px; }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.color-btn { width: 42px; height: 42px; border-radius: 999px; border: 2px solid transparent; background: #fff; padding: 4px; cursor: pointer; box-shadow: 0 3px 10px rgba(15,23,42,.12); }
.color-btn span { display: block; width: 100%; height: 100%; border-radius: 999px; border: 1px solid rgba(15,23,42,.18); }
.color-btn.active { border-color: var(--blue); transform: translateY(-1px); }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card, .price-list li, .spec-list li { border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.info-card h3 { margin: 0 0 10px; }
.info-card p { margin: 0; color: #4b5563; line-height: 1.7; }
.price-list, .spec-list { display: grid; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }

.page-hero { padding: 54px 0; background: linear-gradient(135deg, #f7fbff, #eef5ff); border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--text); max-width: 850px; }
.page-hero p { max-width: 760px; color: var(--muted); line-height: 1.75; font-size: 18px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.article-card, .sidebar-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.article-card { padding: clamp(22px, 4vw, 38px); }
.article-card h2 { margin: 26px 0 10px; font-size: 28px; }
.article-card h3 { margin: 22px 0 8px; font-size: 21px; }
.article-card p, .article-card li { color: #4b5563; line-height: 1.8; }
.article-card ul, .article-card ol { padding-left: 22px; }
.article-image {
  min-height: 260px;
  margin: 22px 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  overflow: hidden;
}
.article-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }
.sidebar-card { padding: 20px; }
.sidebar-card h3 { margin: 0 0 12px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sidebar-card a { color: var(--blue); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { padding: 24px; }
.contact-card h3 { margin: 0 0 10px; }
.contact-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.map-box {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px dashed #93c5fd;
  border-radius: 28px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  color: var(--blue);
  font-weight: 900;
  text-align: center;
  padding: 24px;
}

.quote-section { background: var(--dark); color: #fff; }
.quote-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.quote-layout p { color: #cbd5e1; line-height: 1.7; }
form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 14px; padding: 13px 14px; font: inherit; }
textarea { grid-column: 1 / -1; min-height: 90px; resize: vertical; }
form button { grid-column: 1 / -1; border: 0; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

footer { background: #020817; color: #cbd5e1; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer h3, footer h4 { color: #fff; margin: 0 0 10px; }
footer p, footer li { line-height: 1.7; margin: 0; }
footer ul { list-style: none; padding: 0; margin: 0; }
.copyright { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #94a3b8; font-size: 13px; }
.floating { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.floating a { display: flex; justify-content: center; border-radius: 999px; padding: 12px 16px; color: #fff; font-weight: 900; box-shadow: var(--shadow); }
.phone { background: var(--red); }
.zalo { background: #0068ff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { min-height: 220px; display: flex; flex-direction: column; justify-content: end; border-radius: 24px; padding: 22px; color: #fff; background: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.88)), url("./assert/vinfast-banner-2601-m06.jpg") center/cover; }
.news-card:nth-child(2) { background-image: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.88)), url("./assert/vinfast-vf-3-250529-c03bb.jpg"); }
.news-card:nth-child(3) { background-image: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.88)), url("./assert/vinfast-minio-green.png"); }
.news-card h3 { margin: 0 0 8px; }
.news-card p { margin: 0; color: #e5e7eb; }

.breadcrumb { padding: 22px 0; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); font-weight: 700; }
.product-hero { padding: 22px 0 58px; }
.product-layout { display: grid; grid-template-columns: 1fr .86fr; gap: 42px; align-items: start; }
.gallery-main { border-radius: 28px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 460px; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.thumbs img { height: 118px; width: 100%; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); cursor: pointer; }
.thumbs img.active-thumb { outline: 3px solid var(--blue); outline-offset: 2px; }
.summary { position: sticky; top: 96px; }
.summary h1 { color: var(--text); }
.line { font-size: 18px; color: #374151; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.color-panel { margin: 22px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.color-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.color-title span { color: var(--blue); font-weight: 900; }
.color-slogan { margin-top: 6px; color: var(--muted); font-size: 14px; }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.color-btn { width: 42px; height: 42px; border-radius: 999px; border: 2px solid transparent; background: #fff; padding: 4px; cursor: pointer; box-shadow: 0 3px 10px rgba(15,23,42,.12); }
.color-btn span { display: block; width: 100%; height: 100%; border-radius: 999px; border: 1px solid rgba(15,23,42,.18); }
.color-btn.active { border-color: var(--blue); transform: translateY(-1px); }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card, .price-list li, .spec-list li { border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.info-card h3 { margin: 0 0 10px; }
.info-card p { margin: 0; color: #4b5563; line-height: 1.7; }
.price-list, .spec-list { display: grid; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }

.page-hero { padding: 54px 0; background: linear-gradient(135deg, #f7fbff, #eef5ff); border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--text); max-width: 850px; }
.page-hero p { max-width: 760px; color: var(--muted); line-height: 1.75; font-size: 18px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.article-card, .sidebar-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.article-card { padding: clamp(22px, 4vw, 38px); }
.article-card h2 { margin: 26px 0 10px; font-size: 28px; }
.article-card h3 { margin: 22px 0 8px; font-size: 21px; }
.article-card p, .article-card li { color: #4b5563; line-height: 1.8; }
.article-card ul, .article-card ol { padding-left: 22px; }
.article-image {
  min-height: 260px;
  margin: 22px 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  overflow: hidden;
}
.article-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }
.sidebar-card { padding: 20px; }
.sidebar-card h3 { margin: 0 0 12px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sidebar-card a { color: var(--blue); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { padding: 24px; }
.contact-card h3 { margin: 0 0 10px; }
.contact-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.map-box {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px dashed #93c5fd;
  border-radius: 28px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  color: var(--blue);
  font-weight: 900;
  text-align: center;
  padding: 24px;
}

.quote-section { background: var(--dark); color: #fff; }
.quote-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.quote-layout p { color: #cbd5e1; line-height: 1.7; }
form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 14px; padding: 13px 14px; font: inherit; }
textarea { grid-column: 1 / -1; min-height: 90px; resize: vertical; }
form button { grid-column: 1 / -1; border: 0; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

footer { background: #020817; color: #cbd5e1; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer h3, footer h4 { color: #fff; margin: 0 0 10px; }
footer p, footer li { line-height: 1.7; margin: 0; }
footer ul { list-style: none; padding: 0; margin: 0; }
.copyright { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #94a3b8; font-size: 13px; }
.floating { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.floating a { display: flex; justify-content: center; border-radius: 999px; padding: 12px 16px; color: #fff; font-weight: 900; box-shadow: var(--shadow); }
.phone { background: var(--red); }
.zalo { background: #0068ff; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .promo, .product-layout, .quote-layout, .footer-grid, .page-layout, .contact-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .sidebar { position: static; }
  .news-grid, .content-grid { grid-template-columns: 1fr; }
  .menu { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; background: #fff; padding: 18px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .dropdown-menu { position: static; display: none; margin: 8px 0 0; box-shadow: none; border-radius: 14px; }
  .dropdown-menu::before { display: none; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown:focus-within .dropdown-menu, .dropdown:hover .dropdown-menu { display: grid; }
  .hamburger { display: block; }
}

@media (max-width: 640px) {
  .brand-logo { width: 92px; height: 26px; }
  .topbar .container { display: block; }
  .hero .container { min-height: 520px; }
  .grid, .stats, form { grid-template-columns: 1fr; }
  .gallery-main img { height: 330px; }
  .section-head { display: block; }
  .floating { left: 14px; right: 14px; grid-template-columns: 1fr 1fr; }
  .floating a { padding: 11px 8px; font-size: 13px; }
}

/* Product detail main image: fit by width instead of fixed height crop */
#mainProductImage {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
}
