/* Stationeries.lk — "sticker & ink" theme.
   Layout and motion: UI/UX Pro Max (Neubrutalism + Bento hero).
   Colour, type and logo: the Stationeries.lk brand identity. Bright fills always carry near-black text. */

:root {
  /* Brand palette — Canvasmatic identity #33 "Stationeries.lk" */
  --brand: #03c1fa;          /* Clear Ink Blue (primary) */
  --green: #84e60d;          /* First Sprout Green */
  --yellow: #fac503;         /* Idea Highlighter Yellow */
  --red: #ed053a;            /* Party Ribbon Red — small accents only, never behind text */
  --cream: #f1debc;          /* Paper & Parcel Cream */
  --cream-soft: #f9f0de;
  --ink: #14110f;            /* near-black: text, outlines, hard shadows */
  --on-bright: #14110f;      /* brand rule: near-black text on blue, green, yellow and cream */
  --paper: #ffffff; --dot: #f1debc;
  --card: #ffffff; --text: #14110f; --muted: #f9f0de; --muted-fg: #57504a;
  --danger: #b91c1c; --link: #075985;
  --tone-emerald: var(--brand); --tone-slate: var(--cream); --tone-orange: var(--yellow);
  --tone-sky: var(--green); --tone-rose: var(--cream-soft); --tone-amber: var(--cream);
  /* Gotham is the brand face (licensed); Montserrat is the closest open web font. */
  --font-head: 'Montserrat', system-ui, sans-serif; --font-body: 'Montserrat', system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r: 14px; --r-lg: 24px; --bw: 2.5px;
  --sh: 4px 4px 0 var(--ink); --sh-lg: 7px 7px 0 var(--ink);
  --t: 160ms; --spring: cubic-bezier(.34, 1.56, .64, 1);
  --z-header: 40; --z-drawer: 100; --z-toast: 1000; --maxw: 1260px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 500 16px/1.6 var(--font-body); min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--paper) radial-gradient(var(--dot) 1.2px, transparent 1.2px) 0 0 / 22px 22px;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; } a { color: inherit; text-decoration: none; }
img, svg { display: block; } button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.lucide { width: 20px; height: 20px; stroke-width: 2.25; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 3px var(--yellow); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: var(--z-toast); background: var(--yellow); color: var(--on-bright); padding: var(--s3) var(--s4); border: var(--bw) solid var(--ink); border-radius: var(--r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
main { flex: 1; padding-bottom: var(--s8); } main:focus { outline: none; }
.num, .price { font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55% 92%, transparent 92%); padding: 0 .12em; }

/* Shared "sticker" surface */
.card, .btn, .promo, .hero-main, .group-tile, .cat-tile, .trust > div, .filters, .summary, .form-card, .line,
.seller-box, .info-box, .all-group, .empty, .search, .sell, .stat { border: var(--bw) solid var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--r); font: 700 1rem var(--font-head); color: var(--on-bright); background: var(--card);
  box-shadow: var(--sh); transition: transform var(--t) var(--spring), box-shadow var(--t); touch-action: manipulation;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--brand); } .btn-accent { background: var(--yellow); }
.btn-light { background: #fff; } .btn-yellow { background: var(--yellow); }
.btn-ghost { background: var(--card); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--sh); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-width: 46px; min-height: 46px; padding: 0 var(--s3); border: var(--bw) solid transparent; border-radius: var(--r);
  background: transparent; color: var(--text); font-weight: 700; transition: background var(--t), border-color var(--t);
}
.icon-btn:hover { background: var(--yellow); color: var(--on-bright); border-color: var(--ink); }
.badge-count {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
  background: var(--yellow); color: var(--on-bright); border: 2px solid var(--ink); font: 800 .75rem/20px var(--font-head); text-align: center;
}
.badge-count.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-10deg); } }

