/*
Theme Name: VinFastXeMay Commerce
Theme URI: https://vinfastxemay.com/
Author: VinFastXeMay.com
Description: Theme WordPress độc lập cho nền tảng thông tin, đặt hàng, trả góp và tin tức xe máy điện VinFast.
Version: 1.0.1
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: vinfastxemay
Tags: ecommerce, news, electric-scooter, custom-logo, featured-images, responsive-layout
*/

:root {
  --vxm-blue: #0068ff;
  --vxm-blue-2: #0b7cff;
  --vxm-navy: #051936;
  --vxm-deep: #001f48;
  --vxm-text: #0f1b31;
  --vxm-muted: #68758b;
  --vxm-line: #dce6f4;
  --vxm-bg: #f5f9ff;
  --vxm-soft: #edf5ff;
  --vxm-green: #18b66a;
  --vxm-red: #f2353f;
  --vxm-radius: 8px;
  --vxm-container: 1160px;
  --vxm-shadow: 0 16px 42px rgba(10, 49, 105, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vxm-text);
  background: #fff;
  font-family: Inter, ui-sans-serif, 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; }

.vxm-container {
  width: min(var(--vxm-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;
}

.vxm-topbar {
  color: #fff;
  background: linear-gradient(90deg, #061d40, #071425);
  font-size: 13px;
}
.vxm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 20px;
}
.vxm-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #e5edf8;
  box-shadow: 0 8px 24px rgba(4, 24, 55, .05);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 26px;
}
.site-branding { flex: 0 0 260px; }
.vxm-logo {
  display: inline-grid;
  gap: 3px;
}
.vxm-logo__word {
  display: block;
  color: #0a1830;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}
.vxm-logo__word span { color: var(--vxm-blue); }
.vxm-logo__tag {
  display: block;
  color: #27364e;
  font-size: 12px;
  font-weight: 700;
}
.site-nav { flex: 1; }
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  color: #101d33;
  border-radius: var(--vxm-radius);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.site-nav .current-menu-item a,
.site-nav a:hover {
  color: var(--vxm-blue);
  background: #eff5ff;
}
.site-nav .current-menu-item a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -21px;
  height: 3px;
  content: "";
  background: var(--vxm-blue);
  border-radius: 999px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vxm-button,
.order-submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #0068ff, #0b7cff);
  border: 0;
  border-radius: var(--vxm-radius);
  box-shadow: 0 14px 28px rgba(0, 104, 255, .24);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}
.vxm-button--light {
  color: var(--vxm-blue);
  background: #fff;
  border: 1px solid #d5e2f7;
  box-shadow: 0 10px 22px rgba(10, 55, 120, .09);
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0d1b35;
  background: #f4f7ff;
  border: 1px solid #e8eefc;
  border-radius: var(--vxm-radius);
  cursor: pointer;
}

.hero {
  overflow: hidden;
  min-height: 500px;
  padding: 48px 0 74px;
  background:
    linear-gradient(90deg, rgba(248, 252, 255, .98) 0%, rgba(248, 252, 255, .94) 36%, rgba(235, 244, 255, .55) 100%),
    radial-gradient(circle at 78% 18%, rgba(0, 104, 255, .12), transparent 32%),
    linear-gradient(180deg, #f8fbff, #e9f3ff);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: 24px;
}
.hero-copy h1 {
  margin: 0 0 12px;
  color: #08162d;
  font-size: clamp(50px, 6.2vw, 78px);
  line-height: .88;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1 small {
  display: block;
  color: #08162d;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.1;
}
.hero-copy h1 span { color: var(--vxm-blue); }
.hero-copy h2 {
  margin: 0 0 24px;
  color: #13223d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  text-transform: uppercase;
}
.hero-points {
  display: grid;
  gap: 13px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  align-items: start;
  color: #26344d;
  font-size: 14px;
}
.hero-points strong {
  display: block;
  color: #0c1830;
  font-weight: 950;
}
.point-icon,
.benefit-icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--vxm-blue);
  background: #eaf2ff;
  border: 2px solid #cfe1ff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}
.hero-art {
  position: relative;
  min-height: 386px;
}
.hero-art::before {
  position: absolute;
  inset: 14px -45px 0 80px;
  content: "";
  background:
    linear-gradient(140deg, transparent 0 45%, rgba(10, 32, 60, .1) 45% 100%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.55));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-art img {
  position: absolute;
  right: -14px;
  bottom: 0;
  width: min(100%, 760px);
  filter: drop-shadow(0 22px 22px rgba(4, 20, 50, .19));
}

.finder {
  position: relative;
  z-index: 4;
  margin-top: -34px;
}
.finder-panel {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) .92fr;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e1eaf6;
  border-radius: var(--vxm-radius);
  box-shadow: var(--vxm-shadow);
}
.finder-title {
  color: #0b172d;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}
.finder select,
.finder input,
.signup-form select,
.signup-form input,
.signup-form textarea,
.loan-control select,
.loan-control input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #15243d;
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.product-card,
.news-card,
.tool-card,
.content-card {
  background: #fff;
  border: 1px solid #dfe8f4;
  border-radius: var(--vxm-radius);
  box-shadow: 0 8px 24px rgba(16, 52, 104, .07);
}
.product-card {
  position: relative;
  overflow: hidden;
  padding: 16px 13px 15px;
}
.product-badge {
  position: absolute;
  top: 15px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  background: var(--vxm-red);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.product-badge--hot { background: var(--vxm-green); }
.product-media {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
  border-radius: 6px;
}
.product-media img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}
.product-card h3 {
  margin: 0;
  color: #0a1730;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
}
.product-price {
  margin: 5px 0 8px;
  color: #26334a;
  font-size: 14px;
}
.product-price strong {
  color: var(--vxm-blue);
  font-size: 18px;
  font-weight: 950;
}
.product-specs {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  color: #2f405c;
  list-style: none;
  font-size: 13px;
}
.product-specs li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--vxm-blue);
  font-weight: 950;
}
.detail-link {
  color: var(--vxm-blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.benefit-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 20px;
  background: linear-gradient(90deg, #edf5ff, #f6faff);
  border-radius: var(--vxm-radius);
}
.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 15px 22px;
  border-right: 1px solid #d9e6f6;
}
.benefit:last-child { border-right: 0; }
.benefit strong {
  display: block;
  color: #0d1a34;
  line-height: 1.2;
  font-weight: 950;
}
.benefit span:last-child {
  display: block;
  margin-top: 2px;
  color: #52637e;
  font-size: 13px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.tool-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 26px;
}
.loan-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
}
.loan-card img {
  width: 180px;
  filter: drop-shadow(0 18px 18px rgba(4, 20, 50, .16));
}
.loan-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.loan-control {
  display: grid;
  gap: 6px;
  color: #526078;
  font-size: 12px;
  font-weight: 850;
}
.loan-result {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #f0f6ff;
  border-radius: 7px;
}
.loan-result strong {
  display: block;
  color: var(--vxm-blue);
  font-size: 27px;
  line-height: 1;
}
.compare-card {
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(239,246,255,.9)),
    radial-gradient(circle at 88% 22%, rgba(0,104,255,.14), transparent 30%);
}
.compare-card p {
  max-width: 330px;
  color: #32445f;
}
.compare-bike-row {
  position: absolute;
  right: 20px;
  bottom: 6px;
  display: flex;
  width: 52%;
  align-items: end;
  gap: 6px;
}
.compare-bike-row img {
  width: 50%;
  filter: drop-shadow(0 16px 16px rgba(4, 20, 50, .14));
}

