/* Giao diện "fashion" – tái tạo từ handoff KIM Fashionary. Breakpoint duy nhất: 760px. */
:root {
  --bg: #F4F1EB; --ink: #121212; --accent: #E63B14; --muted: #6B6762; --muted2: #3d3a36; --strike: #8a857d;
  --img: #E3DDD2; --img2: #D9D2C5; --img3: #B8B2A7; --soft: #EAE5DC; --slot: #2a2826;
  --l10: rgba(18,18,18,.1); --l12: rgba(18,18,18,.12); --l15: rgba(18,18,18,.15); --l20: rgba(18,18,18,.2);
  --ease: cubic-bezier(.2,.7,.2,1);
  --pad: clamp(16px,4vw,40px); --sec: clamp(56px,8vw,120px);
  --display: "Noto Serif Display", Georgia, serif; --body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body.lock { overflow: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
i { font-style: normal; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.noscroll::-webkit-scrollbar { display: none; }
.noscroll { scrollbar-width: none; }

@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

main { flex: 1; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }
.serif { font-family: var(--display); }
.em-red { color: var(--accent); font-style: italic; }
.kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h-sec { font-family: var(--display); font-weight: 400; font-size: clamp(36px,5vw,72px); margin: 0; letter-spacing: -.02em; line-height: .95; }
.h-sec em { color: var(--accent); }
.h-page { font-family: var(--display); font-weight: 400; font-size: clamp(40px,6vw,88px); margin: 0; line-height: .95; letter-spacing: -.02em; }
.sec { padding-top: var(--sec); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.muted { color: var(--muted); }
@media (min-width: 760px) { .only-mob { display: none !important; } }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; font-size: 14px; font-weight: 600; transition: background .25s, transform .25s, color .25s; }
.btn:hover { background: var(--accent); color: #fff; }
.btn-lift:hover { transform: translateY(-2px); }
.btn-red { background: var(--accent); }
.btn-red:hover { background: var(--ink); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; transition: background .25s, color .25s; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-size: 12px; font-weight: 600; flex: none; }
.btn-sm:hover { background: var(--ink); color: #fff; }
.btn-ghost { padding: 16px 22px; border-radius: 999px; background: transparent; border: 1px solid rgba(18,18,18,.3); font-size: 14px; font-weight: 600; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; text-decoration: underline; color: var(--ink); }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--l20); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; transition: all .25s; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-lg { padding: 9px 18px; border-color: var(--ink); }
.icon-btn { position: relative; background: none; border: 0; padding: 8px; display: flex; border-radius: 999px; color: var(--ink); }
.icon-btn:hover { background: rgba(18,18,18,.06); color: var(--ink); }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(244,241,235,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--l10); }
.hdr-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-left { display: flex; align-items: center; gap: 28px; }
.logo { font-family: var(--display); font-size: 26px; letter-spacing: .02em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.logo b { font-weight: 500; }
.logo i { font-style: italic; font-size: 16px; color: var(--muted); }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); color: var(--ink); }
.nav a.sale { color: var(--accent); }
.nav a.sale:hover { border-bottom-color: var(--accent); }
.hdr-right { display: flex; align-items: center; gap: 4px; }
.cart-btn { background: var(--ink); color: #fff; border: 0; padding: 8px 14px 8px 10px; display: flex; align-items: center; gap: 8px;
  border-radius: 999px; font-size: 13px; font-weight: 600; margin-left: 6px; transition: background .25s; }
.cart-btn:hover { background: var(--accent); }

/* menu mobile */
.overlay { position: fixed; inset: 0; background: rgba(18,18,18,.4); z-index: 50; animation: fadeIn .3s ease both; }
.mmenu { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px,85vw); z-index: 51; background: var(--bg); padding: 24px;
  display: flex; flex-direction: column; gap: 6px; animation: fadeUp .35s ease both; }
.mmenu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-family: var(--display); font-size: 26px; }
.mmenu > a { font-family: var(--display); font-size: 34px; padding: 8px 0; border-bottom: 1px solid var(--l10); }
.mmenu > a.sale { color: var(--accent); font-style: italic; border-bottom: 0; }
.mmenu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 500; }

/* ---------- hero ---------- */
.hero { position: relative; height: calc(100svh - 64px); min-height: 600px; display: flex; overflow: hidden; background: var(--ink); }
.hp { position: relative; flex: 1; min-height: 0; min-width: 0; overflow: hidden; cursor: pointer; transition: flex .9s var(--ease); color: var(--bg); }
.hp-f { flex: 1.2; background: var(--img2); }
.hp-m { background: var(--img3); }
.hero[data-side=f] .hp-f { flex: 1.7; }
.hero[data-side=m] .hp-f { flex: 1; }
.hero[data-side=m] .hp-m { flex: 1.7; }
.hp img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover;
  transform: translate(calc(var(--mx,0) * 10px), calc(var(--my,0) * 10px)) scale(1); transition: transform .9s var(--ease); }
