/* ZenFlare Marketplace — mobile-first. One sheet for the street, every
   store (themed through --v-*), the desk and the admin. */
:root {
  --paper: #f7f3ea; --paper-2: #efe9db; --card: #fffdf9; --ink: #15120d; --ink-2: #3a3428; --muted: #726a5b; --line: #e8e0cf;
  --gold: #e9bb4d; --gold-deep: #b8801a; --gold-pale: #fbe9b0; --flame: #ff9f1c; --flame-2: #ff6a3d;
  --night: #0b0a08; --night-2: #16130d; --night-3: #221d14; --night-line: #2e2719; --night-tx: #f1ebdc;
  --good: #2f8f5b; --warn: #c77d12; --bad: #b4332d; --info: #2d5fa8;
  --r: 18px; --r-lg: 26px; --shadow: 0 8px 24px rgba(21, 18, 13, .08), 0 2px 6px rgba(21, 18, 13, .05);
  --shadow-lg: 0 24px 60px rgba(21, 18, 13, .16);
  --display: 'Fraunces', Georgia, serif; --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --v-bg: #ffffff; --v-ink: #15120d; --v-accent: var(--gold); --v-accent-ink: #15120d;
  --nav-h: 64px; --header-h: 58px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.5; min-height: 100dvh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .35rem; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8rem; }
small, .muted { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.spacer { flex: 1; }
.loading, .error { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.error { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* -------------------------------------------------------------- motion */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.12); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 143, 91, .55); } 70% { box-shadow: 0 0 0 9px rgba(47, 143, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 143, 91, 0); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.sk { background: linear-gradient(90deg, var(--paper-2) 25%, #f9f6ee 50%, var(--paper-2) 75%); background-size: 800px 100%; animation: shimmer 1.3s infinite linear; border-radius: 12px; }

/* -------------------------------------------------------------- header */
.demo-strip { background: var(--gold-pale); color: #5b4512; font-size: .78rem; text-align: center; padding: .3rem 1rem; }
.top { background: var(--night); color: var(--night-tx); position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--night-tx); min-width: 0; }
.logo img { width: 40px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(255, 159, 28, .45)); }
.logo span { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--display); letter-spacing: .22em; font-size: .74rem; color: var(--gold); white-space: nowrap; }
.logo i { font-style: normal; font-size: .68rem; opacity: .75; margin-top: .14rem; white-space: nowrap; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: var(--night-tx); text-decoration: none; border: 1px solid var(--night-line); background: var(--night-2); flex: none; transition: transform .15s ease, background .15s ease; }
.iconbtn:active { transform: scale(.92); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn.textbtn { width: auto; padding: 0 .9rem; font-size: .85rem; font-weight: 600; }
.iconbtn.textbtn.gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.basketbtn span { position: absolute; top: -5px; right: -5px; background: var(--flame); color: #fff; font-size: .68rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--night); }
.basketbtn span.bump { animation: pop .4s ease; }
.searchbar { background: var(--night); padding: 0 1rem .6rem; position: sticky; top: var(--header-h); z-index: 29; }
.searchbar form { max-width: 1140px; margin: 0 auto; position: relative; }
.searchbar input { width: 100%; background: var(--night-2); color: var(--night-tx); border: 1px solid var(--night-line); border-radius: 999px; padding: .65rem 1rem .65rem 2.6rem; outline: none; transition: border-color .2s; }
.searchbar input:focus { border-color: var(--gold); }
.searchbar svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: .6; }
.desktop-only { display: none; }
@media (min-width: 761px) { .desktop-only { display: inline-flex; } }

/* --------------------------------------------------------- bottom nav */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(11, 10, 8, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--night-line); display: grid; grid-template-columns: repeat(5, 1fr); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); }
.bnav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-decoration: none; color: #9b917c; font-size: .66rem; font-weight: 600; padding: .3rem 0; border-radius: 12px; position: relative; transition: color .15s; }
.bnav a svg { width: 24px; height: 24px; }
.bnav a.on { color: var(--gold); }
.bnav a .n { position: absolute; top: 0; left: calc(50% + 6px); background: var(--flame); color: #fff; font-size: .62rem; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.bnav a.sell { color: var(--night); }
.bnav a.sell svg { background: var(--gold); border-radius: 999px; padding: 3px; width: 28px; height: 28px; }
.bnav a.sell span { color: var(--gold); }
body.has-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .bnav { display: none; } body.has-nav { padding-bottom: 0; } }