/* Ticker */
.ticker { background: #14110f; color: #fac503; overflow: hidden; border-bottom: var(--bw) solid var(--ink); font: 700 .85rem var(--font-head); letter-spacing: .01em; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker span { padding: 9px var(--s5); white-space: nowrap; } .ticker span::after { content: '✦'; margin-left: var(--s7); color: #ed053a; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; border-bottom: 3px solid var(--ink); }
.head-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s5); padding-block: var(--s3); }
.logo { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; text-decoration: none; }
.logo-text { font: 800 1.9rem/1 var(--font-head); letter-spacing: -.035em; color: var(--brand); white-space: nowrap; }
.site-footer .logo-text { color: #fff; font-size: 2.1rem; }
.logo img { height: 46px; width: auto; transition: transform var(--t) var(--spring); }
.logo:hover img { transform: rotate(-2deg) scale(1.03); }
.search { display: flex; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--sh); transition: box-shadow var(--t), transform var(--t); }
.search:focus-within { box-shadow: 6px 6px 0 var(--brand); transform: translate(-1px, -1px); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 var(--s4); min-height: 48px; background: transparent; font-size: 1rem; }
.search input:focus { outline: none; }
.search button { border: 0; border-left: var(--bw) solid var(--ink); padding: 0 var(--s5); background: var(--yellow); color: var(--on-bright); display: inline-flex; align-items: center; }
.head-actions { display: flex; gap: var(--s2); align-items: center; }
.menu-btn { display: none; }
.catnav ul { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0 0 var(--s3); flex-wrap: wrap; }
.catnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); font: 600 .95rem var(--font-head); border: 2px solid transparent; border-radius: 999px; transition: background var(--t), border-color var(--t); }
.catnav a:hover { border-color: var(--ink); background: var(--card); }
.catnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.catnav .deal-link { background: var(--yellow); color: var(--on-bright); border-color: var(--ink); }
.catnav .lucide { width: 18px; height: 18px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; } .drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(10 8 6 / .6); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw); background: var(--paper); border-right: 3px solid var(--ink); overflow-y: auto; padding: var(--s4); animation: slideIn 240ms ease-out; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.drawer-panel a { display: flex; align-items: center; gap: var(--s3); min-height: 50px; padding: 0 var(--s3); border-radius: var(--r); font: 600 1.05rem var(--font-head); border: 2px solid transparent; }
.drawer-panel a:hover { background: var(--yellow); color: var(--on-bright); border-color: var(--ink); }
@keyframes slideIn { from { transform: translateX(-100%); } }

