/* =========================================================
   Nguyên Việt — mockup website bánh xe & phụ kiện
   Tokens lấy từ logo (đỏ NV) + vật liệu bánh xe (thép mạ, gang, cao su)
   ========================================================= */
:root {
  --brand: #9b0a0a;          /* đỏ logo NV */
  --brand-dark: #6f0606;
  --brand-tint: #f7e9e9;
  --accent: #f2c200;         /* vàng băng cảnh báo sàn xưởng — dùng rất ít */
  --ink: #202428;            /* graphite / gang */
  --ink-2: #3a4046;
  --muted: #5d656d;
  --line: #d9dcdf;
  --steel: #e9ebec;          /* thép mạ kẽm */
  --steel-2: #f4f5f6;
  --bg: #ffffff;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(32,36,40,.06), 0 8px 24px -12px rgba(32,36,40,.18);
  --container: 1240px;
  --header-h: 76px;
  --f-display: "Archivo", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; font-stretch: 100%; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 800; font-stretch: 87%; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; font-stretch: 87%; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); }
.btn-zalo { background: #0068ff; color: #fff; }
.btn-zalo:hover { background: #0050c8; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); border-bottom: 2px solid transparent; padding-bottom: 2px; }
.link-more:hover { border-color: currentColor; }
.link-more svg { width: 18px; height: 18px; flex: none; }
.sec-head .link-more { white-space: nowrap; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #c9ced3; font-size: .82rem; display: none; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 24px; }
.topbar ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; font-weight: 600; }
@media (min-width: 1024px) { .topbar { display: block; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.35); }
.site-header > .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .25s; }
.site-header.is-scrolled > .container { height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; font-stretch: 90%; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; color: var(--muted); }
.nav { display: none; margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; background: none; border: 0;
}
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.caret { width: 12px; height: 12px; flex: none; transition: transform .2s; }
.drawer details[open] .caret { transform: rotate(180deg); }
.header-cta { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}
.menu-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mega menu */
.mega {
  position: fixed; left: 0; right: 0; top: calc(var(--mega-top, 114px)); background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-mega.is-open .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega.is-open .caret { transform: rotate(180deg); }
.mega-inner { display: grid; grid-template-columns: 1fr 280px; gap: 32px; padding: 28px 28px 32px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mega-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); border: 1px solid transparent; }
.mega-item:hover { border-color: var(--line); background: var(--steel-2); }
.mega-item .thumb { width: 76px; height: 76px; background: var(--steel); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.mega-item .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mega-item b { display: block; font-size: .95rem; line-height: 1.3; }
.mega-item small { color: var(--muted); font-size: .8rem; }
.mega-side { border-left: 1px solid var(--line); padding-left: 28px; }
.mega-side h4 { font-size: .85rem; color: var(--muted); font-family: var(--f-body); font-weight: 600; margin-bottom: 10px; }
.mega-side ul { list-style: none; padding: 0; margin: 0 0 18px; }
.mega-side li a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--steel); font-weight: 600; }
.mega-side li a:hover { color: var(--brand); }
.mega-side li span { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Off-canvas */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,22,24,.5); z-index: 80; opacity: 0; visibility: hidden; transition: .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; z-index: 90;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer nav { overflow-y: auto; padding: 8px 16px 24px; flex: 1; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li > a, .drawer summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--steel); font-weight: 700; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details ul { padding: 4px 0 8px 12px; }
.drawer details li a { display: flex; justify-content: space-between; padding: 9px 4px; color: var(--ink-2); font-size: .95rem; }
.drawer details li span { color: var(--muted); font-size: .82rem; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--steel); overflow: hidden; }
.hero-track { position: relative; min-height: 640px; }
.slide {
  position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide .container { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding-top: 36px; padding-bottom: 96px; }
.slide-copy { position: relative; z-index: 2; max-width: 620px; }
.slide-num { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-weight: 700; color: var(--brand); margin-bottom: 14px; font-size: .95rem; }
.slide-num b { font-size: 1.5rem; font-stretch: 75%; }
.slide-copy p { font-size: 1.08rem; color: var(--ink-2); max-width: 52ch; margin: 18px 0 26px; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.slide-media img { position: relative; z-index: 2; width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide-spec {
  position: absolute; z-index: 3; right: 4%; bottom: 10%; background: #fff; border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow); font-size: .82rem; line-height: 1.35; color: var(--muted);
}
.slide-spec b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-stretch: 80%; color: var(--ink); }
/* Bánh xe "lăn" sau ảnh: xoay theo slide */
.tread {
  position: absolute; inset: 4%; z-index: 1; border-radius: 50%;
  transition: transform 1.1s cubic-bezier(.3,.7,.2,1);
}
.tread svg { width: 100%; height: 100%; }
/* chữ vào lần lượt */
.js .slide .slide-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.js .slide.is-active .slide-copy > *:nth-child(2) { transition-delay: .08s; }
.js .slide.is-active .slide-copy > *:nth-child(3) { transition-delay: .16s; }
.js .slide.is-active .slide-copy > *:nth-child(4) { transition-delay: .24s; }
.hero-ui { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; }
.hero-ui .container { display: flex; align-items: center; gap: 18px; }
.dots { display: flex; gap: 8px; flex: 1; }
.dot { flex: 1; max-width: 120px; height: 34px; background: none; border: 0; padding: 0; position: relative; text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; }
.dot::before, .dot i { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(32,36,40,.16); }
.dot i { right: auto; width: 0; background: var(--brand); }
.dot span { position: absolute; top: 10px; left: 0; white-space: nowrap; }
.dot.is-active { color: var(--ink); }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(32,36,40,.2); background: #fff; display: grid; place-items: center; }
.hero-arrows button:hover { background: var(--ink); color: #fff; }
.hero-arrows svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .hero-track { min-height: 800px; }
  .slide .container { padding-top: 20px; padding-bottom: 110px; }
  .slide-media { max-width: 290px; order: -1; }
  .slide-copy p { font-size: 1rem; margin: 14px 0 20px; }
  .dot span { display: none; }
  .hero-arrows { display: none; }
}
@media (min-width: 900px) {
  .slide .container { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-bottom: 80px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--steel-2); }
@media (min-width: 1024px) { .section { padding: 104px 0; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head > div { max-width: 680px; }
.eyebrow { display: block; color: var(--brand); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.sec-head p { color: var(--muted); margin: 14px 0 0; font-size: 1.04rem; }

/* ---------- Policy strip ---------- */
.policy-strip { border-bottom: 1px solid var(--line); background: #fff; }
.policy-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.policy-strip li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--steel); }
.policy-strip li:last-child { border-bottom: 0; }
.policy-strip svg { width: 32px; height: 32px; color: var(--brand); }
.policy-strip b { display: block; font-size: .95rem; }
.policy-strip span { font-size: .85rem; color: var(--muted); }
@media (min-width: 768px) { .policy-strip ul { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1100px) { .policy-strip ul { grid-template-columns: repeat(4, 1fr); } .policy-strip li { border-bottom: 0; border-right: 1px solid var(--steel); padding: 22px 18px 22px 0; } .policy-strip li:last-child { border-right: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.about-collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: end; }
.about-collage figure { margin: 0; background: var(--steel); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; display: grid; place-items: center; }
.about-collage figure:last-of-type { aspect-ratio: 1; margin-bottom: 48px; }
.about-collage img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.about-badge {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); width: max-content; max-width: 92%;
}
.about-badge b { font-family: var(--f-display); font-size: 2.2rem; font-stretch: 75%; line-height: 1; }
.about-badge span { font-size: .85rem; line-height: 1.35; }
.about-copy p { color: var(--ink-2); }
.counters { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.counters li { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.counters li:nth-child(odd) { border-right: 1px solid var(--line); }
.counters li:nth-child(even) { padding-left: 20px; }
.counters .num { display: flex; align-items: baseline; gap: 4px; }
.counters b { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); font-stretch: 75%; line-height: 1; color: var(--ink); white-space: nowrap; }
.counters small { font-size: 1rem; font-weight: 700; margin-left: 4px; color: var(--muted); }
.counters span { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- Group cards ---------- */
.group-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .group-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.group-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.group-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.group-card .media { background: var(--steel); aspect-ratio: 16/11; display: grid; place-items: center; position: relative; }
.group-card .media img { width: 70%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.group-card:hover .media img { transform: translateY(-6px) scale(1.04); }
.group-card .tagline { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 99px; padding: 4px 12px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.group-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.group-card .count { font-size: .85rem; color: var(--brand); font-weight: 700; }
.group-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.group-card .go { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.group-card .go svg { width: 16px; height: 16px; transition: transform .2s; }
.group-card:hover .go svg { transform: translateX(4px); }
.group-card a.stretched::after { content: ""; position: absolute; inset: 0; }

.other-cats { margin-top: 28px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .other-cats { grid-template-columns: repeat(3, 1fr); } }
.other-cat { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.other-cat:hover { background: var(--brand); }
.other-cat svg { width: 40px; height: 40px; color: var(--accent); }
.other-cat b { display: block; font-size: 1.02rem; }
.other-cat small { color: #c9ced3; font-size: .82rem; }
.other-cat:hover small { color: #fff; }

/* ---------- Load finder (điểm nhấn) ---------- */
.finder { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.finder::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px); }
.finder .eyebrow { color: var(--accent); }
.finder .sec-head p { color: #b9c0c6; }
.finder-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .finder-grid { grid-template-columns: 380px 1fr; gap: 48px; } }
.finder-panel { background: #2b3036; border-radius: var(--radius-lg); padding: 24px; align-self: start; }
.finder-panel label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: #dfe3e6; }
.finder-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.finder-inputs input, .finder-inputs select {
  width: 100%; height: 48px; border-radius: var(--radius); border: 1px solid #4a5159; background: #1f2327; color: #fff; padding: 0 12px; font: inherit; font-size: 1rem;
}
.finder-readout { border-top: 1px dashed #4a5159; padding-top: 18px; }
.finder-readout .val { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; font-stretch: 72%; line-height: 1; color: var(--accent); }
.finder-readout .val small { font-size: .38em; color: #fff; margin-left: 6px; font-stretch: 100%; }
.finder-readout p { font-size: .85rem; color: #b9c0c6; margin: 10px 0 0; }
.finder-range { margin-top: 18px; }
.finder-range input[type=range] { width: 100%; accent-color: var(--accent); }
.finder-scale { display: flex; justify-content: space-between; font-size: .75rem; color: #8e979f; }
.finder-results { display: grid; gap: 12px; grid-template-columns: 1fr; align-content: start; }
@media (min-width: 640px) { .finder-results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .finder-results { grid-template-columns: repeat(3, 1fr); } }
.finder-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 10px 14px 10px 10px; transition: transform .25s, opacity .25s; }
.finder-card:hover { outline: 2px solid var(--accent); }
.finder-card .thumb { width: 84px; height: 84px; background: var(--steel); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.finder-card .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.finder-card b { display: block; font-size: .95rem; line-height: 1.3; }
.finder-card .meta, .finder-card .load { display: block; font-size: .82rem; color: var(--muted); }
.finder-card .load { color: var(--brand); font-weight: 700; }
.finder-empty { color: #b9c0c6; padding: 24px; border: 1px dashed #4a5159; border-radius: var(--radius); }
.finder-count { font-size: .9rem; color: #b9c0c6; margin-bottom: 12px; grid-column: 1/-1; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.catalog .product-grid { }
@media (min-width: 1024px) { .catalog .product-grid { grid-template-columns: repeat(3, 1fr); } }
.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative; transition: border-color .2s, box-shadow .2s; }
.p-card:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.p-card .media { aspect-ratio: 1; background: var(--steel); display: grid; place-items: center; position: relative; }
.p-card .media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.p-card .code { position: absolute; left: 12px; top: 12px; font-size: .75rem; font-weight: 700; background: #fff; border-radius: 4px; padding: 3px 8px; color: var(--ink-2); }
.p-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card h3 { font-size: 1.02rem; line-height: 1.32; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .78rem; font-weight: 600; background: var(--steel-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; color: var(--ink-2); }
.p-card .actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; position: relative; z-index: 2; padding-top: 6px; }
.p-card .actions .btn { min-height: 42px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; color: #8b939a; font-size: .8rem; text-align: center; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(32,36,40,.035) 10px 20px); }
.noimg svg { width: 42%; height: auto; max-width: 120px; opacity: .55; }

/* ---------- Why ---------- */
.why { position: relative; }
.why-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .why-item { padding: 32px 28px; } .why-item:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1024px) { .why-item:nth-child(odd) { border-right: 0; } .why-item:not(:nth-child(3n)) { border-right: 1px solid var(--line); } .why-item:nth-child(3n+1) { padding-left: 0; } }
.why-item svg { width: 36px; height: 36px; color: var(--brand); margin-bottom: 16px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; }
.cta-band .container { display: grid; gap: 22px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band p { font-size: 1.18rem; margin: 0; max-width: 62ch; font-weight: 500; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* ---------- Steps (quy trình) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 26px 22px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; font-stretch: 70%; color: var(--brand); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Marquee ứng dụng ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.25rem, 2.4vw, 1.9rem); padding: 22px 0; white-space: nowrap; color: var(--ink-2); display: flex; align-items: center; }
.marquee li::after { content: ""; width: 14px; height: 14px; margin: 0 28px; border-radius: 50%; border: 3px solid var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- News ---------- */
.news-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .news-grid { grid-template-columns: 1.6fr 1fr; gap: 40px; } }
.news-feature { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-feature { grid-template-columns: 1fr 1fr; } }
.news-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px; padding: 24px; border-radius: var(--radius-lg); background: var(--steel); }
.news-card:nth-child(2) { background: var(--ink); color: #fff; }
.news-card .meta { font-size: .85rem; font-weight: 600; color: var(--brand); }
.news-card:nth-child(2) .meta { color: var(--accent); }
.news-card h3 { font-size: 1.3rem; font-stretch: 90%; }
.news-card a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.news-list li a:hover { color: var(--brand); }
.news-list small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact-lines { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-lines li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-lines svg { width: 24px; height: 24px; color: var(--brand); justify-self: center; }
.contact-lines small { display: block; color: var(--muted); font-size: .82rem; }
.contact-lines b, .contact-lines a { font-weight: 700; }
.contact-lines a:hover { color: var(--brand); }
.contact-card { background: var(--steel-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.contact-card h3 { margin-bottom: 6px; font-size: 1.3rem; }
.contact-card > p { color: var(--muted); font-size: .93rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1/-1; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid #c3c8cd; border-radius: var(--radius); padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-done { display: none; padding: 16px; border-radius: var(--radius); background: #e9f6ee; border: 1px solid #a8d9b8; color: #17532d; font-size: .93rem; }
.form-done.is-on { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ced3; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand b { color: #fff; display: block; margin-bottom: 6px; }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid #3a4046; padding: 18px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Mobile action bar & floating contact ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(0,0,0,.4); }
.mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .75rem; font-weight: 700; background: none; border: 0; }
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar .is-primary { background: var(--brand); color: #fff; }
.mobile-bar .is-zalo { color: #0068ff; }
body { padding-bottom: 60px; }
@media (min-width: 768px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }
.float-contact { position: fixed; right: 18px; bottom: 22px; z-index: 55; display: none; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .float-contact { display: flex; } }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); transition: transform .2s; }
.float-contact a:hover { transform: scale(1.08); }
.float-contact svg { width: 24px; height: 24px; }
.float-contact .f-call { background: var(--brand); }
.float-contact .f-zalo { background: #0068ff; font-weight: 800; font-size: .8rem; }
.float-contact .f-fb { background: #1877f2; }

/* ---------- Modal báo giá ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(20,22,24,.6); opacity: 0; visibility: hidden; transition: .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; transform: translateY(12px); transition: transform .25s; }
.modal.is-open .modal-box { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 8px; }
.modal-head h2 { font-size: 1.5rem; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }
.modal-close svg { width: 18px; height: 18px; }
.modal-sub { color: var(--muted); font-size: .93rem; }
.quick-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
.quick-contact .btn { padding: 0 8px; font-size: .85rem; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Page header (trang con) ---------- */
.page-head { background: var(--steel); padding: 40px 0 44px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #a3aab0; }
.breadcrumb a:hover { color: var(--brand); }
.page-head p { color: var(--ink-2); margin: 14px 0 0; max-width: 70ch; }

/* ---------- Catalog ---------- */
.catalog { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 270px 1fr; gap: 40px; } }
.filters { align-self: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: 92px; } }
.filter-block { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-block:first-child { padding-top: 0; }
.filter-block h3 { font-family: var(--f-body); font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 8px 10px; border-radius: var(--radius); border: 0; background: none; font-size: .93rem; }
.filter-list button:hover { background: var(--steel-2); }
.filter-list button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter-list button span { font-size: .8rem; opacity: .7; }
.filter-list .sub button { padding-left: 24px; font-size: .88rem; }
.search-box { position: relative; }
.search-box input { width: 100%; height: 46px; border: 1px solid #c3c8cd; border-radius: var(--radius); padding: 0 12px 0 40px; font: inherit; }
.search-box svg { position: absolute; left: 12px; top: 13px; width: 20px; height: 20px; color: var(--muted); }
.load-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.load-chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }
.load-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.catalog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.catalog-bar p { margin: 0; color: var(--muted); font-size: .93rem; }
.catalog-empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }
@media (max-width: 1023px) { .filters[data-collapsed="true"] .filter-collapsible { display: none; } }

/* ---------- Product detail ---------- */
.pd { display: grid; gap: 32px; padding: 36px 0 24px; }
@media (min-width: 1024px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.pd-gallery .main { background: var(--steel); border-radius: var(--radius-lg); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pd-gallery .main img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 84px; height: 84px; border-radius: var(--radius); border: 2px solid transparent; background: var(--steel); padding: 4px; }
.pd-thumbs button[aria-current="true"] { border-color: var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pd-code { display: inline-block; margin-bottom: 12px; font-size: .85rem; font-weight: 700; color: var(--brand); }
.pd-lead { color: var(--ink-2); font-size: 1.04rem; margin: 16px 0 20px; }
.pd-keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; }
.pd-keys div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.pd-keys div:nth-child(2n) { border-right: 0; }
.pd-keys div:nth-last-child(-n+2) { border-bottom: 0; }
.pd-keys small { display: block; color: var(--muted); font-size: .8rem; }
.pd-keys b { font-family: var(--f-display); font-size: 1.25rem; font-stretch: 85%; }
.price-note { display: flex; gap: 12px; align-items: center; background: var(--brand-tint); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; font-size: .93rem; color: var(--brand-dark); }
.price-note svg { width: 24px; height: 24px; flex: none; }
.pd-cta { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.pd-cta .btn-primary { grid-column: 1/-1; }
.pd-section { padding: 40px 0; border-top: 1px solid var(--line); }
.pd-section h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 20px; }
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
table.spec th, table.spec td { white-space: nowrap; padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.spec thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .82rem; white-space: nowrap; position: sticky; top: 0; }
table.spec tbody tr:nth-child(even) { background: var(--steel-2); }
table.spec tbody tr:hover { background: var(--brand-tint); }
table.spec td:first-child { font-weight: 600; }
.spec-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.desc-cols { display: grid; gap: 32px; }
@media (min-width: 900px) { .desc-cols { grid-template-columns: 1fr 1fr; gap: 56px; } }
.desc-cols h3 { margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--brand); }
.notice { font-size: .85rem; color: var(--muted); background: var(--steel-2); border-left: 3px solid var(--accent); padding: 10px 14px; margin-top: 20px; }

/* ---------- Prose (chính sách, bài viết) ---------- */
.prose { max-width: 760px; padding: 48px 0 80px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.policy-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .policy-layout { grid-template-columns: 240px 1fr; gap: 56px; } }
.toc { align-self: start; padding-top: 48px; }
@media (min-width: 1024px) { .toc { position: sticky; top: 92px; } }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .93rem; }
.toc a:hover { color: var(--brand); }
.post-list { display: grid; gap: 16px; padding-top: 40px; padding-bottom: 80px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-list .news-card { min-height: 220px; }
.post-list .news-card:nth-child(2) { background: var(--steel); color: inherit; }
.post-list .news-card:nth-child(2) .meta { color: var(--brand); }
.post-list .news-card:nth-child(3n+1) { background: var(--ink); color: #fff; }
.post-list .news-card:nth-child(3n+1) .meta { color: var(--accent); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--steel); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Font picker (công cụ duyệt — gỡ khi lên production) ---------- */
.fontpick { position: fixed; left: 12px; bottom: 72px; z-index: 70; opacity: .85; }
.fontpick:hover, .fontpick.is-open { opacity: 1; }
@media (min-width: 768px) { .fontpick { bottom: 20px; } }
.fontpick > button { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: #fff; border: 0; font-weight: 700; font-size: .82rem; box-shadow: var(--shadow); }
.fontpick-panel { position: absolute; bottom: 48px; left: 0; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow); display: none; }
.fontpick.is-open .fontpick-panel { display: grid; gap: 4px; }
.fontpick-panel button { text-align: left; padding: 10px; border-radius: var(--radius); border: 1px solid transparent; background: none; }
.fontpick-panel button:hover { background: var(--steel-2); }
.fontpick-panel button[aria-pressed="true"] { border-color: var(--brand); }
.fontpick-panel b { display: block; font-size: 1rem; }
.fontpick-panel small { color: var(--muted); font-size: .78rem; }
.fontpick-panel p { font-size: .75rem; color: var(--muted); margin: 6px 6px 2px; }

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal="up"] { transform: translateY(28px); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.95); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .slide .slide-copy > * { opacity: 1 !important; transform: none !important; }
}