.signup-band {
  padding: 24px 0 16px;
}
.signup-panel {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 24px;
  align-items: center;
  padding: 28px 26px;
  color: #fff;
  background: linear-gradient(100deg, #031933, #053f8c);
  border-radius: var(--vxm-radius);
  box-shadow: var(--vxm-shadow);
}
.signup-panel h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
  text-transform: uppercase;
}
.signup-panel p { margin: 0; color: #d8e7ff; }
.signup-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 800;
}
.signup-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.signup-form .full { grid-column: 1 / -1; }
.signup-form input,
.signup-form select,
.signup-form textarea {
  background: #fff;
}
.signup-form textarea {
  min-height: 74px;
  resize: vertical;
}
.form-message {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 850;
}
.form-message.ok {
  color: #075833;
  background: #e8fff3;
}
.form-message.error {
  color: #8c1d18;
  background: #fff0ef;
}

.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(--vxm-blue);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 950;
}
.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-logo .vxm-logo__word,
.footer-logo .vxm-logo__tag { color: #fff; }
.footer-logo .vxm-logo__word span { color: #55a2ff; }
.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-size: 12px;
  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: 950;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.floating-actions a:first-child { background: #0c63ff; }
.floating-actions a:last-child { background: #0fbd69; }

.content-wrap {
  padding: 42px 0 56px;
  background: #f7fbff;
}
.content-card { padding: 28px; }
.entry-content {
  color: #25324a;
  font-size: 17px;
}
.entry-content img { border-radius: var(--vxm-radius); }
.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;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
  background: #fff;
}
.page-numbers.current {
  color: #fff;
  background: var(--vxm-blue);
}

@media (max-width: 1120px) {
  .site-branding { flex-basis: 230px; }
  .site-nav a { padding: 0 8px; font-size: 12px; }
  .finder-panel { grid-template-columns: repeat(2, 1fr); }
  .finder-title { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-band { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(2) { border-right: 0; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .vxm-container { width: min(100% - 32px, var(--vxm-container)); }
  .vxm-topbar__inner { align-items: flex-start; flex-direction: column; padding: 9px 0; gap: 4px; }
  .vxm-topbar__right { flex-wrap: wrap; gap: 8px 14px; white-space: normal; }
  .header-inner { min-height: 68px; }
  .site-branding { flex: 1; }
  .vxm-logo__word { font-size: 21px; }
  .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 .vxm-button { display: none; }
  .hero { padding: 38px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .hero-art img { right: 50%; transform: translateX(50%); width: min(100%, 650px); }
  .tools-grid,
  .signup-panel,
  .loan-card { grid-template-columns: 1fr; }
  .loan-card img { width: 170px; }
  .signup-form { grid-template-columns: repeat(2, 1fr); }
  .compare-bike-row { position: static; width: 80%; margin-top: 20px; }
  .floating-actions { left: 16px; right: 16px; justify-content: center; }
}

@media (max-width: 580px) {
  body { font-size: 14px; }
  .vxm-logo__word { font-size: 19px; }
  .vxm-logo__tag { font-size: 10px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy h1 small { font-size: 25px; }
  .hero-art { min-height: 220px; }
  .finder-panel,
  .product-grid,
  .benefit-band,
  .loan-form,
  .signup-form,
  .news-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .benefit,
  .benefit:nth-child(2) { border-right: 0; border-bottom: 1px solid #d9e6f6; }
  .benefit:last-child { border-bottom: 0; }
  .section-title { font-size: 21px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-media { min-height: 145px; }
  .tool-card { padding: 22px; }
  .signup-panel { padding: 24px 20px; }
}
