:root {
  --bg: #ffffff;
  --soft: #f5f3ef;
  --line: #e8e5df;
  --text: #141414;
  --muted: #6f6c66;
  --acc: #ff5a36;      /* cam ATIPU */
  --acc-dark: #e6461f;
  --ok: #18a058;
  --r: 14px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--text); color: #fff; }
.btn.dark:hover { background: #2c2c2c; }
.btn.outline { border-color: var(--text); background: #fff; }
.btn.outline:hover { background: var(--soft); }
.btn.try { background: var(--acc); color: #fff; }
.btn.try:hover { background: var(--acc-dark); }
.btn.light { background: #fff; color: #111; }
.btn.ghost-dark { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn.block { width: 100%; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--acc); font-weight: 600; font-size: 13px; text-align: left; }
.link.danger { color: var(--muted); }

/* ---------- Header ---------- */
.announce { background: var(--text); color: #e9e7e2; font-size: 13px; text-align: center; padding: 8px 16px; }
.announce b { color: #fff; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 40px); max-width: 1280px; margin: 0 auto; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: .02em; }
.logo span { color: var(--acc); }
.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--soft); border: 1px solid transparent; color: var(--muted); }
.search:focus-within { border-color: var(--text); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; outline: none; color: var(--text); min-width: 0; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.cart-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--line); }
.cart-btn.has .count { background: var(--acc); color: #fff; }
.cats { display: flex; gap: 6px; padding: 0 clamp(16px, 4vw, 40px) 10px; max-width: 1280px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.cats button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); }
.cats button.on { background: var(--text); color: #fff; border-color: var(--text); }

main, .footer { max-width: 1280px; margin: 0 auto; }

/* ---------- Banner ---------- */
.banner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; margin: 20px clamp(16px, 4vw, 40px) 0; padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: linear-gradient(120deg, #fff1ec, var(--soft)); overflow: hidden; }
.banner h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; }
.banner p { color: #3d3b38; max-width: 520px; }
.banner-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.banner-visual { position: relative; height: 320px; }
.bv { position: absolute; width: 42%; aspect-ratio: 6 / 7; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.14); background: #fff; cursor: pointer; transition: box-shadow .3s, scale .4s cubic-bezier(.2,.8,.2,1); animation: floaty 6s ease-in-out infinite; }
.bv > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv:hover { scale: 1.06; box-shadow: 0 28px 60px rgba(0,0,0,.2); z-index: 3; }
.bv1 { animation-delay: -2s; } .bv2 { animation-delay: -4s; }
@keyframes floaty { 50% { margin-top: -10px; } }
.bv0 { left: 4%; top: 12%; transform: rotate(-6deg); }
.bv1 { left: 30%; top: 0; z-index: 2; }
.bv2 { right: 2%; top: 14%; transform: rotate(6deg); }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px clamp(16px, 4vw, 40px) 0; }
.perks div { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.perks b { font-size: 14px; }
.perks span { font-size: 13px; color: var(--muted); }

/* ---------- Shop ---------- */
.shop { padding: 36px clamp(16px, 4vw, 40px) 24px; scroll-margin-top: 120px; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-head h2 { font-size: 24px; font-weight: 800; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 38px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; background: #fff; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { cursor: pointer; border-radius: var(--r); }
.card-media { position: relative; aspect-ratio: 6 / 7; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card-media > canvas, .card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-media > canvas, .card:hover .card-media > img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 6px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; }
.badge.sale { background: var(--acc); }
.card-try { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; height: 40px; border: 0; border-radius: 10px; background: rgba(20,20,20,.88); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: .2s; }
.card-try:hover { background: var(--acc); }
.card:hover .card-try, .card:focus-within .card-try { opacity: 1; transform: none; }
@media (hover: none) { .card-try { opacity: 1; transform: none; } }
.card-body { padding: 10px 2px 4px; }
.card-body h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.card-price { margin-top: 4px; }
.card-price b { color: var(--acc); font-size: 16px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card-colors { display: flex; gap: 6px; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #cfcac2; padding: 0; }
.dot.on { box-shadow: 0 0 0 2px var(--text); }
.sold { font-size: 12px; color: var(--muted); }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }

.tiktok { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px clamp(16px, 4vw, 40px) 40px; padding: 22px 26px; border-radius: 18px; background: var(--text); color: #fff; }
.tiktok p { margin: 4px 0 0; color: #bdbab4; }
.tiktok .btn.dark { background: #fff; color: #111; }

.footer { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 24px; padding: 32px clamp(16px, 4vw, 40px) 48px; border-top: 1px solid var(--line); font-size: 14px; }
.footer h4 { font-size: 14px; margin-bottom: 8px; }
.footer p { margin: 4px 0; }

/* ---------- Options ---------- */
.opt { margin-top: 18px; }
.opt > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.opt > label b { color: var(--text); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #cfcac2; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--acc); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes button { min-width: 50px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; position: relative; }
.sizes button.on { border-color: var(--text); background: var(--text); color: #fff; }
.sizes button.rec::after { content: "AI"; position: absolute; top: -8px; right: -6px; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 6px; background: var(--acc); color: #fff; }
.ai-chip { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ffe8e1; color: var(--acc-dark); margin-left: 6px; }
.price { font-size: 24px; font-weight: 800; color: var(--acc); margin: 8px 0 0; }
input[type=range] { width: 100%; accent-color: var(--acc); }

/* ---------- Modal ---------- */
.modal, .drawer-wrap { position: fixed; inset: 0; z-index: 40; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; margin: 4vh auto; width: min(1000px, calc(100% - 32px)); max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; background: #fff; animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal-card .close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.pm-gallery { padding: 16px; }
.pm-main { aspect-ratio: 6 / 7; border-radius: 14px; overflow: hidden; background: var(--soft); }
.pm-main > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pm-thumbs button { width: 64px; height: 74px; flex: none; padding: 0; border-radius: 8px; border: 2px solid transparent; overflow: hidden; background: var(--soft); }
.pm-thumbs button.on { border-color: var(--text); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 32px 28px 28px 12px; display: flex; flex-direction: column; }
.pm-info h3 { font-size: 26px; font-weight: 800; }
.pm-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pm-info > p.muted { margin: 12px 0 0; }
.pm-info .btn.try { margin-top: 22px; height: 52px; }
.pm-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tt-link { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tt-link:hover { color: var(--text); }

/* ---------- Phòng thử (nền tối) ---------- */
.tryon { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr 370px; background: #050506; color: #f3f2ec; animation: fade .2s; }
.tryon-stage { position: relative; overflow: hidden; background: #0d0d10; }
.tryon-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tryon-stage video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tryon-hud { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2; min-width: min(420px, calc(100% - 32px)); padding: 12px 16px 14px; border-radius: 14px; background: rgba(10,10,12,.72); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.tryon-hud .status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.tryon-hud .dot { width: 10px; height: 10px; border-radius: 50%; background: #c8ff2e; border: 0; box-shadow: none; animation: pulse 1.4s infinite; }
.tryon-hud[data-kind=wait] .dot { background: #ffc94a; }
.tryon-hud[data-kind=error] .dot { background: #ff6b5a; animation: none; }
.tryon-hud .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); margin-top: 10px; overflow: hidden; }
.tryon-hud .bar i { display: block; height: 100%; width: 0; background: #c8ff2e; transition: width .2s; }
.tryon.fitted .tryon-hud .bar { display: none; }
.tryon-guide { position: absolute; left: 16px; bottom: 110px; z-index: 2; display: flex; flex-direction: column; gap: 6px; max-width: 300px; padding: 12px 14px; border-radius: 12px; background: rgba(10,10,12,.66); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #dcdcdf; }
.tryon-guide .region { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: #c8ff2e; color: #0b0b0d; }
.tryon.fitted .tryon-guide { display: none; }
.tryon-error { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: rgba(8,8,10,.88); }
.tryon-error p { max-width: 440px; font-size: 16px; margin: 0; }
.tryon-error .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tryon-tools { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 18px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; font-size: 11px; font-weight: 600; color: #d6d6dc; }
.tool svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(10,10,12,.65); border: 1px solid rgba(255,255,255,.12); box-sizing: border-box; }
.tool.on svg { background: #c8ff2e; color: #0b0b0d; }
.tool.shutter i { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: var(--acc); box-shadow: inset 0 0 0 4px #050506; }
.tool.shutter:active i { transform: scale(.92); }

.tryon-panel { background: #121216; border-left: 1px solid rgba(255,255,255,.08); padding: 18px 20px 0; overflow-y: auto; display: flex; flex-direction: column; }
.tryon-panel .opt > label { color: #9b9ba4; }
.tryon-panel .muted { color: #9b9ba4; }
.tryon-panel .icon-btn { background: transparent; border-color: rgba(255,255,255,.15); color: #fff; }
.tryon-panel .swatch { border-color: #121216; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.tryon-panel .swatch.on { box-shadow: 0 0 0 2px var(--acc); }
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.panel-top .kicker { margin: 0; }
.tryon-panel h3 { font-size: 20px; font-weight: 800; margin-top: 12px; }
.tryon-panel .price { font-size: 18px; }
.size-box { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: #1a1a20; border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.size-box > div { display: flex; align-items: center; gap: 10px; }
.size-box b { font-size: 20px; font-weight: 800; color: #fff; background: var(--acc); min-width: 44px; height: 38px; border-radius: 9px; display: grid; place-items: center; padding: 0 8px; }
.size-box span { color: #9b9ba4; }
.row-field { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: #9b9ba4; }
.row-field label { flex: 1; }
.row-field input { width: 74px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: #1a1a20; color: #fff; padding: 0 10px; text-align: center; }
.mix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mix { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #1a1a20; font-size: 11px; font-weight: 600; color: #9b9ba4; }
.mix canvas { width: 100%; height: auto; border-radius: 7px; display: block; }
.mix.on { border-color: rgba(255,90,54,.6); color: #fff; }
.mix.active { box-shadow: 0 0 0 2px var(--acc); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shots img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; }
.btn.sticky-cta { position: sticky; bottom: 0; margin: 20px -20px 0; width: calc(100% + 40px); border-radius: 0; height: 58px; flex: none; }

/* ---------- Giỏ hàng ---------- */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 19px; }
.drawer-body { padding: 14px 20px 28px; overflow-y: auto; flex: 1; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.line-info { display: flex; flex-direction: column; gap: 3px; font-size: 14px; min-width: 0; }
.line-info select { border: 1px solid var(--line); border-radius: 6px; padding: 1px 4px; background: #fff; }
.shot-note { font-size: 12px; color: var(--ok); font-weight: 600; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button:not(.link) { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.qty .link { margin-left: auto; }
.line-price { font-size: 14px; white-space: nowrap; }
.sum { padding: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; }
.sum p { margin: 0; }
.sum .grand { font-size: 18px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); }
.checkout { display: flex; flex-direction: column; gap: 12px; }
.checkout h4 { font-size: 16px; }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.checkout input:not([type=radio]), .checkout textarea { border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 11px 12px; color: var(--text); font-size: 15px; resize: vertical; }
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--text); }
.checkout fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; }
.checkout legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.checkout .radio { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 14px; padding: 6px 0; }
.checkout input[type=radio] { accent-color: var(--acc); }
.err { color: #d93025; font-size: 14px; margin: 0; }
.empty, .success { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 28px; font-weight: 800; display: grid; place-items: center; }
.success h4 { font-size: 21px; }
.success p { margin: 0; }
.success-shots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.success-shots img { width: 80px; height: 94px; object-fit: cover; border-radius: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 80; opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 10px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; transition: .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .banner { grid-template-columns: 1fr; }
  .banner-visual { height: 220px; order: -1; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .modal-card { grid-template-columns: 1fr; margin: 0; width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .pm-info { padding: 8px 18px 28px; }
  .footer { grid-template-columns: 1fr; }
  .tryon { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .tryon-panel { max-height: 42vh; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 12px 16px 0; }
  .btn.sticky-cta { margin: 14px -16px 0; width: calc(100% + 32px); }
  .tryon-guide { bottom: 100px; left: 12px; right: 12px; max-width: none; }
  .mix-grid { grid-template-columns: repeat(6, 1fr); }
  .mix span { display: none; }
}
@media (max-width: 600px) {
  .header-row { flex-wrap: wrap; gap: 10px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; }
  .announce { font-size: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-try { height: 34px; font-size: 12px; left: 6px; right: 6px; bottom: 6px; }
  .card-body h4 { font-size: 14px; }
  .perks div { padding: 10px 12px; }
  .tool svg { width: 42px; height: 42px; padding: 11px; }
  .tool.shutter i { width: 58px; height: 58px; }
  .tryon-hud { top: 10px; }
}

/* ================= HIỆU ỨNG ================= */
/* Banner: đốm sáng theo con trỏ / ngón tay */
.banner { position: relative; isolation: isolate; }
.banner .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--sx, 70%) var(--sy, 30%), rgba(255,90,54,.22), transparent 60%); transition: background .1s; }
.banner h1 em { font-style: normal; color: var(--acc); }
.arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Tiêu đề chạy từng chữ */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 55ms); }
.split.in .w > span { transform: none; }

/* Hiện dần khi cuộn */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* Header thu gọn / ẩn khi cuộn + thanh tiến độ */
.header { transition: transform .35s ease, box-shadow .3s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.header.scrolled .header-row { padding-top: 8px; padding-bottom: 8px; }
.header-row { transition: padding .3s; }
.header.hide { transform: translateY(-100%); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: linear-gradient(90deg, var(--acc), #ffb36b); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Thẻ sản phẩm: nghiêng 3D + vệt sáng + nhún khi chạm */
.card { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.card-media { transition: transform .25s ease-out, box-shadow .3s; transform-style: preserve-3d; will-change: transform; }
.card:hover .card-media { box-shadow: 0 22px 40px -18px rgba(0,0,0,.35); }
.glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 55%); mix-blend-mode: soft-light; }
.card:hover .glare, .card.pressed .glare { opacity: 1; }
.card.pressed { transform: scale(.965); }
.card:hover h4 { color: var(--acc); }
.card-body h4 { transition: color .2s; }
.card-try { overflow: hidden; }
.card-try::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); }
.card:hover .card-try::after { animation: shine 1.4s ease .2s; }
@keyframes shine { to { transform: translateX(100%); } }

/* Nút: gợn sóng khi bấm + chuyển động nam châm */
.btn { position: relative; overflow: hidden; }
[data-magnetic] { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .15s; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Dải chữ chạy */
.marquee { width: 100vw; margin: 26px 0 0 calc(50% - 50vw); padding: 14px 0; background: var(--acc); color: #fff; overflow: hidden; transform: skewY(var(--skew, 0deg)); transition: transform .3s ease-out; }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marquee 26s linear infinite; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.marquee i { font-style: normal; opacity: .7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Giỏ hàng nảy + ảnh bay vào giỏ */
.cart-btn.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1) .6s; }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }
.fly { position: fixed; z-index: 90; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Con trỏ tuỳ chỉnh (chỉ máy tính) */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor-on .cur-dot, .cursor-on .cur-ring { opacity: 1; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--acc); }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid rgba(20,20,20,.5); display: grid; place-items: center; transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s, opacity .2s; }
.cur-ring span { font-size: 12px; font-weight: 800; color: #fff; opacity: 0; transition: opacity .2s; }
.cur-ring.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--acc); background: rgba(255,90,54,.08); }
.cur-ring.is-view { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-color: transparent; background: var(--acc); }
.cur-ring.is-view span { opacity: 1; }
.cur-ring.is-text { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: var(--text); border-color: transparent; }
.cur-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.tryon .cur-ring, .tryon-open .cur-ring { border-color: rgba(255,255,255,.6); }

/* Nút "Thử bằng camera" phát sáng nhịp */
.btn.try { box-shadow: 0 0 0 0 rgba(255,90,54,.5); animation: glow 2.4s infinite; }
@keyframes glow { 70% { box-shadow: 0 0 0 12px rgba(255,90,54,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,54,0); } }
.tryon .btn.try { animation: none; }

/* Ảnh trong popup phóng nhẹ khi rê */
.pm-main { cursor: zoom-in; }
.pm-main > * { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pm-main:hover > * { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.has-cursor, .has-cursor * { cursor: none !important; }
body { overflow-x: hidden; }
.pm-buy.single { grid-template-columns: 1fr; }
.aff .perks div:nth-child(3), .aff .perks div:nth-child(4) { border-color: #ffd5c9; }

/* ===== Nhãn HOT / Bán chạy, logo ATIPU, video ===== */
.stickers { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sticker { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--text); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.sticker.hot { background: linear-gradient(135deg, #ff3d2e, #ff8a3d); animation: hotpulse 1.8s ease-in-out infinite; }
.sticker.best { background: #ffd23f; color: #3a2a00; }
@keyframes hotpulse { 50% { transform: scale(1.08) rotate(-2deg); } }
.badge.sale { left: auto; right: 10px; z-index: 2; }
.has-video { position: absolute; right: 10px; bottom: 58px; z-index: 2; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; }
.wm { position: absolute; z-index: 2; right: 10px; bottom: 56px; font-weight: 900; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.92); background: rgba(20,20,20,.35); padding: 2px 8px; border-radius: 6px; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.card-media .has-video ~ .wm { bottom: 84px; }
.wm.big { top: 14px; left: 14px; right: auto; bottom: auto; font-size: 16px; padding: 4px 10px; }
.card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; z-index: 1; }
.card.playing .card-video { opacity: 1; }
.pm-main { position: relative; }
.pm-main video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.pm-thumbs button.vid { position: relative; background: #111; color: #fff; display: grid; place-items: center; }
.pm-thumbs button.vid span { position: absolute; font-size: 18px; }

/* ===== Thanh toán kiểu SAMI LY ===== */
.pay-box { border: 1px solid #ffd5c9; background: #fff6f3; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pay-row { display: flex; justify-content: space-between; gap: 10px; }
.pay-box p { margin: 0; }
.qr-card { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; }
.qr-card p { margin: 0; }
.qr { width: 220px; height: 220px; object-fit: contain; border-radius: 10px; background: var(--soft); }
.bank-lines { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 14px; text-align: left; }
.bank-lines div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.bank-lines span { color: var(--muted); }
.bank-lines b { margin-left: auto; text-align: right; }

/* Nút Zalo nổi */
.zalo-float { position: fixed; right: 18px; bottom: 22px; z-index: 35; width: 58px; height: 58px; border-radius: 50%; background: #0068ff; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 10px 24px rgba(0,104,255,.4); animation: zring 2.4s infinite; }
@keyframes zring { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,104,255,.45), 0 10px 24px rgba(0,104,255,.4); } 60% { box-shadow: 0 0 0 14px rgba(0,104,255,0), 0 10px 24px rgba(0,104,255,.4); } }
.tryon-open .zalo-float { display: none; }

/* ===== Danh sách nhiều sản phẩm ===== */
.card-media > img.illus, .card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card-body h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
.card-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.shop-head .small { display: block; margin-top: 4px; }
.card-try[hidden] { display: none !important; }
.mix-img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 7px; display: block; background: #1a1a20; }
.pm-main > img { background: #fff; }
/* ảnh sắc nét khi thẻ đứng yên; chỉ phóng nhẹ khi rê chuột */
.card-media > img { image-rendering: auto; backface-visibility: hidden; }
.card:not(:hover) .card-media { transform: none !important; }

/* ================= GIAO DIỆN KIỂU GIAN HÀNG ================= */
body { background: #f5f5f5; }
.header { background: rgba(255,255,255,.96); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Đầu gian hàng */
.shop-hero { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: center; margin: 18px clamp(12px, 3vw, 40px) 0; padding: 22px; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.shop-card { position: relative; overflow: hidden; border-radius: 4px; padding: 18px 20px; color: #fff; min-height: 134px; display: flex; flex-direction: column; justify-content: space-between; }
.shop-card-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #161616 0%, #2b2b2b 55%, #3a1d14 100%); }
.shop-card-bg::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at var(--sx, 70%) var(--sy, 30%), rgba(255,90,54,.45), transparent 45%); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(18%, 12%); } }
.shop-id { position: relative; display: flex; align-items: center; gap: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-weight: 900; font-size: 28px; border: 3px solid rgba(255,255,255,.35); flex: none; }
.avatar span { color: var(--acc); }
.shop-id h1 { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.online { margin: 4px 0 0; font-size: 12px; color: #d8d8d8; display: flex; align-items: center; gap: 6px; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }
.shop-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn-follow, .btn-chat { height: 30px; border-radius: 3px; border: 1px solid rgba(255,255,255,.75); background: transparent; color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-transform: uppercase; letter-spacing: .02em; transition: background .2s; }
.btn-follow:hover, .btn-chat:hover { background: rgba(255,255,255,.12); }
.btn-follow.on { background: var(--acc); border-color: var(--acc); }
.shop-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; font-size: 14px; }
.shop-stats li { display: flex; gap: 8px; align-items: center; }
.shop-stats span { color: #555; }
.shop-stats b { color: var(--acc); font-weight: 600; }

/* Thử đồ AI */
.try-strip { display: flex; align-items: center; gap: 20px; margin: 12px clamp(12px, 3vw, 40px) 0; padding: 14px 20px; background: #fff; border-radius: 4px; border-left: 4px solid var(--acc); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.try-copy { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
.try-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff1ec; color: var(--acc); display: grid; place-items: center; flex: none; }
.try-copy b { font-size: 16px; }
.try-copy p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.try-visual { display: flex; gap: 8px; }
.try-visual .bv { position: relative; inset: auto; width: 54px; aspect-ratio: 1; border-radius: 4px; transform: none; animation: none; box-shadow: none; border: 1px solid var(--line); }
.try-visual .bv:hover { scale: 1.12; }
.try-strip .btn.try { height: 38px; border-radius: 3px; padding: 0 22px; }

/* Voucher */
.vouchers { display: flex; gap: 12px; margin: 12px clamp(12px, 3vw, 40px) 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.voucher { flex: 0 0 auto; min-width: 250px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff6f3; border: 1px solid #ffd2c4; border-left: 4px solid var(--acc); border-radius: 3px; position: relative; }
.voucher::before, .voucher::after { content: ""; position: absolute; right: 74px; width: 12px; height: 12px; border-radius: 50%; background: #f5f5f5; }
.voucher::before { top: -7px; } .voucher::after { bottom: -7px; }
.v-left { display: flex; flex-direction: column; }
.v-left b { color: var(--acc); font-size: 15px; }
.v-left span { font-size: 12px; color: #666; }
.v-left em { font-style: normal; font-size: 11px; color: #999; }
.v-save { height: 28px; padding: 0 16px; border: 0; border-radius: 2px; background: var(--acc); color: #fff; font-weight: 600; font-size: 13px; }
.v-save.saved { background: #fff; color: var(--acc); border: 1px solid var(--acc); }
.voucher-line { color: var(--acc); }

/* Thanh sắp xếp */
.shop { padding: 14px clamp(12px, 3vw, 40px) 24px; }
.sort-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; background: #ededed; border-radius: 3px; margin-bottom: 12px; }
.sort-label { color: #555; font-size: 14px; margin-right: 4px; }
.sort-bar button, .sort-bar select { height: 34px; padding: 0 15px; border: 0; border-radius: 2px; background: #fff; font-size: 14px; color: #222; box-shadow: 0 1px 1px rgba(0,0,0,.06); transition: background .15s, color .15s; }
.sort-bar button.on, .sort-bar select.on { background: var(--acc); color: #fff; }
.sort-bar select { padding-right: 30px; }
.sort-count { margin-left: auto; font-size: 13px; color: #666; }

/* Lưới sản phẩm dày kiểu gian hàng */
.grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 10px; }
.card { background: #fff; border-radius: 3px; border: 1px solid transparent; box-shadow: 0 1px 1px rgba(0,0,0,.05); transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 4px 14px rgba(0,0,0,.1); z-index: 1; }
.card-media { aspect-ratio: 1 / 1; border-radius: 3px 3px 0 0; background: #fafafa; }
.card-body { padding: 8px 9px 2px; }
.card-body h4 { font-size: 13px; font-weight: 400; color: #222; min-height: 2.6em; }
.card:hover h4 { color: #222; }
.card-sub { display: none; }
.card-price b { font-size: 16px; font-weight: 600; }
.card-price s { font-size: 12px; }
.card-foot { margin-top: 6px; padding-bottom: 8px; }
.card-colors { gap: 4px; }
.dot { width: 14px; height: 14px; }
.badge.sale { top: 0; right: 0; border-radius: 0 3px 0 3px; background: #ffe97a; color: #ee4d2d; font-size: 12px; padding: 3px 6px; }
.stickers { top: 8px; left: 0; }
.sticker { border-radius: 0 3px 3px 0; padding: 2px 8px; font-size: 11px; box-shadow: none; }
.wm { bottom: 8px; right: 8px; font-size: 11px; padding: 1px 6px; }
.card-try { height: 32px; font-size: 12px; left: 8px; right: 8px; bottom: 8px; border-radius: 3px; }
.card .glare { display: none; }

@media (max-width: 900px) {
  .shop-hero { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .shop-stats { grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; }
  .try-strip { flex-wrap: wrap; }
  .try-visual { display: none; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .sort-bar { padding: 8px; gap: 6px; }
  .sort-label, .sort-count { display: none; }
  .sort-bar button, .sort-bar select { height: 30px; padding: 0 10px; font-size: 13px; }
  .shop-stats { grid-template-columns: 1fr; }
}
.avatar { display: flex; align-items: center; justify-content: center; line-height: 1; }
@media (max-width: 600px) {
  .shop-stats { grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
  .shop-stats li { flex-direction: column; align-items: flex-start; gap: 0; }
  .try-strip { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .try-strip .btn.try { width: 100%; }
  .shop-card { min-height: 0; }
  .avatar { width: 52px; height: 52px; font-size: 22px; }
}
.logo small { font-size: .5em; font-weight: 800; letter-spacing: .18em; margin-left: 6px; color: var(--muted); vertical-align: middle; }
.modal-card { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr); }
.pm-info h3 { font-size: 20px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pm-main video { object-fit: contain; }
.pm-buy .btn { white-space: nowrap; }
@media (max-width: 900px) { .modal-card { grid-template-columns: 1fr; } }
