/* ==========================================================
   SHOPNZY — store stylesheet (app-like on mobile)
   ========================================================== */
:root {
  --ink: #111318; --ink-2: #2B2E36; --muted: #6C7080; --line: #ECECEE; --bg: #FFFFFF; --soft: #F5F5F3; --soft-2: #EFEFEC;
  --accent: #FF4D2E; --accent-d: #E0381B; --accent-t: #FFEDE8; --gold: #F5A623; --ok: #12A150; --ok-t: #E7F7EE;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px; --r-lg: 22px; --r-sm: 10px;
  --shadow: 0 10px 30px rgba(17, 19, 24, .08); --shadow-lg: 0 24px 60px rgba(17, 19, 24, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --head-h: 72px; --tab-h: 64px;
  color-scheme: light; box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.section { padding: 38px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 60px 0; } }
.soft { background: var(--soft); }
.icon { width: 22px; height: 22px; flex: none; }
.tap { transition: transform .15s var(--ease); }
.tap:active { transform: scale(.96); }

/* ---------- Headings ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sec-head p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.sec-head .tools { display: flex; align-items: center; gap: 8px; }
.view-all { font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 4px; color: var(--accent-d); white-space: nowrap; }
.view-all .icon { width: 16px; height: 16px; transition: transform .3s; }
.view-all:hover .icon { transform: translateX(3px); }
.arrow-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: none; place-items: center; background: #fff; transition: .25s; }
.arrow-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.arrow-btn .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) { .arrow-btn { display: grid; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: .93rem; transition: transform .2s var(--ease), background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn .icon { width: 19px; height: 19px; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn-accent { background: var(--accent); color: #fff; } .btn-accent:hover { background: var(--accent-d); box-shadow: 0 10px 24px rgba(255,77,46,.35); }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; } .btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #1A9E52; color: #fff; }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.ann { background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; height: 36px; position: relative; overflow: hidden; }
.ann span { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px; opacity: 0; transform: translateY(100%); transition: .6s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann span.on { opacity: 1; transform: none; }
.ann span.out { opacity: 0; transform: translateY(-100%); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, transform .4s var(--ease); }
.header.scrolled { box-shadow: 0 6px 24px rgba(17,19,24,.06); }
.header-in { display: flex; align-items: center; gap: 14px; height: var(--head-h); }
.logo { display: flex; align-items: center; flex: none; min-width: 0; }
.logo img { height: 40px; width: auto; }
.logo .word { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.logo .word b { color: var(--accent); }
.logo img.broken { display: none; }
.logo img:not(.broken) + .word { display: none; }
.nav { display: none; gap: 2px; margin-left: 18px; }
@media (min-width: 1100px) { .nav { display: flex; } }
.nav > .dd > a, .nav > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem; transition: background .2s, color .2s; }
.nav > .dd > a:hover, .nav > a:hover, .nav a.active { background: var(--soft); }
.nav a.active { color: var(--accent-d); }
.nav .icon { width: 15px; height: 15px; transition: transform .3s; }
.dd:hover > a .icon { transform: rotate(180deg); }
.dd-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px rgba(17,19,24,.1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu .container { display: grid; grid-template-columns: repeat(6, 1fr) 1.4fr; gap: 14px; padding-top: 22px; padding-bottom: 26px; }
.dd-menu a.tile { display: block; text-align: center; font-weight: 700; font-size: .85rem; }
.dd-menu a.tile .im { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; margin-bottom: 8px; transition: transform .4s var(--ease); }
.dd-menu a.tile:hover .im { transform: translateY(-4px); }
.dd-menu .promo { border-radius: 16px; padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; }
.dd-menu .promo b { font-size: 1.2rem; line-height: 1.2; }
.search { flex: 1; max-width: 460px; margin-left: auto; display: none; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 0 14px; height: 44px; border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; font-size: .92rem; }
@media (min-width: 768px) { .search { display: flex; } }
.tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
@media (min-width: 768px) { .search + .tools { margin-left: 6px; } }
.tool { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; transition: background .2s; }
.tool:hover { background: var(--soft); }
.tool .badge-n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); }
.tool .badge-n.show { transform: scale(1); }
.tool.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }
.hide-m { display: none; } @media (min-width: 768px) { .hide-m { display: grid; } }
.show-m { display: grid; } @media (min-width: 768px) { .show-m { display: none; } }
.burger { display: grid; } @media (min-width: 1100px) { .burger { display: none; } }
/* Mobile search pill under header (app style) */
.msearch { padding: 0 16px 12px; background: rgba(255,255,255,.96); }
.msearch button { width: 100%; display: flex; align-items: center; gap: 10px; height: 44px; border-radius: 12px; background: var(--soft); padding: 0 14px; color: var(--muted); font-size: .9rem; text-align: left; }
@media (min-width: 768px) { .msearch { display: none; } }

/* ---------- Stories (category circles) ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 16px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .stories { justify-content: center; gap: 28px; padding: 24px 28px 10px; } }
.story { flex: none; width: 76px; text-align: center; scroll-snap-align: start; font-size: .76rem; font-weight: 700; }
@media (min-width: 900px) { .story { width: 104px; font-size: .85rem; } }
.story .ring { display: block; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--accent), var(--gold), #C2185B, var(--accent)); margin-bottom: 6px; transition: transform .35s var(--ease); }
.story:hover .ring { transform: translateY(-4px) rotate(-6deg); }
.story .ring > span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: var(--soft); }
.story .ring svg, .story .ring img { width: 100%; height: 100%; object-fit: cover; }
.story.seen .ring { background: var(--line); }

/* ---------- Hero slider ---------- */
.hero { position: relative; margin-top: 10px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding: 0 16px; }
.hero-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .hero-track { padding: 0 28px; } }
.banner { position: relative; flex: none; width: 100%; scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; color: #fff; min-height: 420px; display: grid; align-items: end; isolation: isolate; }
@media (min-width: 900px) { .banner { min-height: 520px; align-items: center; } }
.banner .bg { position: absolute; inset: 0; z-index: -2; }
.banner .art { position: absolute; z-index: -1; right: -6%; bottom: -6%; width: 78%; max-width: 560px; aspect-ratio: 1; will-change: transform; }
@media (min-width: 900px) { .banner .art { right: 4%; bottom: auto; top: 50%; translate: 0 -50%; width: 46%; } }
.banner .art svg { width: 100%; height: 100%; border-radius: 50%; }
.banner .ring { position: absolute; z-index: -1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.3); will-change: transform; }
.banner .txt { padding: 26px 22px; max-width: 560px; }
@media (min-width: 900px) { .banner .txt { padding: 60px; } }
.banner .kick { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 30px; backdrop-filter: blur(6px); }
.banner h2 { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin-top: 14px; }
.banner p { margin-top: 10px; opacity: .9; max-width: 38ch; }
.banner .btn { margin-top: 20px; background: #fff; color: var(--ink); }
.banner .btn:hover { background: var(--ink); color: #fff; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .35s var(--ease), background .3s; }
.dots button.on { width: 26px; background: var(--ink); }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.trust a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--soft); font-size: .82rem; font-weight: 700; line-height: 1.3; transition: background .25s, transform .3s var(--ease); }
.trust a:hover { background: var(--accent-t); transform: translateY(-3px); }
.trust .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--accent); flex: none; }
.trust .ic .icon { width: 20px; height: 20px; }