/* Sections */
.section { margin-top: var(--s8); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head p { color: var(--muted-fg); margin-top: var(--s2); font-size: 1.05rem; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font: 700 1rem var(--font-head); min-height: 44px; border-bottom: 3px solid var(--ink); }
.link-more .lucide { transition: transform var(--t) var(--spring); } .link-more:hover .lucide { transform: translateX(5px); }
.kicker { display: inline-block; width: fit-content; font: 700 .82rem var(--font-head); background: var(--card); color: var(--text); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }

/* Hero bento */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: var(--s4); margin-top: var(--s5); }
.hero-main, .promo, .stat { border-radius: var(--r-lg); box-shadow: var(--sh-lg); color: var(--on-bright); position: relative; overflow: hidden; }
.hero-main { grid-column: span 7; grid-row: span 2; background: var(--brand); padding: var(--s7) var(--s6); display: flex; flex-direction: column; gap: var(--s4); justify-content: center; min-height: 440px; }
.hero-main h1 { font-size: clamp(2.5rem, 6.2vw, 4.8rem); line-height: .98; max-width: 9ch; }
.hero-main h1 .hl { background: linear-gradient(transparent 58%, #fac503 58% 94%, transparent 94%); }
.hero-main p { font-size: 1.15rem; max-width: 34ch; font-weight: 600; }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.hero-main > *:not(.art) { position: relative; z-index: 1; }
.art { position: absolute; pointer-events: none; }
.art-pencil { right: -40px; bottom: -30px; width: min(48%, 440px); transform: rotate(-32deg); animation: float 6s ease-in-out infinite; }
.art-burst { right: 40px; top: 28px; width: 118px; animation: spin 22s linear infinite; }
.art-burst-label { right: 40px; top: 28px; width: 118px; height: 118px; display: grid; place-items: center; text-align: center; font: 800 .85rem/1.05 var(--font-head); transform: rotate(10deg); }
@keyframes float { 50% { transform: rotate(-28deg) translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.promo { grid-column: span 5; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); justify-content: space-between; transition: transform var(--t) var(--spring), box-shadow var(--t); }
.promo:hover, .stat:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--ink); }
.promo h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.promo-orange { background: var(--green); }
.promo .link-more { align-self: flex-start; }
.promo-dark { grid-column: span 3; background: #14110f; color: #fff8ec; } .promo-dark .kicker { background: #fac503; color: #14110f; }
.promo-dark .link-more { border-color: #fff8ec; }
.stat { grid-column: span 2; background: var(--yellow); display: grid; place-content: center; text-align: center; padding: var(--s4); transition: transform var(--t) var(--spring), box-shadow var(--t); }
.stat b { font: 800 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--font-head); display: block; } .stat span { font: 700 .95rem var(--font-head); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s6); }
.trust > div { display: flex; gap: var(--s3); align-items: center; background: var(--card); border-radius: var(--r); padding: var(--s4); box-shadow: var(--sh); }
.trust .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: var(--bw) solid var(--ink); color: var(--on-bright); flex: none; }
.trust > div:nth-child(1) .ico { background: var(--brand); } .trust > div:nth-child(2) .ico { background: var(--yellow); }
.trust > div:nth-child(3) .ico { background: var(--green); } .trust > div:nth-child(4) .ico { background: var(--cream); }
.trust strong { display: block; font-family: var(--font-head); line-height: 1.2; } .trust small { color: var(--muted-fg); font-size: .875rem; }