.hero[data-side=f] .hp-f img, .hero[data-side=m] .hp-m img { transform: translate(calc(var(--mx,0) * 10px), calc(var(--my,0) * 10px)) scale(1.06); }
.hp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,18,.6), rgba(18,18,18,0) 55%); }
.hero::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: clamp(180px, 30%, 320px); pointer-events: none;
  background: linear-gradient(to bottom, rgba(18,18,18,.55), rgba(18,18,18,.25) 55%, rgba(18,18,18,0)); }
.hp-body { position: absolute; z-index: 1; left: clamp(16px,3vw,40px); right: clamp(16px,3vw,40px); bottom: clamp(16px,3vw,40px);
  display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.hp-body p { margin: 0 0 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.hp-word { font-family: var(--display); font-size: clamp(72px,13vw,200px); line-height: .82; letter-spacing: -.04em; }
.hp-tags { display: flex; flex-direction: column; gap: 6px; align-items: end; flex: none; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.hero[data-side=f] .hp-f .hp-tags, .hero[data-side=m] .hp-m .hp-tags { opacity: 1; transform: none; }
.hp-tags a { max-width: min(260px, 42vw); overflow: hidden; text-overflow: ellipsis; background: rgba(244,241,235,.92); color: var(--ink); padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hp-tags a:hover { background: var(--ink); color: var(--bg); }
.hp-tags span { color: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.hero-title { position: absolute; z-index: 2; left: 0; right: 0; margin: 0 auto; top: clamp(20px,4vw,48px); text-align: center; color: var(--bg);
  pointer-events: none; width: max-content; max-width: 90%; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 24px rgba(0,0,0,.45); animation: heroIn 1s .2s var(--ease) both; }
.hero-title p { margin: 0 0 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.hero-title h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px,4.5vw,64px); line-height: 1; margin: 0; letter-spacing: -.02em; }
.hero-seal { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); width: clamp(104px,12vw,150px); height: clamp(104px,12vw,150px);
  border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hero-seal svg { position: absolute; inset: 8%; width: 84%; height: 84%; animation: spin 16s linear infinite; }
.hero-seal text { font-size: 10.5px; letter-spacing: .22em; font-weight: 700; fill: var(--ink); font-family: var(--body); }
.hero-seal span { font-family: var(--display); font-size: clamp(22px,2.6vw,34px); color: var(--accent); font-style: italic; line-height: 1; }

/* marquee */
.marquee { border-bottom: 1px solid var(--ink); background: var(--bg); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track > div { display: flex; gap: 48px; padding-right: 48px; font-family: var(--display); font-size: clamp(18px,2vw,26px); white-space: nowrap; }
.marquee-track i { color: var(--accent); }

/* danh mục dạng list */
.catlist { display: flex; flex-direction: column; border-bottom: 1px solid var(--l15); }
.catlist a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(10px,1.5vw,18px) 0;
  border-top: 1px solid var(--l15); transition: color .3s, padding-left .4s var(--ease); }
.catlist.hovering a { color: rgba(18,18,18,.35); }
.catlist.hovering a.on { color: var(--ink); padding-left: 16px; }
.cat-l { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.cat-l small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-l span { font-family: var(--display); font-size: clamp(34px,6vw,92px); line-height: .95; letter-spacing: -.02em; white-space: nowrap; }
.cat-r { display: flex; align-items: center; gap: 14px; flex: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cat-thumb { width: 44px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--img); }
.cat-thumb img, .fill img, img.fill { width: 100%; height: 100%; object-fit: cover; }
.cat-preview { position: fixed; left: 0; top: 0; width: 220px; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; pointer-events: none; z-index: 20;
  box-shadow: 0 30px 60px rgba(0,0,0,.25); transition: transform .5s var(--ease), opacity .2s; background: var(--img); opacity: 0; }
.cat-preview.on { opacity: 1; }
.cat-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- card sản phẩm ---------- */
.pc { min-width: 0; display: flex; flex-direction: column; }
.pc-media { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--img); display: block; }
.pc-link { position: absolute; inset: 0; }
.pc-tags { pointer-events: none; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-media .img2 { opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease); }
.pc:hover .img2 { opacity: 1; transform: scale(1.04); }
.pc-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; align-items: center; }
.pc-num { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--bg); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.badge { padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge.sale { background: var(--accent); }
.wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(244,241,235,.9);
  display: flex; align-items: center; justify-content: center; color: var(--ink); z-index: 1; }
.wish.on { color: var(--accent); }
.wish.on svg { fill: currentColor; }
.pc-qv { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 13px; border-radius: 12px; border: 0; background: rgba(244,241,235,.95);
  backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s, background .2s, color .2s; }
.pc-qv:hover { background: var(--ink); color: #fff; }
.pc-sizes { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.pc-sizes button { flex: 1; padding: 10px 0; border-radius: 10px; border: 0; background: rgba(244,241,235,.95); font-size: 12px; font-weight: 700; }
.pc-sizes button:hover { background: var(--ink); color: #fff; }
.pc:hover .pc-qv, .pc:hover .pc-sizes, .pc:focus-within .pc-qv, .pc:focus-within .pc-sizes { opacity: 1; transform: none; }
.pc-info { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; align-items: flex-start; }
.pc-info > div:first-child { min-width: 0; }
.pc-name { display: block; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--l15); }
.pc-price { text-align: right; flex: none; }
.pc-price b { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-price s { display: block; font-size: 12px; color: var(--strike); }
.pc-mini .pc-media { border-radius: 14px; }
.pc-mini .pc-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; }
.pc-mini .pc-row span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-mini .pc-row b { font-weight: 600; flex: none; }
.pc-mini .pc-name { font-size: 13px; margin-top: 10px; }
.pc-mini .pc-p { font-size: 13px; font-weight: 600; margin-top: 2px; }

.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(160px, calc(25% - 12px))), 1fr)); gap: 28px 16px; }
.grid-new { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-flow: dense; gap: clamp(12px,1.5vw,20px); }
.grid-new .pc-media { flex: 1; min-height: 0; border-radius: 18px; }
.grid-new .pc-tags { left: 14px; top: 14px; }
.grid-new .wish { top: 12px; right: 12px; }
.grid-new .big { grid-column: span 2; grid-row: span 2; }
.grid-new .big-d { grid-column: span 2; grid-row: span 2; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail-bleed { margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); scroll-padding-inline: var(--pad); }
.lb-rail { scroll-padding-inline: var(--pad); }
.look-rail { scroll-padding-inline: 16px; }

/* hiện dần khi cuộn */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].seen { opacity: 1; transform: none; }
.anim-up { animation: fadeUp .6s var(--ease) both; }

