/* ═══════════════════════════════════════════════════════════
   DUNKIE SHOP — web v2  |  styles.css
   Hướng thiết kế (26/10/2026, lần 2): "trạm giao tài khoản tự động".
   Nền teal mực lấy từ logo, cyan = tín hiệu hệ thống, cam = chỉ nút mua, mint = trạng thái đang chạy.
   Font: Space Grotesk (tiêu đề), Geist (chữ), Geist Mono (mã đơn, đồng hồ). Mặc định giao diện tối.
   Điểm nhấn duy nhất: khung "Mua nhanh" có dải trạng thái giao hàng chạy trong hero.
   ═══════════════════════════════════════════════════════════ */

/* ───────── 1. Tokens ───────── */
:root,
:root[data-theme="dark"] {
  --bg: #04131a;
  --bg-2: #061b23;
  --surface: #0a222b;
  --surface-2: #0e2b36;
  --surface-3: #143746;
  --line: rgba(130, 214, 235, .12);
  --line-2: rgba(130, 214, 235, .24);
  --text: #e9f6f9;
  --text-2: #a3c0c8;
  --text-3: #75939c;
  --cyan: #3fd6ee;
  --cyan-ink: #032029;
  --cyan-soft: rgba(63, 214, 238, .12);
  --coral: #ff6b3d;
  --coral-hover: #ff8459;
  --on-coral: #1d0800;
  --price: #ff8a63;
  --mint: #3ee6a8;
  --mint-soft: rgba(62, 230, 168, .12);
  --warn: #ffc56b;
  --warn-soft: rgba(255, 197, 107, .1);
  --glow-a: rgba(63, 214, 238, .20);
  --glow-b: rgba(255, 107, 61, .10);
  --grid-dot: rgba(130, 214, 235, .10);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .75);
  --logo-bg: #ffffff;
  color-scheme: dark;

  /* Bí danh cho checkout.js / cart.js (tên biến cũ) */
  --border: var(--line);
  --border-strong: var(--line-2);
  --brand: var(--cyan);
  --brand-soft: var(--cyan-soft);
  --cta: var(--coral);
  --cta-hover: var(--coral-hover);
  --cta-soft: rgba(255, 107, 61, .12);
  --ok: var(--mint);
  --ok-soft: var(--mint-soft);

  --font-display: 'Space Grotesk', 'Geist', system-ui, sans-serif;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;

  --t-hero: clamp(34px, 3.9vw, 56px);
  --t-h2: clamp(26px, 2.8vw, 38px);
  --t-h3: 18px;
  --t-body: 16px;
  --t-small: 14px;
  --t-tiny: 12.5px;

  --r-card: 18px;
  --r-ctl: 12px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 68px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="light"] {
  --bg: #f1f6f8;
  --bg-2: #e7f0f3;
  --surface: #ffffff;
  --surface-2: #f2f7f9;
  --surface-3: #e2edf1;
  --line: #d6e4e9;
  --line-2: #b9d1d9;
  --text: #06202a;
  --text-2: #45626c;
  --text-3: #66828b;
  --cyan: #0a8aa3;
  --cyan-ink: #ffffff;
  --cyan-soft: rgba(10, 138, 163, .09);
  --price: #d4461a;
  --mint: #0a8f5d;
  --mint-soft: rgba(10, 143, 93, .1);
  --warn: #8a5a00;
  --warn-soft: #fbf1d9;
  --glow-a: rgba(10, 138, 163, .14);
  --glow-b: rgba(255, 107, 61, .08);
  --grid-dot: rgba(6, 32, 42, .07);
  --shadow-lg: 0 30px 60px -36px rgba(6, 32, 42, .35);
  --logo-bg: #ffffff;
  color-scheme: light;
}

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--tabbar-h);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: .88em; font-weight: 500; padding: .12em .45em; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--cyan-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--coral); color: var(--on-coral); padding: 8px 14px; border-radius: var(--r-ctl); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }

/* ───────── 3. Buttons ───────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { font-size: 1.1em; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: var(--t-small); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-cta { background: var(--coral); color: var(--on-coral); font-weight: 700; box-shadow: 0 10px 30px -12px rgba(255, 107, 61, .7); }
.btn-cta:hover { background: var(--coral-hover); box-shadow: 0 14px 34px -12px rgba(255, 107, 61, .85); }
.btn-cta:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost, .btn-soft, .btn-paper, .btn-ink { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover, .btn-soft:hover, .btn-paper:hover, .btn-ink:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-dev { background: var(--warn-soft); color: var(--warn); border: 1px dashed currentColor; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(130, 214, 235, .16);
  color: #dff3f7; font-size: 19px;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(63, 214, 238, .12); border-color: rgba(63, 214, 238, .45); }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--t-small); color: var(--cyan); white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: .25em; }
.link-arrow { font-weight: 600; color: var(--cyan); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ───────── 4. Env ribbon (DEV) ───────── */
.env-ribbon { position: relative; z-index: 60; background: #f0a500; color: #2b1d00; font-size: 13px; font-weight: 600; text-align: center; padding: 4px 12px; }
.env-ribbon b { margin-right: 6px; }
.env-ribbon code { background: rgba(0, 0, 0, .12); color: inherit; }
.env-ribbon a { text-decoration: underline; margin-left: 4px; }

/* ───────── 5. Header (luôn tối: logo chữ màu bạc) ───────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 17, 23, .78);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(130, 214, 235, .12);
  color: #e9f6f9;
}
:root[data-theme="light"] .header { background: rgba(4, 19, 26, .97); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-word { width: 148px; height: auto; }

.header-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(130, 214, 235, .16);
  color: #8fb0b9;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: #3fd6ee; box-shadow: 0 0 0 4px rgba(63, 214, 238, .15); }
.header-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #e9f6f9; font-size: var(--t-small); }
.header-search input::placeholder { color: #7f9fa8; }

.header-nav { display: flex; gap: 2px; margin-left: auto; }
.header-nav a { padding: 9px 12px; white-space: nowrap; border-radius: 10px; color: #a3c0c8; font-weight: 500; font-size: var(--t-small); transition: color .2s, background-color .2s; }
.header-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.header-nav a.active { color: #3fd6ee; }
.header-end { display: flex; align-items: center; gap: 8px; }
.header .btn-ghost { background: rgba(255, 255, 255, .05); color: #e9f6f9; border-color: rgba(130, 214, 235, .2); }
.header .btn-ghost:hover { color: #3fd6ee; border-color: #3fd6ee; }

.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
.mobile-only { display: none; }

/* ───────── 6. Logo tiles ───────── */
.logo-tile {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: var(--logo-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.logo-tile img { width: 72%; height: 72%; object-fit: contain; }
.logo-initials { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: hsl(var(--h) 60% 30%); }
.logo-tile:has(.logo-initials:not([hidden])) { background: hsl(var(--h) 60% 90%); }
.logo-tile.xs { width: 32px; height: 32px; border-radius: 9px; }
.logo-tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.logo-tile.sm .logo-initials, .logo-tile.xs .logo-initials { font-size: 13px; }
.logo-tile.md { width: 64px; height: 64px; border-radius: 16px; }
.logo-tile.xl { width: 132px; height: 132px; border-radius: 30px; }
.logo-tile.xl .logo-initials { font-size: 40px; }

/* ───────── 7. Sections ───────── */
.section { padding: 88px 0; }
.section-tight { padding: 0 0 88px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { font-size: var(--t-h2); letter-spacing: -.03em; }
.section-sub { margin-top: 8px; max-width: 60ch; color: var(--text-2); }

/* ───────── 8. Hero ───────── */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 40px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 8%, var(--glow-a), transparent 65%),
    radial-gradient(520px 380px at 6% 92%, var(--glow-b), transparent 65%);
}
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }

.hero-title { font-size: var(--t-hero); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; }
.hero-title .line { display: block; }
@media (min-width: 1025px) { .hero-title .line { white-space: nowrap; } }
.hero-title .line + .line { color: var(--cyan); }
.hero-sub { margin-top: 22px; max-width: 34em; font-size: 18px; color: var(--text-2); }

.hero-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px; max-width: 540px; padding: 6px 6px 6px 18px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft), var(--shadow-lg); }
.hero-search > svg { font-size: 20px; color: var(--text-3); }
.hero-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search .btn { min-height: 46px; padding-inline: 22px; }

.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--t-small); }
.hero-pop span { color: var(--text-3); margin-right: 2px; }
.hero-pop a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); transition: color .2s, border-color .2s; }
.hero-pop a:hover { color: var(--cyan); border-color: var(--cyan); }

/* Khung "Mua nhanh": điểm nhấn của trang */
.console {
  position: relative; padding: 22px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.console::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .8; }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.console-head h2 { font-size: 18px; }
.console-live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-tiny); font-weight: 500; color: var(--mint); }
.console-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(62, 230, 168, .6); } 100% { box-shadow: 0 0 0 8px rgba(62, 230, 168, 0); } }

.qb-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qb-prod {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px;
  padding: 8px 10px; border-radius: var(--r-ctl);
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  text-align: left; font-size: var(--t-small); font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.qb-prod span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-prod:hover { border-color: var(--line-2); color: var(--text); }
.qb-prod[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan-soft); color: var(--text); font-weight: 600; }
.qb-prod.skeleton { animation: pulse 1.2s ease-in-out infinite alternate; }

.qb-body { margin-top: 14px; display: grid; gap: 8px; }
.qb-plans { display: grid; gap: 6px; }
.qb-plan {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px;
  width: 100%; padding: 11px 14px; border-radius: var(--r-ctl);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  text-align: left;
  transition: border-color .2s, background-color .2s;
}
.qb-plan::before { content: ''; grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.qb-plan:hover { border-color: var(--line-2); }
.qb-plan[aria-checked="true"] { border-color: var(--cyan); background: var(--cyan-soft); }
.qb-plan[aria-checked="true"]::before { border-color: var(--cyan); background: var(--cyan); box-shadow: inset 0 0 0 3px var(--surface-2); }
.qb-plan-name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.qb-plan .leader { display: none; }
.qb-plan-price { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qb-plan small { grid-column: 2 / -1; font-size: var(--t-tiny); color: var(--text-3); }
.qb-more { justify-self: start; margin: 2px 4px 0; font-size: 13px; }
.qb-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.qb-total > span { display: flex; flex-direction: column; font-weight: 600; font-size: var(--t-small); }
.qb-total small { font-size: var(--t-tiny); font-weight: 400; color: var(--text-3); }
.qb-total strong { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--price); font-variant-numeric: tabular-nums; }
.qb-actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-top: 4px; }
.qb-actions .btn:only-child { grid-column: 1 / -1; }
.qb-note { font-size: var(--t-tiny); color: var(--text-3); }
.qb-note b { color: var(--warn); font-weight: 600; }

/* Dải trạng thái giao hàng */
.pipeline { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--bg); border: 1px solid var(--line); }
.pipeline ol { flex: 1; display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.pipeline li { position: relative; flex: 1; padding-top: 14px; font-size: 11.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; transition: color .3s; }
.pipeline li::before { content: ''; position: absolute; left: 0; right: 4px; top: 0; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background-color .3s, box-shadow .3s; }
.pipeline li.is-done { color: var(--text-2); }
.pipeline li.is-done::before { background: var(--mint); }
.pipeline li.is-now { color: var(--cyan); }
.pipeline li.is-now::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.pipeline-time { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--mint); font-variant-numeric: tabular-nums; }