/* Tones + tiles */
.tone-emerald { background: var(--tone-emerald); } .tone-slate { background: var(--tone-slate); } .tone-orange { background: var(--tone-orange); }
.tone-sky { background: var(--tone-sky); } .tone-rose { background: var(--tone-rose); } .tone-amber { background: var(--tone-amber); }
[class*="tone-"] { color: var(--on-bright); }
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.group-tile { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); min-height: 190px; border-radius: var(--r-lg); box-shadow: var(--sh-lg); transition: transform var(--t) var(--spring), box-shadow var(--t); }
.group-tile:hover { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 11px 11px 0 var(--ink); }
.group-tile .blob { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: var(--bw) solid var(--ink); transition: transform 300ms var(--spring); }
.group-tile:hover .blob { transform: rotate(-14deg) scale(1.12); }
.group-tile .blob .lucide { width: 30px; height: 30px; }
.group-tile h3 { font-size: 1.5rem; font-weight: 800; } .group-tile p { font-weight: 600; max-width: 26ch; }
.group-tile .go { position: absolute; right: var(--s4); top: var(--s4); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #14110f; color: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); padding: var(--s4) var(--s2); background: var(--card); border-radius: var(--r); box-shadow: var(--sh); font: 700 .95rem/1.25 var(--font-head); transition: transform var(--t) var(--spring), box-shadow var(--t), background var(--t), color var(--t); }
.cat-tile:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); background: var(--yellow); color: var(--on-bright); }
.cat-tile .ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: var(--bw) solid var(--ink); transition: transform 300ms var(--spring); }
.cat-tile:hover .ico { transform: rotate(12deg) scale(1.1); } .cat-tile .ico .lucide { width: 28px; height: 28px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: var(--s5); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; transition: transform var(--t) var(--spring), box-shadow var(--t); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; border-bottom: var(--bw) solid var(--ink); background-blend-mode: multiply; }
.pat-0 { background-image: radial-gradient(rgb(20 17 15 / .16) 2px, transparent 2.5px); background-size: 16px 16px; }
.pat-1 { background-image: repeating-linear-gradient(45deg, rgb(20 17 15 / .1) 0 3px, transparent 3px 14px); }
.pat-2 { background-image: linear-gradient(rgb(20 17 15 / .1) 1.5px, transparent 1.5px), linear-gradient(90deg, rgb(20 17 15 / .1) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.pat-3 { background-image: repeating-linear-gradient(0deg, rgb(20 17 15 / .1) 0 2px, transparent 2px 13px); }
.thumb .blob { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 #14110f; color: #14110f; transition: transform 320ms var(--spring); }
.card:hover .thumb .blob { transform: rotate(-12deg) scale(1.1); }
.thumb .blob .lucide { width: 48%; height: 48%; stroke-width: 1.9; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .thumb img { transition: transform 400ms var(--spring); } .card:hover .thumb img { transform: scale(1.06); } .thumb { overflow: hidden; }
.tag-sale { display: inline-block; background: var(--yellow); color: var(--on-bright); border: 2px solid var(--ink); font: 800 .82rem var(--font-head); padding: 2px 9px; border-radius: 999px; transform: rotate(-7deg); box-shadow: 3px 3px 0 var(--red); }
.thumb .tag-sale { position: absolute; top: var(--s3); left: var(--s3); z-index: 1; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: var(--s3) var(--s4) var(--s4); flex: 1; }
.card-brand { font: 700 .8rem var(--font-head); color: var(--muted-fg); }
.card-title { font: 600 1rem/1.3 var(--font-head); }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.price-row { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price { font: 800 1.25rem var(--font-head); }
.was { color: var(--muted-fg); text-decoration: line-through; font-size: .9rem; }
.card .btn { position: relative; z-index: 1; margin-top: var(--s2); min-height: 44px; padding: 0 var(--s3); box-shadow: 3px 3px 0 var(--ink); }
.stock-low { font-weight: 800; font-size: .85rem; color: #c2410c; } .stock-out { color: var(--danger); font-weight: 800; font-size: .85rem; }

/* Entrance: springy stagger */
.grid > *, .cat-grid > *, .group-grid > *, .hero > *, .trust > * { animation: pop 460ms var(--spring) both; }
:is(.grid, .cat-grid, .group-grid, .hero, .trust) > :nth-child(2) { animation-delay: 50ms; } :is(.grid, .cat-grid, .group-grid, .hero, .trust) > :nth-child(3) { animation-delay: 100ms; }
:is(.grid, .cat-grid, .group-grid, .hero, .trust) > :nth-child(4) { animation-delay: 150ms; } :is(.grid, .cat-grid, .group-grid) > :nth-child(5) { animation-delay: 200ms; }
:is(.grid, .cat-grid, .group-grid) > :nth-child(6) { animation-delay: 250ms; } :is(.grid, .cat-grid) > :nth-child(n+7) { animation-delay: 300ms; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* Sell + brands */
.sell { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s6); align-items: center; padding: var(--s7) var(--s6); border-radius: var(--r-lg); background: #14110f; color: #fff8ec; box-shadow: 8px 8px 0 var(--brand); }
.sell h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: var(--s3); } .sell h2 .hl { background: none; color: #03c1fa; padding: 0; }
.sell .kicker { background: #fac503; color: #14110f; }
.sell ul { margin: var(--s5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s3); font-weight: 600; }
.sell li { display: flex; gap: var(--s3); align-items: center; } .sell li .lucide { color: #14110f; background: #84e60d; border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.sell .cta-box { background: #fff8ec; color: #14110f; border: var(--bw) solid #14110f; border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s3); transform: rotate(1.5deg); box-shadow: 6px 6px 0 #ed053a; }
.sell .cta-box strong { font: 800 1.25rem var(--font-head); }
.brands { display: flex; flex-wrap: wrap; gap: var(--s3); }
.brands a { padding: 0 var(--s5); min-height: 48px; display: inline-flex; align-items: center; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--card); font: 700 1rem var(--font-head); box-shadow: 3px 3px 0 var(--ink); transition: transform var(--t) var(--spring), background var(--t); }
.brands a:nth-child(odd):hover { background: var(--yellow); color: var(--on-bright); transform: rotate(-3deg) scale(1.05); }
.brands a:nth-child(even):hover { background: var(--brand); color: var(--on-bright); transform: rotate(3deg) scale(1.05); }

/* Breadcrumb + listing */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; font-weight: 600; color: var(--muted-fg); margin: var(--s5) 0 var(--s4); }
.crumbs a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; } .crumbs .lucide { width: 14px; height: 14px; }
.page-title { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s6); }
.page-title .ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: var(--bw) solid var(--ink); box-shadow: var(--sh); flex: none; transform: rotate(-6deg); }
.page-title .ico .lucide { width: 30px; height: 30px; } .page-title p { color: var(--muted-fg); margin-top: 4px; font-size: 1.05rem; }
.listing { display: grid; grid-template-columns: 260px 1fr; gap: var(--s6); align-items: start; }
.filters { background: var(--card); border-radius: var(--r); padding: var(--s4); position: sticky; top: 150px; box-shadow: var(--sh); }
.filters summary { font: 800 1.1rem var(--font-head); min-height: 44px; display: flex; align-items: center; gap: var(--s2); cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters fieldset { border: 0; padding: 0; margin: var(--s4) 0 0; } .filters legend { font: 700 .95rem var(--font-head); margin-bottom: var(--s2); }
.check { display: flex; align-items: center; gap: var(--s2); min-height: 38px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s5); flex-wrap: wrap; }
.toolbar label { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; }
select, .field input, .field textarea { min-height: 48px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--card); padding: 0 var(--s3); font-size: 1rem; }
select:focus, .field input:focus { outline: none; box-shadow: 4px 4px 0 var(--brand); }
.empty { text-align: center; padding: var(--s7) var(--s4); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-lg); display: grid; gap: var(--s3); justify-items: center; }
.empty > .lucide { width: 72px; height: 72px; padding: 16px; border-radius: 50%; background: var(--yellow); color: var(--on-bright); border: var(--bw) solid var(--ink); }
.empty p { color: var(--muted-fg); max-width: 46ch; } .loading { padding: var(--s7) 0; text-align: center; font-weight: 700; }

/* All categories */
.all-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.all-group { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.all-group header { display: flex; gap: var(--s3); align-items: center; padding: var(--s4) var(--s5); border-bottom: var(--bw) solid var(--ink); }
.all-group header h2 { font-size: 1.35rem; } .all-group ul { list-style: none; margin: 0; padding: var(--s2); }
.all-group li a { display: flex; align-items: center; gap: var(--s3); min-height: 46px; padding: 0 var(--s3); border-radius: 10px; font-weight: 700; transition: background var(--t), transform var(--t); }
.all-group li a:hover { background: var(--yellow); color: var(--on-bright); transform: translateX(4px); }
.all-group li .count { margin-left: auto; font-weight: 600; font-size: .85rem; opacity: .75; }

.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.credits li { display: flex; gap: var(--s3); align-items: center; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: var(--s3); box-shadow: var(--sh); font-size: .9rem; overflow-wrap: anywhere; }
.credits img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); flex: none; }
.credits a { color: var(--link); text-decoration: underline; font-weight: 700; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
.pdp > .thumb { border: var(--bw) solid var(--ink); border-radius: var(--r-lg); aspect-ratio: 1; box-shadow: var(--sh-lg); overflow: hidden; }
.pdp > .thumb .tag-sale { font-size: 1.05rem; padding: 4px 14px; top: var(--s5); left: var(--s5); }
.pdp-info { display: grid; gap: var(--s4); } .pdp-info .price { font-size: 2.4rem; }
.seller-box, .info-box { background: var(--card); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s2); box-shadow: var(--sh); font-weight: 600; }
.seller-box .row, .info-box .row { display: flex; gap: var(--s3); align-items: center; }
.qty { display: inline-flex; align-items: center; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--card); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.qty button { width: 46px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button:hover:not([disabled]) { background: var(--yellow); color: var(--on-bright); } .qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 42px; text-align: center; font: 800 1.05rem var(--font-head); font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; } .buy-row .btn { flex: 1; min-width: 170px; min-height: 52px; font-size: 1.1rem; }

/* Cart + checkout */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: var(--s6); align-items: start; }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4); background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.line + .line { margin-top: var(--s4); }
.line .thumb { border: var(--bw) solid var(--ink); border-radius: 12px; aspect-ratio: 1; overflow: hidden; } .line .thumb .blob { width: 62%; box-shadow: none; } .line .thumb .tag-sale { display: none; }
.line-meta { display: grid; gap: 4px; } .line-meta small { color: var(--muted-fg); } .line-end { display: grid; gap: var(--s2); justify-items: end; }
.remove { color: var(--danger); font-weight: 700; background: none; border: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; }
.summary { background: var(--card); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s3); position: sticky; top: 150px; box-shadow: var(--sh-lg); }
.summary .row { display: flex; justify-content: space-between; gap: var(--s3); font-weight: 600; } .summary .row > :last-child { white-space: nowrap; }
.summary .total { border-top: var(--bw) dashed var(--ink); padding-top: var(--s3); font: 800 1.4rem var(--font-head); }
.note { font-size: .92rem; color: var(--muted-fg); font-weight: 600; } .note .lucide { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; }
.progress { height: 14px; border-radius: 7px; background: var(--muted); border: 2px solid var(--ink); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-right: 2px solid var(--ink); transition: width 400ms var(--spring); }
.form-card { background: var(--card); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s5); box-shadow: var(--sh-lg); }
.form-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s4); } .form-card legend { font: 800 1.25rem var(--font-head); margin-bottom: var(--s3); }
.field { display: grid; gap: 6px; } .field label { font-weight: 700; } .field .req { color: var(--danger); }
.field .help { font-size: .875rem; color: var(--muted-fg); }
.field .err { font-size: .9rem; color: var(--danger); font-weight: 700; display: flex; gap: 4px; align-items: center; } .field .err .lucide { width: 16px; height: 16px; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 4px 4px 0 var(--danger); }
.field input, .field select, .error-summary { scroll-margin-top: 190px; } .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.pay-opt { display: flex; gap: var(--s3); align-items: center; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: var(--s3) var(--s4); cursor: pointer; min-height: 60px; transition: background var(--t), transform var(--t), box-shadow var(--t); }
.pay-opt:has(input:checked) { background: var(--tone-emerald); color: var(--on-bright); box-shadow: var(--sh); transform: translate(-2px, -2px); }
.pay-opt input { width: 20px; height: 20px; accent-color: #14110f; }
.error-summary { border: var(--bw) solid var(--danger); border-radius: var(--r); padding: var(--s4); background: var(--card); box-shadow: 4px 4px 0 var(--danger); }
.error-summary h2 { font-size: 1.1rem; color: var(--danger); } .error-summary ul { margin: var(--s2) 0 0; padding-left: var(--s5); }
.error-summary a { color: var(--danger); text-decoration: underline; font-weight: 700; }
.success { text-align: center; display: grid; gap: var(--s4); justify-items: center; padding: var(--s8) var(--s4); }
.success .ok { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--green); color: var(--on-bright); border: 3px solid var(--ink); box-shadow: var(--sh-lg); animation: pop 600ms var(--spring) both, wobble 2.4s ease-in-out 700ms infinite; }
.success .ok .lucide { width: 54px; height: 54px; stroke-width: 3; }
@keyframes wobble { 50% { transform: rotate(8deg) scale(1.04); } }