/* ---------- ghép set ---------- */
.outfit { background: var(--ink); color: var(--bg); margin-top: var(--sec); padding: clamp(48px,6vw,96px) var(--pad); }
.outfit-in { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,340px),1fr)); gap: clamp(28px,4vw,64px); align-items: center; }
.outfit .kicker { color: rgba(244,241,235,.55); }
.outfit h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px,5.5vw,84px); margin: 0 0 16px; letter-spacing: -.02em; line-height: .92; }
.outfit h2 em { color: var(--accent); }
.outfit-lead { margin: 0 0 28px; color: rgba(244,241,235,.7); max-width: 40ch; text-wrap: pretty; }
.outfit-total { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.outfit-total small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,235,.55); }
.outfit-total b { font-family: var(--display); font-weight: 400; font-size: clamp(34px,4vw,56px); line-height: 1; font-variant-numeric: tabular-nums; }
.outfit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.outfit-actions .btn-red:hover { background: var(--bg); color: var(--ink); transform: translateY(-2px); }
.btn-shuffle { padding: 16px 22px; border-radius: 999px; background: transparent; color: var(--bg); border: 1.5px solid rgba(244,241,235,.4); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.btn-shuffle:hover { border-color: var(--bg); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(8px,1.2vw,16px); }
.slot { min-width: 0; }
.slot-media { position: relative; aspect-ratio: 3/4.4; border-radius: 16px; overflow: hidden; background: var(--slot); }
.slot-media a img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.slot-media a:hover img { transform: scale(1.04); }
.slot-label { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(18,18,18,.7); color: var(--bg);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.slot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(244,241,235,.92);
  color: var(--ink); display: flex; align-items: center; justify-content: center; }
.slot-nav:hover { background: var(--accent); color: #fff; }
.slot-nav.prev { left: 6px; } .slot-nav.next { right: 6px; }
.slot-pos { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px; color: rgba(244,241,235,.8); font-variant-numeric: tabular-nums; }
.slot-name { margin-top: 10px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-price { font-size: 13px; font-weight: 600; color: rgba(244,241,235,.8); }

/* mua theo màu */
.swatches { display: flex; gap: clamp(8px,1.4vw,16px); flex-wrap: wrap; margin-bottom: 28px; }
.swatch { width: clamp(44px,5vw,64px); height: clamp(44px,5vw,64px); border-radius: 50%; padding: 4px; border: 2px solid transparent; background: transparent;
  transition: transform .3s var(--ease), border-color .3s; }
.swatch.on { border-color: var(--ink); transform: scale(1.12); }
.swatch i, .cdot i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--l12); }
.color-rail > * { width: min(62vw,260px); animation: fadeUp .5s var(--ease) both; }

/* lookbook cuộn dính */
.looks-sticky { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,4vw,64px); align-items: start; }
.look-block { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; border-top: 1px solid var(--l15);
  opacity: .35; transition: opacity .5s; color: var(--ink); }