/* Dải cam kết dưới hero */
.trust-bar { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-bar li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-card); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); font-size: var(--t-small); color: var(--text-2); }
.trust-bar svg { flex-shrink: 0; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--cyan-soft); color: var(--cyan); }
.trust-bar b { display: block; font-weight: 600; color: var(--text); }

/* Lần tải đầu: một chuỗi chuyển động duy nhất */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line, .hero-sub, .hero-search, .hero-pop { animation: rise .8s var(--ease-out) both; }
  .hero-title .line:nth-child(2) { animation-delay: .08s; }
  .hero-sub { animation-delay: .16s; }
  .hero-search { animation-delay: .24s; }
  .hero-pop { animation-delay: .3s; }
  .console { animation: console-in 1s var(--ease-out) both .2s; }
  .trust-bar li { animation: rise .7s var(--ease-out) both; }
  .trust-bar li:nth-child(2) { animation-delay: .06s; }
  .trust-bar li:nth-child(3) { animation-delay: .12s; }
  .trust-bar li:nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes console-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }

/* ───────── 9. Thẻ sản phẩm ───────── */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }

.p-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.p-card:hover { border-color: color-mix(in srgb, var(--cyan) 55%, transparent); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6), 0 0 0 1px color-mix(in srgb, var(--cyan) 25%, transparent); }
.p-cover {
  position: relative; display: flex; align-items: flex-end; justify-content: center; height: 132px; padding-bottom: 18px;
  background: radial-gradient(circle at 50% 115%, hsl(var(--h, 190) 80% 55% / .28), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.p-cover .logo-tile { transition: transform .35s var(--ease); }
/* motion.js: phần tử đang chờ GSAP hiện dần → tắt transition để CSS không kéo dài transform/opacity chồng lên GSAP */
.motion-pending { transition: none !important; }
.p-card:hover .p-cover .logo-tile { transform: translateY(-3px); }
.p-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line-2); color: var(--cyan); }
/* 04/11/2026: bỏ backdrop-filter của .badge — mỗi thẻ 1–2 nhãn làm mờ nền (≈ 32 lớp trên trang chủ) khiến cuộn trên điện thoại khựng; nền đặc hơn thay thế */
.badge-live { color: var(--mint); }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.p-name { font-size: var(--t-h3); }
.p-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.p-tagline { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-low { margin-top: 8px; font-size: var(--t-tiny); font-weight: 600; color: var(--warn); }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; }
.p-price { display: flex; flex-direction: column; line-height: 1.15; }
.p-price small { font-size: var(--t-tiny); color: var(--text-3); }
.p-price strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.p-cta { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--cyan-soft); color: var(--cyan); transition: background-color .2s, color .2s; white-space: nowrap; }
.p-card:hover .p-cta { background: var(--coral); color: var(--on-coral); }

.skeleton-card { padding: 16px; gap: 10px; }
.sk { border-radius: 10px; background: var(--surface-3); animation: pulse 1.2s ease-in-out infinite alternate; }
.sk-media { height: 110px; }
.sk-line { height: 16px; }
.sk-line.short { width: 60%; }
@keyframes pulse { from { opacity: 1; } to { opacity: .45; } }