/* -------------------------------------------------------------- layout */
main { max-width: 1140px; margin: 0 auto; padding: .9rem 1rem 2.5rem; }
section { margin: 1.4rem 0; }
.sechead { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.sechead h2 { margin: 0; }
.sechead span, .sechead a { color: var(--muted); font-size: .88rem; }
.sechead .more { margin-left: auto; text-decoration: none; color: var(--gold-deep); font-weight: 600; }
.grid { display: grid; gap: .8rem; }
.grid.vendors { grid-template-columns: 1fr; }
.grid.products { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid.vendors { grid-template-columns: repeat(2, 1fr); } .grid.products { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.vendors { grid-template-columns: repeat(3, 1fr); } .grid.products { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 1rem 1.1rem; }

/* ---------------------------------------------------------------- hero */
.hero { background: radial-gradient(120% 90% at 100% 0%, #3a2a0d 0%, var(--night) 55%); color: var(--night-tx); border-radius: var(--r-lg); padding: 1.5rem 1.2rem 1.3rem; position: relative; overflow: hidden; isolation: isolate; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(40px); z-index: -1; animation: glow 7s ease-in-out infinite; }
.hero .b1 { width: 260px; height: 260px; right: -80px; top: -90px; background: rgba(255, 159, 28, .55); }
.hero .b2 { width: 200px; height: 200px; left: -70px; bottom: -90px; background: rgba(233, 187, 77, .35); animation-delay: -3s; }
.hero .emblem { position: absolute; right: -12px; top: -6px; width: 150px; opacity: .28; animation: float 9s ease-in-out infinite; z-index: -1; pointer-events: none; }
.hero .kicker { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .68rem; font-weight: 700; margin-bottom: .5rem; }
.hero h1 { color: #fff; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { max-width: 46ch; opacity: .85; font-size: .98rem; margin-top: .4rem; }
.bigsearch { display: flex; gap: .4rem; margin: 1rem 0 .8rem; }
.bigsearch input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .08); color: var(--night-tx); padding: .8rem 1.1rem; outline: none; }
.bigsearch input::placeholder { color: #a79c86; }
.bigsearch input:focus { border-color: var(--gold); }
.moods { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; -webkit-overflow-scrolling: touch; }
.moods::-webkit-scrollbar { display: none; }
.mood { flex: none; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-decoration: none; color: var(--night-tx); font-size: .72rem; font-weight: 600; width: 72px; }
.mood i { font-style: normal; font-size: 1.55rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid var(--night-line); transition: transform .15s, background .15s; }
.mood:active i { transform: scale(.92); }
.mood.on i { background: var(--gold); border-color: var(--gold); }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; text-decoration: none; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.light .chip { border-color: var(--line); background: var(--card); }

/* -------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 999px; padding: .72rem 1.3rem; border: 1px solid transparent; font-weight: 600; text-decoration: none; background: var(--ink); color: #fff; transition: transform .12s ease, box-shadow .2s ease, filter .15s; line-height: 1.2; }
.btn:active { transform: scale(.96); }
.btn.gold { background: linear-gradient(135deg, var(--gold), #f0c969); color: var(--night); box-shadow: 0 6px 18px rgba(233, 187, 77, .35); }
.btn.flame { background: linear-gradient(135deg, var(--flame-2), var(--flame)); color: #fff; box-shadow: 0 6px 18px rgba(255, 159, 28, .4); }
.btn.v { background: var(--v-accent); color: var(--v-accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--v-accent) 40%, transparent); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); box-shadow: none; }
.btn.sm { padding: .45rem .9rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.actions { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.actions::-webkit-scrollbar { display: none; }
.actions .btn { flex: none; }

/* --------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .18rem .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .02em; background: #eee6d2; color: #5b4512; }
.badge.visited { background: #e3f2e8; color: #1f6b3f; }
.badge.plan { background: #e7eef9; color: #244a8a; }
.badge.open { background: #e3f2e8; color: #1f6b3f; }
.badge.closed { background: #f6e4e3; color: #8a2a25; }
.badge.kind { background: #f1ebdc; color: #5b4512; }
.badge.soon { background: #f1ebdc; color: #8a7a55; border: 1px dashed #c9b98a; }
.badge.demo { background: #f4e4ff; color: #6a2a9a; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.live { background: var(--good); animation: pulse 1.8s infinite; }

/* ---------------------------------------------------------------- logos */
.vlogo { width: var(--s, 56px); height: var(--s, 56px); border-radius: 50%; background: var(--t-bg, #fff); display: grid; place-items: center; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(21, 18, 13, .15); flex: none; font-family: var(--display); font-weight: 700; color: var(--t-accent, var(--gold-deep)); font-size: calc(var(--s, 56px) * .36); }
.vlogo img { width: 100%; height: 100%; object-fit: cover; }
.vlogo.wide img { object-fit: contain; padding: 14%; background: #fff; }

/* ------------------------------------------------------------ live strip */
.livestrip { display: flex; gap: .7rem; overflow-x: auto; padding: .2rem .2rem .6rem; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.livestrip::-webkit-scrollbar { display: none; }
.livecard { scroll-snap-align: start; flex: 0 0 168px; border-radius: 20px; padding: .9rem .85rem; color: var(--lc-ink); background: linear-gradient(160deg, var(--lc-bg), color-mix(in srgb, var(--lc-bg) 80%, var(--lc-accent))); border: 1px solid rgba(0, 0, 0, .06); text-decoration: none; display: flex; flex-direction: column; gap: .35rem; min-height: 150px; box-shadow: var(--shadow); transition: transform .15s; }
.livecard:active { transform: scale(.97); }
.livecard .who { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; line-height: 1.15; }
.livecard .vlogo { --s: 40px; border-width: 2px; }
.livecard .now { font-size: .95rem; font-weight: 600; margin-top: auto; display: flex; align-items: center; gap: .4rem; }
.livecard .sub { font-size: .78rem; opacity: .8; }

/* ---------------------------------------------------------- vendor cards */
.vtile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; }
.vtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vtile:active { transform: scale(.985); }
.vtile .cover { height: 78px; background: linear-gradient(120deg, var(--t-bg), color-mix(in srgb, var(--t-bg) 55%, var(--t-accent))); position: relative; }
.vtile .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 90% 0%, rgba(255, 255, 255, .25), transparent 60%); }
.vtile .vlogo { --s: 68px; margin: -36px 0 0 1rem; position: relative; z-index: 1; }
.vtile .body { padding: .5rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.vtile .name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.vtile .tag { color: var(--muted); font-size: .88rem; }
.vtile .badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.vtile .vfoot { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: .4rem; }
.vtile .vfoot .go { color: var(--gold-deep); font-weight: 700; }
.vtile.yourshop { border-style: dashed; background: linear-gradient(160deg, #fff9ea, var(--card)); box-shadow: none; }
.vtile.yourshop .cover { background: linear-gradient(120deg, var(--gold-pale), #fff3cc); }
.vtile.yourshop .vlogo { background: var(--gold); color: var(--night); font-size: 2rem; }

/* --------------------------------------------------------- product cards */
.pcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; position: relative; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard:active { transform: scale(.985); }
.pcard .img { aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .img img { transform: scale(1.05); }
.pcard .body { padding: .6rem .7rem .75rem; display: flex; flex-direction: column; gap: .15rem; }
.pcard .vendor { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.pcard .vendor img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.pcard .name { font-weight: 600; line-height: 1.25; font-size: .95rem; }
.pcard .price { font-family: var(--display); font-size: 1.15rem; margin-top: .15rem; }
.pcard .kind { font-size: .72rem; color: var(--muted); }
.pcard .quick { position: absolute; right: .55rem; bottom: .6rem; width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .12s; }
.pcard .quick:active { transform: scale(.88); }
.pcard .quick.v { background: var(--v-accent); color: var(--v-accent-ink); }
.pcard .tagtop { position: absolute; left: .55rem; top: .55rem; }

/* ------------------------------------------------------------ store page */
.storehead { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.storehead .cover { height: 120px; background: linear-gradient(120deg, var(--v-bg), color-mix(in srgb, var(--v-bg) 55%, var(--v-accent))); position: relative; }
.storehead .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 85% 0%, rgba(255, 255, 255, .3), transparent 60%); }
.storehead .cover.photo { height: 190px; background-size: cover; background-position: center; }
.storehead .cover.photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25)); }
.vtile .cover[style] { background-size: cover; background-position: center; height: 96px; }
.storehead .inner { padding: 0 1.1rem 1.1rem; }
.storehead .vlogo { --s: 92px; margin-top: -48px; position: relative; z-index: 1; }
.storehead h1 { margin-top: .5rem; font-size: clamp(1.8rem, 7vw, 2.6rem); }
.storehead .tag { font-size: 1rem; color: var(--ink-2); }
.storehead .meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; font-size: .85rem; margin: .5rem 0; }
.storehead .blurb { color: var(--muted); font-size: .92rem; }
.storehead .branches { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-top: .8rem; }
@media (min-width: 640px) { .storehead .branches { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.storehead .branch { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; font-size: .85rem; }
.storehead .branch b { display: block; }
.cattabs { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem 0; scrollbar-width: none; position: sticky; top: calc(var(--header-h) + 52px); z-index: 20; background: var(--paper); margin: .6rem -1rem 0; padding-left: 1rem; padding-right: 1rem; }
.cattabs::-webkit-scrollbar { display: none; }
.cattabs a { white-space: nowrap; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; text-decoration: none; font-weight: 500; }
.cattabs a.on { background: var(--v-accent); color: var(--v-accent-ink); border-color: var(--v-accent); }

/* ---------------------------------------------------------- product page */
.product { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .product { grid-template-columns: 1.05fr .95fr; gap: 1.6rem; } }
.gallery { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); aspect-ratio: 1 / 1; margin: 0 -1rem; border-radius: 0; }
@media (min-width: 560px) { .gallery { margin: 0; border-radius: var(--r-lg); aspect-ratio: 4 / 3; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .4rem; margin-top: .5rem; overflow-x: auto; }
.thumbs img { width: 64px; height: 52px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; flex: none; }
.thumbs img.on { border-color: var(--v-accent); }
.buy { display: flex; flex-direction: column; gap: .85rem; }
.buy .crumbs { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.buy .crumbs a { text-decoration: none; }
.buy .price { font-family: var(--display); font-size: 2rem; }
.opts { display: grid; gap: .6rem; }
.opts > label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.opts select, .opts input, .field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; background: #fff; width: 100%; }
.radios { display: flex; gap: .4rem; flex-wrap: wrap; }
.radios label { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; font-size: .85rem; font-weight: 500; background: var(--card); }
.radios input { display: none; }
.radios label.on { background: var(--v-accent); color: var(--v-accent-ink); border-color: var(--v-accent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .4rem; }
.slots > span { grid-column: 1 / -1; }
.slots button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: .55rem .3rem; font-size: .88rem; }
.slots button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.slots button.on { background: var(--v-accent); color: var(--v-accent-ink); border-color: var(--v-accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { border: 0; background: transparent; width: 40px; height: 40px; font-size: 1.2rem; }
.qty span { min-width: 32px; text-align: center; font-weight: 700; }
.buyrow { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.facts { display: grid; gap: .45rem; }
.facts .fact { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .6rem .85rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; }
@media (min-width: 560px) { .facts .fact { grid-template-columns: 120px 1fr; gap: .6rem; } }
.facts .fact b { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.buybar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 35; background: var(--card); box-shadow: 0 -8px 24px rgba(21, 18, 13, .08); border-top: 1px solid var(--line); padding: .6rem 1rem; display: flex; gap: .6rem; align-items: center; animation: rise .3s ease; }
.buybar .price { font-family: var(--display); font-size: 1.3rem; }
.buybar .btn { flex: 1; }
body.has-buybar main { padding-bottom: 6rem; }
@media (min-width: 761px) { .buybar { display: none; } body.has-buybar main { padding-bottom: 2.5rem; } }

/* ---------------------------------------------------------------- basket */
.group { margin-bottom: .9rem; overflow: hidden; }
.group .ghead { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); gap: .6rem; flex-wrap: wrap; background: var(--paper); }
.group .ghead .who { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.group .ghead .vlogo { --s: 32px; border-width: 2px; }
.line { display: grid; grid-template-columns: 60px 1fr; gap: .7rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .line { grid-template-columns: 60px 1fr auto; } }
.line:last-child { border-bottom: 0; }
.line img { width: 60px; height: 52px; object-fit: cover; border-radius: 12px; }
.line .what b { display: block; }
.line .what small { display: block; }
.line .amt { display: flex; justify-content: space-between; align-items: center; gap: .5rem; grid-column: 1 / -1; }
@media (min-width: 560px) { .line .amt { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.totals { display: grid; gap: .35rem; padding: 1rem 1.1rem; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--display); font-size: 1.35rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; }
.gform { padding: .9rem 1rem; display: grid; gap: .7rem; border-top: 1px solid var(--line); }
.field { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.field small { font-weight: 400; }
.fields { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.pay { display: grid; gap: .5rem; }
.pay label { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; cursor: pointer; background: var(--card); }
.pay label.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.pay label.off { opacity: .55; cursor: not-allowed; }
.pay input { margin-top: .25rem; }
.pay b { display: block; }
.pay small { display: block; }
.note { background: var(--gold-pale); color: #5b4512; border-radius: 12px; padding: .65rem .9rem; font-size: .86rem; }
.note.info { background: #e7eef9; color: #244a8a; }
.empty { text-align: center; padding: 2.4rem 1rem; }
.empty .big { font-size: 3rem; line-height: 1; margin-bottom: .6rem; }

/* -------------------------------------------------------------- tracking */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: .6rem 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 6px; height: 2px; background: var(--line); }
.step { text-align: center; font-size: .72rem; color: var(--muted); position: relative; padding-top: 20px; }
.step::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); position: absolute; top: 0; left: 50%; transform: translateX(-50%); border: 2px solid var(--card); }
.step.done { color: var(--ink); }
.step.done::before { background: var(--good); }
.step.now { color: var(--ink); font-weight: 700; }
.step.now::before { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-pale); }
.ocard { padding: 1rem 1.1rem; display: grid; gap: .5rem; }
.ocard .ohead { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ocard .ref { font-family: var(--display); font-size: 1.2rem; }
.ocard ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.pill { display: inline-block; border-radius: 999px; padding: .2rem .7rem; font-size: .76rem; font-weight: 700; background: #eee6d2; }
.pill.placed, .pill.requested { background: #e7eef9; color: #244a8a; }
.pill.accepted, .pill.confirmed { background: #fbe9b0; color: #5b4512; }
.pill.ready, .pill.out, .pill.reminded, .pill.done { background: #e3f2e8; color: #1f6b3f; }
.pill.cancelled { background: #f6e4e3; color: #8a2a25; }
.msgs { display: grid; gap: .5rem; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: #e9f5ec; font-size: .86rem; border: 1px solid #cfe6d6; }
.msg .ch { font-size: .66rem; font-weight: 700; letter-spacing: .05em; color: #1f6b3f; text-transform: uppercase; padding-top: .15rem; }
.msg time { display: block; color: var(--muted); font-size: .74rem; margin-top: .2rem; }
.msg.preview, .msg.queued { background: #f4efe3; border-color: var(--line); }
.msg.preview .ch, .msg.queued .ch { color: #8a7a55; }
.paybox { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: grid; gap: .4rem; font-size: .9rem; }
.paybox .kv b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; }

/* ----------------------------------------------------------------- plans */
.plans { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.plan .pname { font-family: var(--display); font-size: 1.4rem; }
.plan .pprice b { font-family: var(--display); font-size: 1.6rem; }
.plan .fee { color: var(--muted); font-size: .85rem; }
.plan.hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow-lg); position: relative; }
.plan.hot::before { content: "Most shops"; position: absolute; top: -10px; right: 1rem; background: var(--gold); color: var(--night); font-size: .66rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.howgrid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .howgrid { grid-template-columns: repeat(3, 1fr); } }
.how .n { font-family: var(--display); font-size: 2.2rem; color: var(--gold-deep); line-height: 1; }
.nextlist { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nextlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .nextlist { grid-template-columns: repeat(3, 1fr); } }
.nextlist div { padding: .7rem .9rem; border: 1px dashed var(--line); border-radius: 14px; font-size: .86rem; background: rgba(255, 255, 255, .5); }
.nextlist b { display: block; }
.applyform { display: grid; gap: .8rem; }
.vstrip { background: var(--v-bg); color: var(--v-ink); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.vstrip-in { max-width: 1140px; margin: 0 auto; padding: .45rem 1rem; display: flex; gap: .6rem; align-items: center; font-size: .88rem; }
.vstrip a { text-decoration: none; }
.vstrip .vlogo { --s: 28px; border-width: 2px; }

/* --------------------------------------------------------------- footer */
.foot { background: var(--night); color: var(--night-tx); margin-top: 2rem; }
.foot-in { max-width: 1140px; margin: 0 auto; padding: 1.6rem 1rem; display: flex; gap: 1.2rem; justify-content: space-between; flex-wrap: wrap; font-size: .84rem; }
.foot img { width: 44px; margin-bottom: .4rem; }
.foot small { opacity: .7; display: block; max-width: 48ch; }
.foot nav { display: flex; gap: .9rem; flex-wrap: wrap; align-items: flex-start; }
.foot nav a { color: var(--gold); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 60; max-width: 92vw; animation: rise .25s ease; }
.toast.bad { background: var(--bad); }
@media (min-width: 761px) { .toast { bottom: 1.2rem; } }

/* ------------------------------------------------------------------- zen */
.zenfab { position: fixed; right: 1rem; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem .55rem .6rem; border-radius: 999px; border: 0; background: var(--night); color: var(--gold); font-weight: 700; box-shadow: 0 10px 30px rgba(11, 10, 8, .35); cursor: pointer; transition: transform .15s; }
.zenfab:active { transform: scale(.94); }
.zenfab img { width: 30px; height: 26px; filter: drop-shadow(0 0 6px rgba(255, 159, 28, .6)); }
@media (min-width: 761px) { .zenfab { bottom: 1.2rem; right: 1.2rem; } }
.zenpanel { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--card); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(11, 10, 8, .35); max-height: 82dvh; display: flex; flex-direction: column; animation: rise .25s ease; }
@media (min-width: 761px) { .zenpanel { inset: auto 1.2rem 1.2rem auto; width: 400px; border-radius: 24px; max-height: 70vh; } }
.zenpanel .zh { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--night); color: var(--night-tx); border-radius: 24px 24px 0 0; }
.zenpanel .zh img { width: 34px; height: 29px; }
.zenpanel .zh b { color: var(--gold); display: block; line-height: 1.1; }
.zenpanel .zh small { opacity: .75; }
.zenpanel .zh button { margin-left: auto; background: transparent; border: 0; color: var(--night-tx); font-size: 1.4rem; line-height: 1; }
.zenlog { overflow-y: auto; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.zm { max-width: 88%; padding: .6rem .85rem; border-radius: 16px; font-size: .93rem; line-height: 1.45; }
.zm.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.zm.zen { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.zm .zl { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.zm .zl a { font-size: .8rem; font-weight: 600; text-decoration: none; background: var(--gold-pale); color: #5b4512; border-radius: 999px; padding: .25rem .7rem; }
.zm.thinking span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 3px; animation: glow 1s infinite; }
.zm.thinking span:nth-child(2) { animation-delay: .2s; } .zm.thinking span:nth-child(3) { animation-delay: .4s; }
.zchips { display: flex; gap: .4rem; overflow-x: auto; padding: 0 1rem .5rem; scrollbar-width: none; }
.zchips button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; }
.zform { display: flex; gap: .5rem; padding: .6rem 1rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.zform input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; }
.zform button { border-radius: 999px; border: 0; background: var(--gold); color: var(--night); font-weight: 700; padding: 0 1.1rem; }
body.zen-open .zenfab { display: none; }

/* ------------------------------------------------------------------ desk */
.deskbody { background: var(--paper); }
.deskbody .top-in { height: auto; }
.deskbody .side .vcard { box-shadow: var(--shadow); border-radius: var(--r-lg); }
.deskbody .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: .2rem; }
.deskbody .tabs::-webkit-scrollbar { display: none; }
.deskbody .tabs a { white-space: nowrap; flex: none; }
@media (min-width: 900px) { .deskbody .tabs { flex-wrap: wrap; overflow: visible; } }
.deskbody .stat { border-left: 4px solid var(--gold); }
.deskbody .ord { border-left: 4px solid var(--v-accent); }
.desk { max-width: 1240px; }
.deskwrap { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .deskwrap { grid-template-columns: 240px 1fr; } }
.side { display: flex; flex-direction: column; gap: .8rem; }
.side .vcard { padding: 1rem 1.1rem; background: var(--v-bg); color: var(--v-ink); border-radius: var(--r); }
.side .vcard .vname { font-family: var(--display); font-size: 1.3rem; }
.side .vcard .meta { font-size: .8rem; opacity: .85; display: grid; gap: .15rem; margin-top: .4rem; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
@media (min-width: 900px) { .tabs { flex-direction: column; } }
.tabs a { text-decoration: none; padding: .55rem .9rem; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: .92rem; display: flex; justify-content: space-between; gap: .5rem; background: rgba(255, 255, 255, .5); }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a .n { background: var(--gold); color: var(--night); font-size: .72rem; border-radius: 999px; padding: 0 .5rem; font-weight: 700; align-self: center; }
.panel { display: grid; gap: 1rem; }
.statrow { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .statrow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat { padding: .8rem 1rem; }
.stat .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.stat .v { font-family: var(--display); font-size: 1.5rem; margin-top: .1rem; }
.stat .s { font-size: .8rem; color: var(--muted); }
.ordlist { display: grid; gap: .7rem; }
.ord { padding: .9rem 1.1rem; display: grid; gap: .5rem; }
.ord .top { position: static; background: transparent; border: 0; color: inherit; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ord .ref { font-family: var(--display); font-size: 1.1rem; }
.ord .cust { font-size: .9rem; }
.ord .items { font-size: .9rem; margin: 0; padding-left: 1.1rem; }
.ord .acts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pickgrid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pick { padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); display: grid; gap: .3rem; }
.pick .pn { font-family: var(--display); font-size: 1.2rem; }
.till { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .till { grid-template-columns: 1.2fr .8fr; } }
.tillgrid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tillgrid button { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: .6rem .7rem; text-align: left; display: grid; gap: .1rem; }
.tillgrid button b { font-size: .9rem; line-height: 1.2; }
.tillgrid button span { font-size: .85rem; color: var(--muted); }
.stockin { width: 64px; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .4rem; text-align: right; font-size: 14px; }
.studio { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .studio { grid-template-columns: 320px 1fr; } }
.studio canvas { width: 100%; max-width: 420px; height: auto; border-radius: 14px; box-shadow: var(--shadow); background: #ddd; }
.studio textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.inlineform { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; font-size: .9rem; }
.kv b { font-variant-numeric: tabular-nums; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .9rem; }
.list li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .5rem; border-radius: 8px; background: rgba(255, 255, 255, .6); }
.login { max-width: 420px; margin: 2rem auto; display: grid; gap: .7rem; }
.login input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.pinbox { background: var(--gold-pale); color: #5b4512; border-radius: 12px; padding: .8rem 1rem; font-size: 1rem; }
.pinbox b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.5rem; letter-spacing: .2em; }
.switch { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.mini { border: 1px solid var(--line); border-radius: 8px; padding: .25rem .4rem; font-size: 14px; background: #fff; }
.vendorlink { white-space: nowrap; }
