/* =========================================================
   ORBIT — Streetwear store
   ========================================================= */
@property --h1 { syntax: '<color>'; inherits: true; initial-value: #07070c; }
@property --h2 { syntax: '<color>'; inherits: true; initial-value: #1e1b4b; }
@property --ha { syntax: '<color>'; inherits: true; initial-value: #c6ff3d; }
@property --hi { syntax: '<color>'; inherits: true; initial-value: #f4f2ec; }

:root {
  --bg: #f2f0eb;
  --bg-2: #e9e6df;
  --surface: #ffffff;
  --ink: #0e0e10;
  --ink-2: #3a3a3f;
  --muted: #74726c;
  --line: rgba(14, 14, 16, 0.12);
  --line-2: rgba(14, 14, 16, 0.06);
  --accent: #c6ff3d;
  --accent-2: #b4f01f;
  --hot: #ff4b1f;
  --violet: #6d3fd1;
  --ok: #188a4a;
  --warn: #c98a00;
  --err: #d92d20;
  --radius: 22px;
  --radius-sm: 12px;
  --f-display: 'Unbounded', 'Be Vietnam Pro', system-ui, sans-serif;
  --f-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 98px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --shadow: 0 1px 0 rgba(14, 14, 16, 0.04), 0 12px 32px -18px rgba(14, 14, 16, 0.25);
  --notch: var(--bg);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { font: 600 11px/1.2 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.sec-title { font: 800 clamp(28px, 4.2vw, 56px)/1.02 var(--f-display); letter-spacing: -0.035em; margin-top: 10px; }
.sec-title em { font-style: normal; color: var(--violet); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 120px); }
.page { padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; min-height: 70vh; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; transition: gap 0.3s var(--ease); }
.link-arrow:hover { gap: 14px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------------- Nút ---------------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: inherit; transition: transform 0.45s var(--ease-io); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { --b-bg: var(--ink); --b-fg: #fff; }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--ink); }
.btn--accent::before { background: #fff; }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--hot { --b-bg: var(--hot); --b-fg: #fff; }
.btn--hot::before { background: var(--ink); }
.btn--hot:hover { color: #fff; }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { height: 58px; font-size: 15.5px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background 0.25s, transform 0.25s var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn:active { transform: scale(0.92); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--hot); color: #fff; font: 700 10.5px/18px var(--f-body); text-align: center; transform: scale(0); transition: transform 0.35s var(--ease); }
.badge.has { transform: scale(1); }
.cart-btn.is-bump { animation: bump 0.6s var(--ease); }
.cart-btn.is-bump .badge { animation: badgePop 0.6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(0.95) rotate(4deg); } }
@keyframes badgePop { 40% { transform: scale(1.6); background: var(--violet); } }

/* ---------------- Header ---------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--ink); transition: transform 0.45s var(--ease), color 0.4s; }
.announce { height: 34px; background: var(--ink); color: #fff; overflow: hidden; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; transition: height 0.35s var(--ease); }
.announce__track { display: flex; gap: 48px; white-space: nowrap; padding-left: 48px; animation: marquee 38s linear infinite; }
.announce__track span { display: inline-flex; align-items: center; gap: 8px; }
.announce__track b { color: var(--accent); font-weight: 700; }
.nav-wrap { position: relative; }
.nav-wrap::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line-2); transition: opacity 0.4s; }
.nav { position: relative; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { font: 900 22px/1 var(--f-display); letter-spacing: -0.04em; display: inline-flex; align-items: center; gap: 2px; justify-self: center; }
.logo i { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; border: 0.12em solid currentColor; position: relative; margin: 0 1px; }
.logo i::after { content: ''; position: absolute; width: 0.24em; height: 0.24em; border-radius: 50%; background: var(--accent); top: -0.16em; right: -0.12em; box-shadow: 0 0 0 0.06em var(--ink); animation: orbitDot 3s linear infinite; transform-origin: -0.06em 0.36em; }
@keyframes orbitDot { to { transform: rotate(360deg); } }
.nav__left { display: flex; align-items: center; gap: 4px; justify-self: start; }
.nav__links { display: flex; gap: 4px; }
.logo i { width: 0.7em !important; height: 0.7em !important; }
.nav__links a { position: relative; white-space: nowrap; padding: 8px 12px; font-weight: 500; font-size: 14px; border-radius: 99px; transition: background 0.25s; }
.nav__links a:hover, .nav__links a.is-active { background: color-mix(in srgb, currentColor 9%, transparent); }
.nav__links a.is-hot { color: var(--hot); font-weight: 700; }
.nav__actions { display: flex; gap: 2px; justify-self: end; align-items: center; }
.nav__burger { display: none; }
.site-header.is-clear .nav-wrap::before { opacity: 0; }
.site-header.is-clear.ink-light { color: #f4f2ec; }
.site-header.is-clear.ink-light .logo i::after { box-shadow: 0 0 0 0.06em #f4f2ec; }
.site-header.is-compact .announce { height: 0; }
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
  .nav { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .nav__actions .hide-sm { display: none; }
}

/* ---------------- Marquee ---------------- */
@keyframes marquee { to { transform: translateX(-50%); } }
.band { position: relative; z-index: 3; padding-block: 18px; overflow: hidden; }
.band__row { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.band__row span { font: 800 clamp(18px, 2.4vw, 30px)/1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; padding-inline: 22px; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.band__row span::after { content: '✦'; font-size: 0.7em; }
.band--a { background: var(--accent); color: var(--ink); transform: rotate(-2deg) scale(1.04); margin-top: -26px; }
.band--b { background: var(--ink); color: var(--bg); transform: rotate(1.6deg) scale(1.04); margin-top: -34px; }
.band--b .band__row { animation-direction: reverse; animation-duration: 36s; }
.bands { position: relative; z-index: 3; overflow: hidden; padding: 0 0 26px; margin-top: -1px; }
.bands .band--a { margin-top: 10px; }
.hero + .bands { margin-top: -38px; padding-top: 0; }

/* ---------------- HERO 3D ---------------- */
.hero {
  --px: 0; --py: 0;
  position: relative; min-height: 100svh; min-height: 680px; height: 100svh; max-height: 1100px;
  color: var(--hi); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 72% 45%, color-mix(in srgb, var(--h2) 85%, transparent) 0%, transparent 70%),
    radial-gradient(90% 90% at 10% 100%, color-mix(in srgb, var(--h2) 45%, transparent) 0%, transparent 60%),
    var(--h1);
  transition: --h1 1s var(--ease), --h2 1s var(--ease), --ha 1s var(--ease), --hi 1s var(--ease);
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--hi) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--hi) 7%, transparent) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 70% at 60% 50%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 0%, transparent 75%); transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -8px), 0); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__giant { position: absolute; left: 0; right: 0; top: 50%; z-index: 0; translate: 0 -46%; text-align: center; font: 900 clamp(110px, 24vw, 420px)/0.8 var(--f-display); letter-spacing: -0.06em; white-space: nowrap; user-select: none; pointer-events: none; }
.hero__giant .fill { display: block; color: color-mix(in srgb, var(--hi) 7%, transparent); transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -12px), 0); }
.hero__giant .stroke { position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ha) 75%, transparent); transform: translate3d(calc(var(--px) * 22px + 10px), calc(var(--py) * 10px + 10px), 0); }
.hero__giant .ch { display: inline-block; transform: translateY(110%); opacity: 0; animation: chIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 0.2s); }
@keyframes chIn { to { transform: translateY(0); opacity: 1; } }
.hero__stage { position: absolute; inset: 0; z-index: 1; touch-action: pan-y; }
.hero__stage .shoe-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.hero__stage .shoe-canvas.is-grabbing { cursor: grabbing; }
.hero__fallback { position: absolute; z-index: 1; right: 8%; top: 22%; width: min(46vw, 560px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: none; animation: floaty 5s ease-in-out infinite; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero__fallback img { width: 100%; height: 100%; object-fit: cover; }
.hero.no-3d .hero__fallback { display: block; }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(-2deg); } }
.hero__loader { position: absolute; z-index: 2; left: 64%; top: 50%; translate: -50% -50%; display: grid; place-items: center; gap: 12px; text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.6s, visibility 0.6s; }
.hero__loader svg { width: 86px; height: 86px; transform: rotate(-90deg); }
.hero__loader circle { fill: none; stroke-width: 3; }
.hero__loader .bgc { stroke: color-mix(in srgb, var(--hi) 15%, transparent); }
.hero__loader .fgc { stroke: var(--ha); stroke-linecap: round; stroke-dasharray: 245; stroke-dashoffset: 245; transition: stroke-dashoffset 0.3s; }
.hero__loader b { position: absolute; top: 31px; font: 700 15px/1 var(--f-display); letter-spacing: 0; }
.hero.is-ready .hero__loader, .hero.no-3d .hero__loader { opacity: 0; visibility: hidden; }
.hero__ui { position: relative; z-index: 3; height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 24px; padding-top: calc(var(--header-h) + 20px); padding-bottom: clamp(28px, 5vh, 56px); pointer-events: none; }
.hero__ui a, .hero__ui button, .hero__panel { pointer-events: auto; }
.hero__copy { max-width: 600px; align-self: center; }
.hero__copy .eyebrow { color: color-mix(in srgb, var(--hi) 72%, transparent); }
.hero__copy .eyebrow .dot { background: var(--ha); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ha) 30%, transparent); }
.hero__title { margin-top: 18px; font: 800 clamp(38px, 5.4vw, 82px)/0.98 var(--f-display); letter-spacing: -0.045em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: chIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 0.35s); }
.hero__title em { font-style: normal; color: var(--ha); position: relative; }
.hero__title em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.08em; background: var(--ha); transform-origin: left; transform: scaleX(0); animation: underline 0.9s var(--ease) 1.2s forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero__lead { margin-top: 20px; max-width: 470px; font-size: clamp(14.5px, 1.2vw, 16.5px); color: color-mix(in srgb, var(--hi) 75%, transparent); opacity: 0; animation: fadeUp 0.9s var(--ease) 0.9s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; opacity: 0; animation: fadeUp 0.9s var(--ease) 1.05s forwards; }
.hero__cta .btn--accent { --b-bg: var(--ha); --b-fg: var(--h1); }
.hero__cta .btn--ghost { --b-fg: var(--hi); }
.hero__cta .btn--ghost::before { background: var(--hi); }
.hero__cta .btn--ghost:hover { color: var(--h1); }
.hero__stats { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 38px; opacity: 0; animation: fadeUp 0.9s var(--ease) 1.2s forwards; }
.hero__stats div { display: grid; }
.hero__stats b { font: 800 clamp(20px, 2vw, 28px)/1.1 var(--f-display); letter-spacing: -0.03em; }
.hero__stats span { font-size: 12px; color: color-mix(in srgb, var(--hi) 60%, transparent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__panel { justify-self: end; width: min(100%, 340px); padding: 18px; border-radius: 24px; background: color-mix(in srgb, var(--hi) 9%, transparent); border: 1px solid color-mix(in srgb, var(--hi) 16%, transparent); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); opacity: 0; animation: fadeUp 0.9s var(--ease) 1.35s forwards; }
.hero__panel-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.hero__panel h3 { font: 700 17px/1.2 var(--f-display); letter-spacing: -0.02em; }
.hero__panel .price b { font-size: 15px; }
.hero__panel .price s { color: color-mix(in srgb, var(--hi) 55%, transparent); }
.hero__panel .tag3d { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 6px 10px; border-radius: 99px; background: var(--ha); color: var(--h1); }
.hero__panel .tag3d svg { width: 14px; height: 14px; }
.hero__variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.hv { position: relative; display: grid; gap: 8px; justify-items: center; padding: 10px 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--hi) 6%, transparent); border: 1px solid transparent; overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.hv i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hi) 30%, transparent); transition: transform 0.35s var(--ease); }
.hv:hover i { transform: scale(1.12); }
.hv.is-on { border-color: var(--ha); background: color-mix(in srgb, var(--ha) 14%, transparent); }
.hv .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ha); }
.hv.is-on .bar.run { animation: bar var(--cycle, 6s) linear forwards; }
@keyframes bar { to { width: 100%; } }
.hero__hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: color-mix(in srgb, var(--hi) 65%, transparent); margin-bottom: 12px; }
.hero__hint svg { width: 16px; height: 16px; animation: spin 4s linear infinite; }
.hero__panel .btn { height: 46px; }
.hero__panel .btn--accent { --b-bg: var(--ha); --b-fg: var(--h1); width: 100%; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 18px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--hi) 55%, transparent); }
.hero__scroll i { width: 1.5px; height: 38px; background: linear-gradient(var(--ha), transparent); animation: scrollLine 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__index { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 24px); font: 600 12px/1 var(--f-display); letter-spacing: 0.1em; color: color-mix(in srgb, var(--hi) 60%, transparent); display: flex; gap: 10px; align-items: center; }
.hero__index b { color: var(--hi); font-size: 22px; letter-spacing: -0.02em; }
.hero__vname { position: absolute; z-index: 3; left: 64%; bottom: 22%; translate: -50% 0; font: 800 12px/1 var(--f-display); letter-spacing: 0.4em; text-transform: uppercase; color: color-mix(in srgb, var(--hi) 55%, transparent); transition: opacity 0.4s; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; max-height: none; }
  .hero__stage { inset: calc(var(--header-h) - 10px) 0 auto 0; height: 50svh; min-height: 330px; }
  .hero__giant { top: calc(var(--header-h) + 25svh); }
  .hero__loader { left: 50%; top: calc(var(--header-h) + 25svh); }
  .hero__vname { left: 50%; top: calc(var(--header-h) + 47svh); bottom: auto; }
  .hero__ui { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + max(50svh, 330px) - 8px); gap: 18px; }
  .hero__copy { align-self: start; }
  .hero__panel { justify-self: stretch; width: 100%; }
  .hero__stats { margin-top: 26px; }
  .hero__scroll, .hero__index { display: none; }
  .hero__fallback { right: 50%; translate: 50% 0; top: calc(var(--header-h) + 10px); width: min(70vw, 340px); }
}