/* ---------- Product rail & cards ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 16px 10px; margin: 0 -16px; scroll-padding: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 31%; } }
@media (min-width: 768px) { .rail { margin: 0 -28px; padding: 4px 28px 10px; scroll-padding: 28px; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 56px - 48px) / 5); gap: 12px; } }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1280px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card .media { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card .media > a { position: absolute; inset: 0; display: block; }
.card .media .im { position: absolute; inset: 0; transition: opacity .5s, transform .9s var(--ease); }
.card .media .im svg, .card .media .im img { width: 100%; height: 100%; object-fit: cover; }
.card .media .im.alt { opacity: 0; }
@media (hover: hover) { .card:hover .media .im.alt { opacity: 1; } .card:hover .media .im { transform: scale(1.06); } }
.card .tags { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.tagx { align-self: flex-start; font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.06); text-transform: uppercase; }
.tagx.hot { background: var(--ink); color: #fff; }
.tagx.new { background: var(--accent); color: #fff; }
.heart { position: absolute; right: 8px; top: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .25s var(--ease); }
.heart .icon { width: 18px; height: 18px; }
.heart:hover { transform: scale(1.1); }
.heart[aria-pressed="true"] { color: var(--accent); }
.heart[aria-pressed="true"] .icon { fill: currentColor; animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.4); } }
.card .addq { position: absolute; right: 8px; bottom: 8px; z-index: 2; height: 36px; padding: 0 14px; border-radius: 10px; background: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; gap: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: .3s var(--ease); }
.card .addq .icon { width: 16px; height: 16px; }
.card .addq:hover { background: var(--ink); color: #fff; }
@media (hover: hover) { .card .addq { opacity: 0; transform: translateY(10px); } .card:hover .addq, .card:focus-within .addq { opacity: 1; transform: none; } }
.card .info { padding: 10px 2px 0; }
.card .brand { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: .88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.card h3 a:hover { text-decoration: underline; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.price b { font-size: 1rem; font-weight: 800; }
.price s { font-size: .8rem; color: var(--muted); }
.price em { font-style: normal; font-size: .78rem; font-weight: 800; color: var(--ok); }
.swatch-row { display: flex; gap: 4px; margin-top: 6px; }
.swatch-row i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 1.5px #fff; }

/* ---------- Occasion tiles ---------- */
.occ { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .occ { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.occ a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; }
.occ .art { position: absolute; inset: -10% 0; z-index: -2; transition: transform .9s var(--ease); }
.occ .art svg { width: 100%; height: 100%; }
.occ a:hover .art { transform: scale(1.06); }
.occ a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); }
.occ b { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.occ b .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .35s var(--ease); }
.occ a:hover b .icon { transform: rotate(-45deg); }