.look-block.on { opacity: 1; }
.look-block:hover { color: var(--ink); }
.look-num { font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
.look-block h3 { font-family: var(--display); font-weight: 400; font-size: clamp(40px,5.5vw,88px); margin: 10px 0 18px; line-height: .92; letter-spacing: -.02em; }
.look-items { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.look-items div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted rgba(18,18,18,.25); padding-bottom: 6px; }
.look-items span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-items b { font-weight: 600; flex: none; }
.look-cta { margin-top: 18px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--ink); align-self: start; }
.look-stage { position: sticky; top: 84px; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: var(--img2); }
.look-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 1.6s var(--ease); }
.look-stage img.on { opacity: 1; transform: scale(1); }
.look-rail { padding: 0 16px 8px; gap: 14px; }
.look-rail > a { width: 78vw; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; position: relative; background: var(--img2); }
.look-rail img { width: 100%; height: 100%; object-fit: cover; }
.look-rail-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.look-rail-cap span { font-family: var(--display); font-size: 26px; line-height: 1; }
.look-rail-cap b { font-size: 12px; background: rgba(244,241,235,.92); color: var(--ink); text-shadow: none; padding: 6px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }

/* cam kết */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); border-top: 1px solid var(--ink); }
.stats > div { padding: 28px 0; border-bottom: 1px solid var(--l12); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(44px,5vw,72px); line-height: .9; color: var(--accent); letter-spacing: -.02em; }
.stats strong { display: block; font-weight: 600; margin-top: 14px; font-size: 15px; }
.stats span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- danh mục / listing ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 14px; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); flex: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.page-top { padding-top: clamp(24px,4vw,48px); padding-bottom: 40px; }
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.list-head span { font-size: 14px; color: var(--muted); }
.fbar { position: sticky; top: 64px; z-index: 30; background: rgba(244,241,235,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin: 24px calc(-1 * var(--pad)) 0; padding: 12px var(--pad); border-top: 1px solid var(--l10); border-bottom: 1px solid var(--l10);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fbar-cats { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; }
.fbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; border: 1px solid var(--l20); border-radius: 999px; overflow: hidden; }
.seg button { padding: 7px 14px; border: 0; background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; }
.seg button.on { background: var(--ink); color: #fff; }
.select { padding: 8px 32px 8px 14px; border-radius: 999px; border: 1px solid var(--l20); background: transparent; font-size: 13px; font-weight: 600;
  appearance: none; -webkit-appearance: none; background-repeat: no-repeat; background-position: right 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.sizes-row { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.sizes-row > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.sz-chip { min-width: 40px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--l20); background: transparent; font-size: 13px; font-weight: 600; }
.sz-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.clear-f { margin-left: auto; background: none; border: 0; font-size: 13px; font-weight: 600; text-decoration: underline; color: var(--accent); white-space: nowrap; }
.list-grid { margin-top: 28px; }
.list-grid .pc { animation: fadeUp .6s var(--ease) both; }
.empty { padding: 80px 0; text-align: center; }
.empty p:first-child { font-family: var(--display); font-size: 32px; margin: 0 0 8px; }
.empty p + p { color: var(--muted); margin: 0 0 20px; }
.empty-box { padding: 60px 16px; text-align: center; border: 1px dashed rgba(18,18,18,.25); border-radius: 20px; }
.empty-box p:first-child { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
.empty-box p + p { color: var(--muted); margin: 0 0 20px; }

/* ---------- chi tiết sản phẩm ---------- */
.pdp { padding-top: clamp(16px,3vw,32px); padding-bottom: 40px; }
.pdp .crumbs { margin-bottom: 20px; }
.pdp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,380px),1fr)); gap: clamp(24px,4vw,64px); align-items: start; }
.gallery { display: grid; gap: 12px; position: sticky; top: 80px; }
.gal-main { position: relative; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden; background: var(--img); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeUp .5s ease both; }
.gal-main .badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; }
.thumbs button { width: 72px; height: 90px; border-radius: 12px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--img); flex: none; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { animation: fadeUp .6s .1s var(--ease) both; }
.buy-kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.buy h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px,4vw,56px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.015em; text-wrap: balance; }
.buy-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.buy-price b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-price s { font-size: 15px; color: var(--strike); }
.off { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(230,59,20,.1); padding: 3px 8px; border-radius: 999px; }
.buy-desc { margin: 0 0 28px; color: var(--muted2); max-width: 52ch; text-wrap: pretty; }
.opt { margin-bottom: 22px; }
.opt-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 10px; white-space: nowrap; }
.opt-label > span { font-weight: 600; }
.opt-label > span span { font-weight: 400; color: var(--muted); }
.cdots { display: flex; gap: 10px; flex-wrap: wrap; }
.cdot { width: 36px; height: 36px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: transparent; transition: border-color .2s; }
.cdot.on { border-color: var(--ink); }
.szs { display: flex; gap: 8px; flex-wrap: wrap; }
.sz { min-width: 52px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--l20); background: transparent; font-size: 14px; font-weight: 600; transition: all .2s; }
.sz.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sz:disabled { color: #b5afa5; text-decoration: line-through; cursor: not-allowed; }
.chart { margin-top: 14px; border: 1px solid var(--l12); border-radius: 12px; overflow: hidden; font-size: 13px; animation: fadeUp .3s ease both; }
.chart > div { display: grid; grid-template-columns: repeat(var(--cols,4), 1fr); padding: 10px 14px; border-top: 1px solid rgba(18,18,18,.08); }
.chart > div:first-child { background: var(--soft); font-weight: 600; border-top: 0; }
.chart > div span:first-child { font-weight: 600; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.qty { display: flex; border: 1px solid var(--l20); border-radius: 999px; overflow: hidden; height: 52px; }
.qty button { width: 44px; border: 0; background: transparent; font-size: 18px; }
.qty span { width: 36px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.btn-add { flex: 1; min-width: 200px; height: 52px; padding: 0 20px; white-space: nowrap; }
.wish-lg { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--l20); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.wish-lg.on { color: var(--accent); }
.wish-lg.on svg { fill: currentColor; }
.ask { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ask a { flex: 1; min-width: 140px; padding: 12px; border-radius: 999px; border: 1px solid var(--l20); text-align: center; font-size: 13px; font-weight: 600; }
.ask a:hover { border-color: var(--ink); color: var(--ink); }
.notes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted2); }
.notes li { display: flex; gap: 10px; align-items: center; }
.notes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.acc { margin-top: 28px; border-top: 1px solid var(--l12); }
.acc > div { border-bottom: 1px solid var(--l12); }
.acc button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; background: none; border: 0; font-size: 15px; font-weight: 600; text-align: left; }
.acc button i { font-size: 22px; font-weight: 300; transition: transform .3s; line-height: 1; }
.acc button[aria-expanded=true] i { transform: rotate(45deg); }
.acc-body { margin: 0 0 16px; font-size: 14px; color: var(--muted2); line-height: 1.65; animation: fadeUp .3s ease both; }
.acc-body p { margin: 0 0 10px; }
.acc-body h2 { font-size: 14px; margin: 14px 0 6px; }
.acc-body ul { margin: 0 0 10px; padding-left: 18px; }
.related { margin-top: clamp(48px,6vw,96px); }
.related h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px,3.5vw,44px); margin: 0 0 20px; }
.related .rail > * { width: min(60vw,240px); }
.mbuy { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 35; padding: 10px 12px; background: rgba(244,241,235,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--l10); display: flex; gap: 10px; align-items: center; }
.mbuy div { min-width: 0; }
.mbuy small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbuy b { font-weight: 600; font-size: 14px; }
.mbuy .btn { margin-left: auto; padding: 14px 20px; font-size: 13px; flex: none; }

