/* =========================================================
   Source Connect Global — Marketplace storefront
   Layout: dense marketplace grid (white panels on cool grey),
   one cinematic moment: the China → Sri Lanka globe.
   ========================================================= */
:root {
  --navy: #0b2a6f;
  --navy-2: #123a91;
  --ink: #050b1c;
  --red: #d7141a;
  --red-2: #f0353b;
  --gold: #ffcc4d;
  --bg: #eff1f6;
  --card: #ffffff;
  --text: #1c2233;
  --muted: #6b7489;
  --line: #e4e7ef;
  --ok: #15803d;
  --radius: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Playfair Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.45; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pic { width: 100%; height: 100%; stroke: none; }
.pic * { stroke-linecap: round; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: linear-gradient(90deg, var(--gold), var(--red)); transform-origin: left; transform: scaleX(0); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c8d0e4; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 32px; }
.ticker { flex: 1; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 45s linear infinite; }
.ticker-track span { padding-right: 70px; }
.toplinks { display: flex; gap: 18px; flex-shrink: 0; }
.toplinks a:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 60%, #1b2f86 100%); color: #fff; box-shadow: 0 6px 20px -12px rgba(5, 11, 28, .6); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 46px; height: 46px; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.logo b { display: block; font-family: var(--display); font-size: 19px; line-height: 1; }
.logo small { font-size: 9.5px; letter-spacing: .38em; color: var(--gold); font-weight: 700; }
.search { flex: 1; display: flex; position: relative; height: 44px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.search select { border: 0; background: #f3f5fa; color: var(--text); padding: 0 10px; border-radius: 8px 0 0 8px; max-width: 150px; font-size: 13px; outline: none; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; color: var(--text); outline: none; font-size: 14px; background: transparent; }
.search > button { width: 56px; background: var(--red); color: #fff; border-radius: 0 8px 8px 0; display: grid; place-items: center; transition: background .2s; }
.search > button:hover { background: var(--red-2); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--text); border-radius: 8px; box-shadow: 0 20px 40px -10px rgba(5,11,28,.35); overflow: hidden; z-index: 5; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; }
.suggest a:hover, .suggest a.on { background: #f3f5fa; }
.suggest .th { width: 34px; height: 34px; border-radius: 6px; background: #f3f5fa; flex-shrink: 0; overflow: hidden; }
.suggest .th img { width: 100%; height: 100%; object-fit: cover; }
.suggest small { margin-left: auto; color: var(--red); font-weight: 700; }
.header-actions { display: flex; gap: 6px; }
.hbtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 8px; font-size: 11px; }
.hbtn:hover { background: rgba(255,255,255,.1); }
.hbtn svg { width: 24px; height: 24px; }
.hbtn em { font-style: normal; opacity: .85; }
.count { position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 10.5px; font-weight: 900; display: grid; place-items: center; }
.count:empty { display: none; }
.count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 50% { transform: scale(1.5); } }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.burger { display: none; color: #fff; }

.navbar { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; gap: 4px; height: 42px; overflow-x: auto; scrollbar-width: none; }
.navbar-inner::-webkit-scrollbar { display: none; }
.navbar a { padding: 0 12px; font-size: 13.5px; font-weight: 500; white-space: nowrap; height: 42px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.navbar a:hover, .navbar a.on { color: var(--navy); border-bottom-color: var(--red); }
.navbar a.hot { color: var(--red); font-weight: 700; }
.navlinks { display: flex; gap: 4px; height: 100%; }
.cats-drop { position: relative; height: 100%; }
.cats-btn { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 0; font-weight: 700; font-size: 13.5px; color: var(--navy); }
.cats-menu { position: fixed; z-index: 70; width: 250px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 24px 50px -20px rgba(5,11,28,.45); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.cats-drop:hover .cats-menu, .cats-drop:focus-within .cats-menu { opacity: 1; visibility: visible; transform: none; }

/* category list (shared by hero sidebar + dropdown) */
.catlist a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 13.5px; transition: background .2s, color .2s, padding .25s var(--ease); }
.catlist a:hover { background: #f3f5fa; color: var(--red); padding-left: 18px; }
.catlist .ci { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.catlist .ci .pic { width: 22px; height: 22px; }
.catlist a::after { content: '›'; margin-left: auto; color: #b5bccb; font-size: 16px; }

/* ---------- Drawer (mobile) ---------- */
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 120; background: #fff; transform: translateX(-100%); transition: transform .45s var(--ease); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 18px; background: var(--navy); color: #fff; position: sticky; top: 0; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(5,11,28,.55); opacity: 0; visibility: hidden; transition: .3s; }
.scrim.open { opacity: 1; visibility: visible; }

/* ---------- Panels ---------- */
main { min-height: 60vh; padding-bottom: 40px; }
.panel { background: var(--card); border-radius: var(--radius); }
.sec { margin-top: 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); }
.sec-head a.more { font-size: 13px; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 6px; padding: 6px 12px; transition: .2s; white-space: nowrap; }
.sec-head a.more:hover { background: var(--red); color: #fff; }

/* ---------- Hero: categories | globe | promos ---------- */
.hero { display: grid; grid-template-columns: 230px minmax(0, 1fr) 250px; gap: 12px; margin-top: 12px; }
.hero-cats { padding: 8px 0; overflow: hidden; }
.hero-cats h3 { margin: 4px 14px 6px; font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.stage { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px; background: radial-gradient(ellipse at 70% 50%, #10235f 0%, #060d2b 55%, #030716 100%); color: #fff; isolation: isolate; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; cursor: grab; touch-action: pan-y; }
.stage::before, .stage::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; background: #000; z-index: 3; transform: scaleY(1); transform-origin: top; animation: bars 1.6s var(--ease) .2s both; }
.stage::before { top: 0; } .stage::after { bottom: 0; transform-origin: bottom; }
@keyframes bars { from { transform: scaleY(7); } to { transform: scaleY(1); } }
.stage-copy { position: relative; z-index: 2; padding: 38px 0 0 30px; max-width: 50%; pointer-events: none; text-shadow: 0 2px 12px rgba(3,7,22,.6); }
.stage-copy * { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: 11.5px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; backdrop-filter: blur(6px); }
.chip .flag { display: inline-flex; gap: 6px; align-items: center; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stage h1 { font-family: var(--display); font-size: clamp(28px, 2.7vw, 40px); line-height: 1.04; margin: 14px 0 10px; font-weight: 900; text-wrap: balance; }
.stage h1 .ln { display: block; overflow: hidden; }
.stage h1 .ln span { display: inline-block; transform: translateY(105%); animation: up 1.1s var(--ease) forwards; }
.stage h1 .ln:nth-child(2) span { animation-delay: .15s; background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
@keyframes up { to { transform: none; } }
.stage p { margin: 0 0 18px; color: #c6d0ec; font-size: 14px; max-width: 360px; opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
.stage .cta-row { display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s var(--ease) .7s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stage-stats { display: flex; gap: 24px; margin-top: 22px; }
.stage-stats b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.stage-stats small { font-size: 10.5px; letter-spacing: .14em; color: #aab6d6; text-transform: uppercase; }
.legend { position: absolute; z-index: 2; right: 18px; top: 30px; display: grid; gap: 6px; font-size: 11px; color: #c6d0ec; background: rgba(5,11,28,.45); border: 1px solid rgba(255,255,255,.1); padding: 8px 12px; border-radius: 8px; backdrop-filter: blur(6px); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 2px; border-radius: 2px; }
.timeline { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.timeline div { position: relative; padding-top: 12px; font-size: 11px; color: #8d99bb; transition: color .4s; }
.timeline div::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); }
.timeline div::after { content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .8s var(--ease); }
.timeline div.done { color: #dfe6fb; }
.timeline div.done::after, .timeline div.on::after { width: 100%; }
.timeline div.on { color: #fff; font-weight: 700; }
.timeline b { display: block; font-size: 12px; color: inherit; }
.arrive-toast { position: absolute; z-index: 4; right: 18px; bottom: 82px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 12px; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transform: translateY(16px); opacity: 0; transition: .5s var(--ease); }
.arrive-toast.show { transform: none; opacity: 1; }
.arrive-toast b { color: var(--ok); }

.promos { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.promo { position: relative; border-radius: var(--radius); overflow: hidden; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; isolation: isolate; min-height: 140px; }
.promo::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #050b1c)); transition: transform .8s var(--ease); }
.promo:hover::before { transform: scale(1.06); }
.promo .art { position: absolute; right: -10px; bottom: -6px; width: 56%; z-index: -1; transition: transform .8s var(--ease); filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.promo .art img { border-radius: 8px; }
.promo:hover .art { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.promo small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.promo b { font-family: var(--display); font-size: 24px; line-height: 1.05; margin: 4px 0; max-width: 60%; }
.promo span { font-size: 12.5px; opacity: .9; max-width: 55%; }
.promo em { margin-top: auto; font-style: normal; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); align-self: flex-start; padding: 6px 12px; border-radius: 999px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 13.5px; background: var(--red); color: #fff; transition: .2s; white-space: nowrap; }
.btn:hover { background: var(--red-2); box-shadow: 0 10px 24px -10px rgba(215,20,26,.8); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); box-shadow: 0 10px 24px -10px rgba(11,42,111,.8); }
.btn.ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.line { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.line:hover { background: var(--navy); color: #fff; }
.btn.full { width: 100%; }
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Service strip ---------- */
.services { display: grid; grid-template-columns: repeat(var(--n, 8), 1fr); gap: 8px; padding: 14px 10px; }
.svc { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 500; padding: 6px 2px; border-radius: 8px; transition: transform .3s var(--ease); }
.svc:hover { transform: translateY(-3px); color: var(--red); }
.svc .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 8px 18px -10px var(--c); }
.svc .ic svg { width: 24px; height: 24px; }

/* ---------- Flash sale ---------- */
.flash-head { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.flash-head .on-sale { color: var(--red); font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.countdown { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.countdown b { background: var(--red); color: #fff; border-radius: 5px; padding: 3px 6px; font-variant-numeric: tabular-nums; font-size: 14px; min-width: 30px; text-align: center; }
.flash-head .more { margin-left: auto; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 50px) / 6); gap: 10px; padding: 12px 14px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* ---------- Categories grid ---------- */
.catgrid { display: grid; grid-template-columns: repeat(10, 1fr); }
.cat { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 14px; text-align: center; font-size: 12.5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: box-shadow .25s, transform .25s var(--ease); background: #fff; }
.cat:hover { box-shadow: 0 10px 26px -14px rgba(5,11,28,.4); transform: translateY(-2px); position: relative; z-index: 1; color: var(--red); }
.cat .ci { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, color-mix(in srgb, var(--c) 16%, #f3f5fa)); transition: transform .4s var(--ease); }
.cat:hover .ci { transform: scale(1.08) rotate(-4deg); }
.cat .ci .pic { width: 54px; height: 54px; }

/* ---------- Collection banners ---------- */
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.banner { position: relative; height: 150px; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 35%, #050b1c)); }
.banner .stack { position: absolute; right: 8px; top: 12px; bottom: 6px; width: 50%; z-index: -1; }
.banner .stack div { position: absolute; top: 0; height: 100%; aspect-ratio: 1; transition: transform .7s var(--ease); filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
.banner .stack div:nth-child(1) { right: 34%; transform: rotate(-10deg) scale(.8); }
.banner .stack div:nth-child(2) { right: 0; transform: rotate(8deg) scale(.86); }
.banner:hover .stack div:nth-child(1) { transform: rotate(-16deg) scale(.86) translateX(-10px); }
.banner:hover .stack div:nth-child(2) { transform: rotate(12deg) scale(.92) translateX(6px); }
.banner b { font-family: var(--display); font-size: 24px; max-width: 55%; line-height: 1.1; }
.banner span { font-size: 12.5px; opacity: .85; max-width: 52%; margin-top: 4px; }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.card { position: relative; background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease); min-width: 0; }
.card:hover { box-shadow: 0 14px 30px -16px rgba(5,11,28,.45); transform: translateY(-2px); }
.card .media { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff 0%, color-mix(in srgb, var(--c) 13%, #f1f3f8) 75%); overflow: hidden; }
.card .media .pic { position: absolute; inset: 10%; width: 80%; height: 80%; transition: transform .6s var(--ease); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .media .pic, .card:hover .media img { transform: scale(1.07); }
.card .tag-off { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.card .tag-new { position: absolute; top: 8px; left: 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.heart { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: #8a93a8; opacity: 0; transition: .2s; z-index: 2; }
.heart svg { width: 17px; height: 17px; }
.card:hover .heart, .heart.on { opacity: 1; }
.heart.on { color: var(--red); }
.heart.on svg { fill: var(--red); }
.card .info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .title { font-size: 13px; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .price { color: var(--red); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card .was { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; min-height: 16px; }
.card .was s { color: #9aa2b4; }
.card .was b { color: var(--text); font-weight: 500; }
.card .meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 1px; color: #f5a524; }
.stars svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.stars .off { color: #d7dbe5; }
.origin { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--navy); background: #e9eefc; padding: 2px 6px; border-radius: 4px; width: fit-content; }
.origin svg { width: 12px; height: 12px; }
.origin.local { color: var(--ok); background: #e7f6ec; }
.soldbar { height: 14px; border-radius: 7px; background: #ffe1e2; position: relative; overflow: hidden; margin-top: 6px; }
.soldbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--red), #ff6b6e); border-radius: 7px; }
.soldbar span { position: relative; font-size: 10px; color: #fff; font-weight: 700; padding-left: 8px; line-height: 14px; display: block; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.add-mini { margin-top: auto; padding-top: 6px; }
.add-mini button { width: 100%; font-size: 12px; font-weight: 700; padding: 7px; border-radius: 6px; border: 1px solid var(--navy); color: var(--navy); transition: .2s; }
.add-mini button:hover { background: var(--navy); color: #fff; }

.jfy-head { display: flex; align-items: center; gap: 14px; margin: 26px 0 10px; }
.jfy-head h2 { margin: 0; font-size: 20px; }
.jfy-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jfy-tabs button { padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); }
.jfy-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.loader { display: flex; justify-content: center; padding: 22px; color: var(--muted); font-size: 13px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d7dbe5; border-top-color: var(--red); animation: spin .8s linear infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Listing ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 14px 0 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red); }
.listing { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.filters { padding: 14px; position: sticky; top: 130px; }
.filters h4 { margin: 0 0 8px; font-size: 13px; }
.filters .grp { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters .grp:last-child { border: 0; margin: 0; padding: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.filters input[type=checkbox], .filters input[type=radio] { accent-color: var(--red); width: 15px; height: 15px; }
.price-row { display: flex; gap: 6px; align-items: center; }
.price-row input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.list-top { padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.list-top h1 { font-size: 18px; margin: 0; }
.list-top .n { color: var(--muted); font-size: 13px; }
.list-top select { margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; }
.filter-btn { display: none; }
.listing .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cat-hero { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; padding: 22px 24px; margin-bottom: 10px; isolation: isolate; min-height: 110px; display: flex; flex-direction: column; justify-content: center; }
.cat-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 35%, #050b1c)); }
.cat-hero .art { position: absolute; right: 24px; top: 50%; width: 120px; height: 120px; transform: translateY(-50%) rotate(-8deg); z-index: -1; opacity: .9; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-58%) rotate(-4deg); } }
.cat-hero h1 { margin: 0; font-family: var(--display); font-size: 30px; }
.cat-hero p { margin: 4px 0 0; opacity: .85; max-width: 60%; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty h3 { color: var(--text); margin: 0 0 6px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.pdp-main { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; padding: 20px; }
.gallery .big { position: relative; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fff, color-mix(in srgb, var(--c) 16%, #eef1f7)); overflow: hidden; cursor: zoom-in; }
.gallery .big .pic { position: absolute; inset: 8%; width: 84%; height: 84%; transition: transform .3s; }
.gallery .big img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs button { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #f3f5fa; padding: 4px; }
.gallery .thumbs button.on { border-color: var(--red); }
.pdp h1 { font-size: 22px; font-weight: 500; margin: 0 0 8px; line-height: 1.3; }
.pdp .sub { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.pdp .sub a { color: var(--navy); }
.flash-strip { margin-top: 14px; background: linear-gradient(90deg, var(--red), #ff5a3c); color: #fff; padding: 10px 14px; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: 10px; flex-wrap: wrap; }
.flash-strip .countdown { color: #fff; }
.flash-strip .countdown b { background: rgba(0,0,0,.3); }
.price-box { background: #fafbfd; padding: 14px; border-radius: 8px; margin-top: 14px; }
.flash-strip + .price-box { margin-top: 0; border-radius: 0 0 8px 8px; }
.price-box .now { font-size: 30px; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-box .old { color: var(--muted); font-size: 14px; display: flex; gap: 10px; }
.price-box .old b { color: var(--text); }
.opt { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 16px; font-size: 13px; }
.opt > span { color: var(--muted); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--line); background: #f3f5fa; padding: 3px; }
.swatches button.on { border-color: var(--red); }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sizes button { min-width: 42px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; }
.sizes button.on { border-color: var(--red); color: var(--red); font-weight: 700; background: #fff3f3; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.qty button { width: 34px; height: 34px; font-size: 18px; color: var(--muted); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 10px; margin-top: 22px; }
.buy-row .btn { flex: 1; padding: 14px; font-size: 15px; }
.side-box { padding: 14px; font-size: 13px; }
.side-box h4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.side-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-row:last-child { border: 0; }
.side-row svg { flex-shrink: 0; color: var(--navy); }
.side-row b { display: block; }
.side-row small { color: var(--muted); }
.seller { display: flex; align-items: center; gap: 10px; }
.seller img { width: 42px; height: 42px; border-radius: 50%; }
.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.seller-stats b { display: block; font-size: 17px; color: var(--navy); }
.seller-stats small { font-size: 10.5px; color: var(--muted); }
.route-mini { margin-top: 12px; border-radius: 8px; padding: 10px; background: linear-gradient(120deg, #0b2a6f, #050b1c); color: #fff; font-size: 12px; }
.route-mini .line { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.route-mini .line i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 20px 0; } }
.tabs-box { padding: 0; margin-top: 14px; }
.tabs-box nav { display: flex; border-bottom: 1px solid var(--line); }
.tabs-box nav button { padding: 14px 18px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs-box nav button.on { color: var(--navy); border-color: var(--red); }
.tabs-box .body { padding: 18px; }
.spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--muted); width: 160px; }
.rating-sum { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.rating-sum .big { font-size: 46px; font-weight: 700; }
.rbars { display: grid; gap: 4px; font-size: 12px; min-width: 220px; }
.rbars div { display: grid; grid-template-columns: 30px 1fr 40px; gap: 8px; align-items: center; }
.rbars i { height: 8px; border-radius: 4px; background: #eef0f5; overflow: hidden; display: block; }
.rbars i em { display: block; height: 100%; background: #f5a524; }

/* ---------- Cart / checkout ---------- */
.cart-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 24px 84px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.cart-row .th { width: 84px; height: 84px; border-radius: 8px; background: #f3f5fa; overflow: hidden; display: grid; place-items: center; }
.cart-row .th .pic { width: 86%; height: 86%; }
.cart-row .th img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.cart-row small { color: var(--muted); }
.cart-row .p { color: var(--red); font-weight: 700; font-size: 16px; text-align: right; min-width: 100px; }
.cart-row .rm { color: var(--muted); }
.cart-row .rm:hover { color: var(--red); }
.cart-row input[type=checkbox] { accent-color: var(--red); width: 17px; height: 17px; }
.summary { padding: 16px; position: sticky; top: 130px; }
.summary h3 { margin: 0 0 12px; font-size: 17px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: var(--muted); }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.sum-row.total span:last-child { color: var(--red); font-size: 20px; }
.free-note { font-size: 12px; background: #e7f6ec; color: var(--ok); padding: 8px 10px; border-radius: 6px; margin: 10px 0; }
.free-note.need { background: #fff7e6; color: #92400e; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.form h3 { grid-column: 1 / -1; margin: 0; }
.form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 14px; color: var(--text); background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,42,111,.1); }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--text); font-size: 13.5px; }
.pay-opt:has(input:checked) { border-color: var(--red); background: #fff6f6; }
.pay-opt input { accent-color: var(--red); }
.success { text-align: center; padding: 50px 20px; }
.success .tick { width: 76px; height: 76px; border-radius: 50%; background: #e7f6ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .6s var(--ease); }
.success .tick svg { width: 38px; height: 38px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.track-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 6px; }
.track-steps div { text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 34px; }
.track-steps div::before { content: ''; position: absolute; top: 8px; left: calc(50% - 10px); width: 20px; height: 20px; border-radius: 50%; background: #e3e6ee; }
.track-steps div.done { color: var(--text); font-weight: 700; }
.track-steps div.done::before { background: var(--ok); box-shadow: 0 0 0 5px #d5f0de; }

/* ---------- China Direct page ---------- */
.cd-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step { padding: 18px; position: relative; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.faq details { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9c2d9; margin-top: 30px; padding-top: 40px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer h5 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 24px; padding-bottom: 24px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.logo.light b { color: #fff; }

/* misc */
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 300; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 13px; opacity: 0; visibility: hidden; transition: .35s var(--ease); max-width: calc(100% - 32px); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 24px; z-index: 50; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(5,11,28,.7); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.bottom-nav { display: none; }
.reveal { animation: fadeUp .6s var(--ease) both; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) 230px; }
  .hero-cats { display: none; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .listing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catgrid { grid-template-columns: repeat(5, 1fr); }
  .rail { grid-auto-columns: calc((100% - 40px) / 5); }
}
@media (max-width: 960px) {
  .toplinks { display: none; }
  .hero { grid-template-columns: 1fr; }
  .promos { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 120; width: min(300px, 86vw); border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .4s var(--ease); }
  .filters.open { transform: none; }
  .filter-btn { display: inline-flex; }
  .listing .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1fr; }
  .pdp-main { grid-template-columns: 1fr; }
  .cart-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .banners { grid-template-columns: 1fr; }
  .stage-copy { max-width: 60%; }
}
@media (max-width: 680px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .header-inner { height: auto; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px 10px; }
  .burger { display: grid; margin-left: -8px; }
  .logo img { width: 36px; height: 36px; }
  .logo b { font-size: 16px; }
  .header-actions { margin-left: auto; }
  .hbtn em { display: none; }
  .search { order: 5; flex-basis: 100%; height: 40px; }
  .search select { display: none; }
  .navbar { display: none; }
  .stage { min-height: 600px; }
  .stage-copy { max-width: none; padding: 30px 18px 0; }
  .stage .cta-row .btn { padding: 10px 14px; font-size: 13px; }
  .stage h1 { font-size: 30px; }
  .stage p { font-size: 13px; }
  .stage-stats { display: none; }
  .legend { display: none; }
  .timeline { left: 12px; right: 12px; bottom: 26px; }
  .timeline div { font-size: 0; }
  .timeline b { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arrive-toast { right: 12px; left: 12px; bottom: 74px; }
  .promos { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(4, 1fr); padding: 10px 4px; }
  .svc .ic { width: 42px; height: 42px; }
  .grid, .listing .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rail { grid-auto-columns: 42%; }
  .catgrid { grid-template-columns: repeat(4, 1fr); }
  .cat .ci { width: 54px; height: 54px; }
  .cat .ci .pic { width: 42px; height: 42px; }
  .cat { font-size: 11.5px; padding: 12px 4px; }
  .heart { opacity: 1; }
  .cart-row { grid-template-columns: 22px 64px minmax(0, 1fr); }
  .cart-row .th { width: 64px; height: 64px; }
  .cart-row .p, .cart-row .rm { grid-column: 3; text-align: left; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .track-steps div { font-size: 10px; }
  .cat-hero p { max-width: 70%; }
  .cat-hero .art { width: 84px; height: 84px; right: 12px; }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .bottom-nav a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0; font-size: 10.5px; color: var(--muted); }
  .bottom-nav a.on { color: var(--red); }
  .bottom-nav .count { right: calc(50% - 22px); top: 2px; background: var(--red); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- v3: import countries, photo galleries ---------- */
.cc { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.route-mini .cc { background: rgba(255,255,255,.15); }
.chip .flag[data-from] { transition: opacity .25s; }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.country { background: #fff; border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; transition: transform .25s var(--ease), box-shadow .25s; border: 1px solid transparent; }
.country:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(5,11,28,.45); border-color: var(--red); }
.country .cc { width: 40px; height: 26px; font-size: 12px; background: linear-gradient(135deg, var(--navy), var(--red)); }
.country.local .cc { background: linear-gradient(135deg, #15803d, #0f766e); }
.country b { font-size: 14px; margin-top: 6px; }
.country small { color: var(--muted); font-size: 12px; }
.card .media img.alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.card:hover .media.has-alt img.alt { opacity: 1; }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.catgrid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .catgrid { grid-template-columns: repeat(4, 1fr); } }
.banners { grid-template-columns: repeat(var(--n, 3), 1fr); }
.cat .ci { overflow: hidden; }
@media (max-width: 680px) { .countries { grid-template-columns: repeat(2, 1fr); } .catgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .banners { grid-template-columns: 1fr; } }

/* ---------- admin edit bar on the storefront ---------- */
.admin-bar { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 24px; z-index: 90; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 100px); background: var(--ink); color: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 14px 34px -10px rgba(5,11,28,.6); font-size: 12.5px; }
.admin-bar .ab-tag { background: var(--red); border-radius: 999px; padding: 5px 10px; font-weight: 900; font-size: 10.5px; letter-spacing: .12em; }
.admin-bar a { padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.admin-bar a:hover, .admin-bar button:hover { background: rgba(255,255,255,.14); }
.admin-bar button { color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; opacity: .8; }
@media (max-width: 680px) { .admin-bar { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); border-radius: 14px; } }

/* ---------- customer account ---------- */
.hbtn.acc.signed svg { color: var(--gold); }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--red)); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .04em; }
.acct-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #eef3ff; font-size: 13px; color: var(--text); }
.acct-note.new { background: #fff7e6; }
.acct-note.new > svg { width: 28px; height: 28px; color: #b45309; flex-shrink: 0; }
.acct-note small { color: var(--muted); }
.acct-note > span:not(.avatar) { flex: 1; min-width: 0; }
.link-sm { color: var(--navy); font-weight: 700; font-size: 13px; white-space: nowrap; }
.link-sm:hover { color: var(--red); }
.acct-created { display: flex; gap: 12px; align-items: center; text-align: left; max-width: 520px; margin: 16px auto 0; padding: 14px 16px; border-radius: 12px; background: #e7f6ec; animation: fadeUp .6s var(--ease) both .2s; }
.acct-created small { color: #166534; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
.acct-grid > div { display: grid; gap: 14px; align-content: start; }
.acct-empty { text-align: center; padding: 34px 24px; display: grid; gap: 12px; justify-items: center; }
.acct-empty > svg { width: 48px; height: 48px; color: var(--navy); }
.acct-empty h2 { margin: 0; font-size: 20px; }
.acct-empty p { margin: 0; color: var(--muted); max-width: 420px; }
.acct-head { display: flex; gap: 16px; align-items: center; padding: 18px 20px; flex-wrap: wrap; }
.acct-head .avatar { width: 58px; height: 58px; font-size: 20px; }
.acct-head h2 { margin: 0; font-size: 22px; }
.acct-head small { color: var(--muted); }
.acct-stats { display: flex; gap: 26px; margin-left: auto; }
.acct-stats b { display: block; font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.acct-stats small { font-size: 11.5px; }
.acct-order { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ao-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.ao-total { margin-left: auto; color: var(--red); }
.ao-status { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff3d6; color: #92400e; }
.ao-status.ok { background: #e7f6ec; color: var(--ok); }
.ao-status.x { background: #fde8e9; color: var(--red); }
.ao-items { display: flex; gap: 8px; align-items: center; }
.ao-th { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.ao-th .pic { width: 86%; height: 86%; }
.ao-th img { width: 100%; height: 100%; object-fit: cover; }
.ao-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ao-bar i { height: 4px; border-radius: 2px; background: #e3e6ee; }
.ao-bar i.on { background: linear-gradient(90deg, var(--ok), #22c55e); }
.ao-actions { display: flex; gap: 16px; }
.acct-side { padding: 16px; display: grid; gap: 10px; }
@media (max-width: 960px) { .acct-grid { grid-template-columns: 1fr; } .acct-stats { margin-left: 0; width: 100%; } }
.form .pay-opt { display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: 13.5px; }
.form .pay-opt svg { flex-shrink: 0; }
.form .pay-opt input { width: auto; flex: 0 0 auto; padding: 0; }
.form .pay-opt span { flex: 1; min-width: 0; }

/* ---------- stock + checkout errors ---------- */
.stock-warn { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--red); }
.co-err { background: #fde8e9; color: #991b1b; border: 1px solid #f7c6c8; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 500; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.add-mini button:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; background: #f3f5fa; }

/* =========================================================
   Cinematic welcome intro
   ========================================================= */
html.intro-on body { overflow: hidden; }
html.intro-on body::before { content: ''; position: fixed; inset: 0; z-index: 999; background: #030716; }   /* cover until the intro is built */
.intro { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: #fff; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #0e2160 0%, #050c2a 45%, #02040f 100%); isolation: isolate; --px: 0px; --py: 0px; }
.in-globe { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: 0; z-index: -3; animation: inGlobe 3.2s cubic-bezier(.22,1,.36,1) .2s forwards; }
@keyframes inGlobe { from { opacity: 0; transform: scale(1.35); } to { opacity: .42; transform: scale(1); } }
.in-vignette { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at center, transparent 30%, rgba(2,4,15,.85) 80%); }
.in-grain { position: absolute; inset: -50%; z-index: -1; opacity: .07; pointer-events: none; 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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: inGrain 1s steps(6) infinite; }
@keyframes inGrain { 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } }
.in-bar { position: absolute; left: 0; right: 0; height: 11vh; background: #000; z-index: 5; }
.in-bar.t { top: 0; animation: inBarT 1.4s cubic-bezier(.77,0,.175,1) both; }
.in-bar.b { bottom: 0; animation: inBarB 1.4s cubic-bezier(.77,0,.175,1) both; }
@keyframes inBarT { from { transform: translateY(0) scaleY(5); transform-origin: top; } to { transform: none; } }
@keyframes inBarB { from { transform: translateY(0) scaleY(5); transform-origin: bottom; } to { transform: none; } }
.in-flare { position: absolute; top: 38%; left: -45%; width: 45%; height: 2px; z-index: 4; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 40px 10px rgba(255,214,90,.45); animation: inFlare 1.5s cubic-bezier(.77,0,.175,1) .9s forwards; opacity: .9; }
@keyframes inFlare { to { left: 140%; } }
.in-center { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 0 20px; transform: translate(var(--px), var(--py)); transition: transform .6s cubic-bezier(.22,1,.36,1); }
/* emblem */
.in-emblem { position: relative; width: min(240px, 52vw); aspect-ratio: 1; perspective: 900px; }
.in-emblem img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transform: scale(.35) rotateY(80deg); filter: blur(14px) brightness(1.6); animation: inEmblem 1.7s cubic-bezier(.22,1,.36,1) .5s forwards; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 30px 80px -10px rgba(0,0,0,.8); }
@keyframes inEmblem { 60% { filter: blur(0) brightness(1.15); } to { opacity: 1; transform: none; filter: none; } }
.in-halo { position: absolute; inset: -18%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(215,20,26,.35), rgba(11,42,111,.25) 45%, transparent 70%); opacity: 0; animation: inFade 1.6s ease 1s forwards, inPulse 4s ease-in-out 2.6s infinite; }
@keyframes inPulse { 50% { transform: scale(1.08); opacity: .75; } }
.in-ring { position: absolute; z-index: 1; border-radius: 50%; opacity: 0; }
.in-ring.r1 { inset: -9%; border: 1.5px solid transparent; background: conic-gradient(from 0deg, transparent 0 55%, #d7141a 70%, #ffcc4d 80%, transparent 92%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); animation: inFade .8s ease 1.4s forwards, inSpin 3.5s linear 1.4s infinite; }
.in-ring.r2 { inset: -17%; border: 1px dashed rgba(255,255,255,.22); animation: inFade 1s ease 1.6s forwards, inSpin 26s linear infinite reverse; }
@keyframes inSpin { to { transform: rotate(360deg); } }
@keyframes inFade { to { opacity: 1; } }
.in-shine { position: absolute; inset: 0; z-index: 3; border-radius: 50%; overflow: hidden; pointer-events: none; }
.in-shine::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: inShine 1.4s cubic-bezier(.77,0,.175,1) 2s forwards, inShine2 6s ease-in-out 5s infinite; }
@keyframes inShine { to { left: 130%; } }
@keyframes inShine2 { 0%, 80% { left: -60%; } 100% { left: 130%; } }
.in-orbit { position: absolute; inset: -17%; z-index: 1; animation: inSpin 12s linear infinite; opacity: 0; animation: inSpin 12s linear infinite, inFade 1s ease 1.8s forwards; }
.in-orbit i { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffcc4d; box-shadow: 0 0 12px 3px rgba(255,204,77,.7); }
.in-orbit i:nth-child(1) { transform: rotate(0deg) translateX(min(160px, 35vw)); }
.in-orbit i:nth-child(2) { transform: rotate(60deg) translateX(min(160px, 35vw)); background: #ff4a50; box-shadow: 0 0 12px 3px rgba(255,74,80,.7); }
.in-orbit i:nth-child(3) { transform: rotate(120deg) translateX(min(160px, 35vw)); }
.in-orbit i:nth-child(4) { transform: rotate(180deg) translateX(min(160px, 35vw)); background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.7); }
.in-orbit i:nth-child(5) { transform: rotate(240deg) translateX(min(160px, 35vw)); }
.in-orbit i:nth-child(6) { transform: rotate(300deg) translateX(min(160px, 35vw)); background: #ff4a50; box-shadow: 0 0 12px 3px rgba(255,74,80,.7); }
/* text */
.in-eyebrow { margin: 18px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; color: #c9d3ee; }
.in-eyebrow span { display: inline-block; opacity: 0; transform: translateY(14px); animation: inUp .7s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(1.9s + var(--i) * .045s); }
@keyframes inUp { to { opacity: 1; transform: none; } }
.in-word { width: min(380px, 78vw); height: auto; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); animation: inWipe 1.3s cubic-bezier(.77,0,.175,1) 2.2s forwards; }
@keyframes inWipe { to { clip-path: inset(0 0 0 0); } }
.in-sub { max-width: 560px; margin: 4px 0 0; color: #c9d3ee; font-size: 15px; line-height: 1.55; text-wrap: balance; }
.in-sub span { display: inline-block; opacity: 0; filter: blur(6px); animation: inWord .8s ease forwards; animation-delay: calc(2.8s + var(--i) * .06s); }
@keyframes inWord { to { opacity: 1; filter: none; } }
.in-route { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.in-route b { font-size: 10.5px; font-weight: 900; letter-spacing: .08em; padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); opacity: 0; animation: inUp .5s ease forwards, inChip 3.6s ease-in-out infinite; animation-delay: calc(3.3s + var(--i) * .08s), calc(4s + var(--i) * .3s); }
@keyframes inChip { 0%, 70%, 100% { background: rgba(255,255,255,.08); } 80% { background: rgba(215,20,26,.6); } }
.in-route i { width: 46px; height: 2px; background: repeating-linear-gradient(90deg, #ffcc4d 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: inDash .8s linear infinite, inFade .5s ease 3.8s forwards; opacity: 0; }
@keyframes inDash { to { background-position: 20px 0; } }
.in-route b.lk { background: #15803d; border-color: #22c55e; animation: inUp .5s ease 3.9s forwards; }
.in-enter { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; border-radius: 999px; background: linear-gradient(135deg, #d7141a, #ff4a50); color: #fff; font: 700 15px/1 'Roboto', system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; opacity: 0; transform: translateY(18px) scale(.96); animation: inUp .8s cubic-bezier(.22,1,.36,1) 3.4s forwards, inGlow 2.4s ease-in-out 4.2s infinite; box-shadow: 0 14px 40px -10px rgba(215,20,26,.8); transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.in-enter span { transition: transform .3s; }
.in-enter:hover span { transform: translateX(5px); }
.in-enter:hover { box-shadow: 0 18px 50px -8px rgba(255,74,80,.95); }
.in-enter:focus-visible { outline: 3px solid #ffcc4d; outline-offset: 4px; }
@keyframes inGlow { 50% { box-shadow: 0 14px 50px -4px rgba(255,74,80,.95), 0 0 0 8px rgba(215,20,26,.12); } }
.in-skip { position: absolute; z-index: 6; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(11vh + 16px); color: rgba(255,255,255,.65); font-size: 11.5px; letter-spacing: .25em; text-transform: uppercase; padding: 8px 10px; border-radius: 6px; }
.in-skip:hover, .in-skip:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
/* exit: push through the emblem, flash, open the bars */
.intro.leaving { animation: inOut 1.15s cubic-bezier(.77,0,.175,1) forwards; pointer-events: none; }
.intro.leaving .in-center { transform: scale(5); opacity: 0; transition: transform 1s cubic-bezier(.77,0,.175,1), opacity .7s ease .2s; }
.intro.leaving .in-bar.t { animation: inBarOutT .9s cubic-bezier(.77,0,.175,1) .15s forwards; }
.intro.leaving .in-bar.b { animation: inBarOutB .9s cubic-bezier(.77,0,.175,1) .15s forwards; }
.intro.leaving::after { content: ''; position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; animation: inFlash .7s ease .25s forwards; }
@keyframes inFlash { 30% { opacity: .55; } to { opacity: 0; } }
@keyframes inBarOutT { to { transform: translateY(-100%); } }
@keyframes inBarOutB { to { transform: translateY(100%); } }
@keyframes inOut { 0%, 55% { opacity: 1; } to { opacity: 0; visibility: hidden; } }
/* reduced motion: everything visible at once */
.intro.still *, .intro.still *::before, .intro.still *::after { animation: none !important; transition: none !important; }
.intro.still .in-emblem img, .intro.still .in-halo, .intro.still .in-ring, .intro.still .in-orbit, .intro.still .in-eyebrow span, .intro.still .in-sub span, .intro.still .in-route b, .intro.still .in-route i, .intro.still .in-enter { opacity: 1; transform: none; filter: none; }
.intro.still .in-word { clip-path: none; }
.intro.still .in-flare { display: none; }
@media (max-width: 680px) {
  .in-bar { height: 8vh; }
  .in-skip { bottom: calc(8vh + 10px); }
  .in-eyebrow { letter-spacing: .35em; font-size: 11px; }
  .in-sub { font-size: 13.5px; }
  .in-enter { padding: 15px 28px; font-size: 14px; }
}

/* ---------- admin visual editor (preview mode only) ---------- */
.ed-box { position: fixed; z-index: 9998; pointer-events: none; border: 2px solid #d7141a; border-radius: 8px; box-shadow: 0 0 0 4px rgba(215,20,26,.15); transition: all .12s ease; }
.ed-bar { position: fixed; z-index: 9999; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; background: #050b1c; color: #fff; font: 600 12px/1 'Roboto', system-ui, sans-serif; box-shadow: 0 8px 24px -6px rgba(0,0,0,.5); max-width: calc(100% - 8px); }
.ed-bar span { padding: 0 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.ed-bar button { background: #d7141a; color: #fff; border-radius: 6px; padding: 7px 10px; font: inherit; white-space: nowrap; }
.ed-bar button[data-a=photo] { background: #0b2a6f; }
.ed-bar button:hover { filter: brightness(1.15); }
html.is-preview .admin-bar { display: none; }
/* collection cover photo and category photo in page headers */
.cat-hero[data-cover] { min-height: 200px; }
.cat-hero[data-cover]::before { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 85%, #050b1c) 0%, color-mix(in srgb, var(--c) 40%, transparent) 55%, transparent 100%), var(--cover) center / cover no-repeat; }
.cat-hero .art.photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.25); opacity: 1; }
.cat-hero .art.photo img { width: 100%; height: 100%; object-fit: cover; }

/* tablet header: keep Account, Wishlist and Cart on screen */
.search { min-width: 0; }
@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .search select { display: none; }
  .hbtn { padding: 6px 7px; }
  .hbtn em { display: none; }
}
