/* =========================================================
   Xe ba bánh Vĩ Tuyến – xebabanhchohang.com
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop)
   ========================================================= */

:root {
  --blue: #0b5be0;
  --blue-600: #0a49c0;
  --blue-50: #eaf1ff;
  --navy: #0a2a6b;
  --navy-900: #061a47;
  --red: #e3262e;
  --red-600: #c51b23;
  --yellow: #ffc83d;
  --text: #0f1b3d;
  --muted: #5b6785;
  --line: #e2e8f3;
  --bg: #f4f7fc;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 18px rgba(10, 42, 107, .08);
  --shadow-lg: 0 12px 34px rgba(10, 42, 107, .16);
  --container: 1200px;
  --quickbar-h: 52px;
  --tabbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--quickbar-h) + var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Icon */
.i {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--xs { width: 14px; height: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(180deg, #2a78ff, var(--blue-600)); color: #fff; box-shadow: 0 6px 16px rgba(11, 91, 224, .35); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(11, 91, 224, .45); }
.btn--red { background: linear-gradient(180deg, #ff3b3b, var(--red-600)); color: #fff; box-shadow: 0 6px 16px rgba(227, 38, 46, .35); }
.btn--sm { height: 38px; padding: 0 16px; }
.btn--lg { height: 60px; padding: 0 28px; font-size: 22px; gap: 14px; }
.btn--lg .i { width: 26px; height: 26px; }
.btn--lg span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn--lg small { font-size: 13px; font-weight: 600; }
.btn--block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 10px; color: var(--blue-600);
}
.icon-btn:hover { background: var(--blue-50); }
.icon-btn .i { width: 26px; height: 26px; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(10, 42, 107, .1); }
.header__bar { display: flex; align-items: center; gap: 6px; height: 68px; }
.header__menu { margin-left: -8px; }

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand__logo { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-weight: 800; font-size: 22px; color: var(--blue-600); letter-spacing: .02em; }
.brand__sub { font-weight: 700; font-size: 11.5px; font-style: italic; color: var(--navy); white-space: nowrap; }
.brand__sub sup { font-size: 7px; }
.brand__slogan { font-size: 10.5px; font-style: italic; color: var(--muted); white-space: nowrap; }

.nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hotline {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  background: linear-gradient(180deg, #2a78ff, var(--blue-600)); color: #fff;
  box-shadow: 0 6px 16px rgba(11, 91, 224, .3);
}
.hotline .i { width: 22px; height: 22px; }
.hotline span { display: flex; flex-direction: column; line-height: 1.1; }
.hotline b { font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.hotline small { font-size: 11px; opacity: .9; text-align: center; }

.cart { position: relative; }
.cart__count {
  position: absolute; top: 2px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}

.search { border-top: 1px solid var(--line); background: #fff; }
.search__inner { display: flex; align-items: center; gap: 10px; height: 60px; }
.search__inner > .i { color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; font: inherit; outline: none;
}
.search input:focus { border-color: var(--blue); }

/* Mobile nhỏ: rút gọn hotline */
@media (max-width: 420px) {
  .brand__logo { width: 46px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 10px; }
  .brand__slogan { display: none; }
  .header__bar { gap: 0; }
  .header .icon-btn { width: 36px; }
  .brand { gap: 5px; flex: none; }
  .brand__sub { display: none; }
  .header__actions { gap: 0; }
  .hotline { padding: 0 9px; gap: 5px; height: 40px; }
  .hotline .i { width: 18px; height: 18px; }
  .hotline b { font-size: 12.5px; }
  .hotline small { font-size: 10px; }
}
/* Điện thoại 360px: bỏ giỏ hàng khỏi header cho vừa */
@media (max-width: 389px) {
  .header .cart { display: none; }
}
@media (max-width: 359px) {
  .hotline span { display: none; }
  .hotline { width: 44px; padding: 0; justify-content: center; }
}

/* =========================================================
   Drawer
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 26, 71, .55); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 86vw);
  background: #fff; display: flex; flex-direction: column; gap: 14px;
  padding: 0 16px 20px; overflow-y: auto;
  transform: translateX(-100%); transition: transform .28s ease;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; border-bottom: 2px solid var(--blue);
  font-weight: 800; text-transform: uppercase; color: var(--navy);
  position: sticky; top: 0; background: #fff;
}
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px; border-bottom: 1px dotted #b9c3d6;
  font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--navy);
}
.drawer__list a:hover { color: var(--blue); }
.drawer__list .i { width: 16px; height: 16px; color: var(--muted); }
.drawer__links { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer__links a { padding: 8px 14px; background: var(--blue-50); color: var(--blue-600); border-radius: 999px; font-weight: 600; font-size: 14px; }
.drawer__panel > .btn { margin-top: auto; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 26, 71, .96) 0%, rgba(8, 40, 110, .82) 38%, rgba(8, 40, 110, .15) 70%, rgba(8, 40, 110, 0) 100%),
    linear-gradient(180deg, #8fb8ee 0%, #cfe0f6 52%, #7b8698 53%, #4f5867 100%);
  border-radius: 0 0 26px 26px;
}
.hero::after { /* vạch kẻ đường */
  content: ""; position: absolute; left: 0; right: 0; bottom: 14%;
  height: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 40px, transparent 40px 80px);
  opacity: .5; pointer-events: none;
}
.hero__track { display: grid; }
.hero__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner { position: relative; min-height: 270px; display: flex; align-items: center; padding-top: 22px; padding-bottom: 40px; }
.hero__content { position: relative; z-index: 2; max-width: 62%; }
.hero__eyebrow {
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 22px; line-height: 1; letter-spacing: .02em;
}
.hero__title {
  font-weight: 800; font-style: italic; font-size: 40px; line-height: 1.02;
  letter-spacing: .01em; margin: 2px 0 6px;
  background: linear-gradient(180deg, #fff 30%, #c9d5e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.hero__slogan { font-weight: 700; font-style: italic; font-size: 15px; margin-bottom: 14px; }
.hero__feats { display: flex; gap: 10px; margin-bottom: 16px; }
.hero__feats li { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; line-height: 1.3; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.3); }
.hero__feats li:last-child { border: 0; padding: 0; }
.hero__feats .i { width: 24px; height: 24px; }
.hero__img {
  position: absolute; z-index: 1; right: -8%; bottom: 22px; width: 72%; max-width: 640px;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.35));
  transform: translateX(30px); transition: transform .8s ease;
}
.hero__slide.is-active .hero__img { transform: none; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; transition: background .2s, width .2s; }
.hero__dots button[aria-selected="true"] { background: #fff; }

/* =========================================================
   Cam kết
   ========================================================= */
.trust {
  display: grid; grid-template-columns: repeat(5, minmax(112px, 1fr)); gap: 10px;
  margin-top: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none;
}
.trust::-webkit-scrollbar { display: none; }
.trust__item {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 8px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.trust__ic {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, #2a78ff, var(--blue-600)); color: #fff;
}
.trust__item p { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.trust__item small { font-weight: 500; color: var(--muted); font-size: 11px; }
.trust__item a { color: var(--blue-600); font-weight: 700; }

/* =========================================================
   Section chung
   ========================================================= */
.section { margin-top: 28px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font-size: 19px; font-weight: 800; text-transform: uppercase; color: var(--navy-900); letter-spacing: .01em; }
.section__more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section__more .i { width: 16px; height: 16px; transition: transform .15s; }
.section__more:hover .i { transform: translateX(3px); }
.section__more--light { color: #cfe0ff; }
.container + .container, main > .container { margin-top: 24px; }

/* Danh mục */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 8px 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat img { aspect-ratio: 5 / 3; object-fit: contain; background: linear-gradient(180deg, #f6f9ff, #eef3fb); border-radius: 8px; }
.cat span { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-weight: 700; font-size: 12.5px; color: var(--navy); line-height: 1.3; }
.cat .i { width: 15px; height: 15px; color: var(--muted); }

/* Banner 10 năm */
.years {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(255,150,40,.35) 0%, rgba(255,150,40,0) 35%),
    linear-gradient(100deg, #0b1220 0%, #0c2559 45%, #08317e 100%);
  color: #fff; display: flex; align-items: center; gap: 14px; padding: 18px 16px;
}
.years__spark {
  position: absolute; left: 0; top: 0; bottom: 0; width: 35%;
  background:
    radial-gradient(2px 2px at 20% 30%, #ffd27a, transparent 60%),
    radial-gradient(2px 2px at 40% 60%, #ffb347, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 40%, #fff1c2, transparent 60%),
    radial-gradient(2px 2px at 30% 75%, #ffcf6a, transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, #ffe29a, transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 85%, #ffb347, transparent 60%);
  opacity: .9; pointer-events: none;
}
.years__logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.years__logo img { width: 92px; height: auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.years__logo span { font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.years__body { position: relative; min-width: 0; }
.years__big { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1; }
.years__big b { font-size: 46px; color: var(--yellow); vertical-align: -6px; text-shadow: 0 2px 10px rgba(255, 200, 61, .4); }
.years__line { font-weight: 800; text-transform: uppercase; font-size: 15px; margin-top: 4px; }
.years__line--sm { font-size: 12.5px; color: #d6e3ff; }
.years__vals { display: flex; gap: 10px; margin-top: 10px; }
.years__vals li { display: flex; align-items: center; gap: 5px; font-size: 10px; line-height: 1.25; color: #d6e3ff; }
.years__vals .i { width: 18px; height: 18px; color: #fff; }

/* Sản phẩm */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 10px 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
}
.badge--new { background: #e8402b; }
.badge--sale { background: #d91f6a; }
.product__img img { aspect-ratio: 5 / 3; object-fit: contain; margin: 18px 0 8px; }
.product__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.product__name a:hover { color: var(--blue); }
.product__spec { font-size: 12px; color: var(--muted); margin-top: 3px; }
.product__price { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.product__price b { color: var(--red); font-size: 16px; font-weight: 800; }
.product__price s { color: var(--muted); font-size: 12px; }
.product__specs {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.product__specs li { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #33405f; line-height: 1.25; }
.product__specs .i { width: 16px; height: 16px; color: var(--blue-600); }
.product__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 10px; }
.product__btns .btn { height: 36px; padding: 0 6px; font-size: 12px; text-transform: none; letter-spacing: 0; box-shadow: none; }
.product__btns .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn--soft { background: var(--blue-50); color: var(--blue-600); }
.btn--soft:hover { background: #dbe7ff; }

/* Video */
.video {
  background: linear-gradient(135deg, #0a2a6b 0%, #0b3c9c 60%, #0a2a6b 100%);
  border-radius: var(--radius); padding: 14px; color: #fff;
}
.video__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.video__title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.video__title .i { width: 22px; height: 22px; padding: 4px; border: 2px solid #fff; border-radius: 50%; }
.video__grid { display: grid; gap: 12px; }
.video__thumb {
  position: relative; overflow: hidden; border-radius: 12px; text-align: left; color: #fff;
  background: linear-gradient(180deg, #a7c6ef 0%, #dde9f8 55%, #6c7686 56%, #3f4652 100%);
  aspect-ratio: 16 / 10;
}
.video__thumb img { position: absolute; inset: 8% 4% auto auto; width: 82%; }
.video__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,26,71,.85) 0%, rgba(6,26,71,0) 55%); }
.video__play {
  position: absolute; z-index: 1; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--blue-600);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.25); transition: transform .2s;
}
.video__thumb:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__play .i { width: 28px; height: 28px; margin-left: 4px; }
.video__cap { position: absolute; z-index: 1; left: 14px; bottom: 12px; display: flex; flex-direction: column; }
.video__cap b { font-size: 17px; font-weight: 800; }
.video__cap i { font-size: 13px; }
.video__time { position: absolute; z-index: 1; right: 12px; bottom: 12px; font-size: 12px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 6px; }
.video__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.video__feats li {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: rgba(255,255,255,.95); color: var(--text); border-radius: 10px;
}
.video__feats .i { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--blue-600); color: #fff; }
.video__feats span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.video__feats b { color: var(--navy); font-size: 12.5px; }
.video__brand { display: none; }

/* Nhà máy */
.factory {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: linear-gradient(90deg, #08245e 0%, #0b3c9c 45%, #6fa3e8 75%, #b8d3f3 100%);
  display: grid; grid-template-columns: 1fr; min-height: 170px;
}
.factory__body { position: relative; z-index: 2; padding: 18px 16px; max-width: 62%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.factory__title { font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.factory__tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: #d6e3ff; }
.factory__tags span + span::before { content: "|"; margin-right: 10px; opacity: .5; }
.factory__body .btn { height: 40px; font-size: 12.5px; text-transform: none; }
.factory__art { position: absolute; right: 0; bottom: 0; width: 52%; height: 100%; }
.factory__building {
  position: absolute; right: -10px; bottom: 0; width: 100%; height: 74%;
  background: linear-gradient(180deg, #1d4fc0 0%, #133a96 60%, #0d2e7c 100%);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 18%;
}
.factory__sign { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.factory__sign img { width: 30px; height: auto; }
.factory__sub { font-size: 9px; text-transform: uppercase; opacity: .8; }
.factory__doors { display: flex; gap: 6px; margin-top: auto; width: 86%; height: 34%; }
.factory__doors i { flex: 1; background: repeating-linear-gradient(180deg, #9fb3cf 0 3px, #7d93b3 3px 6px); border-radius: 2px 2px 0 0; }

/* Đánh giá */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.review__who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a78ff, var(--navy)); color: #fff; font-weight: 800; font-size: 15px;
}
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review figcaption b { font-size: 14px; }
.stars { display: flex; color: #ffb400; }
.stars .i { width: 15px; height: 15px; }
.review blockquote { font-size: 13.5px; line-height: 1.55; color: #33405f; flex: 1; }
.review img { aspect-ratio: 16 / 7; object-fit: contain; background: linear-gradient(180deg, #e8f0fb, #f6f9ff); border-radius: 8px; }
.review__ok { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--blue-600); }
.review__ok .i { width: 17px; height: 17px; }

/* Vì sao chọn */
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.why__lead {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff;
  background: linear-gradient(100deg, var(--navy-900), var(--blue-600));
}
.why__lead > .i { width: 44px; height: 44px; color: var(--yellow); stroke-width: 1.8; }
.why__lead h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.why__lead h2 b { font-weight: 800; }
.why__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.why__list li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 6px; font-size: 12px; font-weight: 600; line-height: 1.35;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.why__list .i { width: 30px; height: 30px; color: var(--blue-600); }
.why__list small { color: var(--muted); font-weight: 500; font-size: 10.5px; }
.why__list a { color: var(--blue-600); font-weight: 700; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(60% 80% at 75% 30%, rgba(255, 190, 90, .55) 0%, rgba(255, 190, 90, 0) 60%),
    linear-gradient(180deg, #0b2f80 0%, #164fb8 50%, #3d4a5e 51%, #2a313d 100%);
  padding: 20px 16px; display: grid; gap: 14px;
}
.cta__body { position: relative; z-index: 2; max-width: 64%; }
.cta__kicker { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 17px; line-height: 1.1; }
.cta__title { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 24px; line-height: 1.1; color: var(--yellow); }
.cta__text { font-size: 13px; margin: 8px 0 14px; color: #e3ecff; }
.cta .btn--lg { height: 54px; padding: 0 20px; font-size: 19px; }
.cta__img { position: absolute; z-index: 1; right: -16%; top: 18px; width: 64%; filter: drop-shadow(0 14px 14px rgba(0,0,0,.4)); }
.cta__list { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cta__list li {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  background: rgba(6, 26, 71, .55); backdrop-filter: blur(4px); border-radius: 10px; padding: 8px 10px;
}
.cta__list span { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--blue-600); display: grid; place-items: center; flex: none; }
.cta__list .i { width: 15px; height: 15px; }

/* Tin tức */
.news {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
}
.news::-webkit-scrollbar { display: none; }
.post {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.post__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s; }
.post:hover .post__img img { transform: scale(1.05); }
.post__img--a { background: linear-gradient(135deg, #3b4352, #8b96a8); }
.post__img--b { background: linear-gradient(180deg, #a7c6ef 0%, #dbe8f7 55%, #6f7a8a 56%, #3f4652 100%); }
.post__img--c { background: linear-gradient(135deg, #2c313b, #6a7486); }
.post__tag { position: absolute; left: 10px; bottom: 10px; background: var(--blue-600); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.post__title { font-size: 14px; font-weight: 700; line-height: 1.4; padding: 12px 12px 6px; }
.post__title a:hover { color: var(--blue); }
.post__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 12px 12px; margin-top: auto; }
.post__meta .i { width: 14px; height: 14px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { margin-top: 32px; color: #d6e3ff; background: linear-gradient(160deg, var(--navy-900) 0%, #0a2f80 100%); }
.footer__grid { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 24px; }
.footer__brand { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; margin-bottom: 14px; }
.footer__brand img { width: 84px; height: auto; flex: none; }
.footer__co { color: #fff; font-weight: 800; text-transform: uppercase; font-size: 14px; margin-bottom: 2px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.footer__contact .i { width: 18px; height: 18px; color: #fff; }
.footer__contact b { color: #fff; font-size: 16px; }
.footer__h { color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.footer__h:not(:first-child) { margin-top: 18px; }
.footer__links { display: grid; gap: 7px; font-size: 13.5px; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; }
.footer__links a::before { content: "→"; opacity: .7; }
.footer__links a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social .i { width: 20px; height: 20px; }
.social__fb { background: #1877f2; }
.social__yt { background: #ff0000; }
.social__tt { background: #111; }
.social__zl { background: #fff; color: #0068ff !important; font-weight: 800; font-size: 11px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }
.footer__bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; }
.footer__bottom a { display: inline-flex; align-items: center; gap: 4px; }
.footer__bottom .i { width: 14px; height: 14px; }

/* =========================================================
   Thanh liên hệ nhanh + tab bar (mobile)
   ========================================================= */
.quickbar {
  position: fixed; z-index: 60; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px 8px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
}
.quickbar__btn {
  height: calc(var(--quickbar-h) - 12px); border-radius: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px;
  background: linear-gradient(180deg, #2a78ff, var(--blue-600)); text-align: left;
}
.quickbar__btn--red { background: linear-gradient(180deg, #ff3b3b, var(--red-600)); }
.quickbar__btn--navy { background: linear-gradient(180deg, #1b3f9a, var(--navy)); }
.quickbar__btn .i { width: 20px; height: 20px; }
.quickbar__btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: 10px; min-width: 0; }
.quickbar__btn b { font-size: 11.5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabbar {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: var(--muted);
}
.tabbar .is-active { color: var(--blue-600); font-weight: 700; }
.tabbar .i { width: 23px; height: 23px; }

.floaters { display: none; }

/* =========================================================
   Modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 26, 71, .6); opacity: 0; transition: opacity .2s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  padding: 24px 20px 20px; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s;
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__x { position: absolute; top: 8px; right: 8px; color: var(--muted); }
.modal__box h2 { font-size: 20px; font-weight: 800; color: var(--navy); }
.modal__sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }
.lead { display: grid; gap: 12px; }
.lead label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.lead input, .lead select {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-weight: 400; background: #f9fbff; outline: none;
}
.lead input:focus, .lead select:focus { border-color: var(--blue); background: #fff; }
.lead__err { color: var(--red); font-size: 13px; min-height: 0; }
.lead__err:empty { display: none; }
.lead__ok { text-align: center; padding: 10px 0; }
.lead__ok .i { width: 56px; height: 56px; color: #16a34a; margin: 0 auto 10px; }
.modal--video .modal__box { max-width: 900px; padding: 0; background: #000; overflow: hidden; }
.modal--video .modal__x { z-index: 1; color: #fff; background: rgba(0,0,0,.5); }
.modal__frame { aspect-ratio: 16 / 9; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

body.no-scroll { overflow: hidden; }

/* =========================================================
   Tablet ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  body { font-size: 16px; }
  .hero__inner { min-height: 360px; }
  .hero__eyebrow { font-size: 30px; }
  .hero__title { font-size: 64px; }
  .hero__slogan { font-size: 20px; }
  .hero__feats li { font-size: 12.5px; }
  .hero__img { right: -6%; width: 64%; }
  .trust { overflow: visible; }
  .trust__item p { font-size: 13.5px; }
  .section__title { font-size: 22px; }
  .cats { gap: 16px; }
  .cat span { font-size: 14.5px; }
  .products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .years { padding: 24px 28px; gap: 28px; }
  .years__logo img { width: 150px; }
  .years__big { font-size: 30px; }
  .years__big b { font-size: 68px; }
  .years__line { font-size: 22px; }
  .years__line--sm { font-size: 17px; }
  .years__vals li { font-size: 12.5px; }
  .video__grid { grid-template-columns: 1.3fr 1fr; }
  .video__feats { grid-template-columns: 1fr; }
  .factory { min-height: 210px; }
  .factory__title { font-size: 24px; }
  .reviews { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .why__list { grid-template-columns: repeat(5, 1fr); }
  .why__list li { border-bottom: 0; }
  .cta { padding: 30px 28px; }
  .cta__kicker { font-size: 24px; }
  .cta__title { font-size: 36px; }
  .cta__text { font-size: 15px; }
  .cta__img { right: 18%; top: auto; bottom: 10px; width: 46%; }
  .cta__list { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); grid-template-columns: 1fr; width: 200px; }
  .news { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .quickbar__btn b { font-size: 13px; }
  .quickbar__btn span { font-size: 11.5px; }
}

/* =========================================================
   Desktop ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .header__bar { height: 84px; gap: 24px; }
  .header__menu { display: none; }
  .brand__logo { width: 72px; }
  .brand__name { font-size: 26px; }
  .brand__sub { font-size: 13px; }
  .brand__slogan { font-size: 12px; }

  .nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px;
    border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--navy);
  }
  .nav__link:hover, .nav__link.is-active { background: var(--blue-50); color: var(--blue-600); }
  .nav__link .i { transform: rotate(90deg); }
  .nav__item { position: relative; }
  .nav__dropdown {
    position: absolute; top: 100%; left: 0; width: 320px; margin-top: 10px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px 14px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
  }
  .nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
  .nav__dropdown a {
    display: flex; justify-content: space-between; align-items: center; padding: 9px 2px;
    border-bottom: 1px dotted #b9c3d6; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--navy);
  }
  .nav__dropdown a:last-child { border: 0; }
  .nav__dropdown a:hover { color: var(--blue); }
  .nav__dropdown .i { width: 14px; height: 14px; }

  .hotline { height: 50px; padding: 0 20px 0 16px; }
  .hotline b { font-size: 17px; }

  .hero { border-radius: 0 0 36px 36px; }
  .hero__inner { min-height: 500px; }
  .hero__content { max-width: 48%; }
  .hero__eyebrow { font-size: 40px; }
  .hero__title { font-size: 92px; }
  .hero__slogan { font-size: 26px; margin-bottom: 22px; }
  .hero__feats { gap: 18px; margin-bottom: 28px; }
  .hero__feats li { font-size: 14px; padding-right: 18px; }
  .hero__feats .i { width: 32px; height: 32px; }
  .hero .btn { height: 52px; padding: 0 28px; font-size: 15px; }
  .hero__img { right: 0; width: 56%; bottom: 30px; }

  .trust { margin-top: -38px; position: relative; z-index: 5; gap: 16px; }
  .trust__item { flex-direction: row; text-align: left; padding: 18px 16px; }
  .trust__ic { width: 50px; height: 50px; }
  .trust__ic .i { width: 26px; height: 26px; }

  .section { margin-top: 44px; }
  main > .container { margin-top: 36px; }
  .section__title { font-size: 26px; }
  .cats { grid-template-columns: repeat(6, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product { padding: 14px; }
  .product__name { font-size: 16px; }
  .product__price b { font-size: 19px; }
  .product__specs li { font-size: 12.5px; }
  .product__btns .btn { height: 40px; font-size: 13.5px; }

  .years { padding: 30px 48px; }
  .years__body { display: grid; grid-template-columns: auto 1fr; column-gap: 40px; align-items: center; flex: 1; }
  .years__big, .years__line { grid-column: 1; }
  .years__vals { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; gap: 24px; margin: 0; }
  .years__vals li { font-size: 14px; }
  .years__vals .i { width: 26px; height: 26px; }

  .video { padding: 20px; }
  .video__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .video__brand {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    border-radius: 12px; background: radial-gradient(circle at 50% 35%, #1f5fe0 0%, #0a2a6b 75%); padding: 20px; gap: 4px;
  }
  .video__brand img { width: 150px; height: auto; margin-bottom: 6px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
  .video__brand b { font-size: 22px; letter-spacing: .08em; }
  .video__brand span { font-weight: 700; }
  .video__brand i { font-size: 14px; color: #cfe0ff; }

  .factory { min-height: 250px; }
  .factory__body { padding: 32px 40px; max-width: 46%; }
  .factory__title { font-size: 30px; }
  .factory__tags { font-size: 14px; }
  .factory__body .btn { height: 46px; font-size: 14px; }
  .factory__art { width: 56%; }

  .reviews { gap: 20px; }
  .review { padding: 18px; }
  .why { display: grid; grid-template-columns: 320px 1fr; }
  .why__lead { padding: 20px 24px; }
  .why__lead h2 { font-size: 18px; }
  .why__list li { font-size: 14px; border-bottom: 0; padding: 20px 8px; }
  .cta { padding: 44px 48px; min-height: 300px; }
  .cta__title { font-size: 44px; }
  .cta__img { right: 22%; width: 40%; }
  .cta__list { right: 48px; width: 230px; }
  .cta__list li { font-size: 14px; padding: 10px 12px; }
  .news { gap: 20px; }
  .post__title { font-size: 16px; }

  .footer { margin-top: 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 44px; padding-bottom: 36px; }

  .quickbar, .tabbar { display: none; }
  .floaters { display: flex; flex-direction: column; gap: 12px; position: fixed; right: 20px; bottom: 24px; z-index: 60; }
  .floaters a {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    box-shadow: var(--shadow-lg); transition: transform .15s;
  }
  .floaters a:hover { transform: scale(1.08); }
  .floaters__zalo { background: #0068ff; font-weight: 800; font-size: 13px; }
  .floaters__phone { background: var(--red); animation: ring 1.6s infinite; }
  .floaters__phone .i { width: 26px; height: 26px; }
}

/* =========================================================
   Trang danh mục / sản phẩm
   ========================================================= */
.btn--ghost { background: #fff; color: var(--blue-600); border: 2px solid var(--blue); box-shadow: none; }
.btn--ghost:hover { background: var(--blue-50); }

.crumbs { padding-top: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--blue-600); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

main > .container.page-head, main > .container.pd { margin-top: 12px; }
.page-head {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: linear-gradient(110deg, var(--navy-900) 0%, var(--blue-600) 70%, #2a78ff 100%);
  padding: 20px 16px;
}
.page-head::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%);
}
.page-head__title { font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.page-head__intro { font-size: 14px; color: #dbe6ff; margin-top: 6px; max-width: 760px; }
.page-head__cta { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--navy);
  white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.listing { display: grid; gap: 20px; }
.listing__main { min-width: 0; }
.listing__side { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.toolbar__count { font-size: 14px; color: var(--muted); }
.toolbar__count b { color: var(--text); }
.toolbar__sort { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.toolbar__sort .i { width: 18px; height: 18px; }
.toolbar__sort select {
  height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; color: var(--text); background: #fff;
}
.product[hidden] { display: none; }

.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.side-box + .side-box { margin-top: 16px; }
.side-box__title { font-size: 15px; font-weight: 800; text-transform: uppercase; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.side-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 2px;
  border-bottom: 1px dotted #b9c3d6; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--navy);
}
.side-menu li:last-child a { border: 0; }
.side-menu a:hover, .side-menu a.is-active { color: var(--blue); }
.side-menu .i { width: 14px; height: 14px; color: var(--muted); }
.side-box--call { text-align: center; display: grid; gap: 10px; justify-items: center; }
.side-box--call > .i { width: 40px; height: 40px; color: var(--blue-600); }
.side-box--call p { font-weight: 700; color: var(--navy); }

.empty {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px dashed #b9c3d6;
  border-radius: var(--radius); padding: 18px; margin-bottom: 20px; font-size: 14px;
}
.empty .i { width: 40px; height: 40px; color: var(--blue-600); }
.empty a { color: var(--red); font-weight: 700; }
.section__title--sm { font-size: 17px; margin-bottom: 12px; }

.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; font-size: 15px; line-height: 1.7; color: #2b3756; }
.prose h2 { font-size: 18px; color: var(--navy-900); margin: 0 0 8px; line-height: 1.35; }
.prose h3 { font-size: 16px; color: var(--navy-900); margin: 16px 0 6px; }
.prose p + p, .prose p + h2, .prose ul + p { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue-600); font-weight: 600; }

/* Chi tiết sản phẩm */
.pd { display: grid; gap: 18px; }
.pd__gallery { position: relative; min-width: 0; }
.pd__main {
  background: linear-gradient(180deg, #f6f9ff, #e8eff9); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; place-items: center; aspect-ratio: 4 / 3;
}
.pd__main img { width: 100%; height: 100%; object-fit: contain; }
.pd__gallery .badge { top: 14px; left: 14px; font-size: 12px; }
.pd__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd__thumbs button {
  flex: none; width: 84px; aspect-ratio: 4 / 3; border-radius: 10px; border: 2px solid var(--line); background: #f3f7fd; padding: 4px;
}
.pd__thumbs button.is-active { border-color: var(--blue); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd__title { font-size: 24px; font-weight: 800; color: var(--navy-900); line-height: 1.25; }
.pd__spec { color: var(--muted); margin-top: 4px; }
.pd__price { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: #fff3f3; border: 1px solid #ffd6d8; color: var(--muted); }
.pd__price b { color: var(--red); font-size: 26px; font-weight: 800; }
.pd__price small { font-size: 13px; }
.pd__highlights { display: grid; gap: 8px; margin-bottom: 16px; }
.pd__highlights li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.pd__highlights .i { width: 20px; height: 20px; color: #16a34a; margin-top: 1px; }
.pd__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd__actions .btn--lg { grid-column: 1 / -1; }
.pd__actions .btn { text-transform: none; }
.pd__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pd__trust li {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--blue-50); border-radius: 10px; padding: 10px;
}
.pd__trust .i { width: 20px; height: 20px; color: var(--blue-600); }

.tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs__nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs__nav button {
  flex: none; padding: 14px 16px; font-weight: 700; font-size: 14px; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs__nav button[aria-selected="true"] { color: var(--blue-600); border-color: var(--blue-600); }
.tabs__panel { padding: 18px 16px; }
.tabs__panel.prose { border: 0; border-radius: 0; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 600; background: #f8faff; }
.specs__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

@media (min-width: 640px) {
  .page-head { padding: 28px; }
  .page-head__title { font-size: 28px; }
    .prose { padding: 24px 28px; }
  .pd__title { font-size: 28px; }
  .pd__trust { grid-template-columns: repeat(4, 1fr); }
  .pd__trust li { flex-direction: column; text-align: center; }
}

@media (min-width: 1024px) {
  .crumbs { padding-top: 20px; }
  .page-head { padding: 34px 40px; }
  .page-head__title { font-size: 34px; }
  .page-head__intro { font-size: 16px; }
  .chips { display: none; }
  .chips--wrap { display: flex; }
  .listing { grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
  .listing__side { display: block; position: sticky; top: 104px; }
  .listing .products { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .pd { grid-template-columns: 1.1fr 1fr; gap: 36px; }
  .pd__gallery { position: sticky; top: 104px; align-self: start; }
  .pd__title { font-size: 32px; }
  .pd__trust { grid-template-columns: 1fr 1fr; }
  .pd__trust li { flex-direction: row; text-align: left; }
  .tabs__panel { padding: 24px 28px; }
}

/* =========================================================
   Banner ảnh (khi có file trong assets/img/src/)
   ========================================================= */
.hero__slide--banner { position: relative; z-index: 2; }
.hero__banner { position: absolute; inset: 0; display: block; }
.hero__banner img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.years-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-900); }
.years-banner img { width: 100%; }

/* =========================================================
   Giới thiệu
   ========================================================= */
.about { display: grid; gap: 16px; }
.about__brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  border-radius: var(--radius); padding: 24px; color: #dbe6ff;
  background: radial-gradient(circle at 50% 35%, #1f5fe0 0%, var(--navy-900) 75%);
}
.about__brand img { width: 170px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); margin-bottom: 8px; }
.about__brand-name { color: #fff; font-weight: 800; font-size: 18px; }

.values { display: grid; gap: 12px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.value__ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(180deg, #2a78ff, var(--blue-600)); color: #fff;
}
.value__ic .i { width: 26px; height: 26px; }
.value h3 { font-size: 16px; font-weight: 800; color: var(--navy-900); margin-bottom: 4px; }
.value p { font-size: 14px; color: var(--muted); }

.factory--static { margin-top: 14px; }
.factory--static .factory__title { font-size: 22px; }
.factory__addr { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.factory__addr .i { width: 16px; height: 16px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 62px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); font-weight: 800;
}
.steps b { color: var(--navy-900); font-size: 15px; }
.steps span { font-size: 13.5px; color: var(--muted); }

/* =========================================================
   Liên hệ
   ========================================================= */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0;
}
.contact-card__ic {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #2a78ff, var(--blue-600));
}
.contact-card__ic--red { background: linear-gradient(180deg, #ff3b3b, var(--red-600)); }
.contact-card h2 { font-size: 13px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card__big { font-size: 17px; font-weight: 800; color: var(--navy-900); white-space: nowrap; }
.contact-card p { font-size: 12.5px; color: var(--muted); }
.contact-card__addr { color: var(--text) !important; font-weight: 600; font-size: 13px !important; }
.contact-card__link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-600); font-weight: 700; font-size: 13px; }
.contact-card__link .i { width: 14px; height: 14px; }
.contact-card .social { flex-wrap: wrap; justify-content: center; gap: 6px; }
.contact-card .social a { width: 34px; height: 34px; }
.contact-card .social__zl { border: 1px solid var(--line); }

.contact { display: grid; gap: 16px; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; }
.contact__form .section__title { margin-bottom: 4px; }
.contact__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.contact__form .lead { grid-template-columns: 1fr; }
.lead textarea {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400;
  background: #f9fbff; outline: none; resize: vertical;
}
.lead textarea:focus { border-color: var(--blue); background: #fff; }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; background: #e8eef7; }
.contact__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 700; color: var(--navy-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; transform: rotate(90deg); }
.faq__item[open] summary .i { transform: rotate(-90deg); }
.faq__item p { padding: 0 16px 14px; color: #33405f; font-size: 14.5px; }

@media (min-width: 640px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .contact__form .lead { grid-template-columns: 1fr 1fr; }
  .lead__full { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .about { grid-template-columns: 1.6fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
  .contact__form { padding: 28px; }
  .contact__map, .contact__map iframe { min-height: 100%; }
}

/* =========================================================
   Bộ lọc dropdown + phân trang
   ========================================================= */
.filters { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.filters__label { display: flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: 14px; color: var(--navy); }
.filters__label .i { width: 18px; height: 18px; }
.filters__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px 0; }
.filters__list::-webkit-scrollbar { display: none; }
.filter { flex: none; }
.filter select, .toolbar__sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  height: 38px; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6785' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
}
.filter select:hover, .toolbar__sort select:hover { border-color: var(--blue); }
.filter select.is-set { border-color: var(--blue-600); background-color: var(--blue-50); color: var(--blue-600); }
.filters__reset, .no-result button { flex: none; font-size: 13px; font-weight: 700; color: var(--red); text-decoration: underline; }
.no-result { background: #fff; border: 1px dashed #b9c3d6; border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.pager__info { font-size: 13px; color: var(--muted); }
.pager__nav { display: flex; gap: 6px; }
.pager__nav button {
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; color: var(--navy); display: grid; place-items: center;
}
.pager__nav button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager__nav button.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pager__nav button:disabled { opacity: .4; cursor: default; }
.pager__nav .i { width: 16px; height: 16px; }
.pager__nav button:first-child .i { transform: rotate(180deg); }

/* =========================================================
   Banner trả góp
   ========================================================= */
.installment {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: linear-gradient(100deg, var(--navy-900) 0%, #0b3c9c 55%, #164fb8 100%);
  display: grid; grid-template-columns: 1fr; padding: 18px 16px 16px; gap: 12px; min-height: 160px;
}
.installment::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  background: linear-gradient(135deg, #ff3b3b, var(--red-600));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.installment__body { position: relative; z-index: 2; max-width: 60%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.installment__kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #cfe0ff; }
.installment__title { font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.05; }
.installment__title span { display: block; font-size: 15px; color: var(--yellow); margin-top: 2px; }
.installment .btn { height: 38px; padding: 0 16px; font-size: 12.5px; text-transform: none; }
.installment__img { position: absolute; z-index: 1; right: 2%; top: 8px; width: 52%; filter: drop-shadow(0 12px 12px rgba(0,0,0,.4)); }
.installment__list { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 600; }
.installment__list li { display: flex; align-items: center; gap: 5px; }
.installment__list .i { width: 18px; height: 18px; color: #fff; background: #16a34a; border-radius: 50%; padding: 2px; stroke-width: 3; }

@media (min-width: 640px) {
  .installment { grid-template-columns: 1fr 1.1fr 220px; align-items: center; padding: 24px 28px; min-height: 0; }
  .installment::after { width: 30%; }
  .installment__body { max-width: none; }
  .installment__title { font-size: 38px; }
  .installment__title span { font-size: 18px; }
  .installment__img { position: relative; right: auto; top: auto; width: 100%; max-width: 320px; justify-self: center; }
  .installment__list { flex-direction: column; font-size: 14.5px; }
}

@media (min-width: 1024px) {
  .installment { padding: 28px 48px; grid-template-columns: 1fr 1.2fr 240px; }
  .installment__title { font-size: 46px; }
}

/* =========================================================
   Tin tức
   ========================================================= */
.chips--tags { margin-bottom: 16px; }
.chips--tags .chip { cursor: pointer; }
.posts { display: grid; gap: 14px; }
.post[hidden] { display: none; }
.post__excerpt { font-size: 13.5px; color: var(--muted); padding: 0 12px 8px; line-height: 1.55; }

.article-wrap { display: grid; gap: 20px; margin-top: 12px; }
.article { min-width: 0; }
.article__head { margin-bottom: 14px; }
.article__tag {
  display: inline-block; background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.article__title { font-size: 24px; font-weight: 800; line-height: 1.3; color: var(--navy-900); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.article__meta .i { width: 15px; height: 15px; }
.article__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.article__cover img { width: 80%; height: 100%; object-fit: contain; }
.article__lead { font-size: 16px; font-weight: 600; color: #2b3756; line-height: 1.6; margin: 16px 0; }

.toc { background: var(--blue-50); border-left: 4px solid var(--blue-600); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.toc__title { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.toc a { color: var(--blue-600); }
.toc a:hover { text-decoration: underline; }
.article__body h2 { scroll-margin-top: 90px; margin-top: 22px; }
.article__body h2:first-child { margin-top: 0; }
.article__body ul + h2, .article__body p + h3 { margin-top: 18px; }

.article__share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.article__share > a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.article__share .i { width: 18px; height: 18px; }
.article__copy, .article__native {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--navy);
}
.article__copy:hover, .article__native:hover { border-color: var(--blue); color: var(--blue); }
.article__copy .i, .article__native .i { width: 16px; height: 16px; }

.article__cta {
  display: grid; gap: 12px; margin-top: 20px; padding: 18px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(110deg, var(--navy-900), var(--blue-600));
}
.article__cta-title { font-size: 18px; font-weight: 800; }
.article__cta p:not(.article__cta-title) { font-size: 13.5px; color: #dbe6ff; }
.article__cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.article__cta .btn { text-transform: none; }

.article__side { display: grid; gap: 16px; align-content: start; }
.mini-posts { display: grid; gap: 12px; margin-top: 12px; }
.mini-posts a { display: flex; gap: 10px; align-items: flex-start; }
.mini-posts a:hover b { color: var(--blue); }
.mini-post__img { flex: none; width: 76px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.mini-post__img img { width: 90%; }
.mini-posts span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-posts b { font-size: 13px; line-height: 1.4; color: var(--navy-900); }
.mini-posts time { font-size: 12px; color: var(--muted); }

@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .post--featured { grid-column: 1 / -1; }
  [data-posts].is-filtered .post--featured { grid-column: auto; }
  .article__title { font-size: 30px; }
  .article__cta { grid-template-columns: 1fr auto; align-items: center; padding: 22px 26px; }
}

@media (min-width: 1024px) {
  .posts { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .post--featured { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto 1fr; }
  .post--featured .post__img { grid-row: 1 / 4; aspect-ratio: auto; min-height: 280px; }
  .post--featured .post__title { font-size: 22px; padding: 24px 24px 8px; }
  .post--featured .post__excerpt { font-size: 15px; padding: 0 24px 12px; }
  .post--featured .post__meta { padding: 0 24px 24px; align-self: end; }
  [data-posts].is-filtered .post--featured { display: flex; }
  [data-posts].is-filtered .post--featured .post__img { min-height: 0; aspect-ratio: 16 / 9; }
  [data-posts].is-filtered .post--featured .post__title { font-size: 16px; padding: 12px 12px 6px; }
  [data-posts].is-filtered .post--featured .post__excerpt { font-size: 13.5px; padding: 0 12px 8px; }
  [data-posts].is-filtered .post--featured .post__meta { padding: 0 12px 12px; }
  .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 18px; }
  .article__side { position: sticky; top: 104px; }
  .article__title { font-size: 34px; }
}

/* =========================================================
   Giỏ hàng + đặt hàng
   ========================================================= */
.cart__count[hidden] { display: none; }
.product__btns .btn .i { width: 15px; height: 15px; margin-right: 2px; }
@media (max-width: 639px) { .sm-hide { display: none; } }

.tabbar__cart { position: relative; display: inline-flex; }
.tabbar__cart .cart__count { top: -6px; right: -10px; }

.qty { display: inline-flex; align-items: stretch; height: 44px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 38px; font-size: 20px; font-weight: 600; color: var(--navy); }
.qty button:hover { background: var(--blue-50); color: var(--blue-600); }
.qty input {
  width: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; outline: none;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.buy .btn { height: 44px; padding: 0 10px; text-transform: none; }

.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(var(--quickbar-h) + var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: .22s;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; white-space: nowrap;
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .i { width: 20px; height: 20px; color: #4ade80; }
.toast a { color: var(--yellow); text-decoration: underline; margin-left: 4px; }

main > .container.cart-page { margin-top: 12px; }
.cart-page__title { font-size: 24px; font-weight: 800; text-transform: uppercase; color: var(--navy-900); margin-bottom: 14px; }
.cart-empty, .order-done {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 20px; text-align: center; display: grid; justify-items: center; gap: 12px;
}
.cart-empty > .i { width: 56px; height: 56px; color: var(--blue-600); }
.order-done > .i { width: 64px; height: 64px; color: #16a34a; }
.order-done h2 { font-size: 22px; font-weight: 800; color: var(--navy-900); }
.order-done b { color: var(--navy-900); }
.order-done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.order-done__btns .btn { text-transform: none; }
.order-done__hint { font-size: 13.5px; color: var(--red); font-weight: 600; max-width: 460px; }

.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cart-main { display: grid; gap: 16px; min-width: 0; }
.cart-box, .cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.cart-box__title { font-size: 16px; font-weight: 800; color: var(--navy-900); text-transform: uppercase; margin-bottom: 12px; }
.cart-box__title:not(:first-child) { margin-top: 18px; }

.cart-list { display: grid; }
.cart-item {
  position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 6px 12px;
  padding: 12px 28px 12px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border: 0; }
.cart-item__img { grid-row: 1 / 3; border-radius: 10px; background: linear-gradient(180deg, #f6f9ff, #e8eff9); display: grid; place-items: center; aspect-ratio: 4 / 3; }
.cart-item__img img { width: 92%; }
.cart-item__name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.cart-item__name:hover { color: var(--blue); }
.cart-item__spec { font-size: 12.5px; color: var(--muted); }
.cart-item__price { font-size: 13px; color: var(--muted); }
.cart-item > * { min-width: 0; }
.cart-item__qty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.cart-item__qty .qty { height: 36px; }
.cart-item__qty .qty button { width: 32px; }
.cart-item__qty .qty input { width: 38px; }
.cart-item__line { color: var(--red); font-size: 15px; }
.cart-item__remove { position: absolute; top: 10px; right: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.cart-item__remove:hover { background: #fff0f0; color: var(--red); }
.cart-item__remove .i { width: 16px; height: 16px; }

.order__fields { display: grid; gap: 12px; }
.order label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.order input[type="text"], .order input[type="tel"], .order textarea {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-weight: 400; background: #f9fbff; outline: none;
}
.order textarea { height: auto; padding: 10px 14px; resize: vertical; }
.order input:focus, .order textarea:focus { border-color: var(--blue); background: #fff; }
.pays { display: grid; gap: 8px; }
.pay {
  display: flex !important; align-items: flex-start; gap: 10px !important; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.pay:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.pay input { margin-top: 3px; accent-color: var(--blue-600); width: 18px; height: 18px; flex: none; }
.pay span { display: flex; flex-direction: column; }
.pay b { font-size: 14px; color: var(--navy-900); }
.pay small { font-size: 12.5px; color: var(--muted); font-weight: 400; }

.cart-summary dl { margin: 0 0 12px; display: grid; gap: 10px; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; text-align: right; }
.cart-summary__total { border-top: 1px dashed var(--line); padding-top: 10px; }
.cart-summary__total dt { color: var(--text); font-weight: 700; }
.cart-summary__total dd { color: var(--red); font-size: 17px; font-weight: 800; }
.cart-summary .lead__err { margin-bottom: 10px; }
.cart-summary .btn--lg { height: 52px; font-size: 17px; }
.cart-summary__note { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.cart-summary__note .i { width: 18px; height: 18px; color: #16a34a; }

@media (min-width: 640px) {
  .order__fields { grid-template-columns: 1fr 1fr; }
  .order__full { grid-column: 1 / -1; }
  .pays { grid-template-columns: repeat(3, 1fr); }
  .cart-item { grid-template-columns: 110px 1fr auto; align-items: center; padding-right: 40px; }
  .cart-item__img { grid-row: auto; }
  .cart-item__qty { flex-direction: column; align-items: flex-end; }
  .cart-item__remove { top: 50%; transform: translateY(-50%); }
}

@media (min-width: 1024px) {
  .toast { bottom: 28px; }
  .cart-page__title { font-size: 30px; }
  .cart-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .cart-box, .cart-summary { padding: 22px; }
  .cart-summary { position: sticky; top: 104px; }
  .buy { grid-template-columns: auto 1fr 1fr; }
}

/* =========================================================
   Trang chủ (bản 2)
   ========================================================= */
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.btn--glass:hover { background: rgba(255,255,255,.2); }
.btn--hero { height: 50px; padding: 0 22px; font-size: 14.5px; text-transform: none; }

/* Hero */
.h-hero {
  position: relative; overflow: hidden; color: #fff; padding: 28px 0 64px;
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(76, 134, 255, .45) 0%, rgba(76, 134, 255, 0) 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 200, 61, .14) 0%, rgba(255, 200, 61, 0) 60%),
    linear-gradient(160deg, #061a47 0%, #0a2f80 55%, #0b46b8 100%);
}
.h-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.04)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 46px, transparent 46px 96px) bottom 22px left 0 / 100% 3px no-repeat;
  pointer-events: none;
}
.h-hero__inner { position: relative; display: grid; gap: 22px; align-items: center; }
.h-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; color: #dbe6ff;
}
.h-hero__eyebrow .i { width: 15px; height: 15px; color: var(--yellow); }
.h-hero__title { font-size: clamp(32px, 8.6vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 12px; }
.h-hero__title span { display: block; color: var(--yellow); }
.h-hero__lead { font-size: 15.5px; line-height: 1.65; color: #dbe6ff; max-width: 560px; }
.h-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.h-hero__facts { display: flex; gap: 22px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.h-hero__facts li { display: flex; flex-direction: column; }
.h-hero__facts b { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.h-hero__facts span { font-size: 12.5px; color: #b9c8ee; }
.h-hero__visual { position: relative; }
.h-hero__visual > img { width: 100%; max-width: 620px; margin: 0 auto; filter: drop-shadow(0 24px 28px rgba(0,0,0,.4)); }
.h-hero__card {
  position: absolute; left: 0; bottom: -18px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; max-width: 240px;
  background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 14px 30px rgba(6,26,71,.35);
}
.h-hero__card:hover { transform: translateY(-2px); }
.h-hero__card span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.h-hero__card b { font-size: 15px; font-weight: 800; color: var(--navy-900); }
.h-hero__card small { font-size: 12px; color: var(--muted); }
.h-hero__card i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--blue-600); margin-top: 4px; }
.h-hero__card .i { width: 14px; height: 14px; }
.h-hero--banner { padding: 0 0 56px; }
.h-hero__banner { display: block; }
.h-hero__banner img { width: 100%; height: auto; }
.h-hero__strip { padding-top: 22px; }
.h-hero__strip .h-hero__title { font-size: clamp(26px, 6vw, 40px); margin-top: 0; }
.h-hero__strip .h-hero__title span { display: inline; }

/* Cam kết */
.h-trust { position: relative; z-index: 2; margin-top: -40px !important; }
.h-trust ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.h-trust li { display: flex; align-items: center; gap: 10px; padding: 14px 12px; background: #fff; }
.h-trust__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.h-trust p { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.h-trust b { font-size: 13.5px; color: var(--navy-900); }
.h-trust p span { font-size: 12px; color: var(--muted); }

/* Tiêu đề khối */
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.h-head__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.h-head__kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h-head__title { font-size: clamp(21px, 5vw, 30px); font-weight: 800; line-height: 1.25; color: var(--navy-900); margin-top: 4px; letter-spacing: -.01em; }
.h-head--center { justify-content: center; text-align: center; }
.h-head--center .h-head__kicker { justify-content: center; }
.h-head--light .h-head__title { color: #fff; }
.h-head--light .h-head__kicker { color: var(--yellow); }
.h-head .section__more { flex: none; }

/* Danh mục */
.h-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h-cat {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.h-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d6ef; }
.h-cat__img { display: grid; place-items: center; aspect-ratio: 5 / 3; border-radius: 10px; background: linear-gradient(180deg, #f6f9ff, #e8eff9); overflow: hidden; }
.h-cat__img img { width: 92%; height: 92%; object-fit: contain; }
.h-cat__img img[src^="/uploads/"] { width: 100%; height: 100%; object-fit: cover; }
.h-cat__body { display: flex; flex-direction: column; padding-right: 18px; }
.h-cat__body b { font-size: 13.5px; font-weight: 700; color: var(--navy-900); line-height: 1.3; }
.h-cat__body small { font-size: 12px; color: var(--muted); }
.h-cat > .i { position: absolute; right: 10px; bottom: 14px; width: 16px; height: 16px; color: var(--muted); }

/* Vì sao chọn */
.h-why { margin-top: 36px; padding: 36px 0 40px; color: #fff; background: linear-gradient(160deg, #061a47, #0a2f80); }
.h-why__grid { display: grid; gap: 20px; }
.h-why__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.h-why__stats p { padding: 14px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.h-why__stats b { display: block; font-size: 30px; font-weight: 800; color: var(--yellow); line-height: 1.1; }
.h-why__stats span { font-size: 12px; color: #c7d4f5; line-height: 1.35; display: block; margin-top: 4px; }
.h-why__list { display: grid; gap: 10px; }
.h-why__list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.h-why__list li > span { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 200, 61, .14); color: var(--yellow); }
.h-why__list h3 { font-size: 15px; font-weight: 700; }
.h-why__list p { font-size: 13px; color: #c7d4f5; line-height: 1.5; }

/* Quy trình */
.h-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.h-steps li { counter-increment: step; position: relative; padding: 18px 16px 16px 66px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.h-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 14px; top: 16px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--blue-600); color: #fff; font-weight: 800; font-size: 14px;
}
.h-steps b { font-size: 15px; color: var(--navy-900); }
.h-steps p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.h-steps a { color: var(--red); font-weight: 700; }

/* Về nhà máy */
.h-about { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; overflow: hidden; }
.h-about__body > p:not(.h-head__kicker) { font-size: 14.5px; line-height: 1.7; color: #33405f; margin-top: 10px; }
.h-about__points { display: grid; gap: 8px; margin-top: 14px; }
.h-about__points li { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.h-about__points .i { width: 20px; height: 20px; color: #16a34a; flex: none; }
.h-about__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.h-about__cta .btn { text-transform: none; }
.h-about__art { position: relative; min-height: 180px; border-radius: 14px; background: linear-gradient(180deg, #8fb8ee, #d5e5f8); overflow: hidden; width: auto; height: auto; }
.h-about__art .factory__building { width: 92%; height: 78%; right: 4%; }

/* FAQ */
.h-faq { display: grid; gap: 18px; }
.h-faq__intro > p:not(.h-head__kicker) { color: var(--muted); margin: 8px 0 14px; }
.h-faq__intro .btn { text-transform: none; }

/* Nội dung SEO (thu gọn khi có JS) */
.h-seo { position: relative; }
.h-seo h2 { font-size: 20px; }
.h-seo.is-collapsed { max-height: 260px; overflow: hidden; }
.h-seo.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(255,255,255,0), #fff 75%); }
.h-seo__more {
  position: relative; z-index: 1; display: flex; margin: -26px auto 0; height: 40px; padding: 0 20px; align-items: center; gap: 6px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; color: var(--blue-600);
}

/* Tìm kiếm */
.search-page__form { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 14px; max-width: 640px; }
.search-page__form input { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 12px; padding: 0 16px; font: inherit; font-size: 15px; outline: none; }
.search-page__form .btn { height: 50px; text-transform: none; }
.search-page { margin-top: 18px !important; }
.search-page__info { color: var(--muted); margin-bottom: 14px; }
.search-group + .search-group { margin-top: 24px; }
.search-group h2 { font-size: 17px; font-weight: 800; color: var(--navy-900); margin-bottom: 10px; }
.search-list { display: grid; gap: 8px; }
.search-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.search-item:hover { border-color: var(--blue); }
.search-item img { width: 84px; height: 56px; object-fit: contain; flex: none; border-radius: 8px; background: #f3f7fd; }
.search-item div { min-width: 0; display: flex; flex-direction: column; }
.search-item b { color: var(--navy-900); font-size: 14.5px; }
.search-item span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-item em { font-style: normal; font-weight: 800; color: var(--red); font-size: 13px; }
.search-item mark { background: #fff3b0; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-page__empty { background: #fff; border: 1px dashed #b9c3d6; border-radius: 14px; padding: 18px; display: grid; gap: 12px; }
.search-page__empty a { color: var(--blue-600); font-weight: 700; }

@media (min-width: 640px) {
  .h-hero { padding: 44px 0 80px; }
  .h-trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-trust li { padding: 18px 16px; }
  .h-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .h-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-about { padding: 28px; }
}

@media (min-width: 1024px) {
  .h-hero { padding: 56px 0 96px; }
  .h-hero__inner { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .h-hero__lead { font-size: 17px; }
  .h-hero__card { left: 6%; bottom: -6px; }
  .h-hero--banner { padding-bottom: 72px; }
  .h-hero__strip { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: center; }
  .h-hero__strip .h-hero__lead { grid-column: 1; }
  .h-hero__strip .h-hero__cta { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .h-trust { margin-top: -52px !important; }
  .h-trust b { font-size: 15px; }
  .h-trust__ic { width: 48px; height: 48px; }
  .h-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .h-cat__body b { font-size: 15px; }
  .h-why { margin-top: 56px; padding: 56px 0 60px; }
  .h-why__grid { grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
  .h-why__stats { grid-template-columns: 1fr; gap: 14px; }
  .h-why__stats p { padding: 20px; }
  .h-why__stats b { font-size: 40px; }
  .h-why__stats span { font-size: 13.5px; }
  .h-why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .h-why__list li { grid-template-columns: 1fr; row-gap: 8px; padding: 20px; }
  .h-why__list li > span { grid-row: auto; }
  .h-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .h-steps li { padding: 70px 20px 20px; }
  .h-steps li::before { top: 20px; left: 20px; }
  .h-steps li:not(:last-child)::after { content: ""; position: absolute; top: 39px; left: 68px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, #c9d6ef 0 6px, transparent 6px 12px); }
  .h-about { grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 36px; }
  .h-about__art { min-height: 300px; }
  .h-faq { grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
  .h-faq__intro { position: sticky; top: 110px; }
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(227, 38, 46, .5); }
  70% { box-shadow: 0 0 0 16px rgba(227, 38, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 38, 46, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Ảnh thật tải lên từ CRM: phủ kín khung (hình minh hoạ SVG vẫn giữ kiểu thu nhỏ vừa khung) */
.post__img img[src^="/uploads/"], .article__cover img[src^="/uploads/"], .mini-post__img img[src^="/uploads/"] {
  width: 100%; height: 100%; object-fit: cover; padding: 0;
}
.article__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0; }
.article__body blockquote { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--blue-600); background: var(--blue-50); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Header máy tính 1024–1199px: gọn lại để menu không xuống dòng */
.nav__link { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .header__bar { gap: 12px; }
  .nav { margin-left: 0; gap: 0; }
  .nav__link { padding: 0 10px; font-size: 14px; }
  .brand__slogan { display: none; }
  .hotline { padding: 0 14px 0 12px; }
  .hotline b { font-size: 15px; }
}
.h-hero__title { text-wrap: balance; }
.product__btns { grid-template-columns: auto minmax(0, 1fr); }
.product__btns .btn--soft { padding: 0 12px; }
@media (min-width: 640px) {
  .cta__body { max-width: 46%; }
  .cta__title { font-size: clamp(26px, 3.2vw, 44px); }
  .cta__img { right: 25%; width: 34%; }
}

/* =========================================================
   GIAO DIỆN KIỂU SÀN TMĐT (nền trắng)
   ========================================================= */
:root { --bg: #f2f4f8; --line: #e6e9f0; --brand: #0b5be0; --brand-dark: #0841a8; }
body { background: var(--bg); }

/* Thanh thông tin trên cùng */
.sh-top { background: var(--brand-dark); color: #dbe6ff; font-size: 12.5px; }
.sh-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.sh-top__msg { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sh-top__msg .i { width: 15px; height: 15px; color: var(--yellow); flex: none; }
.sh-top__links { display: none; gap: 18px; }
.sh-top__links a:hover { color: #fff; text-decoration: underline; }

/* Header xanh thương hiệu + ô tìm kiếm trắng */
.header.sh { background: var(--brand); box-shadow: none; backdrop-filter: none; }
.header.sh.is-scrolled { box-shadow: 0 4px 16px rgba(8, 40, 110, .25); }
.sh__main {
  display: grid; align-items: center; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px;
  grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand act" "search search search";
}
.sh .header__menu { grid-area: menu; color: #fff; margin-left: -6px; }
.sh .header__menu:hover { background: rgba(255, 255, 255, .12); }
.sh .brand { grid-area: brand; }
.sh .brand__logo { width: 50px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.sh .brand__name { color: #fff; font-size: 21px; }
.sh .brand__sub { color: #dbe6ff; font-size: 11px; }
.sh .brand__slogan { display: none; }
.sh-search { grid-area: search; display: flex; height: 42px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(8, 40, 110, .2); }
.sh-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 14px; font: inherit; font-size: 14px; color: var(--text); background: transparent; }
.sh-search button {
  display: flex; align-items: center; gap: 6px; padding: 0 16px; margin: 4px; border-radius: 8px;
  background: var(--yellow); color: var(--navy-900); font-weight: 700; font-size: 14px;
}
.sh-search button:hover { background: #ffd666; }
.sh-search button .i { width: 18px; height: 18px; }
.sh-search button span { display: none; }
.sh__actions { grid-area: act; display: flex; align-items: center; gap: 6px; }
.sh-act { display: flex; align-items: center; gap: 8px; color: #fff; padding: 6px 8px; border-radius: 10px; }
.sh-act:hover { background: rgba(255, 255, 255, .12); }
.sh-act .i { width: 26px; height: 26px; }
.sh-act span { display: flex; flex-direction: column; line-height: 1.15; }
.sh-act small { font-size: 11.5px; color: #dbe6ff; }
.sh-act b { font-size: 15px; }
.sh-act--hotline { display: none; }
.sh-act__ic { position: relative; }
.sh-act__ic .cart__count { top: -6px; right: -9px; border-color: var(--brand); }
.sh-act__label { display: none !important; font-weight: 600; font-size: 14px; }
.header.sh .cart { display: flex !important; }

/* Thanh menu dưới header */
.sh-nav { display: none; background: #fff; border-bottom: 1px solid var(--line); }
.sh-nav__in { display: flex; align-items: center; gap: 4px; height: 48px; }
.sh-cats { position: relative; height: 100%; display: flex; align-items: center; margin-right: 10px; }
.sh-cats__btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px;
  background: var(--blue-50); color: var(--blue-600); font-weight: 700; font-size: 14px; white-space: nowrap;
}
.sh-cats__btn .i { width: 18px; height: 18px; }
.sh-cats__menu {
  position: absolute; top: 100%; left: 0; z-index: 30; width: 300px; padding: 6px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.sh-cats:hover .sh-cats__menu, .sh-cats:focus-within .sh-cats__menu { opacity: 1; visibility: visible; transform: none; }
.sh-cats__menu a { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text); }
.sh-cats__menu a:hover { background: var(--blue-50); color: var(--blue-600); }
.sh-cats__menu .i { width: 14px; height: 14px; color: var(--muted); }
.sh-nav__link { display: flex; align-items: center; height: 48px; padding: 0 14px; font-weight: 600; font-size: 14.5px; color: var(--navy); border-bottom: 2px solid transparent; white-space: nowrap; }
.sh-nav__link:hover, .sh-nav__link.is-active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.sh-nav__promo { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--red); white-space: nowrap; }
.sh-nav__promo .i { width: 18px; height: 18px; }

/* ---------- Đầu trang chủ ---------- */
main > .container.sh-hero { margin-top: 14px; }
.sh-hero { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.sh-hero__cats { display: none; }
.sh-hero__main {
  position: relative; overflow: hidden; border-radius: 14px; min-height: 230px; color: #fff;
  display: grid; align-items: center; padding: 22px 18px;
  background:
    radial-gradient(60% 90% at 90% 20%, rgba(255, 200, 61, .25), transparent 60%),
    linear-gradient(120deg, #0841a8 0%, #0b5be0 55%, #2a78ff 100%);
}
.sh-hero__main::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 40px, transparent 40px 84px) bottom 18px left 0 / 100% 3px no-repeat;
}
.sh-hero__main--img { padding: 0; min-height: 0; background: #0841a8; }
.sh-hero__main--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero__text { position: relative; z-index: 2; max-width: 62%; }
.sh-hero__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; }
.sh-hero__title { font-size: clamp(24px, 6.4vw, 38px); font-weight: 800; line-height: 1.12; margin: 10px 0 8px; letter-spacing: -.01em; text-wrap: balance; }
.sh-hero__title span { color: var(--yellow); }
.sh-hero__lead { font-size: 13.5px; color: #dbe6ff; line-height: 1.55; }
.sh-hero__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.sh-hero__price small { font-size: 13px; color: #dbe6ff; }
.sh-hero__price b { font-size: 24px; font-weight: 800; color: var(--yellow); }
.sh-hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sh-hero__cta .btn { height: 42px; padding: 0 16px; text-transform: none; }
.sh-hero__cta .btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.sh-hero__img { position: absolute; z-index: 1; right: -6%; bottom: 14px; width: 58%; max-width: 460px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .35)); }
.sh-hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sh-promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; text-align: left;
  min-height: 120px; padding: 14px; border-radius: 14px; color: #fff; font: inherit;
}
.sh-promo b { font-size: 15px; font-weight: 800; line-height: 1.25; position: relative; z-index: 1; }
.sh-promo small { font-size: 12px; opacity: .9; line-height: 1.4; position: relative; z-index: 1; max-width: 80%; }
.sh-promo img { position: absolute; right: -14%; bottom: -6%; width: 62%; opacity: .95; }
.sh-promo__tag { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--yellow); color: var(--navy-900); font-size: 11px; font-weight: 800; margin-bottom: 4px; position: relative; z-index: 1; }
.sh-promo__go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--yellow); }
.sh-promo__go .i { width: 14px; height: 14px; }
.sh-promo--blue { background: linear-gradient(135deg, #0a2f80, #164fb8); }
.sh-promo--red { background: linear-gradient(135deg, #c51b23, #ff4b4b); cursor: pointer; }
.sh-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }

/* Cam kết: dải trắng dưới banner */
.sh-trust { margin-top: 12px !important; }
.sh-trust ul { box-shadow: none; border: 1px solid var(--line); }

/* ---------- Panel trắng kiểu sàn ---------- */
.sh-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
main > .sh-panel.container { width: calc(100% - 32px); max-width: calc(var(--container) - 32px); }
.sh-panel .h-head { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.sh-panel .h-head__kicker { display: none; }
.sh-panel .h-head__title, .sh-panel__title { font-size: clamp(18px, 4.6vw, 22px); font-weight: 800; color: var(--navy-900); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.sh-panel--hot .h-head__title { color: var(--red); }
.sh-panel--hot .h-head__title::before { content: "🔥 "; }
.sh-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.sh-panel .h-steps li, .sh-panel .h-cat, .sh-panel .review { background: #fafbfd; }

/* Tab dòng xe */
.sh-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tab { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.sh-tab:hover { border-color: var(--blue); color: var(--blue); }
.sh-tab.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* Danh mục: ô gọn */
.sh-panel .h-cats { gap: 10px; }
.sh-panel .h-cat { padding: 10px; border-color: var(--line); }
.sh-panel .h-cat:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(11, 91, 224, .12); transform: translateY(-2px); }

/* ---------- Thẻ sản phẩm kiểu sàn ---------- */
.product { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; padding: 10px; }
.product:hover { border-color: #b8cdf4; box-shadow: 0 10px 26px rgba(11, 91, 224, .14); transform: translateY(-3px); }
.product__img img { background: #fff; margin: 14px 0 6px; }
.product__name { font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__price { align-items: center; gap: 2px 6px; }
.product__price b { font-size: 17px; }
.product__price s { font-size: 12.5px; color: #8a94ad; }
.product__off { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--red); background: #ffe8ea; padding: 1px 6px; border-radius: 6px; }
.badge { top: 8px; left: 8px; border-radius: 6px; font-size: 11px; }
.products { gap: 10px; }

/* Các khối khác trên trang chủ: giảm độ "nặng" cho hợp nền trắng */
.h-why { background: #fff; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-why .h-head--light .h-head__title { color: var(--navy-900); }
.h-why .h-head--light .h-head__kicker { color: var(--red); }
.h-why__stats p { background: var(--blue-50); border-color: transparent; }
.h-why__stats b { color: var(--blue-600); }
.h-why__stats span, .h-why__list p { color: var(--muted); }
.h-why__list li { background: #fafbfd; border-color: var(--line); }
.h-why__list li > span { background: var(--blue-50); color: var(--blue-600); }
.h-why__list h3 { color: var(--navy-900); }

/* ---------- Máy tính bảng ---------- */
@media (min-width: 640px) {
  .sh-hero__main { min-height: 280px; padding: 28px; }
  .sh-hero__lead { font-size: 15px; }
  .sh-search button span { display: inline; }
  .sh-panel { padding: 18px 20px; }
  .products.sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Máy tính ---------- */
@media (min-width: 1024px) {
  .sh-top__links { display: flex; }
  .sh__main { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search act"; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
  .sh .header__menu { display: none; }
  .sh .brand__logo { width: 62px; }
  .sh .brand__name { font-size: 25px; }
  .sh-search { height: 46px; max-width: 640px; width: 100%; justify-self: center; }
  .sh-act--hotline { display: flex; }
  .sh-act__label { display: flex !important; }
  .sh-nav { display: block; }
  .sh-hero { grid-template-columns: 250px minmax(0, 1fr); align-items: stretch; }
  .sh-hero__cats { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; overflow: hidden; }
  .sh-hero__cats-title { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 800; font-size: 14px; color: var(--navy-900); text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .sh-hero__cats-title .i { width: 18px; height: 18px; color: var(--blue-600); }
  .sh-hero__cats a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; color: var(--text); }
  .sh-hero__cats a:hover { background: var(--blue-50); color: var(--blue-600); }
  .sh-hero__cats .i { width: 14px; height: 14px; color: var(--muted); }
  .sh-hero__main { min-height: 380px; padding: 36px 40px; }
  .sh-hero__title { font-size: 40px; }
  .sh-hero__img { right: 2%; width: 52%; bottom: 30px; }
  .sh-hero__side { grid-column: 2; }
  .products.sh-grid, .sh-panel .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .sh-panel { padding: 20px 24px; }
  .sh-panel .h-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .h-cat__body b { font-size: 13.5px; }
}
@media (min-width: 1200px) {
  .sh-hero { grid-template-columns: 250px minmax(0, 1fr) 280px; }
  .sh-hero__side { grid-column: auto; grid-template-columns: 1fr; }
  .sh-promo { min-height: 0; }
}
.sh-hero__price small { white-space: nowrap; }
@media (max-width: 639px) {
  .sh-panel .h-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sh-panel .h-cat { padding: 6px; gap: 6px; text-align: center; }
  .sh-panel .h-cat__body { padding-right: 0; }
  .sh-panel .h-cat__body b { font-size: 12px; }
  .sh-panel .h-cat__body small { font-size: 11px; }
  .sh-panel .h-cat > .i { display: none; }
  .sh-panel { padding: 12px; }
}
/* Điện thoại: nút giỏ hàng trên thẻ chỉ hiện biểu tượng */
@media (max-width: 479px) {
  .product__btns:has([data-add]) { grid-template-columns: minmax(0, 1fr) 44px; }
  .product__btns [data-add] .btn-txt { display: none; }
  .product__btns [data-add] .i { width: 20px; height: 20px; margin: 0; }
}

/* Đầu trang chủ khi có banner ảnh: giữ nguyên tỉ lệ 2000x741, không cắt chữ trong ảnh */
.sh-hero__stack { display: grid; gap: 12px; min-width: 0; align-content: start; }
.sh-hero__main--img { display: block; padding: 0; min-height: 0; aspect-ratio: 2000 / 741; background: #0841a8; }
.sh-hero__main--img::after { display: none; }
.sh-hero__main--img a, .sh-hero__main--img img { display: block; width: 100%; height: 100%; }
.sh-hero__main--img img { object-fit: contain; transition: transform .4s; }
.sh-hero__main--img a:hover img { transform: scale(1.015); }
.sh-hero--banner .sh-hero__side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: auto; }
.sh-hero--banner .sh-promo { min-height: 110px; }
@media (min-width: 1024px) {
  .sh-hero--banner { grid-template-columns: 250px minmax(0, 1fr); }
  .sh-hero--banner .sh-promo { min-height: 120px; }
  .sh-hero--banner .sh-promo img { width: 42%; right: -4%; bottom: -10%; }
}
/* Banner "Hơn 10 năm" */
.years-banner { border-radius: 14px; box-shadow: none; border: 1px solid var(--line); }
.years-banner img { display: block; height: auto; }

/* Ảnh chụp thật (thư mục products/ hoặc ảnh tải lên từ CRM): phủ kín khung thay vì thu nhỏ như hình minh hoạ */
.product__img img[src*="/img/products/"], .product__img img[src^="/uploads/"] {
  aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin: 0 0 8px; border-radius: 8px; background: #eef2f8;
}
.product__img { display: block; overflow: hidden; border-radius: 8px; }
.product:hover .product__img img[src*="/img/products/"], .product:hover .product__img img[src^="/uploads/"] { transform: scale(1.04); }
.product__img img { transition: transform .35s ease; }
.pd__main:has(img[src*="/img/products/"]), .pd__main:has(img[src^="/uploads/"]) { padding: 0; overflow: hidden; aspect-ratio: 3 / 2; }
.pd__main img[src*="/img/products/"], .pd__main img[src^="/uploads/"] { object-fit: cover; }
.pd__thumbs img[src*="/img/products/"], .pd__thumbs img[src^="/uploads/"] { object-fit: cover; }
.h-cat__img img[src*="/img/products/"], .cart-item__img img[src*="/img/products/"],
.mini-post__img img[src*="/img/products/"] { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img { overflow: hidden; }
/* Mọi ảnh thẻ cùng khung 3:2 để các thẻ thẳng hàng (hình minh hoạ vẫn thu nhỏ vừa khung) */
.product__img img { aspect-ratio: 3 / 2; width: 100%; object-fit: contain; margin: 0 0 8px; border-radius: 8px; background: #f3f6fb; }

/* Chống tràn ngang trên mobile: chữ sr-only trong thanh cuộn ngang, tên dài trong kết quả tìm kiếm */
.chips, .filters__list { position: relative; }
.search-item { min-width: 0; }
.search-item div { flex: 1; }
.search-item b { overflow-wrap: anywhere; }
.search-item img[src*="/img/products/"], .search-item img[src^="/uploads/"] { object-fit: cover; }

/* Lưới danh mục trang chủ – thẻ ảnh tràn viền, tên 2 dòng đều nhau, số mẫu dạng nhãn */
.sh-panel .h-cats { gap: 12px; }
.sh-panel .h-cat { gap: 0; padding: 0; overflow: hidden; background: #fff; border-color: var(--line); }
.sh-panel .h-cat:hover { border-color: #b9cdf3; box-shadow: 0 10px 24px rgba(11, 91, 224, .12); transform: translateY(-3px); }
.sh-panel .h-cat__img { aspect-ratio: 4 / 3; border-radius: 0; background: radial-gradient(120% 90% at 50% 100%, #dfe9fb 0%, #f4f8ff 70%); }
.sh-panel .h-cat:nth-child(6n+2) .h-cat__img { background: radial-gradient(120% 90% at 50% 100%, #d9eef8 0%, #f2f9fd 70%); }
.sh-panel .h-cat:nth-child(6n+3) .h-cat__img { background: radial-gradient(120% 90% at 50% 100%, #e4e3fb 0%, #f6f5ff 70%); }
.sh-panel .h-cat:nth-child(6n+4) .h-cat__img { background: radial-gradient(120% 90% at 50% 100%, #dcf1e7 0%, #f3faf6 70%); }
.sh-panel .h-cat:nth-child(6n+5) .h-cat__img { background: radial-gradient(120% 90% at 50% 100%, #fbebd6 0%, #fff8ef 70%); }
.sh-panel .h-cat:nth-child(6n) .h-cat__img { background: radial-gradient(120% 90% at 50% 100%, #f1e1f6 0%, #fbf5fd 70%); }
.sh-panel .h-cat__img img { width: 86%; height: 86%; object-fit: contain; transition: transform .35s ease; }
.sh-panel .h-cat__img img:not([src$=".svg"]) { width: 100%; height: 100%; object-fit: cover; }
.sh-panel .h-cat:hover .h-cat__img img { transform: scale(1.06); }
.sh-panel .h-cat__body { gap: 6px; padding: 10px 44px 12px 12px; border-top: 1px solid var(--line); }
.sh-panel .h-cat__body b {
  font-size: 14px; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s;
}
.sh-panel .h-cat:hover .h-cat__body b { color: var(--blue); }
.sh-panel .h-cat__body small {
  align-self: flex-start; padding: 2px 8px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue); font-size: 11.5px; font-weight: 600; line-height: 1.5;
}
.sh-panel .h-cat > .i {
  right: 10px; bottom: 12px; width: 26px; height: 26px; padding: 6px; border-radius: 50%;
  background: #f1f5fb; color: var(--blue); transition: background .15s, color .15s;
}
.sh-panel .h-cat:hover > .i { background: var(--blue); color: #fff; }
@media (max-width: 639px) {
  .sh-panel .h-cats { gap: 8px; }
  .sh-panel .h-cat { padding: 0; text-align: center; }
  .sh-panel .h-cat__body { padding: 8px 6px 10px; gap: 4px; align-items: center; }
  .sh-panel .h-cat__body b { font-size: 12px; }
  .sh-panel .h-cat__body small { align-self: center; font-size: 10.5px; padding: 1px 6px; }
}

/* Thẻ sản phẩm – các khối cao cố định để mọi thẻ thẳng hàng */
.product { padding: 10px 10px 12px; }
.product__img img { margin: 0; }
.product__name { margin-top: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.4; min-height: 2.8em; }
.product__price { margin-top: 6px; min-height: 26px; flex-wrap: nowrap; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.product__price b { font-size: 18px; letter-spacing: -.01em; }
.product__price s { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.product__price.is-contact small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.product__off {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  padding: 3px 7px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11.5px; line-height: 1.3;
  box-shadow: 0 2px 6px rgba(225, 29, 46, .3);
}
.product__specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  margin-top: 10px; padding: 0; border: 0;
}
.product__specs li {
  flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 4px;
  border-radius: 8px; background: #f4f7fc; text-align: center; font-size: 11.5px; font-weight: 500; color: #33405f;
}
.product__specs .i { width: 18px; height: 18px; }
.product__btns { gap: 8px; padding-top: 12px; }
.product__btns .btn { height: 40px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.product__btns .btn--soft { padding: 0 14px; background: #fff; border: 1px solid #cfdcf5; color: var(--blue); }
.product__btns .btn--soft:hover { background: var(--blue-50); border-color: var(--blue); }
@media (max-width: 639px) {
  .product { padding: 8px 8px 10px; }
  .product__name { font-size: 13px; margin-top: 8px; }
  .product__price b { font-size: 15.5px; }
  .product__price.is-contact small { display: none; }
  .product__off { top: 14px; right: 14px; font-size: 10.5px; padding: 2px 5px; }
  .product__specs { gap: 4px; }
  .product__specs li { min-height: 46px; padding: 5px 2px; font-size: 10.5px; }
  .product__specs .i { width: 16px; height: 16px; }
  .product__btns .btn { height: 36px; font-size: 12.5px; }
  .product__btns .btn--soft { padding: 0 8px; }
}

/* =========================================================
   GIAO DIỆN MOBILE KIỂU APP
   – 1 thanh tab đáy (nút Gọi nổi giữa), thanh mua hàng ở trang chi tiết
   – nội dung gọn: băng cuộn ngang cho danh mục / xe nổi bật / quy trình
   ========================================================= */
.pd-bar { display: none; }
.drawer__cta { display: grid; gap: 8px; }
.tabbar__zalo {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #0068ff; color: #fff; font-size: 7.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
@keyframes vt-ring { 0%, 40%, 100% { transform: none; } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20%, 30% { transform: rotate(14deg); } }

@media (max-width: 1023px) {
  :root { --quickbar-h: 0px; --tabbar-h: 62px; }
  .sh-top { display: none; }
  .header.sh { box-shadow: 0 4px 14px rgba(10, 40, 110, .16); }

  /* Thanh tab đáy */
  .tabbar {
    grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -6px 22px rgba(16, 32, 72, .09);
  }
  .tabbar a { position: relative; gap: 4px; font-size: 10.5px; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar .is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px;
    border-radius: 0 0 4px 4px; background: var(--blue);
  }
  .tabbar__call { color: var(--red-600); font-weight: 700; justify-content: flex-end !important; padding-bottom: 8px; }
  .tabbar__fab {
    width: 54px; height: 54px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(180deg, #ff4b4b, var(--red-600));
    box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(225, 29, 46, .38);
  }
  .tabbar__fab .i { width: 25px; height: 25px; animation: vt-ring 2.6s ease-in-out infinite; }

  /* Thanh mua hàng trang chi tiết */
  .pd-bar {
    position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 22px rgba(16, 32, 72, .1);
  }
  body:has(.pd-bar) .tabbar { display: none; }
  .pd-bar__icon { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .pd-bar__icon .i { width: 22px; height: 22px; color: var(--red-600); }
  .pd-bar .btn { flex: 1; min-width: 0; height: 46px; padding: 0 8px; border-radius: 12px; font-size: 14px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
  .pd-bar .btn .i { width: 18px; height: 18px; margin-right: 4px; }
  .pd__actions { display: none; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .tabbar__fab .i { animation: none; }
}

@media (max-width: 639px) {
  /* Tiêu đề khối */
  .h-head { align-items: flex-end; gap: 10px; margin-bottom: 12px; }
  .h-head__kicker { font-size: 11px; }
  .h-head__title, .sh-panel .h-head__title, .sh-panel__title { font-size: 16.5px; line-height: 1.3; letter-spacing: 0; }
  .sh-panel .h-head { padding-bottom: 10px; }
  .section__more { flex: none; font-size: 13px; white-space: nowrap; }
  .section { padding-top: 18px; padding-bottom: 18px; }
  .sh-panel { border-radius: 14px; }

  /* Banner phụ: 2 ô gọn */
  .sh-hero__side { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sh-promo { min-height: 0; padding: 12px; border-radius: 12px; gap: 4px; }
  .sh-promo b { font-size: 14px; line-height: 1.3; }
  .sh-promo small, .sh-promo img { display: none; }
  .sh-promo__go { font-size: 12px; }
  .sh-promo__tag { font-size: 10.5px; padding: 2px 7px; }

  /* Cam kết: 4 biểu tượng một hàng */
  .h-trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0; border-radius: 14px; }
  .h-trust li { flex-direction: column; gap: 6px; padding: 12px 4px; text-align: center; border: 0 !important; }
  .h-trust__ic { width: 38px; height: 38px; border-radius: 50%; }
  .h-trust b { font-size: 11px; line-height: 1.3; font-weight: 600; }
  .h-trust p span { display: none; }

  /* Băng cuộn ngang dùng chung */
  .sh-panel .h-cats, .sh-panel--hot .products, .h-steps {
    display: grid; grid-template-columns: none; grid-auto-flow: column; position: relative;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: -12px; margin-right: -12px; padding: 2px 12px 6px; scroll-padding: 0 12px;
  }
  .sh-panel .h-cats::-webkit-scrollbar, .sh-panel--hot .products::-webkit-scrollbar, .h-steps::-webkit-scrollbar { display: none; }
  .sh-panel .h-cats > *, .sh-panel--hot .products > *, .h-steps > li { scroll-snap-align: start; }
  .sh-panel .h-cats { grid-template-rows: repeat(2, auto); grid-auto-columns: 29%; gap: 8px; }
  .sh-panel--hot .products { grid-auto-columns: 46%; gap: 10px; }
  .h-steps { grid-auto-columns: 78%; gap: 10px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .h-steps li { padding: 16px 14px 14px 60px; }

  /* Vì sao chọn: 2 cột gọn */
  .h-why__list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .h-why__list li { grid-template-columns: 1fr; row-gap: 6px; padding: 12px; }
  .h-why__list li > span { grid-row: auto; width: 38px; height: 38px; }
  .h-why__list h3 { font-size: 14px; }
  .h-why__list p { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Thẻ sản phẩm: 2 ô thông số cho dễ đọc */
  .product__specs { grid-template-columns: 1fr 1fr; }
  .product__specs li:nth-child(n+3) { display: none; }

  /* Breadcrumb 1 dòng, cuộn ngang */
  .crumbs { padding-top: 10px; }
  .crumbs ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12.5px; }
  .crumbs ol::-webkit-scrollbar { display: none; }

  /* Trang chi tiết: ảnh tràn viền như app */
  .pd { gap: 14px; }
  .pd__gallery { margin: 0 -16px; }
  .pd__main { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
  .pd__thumbs { padding: 0 16px; }
  .pd__title { font-size: 20px; line-height: 1.3; }
  .pd__trust { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
  .pd__trust li { font-size: 12px; padding: 8px !important; }
}

/* Menu trượt kiểu app */
.drawer__panel { padding: 0 0 calc(16px + env(safe-area-inset-bottom)); gap: 0; border-radius: 0 18px 18px 0; }
.drawer__head {
  height: 58px; padding: 0 8px 0 16px; border-bottom: 0; text-transform: none; font-size: 16px;
  background: linear-gradient(135deg, var(--blue-600, #0b5be0), var(--navy, #0a2a6b)); color: #fff; z-index: 1;
}
.drawer__head .icon-btn { color: #fff; }
.drawer__list { padding: 6px 8px; }
.drawer__list a {
  padding: 12px 10px; border-bottom: 0; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; text-transform: none; color: var(--navy-900, #0b1d4d);
}
.drawer__list a + a { border-top: 1px solid #eef1f7; }
.drawer__list a:hover, .drawer__list a:active { background: var(--blue-50); color: var(--blue); }
.drawer__links { padding: 10px 16px 4px; border-top: 6px solid #f3f5fa; }
.drawer__links a { padding: 7px 12px; font-size: 13px; }
.drawer__cta { margin-top: auto; padding: 14px 16px 0; }
.drawer__cta .btn { height: 46px; border-radius: 12px; text-transform: none; letter-spacing: 0; }
@media (max-width: 639px) {
  .page-head { padding: 18px 16px; border-radius: 14px; }
  .page-head__title { font-size: 20px; }
  .page-head p { font-size: 13.5px; }
}

/* Banner kêu gọi (ảnh thiết kế sẵn) */
.cta-banner { margin-top: 24px; margin-bottom: 8px; }
.cta-banner__img { display: block; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 28px rgba(10, 40, 110, .16); transition: transform .2s, box-shadow .2s; }
.cta-banner__img:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 40, 110, .22); }
.cta-banner__img img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 668; }
.cta-banner__btns { display: none; }
@media (max-width: 639px) {
  .cta-banner { margin-top: 16px; }
  .cta-banner__img { border-radius: 12px; }
  /* Chữ trong ảnh nhỏ trên điện thoại – thêm nút bấm thật bên dưới */
  .cta-banner__btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 10px; }
  .cta-banner__btns .btn { height: 44px; border-radius: 12px; font-size: 14px; text-transform: none; letter-spacing: 0; white-space: nowrap; padding: 0 10px; }
  .cta-banner__btns .i { width: 18px; height: 18px; }
}

/* Ảnh nhà máy thật */
.h-about__photo { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; background: #dbe7f8; box-shadow: 0 10px 28px rgba(10, 40, 110, .14); }
.h-about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.h-about:hover .h-about__photo img { transform: scale(1.03); }
.factory--static { min-height: 0; background: #08245e; }
.factory__photo { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 60% center; }
.factory--static::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #08245e 0%, #08245e 36%, rgba(8, 36, 94, .55) 55%, rgba(8, 36, 94, 0) 75%);
}
@media (max-width: 639px) {
  .factory--static { display: flex; flex-direction: column; }
  .factory--static::after { display: none; }
  .factory__photo { position: static; order: -1; width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .factory--static .factory__body { max-width: none; padding: 16px; }
}
@media (min-width: 640px) {
  .factory--static { min-height: 300px; align-items: center; }
  .factory--static .factory__body { padding: 28px 32px; max-width: 46%; }
}
@media (min-width: 1024px) { .factory--static { min-height: 380px; } }

/* Banner phụ & khối trả góp dùng ảnh chụp thật, mờ dần về phía chữ */
.sh-promo { overflow: hidden; }
.sh-promo img.sh-promo__photo {
  top: 0; right: 0; bottom: auto; width: 58%; height: 100%; object-fit: cover; opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.sh-hero--banner .sh-promo img.sh-promo__photo { width: 58%; right: 0; bottom: auto; }
.sh-promo b, .sh-promo small, .sh-promo__go, .sh-promo__tag { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.sh-promo small { max-width: 58%; }
.installment__img, .cta__img {
  object-fit: cover; aspect-ratio: 3 / 2; border-radius: 14px; filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
@media (max-width: 639px) {
  .sh-promo img.sh-promo__photo, .sh-hero--banner .sh-promo img.sh-promo__photo {
    display: block; width: 55%; opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  }
  .sh-promo { min-height: 86px; }
  .installment__img { -webkit-mask-image: none; mask-image: none; max-width: none; }
}
@media (max-width: 639px) {
  .sh-promo b { max-width: 64%; }
  .sh-promo__tag, .sh-promo__go { position: relative; z-index: 1; }
}

/* ===== Trang chủ: khối tăng chuyển đổi ===== */
button.section__more { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* Chọn xe theo nhu cầu */
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.need { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.need:hover { transform: translateY(-3px); border-color: #b9cdf3; box-shadow: 0 10px 24px rgba(11, 91, 224, .12); }
.need__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eef2f8; }
.need__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.need:hover .need__img img { transform: scale(1.05); }
.need__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.need__body b { font-size: 15px; color: var(--navy-900); line-height: 1.3; }
.need__body small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.need__body em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.need__body em .i { width: 14px; height: 14px; }
@media (min-width: 1024px) { .needs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* Bảng giá */
.pt { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.pt table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt thead th { background: var(--navy, #0a2a6b); color: #fff; font-weight: 700; text-align: left; padding: 12px 14px; font-size: 13px; }
.pt tbody tr + tr { border-top: 1px solid var(--line); }
.pt tbody tr:nth-child(even) { background: #f8fafd; }
.pt tbody tr:hover { background: var(--blue-50); }
.pt th[scope="row"], .pt td { padding: 10px 14px; vertical-align: middle; text-align: left; }
.pt th[scope="row"] a { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy-900); }
.pt th[scope="row"] a:hover span { color: var(--blue); }
.pt th[scope="row"] img { width: 72px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; background: #eef2f8; }
.pt__spec { color: var(--muted); font-size: 13px; }
.pt__price { white-space: nowrap; }
.pt__price b { color: var(--red); font-size: 15px; font-weight: 800; }
.pt__price s { display: block; color: #8a94ad; font-size: 12px; }
.pt__act { text-align: right !important; }
.pt__act .btn { white-space: nowrap; text-transform: none; letter-spacing: 0; height: 36px; border-radius: 10px; }
.pt__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pt__note .i { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 1px; }
.pt__note a { color: var(--red); font-weight: 700; }
@media (max-width: 767px) {
  .pt { border: 0; border-radius: 0; overflow: visible; }
  .pt thead { display: none; }
  .pt table, .pt tbody { display: block; }
  .pt tbody { display: grid; gap: 8px; }
  .pt tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
    padding: 10px; border: 1px solid var(--line) !important; border-radius: 12px; background: #fff !important;
  }
  .pt th[scope="row"] { grid-column: 1 / -1; padding: 0; }
  .pt th[scope="row"] a { font-size: 14px; line-height: 1.35; }
  .pt th[scope="row"] img { width: 76px; height: 52px; }
  .pt td { padding: 0; }
  .pt__spec { display: none; }
  .pt__price { padding-left: 88px !important; }
  .pt__price s { display: inline; margin-left: 6px; }
  .pt__act .btn { height: 34px; font-size: 12.5px; padding: 0 12px; }
}

/* Form báo giá + thông tin doanh nghiệp */
.quote {
  display: grid; gap: 18px; padding: 20px 16px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #1a5fe0 0%, #0a2a6b 60%, #071d4d 100%);
  box-shadow: 0 16px 36px rgba(10, 40, 110, .22);
}
.quote .h-head__kicker { color: var(--yellow); }
.quote__title { font-size: clamp(21px, 4.6vw, 30px); font-weight: 800; line-height: 1.25; margin-top: 4px; }
.quote__lead { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #d3e0ff; }
.quote__points { display: grid; gap: 8px; margin-top: 14px; }
.quote__points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.quote__points .i { width: 20px; height: 20px; flex: none; color: #4ade80; }
.quote__biz { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); display: grid; gap: 6px; font-size: 13.5px; color: #d3e0ff; }
.quote__biz b { color: #fff; font-size: 14.5px; }
.quote__biz p { display: flex; gap: 8px; align-items: flex-start; }
.quote__biz .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--yellow); }
.quote__biz a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.quote__form { background: #fff; color: var(--text); border-radius: 14px; padding: 18px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.quote__form .btn--lg { height: 52px; font-size: 15.5px; text-transform: none; letter-spacing: 0; }
.quote__form .btn .i { width: 20px; height: 20px; margin-right: 6px; }
.quote__opt { font-style: normal; font-weight: 400; color: var(--muted); }
.quote__privacy { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.quote__privacy .i { width: 14px; height: 14px; color: #16a34a; }
.quote__form .lead__ok a { color: var(--red); font-weight: 700; }
@media (min-width: 900px) {
  .quote { grid-template-columns: 1.05fr .95fr; gap: 36px; padding: 36px; align-items: center; }
  .quote__form { padding: 24px; }
}

/* Hình ảnh thực tế */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gal__item { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: #eef2f8; }
.gal__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gal__item:hover img { transform: scale(1.05); }
.gal__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(5, 18, 50, .78));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 900px) {
  .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); gap: 12px; }
  .gal__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gal__item span { font-size: 13px; }
}
@media (max-width: 767px) { .pt tbody tr:nth-child(n+7) { display: none; } }
.quote { grid-template-areas: "info" "form" "biz"; }
.quote__info { grid-area: info; }
.quote__form { grid-area: form; }
.quote__biz { grid-area: biz; margin-top: 0; }
@media (min-width: 900px) {
  .quote { grid-template-areas: "info form" "biz form"; row-gap: 18px; }
}
.quote { grid-template-columns: minmax(0, 1fr); }
.quote > * { min-width: 0; }
.quote__form select, .quote__form input, .quote__form textarea { width: 100%; min-width: 0; }
@media (min-width: 900px) { .quote { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
@media (max-width: 379px) { .quote { padding: 18px 12px; } .quote__form { padding: 16px 12px; } }
.lead, .lead label { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cta-banner__btns { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important; }
.cta-banner__btns .btn { min-width: 0; overflow: hidden; }
@media (max-width: 359px) { .cta-banner__btns .btn { font-size: 12.5px; padding: 0 6px; } }

/* Trang chi tiết: tiêu đề trong tab + hỏi đáp */
.tabs__panel > h2, .tabs__h { font-size: 17px; font-weight: 800; color: var(--navy-900); margin: 0 0 10px; line-height: 1.35; }
.pd-faq .faq { margin-top: 12px; }

/* Bài viết: hỏi đáp cuối bài */
.article__faq { margin-top: 28px; }
.article__faq h2 { font-size: 20px; font-weight: 800; color: var(--navy-900); margin-bottom: 12px; }

/* ===== Trang chủ: lưới danh mục sản phẩm ===== */
.hcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hcat {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: center;
  gap: 4px 6px; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hcat:hover { border-color: #b9cdf3; box-shadow: 0 8px 20px rgba(11, 91, 224, .1); transform: translateY(-2px); }
.hcat__img { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #f3f6fb; margin-bottom: 4px; }
.hcat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hcat:hover .hcat__img img { transform: scale(1.05); }
.hcat__name { grid-column: 1; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--navy-900); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.hcat__go { grid-column: 2; grid-row: 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef2f8; color: var(--navy-900); transition: background .2s, color .2s; }
.hcat__go .i { width: 13px; height: 13px; }
.hcat:hover .hcat__go { background: var(--blue); color: #fff; }
.hcat__sub { grid-column: 1 / -1; justify-self: center; padding: 2px 8px; border-radius: 6px; background: #f1f4f9; color: #4a5672; font-size: 11px; font-weight: 600; white-space: nowrap; }
/* 7 danh mục trên điện thoại: hàng trên 4 ô, hàng dưới 3 ô như ứng dụng */
@media (max-width: 639px) {
  .hcats--7 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hcats--7 .hcat { grid-column: span 3; }
  .hcats--7 .hcat:nth-child(n+5) { grid-column: span 4; }
  .hcats--7 .hcat:nth-child(-n+4) { padding: 6px 6px 8px; }
  .hcats--7 .hcat:nth-child(-n+4) .hcat__name { font-size: 11.5px; }
  .hcats--7 .hcat:nth-child(-n+4) .hcat__go { display: none; }
  .hcats--7 .hcat:nth-child(-n+4) .hcat__sub { font-size: 10px; padding: 1px 5px; }
}
@media (min-width: 640px) {
  .hcats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .hcat { padding: 10px 10px 12px; }
  .hcat__name { font-size: 14px; }
}
@media (min-width: 1024px) {
  .hcats--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .hcat { gap: 4px; }
  .hcat .hcat__go { display: none; }
  .hcat__name { grid-column: 1 / -1; font-size: 12px; -webkit-line-clamp: 3; min-height: 2.6em; }
  .hcats--7 .hcat:nth-child(-n+4) .hcat__name { font-size: 11px; }
}
.hcat__name { -webkit-line-clamp: 3; }
@media (max-width: 639px) { .hcat__name { -webkit-line-clamp: 4; } }
.hcat { min-width: 0; }
.hcat__sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .hcats--7 .hcat:nth-child(-n+4) .hcat__sub { font-size: 9.5px; padding: 1px 3px; } .hcats { gap: 6px; } }
@media (max-width: 767px) { .pt__price { white-space: normal; min-width: 0; } .pt__price s { white-space: nowrap; } .pt tbody tr { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 359px) { .pt__price s { display: block; margin-left: 0; } }

/* Đầu trang chỉ còn banner: cột danh mục cao bằng banner, danh sách cuộn bên trong */
@media (min-width: 1200px) {
  .sh-hero--banner .sh-hero__cats { height: 0; min-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
  .sh-hero--banner .sh-hero__cats ul { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
}
.sh-hero--banner .sh-hero__main--img { border-radius: 14px; overflow: hidden; }

/* Chọn xe theo nhu cầu: ảnh lớn hơn, hiện giá thay cho mô tả */
.need__img { aspect-ratio: 1 / 1; }
.need__body { gap: 6px; padding: 10px 12px 12px; }
.need__body b { font-size: 15px; line-height: 1.3; min-height: 2.6em; }
.need__price { font-size: 17px; font-weight: 800; color: var(--red); line-height: 1.2; }
.need__body em { padding-top: 2px; }
@media (max-width: 639px) {
  .needs { gap: 8px; }
  .need__body { padding: 8px 10px 10px; gap: 4px; }
  .need__body b { font-size: 14px; }
  .need__price { font-size: 15.5px; }
  .need__body em { font-size: 12.5px; }
}
@media (min-width: 1024px) { .need__img { aspect-ratio: 4 / 3; } }

/* ===== Đầu trang mobile kiểu ứng dụng: nền trắng, logo giữa, nút gọi + giỏ, ô tìm nút đỏ ===== */
@media (max-width: 1023px) {
  .header.sh { background: #fff; box-shadow: 0 2px 12px rgba(16, 32, 72, .08); }
  .header.sh.is-scrolled { box-shadow: 0 4px 16px rgba(16, 32, 72, .14); }
  .sh__main { grid-template-columns: 88px 1fr 88px; padding-top: 8px; padding-bottom: 10px; }
  .sh .header__menu { color: var(--navy-900); }
  .sh .header__menu:hover { background: var(--blue-50); }
  .sh .brand { justify-self: center; }
  .sh .brand__logo { width: 42px; filter: none; }
  .sh .brand__name { color: var(--blue-600); font-size: 20px; }
  .sh .brand__sub { display: block; color: var(--navy); font-size: 9.5px; }
  .sh__actions { justify-self: end; gap: 2px; }
  .sh-act { color: var(--navy-900); padding: 6px; }
  .sh-act:hover { background: var(--blue-50); }
  .sh-act .i { width: 24px; height: 24px; }
  .sh-act--hotline { display: flex; color: var(--red-600); }
  .sh-act--hotline span { display: none; }
  .sh-act__ic .cart__count { border-color: #fff; }
  .sh-search { height: 44px; border: 1.5px solid #dfe5f0; box-shadow: none; border-radius: 10px; }
  .sh-search input {
    padding-left: 40px; font-size: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6785' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px;
  }
  .sh-search button { margin: 3px; padding: 0 14px; background: var(--red-600); color: #fff; }
  .sh-search button:hover { background: var(--red); }
  .sh-search button .i { display: none; }
  .sh-search button span { display: inline; font-size: 14px; }
}
@media (max-width: 359px) {
  .sh__main { grid-template-columns: 64px 1fr 76px; }
  .sh .brand__name { font-size: 17px; }
  .sh .brand__logo { width: 36px; }
}

/* ===== Banner trượt đầu trang ===== */
.hero-slider { position: relative; }
.hero-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 14px; }
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.hero-slide img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 741; object-fit: cover; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.hero-slider__dots button {
  pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .25s, background .25s;
}
.hero-slider__dots button.is-active { width: 20px; background: var(--red-600); }
@media (max-width: 1023px) {
  /* Banner chạy hết chiều ngang như ứng dụng */
  main > .container.sh-hero { margin-top: 0; padding-left: 0; padding-right: 0; }
  .sh-hero--banner .sh-hero__main--img, .hero-slider__track { border-radius: 0; }
}

/* ===== Hàng cam kết dưới banner (mobile): 3 mục, icon đỏ, một hàng ===== */
@media (max-width: 639px) {
  .h-trust { margin-top: 0 !important; padding-left: 0; padding-right: 0; }
  .h-trust ul { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; border-radius: 0 0 14px 14px; border-left: 0; border-right: 0; box-shadow: 0 4px 12px rgba(16, 32, 72, .06); }
  .h-trust li { flex-direction: row; justify-content: center; gap: 5px; padding: 10px 4px; text-align: left; }
  .h-trust li:nth-child(4) { display: none; }
  .h-trust__ic { width: 22px; height: 22px; border-radius: 0; background: none; color: var(--red-600); }
  .h-trust__ic .i { width: 20px; height: 20px; }
  .h-trust b { font-size: 11px; line-height: 1.25; font-weight: 600; }
}
@media (max-width: 639px) { .hcats--7 .hcat:nth-child(-n+4) .hcat__sub { font-size: 9.5px; padding: 1px 3px; letter-spacing: -.01em; } }

/* Lưới danh mục kiểu ứng dụng cho mọi số lượng: lặp lại hàng 4 ô rồi hàng 3 ô */
@media (max-width: 639px) {
  .hcats--app { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hcats--app .hcat { grid-column: span 4; }
  .hcats--app .hcat:nth-child(7n+1), .hcats--app .hcat:nth-child(7n+2),
  .hcats--app .hcat:nth-child(7n+3), .hcats--app .hcat:nth-child(7n+4) { grid-column: span 3; padding: 6px 6px 8px; }
  .hcats--app .hcat:nth-child(7n+1) .hcat__name, .hcats--app .hcat:nth-child(7n+2) .hcat__name,
  .hcats--app .hcat:nth-child(7n+3) .hcat__name, .hcats--app .hcat:nth-child(7n+4) .hcat__name { font-size: 11px; }
  .hcats--app .hcat:nth-child(7n+1) .hcat__sub, .hcats--app .hcat:nth-child(7n+2) .hcat__sub,
  .hcats--app .hcat:nth-child(7n+3) .hcat__sub, .hcats--app .hcat:nth-child(7n+4) .hcat__sub { font-size: 9.5px; padding: 1px 3px; }
}
@media (min-width: 1024px) { .hcats--app { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.hcat__img img.hcat__logo { width: 46%; height: auto; margin: auto; object-fit: contain; opacity: .55; }
.hcat__img:has(.hcat__logo) { display: grid; place-items: center; }
@media (max-width: 639px) {
  .hcats--app .hcat:nth-child(7n+1) .hcat__sub { font-size: 9px; padding: 1px 3px; letter-spacing: -.02em; }
  .hcats--app .hcat:nth-child(-n+4) { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 413px) {
  .hcats--app .hcat:nth-child(7n+1) .hcat__sub { white-space: normal; text-align: center; line-height: 1.25; overflow: visible; }
}

/* Xe nổi bật trên điện thoại: lưới 2 cột hiện nhiều xe bên dưới thay cho băng cuộn ngang */
@media (max-width: 639px) {
  .sh-panel--hot .products {
    grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto;
    overflow: visible; margin-left: 0; margin-right: 0; padding: 0; scroll-snap-type: none; gap: 8px;
  }
}
.hot-more { margin-top: 14px; height: 44px; border-radius: 12px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.hot-more .i { width: 16px; height: 16px; margin-left: 6px; }
@media (min-width: 640px) { .hot-more { width: auto; max-width: 320px; margin-left: auto; margin-right: auto; display: flex; } }
@media (min-width: 640px) and (max-width: 1199px) { .sh-panel--hot .products > .product:nth-child(n+10) { display: none; } }
@media (min-width: 1200px) { .sh-panel--hot .products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ===== Tối ưu giao diện máy tính ===== */
@media (min-width: 1200px) {
  /* Cột danh mục cạnh banner: 7 dòng chính vừa chiều cao banner, không thanh cuộn */
  .sh-hero--banner .sh-hero__cats ul { overflow: hidden; display: flex; flex-direction: column; }
  .sh-hero--banner .sh-hero__cats li { flex: 1; min-height: 0; display: flex; }
  .sh-hero--banner .sh-hero__cats li a { flex: 1; padding-top: 0; padding-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-hero__all a { color: var(--blue) !important; font-weight: 700 !important; border-top: 1px solid var(--line); }
  .sh-hero__all .i { color: var(--blue) !important; }

  /* Xe nổi bật: 4 cột cho ô thông số rộng rãi, hiện 8 xe */
  .sh-panel--hot .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .sh-panel--hot .products > .product:nth-child(n+9) { display: none; }
}
@media (min-width: 1024px) {
  /* Cột danh mục trang danh sách xe: chữ thường, gọn, mục đang xem nổi bật */
  .side-menu a { text-transform: none; font-size: 13.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; border-bottom: 0; color: var(--text); }
  .side-menu li + li { border-top: 1px solid #eef1f7; }
  .side-menu a:hover { background: var(--blue-50); color: var(--blue); }
  .side-menu a.is-active { background: var(--blue-50); color: var(--blue); font-weight: 700; }
  .side-box__title { text-transform: none; font-size: 16px; }
  .listing__side { max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: thin; }
}
/* Màn hình lớn: nới khung nội dung cho đỡ trống hai bên */
@media (min-width: 1600px) { :root { --container: 1360px; } }

/* ===== Trang 404 ===== */
.nf { display: grid; justify-items: center; gap: 14px; text-align: center; padding-block: 32px 56px; }
.nf__code { margin: 0; font-size: clamp(64px, 14vw, 120px); font-weight: 800; line-height: 1; color: var(--blue-600); letter-spacing: -.02em; }
.nf p { max-width: 560px; margin: 0; }
.nf .search-page__form { width: min(560px, 100%); }
.nf .chips { justify-content: center; }
.nf__title { margin: 0; font-size: clamp(22px, 5vw, 32px); font-weight: 800; color: var(--navy); }

/* Đánh giá thật: điểm trung bình, sao trống, ảnh khách nhận xe */
.reviews__sum { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: #33405f; white-space: nowrap; }
.reviews__sum b { font-size: 22px; color: var(--navy); }
.stars__off { color: #d5dbe7; display: inline-flex; }
.review .review__ok a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.review > img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; background: #eef2f9; }
@media (min-width: 900px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* ===== Thẻ sản phẩm v3: ảnh to, nút nhỏ, động cơ + tải trọng, sao, giá cũ gạch ===== */
.product { padding: 8px 8px 10px; gap: 6px; }
.product__img { margin: -8px -8px 2px; border-radius: 12px 12px 0 0; background: #fff; }
.product__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: 0; padding: 4px; }
.product__img img[src*="/img/products/"], .product__img img[src^="/uploads/"] { object-fit: cover; padding: 0; }
.product__name { font-size: 14px; line-height: 1.35; }
.product__rate { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12px; color: #64708a; }
.product__rate .stars .i { width: 13px; height: 13px; }
.product__rate b { color: #33405f; font-size: 12.5px; }
.product__price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 2px; }
.product__price.has-old { gap: 1px; }
.product__old { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.product__old s { color: #8a94ad; font-size: 12.5px; }
.product__old .product__off { padding: 1px 6px; border-radius: 6px; background: #fdecec; color: var(--red); font-style: normal; font-weight: 800; font-size: 11px; }
.product__price b { font-size: 18px; line-height: 1.2; }
.product__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.product__specs li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #f3f6fc; font-size: 12.5px; font-weight: 700; color: #1d2a4d; min-width: 0; }
.product__specs li span { display: grid; min-width: 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product__specs li small { font-size: 10.5px; font-weight: 500; color: #7b86a2; }
.product__specs .i { flex: none; width: 17px; height: 17px; }
.product__btns { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; padding-top: 8px; }
.product__btns .btn { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.product__btns .btn--soft { padding: 0 10px; }
@media (min-width: 768px) {
  .product__btns .btn { height: 34px; font-size: 13px; }
  .product__price b { font-size: 19px; }
}

/* ===== Video sản phẩm ===== */
.pv__frame { position: relative; overflow: hidden; border-radius: 14px; background: #0b1530; aspect-ratio: 16 / 9; max-width: 960px; }
.pv__frame video, .pv__frame iframe, .pv__yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pv__yt { padding: 0; cursor: pointer; background: #000; }
.pv__yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pv__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: #e62117; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.pv__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.pv__yt:hover .pv__play { background: #ff0000; }

/* ===== Khách tự viết đánh giá ===== */
.rv-empty { margin: 0 0 12px; color: #4a5675; }
.rv-write { margin-top: 14px; }
.rv-write > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rv-write > summary::-webkit-details-marker { display: none; }
.rv-write > summary .i { width: 16px; height: 16px; color: #ffb400; }
.rv-form { display: grid; gap: 12px; max-width: 640px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rv-form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; color: #1d2a4d; }
.rv-form label small { font-weight: 400; color: #7b86a2; }
.rv-form input, .rv-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #d4dbe8; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.rv-form input:focus, .rv-form textarea:focus { outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(10,73,192,.12); }
.rv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-stars-in { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; border: 0; }
.rv-stars-in legend { width: 100%; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: #1d2a4d; }
.rv-stars-in input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars-in label { cursor: pointer; color: #d5dbe7; }
.rv-stars-in label .i { width: 32px; height: 32px; }
.rv-stars-in input:checked ~ label, .rv-stars-in label:hover, .rv-stars-in label:hover ~ label { color: #ffb400; }
.rv-stars-in input:focus-visible + label { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }
.rv-form__err { margin: 0; color: var(--red); font-size: 13px; font-weight: 600; }
.rv-form__err:empty { display: none; }
.rv-form__note { margin: 0; font-size: 12px; color: #7b86a2; }
.rv-form .btn { justify-self: start; }
.rv-form__ok { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #e9f8ef; color: #166534; }
.rv-form__ok .i { width: 20px; height: 20px; }
@media (max-width: 560px) { .rv-form__row { grid-template-columns: 1fr; } .rv-form .btn { justify-self: stretch; } }
.product .product__img img, .product .product__img img[src*="/img/products/"], .product .product__img img[src^="/uploads/"] { aspect-ratio: 4 / 3; margin: 0; }
.product .product__price .product__old { order: -1; }
.product .product__name { margin-top: 4px; }

/* 8 danh mục: điện thoại 2 hàng × 4 ô, máy tính bảng 4 cột, máy tính 8 cột */
@media (max-width: 639px) {
  .hcats--app.hcats--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hcats--app.hcats--8 .hcat:nth-child(n) { grid-column: auto; padding: 6px 6px 8px; }
  .hcats--app.hcats--8 .hcat:nth-child(n) .hcat__name { font-size: 11px; }
  .hcats--app.hcats--8 .hcat:nth-child(n) .hcat__sub { font-size: 9.5px; padding: 1px 3px; }
}
@media (min-width: 1024px) { .hcats--app.hcats--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } .hcats--8 .hcat__name { font-size: 13px; } }

/* ===== Banner video full chiều ngang (16:9 Full HD) ===== */
.hv { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 92vh; overflow: hidden; background: #0b1530; }
.hv__link { position: absolute; inset: 0; display: block; }
.hv__poster, .hv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv__video { opacity: 0; transition: opacity .6s ease; }
.hv.is-playing .hv__video { opacity: 1; }
.hv__btn { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(10, 20, 50, .55); cursor: pointer; backdrop-filter: blur(4px); }
.hv__btn svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv__play { left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); }
.hv__play svg { fill: currentColor; stroke: none; margin-left: 4px; }
.hv__sound { right: max(14px, env(safe-area-inset-right)); bottom: 14px; width: 44px; height: 44px; }
.hv__sound:hover, .hv__play:hover { background: rgba(10, 20, 50, .8); }
.hv__on { display: none; }
.hv.is-sound .hv__on { display: block; }
.hv.is-sound .hv__off { display: none; }
@media (max-width: 767px) { .hv__sound { width: 38px; height: 38px; bottom: 10px; } .hv__play { width: 60px; height: 60px; } }

/* ===== 8 khối danh mục nổi bật: 2 hàng × 4 xe (máy tính), 2 hàng × 3 (máy tính bảng), 2 hàng × 2 (điện thoại) ===== */
.cat-block__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-block__grid > .product:nth-child(n+5) { display: none; }
@media (min-width: 640px) { .cat-block__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .cat-block__grid > .product:nth-child(-n+6) { display: flex; } }
@media (min-width: 1024px) { .cat-block__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .cat-block__grid > .product:nth-child(-n+8) { display: flex; } }

/* ===== Video giới thiệu – Hình ảnh bàn giao (nền tối) ===== */
.sc { margin-top: 28px; padding-block: 28px; background: #05070f; color: #fff; }
.sc__in { display: grid; gap: 28px; }
.sc--two .sc__in { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .sc--two .sc__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }
.sc__col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sc__head svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc__title { margin: 10px 0 6px; font-size: 20px; font-weight: 800; color: #fff; }
.sc__head p { margin: 0 0 6px; color: rgba(255,255,255,.78); font-size: 14px; }
.sc__cap { margin: 0; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.sc__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sc__thumbs:empty { display: none; }
.sc__thumb p { margin: 6px 0 0; font-size: 12.5px; color: rgba(255,255,255,.8); line-height: 1.35; }
.sc__thumb .pv__play { width: 42px; height: 30px; border-radius: 9px; }
.sc__thumb .pv__play::after { left: 16px; top: 8px; border-width: 7px 0 7px 12px; }
.sc .pv__frame { max-width: none; border-radius: 12px; }
.sc__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc__photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #111827; }
.sc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sc__photo:hover img { transform: scale(1.05); }
.sc__photo span { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-size: 11.5px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .2s; }
.sc__photo:hover span, .sc__photo:focus span { opacity: 1; }
@media (max-width: 639px) { .sc__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sc__photo span { opacity: 1; } }

/* ===== Khách hàng nói về Vĩ Tuyến ===== */
.kh-points { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13.5px; color: #4a5675; }
.kh-points li::before { content: "✓"; margin-right: 6px; color: var(--blue-600); font-weight: 800; }
.kh-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kh-video { margin: 0; }
.kh-video figcaption { display: grid; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy-900); }
.kh-video figcaption small { font-weight: 500; color: #64708a; }

/* ===== Tin tức – Chia sẻ kinh nghiệm ===== */
.tt-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13.5px; color: #33405f; }
.tt-topics li { display: flex; align-items: flex-start; gap: 6px; }
.tt-topics .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--blue-600); }
@media (min-width: 1024px) { .tt-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tt-topics { grid-template-columns: 1fr; } }

/* ===== Ảnh xoay 360° ===== */
.pd__main { position: relative; }
.spin-btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgba(10, 30, 80, .82); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 30, 80, .3); animation: spin-pulse 2.4s ease-in-out infinite; }
.spin-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spin-btn:hover { background: var(--blue-600); }
@keyframes spin-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 73, 192, .45); } 50% { box-shadow: 0 0 0 8px rgba(10, 73, 192, 0); } }
@media (prefers-reduced-motion: reduce) { .spin-btn { animation: none; } }
.spin { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; cursor: grab; touch-action: pan-y; user-select: none; outline: 0; }
.spin.is-drag { cursor: grabbing; }
.spin__img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.spin__bar { position: absolute; left: 16px; right: 16px; top: 12px; height: 4px; border-radius: 4px; background: rgba(10, 30, 80, .12); overflow: hidden; }
.spin__bar span { display: block; width: 0; height: 100%; background: var(--blue-600); transition: width .15s; }
.spin.is-ready .spin__bar { opacity: 0; transition: opacity .4s .3s; }
.spin__hint { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(10, 30, 80, .75); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; }
.spin__ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.spin__ctrl button { min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(10, 30, 80, .82); color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.spin__ctrl [data-spin-close] { font-size: 13px; }
.spin__ctrl [aria-pressed="true"] { background: var(--blue-600); }
.product__img { position: relative; }
.product__360 { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(10, 30, 80, .82); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }

/* ===== Ảnh sản phẩm rộng hơn: thẻ sát mép, phóng nhẹ để bớt viền trắng có sẵn trong ảnh ===== */
.product { padding: 6px 6px 10px; }
.product__img { margin: -6px -6px 2px; overflow: hidden; border-radius: 12px 12px 0 0; }
.product .product__img img, .product .product__img img[src*="/img/products/"], .product .product__img img[src^="/uploads/"] {
  aspect-ratio: 4 / 3; object-fit: contain; padding: 0; transform: scale(1.14); transform-origin: center 55%; }
.product:hover .product__img img[src*="/img/products/"], .product:hover .product__img img[src^="/uploads/"] { transform: scale(1.2); }
.product .product__name, .product .product__rate, .product .product__price, .product .product__btns { padding-left: 4px; padding-right: 4px; }
@media (max-width: 639px) { .products, .cat-block__grid { gap: 8px; } }
/* Trang chi tiết: ảnh chính sát khung hơn */
.pd__main { padding: 6px; }
.pd__main > img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .product:hover .product__img img { transform: scale(1.14); } }

/* Tên 8 danh mục trang chủ: xanh thương hiệu, đậm */
.hcats .hcat__name, .hcats .hcat:hover .hcat__name { color: var(--blue-600); font-weight: 800; }
.hcats .hcat:hover .hcat__name { color: var(--blue); }

/* ===== Khối danh mục: một hàng xe trượt ngang (điện thoại ~2,2 xe, máy tính bảng 3, máy tính 4 xe mỗi khung) ===== */
.cat-slider { position: relative; }
.cat-block .cat-block__grid {
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 8px) / 2.2); gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.cat-block .cat-block__grid::-webkit-scrollbar { display: none; }
.cat-block .cat-block__grid > .product, .cat-block .cat-block__grid > .product:nth-child(n) { display: flex; scroll-snap-align: start; }
@media (min-width: 640px) { .cat-block .cat-block__grid { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; } }
@media (min-width: 1024px) { .cat-block .cat-block__grid { grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; } }
.cat-slider__btn { position: absolute; top: 38%; z-index: 3; display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(10, 30, 80, .15); cursor: pointer; transition: opacity .2s, background .2s; }
.cat-slider__btn .i { width: 18px; height: 18px; }
.cat-slider__btn--prev { left: -14px; }
.cat-slider__btn--prev .i { transform: rotate(180deg); }
.cat-slider__btn--next { right: -14px; }
.cat-slider__btn:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.cat-slider__btn:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .cat-slider.is-scrollable .cat-slider__btn { display: grid; } }

/* ===== Vì sao chọn Vĩ Tuyến (v2): nền xanh đậm + ảnh nhà máy, số liệu vàng, thẻ trắng nổi ===== */
.why2 { position: relative; isolation: isolate; overflow: hidden; margin-top: 36px; padding: 40px 0 44px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #0b5be0 0%, rgba(11, 91, 224, 0) 55%), linear-gradient(160deg, #061a47 0%, #0a2a6b 60%, #0a49c0 100%); }
.why2__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .16; mix-blend-mode: luminosity; }
.why2::after { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, .22), rgba(255, 200, 61, 0) 70%); }
.why2__in { display: grid; gap: 22px; }
.why2__head { max-width: 760px; }
.why2__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 200, 61, .16);
  color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.why2__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 200, 61, .25); }
.why2__title { margin-top: 12px; font-size: 26px; line-height: 1.2; font-weight: 800; text-wrap: balance; }
.why2__intro { margin-top: 10px; color: #c7d4f5; font-size: 14.5px; line-height: 1.6; }
.why2__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.why2__stats li { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.why2__stats b { display: block; font-size: 32px; line-height: 1.05; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.why2__stats span { display: block; margin-top: 6px; color: #dbe5ff; font-size: 12.5px; line-height: 1.4; }
.why2__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.why2__item { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px 14px 14px; border-radius: 14px; background: #fff; color: var(--text);
  box-shadow: 0 10px 30px rgba(3, 14, 45, .28); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.why2__item::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), var(--yellow)); }
.why2__item:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(3, 14, 45, .36); }
.why2__no { position: absolute; top: 10px; right: 12px; font-size: 22px; font-weight: 800; color: var(--blue-50); line-height: 1; }
.why2__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--blue-600), var(--blue)); color: #fff;
  box-shadow: 0 6px 14px rgba(10, 73, 192, .35); }
.why2__ic .i { width: 22px; height: 22px; }
.why2__item h3 { margin-top: 4px; font-size: 14.5px; font-weight: 800; color: var(--navy-900); }
.why2__item p { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.why2__cta { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .3); }
.why2__cta p { color: #dbe5ff; font-size: 14px; }
.why2__cta p b { color: #fff; }
.why2__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.why2 .btn--light { background: #fff; color: var(--navy-900); border-color: #fff; }
.why2 .btn--light:hover { background: var(--yellow); border-color: var(--yellow); }
@media (min-width: 768px) {
  .why2__stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .why2__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .why2__item { padding: 22px 20px 20px; }
  .why2__item h3 { font-size: 16px; }
  .why2__item p { font-size: 13.5px; }
  .why2__cta { grid-template-columns: 1fr auto; align-items: center; padding: 18px 22px; }
}
@media (min-width: 1024px) {
  .why2 { margin-top: 56px; padding: 64px 0 68px; }
  .why2__title { font-size: 36px; }
  .why2__intro { font-size: 16px; }
  .why2__stats b { font-size: 46px; }
  .why2__stats li { padding: 20px 22px; }
  .why2__stats span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .why2__item { transition: none; } .why2__item:hover { transform: none; } }

/* ===== Video giới thiệu (kiểu YouTube) + Hình ảnh bàn giao – nền sáng ===== */
.sc { background: #fff; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 32px; }
.sc__in { gap: 32px; }
.sc__block { display: grid; gap: 16px; min-width: 0; }
.sc__head { display: flex; align-items: center; gap: 12px; }
.sc__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); }
.sc__head .sc__ic svg { stroke: var(--blue-600); }
.sc__title { margin: 0; color: var(--navy-900); }
.sc__head p { margin: 2px 0 0; color: var(--muted); }
.vp { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1024px) { .vp { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.vp__main { min-width: 0; }
.vp__stage .pv__frame, .vp__stage iframe, .vp__stage video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; background: #0b1020; }
.vp__stage .pv__frame { overflow: hidden; }
.vp__title { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--navy-900); line-height: 1.35; }
.vp__side { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.vp__count { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--navy-900); border-bottom: 1px solid var(--line); background: #fff; }
.vp__list { display: grid; gap: 2px; padding: 6px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.vp__item { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.vp__item:hover { background: #fff; }
.vp__item.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--red); }
.vp__pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b1020; }
.vp__pic img, .vp__pic video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vp__play { position: absolute; inset: 0; margin: auto; width: 34px; height: 24px; border-radius: 7px; background: rgba(227, 38, 46, .92); }
.vp__play::after { content: ""; position: absolute; left: 13px; top: 6px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.vp__item.is-active .vp__play { background: var(--blue-600); }
.vp__meta { display: grid; gap: 4px; align-content: start; min-width: 0; }
.vp__meta b { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--navy-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vp__meta small { font-size: 12px; color: var(--muted); }
@media (max-width: 1023px) { .vp__list { max-height: 340px; } }
@media (max-width: 479px) { .vp__item { grid-template-columns: 128px minmax(0, 1fr); } }
.sc__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .sc__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sc__photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.sc__photo { background: var(--blue-50); border-radius: 12px; box-shadow: var(--shadow); }
.sc__more { justify-self: center; }
/* Xem ảnh phóng to */
.lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 56px 12px; background: rgba(6, 12, 30, .92); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(1200px, 100%); }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; }
.lb figcaption { color: #fff; font-size: 14px; text-align: center; }
.lb button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ===== Ô tìm kiếm đầu trang: nút chỉ còn biểu tượng kính lúp (gọn, chừa chỗ cho chữ gợi ý) ===== */
.sh-search { align-items: stretch; transition: border-color .2s, box-shadow .2s; }
.sh-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 91, 224, .14); }
.sh-search input, .sh-search input:not(:focus) { padding-left: 14px; background-image: none; font-size: 16px; }
.sh-search input::placeholder { color: #8a94ad; }
.sh-search input::-webkit-search-cancel-button { cursor: pointer; }
.sh-search button, .sh-search button:hover {
  flex: none; display: grid; place-items: center; width: 40px; padding: 0; margin: 3px; border: 0; border-radius: 8px;
  background: var(--red-600); color: #fff; cursor: pointer; transition: background .2s, transform .1s;
}
.sh-search button:hover { background: var(--red); }
.sh-search button:active { transform: scale(.94); }
.sh-search button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sh-search button .i, .sh-search button:hover .i { display: block; width: 20px; height: 20px; stroke-width: 2.4; }
.sh-search button span { display: none !important; }
@media (min-width: 1024px) { .sh-search input { font-size: 15px; } .sh-search button { width: 46px; } }

/* ===== Sản phẩm bán chạy – điện thoại: 2 hàng, vuốt ngang xem các xe còn lại ===== */
@media (max-width: 639px) {
  .products.products--hot {
    display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: calc((100% - 8px) / 2.08); gap: 8px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
  }
  .products.products--hot::-webkit-scrollbar { display: none; }
  .products.products--hot > .product, .products.products--hot > .product:nth-child(n) { display: flex; scroll-snap-align: start; }
}
@media (max-width: 639px) {
  .products--hot .product__btns { gap: 4px; }
  .products--hot .product__btns .btn { padding: 0 7px; font-size: 12px; white-space: nowrap; }
}

/* ===== Thẻ sản phẩm v4: ảnh vuông 1:1 thoáng (thấy trọn xe), phần chữ – giá – nút gọn lại ===== */
.product .product__img img, .product .product__img img[src*="/img/products/"], .product .product__img img[src^="/uploads/"] {
  aspect-ratio: 1 / 1; object-fit: contain; padding: 6px; background: #fff; transform: none; transition: transform .35s ease; }
.product:hover .product__img img, .product:hover .product__img img[src*="/img/products/"], .product:hover .product__img img[src^="/uploads/"] { transform: scale(1.05); }
.product { gap: 4px; padding-bottom: 8px; }
.product .product__name { margin-top: 2px; font-size: 13px; line-height: 1.35; font-weight: 600; }
.product .product__price { margin-top: 0; }
.product .product__price b { font-size: 15.5px; }
.product .product__old, .product .product__old s { font-size: 11.5px; }
.product .product__old .product__off { font-size: 10.5px; padding: 0 5px; }
.product .product__rate { font-size: 11.5px; }
.product .product__btns { gap: 5px; padding-top: 6px; }
.product .product__btns .btn { height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12px; }
.product .product__btns .btn .i { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .product .product__name { font-size: 14px; }
  .product .product__price b { font-size: 17px; }
  .product .product__btns .btn { height: 32px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .product:hover .product__img img { transform: none; } }
@media (max-width: 639px) { .product .product__btns .btn { padding: 0 5px; white-space: nowrap; } .product .product__btns { gap: 4px; } }

/* ===== Danh mục sản phẩm trang chủ (v3): ô ảnh nền xanh nhạt bo tròn, tên căn giữa đều 2 dòng, hiệu ứng nổi khi rê ===== */
.hcats.hcats--8 { gap: 8px; }
.hcats.hcats--8 .hcat, .hcats.hcats--8 .hcat:nth-child(n) {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 6px 8px;
  border: 1px solid #e6ecf6; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(10, 42, 107, .05);
  text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hcats.hcats--8 .hcat:hover { transform: translateY(-3px); border-color: #bcd0f5; box-shadow: 0 10px 22px rgba(10, 73, 192, .14); }
.hcats.hcats--8 .hcat__img {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; margin: 0; padding: 8%; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #eef4ff 62%, #e2ebfb 100%); }
.hcats.hcats--8 .hcat__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(10, 42, 107, .18)); transition: transform .3s ease; transform: none; }
.hcats.hcats--8 .hcat:hover .hcat__img img { transform: scale(1.07); }
.hcats.hcats--8 .hcat__name, .hcats.hcats--8 .hcat:nth-child(n) .hcat__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em; margin: 0; font-size: 11.5px; line-height: 1.3; font-weight: 800; color: var(--blue-600); text-wrap: balance; }
.hcats.hcats--8 .hcat:hover .hcat__name { color: var(--red); }
/* Dòng phụ (VD 125cc – 300cc) chỉ một vài ô có → ẩn trên điện thoại để các ô cao bằng nhau */
.hcats.hcats--8 .hcat__sub, .hcats.hcats--8 .hcat:nth-child(n) .hcat__sub { display: none; }
.hcats.hcats--8 .hcat__go { display: none; }
@media (min-width: 640px) {
  .hcats.hcats--8 { gap: 12px; }
  .hcats.hcats--8 .hcat, .hcats.hcats--8 .hcat:nth-child(n) { padding: 8px 8px 10px; }
  .hcats.hcats--8 .hcat__name, .hcats.hcats--8 .hcat:nth-child(n) .hcat__name { font-size: 13px; }
}
@media (min-width: 1024px) {
  .hcats.hcats--8 .hcat__sub, .hcats.hcats--8 .hcat:nth-child(n) .hcat__sub {
    display: block; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px;
    background: rgba(10, 73, 192, .9); color: #fff; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .hcats.hcats--8 .hcat, .hcats.hcats--8 .hcat__img img { transition: none; } .hcats.hcats--8 .hcat:hover { transform: none; } }
/* chỉnh: ảnh to hơn, nền trắng của ảnh hoà vào nền ô; tên hiện đủ (tối đa 3 dòng, không cắt "…") */
.hcats.hcats--8 .hcat__img { padding: 3%; background: linear-gradient(160deg, #f4f8ff 0%, #e6eefc 100%); }
.hcats.hcats--8 .hcat__img img { mix-blend-mode: multiply; filter: none; transform: scale(1.08); }
.hcats.hcats--8 .hcat:hover .hcat__img img { transform: scale(1.15); }
.hcats.hcats--8 .hcat__name, .hcats.hcats--8 .hcat:nth-child(n) .hcat__name {
  display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 2.6em; font-size: 11px; line-height: 1.28; letter-spacing: -.01em; }
.hcats.hcats--8 .hcat, .hcats.hcats--8 .hcat:nth-child(n) { padding: 5px 4px 7px; gap: 5px; }
@media (min-width: 640px) {
  .hcats.hcats--8 .hcat, .hcats.hcats--8 .hcat:nth-child(n) { padding: 8px 8px 10px; }
  .hcats.hcats--8 .hcat__name, .hcats.hcats--8 .hcat:nth-child(n) .hcat__name { font-size: 13px; letter-spacing: 0; }
}

/* ===== Đối tác & khách hàng tiêu biểu: dải logo chạy ngang, mờ hai mép ===== */
.pt__lead { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.pt__view { position: relative; overflow: hidden; }
.pt__view--loop { display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pt__track { display: flex; flex: none; gap: 12px; padding: 4px 12px 4px 0; margin: 0; list-style: none; animation: pt-run calc(var(--pt-n, 6) * 3.2s) linear infinite; }
.pt__view--loop:hover .pt__track, .pt__view--loop:focus-within .pt__track { animation-play-state: paused; }
@keyframes pt-run { to { transform: translateX(-100%); } }
.pt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .pt__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pt__item { flex: none; width: 150px; }
.pt__grid .pt__item { width: auto; }
.pt__item > img, .pt__item > a { display: grid; place-items: center; height: 96px; padding: 10px 14px; border: 1px solid #e6ecf6; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 8px rgba(10, 42, 107, .05); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pt__item img { width: 100%; height: 100%; object-fit: contain; }
.pt__item > a img { border: 0; padding: 0; box-shadow: none; }
.pt__item:hover > img, .pt__item:hover > a { transform: translateY(-2px); border-color: #bcd0f5; box-shadow: 0 8px 18px rgba(10, 73, 192, .12); }
@media (min-width: 1024px) { .pt__item { width: 190px; } .pt__item > img, .pt__item > a { height: 116px; } }
@media (prefers-reduced-motion: reduce) {
  .pt__view--loop { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .pt__track { animation: none; }
  .pt__track[aria-hidden] { display: none; }
}

/* ===== Tiêu đề 8 khối danh mục trang chủ: chữ xanh thương hiệu đậm, vạch đỏ đầu dòng + gạch chân đỏ–vàng ===== */
.cat-block .h-head__title {
  position: relative; display: inline-block; padding-left: 14px; padding-bottom: 6px;
  color: var(--blue-600); text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(90deg, var(--blue-600), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cat-block .h-head__title::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: calc(6px + .12em); width: 5px; border-radius: 3px; background: var(--red); }
.cat-block .h-head__title::after {
  content: ""; position: absolute; left: 14px; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--yellow)); }
.cat-block:hover .h-head__title::after { width: 96px; transition: width .3s ease; }
.cat-block .section__more { color: var(--red); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .cat-block:hover .h-head__title::after { transition: none; } }

/* ===== Ô tìm kiếm đầu trang trên điện thoại: thấp và mảnh hơn ===== */
@media (max-width: 1023px) {
  .sh-search, .sh-search:focus-within { height: 38px; border-width: 1px; border-radius: 9px; }
  .sh-search input, .sh-search input:not(:focus) { padding-left: 12px; font-size: 16px; } /* giữ 16px để iPhone không tự phóng to */
  .sh-search input::placeholder { font-size: 13.5px; }
  .sh-search button, .sh-search button:hover { width: 34px; margin: 2px; border-radius: 7px; }
  .sh-search button .i, .sh-search button:hover .i { width: 17px; height: 17px; }
}

/* ===== Khối danh mục chính chưa có xe: ảnh + lời mời báo giá ===== */
.cat-empty { display: grid; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #f4f8ff, #e8f0fd); }
.cat-empty__img { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; background: #fff; mix-blend-mode: multiply; }
.cat-empty__title { font-size: 16px; font-weight: 800; color: var(--navy-900); }
.cat-empty__text { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cat-empty__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cat-empty__btns .btn { height: 40px; }
@media (min-width: 768px) { .cat-empty { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; padding: 18px; } .cat-empty__title { font-size: 19px; } }

/* ===== Khung thương hiệu dưới ảnh sản phẩm (CRM → Tài khoản → Khung ảnh sản phẩm) =====
   Cỡ chữ theo cả chiều cao lẫn bề ngang dải (min cqh/cqw) để thẻ rộng trên máy tính không bị tràn chữ */
.pd__main, .product__img { position: relative; }
.pframe { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: stretch; height: 15%; min-height: 26px;
  background: #0b1530; color: #fff; pointer-events: none; container-type: size; overflow: hidden; }
.pframe__brand { display: flex; align-items: center; gap: 2cqw; flex: 0 0 56%; min-width: 0; padding: 0 7cqw 0 2.5cqw;
  background: linear-gradient(135deg, #1a5bd8, #0a3fa8); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
/* logo: chặn các kiểu ảnh thẻ xe (nền trắng, khung vuông, phóng to) */
.pframe .pframe__brand img, .product .product__img .pframe img, .product:hover .product__img .pframe img {
  flex: none; width: auto; height: min(62cqh, 11cqw); aspect-ratio: auto; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: none; object-fit: contain; transform: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.pframe__brand > span { display: grid; min-width: 0; line-height: 1.3; }
/* không cắt chữ theo chiều dọc: dấu tiếng Việt (Ĩ, Ế) nằm trên đầu chữ */
.pframe__brand b { font-size: min(34cqh, 4.3cqw); font-weight: 900; letter-spacing: .03em; white-space: nowrap; overflow: visible; }
.pframe__brand small { font-size: min(20cqh, 2.25cqw); font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pframe__msg { flex: 1; min-width: 0; display: grid; align-content: center; justify-items: end; gap: .15em; padding: 0 3cqw 0 1cqw; text-align: right;
  font-size: min(23cqh, 2.95cqw); font-weight: 800; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.pframe__msg > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pd__main .pframe { height: 13%; border-radius: 0 0 var(--radius) var(--radius); }
.product__img .pframe { height: 18%; }
/* chừa chỗ cho khung: ảnh nằm trên, không bị dải che bánh xe */
.pd__main:has(.pframe) { aspect-ratio: 1200 / 920; padding: 0; place-items: start center; background: #fff; }
.pd__main:has(.pframe) > img { height: 87%; object-fit: contain; }
.product__img:has(.pframe) > img { object-position: center 30%; }
/* nút 360° nằm trên khung */
.pd__main:has(.pframe) .spin-btn { bottom: calc(13% + 10px); }
.product__img:has(.pframe) .product__360 { bottom: calc(18% + 5px); }
.pd__main:has(.spin) .pframe { display: none; }
/* thẻ xe nhỏ (điện thoại): chỉ logo + tên + website cho chữ đủ to */
@container (max-width: 230px) {
  .pframe__brand { flex-basis: 84%; padding-right: 12cqw; }
  .pframe__brand b { font-size: min(36cqh, 8cqw); }
  .pframe__brand small { font-size: min(23cqh, 5.2cqw); }
  .pframe .pframe__brand img, .product .product__img .pframe img { height: min(62cqh, 17cqw); }
  .pframe__msg { display: none; }
}

/* ===== Trang từ khoá: bảng giá lấy từ CRM ===== */
.lp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lp-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.lp-table th, .lp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lp-table thead th { background: #eef4ff; color: var(--blue-700, #0a3fa8); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table tbody tr:nth-child(even) td { background: #f8fafe; }
.lp-table td a { color: inherit; font-weight: 700; }
.lp-table__price { white-space: nowrap; text-align: right !important; }
.lp-table__price b { color: #d71920; }
.lp-table__price a { color: #d71920 !important; }
.lp-table thead th:last-child { text-align: right; }
.lp-table__note { margin-top: 8px; color: var(--muted); font-size: 13px; }
@media (max-width: 599px) {
  .lp-table table { min-width: 0; }
  .lp-table th:nth-child(2), .lp-table td:nth-child(2) { display: none; }
  .lp-table th, .lp-table td { padding: 10px 12px; }
}

/* ===== Khối danh mục trang chủ: 2 hàng xe, trượt ngang khi nhiều (điện thoại ~2,2 cột, máy tính bảng 3, máy tính 4 cột mỗi khung) ===== */
.cat-block .cat-block__grid--2 { grid-template-rows: repeat(2, auto); }
.cat-block .cat-block__grid--2 > .product { min-height: 0; }
.cat-block .cat-block__grid--2 + .cat-slider__btn, .cat-block .cat-block__grid--2 ~ .cat-slider__btn { top: calc(50% - 20px); }

/* ===== Ảnh xe trong thẻ to hết cỡ (mọi màn hình): khung đúng khổ ảnh 3:2, sát mép thẻ, không đệm; dải thương hiệu nằm dưới ảnh ===== */
.product .product__img { margin: -6px -6px 4px; background: #fff; }
.product .product__img > img, .product .product__img > img[src*="/img/products/"], .product .product__img > img[src^="/uploads/"],
.product:hover .product__img > img[src*="/img/products/"], .product:hover .product__img > img[src^="/uploads/"] {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; padding: 0; object-fit: cover; object-position: center; transform: none;
  transition: transform .35s ease; }
.product:hover .product__img > img { transform: scale(1.04); }
.product .product__img .pframe { position: relative; height: 40px; min-height: 0; }
.product .product__img:has(.pframe) .product__360 { bottom: 46px; }
@media (max-width: 767px) {
  .product .product__img .pframe { height: 30px; }
  .product .product__img:has(.pframe) .product__360 { bottom: 35px; }
  .product .product__img .pframe__brand b { font-size: 13px; line-height: 1.35; }
  .product .product__img .pframe__brand small { display: none; } /* chữ website quá nhỏ trên thẻ điện thoại */
  .product:hover .product__img > img { transform: none; }
}

/* ===== Ảnh thẻ tin tức phủ kín khung 16:9 (không hở nền xám hai bên) ===== */
.post .post__img { overflow: hidden; }
.post .post__img img { display: block; width: 100%; height: 100%; padding: 0; object-fit: cover; object-position: center; transition: transform .35s ease; }
.post:hover .post__img img { transform: scale(1.04); }

/* ===== Giải thưởng / chứng nhận thương hiệu (dưới dải đối tác) ===== */
.award__fig { margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 28px rgba(10, 30, 80, .18); background: #0b1530; }
.award__fig img { display: block; width: 100%; height: auto; }

/* ===== Header điện thoại / máy tính bảng: 1 hàng gọn (☰ · logo · tìm · gọi · giỏ), ô tìm kiếm mở khi bấm kính lúp ===== */
.sh-find { display: none; }
@media (max-width: 1023px) {
  .sh .sh__main { grid-template-columns: 40px minmax(0, 1fr) auto auto; grid-template-areas: "menu brand find act" "search search search search";
    gap: 0 2px; padding: 6px 10px 6px 6px; align-items: center; }
  .sh .brand { justify-self: start; min-width: 0; }
  .sh .brand__logo { width: 40px; height: auto; }
  .sh .sh-find { grid-area: find; display: inline-grid; color: var(--navy, #0b1f4d); }
  .sh .sh-find .i { width: 23px; height: 23px; }
  .sh .sh__actions { gap: 0; }
  .sh .sh-search { display: none; }
  .sh.is-searching .sh-search { display: flex; margin-top: 6px; animation: sh-drop .18s ease-out; }
  .sh.is-searching .sh-find { background: var(--blue-50, #eef4ff); color: var(--blue-600); }
  .sh.is-searching .sh-find .i { transform: scale(.92); }
}
@keyframes sh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sh.is-searching .sh-search { animation: none; } }


/* ===== Mô tả dưới mỗi khối trang chủ: hiện 3 dòng, "Xem thêm" mở hết (CRM → Tuỳ biến trang chủ → Thứ tự & mô tả khối) ===== */
.sec-desc { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); color: #4b5563; font-size: 14.5px; line-height: 1.65; }
.sec-desc__body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sec-desc__body > :first-child { margin-top: 0; }
.sec-desc__body p, .sec-desc__body ul, .sec-desc__body ol { margin: 0 0 8px; }
.sec-desc__body h2, .sec-desc__body h3, .sec-desc__body h4 { margin: 10px 0 6px; font-size: 16px; color: var(--navy, #0b1f4d); }
.sec-desc__body img { max-width: 100%; height: auto; border-radius: 8px; }
.sec-desc.is-open .sec-desc__body { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.sec-desc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--blue-600); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sec-desc__more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sec-desc.is-open .sec-desc__more::after { transform: rotate(-135deg) translate(-2px, 0); }
.sec-desc__more:hover { color: var(--red-600, #d71920); }
/* khối nền tối (Vì sao chọn) */
.why2 .sec-desc { color: rgba(255, 255, 255, .86); border-top-color: rgba(255, 255, 255, .25); }
.why2 .sec-desc__more { color: #ffd34d; }

/* Mô tả danh mục đặt dưới tên danh mục, trên danh sách xe */
.sec-desc--top { margin: 0 0 14px; padding: 0 0 10px; border-top: 0; border-bottom: 1px dashed var(--line); }
.cat-intro { margin-top: 14px; }
.cat-intro .sec-desc__body { -webkit-line-clamp: 4; line-clamp: 4; }
.cat-intro .prose > :first-child { margin-top: 0; }

/* ===== Video ngắn YouTube Shorts / Facebook Reels (trang chủ) ===== */
.shorts__follow { display: flex; flex-wrap: wrap; gap: 8px; }
.shorts__list { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2.3); gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shorts__list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .shorts__list { grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; } }
@media (min-width: 1024px) { .shorts__list { grid-auto-columns: calc((100% - 80px) / 6); gap: 16px; } }
.shorts__item { scroll-snap-align: start; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0b1f4d; }
.shorts__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0b1f4d; color: #fff; text-align: left; }
.shorts__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shorts__btn:hover img { transform: scale(1.05); }
.shorts__btn--fb { background: linear-gradient(160deg, #1877f2, #0b1f4d); }
.shorts__fb { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font: 900 64px/1 system-ui, sans-serif; opacity: .9; }
.shorts__play { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.55); box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.shorts__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.shorts__tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; }
.shorts__tag--yt { background: #ff0033; }
.shorts__tag--fb { background: #1877f2; }
.shorts__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; font-size: 13px; font-weight: 600; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.shorts__frame { display: block; width: 100%; height: 100%; border: 0; }

/* Khối chọn xe theo nhu cầu: dòng mô tả ngắn (bật ở CRM) */
.need__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 2px 0 4px; font-size: 12.5px; line-height: 1.45; color: #5b6880; font-weight: 500; }

/* ===== Banner video: kích thước chọn ở CRM, mũi tên + chấm chuyển video ===== */
.hv { aspect-ratio: var(--hv-r, 16 / 9); }
@media (max-width: 767px) { .hv { aspect-ratio: var(--hv-rm, var(--hv-r, 16 / 9)); max-height: 88vh; } }
@media (min-width: 768px) { .hv--full { aspect-ratio: auto; height: calc(100svh - 120px); min-height: 360px; max-height: none; } }
@media (max-width: 767px) { .hv--full-m { aspect-ratio: auto; height: calc(100svh - 140px); min-height: 300px; max-height: none; } }
.hv--contain .hv__poster, .hv--contain .hv__video { object-fit: contain; }
.hv-wrap { margin-top: 12px; }
.hv--box { border-radius: 14px; }
.hv__arrow { top: 50%; width: 44px; height: 44px; transform: translateY(-50%); opacity: .85; }
.hv__arrow:hover { opacity: 1; background: rgba(10, 20, 50, .8); }
.hv__arrow .i { width: 22px; height: 22px; }
.hv__arrow--prev { left: max(12px, env(safe-area-inset-left)); }
.hv__arrow--prev .i { transform: rotate(180deg); }
.hv__arrow--next { right: max(12px, env(safe-area-inset-right)); }
.hv__dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: flex; gap: 6px; transform: translateX(-50%); }
.hv__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s, background .25s; }
.hv__dots button.is-active { width: 24px; background: #fff; }
@media (max-width: 767px) { .hv__arrow { width: 36px; height: 36px; } .hv__arrow--prev { left: 8px; } .hv__arrow--next { right: 8px; } .hv__dots { bottom: 10px; } }

/* ===== Thư viện ảnh khách hàng nhận xe: chú thích viết dưới ảnh ===== */
.gl__desc { margin: -4px 0 14px; color: #4b5563; font-size: 14.5px; line-height: 1.6; }
.gl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .gl__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.gl__grid--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2.15); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.gl__grid--row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .gl__grid--row { grid-template-columns: none; grid-auto-columns: calc((100% - 28px) / 3); } }
@media (min-width: 1024px) { .gl__grid--row { grid-template-columns: none; grid-auto-columns: calc((100% - 48px) / 4); } }
.gl__item { margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-snap-align: start; }
.gl__item[hidden] { display: none; }
.gl__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f9; }
.gl__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gl__item:hover .gl__img img { transform: scale(1.05); }
.gl__cap { display: grid; gap: 3px; padding: 9px 11px 11px; font-size: 13px; line-height: 1.45; color: #4b5563; }
.gl__cap b { color: var(--navy, #0b1f4d); font-size: 13.5px; font-weight: 700; }
.gl__more { margin-top: 14px; }

/* ===== Tin tức trang chủ: hàng trượt nhiều bài, mũi tên ‹ › ===== */
.news.news--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; overscroll-behavior-x: contain; }
@media (min-width: 640px) { .news.news--row { grid-auto-columns: calc((100% - 16px) / 2.15); gap: 16px; } }
@media (min-width: 1024px) {
  .news.news--row { grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; gap: 20px; }
  .news.news--3 { grid-auto-columns: calc((100% - 40px) / 3); }
  .news.news--4 { grid-auto-columns: calc((100% - 60px) / 4); }
}
.news-slider .post { scroll-snap-align: start; }

/* Về chúng tôi: ảnh bên trái (chọn ở CRM) */
@media (min-width: 900px) { .h-about--img-left { grid-template-columns: .9fr 1.1fr; } .h-about--img-left .h-about__photo { order: -1; } }
.h-about__body > p + p { margin-top: 10px; }

/* Ảnh xe đã gắn khung trong file (khổ 4:3): hiện trọn ảnh, không cắt khung, không phóng to */
.product .product__img.is-framed img, .product:hover .product__img.is-framed img { aspect-ratio: 4 / 3; object-fit: contain; object-position: center; padding: 0; transform: none; background: #fff; }
.pd__main.is-framed, .pd__main.is-framed:has(img[src]) { aspect-ratio: 4 / 3; padding: 0; background: #fff; }
.pd__main.is-framed > img, .pd__main.is-framed > img[src] { object-fit: contain; transform: none; }

/* Thư viện bàn giao: 2 hàng trượt ngang, thẻ có mô tả ngắn + link chi tiết */
.gl__grid--row.gl__grid--2 { grid-template-rows: repeat(2, auto); }
.gl-slider > .cat-slider__btn { top: calc(50% - 20px); }
.gl__img { position: relative; }
.gl__n { position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(8, 18, 45, .78); color: #fff; font-size: 11.5px; font-weight: 700; }
.gl__cap { flex: 1; align-content: start; }
.gl__cap b, .gl__ex { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; }
.gl__ex { -webkit-line-clamp: 3; line-clamp: 3; }
.gl__cap b a { color: inherit; }
.gl__link { color: var(--blue-600); font-weight: 700; }
.article__album { margin-top: 24px; }
.article__album h2 { margin: 0 0 12px; font-size: 20px; color: var(--navy, #0b1f4d); }
@media (min-width: 640px) { .article__album .gl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