/* ---------- lookbook ---------- */
.lb-intro { max-width: 50ch; color: var(--muted2); margin: 0 0 28px; text-wrap: pretty; }
.lb-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px,8vw,120px); line-height: .92; letter-spacing: -.02em; margin: 0 0 16px; }
.lb-title em { color: var(--accent); }
.lb-rail { gap: 20px; padding: 0 var(--pad) 16px; align-items: start; }
.lb-card { width: min(86vw,520px); }
.lb-media { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: var(--img2); }
.lb-media > img { width: 100%; height: 100%; object-fit: cover; }
.spot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 0; background: rgba(244,241,235,.95);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(244,241,235,.35); transition: transform .25s; }
.spot:hover { transform: scale(1.2); }
.spot i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lb-num { position: absolute; top: 16px; left: 16px; font-family: var(--display); font-size: 14px; color: #fff; letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.lb-card h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 18px 0 10px; }
.lb-items { display: grid; gap: 8px; }
.lb-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(18,18,18,.08); }
.lb-item > a:first-child { width: 52px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--img); flex: none; }
.lb-item > a:first-child img { width: 100%; height: 100%; object-fit: cover; }
.lb-item > div { min-width: 0; flex: 1; font-size: 13px; }
.lb-item > div a { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-item > div b { font-weight: 600; }
.lb-all { padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; border: 0; font-size: 13px; font-weight: 600; }
.lb-all:hover { background: var(--accent); }

/* ---------- tài khoản ---------- */
.acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; }
.acct-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px,4vw,44px); margin: 0; line-height: 1; }
.acct-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--l12); margin-bottom: 24px; overflow-x: auto; }
.tabs button { padding: 12px 16px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ocard { background: #fff; border: 1px solid rgba(18,18,18,.08); border-radius: 18px; padding: 18px; animation: fadeUp .5s ease both; }
.ocard-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ocard-top b { font-weight: 700; font-size: 14px; }
.ocard-top small { color: var(--muted); font-size: 13px; margin-left: 10px; }
.st-pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.st-pill.done { background: var(--soft); color: var(--ink); }
.st-pill.cancel { background: var(--l12); color: var(--muted); }
.steps { display: flex; gap: 6px; margin: 16px 0 8px; }
.steps > div { flex: 1; }
.steps > div i { display: block; height: 3px; border-radius: 2px; background: var(--l12); transition: background .4s; }
.steps > div.on i { background: var(--ink); }
.steps > div span { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.ocard-bot { display: flex; gap: 10px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.ocard-bot .thumbs-s { display: flex; gap: 6px; }
.ocard-bot .thumbs-s a { width: 48px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--img); }
.ocard-bot .thumbs-s img { width: 100%; height: 100%; object-fit: cover; }
.ocard-bot strong { margin-left: auto; font-weight: 700; font-size: 15px; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); gap: 14px; }
.addr { background: #fff; border: 1px solid rgba(18,18,18,.08); border-radius: 18px; padding: 20px; font-size: 14px; }
.addr.def { border-color: var(--ink); }
.addr-top { display: flex; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.addr-top span { font-size: 11px; font-weight: 700; color: var(--accent); }
.addr p { margin: 0; color: var(--muted2); line-height: 1.6; }
.addr-acts { display: flex; gap: 14px; margin-top: 12px; }
.addr-add { border: 1px dashed rgba(18,18,18,.3); border-radius: 18px; padding: 20px; background: transparent; font-size: 14px; font-weight: 600; min-height: 120px; }
.addr-add:hover { border-color: var(--ink); }

/* ---------- form / thanh toán ---------- */
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); gap: 14px; }
.row2s { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,160px),1fr)); gap: 14px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.fld input, .fld textarea, .fld select { padding: 14px; border-radius: 12px; border: 1px solid var(--l20); font-size: 14px; font-weight: 400; background: #fff; width: 100%; }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); outline: none; }
.fld.err input { border-color: var(--accent); }
.fld small { color: var(--accent); font-weight: 500; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,380px),1fr)); gap: clamp(24px,4vw,56px); align-items: start; }
.ck-steps { display: flex; gap: 6px; margin-bottom: 28px; }
.ck-steps > div { flex: 1; }
.ck-steps i { display: block; height: 3px; border-radius: 2px; background: var(--l12); transition: background .4s; }
.ck-steps span { display: block; font-size: 12px; margin-top: 8px; font-weight: 600; color: var(--muted); }
.ck-steps .on i { background: var(--ink); }
.ck-steps .on span { color: var(--ink); }
.ck-pane { animation: fadeUp .4s ease both; }
.opt-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.rcards { display: grid; gap: 8px; }
.rcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--l12); background: #fff; text-align: left; font-size: 14px; width: 100%; }
.rcard.on { border-color: var(--ink); }
.rcard strong { display: block; }
.rcard small { color: var(--muted); font-size: 13px; }
.rcard .radio { width: 18px; height: 18px; border-radius: 50%; border: 5px solid rgba(18,18,18,.15); flex: none; }
.rcard.on .radio { border-color: var(--ink); }
.box { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid rgba(18,18,18,.08); }
.box small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.ck-actions { display: flex; gap: 10px; }
.ck-actions .btn { flex: 1; }
.summary { background: #fff; border-radius: 22px; padding: 22px; border: 1px solid rgba(18,18,18,.08); position: sticky; top: 84px; }
.summary-title { font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.sum-lines { display: grid; gap: 14px; max-height: 360px; overflow-y: auto; }
.sum-line { display: flex; gap: 12px; align-items: center; }
.sum-line > div:first-child { width: 56px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--img); flex: none; }
.sum-line img { width: 100%; height: 100%; object-fit: cover; }
.sum-line > div:nth-child(2) { flex: 1; min-width: 0; }
.sum-line .nm { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-line .vr { font-size: 12px; color: var(--muted); }
.sum-line > b { font-size: 13px; font-weight: 600; }
.coupon { display: flex; gap: 8px; margin: 18px 0 6px; }
.coupon input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--l20); font-size: 13px; text-transform: uppercase; }
.coupon button { padding: 12px 18px; border-radius: 999px; border: 0; background: var(--soft); font-size: 13px; font-weight: 600; }
.coupon-msg { font-size: 12px; color: var(--muted); min-height: 18px; margin-bottom: 8px; }
.totals { display: grid; gap: 8px; font-size: 14px; border-top: 1px solid var(--l10); padding-top: 16px; }
.totals div { display: flex; justify-content: space-between; }
.totals div span:first-child { color: var(--muted); }
.totals .grand { font-weight: 700; font-size: 17px; padding-top: 8px; }
.totals .grand span:first-child { color: var(--ink); }
.ck-err { background: rgba(230,59,20,.08); color: var(--accent); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.done { max-width: 560px; margin: 40px auto; text-align: center; animation: heroIn .8s var(--ease) both; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.done h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px,5vw,64px); margin: 0 0 12px; line-height: 1; }
.done p { color: var(--muted2); margin: 0 0 6px; }
.done .sub { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.done-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bankbox { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; text-align: left; background: #fff; border-radius: 18px; padding: 16px; margin: 0 0 24px; border: 1px solid rgba(18,18,18,.08); font-size: 14px; }
.bankbox img { width: 160px; height: auto; border-radius: 10px; }
.bankbox p { margin: 0 0 4px; color: var(--muted2); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--bg); margin-top: clamp(40px,6vw,96px); padding: clamp(40px,5vw,72px) var(--pad) 100px; }
.ftr-in { max-width: 1400px; margin: 0 auto; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(244,241,235,.15); }
.ftr-logo { font-family: var(--display); font-size: clamp(40px,6vw,80px); line-height: .9; letter-spacing: -.02em; }
.ftr-logo em { font-size: .5em; color: rgba(244,241,235,.6); }
.ftr-about { color: rgba(244,241,235,.7); font-size: 14px; max-width: 32ch; margin: 20px 0 0; }
.ftr-col { font-size: 14px; display: grid; gap: 10px; align-content: start; }
.ftr-col > span:first-child { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,241,235,.5); margin-bottom: 4px; }
.ftr-col a { color: var(--bg); }
.ftr-col a:hover { color: var(--accent); }
.ftr-col > span + span, .ftr-col .dim { color: rgba(244,241,235,.7); }
.ftr-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; color: rgba(244,241,235,.5); }
.ftr-legal { padding-top: 14px; font-size: 12px; color: rgba(244,241,235,.5); line-height: 1.7; }
.ftr-legal a { color: rgba(244,241,235,.7); }