/* ───────── 10. Chips lọc danh mục ───────── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-bottom: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 40px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  font-weight: 500; font-size: var(--t-small);
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip span { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--cyan); border-color: var(--cyan); color: var(--cyan-ink); font-weight: 600; }
.chip.active span { color: inherit; opacity: .7; }

/* ───────── 11. Quy trình ───────── */
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.flow::before { content: ''; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mint) 60%, color-mix(in srgb, var(--cyan) 30%, transparent)); opacity: .45; }
.flow-step { position: relative; }
.flow-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line-2); color: var(--cyan); font-size: 22px; box-shadow: 0 0 0 6px var(--bg), 0 0 24px -6px var(--cyan); }
.section-alt .flow-icon { box-shadow: 0 0 0 6px var(--bg-2), 0 0 24px -6px var(--cyan); }
.flow-idx { display: block; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.flow-step h3 { margin-top: 4px; font-size: var(--t-h3); }
.flow-step p { margin-top: 8px; font-size: var(--t-small); color: var(--text-2); }

/* ───────── 12. Ưu đãi mua kèm ───────── */
.bundle {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 28px 32px; border-radius: 24px;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, var(--coral), var(--cyan));
  background-origin: border-box; background-clip: padding-box, border-box;
}
.bundle-off { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--price); }
.bundle-off small { display: block; margin-bottom: 6px; font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.bundle-copy h2 { font-size: 22px; }
.bundle-copy p { margin-top: 6px; color: var(--text-2); font-size: 15px; max-width: 64ch; }
.bundle-copy a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

/* ───────── 13. Hỏi đáp + bảo hành ───────── */
.faq-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.faq-col .section-title { margin-bottom: 24px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 14px 18px; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; color: var(--text-3); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { padding: 0 18px 18px; color: var(--text-2); font-size: 15px; max-width: 68ch; }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

.warranty-card { margin: 0; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.warranty-card h3 { font-size: 20px; }
.warranty-card figcaption p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.warranty-card table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 14.5px; }
.warranty-card th, .warranty-card td { padding: 14px 10px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.warranty-card thead th { font-size: var(--t-tiny); font-weight: 500; color: var(--text-3); padding-top: 0; }
.warranty-card tbody th { font-weight: 600; }
.warranty-card tbody th code { display: inline-block; margin: 0 4px 4px 0; }
.warranty-card td { color: var(--text-2); }
.warranty-foot { margin-top: 16px; font-size: var(--t-small); color: var(--text-2); }

/* ───────── 14. Page hero + catalog ───────── */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 40px;
  background: radial-gradient(560px 300px at 85% 0%, var(--glow-a), transparent 65%); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.breadcrumb a:hover { color: var(--cyan); }
.page-title { margin-top: 12px; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.035em; }
.page-sub { margin-top: 10px; max-width: 62ch; color: var(--text-2); }

.catalog-wrap { padding-bottom: 88px; }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar .chips { flex: 1; margin: 0; }
.toolbar-end { display: flex; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); color: var(--text-3); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.search-box input { border: 0; outline: 0; background: none; width: 180px; color: var(--text); font-size: 15px; }
.select-box select { height: 42px; padding: 0 36px 0 12px; border-radius: var(--r-ctl); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237593a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; border: 1px solid var(--line); appearance: none; font-weight: 500; font-size: var(--t-small); color: var(--text); cursor: pointer; }
.result-count { margin: 18px 0 14px; font-size: 13px; color: var(--text-3); }
.browse-more { display: flex; justify-content: center; margin-top: 24px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 16px; text-align: center; color: var(--text-2); }

/* ───────── 15. Chi tiết sản phẩm ───────── */
.detail-wrap { padding-top: 24px; padding-bottom: 88px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "media main" "facts main"; column-gap: 40px; row-gap: 16px; margin-top: 18px; align-items: start; }
.detail-media { grid-area: media; }
.detail-main { grid-area: main; }
.detail-facts { grid-area: facts; }
.media-stage {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  aspect-ratio: 1 / .78; padding: 32px; border-radius: 24px;
  background: radial-gradient(circle at 50% 42%, hsl(var(--h, 190) 80% 55% / .3), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.media-stage::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 70%); mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 70%); }
.media-stage > * { position: relative; }
.media-price { font-size: var(--t-small); color: var(--text-2); }
.media-price strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); }
.detail-facts { margin: 0; padding: 6px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.detail-facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 13px 0; }
.detail-facts > div + div { border-top: 1px solid var(--line); }
.detail-facts dt { font-weight: 600; font-size: var(--t-small); }
.detail-facts dd { margin: 0; color: var(--text-2); font-size: var(--t-small); }
.detail-title { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; }
.detail-tagline { margin-top: 10px; color: var(--text-2); max-width: 60ch; }

.picker { margin-top: 24px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pick-group + .pick-group { margin-top: 20px; }
.pick-label { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 10px; }
.pick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px;
  padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font-weight: 500; font-size: 15px; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.opt small { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.opt:hover { border-color: var(--line-2); }
.opt.selected { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); font-weight: 600; }
.opt.selected small { color: var(--cyan); }

.picked { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.picked-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.picked-price strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--price); font-variant-numeric: tabular-nums; }
.picked-price small { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.picked-low { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--warn); }
/* Gói "Nên chọn", "Gói bao gồm" (04/11/2026) */
.opt { position: relative; }
.opt-rec { position: absolute; top: -9px; right: 8px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 16px; background: var(--coral); color: var(--on-coral); }
.picked-rec { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--mint); }
.rec-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--text-2); }
.link-btn { padding: 0; border: 0; background: none; color: var(--cyan); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.includes { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.includes-title { margin: 0 0 8px; font-size: 15px; }
.includes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.includes li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-2); }
.includes li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.price-flip { animation: flip .3s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(6px); } }
.picked-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.picked-lines { margin: 20px 0 0; display: grid; gap: 0; border-radius: 14px; background: var(--surface-2); padding: 4px 16px; }
.picked-lines > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; font-size: var(--t-small); }
.picked-lines > div + div { border-top: 1px solid var(--line); }
.picked-lines dt { font-weight: 600; color: var(--text-3); }
.picked-lines dd { margin: 0; }
.picked-notes { margin: 14px 0 0; padding: 12px 16px 12px 32px; border-radius: 14px; background: var(--warn-soft); color: var(--text-2); font-size: 13.5px; }
.picked-notes li + li { margin-top: 4px; }
.picked-foot { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.picked-foot a { color: var(--cyan); text-decoration: underline; white-space: nowrap; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent); font-size: 14px; }
.upsell .btn { flex-shrink: 0; }

