/* LỊCH LÃM — giao diện chung. Tối, sang: đen than + kem + vàng đồng. */
:root {
  --ink: #111;
  --bg: #121110;
  --bg-2: #1a1816;
  --bg-3: #23201d;
  --line: #2f2b27;
  --cream: #efe8dc;
  --cream-2: #cfc6b8;
  --muted: #8f877b;
  --gold: #b8925a;
  --gold-2: #d4b07a;
  --danger: #d9785f;
  --ok: #8fb27a;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 0;
  --wrap: 1240px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 15px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 26px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- nút ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .25s, color .25s, transform .2s var(--ease); }
.btn:hover { background: var(--gold-2); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(239, 232, 220, .35); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--gold-2); border-bottom: 1px solid rgba(212, 176, 122, .35); }

/* ---- đầu trang ---- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, backdrop-filter .3s; }
.hd.solid { background: rgba(18, 17, 16, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.hd .logo img { height: 40px; width: auto; }
.hd nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.hd nav a { color: var(--cream-2); transition: color .2s; }
.hd nav a:hover, .hd nav a.on { color: var(--gold-2); }
.hd .icons { display: flex; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; color: var(--cream); }
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--gold); color: var(--ink); font: 700 11px/18px var(--sans); text-align: center; }
.badge:empty, .badge[data-n="0"] { display: none; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .hd .wrap { height: 62px; gap: 10px; }
  .hd .logo img { height: 32px; width: auto; }
  .menu-btn { display: grid; }
  .hd nav { position: fixed; inset: 62px 0 auto; flex-direction: column; gap: 0; padding: 8px 16px 18px; background: rgba(18, 17, 16, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); margin: 0; }
  .hd nav.open { transform: none; }
  .hd nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hd .icons { margin-left: auto; }
}

/* ---- chân trang ---- */
.ft { margin-top: 120px; border-top: 1px solid var(--line); background: #0d0c0b; padding: 64px 0 28px; color: var(--cream-2); font-size: 14px; }
.ft .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ft h4 { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft a:hover { color: var(--gold-2); }
.ft .logo-stack { width: 190px; margin-bottom: 14px; }
.demo-note { margin-top: 44px; padding: 14px 18px; border: 1px dashed rgba(184, 146, 90, .45); color: var(--gold-2); font-size: 13px; }
.ft .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .ft .cols { grid-template-columns: 1fr 1fr; } .ft .cols > :first-child { grid-column: 1 / -1; } }

/* ---- khối chung ---- */
section { position: relative; }
.sec { padding: 120px 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head p { max-width: 420px; margin: 0; color: var(--cream-2); }
@media (max-width: 760px) { .sec { padding-top: 84px; } .sec-head { flex-direction: column; align-items: start; } }

/* ---- ô màu/vải ---- */
.sw { --c: #333; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c) center / 180% no-repeat; background-blend-mode: multiply; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; position: relative; transition: transform .2s var(--ease); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; transition: border-color .2s; }
.sw:hover { transform: scale(1.08); }
.sw.on::after { border-color: var(--gold-2); }

/* ---- thẻ sản phẩm ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.card { display: block; }
.card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #3a332b, #1a1816 72%); }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: opacity .5s, transform .9s var(--ease); }
.card .ph img + img { opacity: 0; }
.card:hover .ph img:first-child { opacity: 0; }
.card:hover .ph img + img { opacity: 1; transform: scale(1.16); }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; background: var(--gold); color: var(--ink); font: 700 11px/1.4 var(--sans); letter-spacing: .06em; }
.card .dots { position: absolute; bottom: 12px; left: 12px; z-index: 1; display: flex; gap: 5px; }
.card .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.card h3 { font: 500 21px/1.2 var(--serif); margin: 14px 0 4px; }
.price { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; font-size: .88em; }
.price .now { color: var(--gold-2); }

/* ---- quy trình may đo ---- */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: '0' counter(s); font: 500 28px/1 var(--serif); color: var(--gold); }
.steps b { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--cream-2); font-size: 14px; }
/* ---- trang con ---- */
.page { padding-top: 112px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--gold-2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 34px; }
.chip { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg-2); color: var(--cream-2); cursor: pointer; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip.on { background: var(--cream); border-color: var(--cream); color: var(--ink); font-weight: 600; }
.chip[disabled] { opacity: .35; pointer-events: none; text-decoration: line-through; }
select.chip { padding-right: 34px; appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b8925a' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---- trang sản phẩm ---- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.viewer { position: sticky; top: 88px; height: calc(100svh - 112px); min-height: 520px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #3b342c 0%, #1b1917 62%, #141210 100%); }
.viewer .stage { position: absolute; inset: 0; }
.viewer .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s; }
.viewer.ready .poster { opacity: 0; pointer-events: none; }
.viewer .badge3d { position: absolute; top: 16px; left: 16px; padding: 6px 12px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .1em; color: var(--gold-2); }
.viewer .loading { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.viewer.ready .loading, .viewer.fallback .loading { display: none; }
.viewer .views { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; }
.viewer .views button { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .35); color: var(--cream); cursor: pointer; font-size: 12px; }
.viewer .views button:hover { border-color: var(--gold); }
.viewer.fallback .views, .viewer.fallback .badge3d { display: none; }
.thumbs { display: flex; gap: 8px; position: absolute; left: 14px; bottom: 14px; }
.thumbs button { width: 56px; height: 70px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: #1a1816; cursor: pointer; }
.thumbs button.on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: clamp(36px, 4.4vw, 56px); margin: 8px 0 14px; }
.info .price { font-size: 22px; }
.opt { margin-top: 30px; }
.opt-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opt-h b { color: var(--cream); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatches .sw { width: 42px; height: 42px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.measure { display: none; margin-top: 16px; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.measure.open { display: block; }
.measure .fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.buy { display: flex; gap: 10px; margin-top: 30px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); height: 48px; }
.qty button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--cream); }
.qty input { width: 36px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { flex: 1; }
.ask { margin-top: 12px; }
.desc { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--cream-2); white-space: pre-line; }
.perks { margin-top: 22px; display: grid; gap: 10px; font-size: 14px; color: var(--cream-2); }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .viewer { position: relative; top: 0; height: 64svh; min-height: 400px; }
  .page.pdp-page { padding-top: 76px; }
}

