/* LHC SPORTS — trang bán hàng
   Bố cục "đường pit": nền giấy trắng, xanh lá theo logo LHC (nút, thanh trên, chân trang), giá đỏ cam, mảng đen carbon cho MIPS, ảnh tràn viền, thước đo vòng đầu.
   Một giao diện sáng duy nhất (chủ ý): ảnh sản phẩm nền trắng/xám hiển thị đúng màu. */
:root {
  --paper: #FFFFFF;
  --fog: #F2F3F5;
  --fog-2: #E8EAED;
  --line: #DFE2E6;
  --ink: #0D0E10;
  --ink-2: #3A3F47;
  --mute: #656B75;
  --carbon: #121417;
  --carbon-2: #1D2025;
  --on-dark: #F4F5F6;
  --on-dark-mute: #A3A9B2;
  --signal: #1A5A33;
  --signal-hi: #237043;
  --signal-soft: #E7F1EA;
  --brand: #1A5A33;
  --brand-hi: #237043;
  --brand-deep: #0E3520;
  --brand-soft: #E7F1EA;
  --hot: #D9360F;
  --hot-soft: #FFF0EA;
  --mips: #FFD400;
  --ok: #12804A;
  --ok-soft: #E9F6EF;
  --err: #CC2A1F;
  --err-ink: #8E1D15;
  --err-soft: #FDEEEC;
  --ms: #0A7CFF;
  --zalo: #0068FF;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 12px;
  --gut: 16px;
  --shadow: 0 1px 2px rgba(13, 14, 16, .06), 0 8px 24px rgba(13, 14, 16, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 760px) { :root { --gut: 24px; } }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; color: var(--hot); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eyebrow { display: block; font: 600 11.5px/1.25 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.h-sec { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 22px; line-height: 1.08; letter-spacing: .005em; margin: 6px 0 0; }
@media (min-width: 760px) { .h-sec { font-size: 30px; } }
.hint { font-size: 13px; color: var(--mute); margin: 0; }
.link { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-main { background: var(--signal); color: #fff; }
.btn-main:hover { background: var(--signal-hi); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24272C; }
.btn-line { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--fog); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ms { background: var(--ms); color: #fff; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- thanh thông báo ---------- */
.promo { background: var(--brand-deep); color: var(--on-dark); font-size: 12.5px; line-height: 1.35; }
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding-block: 7px; text-align: center; }
.promo-t { min-width: 0; }
.promo-code { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed rgba(255, 255, 255, .55); border-radius: 6px; padding: 4px 8px; background: none; color: #fff; font: 800 12px/1 var(--f-display); letter-spacing: .08em; }
.promo-code small { font: 600 11px/1 var(--f-body); letter-spacing: 0; opacity: .8; }

/* ---------- đầu trang ---------- */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: transform .25s ease, border-color .2s; }
body.scrolled .hd { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 2px; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
/* logo LHC: hình vẽ nét, màu lấy theo "color" */
.lhc-mark { display: block; flex: none; width: 103px; height: 24px; fill: currentColor; }
.logo .lhc-mark { color: var(--brand); }
.logo-word { font: 800 12.5px/1 var(--f-display); font-stretch: 125%; letter-spacing: .22em; padding-top: 1px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--ink); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--fog); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; font-variant-numeric: tabular-nums; }
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }
.hd-nav, .hd-hot { display: none; }
@media (max-width: 1023px) {
  body.hd-hide .hd { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
  body[data-route="sp"] .hd, body[data-route="sp"] .promo { display: none; }
}
@media (min-width: 1024px) {
  .hd-in { height: 68px; gap: 6px; }
  .logo { margin-right: 0; }
  .logo .lhc-mark { width: 120px; height: 28px; }
  .hd-nav { display: flex; gap: 2px; margin-inline: auto; }
  .hd-nav button { border: 0; background: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
  .hd-nav button:hover { background: var(--fog); }
  .hd-hot { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
  .hd-hot:hover { background: var(--fog); }
  .hd-menu { display: none; }
}

/* ---------- banner trang chủ ---------- */
.hero { position: relative; background: var(--carbon); color: var(--on-dark); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; height: min(104vw, 460px); overflow: hidden; display: block; color: inherit; text-decoration: none; }
.slide-media { position: absolute; inset: 0; background: var(--carbon-2); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, .62) 54%, rgba(10, 11, 13, .93) 100%); }
.slide-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 16px 48px; display: grid; gap: 8px; justify-items: start; }
.slide-eb { font: 600 11.5px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.slide-title { font: 800 33px/.98 var(--f-display); font-stretch: 116%; text-transform: uppercase; margin: 0; letter-spacing: -.005em; color: #fff; }
.slide-sub { font-size: 14.5px; color: rgba(255, 255, 255, .86); margin: 0; max-width: 36ch; }
.slide-cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; border-radius: 999px; padding: 11px 18px; }
.hero-dots { position: absolute; left: 10px; bottom: 12px; z-index: 2; display: flex; }
.hero-dots button { width: 34px; height: 24px; border: 0; background: none; padding: 0 6px; display: grid; align-items: center; }
.hero-dots button::before { content: ""; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); transition: background-color .2s; }
.hero-dots button[aria-current="true"]::before { background: #fff; }
@media (min-width: 900px) {
  .slide { height: 500px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr); }
  .slide-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; min-height: 0; }
  .slide-media::after { background: linear-gradient(90deg, rgba(18, 20, 23, .85) 0, rgba(18, 20, 23, 0) 28%); }
  .slide-body { position: relative; grid-column: 1; grid-row: 1; align-content: center; padding: 0 40px 0 max(24px, calc((100vw - 1200px) / 2 + 24px)); gap: 12px; }
  .slide-title { font-size: 56px; }
  .slide-sub { font-size: 17px; }
  .hero-dots { left: auto; right: max(18px, calc((100vw - 1200px) / 2 + 18px)); bottom: 18px; }
}

/* ---------- cam kết ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.trust > div { display: grid; justify-items: center; text-align: center; align-content: start; gap: 4px; padding: 14px 6px; font-size: 12px; line-height: 1.3; color: var(--mute); }
.trust > div + div { border-left: 1px solid var(--line); }
.trust b { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.trust svg { color: var(--ink); margin-bottom: 2px; }
@media (min-width: 760px) { .trust > div { grid-template-columns: auto auto; justify-content: center; text-align: left; column-gap: 12px; padding: 18px 10px; font-size: 13.5px; } .trust svg { grid-row: span 2; align-self: center; margin: 0; } .trust b { font-size: 14.5px; } }

/* ---------- khung mục ---------- */
.sec { padding-block: 34px; }
.sec.fog { background: var(--fog); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-h > div { min-width: 0; }
.sec-h .more { flex: none; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; border: 0; background: none; padding: 0 0 2px; border-bottom: 1.5px solid currentColor; }
@media (min-width: 760px) { .sec { padding-block: 56px; } .sec-h { margin-bottom: 24px; } }

/* danh mục dạng ảnh, đồng thời là bộ lọc */
.cats { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 76px; display: grid; gap: 7px; justify-items: center; align-content: start; border: 0; background: none; padding: 0; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.cat-ph { position: relative; width: 76px; height: 76px; border-radius: 20px; overflow: hidden; background: var(--fog); box-shadow: 0 0 0 1.5px transparent; transition: box-shadow .15s; }
.cat-ph img { width: 100%; height: 100%; object-fit: cover; }
.cat-ph.all { background: radial-gradient(120% 120% at 50% 42%, #2C7A4D 0%, var(--brand) 48%, var(--brand-deep) 100%); color: #fff; display: grid; place-items: center; }
.cat-ph.all .lhc-mark { width: 58px; height: 13.5px; }
.cat[aria-pressed="true"] { color: var(--ink); }
.cat[aria-pressed="true"] .cat-ph { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4.5px var(--ink); }
.cat small { display: block; color: var(--mute); font-weight: 500; font-size: 11.5px; }
@media (min-width: 760px) { .cats { margin: 0; padding: 4px; gap: 18px; } .cat { flex-basis: 108px; font-size: 14px; } .cat-ph { width: 96px; height: 96px; border-radius: 24px; } .cat-ph.all .lhc-mark { width: 72px; height: 16.8px; } }

/* thanh lọc / sắp xếp lưới */
.grid-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.grid-h h2 { margin: 0; font: 800 16px/1.2 var(--f-display); font-stretch: 108%; text-transform: uppercase; min-width: 0; }
.grid-h h2 small { font: 600 13px/1 var(--f-body); color: var(--mute); text-transform: none; margin-left: 6px; letter-spacing: 0; }
.sort { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 12px; font-weight: 600; font-size: 13.5px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D0E10' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; max-width: 52vw; }
.filter-on { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.x::after { content: "×"; font-size: 17px; line-height: 1; margin-left: 2px; }

/* lưới sản phẩm */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.card-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fog); }
.card-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
@media (hover: hover) { .card:hover .card-ph img { transform: scale(1.04); } }
.flags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.flag { font: 700 11px/1 var(--f-body); padding: 5px 7px; border-radius: 5px; background: rgba(255, 255, 255, .94); color: var(--ink); letter-spacing: .01em; }
.flag.hot { background: var(--hot); color: #fff; }
.flag.mips { background: var(--mips); color: var(--ink); font-family: var(--f-display); font-weight: 800; letter-spacing: .06em; }
.flag.sale { background: var(--ink); color: #fff; }
.card-b { display: grid; gap: 4px; min-width: 0; }
.c-brand { font: 600 11px/1.2 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.c-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.c-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.c-price .price { font-size: 17px; }
.c-price .from { font: 600 12px/1 var(--f-body); color: var(--mute); }
.c-old { font-size: 12.5px; color: var(--mute); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.c-ask { font: 700 15px/1.2 var(--f-display); color: var(--ink); }
.c-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.dots { display: flex; padding-left: 4px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -4px; background: var(--fog-2) center/cover; box-shadow: 0 0 0 1px var(--line); }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 28px 16px; text-align: center; color: var(--mute); display: grid; gap: 12px; justify-items: center; }

/* ---------- MIPS ---------- */
.spot { background: var(--carbon); color: var(--on-dark-mute); }
.spot-in { display: grid; gap: 22px; padding-block: 38px; }
.spot .eyebrow { color: var(--mips); }
.spot .h-sec { color: #fff; }
.spot p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; max-width: 52ch; }
.spot-media { border-radius: 14px; overflow: hidden; background: #000; border: 0; padding: 0; display: block; width: 100%; }
.spot-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.spot-facts { display: flex; gap: 24px; margin-top: 18px; }
.spot-facts div { display: grid; gap: 2px; font-size: 12.5px; }
.spot-facts b { font: 800 26px/1 var(--f-display); font-stretch: 112%; color: #fff; }
.spot-picks { display: grid; gap: 10px; margin-top: 22px; }
.spot-pick { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--carbon-2); border-radius: 12px; padding: 8px 12px 8px 8px; text-decoration: none; color: #fff; }
.spot-pick .ph { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; background: var(--fog); }
.spot-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.spot-pick b { display: block; font-weight: 600; font-size: 14.5px; }
.spot-pick small { color: var(--on-dark-mute); font-size: 12.5px; }
.spot-pick .price { color: #fff; font-size: 15px; }
@media (min-width: 900px) { .spot-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-block: 64px; } }

/* ---------- đo vòng đầu ---------- */
.measure { display: grid; gap: 20px; }
.tape-box { background: var(--paper); border-radius: 18px; padding: 18px 16px 16px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.tape-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tape-val { font: 800 46px/1 var(--f-display); font-stretch: 108%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tape-val small { font-size: 18px; font-weight: 700; color: var(--mute); margin-left: 4px; letter-spacing: 0; }
.tape-range { text-align: right; font-size: 13px; color: var(--mute); }
.tape-range b { display: block; color: var(--ink); font: 800 17px/1.2 var(--f-display); font-stretch: 108%; }
.tape { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; touch-action: pan-y; }
.tape::-webkit-slider-runnable-track { height: 40px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 7.142857%) top left / 100% 46% no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3.5714285%) top left / 100% 26% no-repeat, linear-gradient(var(--ink), var(--ink)) top right / 1.5px 46% no-repeat, var(--mips); }
.tape::-moz-range-track { height: 40px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 7.142857%) top left / 100% 46% no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3.5714285%) top left / 100% 26% no-repeat, linear-gradient(var(--ink), var(--ink)) top right / 1.5px 46% no-repeat, var(--mips); }
.tape::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 48px; margin-top: -4px; border-radius: 3px; background: var(--signal); box-shadow: 0 0 0 2px var(--paper), 0 2px 8px rgba(0, 0, 0, .3); }
.tape::-moz-range-thumb { width: 6px; height: 48px; border: 0; border-radius: 3px; background: var(--signal); box-shadow: 0 0 0 2px var(--paper), 0 2px 8px rgba(0, 0, 0, .3); }
.tape-scale { display: flex; justify-content: space-between; font: 700 11.5px/1 var(--f-display); color: var(--mute); margin-top: -6px; font-variant-numeric: tabular-nums; }
.tape-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 14px/1 var(--f-display); }
.steps b { color: var(--ink); }
@media (min-width: 900px) { .measure { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; } }

/* ---------- feedback khách ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; }
.rail::-webkit-scrollbar { display: none; }
.fb { flex: 0 0 68%; max-width: 280px; scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; display: grid; gap: 8px; align-content: start; color: inherit; }
.fb-ph { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--fog); }
.fb-ph img { width: 100%; height: 100%; object-fit: cover; }
.fb span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.fb small { display: block; color: var(--mute); font-size: 12px; }
@media (min-width: 760px) { .rail { margin: 0; padding: 0 0 6px; } .fb { flex-basis: 240px; } }

/* ---------- hỏi đáp ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); max-width: 70ch; }
@media (min-width: 900px) { .faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; } }

/* ---------- chân trang ---------- */
.ft { background: var(--brand-deep); color: var(--on-dark-mute); padding-block: 40px 28px; font-size: 14px; }
.ft .logo, .ft .logo .lhc-mark { color: #fff; }
.ft-grid { display: grid; gap: 28px; }
.ft p { margin: 12px 0 0; max-width: 42ch; }
.ft h3 { color: #fff; font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft a, .ft button { color: #fff; text-decoration: none; border: 0; background: none; padding: 0; font: inherit; text-align: left; }
.ft a:hover, .ft button:hover { text-decoration: underline; }
.ft .hot { font: 800 22px/1.1 var(--f-display); font-stretch: 108%; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ft-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
@media (min-width: 760px) { .ft-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } .ft { padding-block: 56px 32px; } }

/* nút tư vấn nổi */
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0 18px 0 14px; height: 50px; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 28px rgba(13, 14, 16, .28); transition: transform .25s ease; }
@media (max-width: 1023px) { .fab { width: 52px; height: 52px; padding: 0; } .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } body.hd-hide .fab { transform: translateY(calc(100% + 40px)); } }

/* ---------- trang sản phẩm ---------- */
.pd-bar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 41; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; height: 54px; padding: 0 6px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); transition: transform .25s ease; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pd-bar b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
body.pdbar-on .pd-bar { transform: none; }
@media (min-width: 1024px) { .pd-bar { display: none; } }
.crumb { display: none; }
@media (min-width: 1024px) { .crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 18px; font-size: 13.5px; color: var(--mute); } .crumb button { border: 0; background: none; padding: 0; color: var(--ink-2); font-weight: 500; } .crumb button:hover { text-decoration: underline; } }
.pd { display: grid; }
.pd-media { position: relative; min-width: 0; }
.g-main { position: relative; }
.gtrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--fog); touch-action: pan-x pan-y; }
.gtrack::-webkit-scrollbar { display: none; }
.gslide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 1; position: relative; border: 0; padding: 0; margin: 0; background: var(--fog); cursor: zoom-in; display: block; }
.gslide img { width: 100%; height: 100%; object-fit: contain; }
.g-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(13, 14, 16, .74); color: #fff; font: 600 12.5px/1 var(--f-body); padding: 7px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; pointer-events: none; }
.g-cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: calc(100% - 110px); background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; line-height: 1.3; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-video { position: absolute; left: 12px; top: 64px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 13px 8px 10px; font-weight: 700; font-size: 13px; text-decoration: none; border: 0; }
.float { position: absolute; top: 10px; z-index: 3; display: flex; gap: 8px; }
.float.l { left: 10px; }
.float.r { right: 10px; }
.float .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(13, 14, 16, .14); }
.g-thumbs { display: none; }
@media (min-width: 1024px) {
  .pd { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pd-media { position: sticky; top: 84px; }
  .gtrack { border-radius: 16px; }
  .float { display: none; }
  .g-video { top: 14px; left: 14px; }
  .g-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .g-thumbs button { aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: var(--fog); }
  .g-thumbs button[aria-current="true"] { border-color: var(--ink); }
  .g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .g-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); display: grid; place-items: center; }
  .g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
}
@media (max-width: 1023px) { .g-nav { display: none; } }
.pd-info { padding: 18px 0 8px; display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1024px) { .pd-info { padding: 0; } }
@media (max-width: 1023px) { .pd-media, .pd-sec { margin-inline: calc(var(--gut) * -1); } .pd-sec { padding-inline: var(--gut); } .pd-sec .rail, .pd-sec .rel { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); } }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags .flag { border: 1px solid var(--line); }
.pd-tags .flag.hot, .pd-tags .flag.mips, .pd-tags .flag.sale { border-color: transparent; }
.pd-title { font: 700 23px/1.22 var(--f-display); font-stretch: 102%; margin: 8px 0 0; letter-spacing: -.005em; }
@media (min-width: 1024px) { .pd-title { font-size: 32px; font-stretch: 106%; } }
.pd-short { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pd-price .price { font-size: 30px; }
.pd-price .from { font: 600 14px/1 var(--f-body); color: var(--mute); }
.pd-price .old { font-size: 15px; color: var(--mute); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pd-price .save { background: var(--hot-soft); color: var(--hot); font-weight: 700; font-size: 12.5px; padding: 3px 7px; border-radius: 6px; }
.pd-price small { flex-basis: 100%; color: var(--mute); font-size: 13px; }
.pd-price small.so { color: var(--err); font-weight: 700; }
.pd-price .ask { font: 800 26px/1 var(--f-display); color: var(--ink); }

/* lựa chọn: màu, phiên bản, size, số lượng */
.opt { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); transition: background-color .2s; }
.opt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.opt-h > span { color: var(--mute); }
.opt-h > span b { color: var(--ink); font-weight: 700; }
.opt-h .link { font-size: 13.5px; white-space: nowrap; }
.opt.need { background: var(--err-soft); box-shadow: 0 0 0 1.5px var(--err); border-radius: 14px; border-top-color: transparent; padding: 12px; }
.opt-err { display: flex; gap: 6px; align-items: center; color: var(--err); font-weight: 700; font-size: 13.5px; }
.opt-note { font-size: 13px; color: var(--mute); margin: 0; }
.opt-note b { color: var(--ink); }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.sw { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); padding: 0; overflow: hidden; background: var(--fog) center / cover no-repeat; }
.sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.sw[disabled] { opacity: .4; cursor: not-allowed; }
.sw[disabled]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 47%, var(--ink) 48% 52%, transparent 53%); }
.sw .nm { display: none; }
.var-list { display: grid; gap: 8px; }
.var { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); text-align: left; font-weight: 600; font-size: 14.5px; }
.var .vp { font: 800 15px/1 var(--f-display); font-variant-numeric: tabular-nums; flex: none; }
.var[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.var[aria-pressed="true"] .vp { color: var(--signal); }
.var[disabled] { opacity: .45; }
.sz-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sz { min-width: 58px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 15px; }
.sz.head { font-size: 13.5px; font-weight: 600; padding: 0 12px; }
.sz[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sz[disabled] { opacity: .35; text-decoration: line-through; }
.sz.fixed { pointer-events: none; }
.size-chart { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.size-chart th, .size-chart td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.size-chart th { background: var(--fog); font-weight: 600; }
.size-chart tr.on td { background: var(--ok-soft); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.qty button { width: 44px; height: 42px; border: 0; background: var(--paper); font-size: 20px; line-height: 1; }
.qty button:hover { background: var(--fog); }
.qty span { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty.sm button { width: 34px; height: 32px; font-size: 17px; }
.qty.sm span { min-width: 30px; font-size: 14px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-buy { display: none; }
@media (min-width: 1024px) { .pd-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pd-buy .btn { min-height: 54px; font-size: 16px; } }
.assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--fog); border-radius: 14px; padding: 14px 6px; }
.assure > div { display: grid; justify-items: center; text-align: center; gap: 4px; font-size: 12px; color: var(--mute); padding: 0 4px; line-height: 1.3; }
.assure > div + div { border-left: 1px solid var(--line); }
.assure b { font-size: 12.5px; color: var(--ink); }
.ask-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--mute); }
.ask-line a { color: var(--ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ask-line a:hover { text-decoration: underline; }

/* các mục nội dung của trang sản phẩm */
.pd-secs { display: grid; }
.pd-sec { padding-block: 26px; border-top: 8px solid var(--fog); min-width: 0; }
.pd-sec h2 { font: 800 16px/1.2 var(--f-display); font-stretch: 110%; text-transform: uppercase; margin: 0 0 14px; letter-spacing: .01em; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pd-sec h2 small { font: 500 12.5px/1 var(--f-body); color: var(--mute); text-transform: none; letter-spacing: 0; }
@media (min-width: 1024px) {
  .pd-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 48px; border-top: 1px solid var(--line); }
  .pd-sec { padding: 32px 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .pd-sec.wide { grid-column: 1 / -1; }
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
.fit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fit span { background: var(--fog); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec th, .spec td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 42%; color: var(--mute); font-weight: 500; padding-right: 12px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 760px) { .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.detail { margin: 0; display: grid; gap: 6px; align-content: start; }
.detail button { border: 0; padding: 0; background: var(--fog); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.detail img { width: 100%; height: 100%; object-fit: cover; }
.detail figcaption { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.desc { display: grid; gap: 0; margin-inline: calc(var(--gut) * -1); }
.desc-img { display: block; width: 100%; border: 0; padding: 0; margin: 0; background: var(--fog); cursor: zoom-in; }
.desc-img img { width: 100%; height: auto; }
.desc.clip { position: relative; }
.desc.clip > :last-child { position: relative; max-height: 260px; overflow: hidden; }
.desc.clip > :last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), var(--paper)); }
.desc-text { padding: 22px var(--gut); background: var(--paper); color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.desc-text h3 { margin: 0 0 8px; font: 800 18px/1.25 var(--f-display); font-stretch: 106%; color: var(--ink); text-transform: uppercase; letter-spacing: .005em; }
.desc-text p { margin: 0 0 10px; }
.desc-text p:last-child, .desc-text ul:last-child { margin-bottom: 0; }
.desc-text ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.desc-more { margin-top: 12px; }
@media (min-width: 1024px) {
  .desc { margin-inline: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .desc-img { border-radius: 12px; overflow: hidden; }
  .desc.clip > :last-child { max-height: none; }
  .desc.clip > :last-child::after { display: none; }
  .desc-text { grid-column: 1 / -1; padding: 8px 0; max-width: 760px; }
  .desc-more { max-width: 360px; margin-inline: auto; display: flex; }
}
/* video: ô đầu khung ảnh, thẻ video, trình phát toàn màn hình */
.gslide.gvid { cursor: pointer; background: var(--carbon); }
.gslide.gvid img { object-fit: cover; }
.vplay-btn { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(13, 14, 16, .6); border: 2px solid rgba(255, 255, 255, .85); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); pointer-events: none; }
.vplay-btn svg { margin-left: 4px; }
.g-thumbs button.vt { position: relative; }
.g-thumbs button.vt::after { content: ""; position: absolute; inset: 0; background: rgba(13, 14, 16, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='white'/%3E%3C/svg%3E") center no-repeat; }
.vid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.vid-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
@media (min-width: 760px) { .vid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vid-grid.one { grid-template-columns: minmax(0, 1fr); } }
.vcard { border: 0; padding: 0; background: none; text-align: left; display: grid; gap: 8px; color: inherit; cursor: pointer; align-content: start; }
.vcard-th { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--carbon); }
.vid-grid.one .vcard-th { aspect-ratio: 16 / 10; }
.vcard-th img { width: 100%; height: 100%; object-fit: cover; }
.vcard .vplay-btn { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.vcard .vplay-btn svg { width: 24px; height: 24px; }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgba(13, 14, 16, .78); color: #fff; font: 600 12px/1 var(--f-body); padding: 5px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.vcard-b { display: grid; gap: 2px; }
.vcard b { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard small { color: var(--mute); font-size: 12.5px; }
.vbox { position: fixed; inset: 0; z-index: 85; background: #000; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); animation: fade .18s ease; }
.vp-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.vp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-frame { width: min(100%, 960px); aspect-ratio: 16 / 9; max-height: 100%; border: 0; background: #000; }
.vp-frame.tall { width: auto; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; }
.vp-note { max-width: 420px; margin: 0 16px; background: #1A1C20; border-radius: 16px; padding: 22px 20px; text-align: center; display: grid; gap: 10px; line-height: 1.5; }
.vp-note p { margin: 0; color: rgba(255, 255, 255, .88); }
.vp-note .hint { color: rgba(255, 255, 255, .6); }
.vp-bad { display: none; position: absolute; left: 16px; right: 16px; bottom: 24px; margin: 0; background: rgba(20, 20, 22, .92); border-radius: 12px; padding: 12px 14px; text-align: center; font-size: 14px; }
.vp-video.bad + .vp-bad { display: block; }
.vid-list { display: grid; gap: 10px; }
.vid { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 8px; }
.vid:hover { border-color: var(--ink); }
.vid-th { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--carbon); }
.vid-th img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.vid-th::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='%230D0E10'/%3E%3C/svg%3E") 55% center no-repeat; }
.vid b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.vid small { color: var(--mute); font-size: 12.5px; }
.vid .go { font-size: 13px; font-weight: 700; white-space: nowrap; }
.rel { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); }
.rel::-webkit-scrollbar { display: none; }
.rel .card { flex: 0 0 44%; scroll-snap-align: start; }
@media (min-width: 760px) { .rel { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .rel .card { flex: none; } .rel .card:nth-child(n+5) { display: none; } }

/* thanh mua cố định (điện thoại) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px; align-items: center; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(13, 14, 16, .07); }
.buybar.ask { grid-template-columns: minmax(0, 1fr) auto auto; }
.bb-ic { display: grid; justify-items: center; gap: 1px; width: 50px; font-size: 11px; font-weight: 600; color: var(--ink); text-decoration: none; border: 0; background: none; padding: 0; }
.bb-ic svg { color: var(--ms); }
.bb-add, .bb-buy { height: 52px; border-radius: 12px; display: grid; align-content: center; justify-items: center; line-height: 1.15; padding: 0 8px; }
.bb-add { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; }
.bb-buy { border: 0; background: var(--signal); color: #fff; }
.bb-buy b { font-size: 16px; font-weight: 800; }
.bb-buy small { font-size: 12.5px; font-weight: 600; opacity: .92; font-variant-numeric: tabular-nums; }
.bb-ask { display: grid; line-height: 1.2; min-width: 0; }
.bb-ask small { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-ask b { font: 800 18px/1.1 var(--f-display); }
body.has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .buybar { display: none; } body.has-bar { padding-bottom: 0; } }

/* ---------- bảng trượt ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10, 11, 13, .5); animation: fade .2s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--paper); border-radius: 20px 20px 0 0; max-height: min(90%, 780px); display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
.sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--fog-2); }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.sh-h h2 { font: 800 16px/1.2 var(--f-display); font-stretch: 110%; text-transform: uppercase; margin: 0; }
.sh-b { overflow-y: auto; padding: 16px; display: grid; gap: 18px; align-content: start; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sh-f { padding: 12px 16px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fog); display: grid; place-items: center; flex: none; }
.sheet.side { top: 0; bottom: 0; left: auto; right: 0; width: min(88vw, 380px); max-height: none; border-radius: 0; animation: side .26s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top, 0px); }
.sheet.side::before, .sheet.full::before { display: none; }
.sheet.full { top: 0; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes side { from { transform: translateX(40px); opacity: .4; } }
@keyframes pop { from { transform: translate(-50%, -48%) scale(.98); opacity: 0; } }
@media (min-width: 760px) {
  .sheet:not(.side):not(.full) { left: 50%; right: auto; bottom: auto; top: 50%; width: min(540px, calc(100% - 48px)); max-height: 86vh; border-radius: 20px; transform: translate(-50%, -50%); animation: pop .2s ease; }
  .sheet:not(.side):not(.full)::before { display: none; }
  .sheet.full { top: 0; left: 50%; right: auto; width: min(680px, 100%); transform: translateX(-50%); bottom: auto; max-height: 86vh; border-radius: 0 0 20px 20px; }
}

/* chọn phân loại (kiểu TikTok Shop) */
.pk-top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: end; min-width: 0; }
.pk-top .ph { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--fog); border: 1px solid var(--line); }
.pk-top .ph img { width: 100%; height: 100%; object-fit: cover; }
.pk-top b { display: block; font-size: 14.5px; line-height: 1.3; }
.pk-top .price { font-size: 22px; display: block; margin-top: 4px; }
.pk-top small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.sheet.pick .sh-h { align-items: flex-start; }
.pk-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pk-sw .sw { aspect-ratio: auto; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 8px 4px 4px; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.25; background: var(--paper); border-radius: 10px; }
.pk-sw .sw .t { width: 38px; height: 38px; border-radius: 7px; background: var(--fog) center / cover no-repeat; }
.pk-sw .sw .nm { display: block; overflow: hidden; text-overflow: ellipsis; }
.pk-sw .sw[disabled]::after { display: none; }
.ok-sel { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 600; font-size: 14px; background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; }

/* cảnh báo thiếu thông tin */
.miss { display: flex; gap: 10px; align-items: flex-start; background: var(--err-soft); color: var(--err-ink); border: 1.5px solid var(--err); border-radius: 12px; padding: 11px 13px; font-size: 14.5px; line-height: 1.45; }
.miss svg { flex: none; margin-top: 2px; color: var(--err); }
.alert { background: var(--err-soft); color: var(--err-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.shake { animation: shake .42s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* giỏ hàng */
.citem { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: 0; padding-bottom: 0; }
.citem .ph { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--fog); }
.citem .ph img { width: 100%; height: 100%; object-fit: cover; }
.citem-b { display: grid; gap: 4px; min-width: 0; position: relative; align-content: start; }
.citem-n { font-weight: 600; font-size: 14.5px; line-height: 1.35; padding-right: 34px; }
.citem-v { font-size: 13px; color: var(--mute); }
.citem-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.citem-f .price { font-size: 16px; }
.citem-acts { display: flex; align-items: center; gap: 14px; }
.line-fix { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.line-fix select { border: 1.5px solid var(--err); background: var(--paper); border-radius: 8px; padding: 7px 8px; font-size: 14px; max-width: 100%; }
.need-tip { color: var(--err); font-size: 13px; margin: 0; font-weight: 600; }
.sum { display: grid; gap: 6px; font-size: 14.5px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum span:first-child { color: var(--mute); }
.sum .tt { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); font-weight: 700; }
.sum .tt span:first-child { color: var(--ink); }
.sum .tt .price { font-size: 19px; }
.sum .minus { color: var(--ok); font-weight: 700; }

/* tìm kiếm */
.srch { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.srch-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--fog); border-radius: 12px; padding: 0 12px; height: 46px; }
.srch-in input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; height: 100%; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.res { display: grid; gap: 4px; }
.res a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; color: inherit; }
.res a:hover { background: var(--fog); }
.res .ph { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--fog); }
.res .ph img { width: 100%; height: 100%; object-fit: cover; }
.res b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.res small { color: var(--mute); font-size: 12.5px; }
.res .price { font-size: 15px; }

/* menu + liên hệ */
.mnav { display: grid; }
.mnav button, .mnav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 15px 2px; font-weight: 700; font-size: 16px; text-align: left; text-decoration: none; color: var(--ink); }
.mnav small { font-weight: 500; color: var(--mute); font-size: 13px; }
.contact { display: grid; gap: 10px; }
.contact-hot { display: grid; gap: 4px; background: var(--fog); border-radius: 14px; padding: 14px; }
.contact-hot span { font-size: 12.5px; color: var(--mute); }
.contact-hot b { font: 800 26px/1.1 var(--f-display); font-stretch: 106%; font-variant-numeric: tabular-nums; user-select: all; }
.contact-hot .row { display: flex; gap: 8px; margin-top: 6px; }
.contact-hot .row .btn { flex: 1; }
.btn-ms .ms-t { display: grid; text-align: left; line-height: 1.25; }
.btn-ms .ms-t small { font-weight: 500; font-size: 12px; opacity: .9; }

/* ---------- xem ảnh lớn + phóng to ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: #0B0C0E; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .18s ease; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.lb-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; height: 54px; padding: 0 6px; }
.lb-count { font-size: 13.5px; font-variant-numeric: tabular-nums; padding-left: 8px; opacity: .85; }
.lb-cap { text-align: center; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-x { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; }
.lb-stage { position: relative; overflow: hidden; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.lb-stage.z { cursor: grab; }
.lb-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; z-index: 2; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
@media (max-width: 759px) { .lb-nav { display: none; } }
@media (max-height: 520px) { .lb-top { height: 44px; } .lb-bottom { padding: 6px 16px 8px; gap: 6px; } .lb-thumbs, .lb-desc { display: none; } }
.lb-bottom { padding: 10px 16px 14px; display: grid; gap: 10px; }
.lb-desc { margin: 0; font-size: 14px; line-height: 1.45; text-align: center; color: rgba(255, 255, 255, .92); }
.lb-tip { margin: 0; font-size: 12px; text-align: center; color: rgba(255, 255, 255, .55); }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 48px; height: 48px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #222; opacity: .6; }
.lb-thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-pick { justify-self: center; min-width: 220px; }

/* ---------- đặt hàng: 1 màn hình ---------- */
.co2 { min-height: 100vh; background: var(--fog); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.co-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 54px; padding: 0 6px; background: var(--paper); border-bottom: 1px solid var(--line); }
.co-top h1 { margin: 0; text-align: center; font: 800 16px/1 var(--f-display); font-stretch: 110%; text-transform: uppercase; }
.co-back { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); text-decoration: none; border-radius: 12px; }
.co-main { max-width: 560px; margin: 0 auto; padding: 10px 10px 16px; display: grid; gap: 10px; }
.co-card { background: var(--paper); border-radius: 16px; padding: 4px 14px; width: 100%; }
.co-card .form { padding: 2px 0 14px; gap: 12px; }
.co-t { margin: 0; padding: 14px 0 10px; font: 800 15px/1.2 var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .01em; }
.co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.co-item:first-child { border-top: 0; }
.co-item.need { margin: 0 -8px; padding: 12px 8px; border-radius: 12px; background: var(--err-soft); box-shadow: inset 0 0 0 1.5px var(--err); }
.co-item .ph { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--fog); border: 1px solid var(--line); }
.co-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.co-item-b { display: grid; gap: 3px; min-width: 0; position: relative; align-content: start; }
.co-item-n { font-weight: 600; font-size: 14.5px; line-height: 1.35; padding-right: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-var { font-size: 13px; color: var(--mute); }
.co-item-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 3px; }
.co-item-f .price { font-size: 16px; display: grid; }
.co-item-f .unit { font: 500 12px/1.3 var(--f-body); color: var(--mute); }
.co-rm { position: absolute; top: 0; right: 0; border: 0; background: none; color: var(--mute); font-size: 12.5px; text-decoration: underline; padding: 2px; }
.co-code { display: grid; gap: 8px; padding: 0 0 14px; }
.co-code-row { display: flex; gap: 8px; }
.co-code-row input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--fog); border-radius: 10px; padding: 0 12px; height: 46px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.co-code-row input::placeholder { text-transform: none; letter-spacing: 0; }
.co-code-row .btn { min-height: 46px; }
.co-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.co-applied .link { color: var(--ok); font-size: 13px; }
.co-code-msg { font-size: 13px; color: var(--err); font-weight: 600; margin: 0; }
.co-sum { padding: 12px 0 14px; }
.co-trust { list-style: none; margin: 2px 4px; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.co-trust li { display: flex; gap: 8px; align-items: center; }
.co-trust svg { color: var(--ok); flex: none; }
.co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(13, 14, 16, .07); }
.co-bar > div { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.co-bar small { font-size: 12px; color: var(--mute); }
.co-bar .price { font-size: 22px; }
.co-bar .btn { min-width: 150px; min-height: 52px; font-size: 16.5px; }
@media (min-width: 600px) { .co-bar { padding-inline: calc(50% - 266px); } }
.co2 .miss { margin: 0; }
.form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: 14px; }
.f label small { font-weight: 400; color: var(--mute); }
.f input, .f textarea, .f select { border: 1px solid var(--line); background: var(--fog); border-radius: 10px; padding: 12px 13px; font-size: 16px; width: 100%; min-width: 0; }
.f input:focus, .f textarea:focus, .f select:focus { background: var(--paper); border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(13, 14, 16, .08); }
.f [aria-invalid="true"] { border-color: var(--err); background: var(--paper); box-shadow: 0 0 0 1px var(--err); }
.f textarea { min-height: 72px; resize: vertical; }
.f .err { color: var(--err); font-size: 13px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- đặt thành công ---------- */
.done { max-width: 560px; margin: 0 auto; padding: 22px 16px 40px; display: grid; gap: 14px; }
.done-hero { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; }
.tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.done h1 { margin: 6px 0 0; font: 800 24px/1.1 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.done .code { font: 800 22px/1 var(--f-display); letter-spacing: .06em; background: var(--fog); border-radius: 10px; padding: 10px 16px; font-variant-numeric: tabular-nums; user-select: all; }
.done p { margin: 0; color: var(--ink-2); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.preview-note { background: #FFF8DB; border: 1px solid #F1D97A; color: #5C4A00; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.preview-note a { font-weight: 700; }
.done-acts { display: grid; gap: 10px; }

/* thông báo nhỏ */
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -10px); z-index: 95; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; line-height: 1.4; max-width: calc(100% - 32px); width: max-content; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Bản chữ đọc sẵn cho Google (máy chủ gửi kèm trang). app.js vẽ xong là thay thế ngay; nếu JavaScript bị lỗi thì bản này hiện ra sau 1,5 giây */
.ssr { opacity: 0; animation: ssr-in 0s linear 1.5s forwards; max-width: 960px; margin: 0 auto; padding: 16px; font-size: 15px; line-height: 1.6; }
@keyframes ssr-in { to { opacity: 1; } }
.ssr img { max-width: 100%; height: auto; border-radius: 12px; background: var(--fog); }
.ssr a { color: var(--ink); }
.ssr-hd { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ssr-logo { font: 800 18px/1 var(--f-display); color: var(--brand) !important; text-decoration: none; }
.ssr-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.ssr-crumbs { font-size: 13px; color: var(--mute); margin-top: 12px; }
.ssr-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ssr-grid a { display: grid; gap: 4px; text-decoration: none; font-size: 14px; }
.ssr-grid b, .ssr-price { color: var(--hot); font-weight: 800; }
.ssr-main-img { width: min(100%, 520px); }
.ssr table { border-collapse: collapse; }
.ssr th, .ssr td { text-align: left; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ssr figure { margin: 12px 0; }
.ssr figcaption { font-size: 13px; color: var(--mute); }
.ssr-ft { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }

/* ---------- ưu đãi: mua kèm giá sốc, mua nhiều giảm giá ---------- */
.deal-strip { display: flex; gap: 10px; align-items: flex-start; background: var(--hot-soft); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.deal-strip svg { flex: none; color: var(--hot); margin-top: 1px; }
.deal-strip b { display: block; color: var(--hot); font-size: 14.5px; font-weight: 700; }
.deal-strip small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 1px; }
.ao-box { display: grid; border: 1.5px solid #F4C9B8; background: #FFF9F6; border-radius: 14px; padding: 2px 12px 4px; min-width: 0; }
.ao-h { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; padding: 10px 0 8px; }
.ao-h svg { color: var(--hot); flex: none; }
.ao-h b { font: 800 14px/1.2 var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .02em; color: var(--hot); }
.ao-h small { flex-basis: 100%; font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.ao-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px dashed #F1D2C5; }
.ao-row .ph { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--fog); border: 1px solid var(--line); }
.ao-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.ao-row.on .ph { box-shadow: 0 0 0 2px var(--ok); border-color: var(--ok); }
.ao-b { display: grid; gap: 2px; min-width: 0; }
.ao-b > b { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ao-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; }
.ao-p .price { font-size: 16px; }
.ao-pk { display: flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.ao-pk svg { width: 14px; height: 14px; flex: none; }
.ao-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.price.free { color: var(--ok); }
.was { font-size: 12.5px; color: var(--mute); text-decoration: line-through; font-variant-numeric: tabular-nums; font-weight: 500; font-family: var(--f-body); }
.off { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--hot); background: #fff; border: 1px solid #F4C9B8; border-radius: 5px; padding: 1px 5px; }
.pk-top .ao-p { margin-top: 4px; }
.pk-top .ao-p .price { display: inline; font-size: 22px; margin-top: 0; }
.var .vp .was { margin-left: 6px; }
.pk-ao { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--hot); font-weight: 600; line-height: 1.35; }
.pk-ao svg { flex: none; width: 15px; height: 15px; }
.deal-tag { display: inline-flex; align-items: flex-start; gap: 5px; color: var(--hot); font-size: 12.5px; line-height: 1.35; }
.deal-tag svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.deal-tag b { font-weight: 700; }
.deal-tag.mute { color: var(--mute); }
.deal-next { display: flex; gap: 8px; align-items: flex-start; background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; line-height: 1.4; }
.deal-next svg { flex: none; margin-top: 1px; }
.co-next { display: grid; gap: 8px; padding: 0 0 14px; }
.lp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.lp .unit { flex-basis: 100%; }
.citem-f .lp .price, .co-item-f .lp .price { font-size: 16px; }
.sum .save-row span { color: var(--ok); font-weight: 700; }
.sh-b > .deal-next, .sh-b > .ao-box { margin-top: -4px; }


/* ===================== QUẢN TRỊ ===================== */
body[data-route="quan-tri"] { background: var(--fog); }
.adm { min-height: 100vh; }
.a-side { display: none; }
.a-mtop { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 var(--gut); background: var(--paper); border-bottom: 1px solid var(--line); }
.a-mtop a.out { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.a-mtop .logo-word { font-size: 11px; }
.a-main { padding: 16px var(--gut) calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; max-width: 1180px; }
.a-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.a-tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11px; font-weight: 600; color: var(--mute); text-decoration: none; }
.a-tabbar a[aria-current="page"] { color: var(--ink); }
.a-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--signal); }
.a-n { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
@media (min-width: 1024px) {
  .adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .a-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; background: var(--brand-deep); color: var(--on-dark-mute); padding: 22px 16px; }
  .a-side .logo, .a-side .logo .lhc-mark { color: #fff; }
  .a-side small { display: block; font-size: 12px; margin-top: 8px; letter-spacing: .02em; }
  .a-nav { display: grid; gap: 4px; }
  .a-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--on-dark-mute); text-decoration: none; font-weight: 600; font-size: 14.5px; }
  .a-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .a-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 #fff; }
  .a-nav .a-n { position: static; margin-left: auto; }
  .a-side .bottom { margin-top: auto; display: grid; gap: 8px; font-size: 13.5px; }
  .a-side .bottom a, .a-side .bottom button { color: var(--on-dark-mute); text-decoration: none; border: 0; background: none; padding: 6px 12px; text-align: left; font: inherit; font-weight: 600; }
  .a-side .bottom a:hover, .a-side .bottom button:hover { color: #fff; }
  .a-mtop, .a-tabbar { display: none; }
  .a-main { padding: 28px 32px 120px; gap: 20px; }
}
.a-demo { background: #FFF8DB; border: 1px solid #F1D97A; color: #5C4A00; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-head h1 { margin: 0; font: 800 24px/1.1 var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .005em; }
.a-head p { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.a-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 760px) { .a-head h1 { font-size: 30px; } }
.a-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.a-card > h2 { margin: 0; font: 800 15px/1.2 var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .01em; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.a-card > h2 small { font: 500 12.5px/1.3 var(--f-body); color: var(--mute); text-transform: none; letter-spacing: 0; }
.a-card > h2 a { font: 700 13px/1 var(--f-body); color: var(--ink); text-transform: none; letter-spacing: 0; }
.a-card .a-sub { margin: -6px 0 0; font-size: 13.5px; color: var(--mute); }
.a-cols { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1024px) { .a-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; } .a-cols.even { grid-template-columns: 1fr 1fr; } }
.a-empty { color: var(--mute); text-align: center; padding: 22px 10px; font-size: 14px; }
.a-empty a { color: var(--ink); font-weight: 700; }

/* ô số liệu */
.a-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1024px) { .a-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.a-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; text-decoration: none; color: inherit; align-content: start; }
.a-tile span { font-size: 13px; color: var(--mute); font-weight: 600; }
.a-tile b { font: 800 30px/1.05 var(--f-display); font-stretch: 104%; letter-spacing: -.01em; }
.a-tile small { font-size: 12.5px; color: var(--mute); }
.a-tile.hot { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.a-tile.hot span, .a-tile.hot small { color: var(--on-dark-mute); }
.a-tile.hot b { color: #fff; }
.a-tile.hot .go { color: var(--mips); font-weight: 700; font-size: 12.5px; }

/* biểu đồ đơn theo ngày: cột HTML để chữ không bị co theo khung */
.a-chart { position: relative; padding-left: 26px; }
.a-plot { position: relative; height: 150px; margin-top: 10px; }
.a-gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--fog-2); }
.a-gl.base { border-top-color: var(--line); }
.a-gl i { position: absolute; left: -26px; top: -7px; width: 20px; text-align: right; font: 600 11px/1 var(--f-body); font-style: normal; color: var(--mute); font-variant-numeric: tabular-nums; }
.a-cols14 { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); }
.a-c { position: relative; height: 100%; border: 0; background: none; padding: 0; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.a-cb { width: min(24px, 58%); background: var(--ink-2); border-radius: 4px 4px 0 0; }
.a-c.today .a-cb { background: var(--signal); }
.a-c:hover .a-cb, .a-c:focus-visible .a-cb, .a-c[aria-expanded="true"] .a-cb { background: var(--ink); }
.a-c.today:hover .a-cb, .a-c.today[aria-expanded="true"] .a-cb { background: #B52C0B; }
.a-cv { position: absolute; left: 0; right: 0; text-align: center; font: 700 11.5px/1 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.a-labs { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); margin-top: 7px; font: 600 11px/1 var(--f-body); color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; }
.a-labs .on { color: var(--ink); }
@media (max-width: 559px) { .a-labs span:nth-child(odd):not(:last-child) { visibility: hidden; } }
.a-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); box-shadow: var(--shadow); }
.a-tip b { display: block; font-size: 13px; }
.a-tip.l { transform: translate(-16px, calc(-100% - 8px)); }
.a-tip.r { transform: translate(calc(-100% + 16px), calc(-100% - 8px)); }
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.a-table th, .a-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.a-table td:not(:first-child), .a-table th:not(:first-child) { text-align: right; }
.a-more { font-size: 13.5px; }
.a-more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.a-more[open] summary { margin-bottom: 8px; }

/* danh sách gọn */
.a-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.a-row:first-of-type { border-top: 0; }
.a-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a-row .grow b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row .grow span { font-size: 12.5px; color: var(--mute); }
.a-bar { height: 6px; border-radius: 3px; background: var(--fog); overflow: hidden; margin-top: 6px; }
.a-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.a-call { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; border: 0; white-space: nowrap; }
.a-call.line { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.a-call.zalo { background: var(--zalo); }
.a-call.pending { background: #FFF3DC; color: #7A4800; border: 1.5px solid #E7B85F; }

/* đơn hàng */
.a-stabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 2px; }
.a-stabs::-webkit-scrollbar { display: none; }
.a-stabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; }
.a-stabs button em { font-style: normal; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.a-stabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.a-stabs button[aria-pressed="true"] em { color: var(--on-dark-mute); }
@media (min-width: 1024px) { .a-stabs { margin: 0; padding: 0; flex-wrap: wrap; } }
.a-search { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 0 14px; height: 46px; font-size: 16px; }
.a-search:focus { outline: none; border-color: var(--ink); }
.a-orders { display: grid; gap: 12px; }
@media (min-width: 1280px) { .a-orders { grid-template-columns: 1fr 1fr; align-items: start; } }
.a-ord { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; }
.a-ord.new { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.a-ord-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.a-ord-h b { font: 800 15px/1 var(--f-display); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.a-ord-h .t { margin-left: auto; font-size: 12.5px; color: var(--mute); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; background: var(--fog); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.s0 { background: var(--hot-soft); color: var(--hot); }
.pill.s1 { background: #E8F0FC; color: #1F5FBF; }
.pill.s2 { background: #EFEBFD; color: #5B3FC4; }
.pill.s3 { background: #FFF3DC; color: #9A5B00; }
.pill.s4 { background: var(--ok-soft); color: var(--ok); }
.pill.s5, .pill.s6 { background: var(--fog); color: var(--mute); }
.a-ord-b { display: grid; gap: 12px; padding: 14px; }
.a-cust { display: grid; gap: 3px; font-size: 14px; }
.a-cust .nm { font-weight: 700; font-size: 15.5px; }
.a-cust .ph { font-variant-numeric: tabular-nums; font-weight: 600; }
.a-cust .ad { color: var(--ink-2); }
.a-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.a-items { display: grid; gap: 6px; background: var(--fog); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.a-items > div { display: flex; justify-content: space-between; gap: 12px; }
.a-items .v { color: var(--mute); }
.a-items .tt { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 700; }
.a-items .tt .price { font-size: 16px; }
.a-items .minus { color: var(--ok); font-weight: 700; }
.a-note { background: #FFF8DB; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; color: #4D3E00; }
.a-ord-f { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #FAFAFB; }
.a-ord-f select, .a-ord-f textarea { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 9px 10px; font-size: 14px; min-width: 0; resize: vertical; }
@media (max-width: 520px) { .a-ord-f { grid-template-columns: 1fr; } }

/* sản phẩm */
.a-plist { display: grid; }
.a-prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.a-prow:first-child { border-top: 0; }
.a-prow.off { opacity: .55; }
.a-prow .ph { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--fog); }
.a-prow .ph img { width: 100%; height: 100%; object-fit: cover; }
.a-prow .grow { display: grid; gap: 3px; min-width: 0; }
.a-prow .grow b { font-size: 14.5px; font-weight: 700; }
.a-prow .grow span { font-size: 12.5px; color: var(--mute); }
.a-prow .grow .price { font-size: 13.5px; }
.a-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.a-tag { font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 5px; background: var(--fog); color: var(--ink-2); }
.a-tag.hot { background: var(--signal); color: #fff; }
.a-tag.off { background: var(--ink); color: #fff; }
.a-tag.warn { background: #FFF3DC; color: #9A5B00; }
.a-prow .acts { display: flex; gap: 6px; }
.a-mini { border: 1.5px solid var(--line); background: var(--paper); border-radius: 9px; padding: 7px 11px; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.a-mini:hover { border-color: var(--ink); }
.a-mini.danger { color: var(--err); }
.a-mini.danger:hover { border-color: var(--err); }
.a-mini input[type="file"] { display: none; }

/* biểu mẫu sửa */
.a-ed { display: grid; gap: 16px; }
@media (min-width: 1100px) { .a-ed { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 20px; } .a-ed > div { display: grid; gap: 20px; } }
@media (max-width: 1099px) { .a-ed > div { display: grid; gap: 16px; } }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span { font-weight: 600; font-size: 13.5px; }
.fld > span small { font-weight: 400; color: var(--mute); }
.fld input, .fld select, .fld textarea, .a-in { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 15px; width: 100%; min-width: 0; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .a-in:focus { outline: none; border-color: var(--ink); }
.fld input[readonly] { background: var(--fog); color: var(--mute); }
.fld textarea { resize: vertical; line-height: 1.45; }
.g2 { display: grid; gap: 12px; }
.g3 { display: grid; gap: 12px; }
@media (min-width: 560px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--paper); }
.checks input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0; cursor: pointer; }
.tgl span { display: grid; gap: 2px; font-weight: 600; font-size: 14.5px; }
.tgl small { font-weight: 400; color: var(--mute); font-size: 12.5px; }
.tgl input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--fog-2); position: relative; cursor: pointer; transition: background-color .15s; margin: 0; }
.tgl input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.tgl input:checked { background: var(--ok); }
.tgl input:checked::after { transform: translateX(18px); }
.a-mainimg { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
.a-mainimg .ph { width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--fog); border: 1px solid var(--line); }
.a-mainimg .ph img { width: 100%; height: 100%; object-fit: cover; }
.a-up { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--ink-2); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--paper); justify-self: start; }
.a-up:hover { background: var(--fog); }
.a-up input { display: none; }
.a-lines { display: grid; gap: 10px; }
.a-line { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #FCFCFD; }
.a-line.noimg { grid-template-columns: minmax(0, 1fr); }
.a-line .sw-big { width: 60px; height: 60px; border-radius: 10px; background: var(--fog) center / cover no-repeat; border: 1px solid var(--line); }
.a-line .sw-big.tall { height: 75px; position: relative; background-position: top center; }
.a-no { position: absolute; top: 4px; left: 4px; background: var(--ink); color: #fff; font: 800 12px/1 var(--f-display); padding: 4px 6px; border-radius: 6px; }
.a-warn { background: var(--err-soft); border: 1px solid #F3B8B2; color: var(--err-ink); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.a-line .ins { display: grid; gap: 8px; min-width: 0; }
.a-line .side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a-line .side label.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 0 4px; }
.a-line .side label.chk input { accent-color: var(--ink); }
.a-line .row2 { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
@media (min-width: 560px) { .a-line { grid-template-columns: 60px minmax(0, 1fr) auto; } .a-line.noimg { grid-template-columns: minmax(0, 1fr) auto; } .a-line .side { grid-column: auto; flex-direction: column; align-items: stretch; } }
/* mã giảm giá: 4 ô tự xếp 4 cột khi đủ rộng, 2 cột khi hẹp (ô mã không bị co mất) */
.a-line .row4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.a-line .a-in { padding: 9px 11px; font-size: 14.5px; }
.a-banner { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #FCFCFD; }
.a-banner .pv { position: relative; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; background: var(--carbon) center / cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.a-banner .pv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .75)); }
.a-banner .pv span { position: relative; z-index: 1; padding: 10px 12px; display: grid; gap: 2px; }
.a-banner .pv small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.a-banner .pv b { font: 800 18px/1.05 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.a-banner .pv.off { opacity: .45; }
.a-save { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 28px rgba(13, 14, 16, .12); }
.a-save .grow { flex: 1; min-width: 120px; font-size: 13.5px; color: var(--mute); }
.a-save .grow.dirty { color: var(--hot); font-weight: 700; }
@media (min-width: 1024px) { .a-save { bottom: 16px; } }
.a-promo-pv { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.a-promo-pv .promo .wrap { padding-inline: 12px; }
.a-hintbox { background: var(--fog); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.a-hintbox b { color: var(--ink); }

/* đăng nhập */
.a-login { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gut); background: radial-gradient(120% 90% at 50% 30%, #2C7A4D 0%, var(--brand) 45%, var(--brand-deep) 100%); }
.a-login form { width: min(400px, 100%); background: var(--paper); border-radius: 20px; padding: 28px 22px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.a-login h1 { margin: 6px 0 0; font: 800 22px/1.1 var(--f-display); font-stretch: 110%; text-transform: uppercase; }
.a-login input { border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; height: 54px; font: 800 24px/1 var(--f-display); letter-spacing: .4em; text-align: center; }
.a-login input:focus { outline: none; border-color: var(--ink); }
.a-login .alert { margin: 0; }

/* trang sửa sản phẩm: 4 thẻ */
.a-etabs { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 25; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut); background: var(--fog); border-bottom: 1px solid var(--line); }
.a-etabs::-webkit-scrollbar { display: none; }
.a-etabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.a-etabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.a-etabs em { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fog-2); color: var(--ink); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.a-etabs button[aria-selected="true"] em { background: var(--signal); color: #fff; }
@media (min-width: 1024px) { .a-etabs { top: 0; margin: 0 -32px; padding: 10px 32px; } }
.a-stack { display: grid; gap: 16px; }
@media (min-width: 1024px) { .a-stack { gap: 20px; } }

/* trình soạn mô tả */
.a-dtools { display: flex; flex-wrap: wrap; gap: 8px; }
.a-upbtn { cursor: pointer; }
.a-upbtn input { display: none; }
.a-dempty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; color: var(--mute); font-size: 14px; line-height: 1.55; }
.a-dempty b { color: var(--ink); }
.a-dseg { display: grid; grid-template-columns: 1fr 1fr; background: var(--fog); border-radius: 12px; padding: 4px; gap: 4px; }
.a-dseg button { border: 0; background: none; border-radius: 9px; padding: 9px 8px; font-weight: 700; font-size: 14px; color: var(--mute); }
.a-dseg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(13, 14, 16, .12); }
.a-dgrid { display: grid; gap: 16px; align-items: start; }
.a-dlist { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 1023px) { .a-dgrid:not(.pv-on) .a-pv { display: none; } .a-dgrid.pv-on .a-dlist { display: none; } }
@media (min-width: 1024px) { .a-dseg { display: none; } .a-dgrid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; } .a-pv { position: sticky; top: 76px; } }
.a-blks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.a-blk { border: 1px solid var(--line); border-radius: 14px; background: #FCFCFD; padding: 10px 12px 12px; display: grid; gap: 10px; transition: box-shadow .15s, opacity .15s; }
.a-blk.text { background: #FFFCF2; border-color: #EFE2B8; }
.a-blk.over { box-shadow: 0 0 0 2px var(--signal); }
.a-blk.dragging { opacity: .45; }
.a-blk-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.a-drag { display: inline-flex; align-items: center; gap: 6px; cursor: grab; user-select: none; -webkit-user-select: none; }
.a-grip { color: var(--mute); font-size: 16px; line-height: 1; }
.a-blk-h .a-no { position: static; min-width: 26px; text-align: center; padding: 5px 7px; }
.a-kind { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.a-pos { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.a-pos select { border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 6px; font-size: 14px; font-weight: 700; background: var(--paper); color: var(--ink); }
.a-blk-b { display: grid; gap: 8px; min-width: 0; }
.a-blk-b.img { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.a-blk-th { width: 64px; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--fog) top center / cover no-repeat; border: 1px solid var(--line); }
.a-blk-b .a-in { padding: 9px 11px; font-size: 14.5px; }
.a-blk-b textarea.a-in { resize: vertical; line-height: 1.5; }
.a-blk-f { display: flex; flex-wrap: wrap; gap: 6px; }
.a-blk-f .a-mini[disabled] { opacity: .35; cursor: default; }
.a-pv-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.a-pv-h b { font-size: 14px; }
.a-pv-h small { color: var(--mute); font-size: 12.5px; }
.a-phone { width: 100%; max-width: 340px; margin-inline: auto; border: 10px solid var(--ink); border-radius: 32px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px rgba(13, 14, 16, .18); }
.a-phone-scr { max-height: min(640px, 72vh); overflow-y: auto; overscroll-behavior: contain; }
.a-phone .pv-title { padding: 16px 14px 10px; font: 800 14px/1.2 var(--f-display); font-stretch: 110%; text-transform: uppercase; }
.a-phone .desc { margin-inline: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
.a-phone .desc-img { border-radius: 0; cursor: default; }
.a-phone .desc-text { grid-column: auto; padding: 16px 14px; max-width: none; font-size: 13.5px; }
.a-phone .desc-text h3 { font-size: 15px; }
.a-phone .a-dempty { margin: 14px; }

/* video trong quản trị */
.a-vth { position: relative; background-color: var(--carbon); }
.a-vplay { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(13, 14, 16, .65); color: #fff; font-size: 11px; display: grid; place-items: center; padding-left: 2px; }
.a-vdur { position: absolute; right: 3px; bottom: 3px; background: rgba(13, 14, 16, .8); color: #fff; font: 600 10.5px/1 var(--f-body); padding: 3px 5px; border-radius: 6px; }
.a-vline .ins .hint { font-size: 12.5px; }
.a-vprev { width: 100%; max-height: 320px; border-radius: 10px; background: #000; }
.a-vlink { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.a-vlink .a-in { padding: 10px 12px; }

/* Cài đặt: Telegram, Google, sao lưu */
.a-ok { background: var(--ok-soft); border: 1px solid #B9E0C9; color: #0B5A33; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; margin: 0; }
.a-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.a-tgrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.a-tgbtns { display: flex; gap: 6px; padding-bottom: 2px; }
.a-tgpick { display: flex; flex-wrap: wrap; gap: 6px; }
.a-links { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--mute); }
.a-links span { grid-column: 1 / -1; }
.a-links code { font: 600 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--fog); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
@media (max-width: 420px) { .a-tgrow { grid-template-columns: 1fr; } }

/* ---------- ưu đãi: mua kèm giá sốc, mua nhiều giảm giá ---------- */
.a-deal { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #FCFCFD; min-width: 0; }
.a-deal.off { opacity: .62; }
.a-deal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-deal-h b { font-size: 14.5px; margin-right: auto; }
.a-deal-h .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.a-deal-h .chk input { accent-color: var(--ok); width: 17px; height: 17px; margin: 0; }
.a-deal .a-in { padding: 9px 10px; font-size: 14.5px; min-width: 0; }
.a-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a-dl select { flex: 1 1 200px; }
.a-dl input { flex: 0 0 124px; width: 124px; }
.a-dl .hint { flex-basis: 100%; font-size: 12.5px; line-height: 1.4; }
.a-tier { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 46px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.a-tier .g { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.a-tier .q { width: 56px; text-align: center; }
.a-tier .v { width: 116px; }
.a-tier select { width: 82px; }
.a-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); color: var(--err); font-size: 20px; line-height: 1; padding: 0; }
.a-x:hover { border-color: var(--err); }
.a-bad { color: var(--err); font-weight: 600; }
.checks label.off { opacity: .45; }
.a-deal .a-more summary { font-size: 13.5px; }
.a-deal .a-more .checks { margin-top: 8px; max-height: 264px; overflow: auto; padding: 2px; }
.a-dealt { color: var(--hot); font-size: 12.5px; }
.a-dealt s { color: var(--mute); }