/* ---------- bottom nav mobile ---------- */
.bnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; height: 64px; background: rgba(244,241,235,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--l10); grid-template-columns: repeat(5,1fr); padding-bottom: env(safe-area-inset-bottom); }
.bnav a, .bnav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--ink); }
.bnav .on { color: var(--accent); }

/* ---------- giỏ hàng ---------- */
.dim { position: fixed; inset: 0; z-index: 60; background: rgba(18,18,18,.45); opacity: 0; pointer-events: none; transition: opacity .4s; }
.dim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px,100vw); z-index: 61; background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .55s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.15); visibility: hidden; }
.drawer.on { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--l10); }
.drawer-head span { font-family: var(--display); font-size: 28px; white-space: nowrap; }
.drawer-head span small { font-size: 16px; font-family: var(--body); color: var(--muted); }
.x-btn { background: none; border: 0; padding: 6px; display: flex; color: var(--ink); }
.freeship { padding: 14px 22px; background: var(--ink); color: var(--bg); font-size: 13px; }
.freeship > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.freeship > div:first-child span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 4px; border-radius: 2px; background: rgba(244,241,235,.2); }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .6s var(--ease); }
.lines { flex: 1; overflow-y: auto; padding: 16px 22px; display: grid; gap: 16px; align-content: start; }
.line { display: flex; gap: 14px; animation: fadeUp .4s ease both; }
.line > a { width: 84px; height: 106px; border-radius: 12px; overflow: hidden; background: var(--img); flex: none; }
.line > a img { width: 100%; height: 100%; object-fit: cover; }
.line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-top { display: flex; justify-content: space-between; gap: 8px; }
.line-top a { font-size: 14px; font-weight: 500; line-height: 1.3; }
.line-top button { background: none; border: 0; padding: 0; color: var(--muted); flex: none; height: 20px; }
.line-top button:hover { color: var(--accent); }
.line-var { font-size: 12px; color: var(--muted); margin-top: 4px; }
.line-bot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.line-bot b { font-weight: 600; font-size: 14px; }
.qty-s { display: flex; border: 1px solid var(--l20); border-radius: 999px; height: 34px; }
.qty-s button { width: 32px; border: 0; background: none; font-size: 16px; }
.qty-s span { width: 24px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--l10); background: var(--bg); }
.drawer-foot .sub { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.drawer-foot .sub span:first-child { color: var(--muted); }
.drawer-foot .sub span:last-child { font-weight: 600; }
.drawer-foot p { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.drawer-foot .btn { width: 100%; padding: 16px; }
.alt-order { display: flex; gap: 8px; margin-top: 8px; }
.alt-order a { flex: 1; padding: 11px; border-radius: 999px; border: 1px solid var(--l20); text-align: center; font-size: 12px; font-weight: 600; }
.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.drawer-empty p:first-child { font-family: var(--display); font-size: 30px; margin: 0 0 8px; }
.drawer-empty p + p { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.drawer-empty .btn { padding: 14px 24px; }

/* ---------- xem nhanh ---------- */
.qv { position: fixed; inset: 0; z-index: 70; background: rgba(18,18,18,.5); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .3s ease both; }
.qv-sheet { width: min(880px,100vw); max-height: 92vh; background: var(--bg); border-radius: 24px 24px 0 0; overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); animation: heroIn .5s var(--ease) both; }
.qv-img { aspect-ratio: 3/4; background: var(--img); max-height: 92vh; min-height: 0; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 28px 24px 32px; display: flex; flex-direction: column; }
.qv-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.qv-top p { margin: 0 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.qv-top h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0; line-height: 1.05; }
.qv-price { font-size: 20px; font-weight: 600; margin: 14px 0 20px; }
.qv-price s { font-size: 14px; color: var(--strike); font-weight: 400; margin-left: 8px; }
.qv .cdot { width: 34px; height: 34px; }
.qv .sz { min-width: 48px; height: 42px; padding: 0 12px; font-size: 13px; }
.qv .btn { margin-top: auto; padding: 16px; }
.qv .link-btn { margin-top: 10px; font-weight: 600; text-align: center; }

/* ---------- tìm kiếm ---------- */
.search { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow: auto; animation: fadeUp .3s ease both; }
.search-in { max-width: 1000px; margin: 0 auto; padding: clamp(20px,4vw,48px) var(--pad); }
.search-bar { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: clamp(24px,4vw,44px); font-family: var(--display); outline: none; padding: 0; }
.trend { margin-top: 28px; }
.trend > div:first-child { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.trend-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.trend-chips button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--l20); background: transparent; font-size: 14px; }
.trend-chips button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-count { margin-top: 24px; font-size: 13px; color: var(--muted); }
.search-grid { gap: 20px 14px; margin-top: 16px; }
.search-grid .pc { animation: fadeUp .4s ease both; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 18px;
  border-radius: 999px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: fadeUp .35s var(--ease) both; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* chính sách */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted2); }