/* ---- ô nhập ---- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--cream-2); }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); background: #151311; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 90, .18); }
textarea.input { min-height: 90px; resize: vertical; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row, .measure .fields { grid-template-columns: 1fr; } }
.err { color: var(--danger); font-size: 14px; min-height: 1em; }
.radio { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); cursor: pointer; background: var(--bg-2); }
.radio:has(input:checked) { border-color: var(--gold); }
.radio input { accent-color: var(--gold); margin-top: 5px; }
.radio small { color: var(--muted); display: block; }

/* ---- giỏ hàng / thanh toán ---- */
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line); background: var(--bg-2); padding: 26px; }
.box h3 { margin-bottom: 18px; }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .ph { width: 92px; height: 115px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #3a332b, #1a1816 72%); }
.line .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.line h4 { margin: 0 0 4px; font: 500 20px/1.2 var(--serif); }
.line .meta { color: var(--muted); font-size: 13px; }
.line .right { display: grid; justify-items: end; gap: 10px; }
.line .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.line .qty { height: 38px; }
.line .qty button { height: 36px; width: 34px; }
@media (max-width: 560px) { .line { grid-template-columns: 72px 1fr; } .line .ph { width: 72px; height: 90px; } .line .right { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; } }
.sum { display: grid; gap: 10px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; }
.sum .total span:last-child { color: var(--gold-2); }

/* ---- đơn hàng ---- */
.qrbox { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; }
.qrbox img { width: 240px; background: #fff; padding: 8px; }
.copy { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #151311; border: 1px solid var(--line); margin-top: 8px; }
.copy button { border: 0; background: none; color: var(--gold-2); cursor: pointer; font-weight: 600; }
@media (max-width: 640px) { .qrbox { grid-template-columns: 1fr; justify-items: center; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg-2); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--cream); }
.timeline li.done::before { border-color: var(--gold); background: var(--gold); }
.timeline li.cancel::before { border-color: var(--danger); background: var(--danger); }
.timeline small { display: block; color: var(--muted); font-size: 12px; }
.status { display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 600; background: rgba(184, 146, 90, .16); color: var(--gold-2); }
.status.cancelled { background: rgba(217, 120, 95, .14); color: var(--danger); }
.status.delivered { background: rgba(143, 178, 122, .16); color: var(--ok); }

/* ---- tài khoản ---- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { padding: 12px 18px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--cream); border-color: var(--gold); }
.auth { max-width: 460px; margin: 0 auto; }

/* ---- thông báo nhỏ ---- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 14px 20px; background: var(--cream); color: var(--ink); font-weight: 500; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { text-decoration: underline; pointer-events: auto; }

/* hiện dần khi cuộn */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- khung chat ---- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.chat-fab { position: relative; width: 58px; height: 58px; border: 0; background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }
.chat.open .chat-fab { transform: scale(.9); }
.chat-panel { position: absolute; right: 0; bottom: 72px; width: 370px; height: min(600px, calc(100svh - 120px)); display: flex; flex-direction: column; overflow: hidden; background: #191715; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #1f1c19; }
.chat-panel header small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.chat-x { width: 36px; height: 36px; border: 0; background: none; color: var(--cream); cursor: pointer; }
.chat-x svg { width: 20px; }
.chat-off { padding: 10px 18px; font-size: 13px; color: var(--gold-2); background: rgba(184, 146, 90, .1); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-hello { color: var(--cream-2); font-size: 14px; background: var(--bg-3); padding: 12px 14px; margin: 0; max-width: 85%; }
.msg { max-width: 82%; padding: 10px 12px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.msg.shop { align-self: flex-start; background: var(--bg-3); }
.msg.me { align-self: flex-end; background: var(--gold); color: var(--ink); }
.msg.me time { text-align: right; }
.msg-img { margin-bottom: 6px; max-height: 260px; object-fit: cover; }
.msg-prod { display: flex; gap: 10px; align-items: center; padding: 8px; margin-bottom: 6px; background: rgba(0, 0, 0, .18); }
.msg.me .msg-prod { background: rgba(255, 255, 255, .35); }
.msg-prod img { width: 48px; height: 60px; object-fit: cover; background: #2a2622; }
.msg-prod div { display: grid; font-size: 13px; line-height: 1.35; }
.msg-prod .gold { font-weight: 600; }
.chat-seen { align-self: flex-end; color: var(--muted); font-size: 11px; margin-top: -4px; }
.chat-start { padding: 18px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.chat-start p { margin: 0 0 4px; font-size: 14px; color: var(--cream-2); }
.chat-start[hidden], .chat-input[hidden], .chat-attach[hidden] { display: none; }
.chat-attach { display: flex; justify-content: space-between; align-items: center; margin: 0 12px; padding: 8px 12px; background: var(--bg-3); font-size: 13px; color: var(--gold-2); }
.chat-attach button { border: 0; background: none; color: var(--cream); font-size: 18px; cursor: pointer; }
.chat-input { display: flex; align-items: flex-end; gap: 6px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); background: #131110; outline: none; font-size: 15px; }
.chat-input textarea:focus { border-color: var(--gold); }
.chat-imgbtn, .chat-send { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; color: var(--cream-2); cursor: pointer; flex: none; }
.chat-send { background: var(--gold); color: var(--ink); }
.chat-imgbtn svg, .chat-send svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .chat { right: 14px; bottom: 14px; }
  .chat-panel { position: fixed; inset: 0; width: auto; height: 100svh; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .chat.open .chat-fab { display: none; }
}

/* ================= TRANG CHỦ: bước vào → tủ đồ → các lớp ================= */
.sw.sm { width: 22px; height: 22px; }

/* ---- bước vào shop ---- */
.walk { position: relative; height: 340svh; background: #0b0a09; }
.walk-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.walk-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.walk-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 7, 6, .72), rgba(8, 7, 6, .15) 55%, transparent), linear-gradient(0deg, rgba(8, 7, 6, .5), transparent 30%); pointer-events: none; }
.walk-txt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.walk-txt [data-at] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.walk-txt [data-at].on { opacity: 1; transform: none; }
.walk-txt h1 em { font-style: italic; color: var(--gold-2); }
.walk-line { position: absolute; left: 16px; top: 50%; font: italic 500 clamp(30px, 4vw, 52px)/1.15 var(--serif); max-width: 14em; margin: 0; }
.walk-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-2); opacity: 0; transition: opacity .6s; }
.walk-hint.on { opacity: 1; }
.walk-hint span { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: walk-hint 1.8s var(--ease) infinite; }
@keyframes walk-hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.walk-skip { position: absolute; right: 20px; bottom: 24px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(239, 232, 220, .3); background: rgba(10, 9, 8, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--cream); font-size: 13px; cursor: pointer; }
.walk-skip:hover { border-color: var(--gold); color: var(--gold-2); }
.walk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.walk-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); }
.walk-done .walk { display: none; }
@media (max-width: 760px) { .walk-line { top: auto; bottom: 22%; } .walk-skip { right: 14px; bottom: auto; top: 76px; } }
/* trong đoạn bước vào: ẩn nút chat cho khung hình thoáng; tới tủ đồ thì hiện lại */
.home:not(.walk-done) .chat-fab { opacity: 0; pointer-events: none; }
.chat-fab { transition: opacity .4s, transform .25s var(--ease); }

/* ---- tủ đồ: chính chiếc tủ ở cuối video ---- */
.wardrobe { position: relative; min-height: 100svh; padding: 86px 0 24px; isolation: isolate; }
.wd-bg-wrap { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
/* nền hai bên = khung cuối làm mờ, để tủ liền với cảnh vừa đi vào */
.wd-bg { position: absolute; inset: -12px; background: #0e0c0a url(../walk/shop-s.webp) center / cover no-repeat; filter: blur(14px) brightness(.38); }
.wd-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 14px; }
.wd-head h2:focus { outline: none; }
.wd-head p.muted { max-width: 400px; margin: 0; }
.wd-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.wd-scroll::-webkit-scrollbar { display: none; }
.wd-scene { position: relative; height: min(calc(100svh - 305px), calc(100vw / 1.59)); aspect-ratio: 1800 / 1132; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.wd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
/* khung cuối còn bộ vest của video: mờ dần khi tới tủ, nhường chỗ cho vest 3D */
.wd-orig { transition: opacity 1.4s var(--ease) .2s; }
.walk-done .wd-orig { opacity: 0; }
.wd-suit { position: absolute; left: 41.5%; top: 15%; width: 29%; height: 76%; cursor: pointer; }
.wd-suit:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wd-canvas, .wd-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.wd-poster { object-fit: contain; transform: scale(1.18); transition: opacity .6s; }
.wd-suit.ready .wd-poster { opacity: 0; }
.wd-suit.fallback .wd-poster { opacity: 1; }
.wd-suit.swap { animation: wd-swap .5s var(--ease); }
@keyframes wd-swap { from { opacity: .3; transform: translateX(6%); } to { opacity: 1; transform: none; } }
.wd-arrow { position: absolute; top: 22%; width: 38px; height: 38px; border: 1px solid rgba(239, 232, 220, .35); background: rgba(10, 9, 8, .55); color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; }
.wd-arrow[data-dir="-1"] { left: 43%; }
.wd-arrow[data-dir="1"] { left: 66%; }
.wd-arrow:hover { border-color: var(--gold); color: var(--gold-2); }
.wd-vest-name { position: absolute; left: 41.5%; width: 29%; top: 91.5%; margin: 0; text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--cream); text-shadow: 0 1px 6px #000; pointer-events: none; }
.wd-spot { position: absolute; transform: translate(-50%, -100%); padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); transition: filter .25s, transform .25s var(--ease); }
.wd-spot img { display: block; width: 100%; height: auto; }
.wd-spot:hover { transform: translate(-50%, -104%); }
.wd-spot.on { filter: drop-shadow(0 0 1px var(--gold-2)) drop-shadow(0 0 6px rgba(212, 176, 122, .9)) drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.wd-spot.on::after { content: '✓'; position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font: 700 11px/1 var(--sans); }
.wd-spot:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.wd-pop { position: absolute; z-index: 6; width: 250px; transform: translate(-50%, calc(-100% - 12px)); padding: 14px; background: rgba(16, 14, 12, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(212, 176, 122, .4); display: grid; gap: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.wd-pop.below { transform: translate(-50%, 12px); }
.wd-pop b { font: 500 18px/1.2 var(--serif); }
.wd-pop-price { font-size: 13px; color: var(--gold-2); }
.wd-pop .wd-sws { display: flex; gap: 10px; padding: 4px 0; }
.wd-pop-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wd-pop-act .btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.wd-pop-vests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wd-pop-vests button { padding: 0; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 35%, #3a332b, #1a1816 72%); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.wd-pop-vests button.on { border-color: var(--gold); }
.wd-pop-vests img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.wd-swipe { display: none; }
.wd-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; margin-top: 16px; padding: 14px 18px; background: rgba(14, 12, 10, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(212, 176, 122, .25); }
.wd-sum b { display: block; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.wd-sum span { font-size: 14px; color: var(--cream-2); }
.wd-sizes { display: flex; flex-wrap: wrap; gap: 12px; }
.wd-size { display: grid; gap: 4px; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.wd-size select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); background: #151311; color: var(--cream); font-size: 14px; }
.wd-total { display: flex; align-items: center; gap: 14px; }
.wd-total > span { font: 600 20px/1 var(--sans); color: var(--gold-2); white-space: nowrap; }
@media (max-width: 860px) {
  .wardrobe { padding: 72px 0 0; }
  .wd-head { flex-direction: column; align-items: start; gap: 6px; margin-bottom: 10px; }
  .wd-head p.muted { font-size: 13px; }
  /* tủ cao 52% màn hình, rộng hơn màn hình → vuốt ngang để xem hai kệ */
  .wd-scene { height: 52svh; }
  .wd-scroll { scroll-snap-type: x proximity; }
  .wd-swipe { display: block; margin: 8px 0 0; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .wd-pop { width: 220px; }
  .wd-bar { position: sticky; bottom: 0; z-index: 5; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 0; padding: 10px 84px calc(10px + env(safe-area-inset-bottom)) 16px; width: 100%; }
  .wd-sum span { display: none; }
  .wd-sum b { margin: 0; }
  .wd-sizes { gap: 8px; }
  .wd-size { grid-template-columns: auto auto; align-items: center; gap: 6px; font-size: 10px; }
  .wd-size select { min-height: 32px; padding: 0 6px; font-size: 13px; }
  .wd-total { justify-content: space-between; gap: 10px; }
  .wd-total > span { font-size: 16px; }
  .wd-total .btn { min-height: 42px; padding: 0 14px; font-size: 13px; }
  .hide-m, .btn .hide-m { display: none; }
  .wd-total .btn { white-space: nowrap; }
}

/* ---- các lớp phía dưới: phần trước lùi dần, phần sau trượt lên ---- */
.layer { position: relative; background: var(--bg); padding: 110px 0; border-top: 1px solid var(--line); }
.layer:nth-of-type(even) { background: #151311; }
.layer-in { transform-origin: 50% 0; will-change: transform, opacity; }
[data-par] { will-change: transform; }
@media (max-width: 760px) { .layer { padding: 76px 0; } }
.occ { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.occ a { position: relative; aspect-ratio: 3 / 4.4; overflow: hidden; background: var(--bg-2); }
.occ img { width: 100%; height: 115%; object-fit: cover; filter: brightness(.88); transition: filter .6s var(--ease); }
.occ a:hover img { filter: brightness(1.05); }
.occ a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .9), transparent 60%); }
.occ span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.occ b { display: block; font: 500 24px/1.1 var(--serif); }
.occ small { color: var(--cream-2); font-size: 12px; letter-spacing: .08em; }
@media (max-width: 960px) { .occ { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .occ { grid-template-columns: repeat(2, 1fr); } .occ a:last-child { grid-column: span 2; aspect-ratio: 16 / 9; } .occ b { font-size: 20px; } }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.look-card { border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.look-pics { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); aspect-ratio: 4 / 3.6; overflow: hidden; }
.look-pics img { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: radial-gradient(ellipse at 50% 35%, #3a332b, #1a1816 72%); }
.look-pics img:first-child { grid-row: span 3; }
.look-body { padding: 18px 18px 20px; display: grid; gap: 10px; flex: 1; }
.look-body h3 { font-size: 26px; }
.look-body ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--cream-2); display: grid; gap: 3px; }
.look-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.look-foot b { color: var(--gold-2); font-size: 18px; }
.look-foot .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
@media (max-width: 960px) { .looks { grid-template-columns: 1fr; } .look-pics { aspect-ratio: 16 / 10; } }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fit-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.fit-img img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; gap: 30px; } .fit-img { aspect-ratio: 16 / 11; } }
.lookbook { padding: 0; height: 92svh; overflow: hidden; display: grid; align-items: end; }
.lb-full { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.lb-full img { width: 100%; height: 124%; object-fit: cover; }
.lb-full::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .85), transparent 55%); }
.lb-cap { position: relative; padding-bottom: 60px; display: grid; gap: 14px; justify-items: start; }
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.voices blockquote { margin: 0; padding: 26px; border-top: 1px solid var(--gold); background: var(--bg-2); }
.voices p { margin: 0 0 16px; font: italic 500 22px/1.35 var(--serif); }
.voices cite { font-style: normal; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }
.visit { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.visit p.muted { max-width: 460px; }
.visit-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .layer-in, [data-par] { transform: none !important; opacity: 1 !important; } }

/* ---- khuyến mãi trên trang sản phẩm (nhãn, đếm ngược, tồn kho, quà, combo) ---- */
.pd-badge { justify-self: start; display: inline-block; margin-bottom: 4px; padding: 4px 10px; background: var(--gold); color: var(--ink); font: 700 11px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.pd-proof { margin: -6px 0 0; font-size: 14px; }
.pd-flash { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--gold); color: var(--gold-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pd-flash b { font: 600 18px/1 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.pd-stock p { margin: 0 0 6px; font-size: 14px; }
.pd-stock i { display: block; height: 3px; background: linear-gradient(90deg, var(--gold) var(--w), var(--line) var(--w)); }
.pd-gift { margin: 0; padding: 10px 14px; background: rgba(184, 146, 90, .1); border-left: 2px solid var(--gold); font-size: 14px; }
.pd-combo { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-combo a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.pd-combo img { width: 48px; height: 60px; object-fit: cover; background: var(--bg-2, #1a1816); }
.pd-combo b { color: var(--gold-2); }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cancel-box { display: grid; gap: 10px; }
/* ---- tài khoản: đăng nhập Google/Facebook, ưu đãi ---- */
.social { display: grid; gap: 10px; }
.social .btn { gap: 10px; }
.or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.vouchers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.voucher { display: grid; gap: 8px; align-content: start; }
.voucher .copy { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.voucher .copy b { color: var(--gold-2); letter-spacing: .08em; }
/* ---- trang Ưu đãi ---- */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 30px; }
.offer { display: grid; grid-template-columns: 96px 1fr; gap: 0; padding: 0; overflow: hidden; }
.offer .stub { display: grid; place-items: center; text-align: center; padding: 12px; background: var(--gold); color: var(--ink); font: 700 22px/1.1 var(--sans); border-right: 2px dashed var(--ink); }
.offer-body { display: grid; gap: 10px; padding: 18px 20px; align-content: start; }
.offer-body h3 { margin: 0; font-size: 24px; }
.offer-body p { margin: 0; font-size: 14px; }
.offer .task { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.row2 { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .offers { grid-template-columns: 1fr; } .offer { grid-template-columns: 76px 1fr; } .offer .stub { font-size: 18px; } }
/* ---- Cẩm nang ---- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; margin-top: 30px; }
.post-card { display: grid; gap: 8px; }
.post-card .ph { aspect-ratio: 4 / 3; background: var(--bg-2, #1a1816); overflow: hidden; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.post-card:hover .ph img { transform: scale(1.04); }
.post-card h3 { margin: 0; font-size: 24px; }
.post-card p { margin: 0; font-size: 13px; }
.post { max-width: 760px; margin: 0 auto; }
.post h1 { font-size: clamp(36px, 5vw, 60px); margin: 10px 0 24px; }
.post-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin-bottom: 28px; border: 1px solid var(--line); }
.post-body { display: grid; gap: 18px; font-size: 18px; line-height: 1.75; }
.post-body p { margin: 0; }
.post-body h2 { margin: 14px 0 0; font-size: 30px; }
.post-prod { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; }
.post-prod img { width: 90px; height: 112px; object-fit: cover; }
.post-prod h3 { margin: 4px 0; }
.post-prod b { color: var(--gold-2); }
.post-cta { display: grid; gap: 10px; border-color: var(--gold); }
/* ---- tìm kiếm ---- */
.search-ov { position: fixed; inset: 0; z-index: 90; display: grid; align-content: start; padding: 90px 16px 16px; background: rgba(10, 9, 8, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.search-ov[hidden] { display: none; }
.search-box { width: min(760px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.search-box .input { font-size: 20px; padding: 16px 18px; }
.search-res { display: grid; gap: 6px; max-height: 64vh; overflow: auto; }
.search-res a { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 8px; border: 1px solid transparent; }
.search-res a:hover, .search-res a:focus-visible { border-color: var(--line); background: rgba(255, 255, 255, .03); }
.search-res img { width: 48px; height: 60px; object-fit: cover; background: var(--bg-2, #1a1816); }
.search-res small { color: var(--muted); }
.search-res b { color: var(--gold-2); font-weight: 600; }
/* ---- xem nhanh 3D một món trong shop ---- */
html.qv-open { overflow: hidden; }
.qv { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(8, 7, 6, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qv[hidden] { display: none; }
.qv-panel { position: relative; width: min(1040px, 100%); max-height: calc(100svh - 48px); display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg-2, #1a1816); border: 1px solid var(--line); overflow: hidden; animation: qvIn .35s var(--ease, ease); }
@keyframes qvIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.qv-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 1px solid var(--line); background: rgba(14, 12, 10, .7); color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; }
.qv-x:hover { border-color: var(--gold); }
.qv-stage { position: relative; min-height: 460px; background: radial-gradient(ellipse at 50% 40%, #2a241d, #0f0d0b 75%); }
.qv-poster, .qv-3d, .qv-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.qv-poster { object-fit: contain; padding: 12%; transition: opacity .5s; }
.qv-stage.ready .qv-poster { opacity: 0; }
.qv-hint, .qv-load { position: absolute; left: 14px; top: 14px; padding: 4px 10px; background: rgba(14, 12, 10, .7); color: var(--gold-2); font-size: 12px; }
.qv-hint { display: none; }
.qv-stage.ready .qv-hint { display: block; }
.qv-stage.ready .qv-load, .qv-stage.fallback .qv-load { display: none; }
.qv-info { display: grid; gap: 14px; align-content: start; padding: 36px 30px 28px; overflow: auto; }
.qv-info h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); }
.qv-info .price { font-size: 22px; }
.qv-tag { margin: 0; font-size: 15px; }
.qv-opt { display: grid; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qv-opt b { color: var(--cream); letter-spacing: 0; text-transform: none; font-weight: 500; }
.qv-opt .sizes { display: flex; flex-wrap: wrap; gap: 8px; text-transform: none; letter-spacing: 0; }
.qv-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qv-buy .qty span { min-width: 34px; text-align: center; }
.qv-note { margin: 0; padding: 10px 14px; border-left: 2px solid var(--gold); background: rgba(184, 146, 90, .08); font-size: 14px; }
.qv-pick { justify-self: start; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--gold-2); }
.qv-more { justify-self: start; font-size: 14px; }
@media (max-width: 760px) {
  .qv { padding: 0; align-items: end; }
  .qv-panel { grid-template-columns: 1fr; max-height: 100svh; height: 100svh; grid-template-rows: 42svh 1fr; }
  .qv-stage { min-height: 0; }
  .qv-info { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}
/* ---- cảnh shop cuối màn bước vào (ghi đè vị trí của tủ đồ cũ; toạ độ theo % ảnh shop 2600×1632) ---- */
.wd-scene { aspect-ratio: 2600 / 1632; height: min(calc(100svh - 300px), calc(100vw / 1.593)); }
.wd-suit { left: 48.6%; top: 32%; width: 15.2%; height: 34%; }
.wd-arrow { top: 64.8%; width: 32px; height: 32px; font-size: 19px; }
.wd-arrow[data-dir="-1"] { left: 50.8%; }
.wd-arrow[data-dir="1"] { left: 58.6%; }
.wd-vest-name { left: 44%; width: 24.4%; top: 75.5%; }
.wd-rack { position: absolute; left: 19.5%; top: 29%; width: 20%; height: 48%; cursor: pointer; }
.wd-rack::after { content: 'Bấm chọn mẫu vest'; position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 5px 10px; white-space: nowrap; background: rgba(12, 10, 9, .78); border: 1px solid rgba(212, 176, 122, .5); color: var(--gold-2); font-size: 11px; letter-spacing: .06em; opacity: 0; transition: opacity .25s; }
.wd-rack:hover::after, .wd-rack:focus-visible::after { opacity: 1; }
.wd-rack:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.wd-zones { position: absolute; inset: 0; pointer-events: none; }
.wd-zone { position: absolute; transform: translate(-50%, -50%); padding: 3px 8px; white-space: nowrap; background: rgba(12, 10, 9, .72); border: 1px solid rgba(212, 176, 122, .45); color: var(--gold-2); font: 600 10px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .8s .9s; }
.walk-done .wd-zone { opacity: 1; }
.wd-spot { z-index: 1; }
.wd-spot:hover, .wd-spot:focus-visible { z-index: 4; }
.wd-tag { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); display: grid; gap: 2px; min-width: 120px; padding: 7px 10px; background: rgba(12, 10, 9, .92); border: 1px solid rgba(212, 176, 122, .45); color: var(--gold-2); font: 600 12px/1.25 var(--sans); white-space: nowrap; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wd-tag b { color: var(--cream); font: 500 14px/1.2 var(--serif); }
.wd-spot:hover .wd-tag, .wd-spot:focus-visible .wd-tag { opacity: 1; transform: translate(-50%, 0); }
.wd-spot.on::after { right: -4px; top: -4px; width: 14px; height: 14px; font-size: 9px; }
@media (max-width: 860px) {
  .wd-scene { height: 56svh; }
  .wd-zone { font-size: 8px; padding: 2px 5px; letter-spacing: .1em; }
  .wd-rack::after { opacity: 1; font-size: 9px; }
  .wd-spot::before { content: ''; position: absolute; inset: -10px; } /* món nhỏ trên điện thoại: vùng chạm rộng hơn hình */
}
/* ---- cảnh tiệm tràn kín màn hình: ảnh phủ hết khung (giữ tỉ lệ để các món bày đúng chỗ), chữ + thanh bộ phối nằm trên ảnh ---- */
.wardrobe { height: 100svh; min-height: 560px; padding: 0; overflow: hidden; }
.wardrobe::before, .wardrobe::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.wardrobe::before { top: 0; height: 240px; background: linear-gradient(rgba(10, 9, 8, .82), rgba(10, 9, 8, 0)); }
.wardrobe::after { bottom: 0; height: 200px; background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, .78)); }
.wd-bg-wrap { display: none; }
.wd-scroll { position: absolute; inset: 0; }
/* phủ kín: cao = max(chiều cao khung, chiều rộng / tỉ lệ ảnh); thừa chiều dọc thì cắt đều trên dưới, thừa chiều ngang thì vuốt */
.wd-scene { height: max(100%, calc(100vw / 1.593)); min-width: 100%; margin: 0; top: 50%; transform: translateY(-50%); box-shadow: none; }
.wd-head { position: absolute; z-index: 3; top: 84px; left: 0; right: 0; margin-bottom: 0; pointer-events: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.wd-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.wd-bar { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; width: min(var(--wrap), 100% - 32px); }
.wd-swipe { position: absolute; z-index: 3; left: 0; right: 0; }
@media (max-width: 860px) {
  .wardrobe::before { height: 190px; }
  .wd-scene { height: 100%; }
  .wd-head { top: 74px; }
  .wd-head p.muted { display: none; } /* chỗ chật: hướng dẫn ngắn nằm ở dòng "vuốt" phía dưới */
  .wd-bar { bottom: 0; width: 100%; left: 0; transform: none; }
  .wd-sizes { display: none; } /* size từng món chọn trong ô xem nhanh */
  .wd-swipe { bottom: calc(76px + env(safe-area-inset-bottom)); margin: 0; color: var(--cream-2); text-shadow: 0 1px 8px #000; }
}
/* ---- khung chọn vest: máy tính = cột trái nổi trên ảnh; điện thoại = dải vuốt ngang ngay trên thanh bộ phối ---- */
.wd-picker { position: absolute; z-index: 4; left: max(16px, calc((100vw - var(--wrap)) / 2)); top: 200px; bottom: 112px; width: 280px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding: 14px; background: rgba(14, 12, 10, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(212, 176, 122, .3); }
.wd-picker.flash { animation: wdFlash 1s var(--ease, ease); }
@keyframes wdFlash { 30% { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212, 176, 122, .35); } }
.wd-pk-h { margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.wd-pk-list { display: grid; gap: 6px; align-content: start; overflow: auto; scrollbar-width: thin; padding-right: 2px; }
.wd-pk-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 6px; border: 1px solid transparent; background: none; color: var(--cream-2); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.wd-pk-item:hover { background: rgba(255, 255, 255, .04); }
.wd-pk-item.on { border-color: var(--gold); background: rgba(184, 146, 90, .1); color: var(--cream); }
.wd-pk-item img { width: 48px; height: 60px; object-fit: cover; object-position: top; background: radial-gradient(ellipse at 50% 35%, #3a332b, #1a1816 72%); }
.wd-pk-item span { display: grid; gap: 3px; }
.wd-pk-item b { font: 500 16px/1.2 var(--serif); }
.wd-pk-item small { font-size: 13px; color: var(--gold-2); font-weight: 600; }
.wd-pk-cur { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wd-pk-colors { display: flex; gap: 10px; }
.wd-pk-cur .btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.wd-rack::after { content: 'Mẫu vest ở khung bên trái'; }
/* mũi tên đổi mẫu: to, hai bên thân vest */
.wd-arrow { top: 47%; width: 42px; height: 42px; font-size: 26px; transform: translateY(-50%); background: rgba(10, 9, 8, .7); }
.wd-arrow[data-dir="-1"] { left: 50.2%; }
.wd-arrow[data-dir="1"] { left: auto; right: calc(100% - 62.4%); }
.wd-vest-name { font-size: 14px; }
@media (max-width: 1180px) and (min-width: 861px) { .wd-picker { width: 240px; } .wd-pk-item b { font-size: 14px; } }
@media (max-width: 860px) {
  .wd-picker { left: 0; right: 0; top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); width: auto; grid-template-rows: auto auto auto; gap: 8px; padding: 10px 12px; border-width: 1px 0 0; }
  .wd-pk-list { grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 0 0 2px; }
  .wd-pk-item { grid-template-columns: 34px 1fr; gap: 8px; padding: 4px; scroll-snap-align: start; }
  .wd-pk-item img { width: 34px; height: 44px; }
  .wd-pk-item b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wd-pk-item small { font-size: 11.5px; }
  .wd-pk-cur { padding-top: 8px; }
  .wd-swipe { display: none; }
  .wd-arrow { width: 36px; height: 36px; font-size: 22px; }
  .wd-rack::after { content: 'Mẫu vest ở dải bên dưới'; }
}
@media (min-width: 861px) { .wd-picker { bottom: auto; max-height: calc(100% - 320px); } }
@media (max-width: 860px) { .wd-picker { bottom: calc(84px + env(safe-area-inset-bottom)); } } /* thanh bộ phối cao ~84px */
@media (max-width: 860px) { .wd-pk-list { scrollbar-width: none; } .wd-pk-list::-webkit-scrollbar { display: none; } }
.wd-pk-list { position: relative; } /* gốc cho offsetLeft/Top khi căn mẫu đang chọn */