/* Toast */
.toast-region { position: fixed; bottom: var(--s5); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: var(--s3); width: min(460px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); background: var(--yellow); color: var(--on-bright); border: var(--bw) solid #14110f; border-radius: var(--r); box-shadow: 5px 5px 0 #14110f; font-weight: 700; animation: toastIn 380ms var(--spring); }
.toast button { margin-left: auto; background: #14110f; color: #fff8ec; border: 0; border-radius: 999px; font: 700 .9rem var(--font-head); min-height: 40px; padding: 0 var(--s4); white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) rotate(-3deg) scale(.9); } }

/* Footer */
.site-footer { background: #14110f; color: #e9dfcc; padding: var(--s7) 0 0; border-top: 3px solid var(--ink); overflow: hidden; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s5); }
.site-footer h3 { color: #fac503; font-size: 1rem; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { display: inline-flex; min-height: 38px; align-items: center; font-weight: 600; } .site-footer a:hover { color: #fac503; text-decoration: underline; }
.site-footer .logo img { height: 52px; }
.site-footer .fine { border-top: 2px dashed #4a433a; margin-top: var(--s6); padding-top: var(--s4); font-size: .875rem; display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.wordmark { font: 900 clamp(2.6rem, 11.5vw, 10.5rem)/.8 var(--font-head); letter-spacing: -.04em; text-align: center; color: transparent; -webkit-text-stroke: 2px #03c1fa; margin-top: var(--s6); transform: translateY(14%); user-select: none; white-space: nowrap; }

/* Responsive */
@media (max-width: 1200px) { .catnav a .lucide { display: none; } }
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); } .trust { grid-template-columns: repeat(2, 1fr); } .all-groups { grid-template-columns: repeat(2, 1fr); }
  .hero-main { grid-column: span 12; } .promo-orange { grid-column: span 12; } .promo-dark { grid-column: span 8; } .stat { grid-column: span 4; }
}
@media (max-width: 900px) {
  .sell, .pdp, .two-col, .listing { grid-template-columns: 1fr; } .pdp { gap: var(--s5); }
  .group-grid { grid-template-columns: repeat(2, 1fr); } .filters, .summary { position: static; }
  .catnav { display: none; } .menu-btn { display: inline-flex; } .head-actions .label { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .head-row { gap: var(--s2) var(--s3); } .head-row .search { grid-column: 1 / -1; order: 3; } .logo img { height: 38px; } .logo-text { font-size: 1.35rem; }
  .head-actions .account { display: none; } .icon-btn { padding: 0; } .head-row > * { min-width: 0; } .search button { padding: 0 var(--s4); }
  .hero { grid-auto-rows: auto; } .hero-main { padding: var(--s6) var(--s5) 150px; min-height: 0; } .promo-dark, .stat { grid-column: span 12; }
  .art-pencil { width: 210px; right: -20px; bottom: -30px; } .art-burst, .art-burst-label { width: 92px; height: 92px; right: 10px; top: auto; bottom: 118px; font-size: .68rem; } .art-burst { height: auto; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } .cat-tile .ico { width: 50px; height: 50px; } .cat-tile { font-size: .85rem; }
  .group-grid, .trust, .all-groups, .field-row { grid-template-columns: 1fr; } .group-tile { min-height: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } .card-body { padding: var(--s3); } .card .btn .lucide { display: none; }
  .sell { padding: var(--s6) var(--s4); } .section { margin-top: var(--s7); }
  .line { grid-template-columns: 68px 1fr; } .line-end { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .ticker-track { transform: none; }
}