/* ---------------- Danh mục bento ---------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 15vw, 220px); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2vw, 24px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.9); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.6)); }
.tile:hover img { transform: scale(1.08) rotate(0.6deg); filter: saturate(1.1); }
.tile__top { display: flex; justify-content: space-between; align-items: start; }
.tile__count { font: 600 11px/1 var(--f-display); letter-spacing: 0.12em; padding: 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); }
.tile__go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transform: rotate(-45deg) scale(0.85); transition: transform 0.5s var(--ease), background 0.3s; }
.tile:hover .tile__go { transform: rotate(0) scale(1); background: var(--accent); }
.tile h3 { font: 800 clamp(24px, 3vw, 44px)/0.95 var(--f-display); letter-spacing: -0.04em; }
.tile p { font-size: 13px; opacity: 0.8; margin-top: 6px; }
.tile--a { grid-column: span 5; grid-row: span 2; }
.tile--b { grid-column: span 4; grid-row: span 1; }
.tile--c { grid-column: span 3; grid-row: span 1; }
.tile--d { grid-column: span 3; grid-row: span 1; }
.tile--e { grid-column: span 4; grid-row: span 1; }
.tile--sale { background: var(--hot); grid-column: 1 / -1; }
.tile--sale::after { display: none; }
.tile--sale h3 { font-size: clamp(30px, 3.6vw, 56px); }
.tile--sale .tile__go { background: var(--ink); color: #fff; }
.tile--sale .big { position: absolute; right: -10px; bottom: -34px; z-index: -1; font: 900 clamp(100px, 13vw, 190px)/1 var(--f-display); letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.16); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
  .tile--a { grid-column: span 2; grid-row: span 2; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 1; }
  .tile--sale { grid-column: span 2; }
}

/* ---------------- Tabs lọc nhanh ---------------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--bg-2); position: relative; flex-wrap: wrap; }
.tabs button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color 0.3s; }
.tabs button.is-on { color: #fff; }
.tabs .tabs__pill { position: absolute; z-index: 0; top: 5px; height: calc(100% - 10px); border-radius: 99px; background: var(--ink); transition: left 0.45s var(--ease), width 0.45s var(--ease); }

/* ---------------- Lưới sản phẩm & THẺ SẢN PHẨM ---------------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
@media (max-width: 1200px) { .grid { --cols: 3 !important; } }
@media (max-width: 760px) { .grid { --cols: 2 !important; gap: 10px; } }

.pcard { perspective: 1000px; }
/* Nghiêng 3D: JS đặt transform trực tiếp (chỉ ghép lớp, không vẽ lại) */
.pcard__inner { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); padding: 8px; box-shadow: var(--shadow); transform: rotateX(0deg) rotateY(0deg); transform-style: preserve-3d; transition: transform 0.7s var(--ease); will-change: transform; }
.pcard.is-hot .pcard__inner { transition: transform 0.18s linear; }
/* Bóng đổ khi hover: đổi opacity của lớp riêng thay vì đổi box-shadow (không phải vẽ lại cả card) */
.pcard__inner::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 30px 60px -30px rgba(14, 14, 16, 0.45); opacity: 0; transition: opacity 0.4s; pointer-events: none; will-change: opacity; }
.pcard.is-hot .pcard__inner::after { opacity: 1; }
.pcard__top { position: relative; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--card-bg, var(--bg-2)); isolation: isolate; }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); backface-visibility: hidden; }
.pcard.is-hot .pcard__img { transform: scale(1.06); }
/* Lộ ảnh thứ 2: tâm vòng tròn cố định tại điểm chuột đi vào (không dời giữa chừng → không khựng) */
.pcard__alt { z-index: 1; clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); transition: clip-path 0.45s cubic-bezier(0.33, 1, 0.68, 1), transform 1.1s var(--ease); }
.pcard.is-hot .pcard__alt { clip-path: circle(142% at var(--ox, 50%) var(--oy, 50%)); transform: scale(1.03); transition: clip-path 0.6s cubic-bezier(0.33, 1, 0.68, 1), transform 1.1s var(--ease); }
/* Ánh sáng lướt: dịch chuyển bằng transform thay vì vẽ lại gradient */
.pcard__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.4s; }
.pcard__glare i { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 32%); will-change: transform; }
.pcard.is-hot .pcard__glare { opacity: 1; }
.pcard__idx { position: absolute; z-index: 3; top: 12px; left: 14px; font: 600 10.5px/1 var(--f-display); letter-spacing: 0.12em; color: #fff; mix-blend-mode: difference; }
.pcard__soldout { position: absolute; z-index: 3; inset: auto 12px 12px; padding: 8px; text-align: center; border-radius: 10px; background: rgba(14, 14, 16, 0.82); color: #fff; font-size: 12px; font-weight: 600; }
.pcard__wish { position: absolute; z-index: 4; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--ink); transform: translateZ(30px); transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.pcard__wish svg { width: 18px; height: 18px; }
.pcard__wish:hover { transform: translateZ(30px) scale(1.1); }
.pcard__wish.is-on { background: var(--hot); color: #fff; }
.pcard__wish.is-on svg { fill: currentColor; }
.pcard__wish.pop { animation: heartPop 0.5s var(--ease); }
@keyframes heartPop { 40% { transform: translateZ(30px) scale(1.35); } }
/* Sticker tròn chữ chạy */
.sticker { position: absolute; z-index: 4; right: 10px; bottom: -26px; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); transform: translateZ(40px) rotate(-8deg); transition: transform 0.5s var(--ease), opacity 0.4s; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.sticker text { font: 700 10.5px/1 var(--f-display); letter-spacing: 0.05em; fill: currentColor; }
.sticker b { font: 800 15px/1 var(--f-display); letter-spacing: -0.03em; }
.sticker.is-sale { background: var(--hot); color: #fff; }
.sticker.is-new { background: var(--accent); }
.sticker.is-best { background: var(--ink); color: var(--accent); }
.sticker.is-3d { background: var(--violet); color: #fff; }
.pcard:hover .sticker { transform: translateZ(40px) rotate(14deg) scale(0.6); opacity: 0; }
/* Thêm nhanh */
.pcard__quick { position: absolute; z-index: 5; left: 8px; right: 8px; bottom: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35); transform: translateY(24px) translateZ(20px); opacity: 0; visibility: hidden; transition: transform 0.5s var(--ease), opacity 0.3s, visibility 0s linear 0.5s; }
.pcard__top:hover .pcard__quick, .pcard__quick:focus-within { transform: translateY(0) translateZ(20px); opacity: 1; visibility: visible; transition-delay: 0s; }
.pcard__quick-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.qa-sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.qa-sizes button { min-width: 34px; height: 30px; padding: 0 7px; border-radius: 8px; font-size: 12px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, color 0.2s, transform 0.2s; }
.qa-sizes button:hover:not(:disabled) { background: var(--ink); color: #fff; transform: translateY(-2px); }
.qa-sizes button:disabled { color: #b5b3ad; text-decoration: line-through; background: transparent; }
.qa-one { width: 100%; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; transition: background 0.3s, color 0.3s; }
.qa-one:hover { background: var(--accent); color: var(--ink); }
.pcard__plus { display: none; position: absolute; z-index: 5; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
@media (hover: none), (pointer: coarse) {
  .pcard__quick { display: none; }
  .pcard__plus { display: grid; }
  .sticker { width: 60px; height: 60px; bottom: -20px; }
  .sticker text { font-size: 10px; }
  .sticker b { font-size: 12.5px; }
}
/* Phần “vé” thông tin */
.pcard__info { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 16px 8px 8px; border-top: 1.5px dashed var(--line); }
.pcard__info::before, .pcard__info::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--notch); }
.pcard__info::before { left: -18px; }
.pcard__info::after { right: -18px; }
.pcard__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); padding-right: 64px; }
.pcard__meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__rate { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; }
.pcard__rate svg { width: 12px; height: 12px; color: #f5a524; }
.pcard__name { font: 700 clamp(13.5px, 1.1vw, 16px)/1.25 var(--f-display); letter-spacing: -0.02em; }
.pcard__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.pcard__dots { display: flex; gap: 4px; flex: none; }
.pcard__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pcard__sold { font-size: 11.5px; color: var(--muted); }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price b { font-weight: 700; font-size: 15px; }
.price s { color: var(--muted); font-size: 12.5px; }
.price em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--hot); background: color-mix(in srgb, var(--hot) 12%, transparent); padding: 2px 6px; border-radius: 6px; }
.price--lg b { font: 800 clamp(24px, 2.4vw, 32px)/1 var(--f-display); letter-spacing: -0.03em; }
.price--lg s { font-size: 15px; }
.price--lg em { font-size: 13px; }
@media (max-width: 760px) {
  .pcard__inner { padding: 6px; border-radius: 18px; }
  .pcard__media { border-radius: 13px; }
  .pcard__info { padding: 14px 4px 4px; }
  .pcard__info::before { left: -15px; } .pcard__info::after { right: -15px; }
  .pcard__meta { padding-right: 0; }
  .pcard__meta > span:first-child { display: none; }
  .price b { font-size: 14px; }
  .pcard__wish { width: 34px; height: 34px; top: 8px; right: 8px; }
}
/* Vào cảnh khi cuộn */
[data-reveal] { opacity: 0; transform: translateY(46px) rotate(1.5deg); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.pcard[data-reveal].is-in { transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms); }
/* Khung ảnh “mở màn” 1 lần rồi bỏ clip-path hẳn (giữ clip-path thường trực làm hover nặng hơn) */
.pcard[data-reveal]:not(.is-in) .pcard__media { clip-path: inset(100% 0 0 0 round 16px); }
.pcard[data-reveal].is-in .pcard__media { animation: mediaIn 1.1s var(--ease-io) backwards; animation-delay: calc(var(--d, 0) * 70ms + 100ms); }
@keyframes mediaIn { from { clip-path: inset(100% 0 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }

/* Card giày 3D: ảnh chụp từ mô hình + nhãn “Xoay 360°” */
.pcard--3d .pcard__idx { color: #fff; mix-blend-mode: normal; opacity: 0.75; }
.pcard__3d { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.pcard__3d svg { width: 14px; height: 14px; animation: spin 5s linear infinite; }

/* ---------------- Lookbook cuộn ngang ---------------- */
.look { position: relative; background: var(--ink); color: var(--bg); --notch: var(--ink); }
.look__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.look__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.look__head .eyebrow { color: rgba(255, 255, 255, 0.6); }
.look__head .sec-title em { color: var(--accent); }
.look__track { display: flex; gap: 22px; padding-inline: var(--gutter); will-change: transform; }
.look__item { position: relative; flex: none; width: clamp(260px, 30vw, 420px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.look__item:nth-child(even) { margin-top: 60px; }
.look__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.look__item:hover img { transform: scale(1.02); }
.look__item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7)); }
.look__num { position: absolute; top: 14px; left: 18px; font: 900 64px/1 var(--f-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8); }
.look__cap { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.look__cap h3 { font: 800 24px/1 var(--f-display); letter-spacing: -0.03em; }
.look__cap p { font-size: 13px; opacity: 0.8; margin-top: 6px; }
.look__cap .tile__go { flex: none; }
.look__item:hover .tile__go { transform: rotate(0) scale(1); background: var(--accent); }
.look__progress { margin: 34px var(--gutter) 0; height: 2px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; overflow: hidden; }
.look__progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.look.is-static .look__pin { position: relative; height: auto; padding-block: 72px; }
.look.is-static .look__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.look.is-static .look__track::-webkit-scrollbar { display: none; }
.look.is-static .look__item { scroll-snap-align: start; width: 74vw; max-width: 360px; }
.look.is-static .look__item:nth-child(even) { margin-top: 0; }
.look.is-static .look__progress { display: none; }

/* ---------------- Flash sale ---------------- */
.flash { display: grid; grid-template-columns: minmax(260px, 0.8fr) 2.2fr; gap: 22px; align-items: stretch; }
.flash__intro { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--hot); color: #fff; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; isolation: isolate; }
.flash__intro::before { content: 'SALE'; position: absolute; right: -16px; bottom: -40px; z-index: -1; font: 900 160px/1 var(--f-display); letter-spacing: -0.07em; color: rgba(255, 255, 255, 0.14); }
.flash__intro h2 { font: 800 clamp(30px, 3.4vw, 48px)/0.95 var(--f-display); letter-spacing: -0.04em; }
.flash__intro .eyebrow { color: rgba(255,255,255,.8); }
.countdown { display: flex; gap: 8px; }
.countdown div { display: grid; justify-items: center; min-width: 62px; padding: 10px 6px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.countdown b { font: 800 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }
.flash__intro .btn { --b-bg: #fff; --b-fg: var(--ink); align-self: start; }
.flash__intro .btn::before { background: var(--ink); }
.flash__intro .btn:hover { color: #fff; }
.flash .grid { --cols: 3; }
@media (max-width: 1000px) { .flash { grid-template-columns: 1fr; } }

/* ---------------- Carousel ngang ---------------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 30px; margin: -6px -4px 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.3s, color 0.3s; }
.rail-nav button:hover { background: var(--ink); color: #fff; }
@media (max-width: 1200px) { .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 760px) { .rail { grid-auto-columns: 62%; gap: 12px; } .rail-nav { display: none; } }

/* ---------------- Shop the look (hotspot) ---------------- */
.stl { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.stl__img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.stl__img img { width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; z-index: 2; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--ease); }
.hotspot::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid #fff; animation: ping 2s var(--ease) infinite; }
.hotspot span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: background 0.3s; }
.hotspot:hover, .hotspot.is-on { transform: scale(1.15); }
.hotspot.is-on span { background: var(--hot); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.stl__list { display: grid; gap: 12px; margin-top: 26px; }
.stl__item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.stl__item.is-on { transform: translateX(10px); box-shadow: 0 0 0 2px var(--ink); }
.stl__item img { width: 76px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--card-bg); }
.stl__item h4 { font: 700 15px/1.2 var(--f-display); letter-spacing: -0.02em; }
.stl__item .muted { font-size: 12.5px; }
.stl__total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .stl { grid-template-columns: 1fr; } }

/* ---------------- USP ---------------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.usp > div { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; transition: transform 0.4s var(--ease); }
.usp > div:hover { transform: translateY(-6px); }
.usp .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); }
.usp h4 { font: 700 16px/1.2 var(--f-display); letter-spacing: -0.02em; }
.usp p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .usp { grid-template-columns: repeat(2, 1fr); } .usp > div { padding: 16px; } }

/* ---------------- Reviews marquee ---------------- */
.revs { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.revs__row { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; padding-block: 6px; }
.revs:hover .revs__row { animation-play-state: paused; }
.rev { width: 340px; flex: none; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 10px; }
.rev p { font-size: 14px; }
.rev footer { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.rev footer b { color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--f-display); background: var(--accent); flex: none; }
.stars { display: inline-flex; gap: 1px; color: #d9d6cf; }
.stars i.on { color: #f5a524; }
.stars svg { width: 14px; height: 14px; }

/* ---------------- Newsletter ---------------- */
.news { position: relative; overflow: hidden; border-radius: 32px; background: var(--violet); color: #fff; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; isolation: isolate; }
.news::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; border: 1.5px solid rgba(198, 255, 61, 0.5); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.news h2 { font: 800 clamp(28px, 3.8vw, 52px)/1 var(--f-display); letter-spacing: -0.04em; }
.news h2 em { font-style: normal; color: var(--accent); }
.news p { margin-top: 12px; opacity: 0.85; }
.news form { display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.news input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; outline: 0; background: transparent; color: #fff; }
.news input::placeholder { color: rgba(255, 255, 255, 0.65); }
.news small { display: block; margin-top: 10px; opacity: 0.7; font-size: 12px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #d8d6d0; padding-top: 72px; overflow: hidden; --notch: var(--ink); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h4 { font: 700 13px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot a:hover { color: var(--accent); }
.foot .logo { color: #fff; justify-self: start; }
.foot__about p { margin: 16px 0 20px; font-size: 14px; max-width: 340px; color: #a9a7a1; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chips span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.foot__contact li { display: flex; gap: 10px; align-items: start; }
.foot__contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.foot__giant { font: 900 clamp(90px, 22vw, 360px)/0.78 var(--f-display); letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.18); text-align: center; margin-top: 60px; user-select: none; white-space: nowrap; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12.5px; color: #8e8c86; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: span 2; } }

/* ---------------- Drawer giỏ hàng / menu / tìm kiếm ---------------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.4s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 8px; right: 8px; bottom: 8px; width: min(440px, calc(100% - 16px)); display: flex; flex-direction: column; background: var(--bg); border-radius: 26px; transform: translateX(calc(100% + 20px)); transition: transform 0.55s var(--ease-io); overflow: hidden; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 12px 22px; }
.drawer__head h2 { font: 800 22px/1 var(--f-display); letter-spacing: -0.03em; }
.drawer__head h2 sup { font-size: 12px; color: var(--muted); margin-left: 4px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 18px 18px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.drawer__foot .row { display: flex; justify-content: space-between; font-size: 14px; }
.drawer__foot .row.total { font: 800 18px/1.2 var(--f-display); letter-spacing: -0.02em; }
.drawer__foot .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 4px; }
.drawer__foot .note { font-size: 12px; color: var(--muted); text-align: center; }
.shipbar { padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 13px; margin: 0 18px 8px; }
.drawer .shipbar { margin: 0 18px 10px; }
.shipbar__track { position: relative; height: 6px; margin: 12px 8px 4px 0; border-radius: 6px; background: var(--bg-2); }
.shipbar__track i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--hot)); transition: width 0.8s var(--ease); }
.shipbar.is-done .shipbar__track i { background: var(--ok); }
.shipbar__truck { position: absolute; top: 50%; translate: -50% -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: left 0.8s var(--ease); }
.shipbar__truck svg { width: 15px; height: 15px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.line.is-removing { animation: lineOut 0.35s var(--ease-io) forwards; }
@keyframes lineOut { to { opacity: 0; transform: translateX(40px); } }
.line__img { position: relative; width: 84px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--card-bg); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__info { display: grid; gap: 3px; align-content: start; min-width: 0; }
.line__name { font: 700 14.5px/1.25 var(--f-display); letter-spacing: -0.02em; }
.line__var { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.line__var i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.line__price { font-size: 13px; }
.line__price s { color: var(--muted); font-size: 12px; }
.line__ctrl { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.line__rm { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); }
.line__rm:hover { color: var(--err); }
.line__rm svg { width: 15px; height: 15px; }
.line__total { font-weight: 700; font-size: 14px; white-space: nowrap; }
.line__qty { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 34px; height: 36px; display: grid; place-items: center; border-radius: 99px; }
.qty button:hover:not(:disabled) { background: var(--bg-2); }
.qty button:disabled { opacity: 0.3; }
.qty span, .qty input { min-width: 28px; width: 36px; text-align: center; font-weight: 600; font-size: 14px; border: 0; background: transparent; outline: 0; }
.qty--lg { height: 52px; }
.qty--lg button { width: 46px; height: 52px; }

/* menu mobile */
.mmenu .drawer__panel { left: 8px; right: auto; transform: translateX(calc(-100% - 20px)); background: var(--ink); color: #fff; }
.mmenu.is-open .drawer__panel { transform: none; }
.mmenu nav { padding: 10px 22px; display: grid; }
.mmenu nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 800 28px/1 var(--f-display); letter-spacing: -0.04em; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; transform: translateX(-20px); transition: opacity 0.5s, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 50ms + 150ms); }
.mmenu nav a small { font: 500 12px/1 var(--f-body); letter-spacing: 0.1em; opacity: 0.5; text-transform: uppercase; }
.mmenu.is-open nav a { opacity: 1; transform: none; }
.mmenu nav a.is-hot { color: var(--hot); }
.mmenu__links { padding: 18px 22px; display: grid; gap: 12px; font-size: 14px; color: #bdbbb5; }
.mmenu__links a { display: flex; align-items: center; gap: 10px; }
.mmenu__links svg { width: 18px; height: 18px; }

/* tìm kiếm */
.search { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.search.is-open { visibility: visible; }
.search__scrim { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.5); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s; }
.search.is-open .search__scrim { opacity: 1; }
.search__panel { position: relative; background: var(--bg); border-radius: 0 0 28px 28px; padding: 22px 0 28px; transform: translateY(-105%); transition: transform 0.55s var(--ease-io); max-height: 88vh; overflow-y: auto; }
.search.is-open .search__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.search__bar svg { width: 26px; height: 26px; flex: none; }
.search__bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 700 clamp(22px, 3.4vw, 40px)/1.2 var(--f-display); letter-spacing: -0.03em; padding: 8px 0; }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip svg { width: 14px; height: 14px; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.sres { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: var(--surface); transition: transform 0.3s var(--ease); }
.sres:hover { transform: translateY(-3px); }
.sres__img { position: relative; width: 64px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--card-bg); }
.sres__img img { width: 100%; height: 100%; object-fit: cover; }
.sres h4 { font: 700 13.5px/1.25 var(--f-display); letter-spacing: -0.02em; }
.sres mark { background: var(--accent); }
.sres .price b { font-size: 13px; }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--bg); border-radius: 26px; padding: 28px; opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.35s, transform 0.45s var(--ease); overscroll-behavior: contain; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--bg); }
.modal__title { font: 800 22px/1.15 var(--f-display); letter-spacing: -0.03em; margin-bottom: 14px; padding-right: 40px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.modal--sm .modal__panel { width: min(440px, 100%); }
.modal--wide .modal__panel { width: min(760px, 100%); }
.modal--qv .modal__panel { width: min(900px, 100%); padding: 14px; }
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qv__media { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--card-bg); }
.qv__media img { width: 100%; height: 100%; object-fit: cover; }
.qv__info { display: grid; gap: 14px; align-content: start; padding: 18px 10px 10px 0; }
.qv__name { font: 800 28px/1.05 var(--f-display); letter-spacing: -0.04em; }
.rate-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 720px) {
  .qv { grid-template-columns: 1fr; }
  .qv__media { aspect-ratio: 1; }
  .qv__info { padding: 0 6px 6px; }
  .modal { align-items: end; padding: 0; }
  .modal__panel { border-radius: 26px 26px 0 0; width: 100%; max-height: 92svh; transform: translateY(100%); }
  .modal--qv .modal__panel { padding: 10px; }
}

/* ---------------- Toast ---------------- */
.toasts { position: fixed; z-index: 150; left: 50%; bottom: 22px; translate: -50% 0; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); opacity: 0; transform: translateY(20px) scale(0.96); transition: opacity 0.35s, transform 0.45s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast__icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); flex: none; }
.toast__icon svg { width: 16px; height: 16px; }
.toast--err .toast__icon { background: var(--hot); color: #fff; }
.toast__msg { flex: 1; }
.toast__act { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); font-weight: 600; font-size: 13px; white-space: nowrap; }
.toast__act:hover { background: var(--accent); color: var(--ink); }

/* ---------------- Con trỏ tuỳ biến ---------------- */
.cursor { position: fixed; z-index: 200; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; display: grid; place-items: center; transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s, opacity 0.3s; opacity: 0; }
.cursor span { font: 700 11px/1 var(--f-display); letter-spacing: 0.06em; color: var(--ink); opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------------- Bay vào giỏ ---------------- */
.fly-ghost { position: fixed; z-index: 180; pointer-events: none; background-size: cover; background-position: center; border-radius: 18px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4); }
.confetti { position: fixed; inset: 0; z-index: 170; pointer-events: none; width: 100%; height: 100%; }

/* ---------------- Hỗ trợ nổi ---------------- */
.fab { position: fixed; z-index: 55; right: 18px; bottom: 18px; display: grid; justify-items: end; gap: 10px; transition: bottom 0.35s var(--ease); }
body.has-buybar .fab { bottom: 92px; }
.fab__main { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.35s var(--ease); }
.fab__main:hover { transform: scale(1.08) rotate(-8deg); }
.fab__main svg { width: 24px; height: 24px; }
.fab__menu { display: grid; gap: 8px; justify-items: end; }
.fab__menu a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.fab__menu a svg { width: 18px; height: 18px; }
.fab.is-open .fab__menu a { opacity: 1; transform: none; pointer-events: auto; }

/* ---------------- Breadcrumb ---------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }

/* ---------------- Trang danh sách (Shop) ---------------- */
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-head h1 { font: 800 clamp(34px, 5vw, 72px)/0.95 var(--f-display); letter-spacing: -0.05em; }
.shop-head h1 sup { font: 600 14px/1 var(--f-body); letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: 6px; }
.shop-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 22px; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats .chip { flex: none; }
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar__left { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.select { position: relative; }
.select select { appearance: none; height: 42px; padding: 0 40px 0 16px; border-radius: 99px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.select svg { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; width: 16px; height: 16px; }
.density { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--bg-2); }
.density button { width: 36px; height: 34px; border-radius: 99px; display: grid; place-items: center; color: var(--muted); }
.density button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.filters { position: sticky; top: calc(var(--header-h) - 34px + 16px); display: grid; gap: 4px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.filters__head { display: none; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup h4 { font: 700 13px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; display: flex; justify-content: space-between; }
.fgroup .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup .chip { height: 34px; padding: 0 12px; font-size: 12.5px; }
.fcolor { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; transition: transform 0.25s var(--ease); }
.fcolor.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.fcolor:hover { transform: scale(1.1); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: pointer; flex: none; margin: 0; background: var(--surface); transition: background 0.2s; }
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type='radio'] { border-radius: 50%; }
.check input[type='radio']:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters .chip { height: 32px; font-size: 12.5px; background: var(--surface); }
.load-more { display: grid; justify-items: center; gap: 12px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.load-more .bar { width: 200px; height: 3px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.load-more .bar i { display: block; height: 100%; background: var(--ink); }
.filter-btn { display: none; }
@media (max-width: 980px) {
  .shop { grid-template-columns: 1fr; }
  .filter-btn { display: inline-flex; }
  .filters { position: fixed; z-index: 92; inset: auto 0 0 0; top: auto; max-height: 86svh; background: var(--bg); border-radius: 26px 26px 0 0; padding: 0 20px 100px; transform: translateY(105%); transition: transform 0.5s var(--ease-io); box-shadow: 0 -20px 60px rgba(0,0,0,.25); }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 18px 0 8px; }
  .filters__head h3 { font: 800 20px/1 var(--f-display); }
  .filters__apply { position: fixed; left: 20px; right: 20px; bottom: 18px; }
}
.filters__apply { display: none; }
@media (max-width: 980px) { .filters__apply { display: flex; } }
.fscrim { position: fixed; inset: 0; z-index: 91; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.fscrim.is-open { opacity: 1; visibility: visible; }

/* ---------------- Trang sản phẩm ---------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) - 20px); display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; }
.gallery__thumbs button { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--card-bg); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.6; transition: opacity 0.3s, box-shadow 0.3s; }
.gallery__thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs .t3d { position: absolute; right: 4px; bottom: 4px; padding: 3px 6px; border-radius: 6px; background: var(--accent); color: var(--ink); font: 800 10px/1 var(--f-display); }
/* Ảnh chụp hiện trong lúc tải 3D, mờ dần khi mô hình sẵn sàng */
.gallery__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease); }
.gallery__main.is-3d.is-ready .gallery__poster { opacity: 0; pointer-events: none; }
.gallery__main .viewer { z-index: 1; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--card-bg); cursor: zoom-in; touch-action: pan-y; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), opacity 0.4s; }
.gallery__main.is-zoom img { transform: scale(2); transition: transform 0.15s linear; }
.gallery__main.is-3d { cursor: grab; background: radial-gradient(70% 60% at 50% 45%, #2e2370 0%, #15132b 60%, #0b0b12 100%); }
.gallery__main .viewer { position: absolute; inset: 0; }
.gallery__main .viewer canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.gallery__badge { position: absolute; z-index: 3; left: 14px; top: 14px; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; }
.gallery__badge svg { width: 15px; height: 15px; }
.gallery__dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; translate: -50% 0; display: none; gap: 6px; }
.gallery__dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .3s; }
.gallery__dots i.is-on { width: 22px; background: #fff; }
.gallery__progress { position: absolute; z-index: 3; inset: auto 20% 50% 20%; translate: 0 50%; text-align: center; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.gallery__progress .bar { height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.gallery__progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.pinfo { display: grid; gap: 18px; }
.pinfo__title { font: 800 clamp(30px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -0.045em; }
.pinfo__top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.pinfo .rate-line a { text-decoration: underline; text-underline-offset: 3px; }
.save-note { font-size: 13px; color: var(--ok); font-weight: 600; margin-top: -8px; }
.opt { display: grid; gap: 10px; }
.opt__label { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.opt__label b { color: var(--ink); }
.opt__label button { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.opt__err { color: var(--err); font-size: 13px; font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.size { position: relative; height: 48px; border-radius: 12px; font-weight: 600; font-size: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s; }
.size:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.size.is-low::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); }
.size.is-out { color: #b9b7b1; background: transparent; background-image: linear-gradient(to top right, transparent calc(50% - 0.75px), var(--line) calc(50% - 0.75px), var(--line) calc(50% + 0.75px), transparent calc(50% + 0.75px)); }
.sizes:has(.size[data-size='F']) { grid-template-columns: 120px; }
.shake { animation: shake 0.5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.stock-note { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.stock-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.stock-note.is-low { color: var(--hot); }
.stock-note.is-low i { background: var(--hot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hot) 20%, transparent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.buy { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
.buy .btn--lg { height: 54px; }
.wish-lg { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.3s, color 0.3s; }
.wish-lg.is-on { background: var(--hot); color: #fff; box-shadow: none; }
.wish-lg.is-on svg { fill: currentColor; }
.buy-now { margin-top: -6px; }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.perks div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); font-size: 12.5px; line-height: 1.35; }
.perks svg { flex: none; width: 22px; height: 22px; }
.perks b { display: block; font-size: 13px; }
.ship-est { padding: 16px; border-radius: 18px; background: var(--surface); display: grid; gap: 12px; }
.ship-est__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.ship-est__head b { display: inline-flex; align-items: center; gap: 6px; }
.ship-est__head svg { width: 18px; height: 18px; }
.ship-est select { height: 38px; border-radius: 99px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 32px 0 14px; background: var(--bg) 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='%230e0e10' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 13px; font-weight: 600; max-width: 220px; }
.ship-est ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ship-est li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.ship-est li b { font-weight: 600; }
.ship-est li span { color: var(--muted); font-size: 12px; }
.ship-est li .fee { text-align: right; font-weight: 700; }
.ship-est li .fee s { color: var(--muted); font-weight: 400; margin-right: 4px; font-size: 12px; }
.ship-est li.is-na { opacity: 0.5; }
.free { color: var(--ok); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font: 700 15px/1.2 var(--f-display); letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { transition: transform 0.35s var(--ease); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; }
.acc .acc__body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.buybar { position: fixed; z-index: 58; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: none; grid-template-columns: 1fr auto; align-items: center; gap: 10px; transform: translateY(110%); transition: transform 0.45s var(--ease); }
.buybar.is-on { transform: none; }
.buybar__name { font: 700 13px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .price b { font-size: 14px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
  .gallery__thumbs { display: none; }
  .gallery__main { border-radius: 0; aspect-ratio: 1 / 1.1; }
  .gallery__dots { display: flex; }
  .buybar { display: grid; }
  .perks { grid-template-columns: 1fr 1fr; }
}
/* Đánh giá */
.reviews { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.rsum { padding: 24px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 10px); }
.rsum__score { font: 800 64px/1 var(--f-display); letter-spacing: -0.05em; }
.rbar { display: grid; grid-template-columns: 34px 1fr 36px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rbar div { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.rbar i { display: block; height: 100%; background: #f5a524; border-radius: inherit; }
.rlist { display: grid; gap: 12px; }
.ritem { padding: 20px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; }
.ritem header { display: flex; align-items: center; gap: 12px; }
.ritem header div { display: grid; font-size: 12.5px; color: var(--muted); }
.ritem header b { color: var(--ink); font-size: 14px; }
.ritem .verified { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--ok); font-weight: 600; }
.ritem .verified svg { width: 15px; height: 15px; }
.ritem .meta { font-size: 12.5px; color: var(--muted); }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { cursor: pointer; color: #d9d6cf; }
.star-input label svg { width: 30px; height: 30px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } .rsum { position: static; } }

/* ---------------- Form ---------------- */
.field { position: relative; }
.field input, .field select, .field textarea { width: 100%; height: 56px; padding: 22px 16px 8px; border-radius: 14px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); outline: 0; font-size: 15px; transition: box-shadow 0.25s; appearance: none; }
.field textarea { height: 96px; resize: vertical; padding-top: 26px; }
.field label { position: absolute; left: 17px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform 0.25s var(--ease), font-size 0.25s, color 0.25s, top .25s; transform-origin: left; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label, .field.has-value label { top: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.field .req { color: var(--hot); }
.field__err { display: none; margin: 6px 4px 0; font-size: 12.5px; color: var(--err); font-weight: 500; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--err); background: color-mix(in srgb, var(--err) 4%, var(--surface)); }
.field.is-invalid .field__err { display: block; }
.field.is-valid input { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 60%, transparent); }
.field__ok { position: absolute; right: 14px; top: 18px; color: var(--ok); opacity: 0; transition: opacity .25s; }
.field.is-valid .field__ok { opacity: 1; }
.field.is-disabled { opacity: 0.55; }
.field--cb input { padding-right: 40px; cursor: pointer; }
.cb__chev { position: absolute; right: 14px; top: 18px; pointer-events: none; transition: transform 0.3s var(--ease); }
.field.is-open .cb__chev { transform: rotate(180deg); }
.cb__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border-radius: 16px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--line); overscroll-behavior: contain; }
.cb__list li { padding: 10px 12px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.cb__list li.is-active { background: var(--bg-2); }
.cb__list li.is-sel { font-weight: 700; }
.cb__list li.is-sel::after { content: ' ✓'; color: var(--ok); }
.cb__list mark { background: var(--accent); border-radius: 3px; }
.cb__empty { color: var(--muted); cursor: default !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hint { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hint svg { width: 15px; height: 15px; flex: none; }

/* ---------------- Giỏ hàng & Checkout ---------------- */
.steps { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; }
.steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.steps .is-done i { background: var(--ink); color: #fff; box-shadow: none; }
.steps .is-on { color: var(--ink); }
.steps .is-on i { background: var(--accent); box-shadow: none; color: var(--ink); }
.steps .sep { width: 34px; height: 1.5px; background: var(--line); }
.page-title { font: 800 clamp(32px, 4.6vw, 64px)/0.98 var(--f-display); letter-spacing: -0.05em; margin-bottom: 24px; }
.page-title sup { font: 600 14px/1 var(--f-body); letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
.card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card__title { display: flex; align-items: center; gap: 12px; font: 800 19px/1.2 var(--f-display); letter-spacing: -0.03em; margin-bottom: 18px; }
.card__title .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-size: 13px; flex: none; }
.card__title small { margin-left: auto; font: 500 13px/1 var(--f-body); letter-spacing: 0; color: var(--muted); }
.card__title small a { text-decoration: underline; color: var(--ink); }
.summary { position: sticky; top: calc(var(--header-h) - 20px); }
.summary .rows { display: grid; gap: 10px; font-size: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; }
.summary .row span:first-child { color: var(--muted); }
.summary .row.disc span:last-child { color: var(--ok); font-weight: 600; }
.summary .row.total { padding-top: 14px; margin-top: 4px; border-top: 1.5px dashed var(--line); font: 800 22px/1.2 var(--f-display); letter-spacing: -0.03em; align-items: baseline; }
.summary .row.total span:first-child { color: var(--ink); font-size: 16px; }
.summary .vat { text-align: right; font-size: 12px; color: var(--muted); margin-top: -6px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 99px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg); outline: 0; text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.coupon input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.coupon .btn { height: 46px; }
.coupon-msg { font-size: 12.5px; margin-top: 8px; }
.coupon-msg.err { color: var(--err); }
.coupon-msg.ok { color: var(--ok); }
.vouchers { display: grid; gap: 8px; margin-top: 12px; }
.voucher { position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--bg); text-align: left; transition: box-shadow 0.25s; }
.voucher:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.voucher .vic { height: 54px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); }
.voucher .vic svg { width: 22px; height: 22px; }
.voucher b { font-size: 13px; letter-spacing: 0.04em; }
.voucher span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.voucher em { font-style: normal; font-size: 12px; font-weight: 700; }
.voucher.is-on { box-shadow: inset 0 0 0 2px var(--ok); }
.voucher.is-off { opacity: 0.5; }
.applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); font-size: 13px; font-weight: 600; }
.applied.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.applied button { text-decoration: underline; color: inherit; font-size: 12.5px; }
.trust { display: grid; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.trust div { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--ink); }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; transition: box-shadow 0.25s, background 0.25s; }
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); display: grid; place-items: center; transition: box-shadow 0.25s; }
.choice .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 0.3s var(--ease); }
.choice:has(> input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.choice:has(> input:checked) .radio { box-shadow: inset 0 0 0 2px var(--ink); }
.choice:has(> input:checked) .radio::after { transform: scale(1); }
.choice:has(> input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.choice:has(> input:disabled) { opacity: 0.45; cursor: not-allowed; }
.choice__main b { display: block; font-size: 14.5px; }
.choice__main span { font-size: 12.5px; color: var(--muted); }
.choice__side { text-align: right; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.choice__side s { color: var(--muted); font-weight: 400; font-size: 12px; }
.choice__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.choice__ic svg { width: 20px; height: 20px; }
.choice__more { grid-column: 1 / -1; display: none; padding-top: 4px; }
.choice:has(> input:checked) .choice__more { display: block; }
.pay-logo { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 6px; border-radius: 6px; font: 800 10px/1 var(--f-body); letter-spacing: 0.02em; color: #fff; }
.pay-logo.momo { background: #a50064; }
.pay-logo.zalo { background: #0068ff; }
.pay-logo.vnpay { background: #005baa; }
.pay-logo.visa { background: #1a1f71; }
.pay-logo.mc { background: #222; }
.pay-logo.qr { background: var(--ink); }
.wallets { display: flex; gap: 8px; flex-wrap: wrap; }
.wallets label { cursor: pointer; }
.wallets input { position: absolute; opacity: 0; }
.wallets span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; font-weight: 600; background: var(--surface); }
.wallets input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.wallets input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.mini-lines { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; margin-bottom: 16px; padding-right: 4px; }
.mini-line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.mini-line .im { position: relative; width: 58px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--card-bg); }
.mini-line .im img { width: 100%; height: 100%; object-fit: cover; }
.mini-line .im em { position: absolute; top: -1px; right: -1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 0 0 0 8px; background: var(--ink); color: #fff; font: 700 11px/20px var(--f-body); font-style: normal; text-align: center; }
.mini-line b { display: block; font: 700 13px/1.25 var(--f-display); letter-spacing: -0.02em; }
.mini-line span { color: var(--muted); font-size: 12px; }
.sum-toggle { display: none; width: 100%; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-weight: 600; margin-bottom: 14px; box-shadow: var(--shadow); }
.sum-toggle b { font: 800 16px/1 var(--f-display); }
@media (max-width: 1000px) {
  .summary { position: static; }
  .sum-toggle { display: flex; }
}
.agree { display: flex; gap: 10px; align-items: start; font-size: 13px; color: var(--ink-2); }
.agree a { text-decoration: underline; }
.place { margin-top: 16px; }
.place .btn { height: 60px; font-size: 16px; }
.place small { display: block; margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.addr-saved { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--bg); margin-bottom: 14px; font-size: 13.5px; }
.addr-saved b { display: block; }

/* Cổng thanh toán giả lập */
.gw { display: grid; gap: 16px; text-align: center; justify-items: center; }
.gw__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.gw__amount { font: 800 32px/1 var(--f-display); letter-spacing: -0.04em; }
.gw__qr { width: 220px; height: 220px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.gw__qr svg, .gw__qr img { width: 100%; height: 100%; }
.gw__timer { font-size: 13px; color: var(--muted); }
.gw__timer b { color: var(--hot); font-variant-numeric: tabular-nums; }
.gw .btn { width: 100%; }
.demo-note { font-size: 12px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: #7a5600; }

/* ---------------- Đơn hàng ---------------- */
.success { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--ink); color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; isolation: isolate; }
.success::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 1.5px solid rgba(198,255,61,.4); box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); }
.success__check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); animation: popIn 0.8s var(--ease); }
.success__check svg { width: 38px; height: 38px; stroke-width: 2.5; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.4s var(--ease) forwards; }
.success.is-cancel .success__check { background: var(--hot); color: #fff; }
.success.is-wait .success__check { background: #f5a524; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { 0% { transform: scale(0); } 60% { transform: scale(1.15); } }
.success h1 { font: 800 clamp(26px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -0.04em; }
.success p { opacity: 0.75; margin-top: 8px; }
.code-box { display: grid; gap: 6px; justify-items: end; }
.code-box small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.code-box button { display: inline-flex; align-items: center; gap: 8px; font: 800 22px/1 var(--f-display); letter-spacing: 0.02em; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); }
.code-box button:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 760px) { .success { grid-template-columns: 1fr; } .code-box { justify-items: start; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.timeline li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.timeline li::before { content: ''; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px; background: var(--bg-2); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.is-done::before, .timeline li.is-now::before { background: var(--ink); }
.timeline .dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); transition: background .4s; }
.timeline .dot svg { width: 18px; height: 18px; }
.timeline li.is-done .dot { background: var(--ink); color: var(--accent); }
.timeline li.is-now .dot { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); animation: nowPulse 1.6s infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 10%, transparent); } }
.timeline li.is-done, .timeline li.is-now { color: var(--ink); font-weight: 600; }
.timeline time { font-size: 11px; font-weight: 400; color: var(--muted); }
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { grid-template-columns: 40px 1fr; justify-items: start; text-align: left; align-items: center; }
  .timeline li::before { left: 19px; right: auto; width: 3px; top: -14px; height: 14px; }
  .timeline time { grid-column: 2; margin-top: -8px; }
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-grid > div { padding: 18px; border-radius: 18px; background: var(--bg); font-size: 13.5px; display: grid; gap: 4px; align-content: start; }
.info-grid h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.bank { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.bank dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.copy-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg); }
.copy-btn:hover { background: var(--accent); }
@media (max-width: 640px) { .bank { grid-template-columns: 1fr; justify-items: center; } }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg-2); }
.status-pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.status-pill.warn { background: color-mix(in srgb, #f5a524 18%, transparent); color: #9a6200; }
.status-pill.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.status-pill.run { background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.order-row:hover { transform: translateY(-3px); }
.order-row b { font-family: var(--f-display); letter-spacing: 0.02em; }
.order-row .muted { font-size: 12.5px; }
.order-row .thumbs { display: flex; margin-top: 10px; }
.order-row .thumbs span { width: 40px; height: 48px; border-radius: 8px; overflow: hidden; margin-right: -10px; box-shadow: 0 0 0 2px var(--surface); background: var(--card-bg); }
.order-row .thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Trang chính sách, tài khoản ---------------- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.doc nav { position: sticky; top: calc(var(--header-h) + 10px); display: grid; gap: 4px; }
.doc nav a { padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.doc nav a.is-on { background: var(--ink); color: #fff; }
.doc nav a:not(.is-on):hover { background: var(--bg-2); }
.prose { max-width: 760px; font-size: 15px; color: var(--ink-2); }
.prose h2 { font: 800 clamp(28px, 3.4vw, 44px)/1.05 var(--f-display); letter-spacing: -0.04em; color: var(--ink); margin-bottom: 18px; }
.prose h3 { font: 700 18px/1.3 var(--f-display); letter-spacing: -0.02em; color: var(--ink); margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; background: var(--surface); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
.prose th { font-weight: 700; color: var(--ink); background: var(--bg-2); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc nav { position: static; display: flex; overflow-x: auto; } .doc nav a { flex: none; } }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line-2); }
.size-table th { background: var(--bg-2); font-weight: 700; }
.size-table tr.is-hit td { background: var(--accent); font-weight: 700; }
.reco { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 16px 0; padding: 14px; border-radius: 16px; background: var(--surface); }
.reco .field input { height: 50px; }
.reco__out { grid-column: 1 / -1; font-size: 14px; }
.reco__out b { font: 800 18px/1 var(--f-display); background: var(--accent); padding: 4px 10px; border-radius: 8px; }
.auth { max-width: 460px; margin: 0 auto; }
.auth .card { padding: 32px; }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 100%; height: 58px; text-align: center; font: 800 22px/1 var(--f-display); border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg); outline: 0; }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.profile__card { padding: 26px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 10px); }
.profile__card .avatar { width: 64px; height: 64px; font-size: 22px; }
.profile__card .tier { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: rgba(198, 255, 61, 0.15); color: var(--accent); justify-self: start; }
.profile__nav { display: grid; gap: 4px; }
.profile__nav button, .profile__nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: #cfcdc7; text-align: left; }
.profile__nav .is-on, .profile__nav button:hover, .profile__nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.profile__nav svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile__card { position: static; } }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 60px 20px; }
.empty__icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); animation: floaty 4s ease-in-out infinite; }
.empty__icon svg { width: 38px; height: 38px; }
.empty h3 { font: 800 24px/1.1 var(--f-display); letter-spacing: -0.03em; }
.empty p { max-width: 420px; }
.empty .btn { margin-top: 8px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font: 900 clamp(120px, 26vw, 300px)/0.8 var(--f-display); letter-spacing: -0.08em; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* chuyển trang */
#app { outline: none; }
/* fill-mode backwards: chạy xong là gỡ transform, không làm lệch các phần tử position:fixed (bộ lọc, thanh mua) */
#app.is-enter > *:not(.buybar) { animation: pageIn 0.6s var(--ease) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .pcard[data-reveal] .pcard__media { clip-path: none !important; animation: none !important; }
  .hero__giant .ch, .hero__title .line > span { transform: none; opacity: 1; }
}

/* ---------------- Mua kèm trong giỏ ---------------- */
.upsell { margin-top: 18px; padding: 14px; border-radius: 18px; background: var(--surface); display: grid; gap: 10px; }
.upsell__item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.upsell__item a { width: 52px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--card-bg); }
.upsell__item img { width: 100%; height: 100%; object-fit: cover; }
.upsell__item b { display: block; font: 700 13px/1.2 var(--f-display); letter-spacing: -0.02em; }
.upsell__item .price b { font: 600 13px/1.2 var(--f-body); }
.upsell__item .icon-btn { width: 36px; height: 36px; background: var(--ink); color: #fff; }
.upsell__item .icon-btn:hover { background: var(--accent); color: var(--ink); }
.agree { align-items: flex-start !important; }
.summary-wrap { align-self: stretch; }

/* =========================================================
   ĐIỆN THOẠI — căn lại khoảng cách & bố cục
   ========================================================= */
@media (max-width: 900px) {
  /* Hero: khung 3D gọn hơn, nội dung bám sát bên dưới */
  .hero { --stage: clamp(280px, 44svh, 390px); }
  .hero__stage { height: var(--stage); min-height: 0; }
  .hero__giant, .hero__loader { top: calc(var(--header-h) - 10px + var(--stage) / 2); }
  .hero__ui { padding-top: calc(var(--header-h) - 10px + var(--stage)); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 88px; }

  /* Header */
  .announce { height: 30px; font-size: 11.5px; }
  .nav { height: 58px; gap: 6px; }
  .logo { font-size: 20px; }
  .nav .icon-btn { width: 40px; height: 40px; }
  .nav__actions { gap: 0; }

  /* Khoảng cách chung */
  .section { padding-block: 44px; }
  .page { padding-top: calc(var(--header-h) + 14px); padding-bottom: 56px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
  .sec-title { font-size: clamp(26px, 7.6vw, 32px); margin-top: 8px; }
  .sec-head .link-arrow { font-size: 13px; }
  .crumbs { font-size: 12px; margin-bottom: 12px; }

  /* Hero */
  .hero__giant { font-size: 30vw; }
  .hero__title { font-size: clamp(32px, 9.6vw, 40px); margin-top: 12px; }
  .hero__lead { margin-top: 12px; font-size: 14px; }
  .hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .hero__cta .btn { height: 48px; padding: 0 10px; font-size: 13.5px; }
  .hero__stats { margin-top: 22px; justify-content: space-between; gap: 8px; }
  .hero__stats b { font-size: 20px; }
  .hero__stats span { font-size: 11px; }
  .hero__ui { gap: 18px; padding-bottom: 54px; }
  .hero__panel { padding: 14px; border-radius: 20px; }
  .hero__panel h3 { font-size: 15px; }
  .hero__variants { margin: 12px 0; gap: 6px; }
  .hv { padding: 8px 4px 10px; font-size: 11.5px; gap: 6px; }
  .hv i { width: 24px; height: 24px; }
  .hero__hint { display: none; }
  .hero__panel .btn { height: 44px; font-size: 13.5px; }

  /* Dải chữ chạy */
  .hero + .bands { margin-top: -30px; }
  .band { padding-block: 11px; }
  .band__row span { font-size: 16px; padding-inline: 14px; gap: 28px; }
  .band--b { margin-top: -24px; }

  /* Danh mục bento */
  .bento { grid-auto-rows: 148px; gap: 10px; }
  .tile { padding: 14px; border-radius: 18px; }
  .tile h3 { font-size: 22px; }
  .tile--a h3 { font-size: 32px; }
  .tile:not(.tile--a):not(.tile--sale) p { display: none; }
  .tile__count { font-size: 9px; padding: 6px 8px; white-space: nowrap; letter-spacing: 0.08em; }
  .tile__go { width: 34px; height: 34px; }
  .tile__go svg { width: 16px; height: 16px; }
  .tile--sale h3 { font-size: 26px; }
  .tile--sale .big { font-size: 110px; bottom: -22px; }

  /* Tabs lọc hàng mới: 1 hàng cuộn ngang */
  .sec-head .tabs { align-self: stretch; }
  .tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 8px 14px; font-size: 13px; }

  /* Hàng cuộn ngang tràn mép (flash sale, bán chạy) */
  .flash .grid, .rail {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%;
    gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  }
  .flash .grid::-webkit-scrollbar { display: none; }
  .flash .grid > *, .rail > * { scroll-snap-align: start; }
  .flash { gap: 14px; }
  .flash__intro { padding: 20px; gap: 16px; border-radius: 20px; }
  .flash__intro h2 { font-size: 28px; }
  .flash__intro::before { font-size: 120px; bottom: -30px; }
  .countdown div { min-width: 54px; padding: 8px 4px; border-radius: 12px; }
  .countdown b { font-size: 22px; }
  .flash__intro .btn { height: 44px; }

  /* Card sản phẩm */
  .pcard__name { font-size: 13.5px; }
  .pcard__sold { font-size: 11px; }
  .pcard__info { gap: 3px; }
  .sticker { width: 54px; height: 54px; bottom: -18px; right: 6px; }
  .sticker text { font-size: 9.5px; }
  .sticker b { font-size: 11.5px; }
  .pcard__plus { width: 34px; height: 34px; left: 8px; bottom: 8px; }
  .pcard__plus svg { width: 15px; height: 15px; }
  .pcard__idx { top: 10px; left: 11px; font-size: 9.5px; }
  .pcard__3d { display: none; }

  /* Lookbook */
  .look.is-static .look__pin { padding-block: 44px; }
  .look__head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .look.is-static .look__track { gap: 12px; scroll-padding-inline: var(--gutter); }
  .look.is-static .look__item { width: 72vw; border-radius: 18px; }
  .look__num { font-size: 46px; }
  .look__cap { left: 14px; right: 14px; bottom: 14px; }
  .look__cap h3 { font-size: 20px; }
  .look__cap p { font-size: 12px; }

  /* Shop the look */
  .stl { gap: 22px; }
  .stl__img { aspect-ratio: 4 / 4.4; border-radius: 18px; }
  .stl__list { margin-top: 16px; gap: 8px; }
  .stl__item { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 8px; border-radius: 16px; }
  .stl__item img { width: 60px; height: 74px; }
  .stl__item h4 { font-size: 14px; }
  .stl__item.is-on { transform: none; }
  .stl__total { margin-top: 16px; }

  /* Cam kết: dạng danh sách gọn */
  .usp { grid-template-columns: 1fr; gap: 8px; }
  .usp > div { grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: 18px; }
  .usp > div:hover { transform: none; }
  .usp .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; }
  .usp h4 { font-size: 14.5px; }
  .usp p { font-size: 12.5px; }

  /* Đánh giá */
  .rev { width: 272px; padding: 16px; border-radius: 18px; }
  .rev p { font-size: 13.5px; }

  /* Đăng ký nhận tin */
  .news { border-radius: 24px; padding: 26px 20px; gap: 18px; }
  .news > div { min-width: 0; }
  .news h2 { font-size: 26px; }
  .news p { font-size: 14px; }
  .news form { flex-direction: column; border-radius: 18px; padding: 6px; }
  .news input { height: 46px; }
  .news form .btn { width: 100%; }

  /* Footer */
  .site-footer { padding-top: 48px; }
  .foot { gap: 28px 18px; }
  .foot > div:last-child { grid-column: span 2; }
  .foot h4 { margin-bottom: 12px; }
  .foot ul { gap: 9px; font-size: 13.5px; }
  .foot__about p { margin: 12px 0 16px; font-size: 13.5px; }
  .foot__giant { margin-top: 36px; }
  .foot__bottom { flex-direction: column; gap: 4px; padding: 16px 0 84px; }

  /* Nút hỗ trợ & thông báo không che nội dung */
  .fab { right: 14px; bottom: 14px; }
  .fab__main { width: 50px; height: 50px; }
  body.has-buybar .fab { bottom: 78px; }
  .toasts { bottom: 76px; }
  body.has-buybar .toasts { bottom: 140px; }

  /* Giỏ hàng: dạng bottom sheet */
  #cartDrawer .drawer__panel { inset: auto 0 0 0; width: 100%; height: min(90svh, 760px); border-radius: 24px 24px 0 0; transform: translateY(102%); }
  #cartDrawer.is-open .drawer__panel { transform: none; }
  #cartDrawer .drawer__panel::before { content: ''; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 4px; border-radius: 4px; background: var(--line); }
  .drawer__head { padding: 18px 12px 10px 18px; }
  .drawer__head h2 { font-size: 20px; }
  .drawer__body { padding: 0 16px 14px; }
  .drawer .shipbar { margin: 0 16px 8px; }
  .drawer__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .mmenu .drawer__panel { inset: 0 auto 0 0; width: min(86vw, 360px); border-radius: 0 24px 24px 0; }
  .mmenu nav a { font-size: 24px; padding: 12px 0; }
  .search__results { grid-template-columns: 1fr; }
  .search__panel { padding: 16px 0 22px; }

  /* Dòng sản phẩm trong giỏ */
  .line { grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; }
  .line__img { width: 72px; height: 90px; border-radius: 12px; }
  .line__name { font-size: 13.5px; }
  .line__total { font-size: 13px; }

  /* Ô nhập ≥16px để iPhone không tự phóng to khi chạm */
  .field input, .field select, .field textarea, .coupon input, .qty input, .news input, .select select, .ship-est select, .reco input { font-size: 16px; }

  /* Trang danh sách */
  .shop-head { margin-bottom: 14px; }
  .shop-head h1 { font-size: clamp(30px, 9vw, 40px); }
  .shop-head h1 sup { display: block; margin: 8px 0 0; font-size: 12.5px; }
  .shop-cats { margin: 0 calc(var(--gutter) * -1) 6px; padding: 0 var(--gutter) 4px; }
  .toolbar { position: sticky; top: 58px; z-index: 20; flex-wrap: nowrap; gap: 8px; margin: 0 calc(var(--gutter) * -1) 12px; padding: 8px var(--gutter); background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .toolbar__left { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar__left::-webkit-scrollbar { display: none; }
  .active-filters { flex-wrap: nowrap; }
  .active-filters .chip, .filter-btn { flex: none; }
  .filter-btn { height: 38px; }
  .density { display: none; }
  .select select { height: 38px; padding: 0 32px 0 14px; }
  .filters { padding: 0 18px 96px; }
  .filters__apply { left: 18px; right: 18px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .load-more { margin-top: 28px; }

  /* Trang chi tiết */
  .pdp { gap: 16px; }
  .gallery__main { aspect-ratio: 1 / 1.08; }
  .gallery__main:not(.is-3d) .gallery__badge { display: none; }
  .pinfo { gap: 14px; }
  .pinfo__title { font-size: 28px; margin-top: 6px !important; }
  .rate-line { font-size: 12.5px; gap: 6px; }
  .swatch { width: 34px; height: 34px; }
  .sizes { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
  .size { height: 44px; font-size: 13.5px; }
  .buy { gap: 8px; }
  .qty--lg { height: 50px; }
  .qty--lg button { width: 36px; height: 50px; }
  .qty--lg input { width: 28px; }
  .buy .btn--lg { height: 50px; padding: 0 14px; font-size: 14px; }
  .wish-lg { width: 50px; height: 50px; }
  .buy-now.btn--lg { height: 52px; font-size: 14px; }
  .perks { gap: 6px; }
  .perks div { padding: 10px; gap: 8px; font-size: 11.5px; border-radius: 12px; }
  .perks b { font-size: 12px; }
  .perks svg { width: 18px; height: 18px; }
  .ship-est { padding: 12px; border-radius: 16px; }
  .ship-est select { max-width: 170px; }
  .ship-est li { padding: 9px 10px; }
  .acc summary { font-size: 14px; padding: 14px 0; }
  .reviews { gap: 14px; }
  .rsum { padding: 18px; border-radius: 18px; }
  .rsum__score { font-size: 48px; }
  .ritem { padding: 16px; border-radius: 18px; }
  .buybar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .buybar .btn { height: 44px; padding: 0 16px; font-size: 13.5px; }

  /* Giỏ hàng & thanh toán */
  .page-title { font-size: clamp(30px, 9vw, 40px); margin-bottom: 16px; }
  .steps { gap: 6px; font-size: 11.5px; margin-bottom: 16px; flex-wrap: nowrap; }
  .steps span { gap: 6px; white-space: nowrap; }
  .steps .sep { width: 12px; flex: none; }
  .steps i { width: 22px; height: 22px; font-size: 11px; }
  .two-col { gap: 14px; }
  .card { padding: 16px; border-radius: 18px; }
  .card + .card { margin-top: 10px; }
  .card__title { font-size: 17px; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
  .card__title .n { width: 26px; height: 26px; font-size: 12px; }
  .card__title small { font-size: 12px; }
  .form-grid { gap: 10px; }
  .field input, .field select { height: 54px; }
  .choices { gap: 8px; }
  .choice { padding: 12px; gap: 10px; border-radius: 14px; }
  .choice__ic { width: 34px; height: 34px; border-radius: 10px; }
  .choice__ic svg { width: 17px; height: 17px; }
  .choice__main b { font-size: 13.5px; }
  .choice__main span { font-size: 12px; }
  .choice__side { font-size: 13px; flex-direction: column; align-items: flex-end; gap: 0; }
  .wallets { gap: 6px; }
  .wallets span { font-size: 12px; padding: 7px 10px; gap: 6px; }
  .mini-line { grid-template-columns: 50px 1fr auto; gap: 10px; }
  .mini-line .im { width: 50px; height: 62px; }
  .voucher { grid-template-columns: 42px 1fr auto; gap: 10px; padding: 8px 10px 8px 8px; }
  .voucher .vic { height: 42px; }
  .summary .row.total { font-size: 19px; }
  .place .btn { height: 56px; font-size: 15px; }
  .sum-toggle { padding: 12px 14px; }

  /* Đơn hàng */
  .success { padding: 22px 18px; border-radius: 22px; gap: 14px; }
  .success__check { width: 56px; height: 56px; }
  .success__check svg { width: 28px; height: 28px; }
  .success h1 { font-size: 24px; }
  .success p { font-size: 13.5px; }
  .code-box button { font-size: 17px; padding: 10px 12px; }
  .bank { gap: 16px; }
  .bank dl { font-size: 13px; gap: 8px 12px; }
  .info-grid { gap: 8px; }
  .info-grid > div { padding: 14px; border-radius: 14px; }
  .order-row { padding: 14px; border-radius: 16px; }

  /* Tài khoản, chính sách, modal */
  .auth .card { padding: 22px 18px; }
  .otp { gap: 6px; }
  .otp input { height: 50px; font-size: 20px; border-radius: 12px; }
  .profile__card { padding: 20px; border-radius: 20px; }
  .doc { gap: 18px; }
  .doc nav { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; gap: 6px; }
  .doc nav::-webkit-scrollbar { display: none; }
  .doc nav a { padding: 8px 12px; font-size: 13px; background: var(--surface); }
  .prose { font-size: 14px; }
  .prose h2 { font-size: 26px; }
  .prose table { display: block; overflow-x: auto; font-size: 12.5px; }
  .modal__panel { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .modal__title { font-size: 19px; }
  .qv__name { font-size: 22px; }
  .reco { grid-template-columns: 1fr 1fr; }
  .reco .btn { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .hero__cta { grid-template-columns: 1fr; }
  .hero__stats b { font-size: 18px; }
  .grid { gap: 8px; }
  .pcard__inner { padding: 5px; }
  .buy .btn--lg span { font-size: 13px; }
}
/* Khi giỏ hàng / menu đang mở: đưa thông báo lên trên cho khỏi che nút */
body:has(.drawer.is-open) .toasts { top: 14px; bottom: auto; }
/* Không để nội dung con (logo thẻ, ví) kéo cột rộng hơn màn hình */
.two-col > *, .choice__main, .choice__more { min-width: 0; }
.choice { grid-template-columns: auto minmax(0, 1fr) auto; }
.wallets span { flex-wrap: wrap; }
@media (max-width: 760px) {
  /* Thanh bước: bước khác chỉ hiện số, bước hiện tại hiện đủ chữ */
  .steps span:not(.is-on):not(.sep) { font-size: 0; gap: 0; }
  .steps .sep { width: 18px; }
}

/* ---------------- Nút chuyển ngôn ngữ VI | EN (header) ---------------- */
.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; flex: none; height: 32px; padding: 3px; margin-right: 8px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 22%, transparent); font: 700 11px/1 var(--f-display); letter-spacing: 0.06em; }
.lang button { position: relative; z-index: 1; width: 34px; height: 26px; border-radius: 99px; color: inherit; opacity: 0.6; transition: color 0.3s, opacity 0.3s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed='true'] { opacity: 1; color: var(--bg); }
.lang__thumb { position: absolute; z-index: 0; top: 3px; left: 3px; width: 34px; height: 26px; border-radius: 99px; background: currentColor; transition: transform 0.45s var(--ease); }
.lang[data-on='en'] .lang__thumb { transform: translateX(34px); }
.site-header.is-clear.ink-light .lang button[aria-pressed='true'] { color: var(--ink); }
@media (max-width: 760px) {
  .lang { height: 30px; margin-right: 2px; font-size: 10.5px; }
  .lang button, .lang__thumb { width: 30px; height: 24px; }
  .lang[data-on='en'] .lang__thumb { transform: translateX(30px); }
}
