/* Ampe — điện máy nói bằng thông số. Bản làm lại: catalogue kỹ thuật, ra mắt sản phẩm trong bóng tối. */
:root {
  --ink: #141516;          /* than chì — chữ chính */
  --paper: #f0eee9;        /* giấy catalogue ấm */
  --sheet: #e5e2dc;        /* mặt nổi: đá mài nhạt (lấy từ ảnh mặt đá) */
  --mute: #5e5b56;         /* chữ phụ */
  --night: #09090a;        /* phòng tối ra mắt sản phẩm */
  --volt: #ff5a1f;         /* màu nhấn duy nhất: kim đồng hồ ampe / ánh đồng trên lưng máy */
  --volt-ink: #120a05;
  --volt-text: #b8410e;    /* volt dùng làm chữ trên nền sáng (AA) */
  --line: rgba(20, 21, 22, .12);
  --plate: #dfe0e2;        /* nền ảnh sản phẩm studio */
  --ok: #2f7a4f;
  --err: #b3261e;
  --f-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1400px;
  --hdr: 72px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #ecebe6;
  --paper: #0f1011;
  --sheet: #1a1b1d;
  --mute: #a7a39c;
  --volt-text: #ff8a5c;
  --line: rgba(236, 235, 230, .13);
  --plate: #d9dadc;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-d);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--volt); color: var(--volt-ink); padding: 12px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--f-m); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Nút ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 22%, transparent); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.volt { --bg: var(--volt); --fg: var(--volt-ink); }
.btn.light { --bg: #f2f1ed; --fg: #0b0b0c; }
.btn.ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn .ic { width: 20px; height: 20px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 10px 0; min-height: 44px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1.5px no-repeat; transition: background-size .35s var(--ease); border: 0; background-color: transparent; }
.link:hover { background-size: 0 1.5px; background-position: 100% calc(100% - 8px); }
.link .ic { width: 18px; height: 18px; transition: transform .3s var(--spring); }
.link:hover .ic { transform: translateX(4px); }
.ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; position: relative; transition: background .2s, transform .15s var(--ease); }
.ibtn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.ibtn:active { transform: scale(.94); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .45s var(--ease), box-shadow .35s;
}
.hdr.solid { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.hdr.dark { color: #f2f1ed; }
.hdr.dark.solid { background: var(--night); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.hdr.hide { transform: translateY(-100%); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 27px; letter-spacing: -.045em; font-variation-settings: "wdth" 112; min-height: 44px; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: background .2s; }
.nav a:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.hdr .tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.kbd { font-family: var(--f-m); font-size: 13px; opacity: .6; margin-left: 6px; }
.searchbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: color-mix(in srgb, currentColor 8%, transparent); font-size: 15px; margin-right: 8px; transition: background .2s; }
.searchbtn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.lang { font-family: var(--f-m); font-size: 13px; font-weight: 600; }
.cartbtn .count { position: absolute; top: 3px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--volt); color: var(--volt-ink); font: 700 12px/20px var(--f-m); text-align: center; transform: scale(0); transition: transform .35s var(--spring); }
.cartbtn .count.on { transform: scale(1); }
.cartbtn.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.2); } }
.calmbtn[aria-pressed="true"], .themebtn[aria-pressed="true"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.menubtn { display: none; }

/* ---------- Khung trang ---------- */
main { display: block; min-height: 70vh; outline: none; }
main.enter { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { font-family: var(--f-m); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; margin: 0; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--volt); }
.night .eyebrow { color: rgba(242,241,237,.62); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98; font-variation-settings: "wdth" 104; text-wrap: balance; }
.h-xl { font-size: clamp(56px, 10vw, 168px); font-variation-settings: "wdth" 116; letter-spacing: -.055em; line-height: .86; }
.h-l { font-size: clamp(40px, 5.4vw, 84px); }
.h-m { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; max-width: 34em; color: var(--mute); }
.night .lede, .hero .lede { color: rgba(242,241,237,.8); }
.night { background: var(--night); color: #f2f1ed; --line: rgba(255,255,255,.1); --mute: rgba(242,241,237,.62); --ink: #f2f1ed; --volt-text: #ff8a5c; }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Chuyển động khi cuộn ---------- */
[data-rv] { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-rv].in { opacity: 1; transform: none; }
[data-clip] { clip-path: inset(12% 8% 12% 8%); transition: clip-path 1.1s var(--ease); }
[data-clip] img { transform: scale(1.16); transition: transform 1.4s var(--ease); }
[data-clip].in { clip-path: inset(0 0 0 0); }
[data-clip].in img { transform: scale(1); }
.calm [data-rv], .calm [data-clip], .calm [data-clip] img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.calm main.enter { animation: none; }
@media (prefers-reduced-motion: reduce) {
  [data-rv], [data-clip], [data-clip] img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  main.enter { animation: none; }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; background: var(--night); color: #f3f2ee; }
.hero-media { position: absolute; inset: -5% 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.14); animation: heroIn 2.8s var(--ease) .05s forwards; }
@keyframes heroIn { to { transform: scale(1.0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(9,9,10,.9) 0%, rgba(9,9,10,.5) 36%, rgba(9,9,10,0) 62%),
  linear-gradient(0deg, rgba(9,9,10,.92) 0%, rgba(9,9,10,0) 42%); }
.hero-in { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-bottom: clamp(40px, 7vh, 80px); }
.hero h1 { margin: 22px 0 26px; line-height: .96; }
.hero h1 .ln { display: block; overflow: hidden; padding: .16em 0 .06em; margin: -.16em 0 -.06em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(108%); animation: lineUp 1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .12s); }
.hero h1 em { font-style: normal; color: var(--volt); }
@keyframes lineUp { to { transform: none; } }
.hero .eyebrow, .hero .lede, .hero .cta, .hero-spec, .hero-tag { opacity: 0; animation: fadeUp .9s var(--ease) forwards; animation-delay: calc(.6s + var(--i, 0) * .09s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .lede { max-width: 29em; margin: 0; }
.hero .cta { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-spec { width: 280px; border-left: 1.5px solid rgba(255,255,255,.2); padding-left: 24px; margin-bottom: 8px; }
.hero-spec dl { margin: 0; display: grid; gap: 22px; }
.hero-spec dt { font: 500 13px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: rgba(243,242,238,.55); margin-bottom: 8px; }
.hero-spec dd { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -.04em; font-variation-settings: "wdth" 84; line-height: 1; }
.hero-spec dd small { font-size: 16px; font-weight: 500; margin-left: 4px; color: rgba(243,242,238,.7); letter-spacing: 0; font-variation-settings: "wdth" 100; }
.hero-tag { position: absolute; z-index: 2; top: calc(var(--hdr) + 28px); right: var(--pad); text-align: right; color: rgba(243,242,238,.62); line-height: 1.7; }
.scrollcue { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1.5px; height: 56px; background: rgba(255,255,255,.16); overflow: hidden; }
.scrollcue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--volt); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
.calm .hero-media img, .calm .hero h1 .ln > span, .calm .hero .eyebrow, .calm .hero .lede, .calm .hero .cta, .calm .hero-spec, .calm .hero-tag { animation: none; transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-media img, .hero h1 .ln > span, .hero .eyebrow, .hero .lede, .hero .cta, .hero-spec, .hero-tag { animation: none !important; transform: none !important; opacity: 1 !important; } .scrollcue::after { animation: none; } }

/* ---------- Tuyên ngôn + số đếm ---------- */
.manifesto { padding: clamp(96px, 13vw, 192px) 0 clamp(80px, 10vw, 140px); }
.manifesto .big { font-size: clamp(28px, 3.7vw, 58px); line-height: 1.12; font-weight: 600; letter-spacing: -.032em; max-width: 21em; text-wrap: pretty; margin: 28px 0 0; }
.manifesto .big .dim { color: color-mix(in srgb, var(--ink) 36%, transparent); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(64px, 9vw, 128px); }
.counter { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.counter b { display: block; font-size: clamp(56px, 6.4vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-variation-settings: "wdth" 76; font-variant-numeric: tabular-nums; }
.counter span { display: block; margin-top: 14px; color: var(--mute); font-size: 16px; max-width: 16em; }

/* ---------- Kể chuyện từng dòng máy (ghim) ---------- */
.story { position: relative; }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.story-figs { position: relative; margin: calc(var(--hdr) + 16px) 0 36px var(--pad); }
.story-fig { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); background: var(--plate); overflow: hidden; }
.story-fig.on, .story-fig.past { clip-path: inset(0 0 0 0); }
.story-fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.8s var(--ease); }
.story-fig.on img { transform: scale(1); }
.story-fig figcaption { position: absolute; left: 22px; bottom: 18px; font: 500 13px/1.3 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: #3a3a3a; }
.story-fig.dkimg figcaption { color: rgba(255,255,255,.72); }
.ruler { position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: 2; pointer-events: none; color: rgba(40,40,40,.55);
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 50px) 0 0 / 100% 14px no-repeat; }
.story-fig.dkimg .ruler { color: rgba(255,255,255,.4); }
.story-txt { position: relative; padding: calc(var(--hdr) + 28px) var(--pad) 44px clamp(32px, 4vw, 72px); display: flex; flex-direction: column; justify-content: space-between; }
.story-idx { display: flex; justify-content: space-between; align-items: center; color: rgba(242,241,237,.62); }
.story-idx .bar { flex: 1; height: 1.5px; background: rgba(255,255,255,.14); margin: 0 18px; position: relative; overflow: hidden; }
.story-idx .bar i { position: absolute; inset: 0; background: var(--volt); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.chap { position: absolute; left: clamp(32px, 4vw, 72px); right: var(--pad); top: 50%; transform: translateY(-46%); pointer-events: none; }
.chap.on { pointer-events: auto; }
.chap > * { opacity: 0; transform: translateY(26px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.chap.on > * { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * 70ms); }
.chap .cat { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.chap .fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; margin: 12px 0 22px; font-size: clamp(80px, 9.6vw, 164px); font-weight: 700; line-height: .86; letter-spacing: -.06em; font-variation-settings: "wdth" 70; font-variant-numeric: tabular-nums; }
.chap .fig small { font-size: .26em; font-weight: 600; letter-spacing: -.01em; font-variation-settings: "wdth" 100; color: var(--volt); }
.chap p { font-size: 18px; color: rgba(242,241,237,.72); max-width: 25em; margin: 0 0 20px; }
.story-foot { color: rgba(242,241,237,.5); }

/* ---------- TV xoay (ghim) ---------- */
.spin { position: relative; height: 320vh; }
.spin-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: radial-gradient(70% 60% at 50% 55%, #17181b 0%, var(--night) 70%); }
.spin-stage { position: absolute; inset: 0; }
.spin-stage canvas { width: 100% !important; height: 100% !important; display: block; }
.spin-poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s var(--ease); }
.spin-poster img { width: min(70vw, 860px); aspect-ratio: 16/10; object-fit: cover; opacity: .9; -webkit-mask-image: radial-gradient(closest-side, #000 65%, transparent); mask-image: radial-gradient(closest-side, #000 65%, transparent); }
.spin.ready .spin-poster { opacity: 0; }
.spin-head { position: absolute; z-index: 2; top: calc(var(--hdr) + 28px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; pointer-events: none; }
.spin-head > * { pointer-events: auto; }
.spin-head h2 { max-width: 11em; margin-top: 16px; }
.spin-cap { position: absolute; z-index: 2; bottom: clamp(32px, 7vh, 72px); width: min(360px, 34vw); opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.spin-cap.on { opacity: 1; transform: none; }
.spin-cap.l { left: var(--pad); }
.spin-cap.r { right: var(--pad); text-align: right; }
.spin-cap b { display: block; font-size: clamp(52px, 5.8vw, 92px); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-variation-settings: "wdth" 74; }
.spin-cap span { display: block; margin-top: 14px; color: rgba(242,241,237,.72); font-size: 17px; }
.spin-cap .mono { color: var(--volt); margin: 0 0 12px; display: block; }
.spin-buy { text-align: right; }
.spin-buy .price { font-size: 26px; font-weight: 700; letter-spacing: -.02em; display: block; margin-bottom: 14px; }

/* ---------- Section chung ---------- */
.sec { padding: clamp(88px, 11vw, 168px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { margin-top: 18px; }
.sec-head .lede { margin: 18px 0 0; }

/* ---------- Thẻ sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(20px, 2.4vw, 36px); }
.card { position: relative; display: flex; flex-direction: column; }
.card .ph { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: 4px; overflow: hidden; background: var(--plate); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .ph img { transform: scale(1.045); }
.card .ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.34), transparent 46%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
.card:hover .ph::after { opacity: 1; }
.card .tag { position: absolute; z-index: 2; top: 16px; left: 16px; font: 600 13px/1 var(--f-m); letter-spacing: .05em; text-transform: uppercase; background: #f2f1ed; color: #141516; padding: 8px 10px; border-radius: 3px; pointer-events: none; }
.card .tag.v { background: var(--volt); color: var(--volt-ink); }
.card .meta { padding: 20px 2px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: start; }
.card .brand { grid-column: 1 / -1; font: 500 13px/1 var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.card h3 { font-size: clamp(19px, 1.45vw, 22px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; font-variation-settings: "wdth" 100; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .key { grid-column: 1 / -1; color: var(--mute); font-size: 15px; }
.card .pr { text-align: right; white-space: nowrap; }
.card .pr .from { color: var(--mute); font-size: 14px; margin-right: 6px; }
.card .pr s { display: block; }
.card .pr b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card .pr s { color: var(--mute); font-size: 14px; }
.card .acts { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card:hover .acts, .card:focus-within .acts { opacity: 1; transform: none; }
.card .acts button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f2f1ed; color: #141516; display: grid; place-items: center; transition: transform .15s var(--ease), background .2s; }
.card .acts button:active { transform: scale(.9); }
.card .acts button[aria-pressed="true"] { background: #141516; color: #f2f1ed; }
.card .acts button.add { background: var(--volt); color: var(--volt-ink); }
@media (hover: none) { .card .acts { opacity: 1; transform: none; } }

/* skeleton */
.sk { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 4px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 60%, transparent), transparent); animation: shim 1.2s infinite; }
@keyframes shim { to { transform: translateX(100%); } }
.sk-card .sk.ph { aspect-ratio: 4 / 4.6; }
.sk-card .sk.l { height: 14px; margin-top: 20px; width: 36%; }
.sk-card .sk.l2 { height: 22px; margin-top: 12px; width: 72%; }

/* ---------- Phòng thử (teaser) ---------- */
.roomtease { position: relative; height: 150vh; background: var(--paper); }
.roomtease-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.roomtease-img { position: absolute; inset: 0; clip-path: inset(var(--ci, 16%) var(--cx, 20%) var(--ci, 16%) var(--cx, 20%)); background: var(--night); }
.roomtease-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sc, 1.12)); }
.roomtease-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,9,10,.86), rgba(9,9,10,.05) 58%); opacity: var(--to, 0); }
.roomtease-txt { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(36px, 8vh, 80px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; color: #f3f2ee; opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 30px)); }
.roomtease-txt .lede { color: rgba(243,242,238,.75); }
.roomtease-txt .eyebrow { color: rgba(243,242,238,.62); }
.measure { position: absolute; z-index: 2; left: 52.5%; top: 30.5%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: #fff; font: 600 14px/1 var(--f-m); opacity: var(--to, 0); }
.measure i { display: block; height: 1.5px; width: clamp(50px, 8vw, 140px); background: #fff; position: relative; }
.measure i::before { content: ""; position: absolute; top: -6px; height: 13px; width: 1.5px; background: #fff; }
.measure i:first-child::before { left: 0; } .measure i:last-child::before { right: 0; }
.measure span { background: var(--volt); color: var(--volt-ink); padding: 7px 10px; border-radius: 3px; white-space: nowrap; }

/* ---------- Cách Ampe bán ---------- */
.rules { border-top: 1.5px solid var(--ink); }
.rule { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rule .n { font: 500 14px/1 var(--f-m); color: var(--mute); padding-top: 12px; }
.rule h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; }
.rule p { margin: 0; color: var(--mute); font-size: 17px; max-width: 30em; }

/* ---------- Lời khách ---------- */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 24px; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.34; font-weight: 500; letter-spacing: -.018em; text-wrap: pretty; }
.quote.big blockquote { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.quote blockquote::before { content: "“"; color: var(--volt); }
.quote blockquote::after { content: "”"; color: var(--volt); }
.quote figcaption { display: flex; align-items: center; gap: 14px; color: var(--mute); font-size: 15px; line-height: 1.4; }
.quote figcaption b { color: var(--ink); font-weight: 600; display: block; font-size: 16px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--plate); }
.quotes .col { display: grid; gap: 64px; padding-top: 14px; }

/* ---------- Cửa hàng ---------- */
.stores { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.stores .pic { position: sticky; top: calc(var(--hdr) + 24px); aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 4px; }
.stores .pic img { width: 100%; height: 100%; object-fit: cover; }
.stores .pic figcaption { position: absolute; left: 20px; bottom: 18px; color: rgba(255,255,255,.75); font: 500 13px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
.city { margin-bottom: 40px; }
.city h3 { font: 500 14px/1 var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.store { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.store b { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.store .h { font-family: var(--f-m); font-size: 14px; text-align: right; }
.store .a { color: var(--mute); font-size: 15px; grid-column: 1 / -1; }
.store .d { font-size: 15px; grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: #efeee9; padding: clamp(72px, 9vw, 128px) 0 36px; overflow: hidden; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr h4 { margin: 0 0 16px; font: 500 13px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: rgba(239,238,233,.55); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ftr ul a { text-decoration: none; display: inline-block; padding: 9px 0; color: rgba(239,238,233,.88); transition: color .2s; }
.ftr ul a:hover { color: var(--volt); }
.ftr .lead { font-size: 22px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; max-width: 17em; margin: 0 0 24px; }
.ftr .hot { font-family: var(--f-m); font-size: 15px; color: rgba(239,238,233,.7); }
.giant { font-size: clamp(120px, 26vw, 420px); font-weight: 900; letter-spacing: -.075em; line-height: .78; font-variation-settings: "wdth" 125; margin: clamp(56px, 8vw, 120px) 0 0 -0.04em; padding-bottom: .26em; color: #efeee9; display: flex; align-items: flex-end; gap: .05em; }
.giant .needle { flex: none; width: .15em; height: .15em; aspect-ratio: 1; border-radius: 50%; background: var(--volt); margin-bottom: .04em; }
.legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(239,238,233,.66); font-size: 14px; }
.legal p { margin: 0; max-width: 62em; }
.legal a { color: #efeee9; }

/* ---------- Danh mục ---------- */
.cat-hero { padding: calc(var(--hdr) + 56px) 0 8px; }
.cat-hero .row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.cat-hero h1 { margin-top: 18px; }
.cat-hero .lede { margin: 18px 0 0; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 32px var(--pad) 6px; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 0; background: var(--sheet); text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s, color .2s, transform .15s var(--ease); }
.chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chip.noimg { padding-left: 20px; }
.chip:active { transform: scale(.97); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 40px; color: var(--mute); flex-wrap: wrap; }
.select { position: relative; display: inline-block; }
.select select { appearance: none; min-height: 48px; padding: 0 44px 0 18px; border-radius: 999px; border: 0; background: var(--sheet); font-size: 15px; font-weight: 500; color: var(--ink); }
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.empty { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; padding: 48px 0 96px; }
.empty img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.empty h2 { margin-bottom: 14px; }
.empty p { color: var(--mute); margin: 0 0 24px; font-size: 17px; }

/* ---------- Trang chi tiết (ra mắt sản phẩm) ---------- */
.pd-hero { padding: calc(var(--hdr) + 28px) 0 clamp(64px, 8vw, 112px); }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(242,241,237,.6); margin-bottom: 24px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; padding: 10px 0; }
.crumbs a:hover { color: #fff; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.pd-media { position: sticky; top: calc(var(--hdr) + 20px); }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--plate); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .fig { position: absolute; left: 20px; bottom: 18px; font: 500 13px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: #3a3a3a; }
.pd-main.dkimg .fig { color: rgba(255,255,255,.72); }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumbs button { width: 76px; height: 76px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--plate); opacity: .5; transition: opacity .2s, box-shadow .2s; }
.pd-thumbs button:hover { opacity: .85; }
.pd-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--volt); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding-top: 8px; }
.pd-info .brand { font: 500 14px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--volt); }
.pd-info h1 { font-size: clamp(40px, 4.4vw, 70px); margin: 18px 0 20px; }
.pd-info .pitch { font-size: 19px; line-height: 1.55; color: rgba(242,241,237,.75); margin: 0 0 36px; max-width: 30em; }
.lbl { display: flex; justify-content: space-between; font: 500 13px/1 var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: rgba(242,241,237,.58); margin-bottom: 14px; }
.vars { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.vars button { min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #f2f1ed; font-weight: 600; font-size: 15px; transition: background .2s, color .2s, transform .15s var(--ease); }
.vars button:hover { background: rgba(255,255,255,.15); }
.vars button:active { transform: scale(.97); }
.vars button[aria-pressed="true"] { background: #f2f1ed; color: #0b0b0c; }
.price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.price-row .p { font-size: clamp(40px, 3.8vw, 56px); font-weight: 700; letter-spacing: -.045em; font-variation-settings: "wdth" 84; line-height: 1; }
.price-row s { color: rgba(242,241,237,.5); font-size: 18px; }
.price-row .save { font: 600 14px/1 var(--f-m); color: var(--volt); }
.vat { color: rgba(242,241,237,.58); font-size: 14px; margin: 6px 0 28px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; }
.buy .btn { flex: 1 1 200px; }
.pd-facts { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.pd-facts li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 16px; color: rgba(242,241,237,.82); }
.pd-facts .ic { width: 22px; height: 22px; color: var(--volt); margin-top: 1px; }
.pd-facts b { color: #fff; font-weight: 600; }

.keynums { display: grid; grid-template-columns: repeat(var(--kn, 3), minmax(0, 1fr)); gap: 32px; }
.keynum { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.keynum b { display: block; font-size: clamp(60px, 7vw, 116px); font-weight: 700; line-height: .88; letter-spacing: -.055em; font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; white-space: nowrap; }
.keynum b small { font-size: .3em; font-weight: 600; letter-spacing: 0; margin-left: 6px; font-variation-settings: "wdth" 100; color: var(--volt-text); }
.keynum > span { display: block; margin-top: 14px; color: var(--mute); }
.hls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: clamp(56px, 7vw, 96px); }
.hl { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.hl .n { font: 500 14px/1 var(--f-m); color: var(--volt-text); }
.hl p { margin: 0; font-size: clamp(20px, 1.7vw, 26px); font-weight: 550; letter-spacing: -.02em; line-height: 1.25; }

.specs { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; }
.specs .side { position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
.specs .side h2 { margin: 18px 0 16px; }
.specs .side p { color: var(--mute); margin: 0 0 20px; }
.sgroup { margin-bottom: 48px; }
.sgroup h3 { font-size: 22px; letter-spacing: -.02em; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.srow { display: grid; grid-template-columns: minmax(140px, 1fr) 1.4fr; gap: 24px; min-height: 58px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; align-items: baseline; margin: 0; }
.srow dt { color: var(--mute); }
.srow dd { margin: 0; font-weight: 500; }
.stars { letter-spacing: 2px; color: var(--volt-text); }

/* hộp bao bì có nhãn */
.boxsec { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.pack-stage { perspective: 1600px; display: grid; place-items: center; padding: 64px 0 88px; background: radial-gradient(55% 40% at 50% 78%, color-mix(in srgb, var(--ink) 10%, transparent), transparent 70%); border-radius: 4px; }
.pack { --w: 360px; --h: 300px; --d: 120px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-30deg); transition: transform 1.2s var(--ease); }
.pack-stage:hover .pack { transform: rotateX(-9deg) rotateY(-14deg); }
.pack > div { position: absolute; backface-visibility: hidden; overflow: hidden; }
.pack .f { inset: 0; transform: translateZ(calc(var(--d) / 2)); }
.pack .s { top: 0; left: calc(50% - var(--d) / 2); width: var(--d); height: var(--h); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.8); }
.pack .t { left: 0; top: calc(50% - var(--d) / 2); width: var(--w); height: var(--d); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(1.1); }
.pk { --pk-bg: #151618; --pk-fg: #f4f3ef; --pk-mute: rgba(244,243,239,.55); background: var(--pk-bg); color: var(--pk-fg); }
.pk.kaze { --pk-bg: #e4eaec; --pk-fg: #17323d; --pk-mute: rgba(23,50,61,.6); }
.pk.home { --pk-bg: #c9ad86; --pk-fg: #2b1d10; --pk-mute: rgba(43,29,16,.62); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pk.okara { --pk-bg: #f5f4f0; --pk-fg: #1d1e20; --pk-mute: rgba(29,30,32,.55); }
.pk .label { position: absolute; inset: 0; padding: 20px 22px 18px; display: grid; grid-template-rows: auto 1fr auto auto; }
.pk .wm { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pk .wm b { font-size: 26px; font-weight: 800; letter-spacing: .22em; font-variation-settings: "wdth" 125; line-height: 1; }
.pk.kaze .wm b { font-weight: 300; letter-spacing: .32em; text-transform: lowercase; }
.pk.home .wm b { letter-spacing: -.04em; font-variation-settings: "wdth" 110; text-transform: lowercase; font-weight: 800; }
.pk.okara .wm b { font-family: var(--f-m); letter-spacing: .14em; font-weight: 700; font-size: 22px; }
.pk .wm span { font: 500 10px/1 var(--f-m); letter-spacing: .08em; color: var(--pk-mute); text-transform: uppercase; }
.pk .win { margin: 12px 0; border-radius: 2px; overflow: hidden; position: relative; min-height: 0; }
.pk .win img { width: 100%; height: 100%; object-fit: cover; }
.pk.kaze .win img, .pk.okara .win img, .pk.home .win img { mix-blend-mode: multiply; }
.pk .nm { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.pk .ft { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 8px; }
.pk .ft small { font: 500 10px/1.4 var(--f-m); color: var(--pk-mute); letter-spacing: .04em; }
.pk .bc { height: 28px; width: 84px; color: var(--pk-fg); flex: none; }
.pk.side-l { display: grid; place-items: center; }
.pk.side-l span { transform: rotate(90deg); white-space: nowrap; font-weight: 800; letter-spacing: .3em; font-size: 15px; font-variation-settings: "wdth" 125; }
.pk.top-l { display: grid; place-items: center; }
.pk.top-l i { width: 76%; height: 4px; background: var(--pk-mute); border-radius: 2px; opacity: .5; }
.inbox { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: b; }
.inbox li { counter-increment: b; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.inbox li::before { content: counter(b, decimal-leading-zero); font: 500 14px/1.9 var(--f-m); color: var(--mute); }

.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; min-height: 56px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { transition: transform .35s var(--spring); }
.qa details[open] summary .ic { transform: rotate(45deg); }
.qa details p { margin: 0 0 26px; color: var(--mute); font-size: 17px; max-width: 42em; }
.buybar { display: none; }

/* ---------- So sánh ---------- */
.cmp-wrap { --cols: 220px repeat(var(--n), minmax(0, 1fr)); }
.cmp-head { display: grid; grid-template-columns: var(--cols); gap: 24px; position: sticky; top: var(--hdr); background: var(--paper); z-index: 5; padding: 16px 0 22px; border-bottom: 1.5px solid var(--ink); }
.cmp-head .ctl { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 500; min-height: 44px; }
.toggle input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: color-mix(in srgb, var(--ink) 22%, transparent); position: relative; transition: background .25s; flex: none; margin: 0; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform .3s var(--spring); }
.toggle input:checked { background: var(--volt); }
.toggle input:checked::after { transform: translateX(18px); }
.cmp-col { position: relative; min-width: 0; }
.cmp-col .ph { display: block; aspect-ratio: 4 / 3.1; border-radius: 4px; overflow: hidden; background: var(--plate); }
.cmp-col .ph img { width: 100%; height: 100%; object-fit: cover; }
.cmp-col h3 { font-size: 20px; margin: 14px 0 6px; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
.cmp-col h3 a { text-decoration: none; }
.cmp-col .p { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cmp-col .rm { position: absolute; top: 10px; right: 10px; background: #f2f1ed; color: #141516; }
.cmp-col .select { margin-top: 10px; display: block; }
.cmp-col .select select { width: 100%; min-height: 44px; }
.cmp-add { border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 4px; display: grid; place-items: center; align-content: center; gap: 12px; aspect-ratio: 4 / 3.1; background: transparent; font-weight: 600; font-size: 16px; transition: border-color .2s, background .2s; width: 100%; }
.cmp-add:hover { border-color: var(--ink); background: var(--sheet); }
.cmp-add .ic { width: 32px; height: 32px; }
.cmp-g > h3 { font-size: 22px; padding: 48px 0 14px; letter-spacing: -.02em; }
.cmp-r { display: grid; grid-template-columns: var(--cols); gap: 24px; padding: 18px 0; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 17px; align-items: baseline; margin: 0; transition: background .2s; }
.cmp-r:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.cmp-r dt { color: var(--mute); font-size: 16px; }
.cmp-r dd { margin: 0; font-weight: 500; }
.cmp-r dd.best { font-weight: 700; }
.cmp-r dd.best::after { content: attr(data-best); display: inline-block; margin-left: 10px; font: 600 12px/1 var(--f-m); letter-spacing: .05em; text-transform: uppercase; color: var(--volt-ink); background: var(--volt); padding: 5px 7px; border-radius: 3px; vertical-align: 2px; }
.cmp-r.same dd { color: var(--mute); }
.cmp-price { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.02em; }

/* ---------- Phòng thử 3D ---------- */
.room-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding-bottom: 120px; }
.room-stage { position: relative; aspect-ratio: 16 / 11; border-radius: 4px; overflow: hidden; background: #0f1113; color: #c9c5bd; }
.room-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; }
.room-stage .poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s var(--ease); }
.room-stage .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.room-stage .poster .msg { position: relative; font: 500 14px/1.4 var(--f-m); color: #fff; background: rgba(0,0,0,.55); padding: 10px 14px; border-radius: 4px; max-width: 80%; text-align: center; }
.room-stage.ready .poster { opacity: 0; pointer-events: none; }
.room-stage .views { position: absolute; z-index: 3; top: 16px; right: 16px; display: flex; background: rgba(9,9,10,.75); border-radius: 999px; padding: 4px; }
.room-stage .views button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: #f2f1ed; font-size: 14px; font-weight: 600; }
.room-stage .views button[aria-pressed="true"] { background: #f2f1ed; color: #0b0b0c; }
.room-stage .hint { position: absolute; z-index: 3; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.78); background: rgba(9,9,10,.5); padding: 6px 12px; border-radius: 999px; }
.room-stage .hint .ic { width: 18px; height: 18px; }
.panel { background: var(--sheet); border-radius: 4px; padding: clamp(24px, 2.4vw, 32px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.result { margin-bottom: 28px; }
.result .mono { color: var(--mute); }
.result b { display: block; font-size: clamp(56px, 5vw, 80px); line-height: .9; font-weight: 700; letter-spacing: -.05em; font-variation-settings: "wdth" 74; margin: 12px 0 12px; }
.result b small { font-size: .32em; letter-spacing: 0; margin-left: 6px; font-variation-settings: "wdth" 100; color: var(--volt-text); }
.result p { margin: 0; color: var(--mute); font-size: 15px; }
.field { margin-bottom: 18px; }
.field .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.field .top output { font: 600 16px/1 var(--f-m); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; --p: 50%; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p), color-mix(in srgb, var(--ink) 18%, transparent) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--volt); margin-top: -10px; border: 3px solid var(--sheet); transition: transform .2s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--volt); border: 3px solid var(--sheet); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.checks { display: grid; gap: 2px; margin-bottom: 24px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--volt); }
.fit { display: grid; gap: 6px; }
.fit h3 { font: 500 13px/1 var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin: 8px 0 8px; }
.fit a { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; text-decoration: none; padding: 8px; margin: 0 -8px; border-radius: 4px; transition: background .2s; }
.fit a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fit img { width: 64px; height: 64px; border-radius: 3px; object-fit: cover; background: var(--plate); }
.fit b { font-weight: 600; font-size: 15px; display: block; line-height: 1.25; }
.fit small { color: var(--mute); font-size: 14px; }
.fit .pr { font-weight: 700; font-size: 15px; }

/* ---------- Giỏ hàng (ngăn kéo) ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(9,9,10,.5); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--paper); transform: translateX(104%); transition: transform .5s var(--ease), visibility 0s .5s; display: flex; flex-direction: column; visibility: hidden; }
.drawer.on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line); }
.drawer .dh h2 { font-size: 28px; }
.drawer .body { flex: 1; overflow-y: auto; padding: 4px 28px; }
.drawer .df { padding: 24px 28px 28px; background: var(--sheet); }
.line { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line img { width: 88px; height: 88px; border-radius: 4px; object-fit: cover; background: var(--plate); }
.line h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.line h3 a { text-decoration: none; }
.line .v { color: var(--mute); font-size: 14px; margin: 4px 0 8px; }
.line .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qty { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.qty button:active { transform: scale(.9); }
.qty button .ic { width: 18px; height: 18px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.line .p { font-weight: 700; }
.line .rmv { border: 0; background: none; color: var(--mute); font-size: 14px; text-decoration: underline; padding: 0; min-height: 36px; }
.sum { display: grid; gap: 10px; margin-bottom: 20px; font-size: 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .tot { font-size: 22px; font-weight: 700; letter-spacing: -.02em; padding-top: 12px; border-top: 1px solid var(--line); }
.sum .muted { color: var(--mute); }
.drawer .empty-c { text-align: center; padding: 40px 0; }
.drawer .empty-c img { width: 220px; margin: 0 auto 24px; border-radius: 4px; }
.drawer .empty-c p { color: var(--mute); margin: 8px 0 24px; }
.flyer { position: fixed; z-index: 120; pointer-events: none; border-radius: 6px; object-fit: cover; }

/* ---------- Thanh toán ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: 120px; }
.co form { display: grid; gap: 44px; }
.co fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.co legend { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; padding: 0; }
.co legend .n { font: 500 14px/1 var(--f-m); color: var(--mute); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fgrid .full { grid-column: 1 / -1; }
.inp label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.inp input, .inp select, .inp textarea { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 6px; border: 1.5px solid transparent; background: var(--sheet); font-size: 16px; transition: border-color .2s, background .2s; }
.inp textarea { padding: 14px 16px; min-height: 96px; resize: vertical; }
.inp select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.inp input:focus, .inp select:focus, .inp textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.inp .err { display: none; color: var(--err); font-size: 14px; margin-top: 6px; }
[data-theme="dark"] .inp .err { color: #ff8b80; }
.inp.bad input, .inp.bad select { border-color: var(--err); }
.inp.bad .err { display: block; }
.opts { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 6px; background: var(--sheet); cursor: pointer; border: 1.5px solid transparent; transition: border-color .2s; min-height: 64px; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt input { width: 20px; height: 20px; accent-color: var(--volt); margin: 0; }
.opt b { font-weight: 600; display: block; }
.opt small { color: var(--mute); font-size: 14px; }
.opt .r { font-weight: 600; font-size: 15px; white-space: nowrap; }
.co-sum { position: sticky; top: calc(var(--hdr) + 24px); background: var(--sheet); border-radius: 4px; padding: 28px; }
.co-sum h2 { font-size: 24px; margin-bottom: 8px; }
.mini { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini img { width: 64px; height: 64px; border-radius: 3px; object-fit: cover; background: var(--plate); }
.mini small { color: var(--mute); display: block; font-size: 14px; }
.voucher { display: flex; gap: 8px; margin: 20px 0; }
.voucher input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); font-family: var(--f-m); text-transform: uppercase; font-size: 15px; }
.vmsg { font-size: 14px; margin: -10px 0 16px; }
.vmsg.ok { color: var(--ok); } .vmsg.no { color: var(--err); }
[data-theme="dark"] .vmsg.ok { color: #7fd3a1; } [data-theme="dark"] .vmsg.no { color: #ff8b80; }
.vhint { font-size: 14px; color: var(--mute); margin: -8px 0 18px; }
.vhint button { font: 600 13px/1 var(--f-m); background: none; border: 1px dashed var(--mute); color: inherit; padding: 6px 8px; border-radius: 4px; margin: 4px 4px 0 0; min-height: 32px; }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* xác nhận đơn: hoá đơn */
.done { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; padding-bottom: 120px; }
.done .mark { width: 72px; height: 72px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); display: grid; place-items: center; margin-bottom: 28px; animation: pop .6s var(--spring) both; }
.done .mark .ic { width: 34px; height: 34px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 36px 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 26px; position: relative; }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); margin-top: 5px; background: var(--paper); z-index: 1; }
.steps li.on::before { background: var(--volt); border-color: var(--volt); }
.steps li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-weight: 600; }
.steps small { color: var(--mute); font-size: 15px; }
.receipt { background: #faf9f6; color: #1a1a1a; padding: 36px 32px 28px; border-radius: 2px; position: relative; font-size: 15px; --line: rgba(0,0,0,.12); --mute: #555; --ink: #1a1a1a; margin-bottom: 20px; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px 10px, transparent 7px, #faf9f6 7.5px) 0 0 / 16px 10px repeat-x; }
.receipt .rh { text-align: center; border-bottom: 1.5px dashed rgba(0,0,0,.25); padding-bottom: 18px; margin-bottom: 8px; }
.receipt .rh b { font-size: 32px; font-weight: 900; letter-spacing: -.06em; font-variation-settings: "wdth" 125; display: block; }
.receipt .rh small { display: block; font: 500 13px/1.6 var(--f-m); color: #555; }
.receipt .code { font: 600 20px/1 var(--f-m); letter-spacing: .06em; display: block; margin-top: 10px; color: #1a1a1a; }
.receipt .sum { margin: 16px 0 0; }

/* ---------- Tìm nhanh (⌘K) & hộp thoại ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(9,9,10,.55); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.modal.on { opacity: 1; pointer-events: auto; }
.modal .box { width: min(680px, 100%); background: var(--paper); border-radius: 8px; overflow: hidden; transform: translateY(16px) scale(.98); transition: transform .4s var(--spring); max-height: 76vh; display: flex; flex-direction: column; }
.modal.on .box { transform: none; }
.qbar { display: flex; align-items: center; gap: 14px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.qbar input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 68px; font-size: 20px; outline: none; }
.qres { overflow-y: auto; padding: 10px; }
.qres a, .qres button.it { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 6px; text-decoration: none; text-align: left; border: 0; background: transparent; width: 100%; }
.qres a[aria-selected="true"], .qres a:hover, .qres button.it:hover { background: var(--sheet); }
.qres img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--plate); }
.qres b { display: block; font-weight: 600; }
.qres small { color: var(--mute); font-size: 14px; }
.qres .h { font: 500 13px/1 var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); padding: 14px 12px 8px; grid-column: 1 / -1; }
.qres .none { padding: 28px 12px; color: var(--mute); }
.modal.confirm { place-items: center; padding: 16px; }
.confirm .box { padding: 32px; max-width: 460px; }
.confirm h2 { font-size: 28px; margin-bottom: 12px; }
.confirm p { color: var(--mute); margin: 0 0 28px; }
.confirm .row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.picker .box { width: min(820px, 100%); }
.picker .qres { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.toast { position: fixed; z-index: 130; left: 50%; bottom: 28px; transform: translate(-50%, 160%); background: #141516; color: #f2f1ed; padding: 10px 12px 10px 20px; border-radius: 999px; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; transition: transform .5s var(--spring); max-width: calc(100vw - 32px); min-height: 56px; }
[data-theme="dark"] .toast { background: #f2f1ed; color: #141516; }
.toast.on { transform: translate(-50%, 0); }
.toast .ic { color: var(--volt); }
.toast a, .toast button { color: inherit; font-weight: 700; background: none; border: 0; text-decoration: underline; padding: 8px 10px; min-height: 40px; white-space: nowrap; }

/* menu điện thoại */
.msheet { position: fixed; inset: 0; z-index: 45; background: var(--night); color: #f2f1ed; padding: calc(var(--hdr) + 24px) var(--pad) 32px; display: flex; flex-direction: column; gap: 4px; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease), visibility 0s .55s; visibility: hidden; overflow-y: auto; }
.msheet.on { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease); }
.msheet a.big { font-size: 40px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.msheet .row { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.msheet .row button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: inherit; font-weight: 600; }
.msheet .row button[aria-pressed="true"] { background: #f2f1ed; color: #0b0b0c; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menubtn { display: inline-grid; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .pd-grid, .room-wrap, .co, .done, .stores, .boxsec, .quotes { grid-template-columns: 1fr; }
  .pd-media, .stores .pic, .co-sum { position: relative; top: auto; }
  .stores .pic { aspect-ratio: 16 / 9; }
  .specs { grid-template-columns: 1fr; gap: 8px; }
  .specs .side { position: static; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .rule { grid-template-columns: 64px 1fr; }
  .rule p { grid-column: 2; }
  .hero-spec { display: none; }
  .hero-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --hdr: 64px; }
  .hdr .wrap { gap: 8px; }
  .searchbtn span, .searchbtn .kbd { display: none; }
  .searchbtn { width: 44px; padding: 0; justify-content: center; margin: 0; background: transparent; }
  .hdr .tools .lang, .hdr .tools .themebtn, .hdr .tools .calmbtn { display: none; }
  .hero { min-height: 620px; }
  .hero-media img { object-position: 72% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(9,9,10,.97) 0%, rgba(9,9,10,.9) 52%, rgba(9,9,10,.15) 82%); }
  .hero-media { inset: -5% 0 30% 0; }
  .hero-tag { display: none; }
  .hero .cta { gap: 18px; }
  .h-xl { font-size: clamp(50px, 14.5vw, 88px); }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: 44svh 1fr; }
  .story-figs { margin: calc(var(--hdr) + 8px) var(--pad) 0; }
  .story-txt { padding: 18px var(--pad) 24px; }
  .chap { left: var(--pad); top: 44%; }
  .chap .fig { font-size: clamp(64px, 19vw, 96px); margin: 8px 0 14px; }
  .chap p { font-size: 16px; margin-bottom: 4px; }
  .story-foot { display: none; }
  .spin-head { flex-direction: column; }
  .spin-head h2 { font-size: 34px; }
  .spin-buy { display: none; }
  .spin-cap { width: auto; left: var(--pad) !important; right: var(--pad) !important; text-align: left !important; }
  .roomtease-txt { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .card .meta { grid-template-columns: 1fr; padding-top: 14px; gap: 6px; }
  .card .pr { text-align: left; }
  .card h3 { font-size: 16px; }
  .card .key { display: none; }
  .card .pr b { font-size: 16px; }
  .card .tag { top: 10px; left: 10px; padding: 6px 8px; }
  .card { container-type: inline-size; }
  .card .acts { top: calc(115cqw - 52px); right: 8px; }
  .card .acts .cmpb { display: none; }
  .keynums { grid-template-columns: 1fr; gap: 24px; }
  .hls { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 1fr; gap: 4px; }
  .fgrid { grid-template-columns: 1fr; }
  .empty { grid-template-columns: 1fr; }
  .empty img { width: 200px; }
  .ftr .cols { grid-template-columns: 1fr; }
  .pack { --w: 250px; --h: 230px; --d: 86px; }
  .pk .label { padding: 14px; }
  .pk .wm b { font-size: 18px; }
  .pk .nm { font-size: 14px; }
  .pk .wm span { display: none; }
  .cmp-wrap { overflow-x: auto; --cols: repeat(var(--n), minmax(160px, 1fr)); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .cmp-head .ctl, .cmp-r dt { grid-column: 1 / -1; }
  .cmp-head { position: static; }
  .buybar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--night); color: #f2f1ed; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .45s var(--ease); box-shadow: 0 -1px 0 rgba(255,255,255,.1); }
  .buybar.on { transform: none; }
  .buybar b { font-size: 20px; letter-spacing: -.02em; display: block; }
  .buybar small { color: rgba(242,241,237,.62); font-size: 13px; }
  .picker .qres { grid-template-columns: 1fr; }
  .quote.big blockquote { font-size: 30px; }
  .rule { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .rule p { grid-column: auto; }
  .rule .n { padding: 0; }
  .measure { top: 27%; left: 50%; }
  .drawer .body, .drawer .df { padding-left: 20px; padding-right: 20px; }
  .co-sum { padding: 22px; }
  .receipt { padding: 28px 20px 22px; }
}