.detail-section { margin-top: 72px; }
.detail-section h2 { font-size: 24px; margin-bottom: 18px; }
.detail-section > p { max-width: 820px; color: var(--text-2); }
.detail-section .rail { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.buy-bar { display: none; }

/* ───────── 16. Hướng dẫn ───────── */
.guide-wrap { padding-top: 40px; padding-bottom: 88px; }
.guide-h2 { margin: 48px 0 16px; font-size: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-wrap > .guide-h2:first-child { margin-top: 0; }
.guide-steps { margin: 0; padding: 20px 22px 20px 48px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.guide-steps li { padding: 8px 0; }
.guide-steps li::marker { font-family: var(--mono); font-weight: 600; color: var(--cyan); }
.guide-steps h3 { font-family: var(--font); font-size: 16px; }
.guide-steps p { margin-top: 2px; color: var(--text-2); font-size: 15px; }
.policy-intro { margin: 0 0 8px; color: var(--text-2); }
.policy-h3 { margin: 26px 0 10px; font-size: 18px; }
.policy-list { margin: 0; padding: 18px 22px 18px 40px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.policy-list li + li { margin-top: 8px; }
.policy-list b { color: var(--text); }

/* ───────── 17. Footer (luôn tối: logo chữ màu bạc) ───────── */
.footer { background: #031016; color: #94b2ba; border-top: 1px solid rgba(130, 214, 235, .12); padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { width: 170px; height: auto; }
.footer-brand p { margin: 14px 0 18px; max-width: 32ch; font-size: var(--t-small); }
.footer .btn-ghost { background: rgba(255, 255, 255, .04); color: #e9f6f9; border-color: rgba(130, 214, 235, .2); }
.footer .btn-ghost:hover { color: #3fd6ee; border-color: #3fd6ee; }
.footer-links h3 { font-family: var(--font); font-size: 14px; font-weight: 600; color: #e9f6f9; margin-bottom: 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--t-small); }
.footer-links a:hover { color: #3fd6ee; }
.contact-list a { color: #e9f6f9; font-weight: 500; }
.footer-legal { padding: 18px var(--gutter); border-top: 1px solid rgba(130, 214, 235, .1); font-size: 13px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.footer-consent { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Popup xin đồng ý thống kê giữa trang (analytics.js): nền mờ, 2 nút cùng kiểu, phải chọn 1 trong 2 */
.consent-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px;
  background: rgba(2, 12, 16, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.consent-modal[hidden] { display: none; }
.consent-card { width: 100%; max-width: 460px; padding: 22px 22px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7); font-size: 14.5px; line-height: 1.55; }
.consent-card h2 { margin: 0 0 10px; color: var(--text); font-size: 19px; line-height: 1.3; }
.consent-card p { margin: 0; }
.consent-more { margin-top: 10px !important; font-size: 13px; color: var(--text-3); }
.consent-more a { color: inherit; text-decoration: underline; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
html.consent-open { overflow: hidden; }

/* ───────── 18. Floating Zalo + tabbar ───────── */
.float-zalo {
  position: fixed; right: 20px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #0068ff; color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 12px 28px -8px rgba(0, 104, 255, .6);
  transition: transform .2s var(--ease);
}
.float-zalo:hover { transform: scale(1.06); }

.tabbar { display: none; }

/* ───────── 19. Search overlay ───────── */
.search-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(2, 12, 16, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 14px; }
.search-overlay-inner { display: flex; gap: 8px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: rise .25s var(--ease); }
.search-overlay .search-box { flex: 1; }
.search-overlay .search-box input { width: 100%; font-size: 16px; }

/* ───────── 20. Modal: giỏ hàng + thanh toán ───────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 12, 16, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.modal-panel {
  position: relative; width: 100%; max-width: 580px; max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .22s, transform .22s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--surface-2); border-color: var(--line); color: var(--text-2); width: 38px; height: 38px; }
.modal-close:hover { color: var(--text); }

.co-steps { list-style: none; display: flex; gap: 6px; margin: 0 44px 20px 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--text-3); }
.co-steps li { display: flex; align-items: center; gap: 6px; flex: 1; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.co-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-family: var(--mono); font-size: 11.5px; }
.co-steps .active { color: var(--cyan); border-color: var(--cyan); }
.co-steps .active span { background: var(--cyan); color: var(--cyan-ink); }
.co-steps .done { color: var(--mint); border-color: var(--mint); }
.co-steps .done span { background: var(--mint); color: #022016; }
.co-title { font-size: 22px; }
.co-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.co-summary-name { font-weight: 600; }
.co-summary-meta { font-size: 13px; color: var(--text-3); }
.co-summary-price { font-family: var(--font-display); font-weight: 600; color: var(--price); font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field label b { color: var(--coral); }
.field input, .field textarea { min-height: 46px; padding: 11px 14px; border-radius: var(--r-ctl); background: var(--bg); border: 1px solid var(--line-2); outline: 0; color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.field small { font-size: 13px; color: var(--text-3); }
.co-error { padding: 10px 12px; border-radius: var(--r-ctl); background: var(--cta-soft); color: var(--price); font-size: 14px; font-weight: 600; }
.co-dev-note { margin-top: 16px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; }

.co-pay { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-top: 16px; align-items: start; }
.qr-frame { position: relative; padding: 12px; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 0 40px -12px var(--cyan); }
.qr-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.qr-scan { position: absolute; left: 10px; right: 10px; height: 3px; top: 12px; border-radius: 3px; background: linear-gradient(90deg, transparent, #3fd6ee, transparent); box-shadow: 0 0 14px 2px rgba(63, 214, 238, .6); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 50% { top: calc(100% - 15px); } }
.qr-corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--coral); }
.qr-corner.tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.qr-corner.tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.qr-corner.bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.qr-corner.br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.co-dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.co-dl > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-dl dt { color: var(--text-3); }
.co-dl dd { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; text-align: right; }
.co-dl .amount { font-family: var(--font-display); color: var(--price); font-size: 20px; }
.copy-btn { padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--cyan); cursor: pointer; }
.copy-btn:hover { border-color: var(--cyan); }
.co-wait { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent); font-size: 14px; }
.co-wait strong { display: block; color: var(--cyan); }
.co-wait span { color: var(--text-2); }
.co-wait b { font-family: var(--mono); }
.spinner { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 3px solid var(--cyan-soft); border-top-color: var(--cyan); animation: rotate .9s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(0, 0, 0, .2); border-top-color: var(--on-coral); }
@keyframes rotate { to { transform: rotate(360deg); } }
.co-pay + .co-hint, .co-title + .co-error { margin-top: 12px; }
.co-hint { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.co-dev-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

#co-delivery { width: 100%; }
.co-delivery { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0; padding: 14px 16px; border-radius: 14px; background: var(--cyan-soft); text-align: left; font-size: 14px; flex-wrap: wrap; }
.co-delivery b { display: block; color: var(--cyan); }
.co-delivery span { display: block; color: var(--text-2); }
.co-delivery.ok { background: var(--mint-soft); }
.co-delivery.ok b { color: var(--mint); }
.co-delivery > div { flex: 1; min-width: 0; }
.co-small { font-size: 13px; color: var(--text-3); }
.co-done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px 0; }
.co-done p { color: var(--text-2); font-size: 14px; }
.co-done-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.check-anim svg { width: 76px; height: 76px; stroke-width: 3; }
.check-anim circle { stroke: var(--mint); stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s var(--ease) forwards; }
.check-anim path { stroke: var(--mint); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s var(--ease) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.co-xsell { margin: 14px 0 4px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; }
.co-xsell p { margin: 0 0 8px; font-size: 14px; }
.co-xsell p small { color: var(--text-3); font-weight: 400; }
.co-xsell-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.co-xsell-item + .co-xsell-item { margin-top: 6px; }
.co-xsell-item small { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.co-xsell-item:hover { border-color: var(--cyan); }
.co-discount { color: var(--mint); font-weight: 600; }
.co-discount small { color: var(--text-3); font-weight: 400; }
.co-addons { margin: 12px 0 4px; padding: 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--cyan) 45%, transparent); background: var(--cyan-soft); }
.co-addons-title { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.co-addons-title span { margin-left: 6px; color: var(--mint); }
.co-addon { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.co-addon + .co-addon { margin-top: 6px; }
.co-addon input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--cyan); }
.co-addon-name { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.co-addon-name small { font-weight: 400; color: var(--text-3); font-size: 12.5px; }
.co-addon-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-weight: 700; color: var(--mint); }
.co-addon-price s, .co-items s { color: var(--text-3); font-weight: 400; margin-right: 4px; }
.co-addon-save { color: var(--mint); font-weight: 600; font-size: 12px; }
.co-addons-note { display: block; margin-top: 6px; color: var(--text-3); font-size: 12px; }
/* 2 ô đồng ý ở form thanh toán, không tích sẵn (Luật 91/2025): giao đơn (bắt buộc) + email tiếp thị (không bắt buộc) */
.co-consents { display: flex; flex-direction: column; gap: 8px; }
.co-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.co-consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--cyan); }
.co-consent a { color: inherit; text-decoration: underline; }
.co-consent b { color: var(--price); }
.co-sum { margin-top: 10px; font-size: 14px; }
.co-sum > div { display: flex; justify-content: space-between; padding: 2px 0; }
.co-save b { color: var(--mint); }
.co-total { margin-top: 4px; padding-top: 6px !important; border-top: 1px solid var(--line); }
.co-total b { font-size: 16px; }
.co-items { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 14px; }
.co-items li + li { border-top: 1px solid var(--line); }
.co-items li span { display: flex; flex-direction: column; font-weight: 600; }
.co-items li small { font-weight: 400; color: var(--text-3); }

.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: var(--on-coral); font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.btn-icon-cart { display: inline-flex; align-items: center; gap: 2px; padding-inline: 12px; }
.btn-icon-cart svg { width: 20px; height: 20px; }
.btn-icon-cart span { font-weight: 700; }
.cart-lines { list-style: none; margin: 14px 0 6px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 14px; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line-info { display: flex; flex-direction: column; min-width: 0; }
.cart-line-info a { color: inherit; font-weight: 600; }
.cart-line-info small { color: var(--text-3); font-size: 12.5px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.cart-qty button { width: 34px; height: 34px; border: 0; background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
.cart-qty button:disabled { opacity: .4; cursor: not-allowed; }
.cart-qty span { min-width: 28px; text-align: center; font-weight: 600; font-family: var(--mono); }
.cart-line-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; font-weight: 600; }
.cart-remove { border: 0; background: none; color: var(--text-3); font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
.co-cart-note { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.co-item-state { font-size: 12px; font-weight: 600; }
.co-item-state.ok { color: var(--mint); }

/* ───────── 21. Toast ───────── */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--tabbar-h)); z-index: 90;
  padding: 11px 18px; border-radius: 14px;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px); opacity: 0; transition: transform .25s var(--ease), opacity .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ───────── 22. Nội dung dựng sẵn (scripts/seo-build.js), mô tả, bài viết ───────── */
.prerender { padding: 8px 0 32px; }
.prerender p { color: var(--text-2); line-height: 1.6; max-width: 72ch; }
.prerender-table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prerender-table th, .prerender-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prerender-table td:last-child, .prerender-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.prerender-table tr.is-out td { color: var(--text-3); }
.prerender-list { grid-column: 1 / -1; columns: 2 260px; padding-left: 18px; line-height: 1.9; }
.prerender-list a { font-weight: 600; color: var(--cyan); }
.product-grid > .prerender { grid-column: 1 / -1; }
/* Trang sản phẩm / danh mục: bản dựng sẵn dành cho máy tìm kiếm và bot AI (đọc HTML), khách không thấy bản này.
   app.js vẽ trang thật khi catalog tải xong (thường dưới 1 giây) rồi xoá bản dựng sẵn. Lưới an toàn: catalog chậm/lỗi
   → bản dựng sẵn tự hiện sau 5 giây; trình duyệt tắt JavaScript → hiện ngay (thẻ <noscript> trong index.html).
   Bài hướng dẫn (#article-root) không bị ẩn vì nội dung chỉ có trong bản dựng sẵn. */
#detail-root > .prerender, #catalog-grid > .prerender { visibility: hidden; animation: dk-prerender-reveal 0s linear 5s forwards; }
#detail-root > .prerender.is-shown, #catalog-grid > .prerender.is-shown { visibility: visible; animation: none; }
@keyframes dk-prerender-reveal { to { visibility: visible; } }
.article-date { margin: 4px 0 20px; font-size: 13px; color: var(--text-3); }

.rich { max-width: 820px; color: var(--text-2); line-height: 1.7; }
.rich p { margin: 0 0 12px; }
.rich h3 { font-size: 17px; color: var(--text); margin: 20px 0 8px; }
.rich ul { margin: 0 0 12px; padding-left: 20px; }
.rich li { margin: 4px 0; }

.article { padding-top: 24px; }
.article .page-title { margin: 12px 0 8px; }
.article .page-sub { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article p { color: var(--text-2); line-height: 1.75; }

/* ───────── 23. Motion ───────── */
.reveal { opacity: 1; }
.view-enter { animation: view-in .35s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ───────── 24. Responsive ───────── */
@media (max-width: 1180px) {
  .hero-inner { gap: 36px; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail > :nth-child(n+7) { display: none; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .flow::before { display: none; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .console { max-width: 640px; }
  .faq-split { grid-template-columns: 1fr; }
  .warranty-card { position: static; }
  .detail-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "media" "main" "facts"; }
  .media-stage { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; padding: 22px; }
  .logo-tile.xl { width: 96px; height: 96px; border-radius: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bundle { grid-template-columns: auto 1fr; }
  .bundle .btn { grid-column: 1 / -1; justify-self: start; }
}

/* Màn hình vừa (tablet ngang, laptop nhỏ): thu ô tìm kiếm, nút Zalo chỉ còn biểu tượng để menu không xuống dòng */
@media (max-width: 1180px) {
  .header-inner { gap: 14px; }
  .header-search { max-width: 300px; }
  .header-nav a { padding-inline: 9px; }
  .header-cta { width: 42px; min-height: 42px; padding: 0; }
  .header-cta span { display: none; }
}

/* Không đủ chỗ cho ô tìm kiếm dài: thay bằng nút kính lúp (mở khung tìm kiếm), giữ menu */
@media (max-width: 1000px) {
  .header-search { display: none; }
  .mobile-only { display: inline-grid; }
  .header-nav { margin-left: auto; }
}

@media (max-width: 860px) {
  .header-search, .header-nav { display: none; }
  .mobile-only { display: inline-grid; }
  .header-end { margin-left: auto; }
}

/* Điện thoại: thanh điều hướng dưới đáy, hàng "Bán chạy" vuốt ngang, lưới 2 cột */
@media (max-width: 760px) {
  :root, :root[data-theme] { --header-h: 58px; --tabbar-h: calc(64px + env(safe-area-inset-bottom)); --t-hero: clamp(32px, 9vw, 40px); }
  body { font-size: 15.5px; }
  .brand-word { width: 116px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-inner { gap: 10px; }
  .header-cta, #cart-btn { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .float-zalo { display: none; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar-h); padding: 6px 4px env(safe-area-inset-bottom);
    background: rgba(3, 16, 22, .9);
    -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
    border-top: 1px solid rgba(130, 214, 235, .14);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; color: #85a6af; font-size: 11px; font-weight: 500; border-radius: 12px;
    transition: color .2s;
  }
  .tabbar svg { font-size: 22px; }
  .tabbar .active { color: #3fd6ee; }
  .tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: var(--on-coral); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
  body:has(#view-detail:not([hidden])) .tabbar { display: none; }
  body:has(#view-detail:not([hidden])) { --tabbar-h: 0px; }

  .section { padding: 56px 0; }
  .section-tight { padding-bottom: 56px; }
  .section-head { margin-bottom: 20px; }
  .hero { padding: 32px 0 24px; }
  .hero-sub { margin-top: 14px; font-size: 16px; }
  .hero-search { margin-top: 22px; border-radius: 14px; padding-left: 14px; }
  .hero-search .btn { padding-inline: 16px; }
  .hero-pop { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .hero-pop::-webkit-scrollbar { display: none; }
  .hero-pop a, .hero-pop span { flex-shrink: 0; }
  .console { padding: 16px; border-radius: 20px; margin-top: 4px; }
  .qb-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qb-total strong { font-size: 28px; }
  .qb-actions { grid-template-columns: 1fr 1fr; }
  .pipeline { gap: 10px; padding: 10px 12px; }
  .pipeline li { font-size: 10.5px; }
  .trust-bar { margin-top: 28px; grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-bar li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 13px; }

  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 64vw; max-width: 260px; scroll-snap-align: start; }
  .rail > :nth-child(n+7) { display: flex; }
  .detail-section .rail { display: flex; }
  .chips { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-cover { height: 104px; padding-bottom: 12px; }
  .p-cover .logo-tile.md { width: 48px; height: 48px; border-radius: 13px; }
  .p-badges { left: 8px; top: 8px; }
  .badge { font-size: 10.5px; padding: 2px 7px; }
  .badge:not(.badge-live) { display: none; }
  .p-body { padding: 12px; }
  .p-name { font-size: 16px; }
  .p-tagline { display: none; }
  .p-foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
  .p-price strong { font-size: 18px; }
  .p-cta { text-align: center; }

  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow-step { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; padding-bottom: 26px; }
  .flow-step::before { content: ''; position: absolute; left: 24px; top: 50px; bottom: 0; width: 2px; background: linear-gradient(var(--cyan), transparent); opacity: .4; }
  .flow-step:last-child::before { display: none; }
  .flow-icon { grid-row: 1 / span 3; }
  .flow-idx { margin-top: 2px; }
  .bundle { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .bundle-off { font-size: 44px; }
  .bundle .btn { width: 100%; }
  .warranty-card { padding: 20px; }
  .warranty-card thead { display: none; }
  .warranty-card tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .warranty-card th, .warranty-card td { border: 0; padding: 2px 0; }

  .page-hero { padding: 28px 0 24px; }
  .toolbar { padding: 10px var(--gutter); }
  .toolbar .chips { flex-basis: 100%; }
  .toolbar-end { width: 100%; }
  .toolbar-end .search-box { flex: 1; }
  .toolbar-end .search-box input { width: 100%; }

  .detail-wrap { padding-bottom: 112px; }
  .picker { padding: 18px; }
  .picked-row .picked-actions { display: none; }
  .picked-price strong { font-size: 34px; }
  .detail-section { margin-top: 48px; }
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(3, 16, 22, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(130, 214, 235, .16);
  }
  .buy-bar:empty { display: none; }
  .buy-bar-info { min-width: 0; flex: 1; }
  .buy-bar-info small { display: block; font-size: 12px; color: #85a6af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar-info strong { font-family: var(--font-display); font-size: 20px; color: #ff8a63; }
  .buy-bar .btn-ghost { background: rgba(255, 255, 255, .06); color: #e9f6f9; border-color: rgba(130, 214, 235, .2); }

  .footer { padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { max-width: none; border-radius: 24px 24px 0 0; max-height: 94dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .co-pay { grid-template-columns: 1fr; }
  .qr-frame { max-width: 260px; margin: 0 auto; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line-price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

/* 05/11/2026 trang chủ + trang SP */
.pipeline-time { white-space: nowrap; }
.detail-facts .facts-zalo { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Nút Zalo nhỏ trong thanh mua dưới đáy (thanh chỉ hiện ở ≤760px): cạnh nút Mua, không co lại che nút */
.buy-bar-zalo { flex-shrink: 0; display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; }
.buy-bar-zalo svg { width: 20px; height: 20px; font-size: 20px; }
.buy-bar .btn-cta, .buy-bar .btn-icon-cart { flex-shrink: 0; }

/* 05/11/2026 thanh toán */
/* Lỗi theo từng ô (checkout.js setFieldError) */
.co-field-error { margin: 0; font-size: 13px; font-weight: 600; color: var(--coral); }
.field.has-error input, .field.has-error textarea { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent); }
.co-consents.has-error #co-consent-order { outline: 2px solid var(--coral); outline-offset: 2px; }
/* Nút dạng link (Có mã giảm giá?, Dùng địa chỉ này, Bỏ mã…) */
.co-link-btn { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--cyan); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
/* Gợi ý email gõ sai */
.co-suggest { padding: 8px 12px; border-radius: var(--r-ctl); background: var(--warn-soft); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.co-suggest .co-link-btn { min-height: 0; font-size: 13.5px; margin-left: 4px; }
/* Mã giảm giá thu gọn */
.co-coupon-box { display: flex; flex-direction: column; gap: 6px; }
.co-coupon-box[hidden], .co-coupon-toggle[hidden], .co-coupon-err[hidden], .co-coupon-ok[hidden], .co-suggest[hidden], .co-field-error[hidden] { display: none; }
.co-coupon-row { display: flex; gap: 8px; }
.co-coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-coupon-apply { flex-shrink: 0; min-height: 46px; }
.co-coupon-ok { margin: 0; font-size: 13px; font-weight: 600; color: var(--mint); }
.field.has-error .co-coupon-row input { border-color: var(--coral); }
.co-coupon-err { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--cta-soft); }
.co-coupon-err p { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--price); }
/* Dòng cam kết dưới nút Thanh toán */
.co-promise { font-size: 13px; color: var(--text-2); }
.co-promise ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 3px; }
.co-promise li { position: relative; padding-left: 18px; }
.co-promise li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.co-promise a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
/* Màn QR: email nhận, các bước trên điện thoại */
.co-sendto { margin: 8px 0 0; font-size: 14px; color: var(--text-2); word-break: break-all; }
.co-sendto strong { color: var(--text); }
.co-mobile-steps { display: none; }
.co-wait-late { margin-top: 12px; }
/* Hộp hỏi khi đóng ở bước QR (thay window.confirm) */
.co-confirm { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(2, 12, 16, .6); }
.co-confirm-card { width: 100%; max-width: 380px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); text-align: center; }
.co-confirm-title { margin: 0 0 6px; font-weight: 700; font-size: 16px; color: var(--text); }
.co-confirm-actions { display: grid; gap: 8px; margin-top: 14px; }
/* Thanh nhắc "Bạn có đơn … đang chờ thanh toán" (tải lại trang / đóng khung ở bước QR) */
.co-resume { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(var(--header-h, 64px) + 10px);
  width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text); }
.co-resume[hidden] { display: none; }
.co-resume-text { flex: 1; min-width: 0; }
.co-resume .btn { flex-shrink: 0; }
.co-resume-x { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.co-resume-x:hover { color: var(--text); }
@media (max-width: 760px) {
  .co-mobile-steps { display: block; margin: 10px 0 0; padding: 10px 12px 10px 32px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text-2); }
  .co-mobile-steps li + li { margin-top: 2px; }
  .copy-btn { min-height: 40px; min-width: 52px; padding: 6px 12px; font-size: 13px; }
  .cart-qty button { width: 40px; height: 40px; }
  .co-resume { flex-wrap: wrap; }
  .co-resume-text { flex-basis: calc(100% - 46px); }
  .co-resume-x { order: 2; }
  .co-resume .btn { order: 3; flex: 1 1 100%; min-height: 40px; }
}

/* Trang 404 (build/404.html): dòng báo không tìm thấy trên đầu trang chủ */
.notfound-note { padding-top: 20px; }
.notfound-note p { margin: 0; padding: 12px 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 10px; font-size: 14px; }
.notfound-note a { text-decoration: underline; }

/* Ảnh đầu bài hướng dẫn (front matter image/imageAlt) */
.article-hero { margin: 0 0 24px; }
.article-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #04131a; }