/* ---------- mobile ---------- */
@media (max-width: 759px) {
  .only-desk { display: none !important; }
  .hero { flex-direction: column; }
  .hero .hp-f, .hero .hp-m { flex: 1 !important; }
  .hp-tags { opacity: 1; transform: none; }
  .hp img { transform: none !important; }
  .grid-new { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-new .big { grid-row: span 1; }
  .grid-new .big-d { grid-column: auto; grid-row: auto; }
  .catlist.hovering a { color: var(--ink); padding-left: 0; }
  .cat-preview { display: none; }
  .toast { bottom: 84px; }
  .pdp { padding-bottom: 120px; }
  .gallery, .summary { position: static; }          /* 1 cột: không dính, tránh chữ chạy đè lên ảnh */
  .buy-row { flex-wrap: nowrap; }
  .btn-add { min-width: 0; padding: 0 16px; }
  .btn-add .add-total { display: none; }
  .hero-title { top: 20px; }
  .hero-title p { font-size: 10px; letter-spacing: .18em; }
  .hero-title h1 { font-size: clamp(30px, 9vw, 40px); line-height: 1.05; }
  .bankbox { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* trang đích SEO */
.seo-intro { max-width: 72ch; margin: 14px 0 0; color: var(--muted2); font-size: 15px; }
.seo-intro p { margin: 0 0 10px; }
.seo-faq { max-width: 860px; margin-top: 48px; }
.seo-faq h2, .seo-related > span { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; display: block; }
.seo-related { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seo-related > span { width: 100%; }

/* bán sỉ */
.qty input { width: 48px; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ws-box { margin-top: 16px; border: 1px solid var(--l12); border-radius: 14px; padding: 14px 16px; background: #fff; font-size: 13px; }
.ws-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.ws-head span { color: var(--muted); }
.ws-rows { display: grid; gap: 4px; }
.ws-rows div { display: grid; grid-template-columns: 1fr auto 48px; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.ws-rows div.on { background: rgba(230,59,20,.08); }
.ws-rows b { font-variant-numeric: tabular-nums; }
.ws-rows em { font-style: normal; color: var(--accent); font-weight: 700; text-align: right; }
.ws-link { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: underline; }
.ws-bar { padding: 10px 22px; background: rgba(230,59,20,.1); color: var(--accent); font-size: 13px; font-weight: 600; }
.ws-page .kicker { margin-top: 6px; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.ws-card { background: #fff; border: 1px solid rgba(18,18,18,.08); border-radius: 22px; padding: 24px; }
.ws-card h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 6px; }
.ws-tiers { display: grid; gap: 6px; margin: 16px 0; }
.ws-tiers div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; }
.ws-tiers b { color: var(--accent); font-size: 17px; }
.ws-perks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.ws-perks li { padding: 14px 16px; border: 1px solid var(--l12); border-radius: 14px; font-weight: 500; }
.ws-steps { padding-left: 22px; display: grid; gap: 8px; max-width: 720px; color: var(--muted2); }
.ws-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: 14px;
  background: rgba(230,59,20,.08); font-size: 14px; }
.ws-strip b { color: var(--accent); }
.ws-strip a { margin-left: auto; font-weight: 600; text-decoration: underline; }

/* cẩm nang */
.art-list { display: grid; gap: 14px; max-width: 860px; }
.art-item { display: block; padding: 20px 22px; border: 1px solid var(--l12); border-radius: 18px; background: #fff; }
.art-item h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.art-item p { margin: 0 0 8px; color: var(--muted2); }
.art-item span { font-size: 12px; color: var(--muted); }
.art { max-width: 860px; }
.art-h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 8px; }
.art-body { margin-top: 24px; font-size: 16px; line-height: 1.75; }
.art-body ul { padding-left: 20px; }