/* ---------- Category showcase banners ---------- */
.cat-banners { display: grid; gap: 12px; }
@media (min-width: 900px) { .cat-banners { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.cb { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 24px; min-height: 220px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.cb .art { position: absolute; right: -14%; top: -12%; width: 70%; z-index: -1; transition: transform .8s var(--ease); }
.cb:hover .art { transform: rotate(-8deg) scale(1.06); }
.cb .art svg { border-radius: 50%; }
.cb small { font-weight: 700; opacity: .85; }
.cb b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cb span.go { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; }

/* ---------- Marquee ---------- */
.mq { overflow: hidden; background: var(--ink); color: #fff; padding: 14px 0; }
.mq-track { display: flex; width: max-content; gap: 30px; font-weight: 800; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: -.01em; white-space: nowrap; }
.mq-track span { display: inline-flex; align-items: center; gap: 30px; }
.mq-track span::after { content: '✦'; color: var(--accent); }

/* ---------- Newsletter ---------- */
.news { border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 32px 22px; display: grid; gap: 18px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .news { grid-template-columns: 1.1fr 1fr; padding: 50px; } }
.news h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.news p { opacity: .75; margin-top: 6px; }
.news form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 14px; }
.news input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; color: var(--ink); }
.news .ok { color: #8FE3B0; font-weight: 700; }

/* ---------- Category page ---------- */
.cat-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.cat-hero .bg { position: absolute; inset: -20% 0; z-index: -2; }
.cat-hero .in { padding-top: 34px; padding-bottom: 40px; display: grid; gap: 10px; min-height: 230px; align-content: end; }
@media (min-width: 900px) { .cat-hero .in { min-height: 340px; padding-top: 60px; padding-bottom: 60px; } }
.cat-hero .crumbs { font-size: .8rem; opacity: .85; display: flex; gap: 6px; flex-wrap: wrap; }
.cat-hero .crumbs a:hover { text-decoration: underline; }
.cat-hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.cat-hero p { opacity: .9; max-width: 44ch; }
.cat-hero .float { position: absolute; z-index: -1; aspect-ratio: 1; will-change: transform; }
.cat-hero .float svg { width: 100%; height: 100%; border-radius: 50%; }
.subs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 16px 16px 4px; scroll-snap-type: x mandatory; }
.subs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .subs { padding: 22px 28px 6px; } }
@media (min-width: 1100px) { .subs { justify-content: center; } }
.sub { flex: none; width: 84px; text-align: center; font-size: .78rem; font-weight: 700; scroll-snap-align: start; }
@media (min-width: 900px) { .sub { width: 110px; font-size: .85rem; } }
.sub .im { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 6px; border: 2.5px solid transparent; transition: border-color .25s, transform .35s var(--ease); }
.sub:hover .im { transform: translateY(-3px); }
.sub[aria-pressed="true"] .im { border-color: var(--accent); }
.sub[aria-pressed="true"] { color: var(--accent-d); }
.plp { display: grid; gap: 24px; }
@media (min-width: 1024px) { .plp { grid-template-columns: 250px 1fr; gap: 30px; } }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; position: sticky; top: calc(var(--head-h) + 16px); align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
.fg { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fg h3 { font-size: .92rem; font-weight: 800; margin-bottom: 10px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .9rem; cursor: pointer; }
.fopt input { width: 18px; height: 18px; accent-color: var(--ink); }
.fopt small { margin-left: auto; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-block; min-width: 44px; text-align: center; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 700; transition: .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2.5px solid var(--accent); }
.chips .sw { display: inline-flex; align-items: center; gap: 6px; }
.chips .sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.toolbar p { color: var(--muted); font-size: .88rem; }
.select { padding: 9px 36px 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111318' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-weight: 600; font-size: .88rem; }
.toolbar .select { display: none; } @media (min-width: 1024px) { .toolbar .select { display: block; } }
.active-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-f button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 30px; background: var(--soft); font-size: .78rem; font-weight: 700; }
.active-f .icon { width: 14px; height: 14px; }
.plp-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .4s var(--ease); }
.plp-bar button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font-weight: 700; font-size: .88rem; }
.plp-bar button + button { border-left: 1px solid rgba(255,255,255,.15); }
.plp-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: none; }
.plp-bar .dot.on { display: inline-block; }
@media (min-width: 1024px) { .plp-bar { display: none; } }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 16px; border-radius: var(--r-lg); background: var(--soft); }
.empty .art { width: 150px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; }
.empty p { color: var(--muted); margin: 6px auto 16px; max-width: 40ch; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 22px; }
@media (min-width: 1000px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.gallery { position: relative; }
@media (min-width: 1000px) { .gallery { position: sticky; top: calc(var(--head-h) + 16px); display: grid; grid-template-columns: 76px 1fr; gap: 12px; } }
.g-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); margin: 0 -16px; }
@media (min-width: 768px) { .g-main { margin: 0; } }
.g-main::-webkit-scrollbar { display: none; }
.g-main > div { flex: none; width: 100%; aspect-ratio: 1; scroll-snap-align: center; background: var(--soft); overflow: hidden; cursor: zoom-in; position: relative; }
.g-main svg, .g-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.g-main > div.zoom img, .g-main > div.zoom svg { transform: scale(1.9); }
.g-thumbs { display: none; }
@media (min-width: 1000px) { .g-thumbs { display: flex; flex-direction: column; gap: 10px; order: -1; } }
.g-thumbs button { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.g-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.g-thumbs svg, .g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.g-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .3s, background .3s; }
.g-dots i.on { width: 20px; background: var(--ink); }
@media (min-width: 1000px) { .g-dots { display: none; } }
.pinfo .brand { font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pinfo h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.pinfo .price { margin-top: 12px; } .pinfo .price b { font-size: 1.6rem; } .pinfo .price s { font-size: 1rem; } .pinfo .price em { font-size: .9rem; background: var(--ok-t); padding: 2px 8px; border-radius: 6px; }
.tax { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.offer-box { margin-top: 16px; border: 1.5px dashed #FFC2B4; background: var(--accent-t); border-radius: 14px; padding: 12px 14px; font-size: .85rem; }
.offer-box li { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.offer-box .icon { width: 17px; height: 17px; color: var(--accent-d); margin-top: 2px; }
.opt { margin-top: 20px; }
.opt-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .92rem; margin-bottom: 10px; }
.opt-h span { font-weight: 500; color: var(--muted); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .2s; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes button { min-width: 52px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; transition: .2s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.err-t { color: var(--accent-d); font-size: .82rem; font-weight: 600; margin-top: 8px; }
.buy { display: flex; gap: 10px; margin-top: 22px; }
.buy .btn { flex: 1; min-height: 54px; }
.pin { margin-top: 18px; display: flex; gap: 8px; }
.pin input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; }
.pin-msg { font-size: .84rem; margin-top: 6px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.perks div { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--soft); font-size: .74rem; font-weight: 700; line-height: 1.3; }
.perks .icon { margin: 0 auto 4px; color: var(--accent); }
.acc { margin-top: 20px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding-bottom: 16px; color: var(--ink-2); font-size: .92rem; }
.spec { width: 100%; border-collapse: collapse; }
.spec td { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.spec td:first-child { color: var(--muted); width: 42%; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.06); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy .t { flex: 1; min-width: 0; }
.sticky-buy .t b { display: block; font-size: 1.05rem; }
.sticky-buy .t small { color: var(--muted); }
@media (min-width: 1000px) { .sticky-buy { display: none; } }
body.pdp-page .tabbar { display: none; }
body.pdp-page .tab-space { height: 80px; }

/* ---------- Cart / checkout ---------- */
.page-title { padding: 20px 0 6px; }
.page-title h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.page-title p { color: var(--muted); font-size: .9rem; }
.cart-l { display: grid; gap: 22px; }
@media (min-width: 1000px) { .cart-l { grid-template-columns: 1fr 380px; gap: 36px; align-items: start; } }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .mini { width: 92px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.line .mini svg, .line .mini img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.line .meta { color: var(--muted); font-size: .8rem; }
.line .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; }
.qty button { width: 34px; height: 36px; display: grid; place-items: center; font-weight: 800; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; font-size: .9rem; }
.rm { color: var(--muted); font-size: .8rem; text-decoration: underline; margin-top: 4px; }
.summary { background: var(--soft); border-radius: var(--r-lg); padding: 22px; }
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--head-h) + 16px); } }
.summary h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.srow { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.srow.total { border-top: 1.5px dashed #D8D8D4; margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; }
.save { color: var(--ok); font-weight: 700; }
.meter { background: #fff; border-radius: 12px; padding: 12px; font-size: .82rem; margin-bottom: 12px; }
.meter .bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; transition: width .6s var(--ease); }
.coupon { display: flex; gap: 8px; margin: 12px 0 4px; }
.coupon input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; text-transform: uppercase; background: #fff; }
.coupon button { padding: 0 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.cmsg { font-size: .82rem; } .cmsg.ok { color: var(--ok); } .cmsg.bad { color: var(--accent-d); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 640px) { .box { padding: 26px; } }
.box h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.box h2 .n { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.form { display: grid; gap: 14px; }
@media (min-width: 640px) { .form.two { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.field label em { color: var(--accent-d); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: .95rem; transition: border-color .2s, box-shadow .2s; appearance: none; }
.field textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111318' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--soft-2); }
.field [aria-invalid="true"] { border-color: var(--accent-d); }
.field .err { display: none; font-size: .78rem; color: var(--accent-d); margin-top: 4px; font-weight: 600; }
.field .err.show { display: block; }
.pay { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: .2s; }
.pay:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.pay input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 3px; }
.pay b { display: block; } .pay small { color: var(--muted); }
.success { text-align: center; padding: 40px 16px; }
.success .tick { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-t); color: var(--ok); display: grid; place-items: center; }
.success .tick .icon { width: 42px; height: 42px; }
.success .oid { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 30px; background: var(--soft); font-weight: 800; }

/* ---------- Help page ---------- */
.help-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-card { display: block; padding: 20px; border-radius: var(--r); background: var(--soft); transition: transform .3s var(--ease), background .3s; }
.help-card:hover { transform: translateY(-4px); background: var(--accent-t); }
.help-card .icon { color: var(--accent); width: 28px; height: 28px; }
.help-card b { display: block; margin-top: 10px; font-weight: 800; }
.help-card span { color: var(--muted); font-size: .88rem; word-break: break-word; }
.prose h2 { font-size: 1.3rem; font-weight: 800; margin: 30px 0 8px; scroll-margin-top: 100px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 8px 0 0 18px; } .prose li { list-style: disc; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: #0D0E12; color: #B9BCC6; padding-top: 50px; margin-top: 30px; }
.f-grid { display: grid; gap: 28px; padding-bottom: 30px; }
@media (min-width: 700px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .f-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 14px; }
.footer ul li + li { margin-top: 8px; }
.footer ul a { font-size: .88rem; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer .word { color: #fff; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; } .footer .word b { color: var(--accent); }
.footer p { font-size: .88rem; margin-top: 10px; max-width: 34ch; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--accent); transform: translateY(-3px); }
.social .icon { width: 18px; height: 18px; }
.popular { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .8rem; line-height: 1.9; }
.popular b { color: #fff; }
.popular a:hover { color: #fff; text-decoration: underline; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0 22px; font-size: .8rem; }
.f-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.pay-chips { display: flex; gap: 6px; flex-wrap: wrap; } .pay-chips span { padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .7rem; }

/* ---------- Mobile app tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); transition: color .2s; }
.tabbar .icon { width: 23px; height: 23px; transition: transform .3s var(--ease); }
.tabbar .on { color: var(--ink); }
.tabbar .on .icon { transform: translateY(-2px); }
.tabbar .on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabbar .badge-n { position: absolute; top: 7px; left: calc(50% + 4px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .64rem; font-weight: 800; display: none; place-items: center; padding: 0 4px; }
.tabbar .badge-n.show { display: grid; }
.tab-space { height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1100px) { .tabbar, .tab-space { display: none; } }

/* ---------- Sheets (bottom on mobile, side/centre on desktop) ---------- */
.sheet { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(17,19,24,.45); opacity: 0; transition: opacity .35s; }
.sheet.open .scrim { opacity: 1; }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .45s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet.open .panel { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet .ph { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet .ph h2 { font-size: 1.1rem; font-weight: 800; }
.sheet .pb { flex: 1; overflow: auto; padding: 14px 18px; overscroll-behavior: contain; }
.sheet .pf { padding: 12px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
@media (min-width: 900px) {
  .sheet.side .panel { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; transform: translateX(100%); }
  .sheet.side.open .panel { transform: none; }
  .sheet.side .grab { display: none; }
  .sheet.center .panel { left: 50%; top: 50%; bottom: auto; width: min(900px, 92vw); max-height: 86vh; border-radius: 24px; transform: translate(-50%, -46%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
  .sheet.center.open .panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.center .grab { display: none; }
}
.sheet .sort-list button { display: flex; justify-content: space-between; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet .sort-list button[aria-pressed="true"] { color: var(--accent-d); font-weight: 800; }
.dline { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dline .mini { width: 70px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.dline .mini svg, .dline .mini img { width: 100%; height: 100%; object-fit: cover; }
.dline h4 { font-size: .86rem; font-weight: 700; line-height: 1.3; }
.dline .meta { color: var(--muted); font-size: .76rem; }
.dline .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.qv { display: grid; }
@media (min-width: 900px) { .qv { grid-template-columns: 1fr 1fr; gap: 22px; } }
.qv .media { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--soft); }
.qv .media svg, .qv .media img { width: 100%; height: 100%; object-fit: cover; }
.qv h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin-top: 12px; }
@media (min-width: 900px) { .qv h3 { margin-top: 0; } }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.sr-item:hover, .sr-item:focus-visible { background: var(--soft); }
.sr-item .mini { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; background: var(--soft); }
.sr-item .mini svg, .sr-item .mini img { width: 100%; height: 100%; object-fit: cover; }
.sr-item b { display: block; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.sr-item span { font-weight: 800; font-size: .85rem; }
.sfield { display: flex; align-items: center; gap: 10px; height: 50px; border-radius: 14px; background: var(--soft); padding: 0 14px; }
.sfield input { flex: 1; border: 0; background: none; outline: none; font-size: 1rem; min-width: 0; }
.cats-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cats-sheet a { text-align: center; font-weight: 700; font-size: .82rem; }
.cats-sheet .im { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin-bottom: 6px; }
.mnav-links a { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); font-weight: 700; }

/* ---------- Toast & fly ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 500; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
@media (min-width: 1100px) { .toasts { bottom: 28px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg); animation: tin .4s var(--ease); pointer-events: auto; }
.toast a { color: #FFB5A5; text-decoration: underline; font-weight: 800; }
.toast .icon { width: 18px; height: 18px; color: #6FE3A0; }
@keyframes tin { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.flyer { position: fixed; z-index: 600; width: 70px; height: 70px; border-radius: 14px; overflow: hidden; pointer-events: none; box-shadow: var(--shadow-lg); }
.flyer svg, .flyer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Image fallback ---------- */
img.broken { visibility: hidden; }

/* ---------- Page transition & skeleton ---------- */
.page-fade { animation: pfade .5s var(--ease); }
@keyframes pfade { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* keep animated/off-canvas layers from widening the mobile layout */
html, body { overflow-x: clip; }
.section, .hero, main { overflow-x: clip; }
.buy .btn { min-width: 0; padding-left: 14px; padding-right: 14px; }
@media (max-width: 899px) {
  .banner { min-height: 460px; }
  .banner .art { width: 74%; right: -8%; top: 2%; bottom: auto; }
  .banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%); pointer-events: none; }
  .cat-hero .float { width: 24vw !important; opacity: .9; }
  .cat-hero .float:nth-of-type(2) { display: none; }
  .cat-hero p, .cat-hero h1 { max-width: 64%; }
  .cat-hero .in { min-height: 250px; }
}
