/* Dhaka XR Shoe Try On — modern, mobile-first shop + AR try-on */
:root {
  --ink: #0b0b0c;
  --ink-2: #2a2a2e;
  --muted: #76767c;
  --line: #ececee;
  --bg: #ffffff;
  --soft: #f4f4f5;
  --card: #f6f6f7;
  --accent: #c8ff2e;          /* XR lime */
  --accent-ink: #0b0b0c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1200px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark img { height: 20px; width: auto; }
.brand-mark span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 22px; margin-left: 28px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.header-icons { margin-left: auto; display: flex; gap: 6px; }
.hbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; position: relative; }
.hbtn:hover { background: var(--soft); }
.hbtn svg { width: 21px; height: 21px; }
.hbtn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 760px) { .nav { display: none; } .brand-mark span { font-size: 10px; padding-left: 8px; } .brand-mark img { height: 17px; } }

/* ---------- hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 16px 16px 8px; }
.hero-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff; padding: 28px 22px 0; display: grid; grid-template-columns: 1fr; min-height: 420px; }
.hero-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(200,255,46,.35), rgba(200,255,46,0) 65%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(200,255,46,.2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(200,255,46,0); } }
.hero h1 { font-family: var(--display); font-size: clamp(38px, 8vw, 72px); line-height: .95; letter-spacing: -0.035em; margin: 14px 0 12px; position: relative; }
.hero p { color: #b9b9bf; font-size: 16px; line-height: 1.5; margin: 0 0 22px; max-width: 440px; position: relative; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.hero-shoe { position: relative; margin: 22px 0 22px; width: 100%; border-radius: 22px; background: #f4f4f5; aspect-ratio: 5/4; display: grid; place-items: center; overflow: hidden; }
.hero-shoe img { width: 86%; mix-blend-mode: multiply; transform: rotate(-6deg); }
@media (min-width: 900px) {
  .hero-card { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 56px 56px; min-height: 520px; }
  .hero-shoe { margin: 0; }
}

/* steps strip */
.steps { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { background: var(--soft); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.step b { display: block; font-family: var(--display); font-size: 22px; margin-bottom: 4px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .12s, background .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 13px; }

/* ---------- catalogue ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 20px 16px 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section h2 { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.section .sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.count { color: var(--muted); font-size: 13px; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scrollbar-width: none; position: sticky; top: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 10; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .img { position: relative; border-radius: var(--radius); background: var(--card); aspect-ratio: 4/5; overflow: hidden; display: grid; place-items: center; }
.card .img img { width: 88%; height: auto; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover .img img { transform: scale(1.05) rotate(-3deg); }
.ar-pill { position: absolute; left: 10px; top: 10px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 6px; }
.ar-pill svg { width: 13px; height: 13px; }
.fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.fav svg { width: 17px; height: 17px; }
.fav.on svg { fill: var(--ink); }
.quick-try { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 42px; border-radius: 999px; border: 0; background: rgba(11,11,12,.88); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; backdrop-filter: blur(6px); }
.quick-try svg { width: 17px; height: 17px; color: var(--accent); }
.card .meta { padding: 0 2px; }
.card .brand { font-size: 12px; color: var(--muted); font-weight: 600; }
.card .name { font-weight: 700; font-size: 15px; margin: 2px 0; }
.card .row { display: flex; align-items: center; justify-content: space-between; }
.card .price { font-weight: 800; font-size: 15px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- product page ---------- */
.pdp { max-width: 1200px; margin: 0 auto; padding: 8px 16px 120px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.gallery { position: relative; background: var(--card); border-radius: 28px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery img { width: 86%; mix-blend-mode: multiply; }
.gallery .try-float { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }
.pdp .brand { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pdp h1 { font-family: var(--display); font-size: 32px; letter-spacing: -0.02em; margin: 4px 0 6px; }
.pdp .colour { color: var(--muted); margin-bottom: 14px; }
.pdp .price { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.label-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.label-row a { color: var(--muted); font-weight: 600; text-decoration: underline; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 10px 0 22px; }
.size { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; cursor: pointer; }
.size.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.tryon-promo { display: flex; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 18px; }
.tryon-promo .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; }
.tryon-promo .ic svg { width: 24px; height: 24px; }
.tryon-promo b { display: block; font-size: 15px; }
.tryon-promo span { color: #b9b9bf; font-size: 13px; }
.tryon-promo .btn { margin-left: auto; height: 42px; padding: 0 16px; font-size: 14px; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.details summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; font-size: 20px; line-height: 1; }
.details details[open] summary::after { content: "–"; }
.details p { color: var(--ink-2); line-height: 1.6; margin: 10px 0 0; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.buybar .btn { flex: 1; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 60px; }
  .pdp .info { position: sticky; top: 84px; align-self: start; }
  .buybar { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; margin-bottom: 20px; }
}

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.footer { max-width: 1200px; margin: 40px auto 0; padding: 28px 16px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.footer img { height: 16px; opacity: .8; }
.fab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ======================================================================
   TRY-ON
   ====================================================================== */
body.tryon { background: #000; color: #fff; overflow: hidden; height: 100dvh; }
.tryon-stage { position: fixed; inset: 0; overflow: hidden; }
#ck-canvas, #fallback-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#fallback-video { display: none; }
.t-top { position: absolute; top: 0; left: 0; right: 0; padding: max(12px, env(safe-area-inset-top)) 14px 24px; display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); z-index: 5; }
.glass { background: rgba(20,20,22,.42); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.14); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 21px; height: 21px; }
.t-top .brand-mark img { height: 17px; }
.t-top .live { margin-left: 6px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.t-top .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.t-top .spacer { flex: 1; }

.t-hint { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); text-align: center; z-index: 4; pointer-events: none; transition: opacity .5s; width: 80%; }
.t-hint .frame { width: 200px; height: 200px; margin: 0 auto 16px; position: relative; }
.t-hint .frame::before, .t-hint .frame::after { content: ""; position: absolute; inset: 0; border-radius: 28px; border: 2px solid rgba(255,255,255,.85); clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0, 100% 0, 100% 100%, 0 100%); }
.t-hint .frame::after { border-color: transparent; }
.t-hint .feet { position: absolute; inset: 0; display: grid; place-items: center; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.t-hint p { margin: 0; font-weight: 800; font-size: 18px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.t-hint small { display: block; margin-top: 6px; color: rgba(255,255,255,.8); font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.t-hint.hide { opacity: 0; }

.t-side { position: absolute; right: 14px; top: 42%; z-index: 5; display: flex; flex-direction: column; gap: 10px; }

.t-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 0 max(14px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.72) 38%); }
.sheet { margin: 0 12px 10px; border-radius: 22px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; }
.sheet .txt { flex: 1; min-width: 0; }
.sheet .brand { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); font-weight: 700; }
.sheet .name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .price { font-weight: 700; color: var(--accent); font-size: 14px; margin-top: 1px; }
.sheet .btn { height: 46px; }
.cats { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.cat.on { background: #fff; color: var(--ink); }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 76px; border: 0; padding: 0; background: none; cursor: pointer; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; }
.thumb .disc { width: 72px; height: 72px; border-radius: 50%; position: relative; transition: transform .2s; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.thumb img { width: 100%; height: 100%; border-radius: 50%; }
.thumb.on { color: #fff; }
.thumb.on .disc { transform: scale(1.08); box-shadow: 0 0 0 3px var(--accent); }
.thumb .lbl { max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .spin { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: spin .8s linear infinite; display: none; }
.thumb.loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.t-overlay { position: absolute; inset: 0; z-index: 20; background: #0b0b0c; display: none; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.t-overlay.show { display: flex; }
.t-overlay .box { max-width: 360px; width: 100%; }
.t-overlay .logo { height: 20px; margin: 0 auto 26px; opacity: .9; }
.t-overlay h2 { font-family: var(--display); margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.t-overlay p { color: #a9a9b0; line-height: 1.55; margin: 0 0 20px; }
.t-overlay .qr { background: #fff; padding: 14px; border-radius: 22px; display: inline-block; margin: 6px 0 18px; }
.t-overlay .qr img { width: 200px; height: 200px; }
.t-overlay .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.loader-ring { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid #232326; border-top-color: var(--accent); animation: spin .9s linear infinite; }
.progress { height: 4px; border-radius: 4px; background: #232326; overflow: hidden; margin: 0 auto 12px; width: 180px; }
.progress i { display: block; height: 100%; width: 30%; background: var(--accent); border-radius: 4px; animation: load 1.4s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.t-banner { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 58px); left: 12px; right: 12px; z-index: 6; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.45; display: none; box-shadow: var(--shadow); }
.t-banner.show { display: block; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 15; transition: opacity .25s; }
.flash.on { opacity: .85; transition: none; }

@media (min-width: 900px) {
  body.tryon .tryon-stage { left: 50%; width: min(460px, 100vw); transform: translateX(-50%); border-left: 1px solid #1c1c1f; border-right: 1px solid #1c1c1f; }
}
