:root {
  --plum: #3b1032;
  --plum-soft: #6d3a5c;
  --muted: #96707f;
  --pink: #ec4899;
  --rose: #f43f5e;
  --coral-deep: #e11d48;
  --orange: #f97316;
  --cream: #fff7ed;
  --peach: #fff1e6;
  --card-border: #ffe0cc;
  --sunset: linear-gradient(120deg, #ec4899 0%, #f43f5e 55%, #f97316 100%);
  --sunset-rev: linear-gradient(120deg, #f97316 0%, #f43f5e 55%, #ec4899 100%);
  /* Semantic surface variables: every themed surface, text, border and
     field colour reads through one of these, so the Dark and Grey
     themes at the foot of this file only restate the variables and
     never touch a component rule. The values here ARE the original
     Normal palette (identical to the brand variables and literals they
     replaced), so the default theme is unchanged in effect. Brand
     moments (the sunset gradients, the phone mock, the badges, the
     white pills on gradient cards) deliberately do NOT read these:
     they stay light in every theme. */
  --bg: linear-gradient(180deg, #fff7ed 0%, #fff1e6 55%, #ffe9dc 100%);
  --surface: #fff;
  --surface-soft: #fffaf5;
  --surface-warm: #fff7f0;
  --ink: #3b1032;
  --ink-soft: #6d3a5c;
  --ink-mute: #96707f;
  --line: #ffe0cc;
  --field-line: #f2c9b8;
  --field-bg: #fff;
  --tint: #fff1e6;
  --tint-grad: linear-gradient(135deg, #fff1e6, #ffe4ec);
  --tint-grad-alt: linear-gradient(135deg, #ffe4ec, #ffe9dc);
  --btn-bg: #ffe9dc;
  --btn-disabled: #ead9e2;
  --accent: #e11d48;
  --warn: #c2410c;
  --danger-ink: #b0443c;
  --danger-line: #dfb3b3;
  --pill-grad: linear-gradient(135deg, #ffffff, #fff1e6);
  --pill-grad-hover: linear-gradient(135deg, #ffffff, #ffe4ec);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* The page is a full-height column (header, main, footer) so the
   plum footer band always closes the page: main grows to fill the
   space between the header and the band, and the band follows main
   exactly, with no strip of page background in between on short
   pages or long ones, in any theme. */
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); background-attachment: fixed; color: var(--ink); }
/* The header is ONE row at every width: brand left, actions pinned
   right, never wrapping onto a second row. The actions never shrink
   (flex: none) and the brand text ellipsises if a very narrow screen
   ever squeezes it; the small-screen block below tightens the sizes
   first so that stays a last resort. */
.top { background: var(--sunset); padding: 12px 18px; box-shadow: 0 4px 14px rgba(244, 63, 94, .28); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.top .brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.2rem; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandmark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(59, 16, 50, .25); flex: none; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex: none; }
@media (max-width: 560px) {
  .top { padding: 10px 12px; gap: 8px; }
  .top .brand { font-size: 1.02rem; gap: 8px; }
  .brandmark { width: 30px; height: 30px; border-radius: 8px; }
  .top-actions { gap: 6px; }
  .btn.loginbtn { padding: 7px 12px; font-size: .92rem; }
  .chatbtn { padding: 9px 11px; font-size: .88rem; }
}
/* The theme switch: a compact round icon button riding on the sunset
   header (so it looks the same in all three themes), showing only
   the CURRENT theme's icon: a sun for Normal, a moon for Dark, a
   half-filled circle for Grey. layout()'s script cycles it; the
   palettes live at the foot of this file. */
.themebtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: rgba(255, 255, 255, .18); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50%; cursor: pointer; }
.themebtn:hover { background: rgba(255, 255, 255, .30); }
.themebtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.themebtn svg { display: block; flex: none; }
.btn.loginbtn { background: #fff; color: var(--coral-deep); padding: 8px 18px; box-shadow: 0 2px 8px rgba(59, 16, 50, .18); }
/* The buyer Chat pill: on shop and product pages only, the header
   carries a WhatsApp link to the shop owner in front of the theme
   button. It rides on the sunset header like the theme button, in a
   deep WhatsApp green with white text, so it reads the same in all
   three themes (the header itself never changes with the theme). */
.chatbtn { display: inline-flex; align-items: center; gap: 6px; background: #0d7a40; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1; text-decoration: none; padding: 10px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(59, 16, 50, .18); }
.chatbtn:hover { filter: brightness(1.08); }
.chatbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chatbtn svg { display: block; flex: none; }
/* main grows down the body column to meet the footer band. Its
   bottom padding is gone: that 16px was a dead strip of page
   background sitting directly above the band. display: flow-root
   keeps child margins inside main instead of collapsing out of
   it. The junction rules below then zero the bottom margin of
   main's last box: that margin (a card's 16px) was still showing
   as a strip of page background between the content and the band
   on ordinary pages (measured under the homepage CTA card),
   while the wide auth pages, whose split carries no such margin,
   already closed flush. With it zeroed the band follows the
   content itself on every page; the spacing between elements
   inside a page is untouched. The second rule covers the pages
   (the desk, the product page) whose template ends with a script
   tag: the script is main's last child but draws no box, so the
   element just before it is the real junction. */
main { flex: 1 0 auto; width: 100%; max-width: 860px; margin: 0 auto; padding: 16px 16px 0; display: flow-root; }
main > :last-child { margin-bottom: 0; }
main > :has(+ script:last-child) { margin-bottom: 0; }
h1, h2, h3 { color: var(--ink); }
a { color: var(--accent); }
/* The footer is a full-bleed deep plum band: layout() renders it
   outside <main>, directly under <body>, so its background runs edge
   to edge and flush with the bottom of the page, while .foot-inner
   restores the same centred measure as the page (860px, 16px sides).
   Like the sunset header it is a brand moment with FIXED colours: it
   never reads the theme variables, so it stays deep plum in Normal,
   Grey and Dark alike. In Dark the page behind it is #171019; the
   plum (#2a1230, deepened from the brand plum #3b1032) is lighter and
   more saturated than that ground, and the 3px sunset strip along
   its top edge marks the boundary, so the band still reads as a
   distinct footer there. Every text tone is chosen on the plum, not
   on the page: the warm off-white ink (#f7eef2, the Dark theme's ink)
   for the brand line, a softer plum-pale (#c9a8bc, about 8:1) for the
   secondary lines, and a light peach (#ffb59d, about 10:1) for the
   links, so even the smallest .9rem line clears AA comfortably. The
   link override is scoped to .foot; links everywhere else keep the
   global accent. Footer links rest clean, with no underline, and
   take their underline only on hover or keyboard focus, so the band
   reads calm and luxurious at rest. The band's depth is fixed by
   construction: flex: none keeps it from ever growing or shrinking
   as an item of the body column, and .foot-inner's padding (26px
   top, 30px bottom) is the whole of its vertical sizing, so the
   band is the same compact depth on every page, whatever the
   page's length or the viewport's height. */
.foot { background: #2a1230; color: #c9a8bc; flex: none; text-align: center; font-size: .9rem; }
.foot::before { content: ''; display: block; height: 3px; background: var(--sunset); }
.foot-inner { max-width: 860px; margin: 0 auto; padding: 26px 16px 30px; }
.foot .footbrand { color: #f7eef2; }
.foot a { color: #ffb59d; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(244, 63, 94, .10), 0 2px 6px rgba(59, 16, 50, .06); }
.hero { background: var(--sunset); color: #fff; border: 0; box-shadow: 0 12px 30px rgba(244, 63, 94, .35); }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero a { color: #ffe9f3; font-weight: 700; }
.hero label { color: #fff; }
.shophead { background: var(--tint-grad); }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
input, textarea, select { padding: 11px 13px; border: 1.5px solid var(--field-line); border-radius: 12px; font: inherit; width: 100%; background: var(--field-bg); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }
.btn { display: inline-block; background: var(--btn-bg); border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); text-align: center; }
.btn:hover { filter: brightness(1.04); }
.btn.primary { background: var(--sunset); color: #fff; width: 100%; box-shadow: 0 6px 16px rgba(244, 63, 94, .35); }
.btn.whatsapp { background: var(--sunset-rev); color: #fff; width: 100%; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(249, 115, 22, .35); }
.btn.small { padding: 7px 14px; }
.big { font-size: 1.15rem; }
.big strong { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(244, 63, 94, .09); display: grid; gap: 8px; }
.product img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; }
.noimg { height: 130px; display: grid; place-items: center; background: var(--tint-grad-alt); border-radius: 12px; color: var(--rose); font-weight: 800; }
.noimg span { font-size: 3rem; line-height: 1; }
/* Wide layout for shops with only 1-2 products: one full-width column,
   taller photos, so a new shop looks rich instead of half empty. */
.grid.few { grid-template-columns: 1fr; }
.grid.few .product img { height: auto; }
.grid.few .noimg { height: 200px; }
/* Tap-to-expand product cards: tapping the photo (or the name) opens the
   card across the full grid row with the photo shown in full, so buyers
   can read every choice without truncation. Pure presentation: shop.js
   only toggles the .expanded class on the same card elements. */
.expandtoggle { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; border-radius: 12px; cursor: pointer; font: inherit; text-align: inherit; }
.expandtoggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(249, 115, 22, .45); }
.expandtoggle img { display: block; }
.expandhint { position: absolute; right: 8px; bottom: 8px; background: rgba(59, 16, 50, .82); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .2px; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.product .pname { cursor: pointer; }
.product.expanded { grid-column: 1 / -1; }
.product.expanded img { height: auto; }
.product.expanded .noimg { height: 220px; }
.product.expanded .expandhint { display: none; }
.product.expanded .choicegroup .groupname { font-size: 1rem; }
.product.expanded select { padding: 13px; font-size: 1rem; }
.expandclose { display: none; }
.product.expanded .expandclose { display: inline-block; justify-self: start; }
/* Collapsed-card choice selects: at the grid's narrowest column the
   inherited 16px select text clipped long option labels behind the
   native arrow ("Extra chicken 1500" lost its last digit). Scoped to
   collapsed cards in the multi-column grid only: the text starts BIG
   (.9rem, near card text size) with the native arrow replaced by a
   small custom chevron and an honest text zone (right padding 18px:
   5 offset + 9 chevron + 4 gap). shop.js then runs a fit pass
   (fitChoiceSelects) that measures each select's longest option at
   this base size and shrinks only the selects whose longest label
   cannot fit, down to a .55rem floor; selects that fit keep the full
   .9rem, and with JavaScript off every select simply stays at .9rem.
   Expanded cards, the wide 1-2 product layout (.few), the product
   page and the desk keep their larger selects untouched. */
.grid:not(.few) .product:not(.expanded) select.choice { font-size: .9rem; line-height: 1.25; min-width: 0; width: 100%; padding: 10px 18px 10px 8px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%236d3a5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 5px center; background-size: 9px 6px; }
.fulllink { justify-self: start; }
/* The ask-on-WhatsApp button lives in the expanded card only, like the
   Close button: collapsed cards stay compact. */
.product .askbtn { display: none; }
.product.expanded .askbtn { display: inline-block; justify-self: start; }
/* Shop search: a quiet filter bar above the product grid. Cards and
   category headings are hidden with the hidden property by shop.js, so
   the global [hidden] rule does the visual work; these rules only style
   the bar itself. */
.searchbar { margin-bottom: 14px; }
.searchbar label { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 12px rgba(244, 63, 94, .07); }
.searchcount { margin: 8px 2px 0; color: var(--ink-mute); font-size: .88rem; font-weight: 600; }
.searchnone { margin: 8px 2px 0; color: var(--ink-soft); font-weight: 700; }
/* Category filter pills (buyer shop page, multi-category shops only):
   a horizontally scrolling row under the search box. The active pill
   wears the sunset; the rest are soft outline pills on the surface.
   shop.js toggles .active and hides the non-matching cards, composing
   with the search box above; with no JS the pills are inert and the
   shelf simply shows everything. */
.catpills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: none; }
.catpills::-webkit-scrollbar { display: none; }
.catpill { flex: none; font: inherit; font-size: .9rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.catpill:hover { border-color: var(--orange); color: var(--ink); }
.catpill:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.catpill.active { background: var(--sunset); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(244, 63, 94, .30); }
/* The desk product search reuses the .searchbar/.searchcount/.searchnone
   rules above (it sits inside the products card, so its label needs no
   extra chrome); only the centred Show all row under the desk grid,
   which folds the cards past the first 12 away, is desk-only. */
.showallrow { text-align: center; margin: 14px 0 2px; }
/* Product page: one product in full, SCIMS-style: one big hero photo
   panel on top (natural aspect, never cropped), the name and price
   large and bold under it, the category as a chip, and one big
   full-width order button. The .product block inside loses its card
   chrome (the page section is already a card). */
.productpage .product { border: 0; box-shadow: none; padding: 0; margin-bottom: 14px; }
.productpage .product h1 { margin: 0 0 2px; font-size: 1.6rem; line-height: 1.2; }
.productpage .price { font-size: 1.45rem; margin: 0 0 8px; }
.factrow { margin: 0; }
.productpage .mainphoto { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 10px 26px rgba(59, 16, 50, .14); }
.productpage .page-noimg { border-radius: 16px; }
.page-noimg { height: 260px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbpick { padding: 0; border: 2px solid var(--line); border-radius: 10px; background: none; cursor: pointer; overflow: hidden; line-height: 0; }
.thumbpick:hover, .thumbpick:focus-visible { border-color: var(--orange); outline: none; }
.thumbpick.active { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.thumbpick img { width: 64px; height: 64px; object-fit: cover; display: block; }
.productpage .orderbtn { font-size: 1.12rem; padding: 16px 18px; }
.proddesc { color: var(--ink-soft); margin: 4px 0; }
.product h3 { margin: 0; font-size: 1rem; }
.catlabel { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-mute); }
.cathead { margin: 20px 0 10px; font-size: 1.25rem; }
.cathead:first-of-type { margin-top: 4px; }
.price { margin: 0; font-weight: 800; color: var(--accent); }
.choicegroup { display: grid; gap: 5px; }
.choicegroup .groupname { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.checkopt { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkopt input { width: auto; margin: 0; }
.qtyrow { display: flex; align-items: center; gap: 12px; }
.qty { font-weight: 800; min-width: 20px; text-align: center; color: var(--ink); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
/* Order card actions travel as ONE group (.oactions), the row's
   second flex child: the buttons sit side by side as a pair at the
   right instead of spreading across the row with a dead gap between
   them. The reject wrap, form and picker fields are flex rows too,
   so when the picker is revealed its fields wrap neatly inside the
   group (and the group wraps under the details on narrow screens)
   instead of overflowing the card. The global [hidden] rule still
   folds the picker away; no display rule here fights it. */
.oactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.oactions .rejectwrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.oactions .rejectform { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oactions .rejectfields { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dayhead { list-style: none; font-weight: 800; font-size: .85rem; letter-spacing: .05em; color: var(--ink-soft); margin-top: 10px; padding: 0 2px; }
.dayhead:first-child { margin-top: 0; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; vertical-align: middle; margin-right: 8px; }
.noimg-thumb { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: var(--tint-grad-alt); color: var(--rose); font-weight: 800; }
.noimg-thumb span { font-size: 1.4rem; line-height: 1; }
.badge { background: #ffedd5; color: #c2410c; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .85rem; }
.badge.st-new { background: #ffedd5; color: #c2410c; }
.badge.st-paid { background: #ede9fe; color: #6d28d9; }
.badge.st-delivered { background: #dcfce7; color: #15803d; }
.badge.st-rejected { background: #efe7e7; color: #8f5a5a; }
/* Password visibility toggle: an eye icon button sitting INSIDE the
   right edge of the signup password field (the SCIMS look), not a
   Show/Hide text button beside the field. .pwwrap is the positioning
   context, and the input's right padding keeps the typed dots clear
   of the icon. The button is a 38px tap target with no resting
   background or border; the global [hidden] rule folds the button
   away until the script unhides it, and folds whichever of the two
   SVGs (open eye / slashed eye) is not the current state. */
.pwwrap { position: relative; display: block; }
.pwwrap input { padding-right: 50px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; padding: 0; color: var(--ink-soft); cursor: pointer; }
.pw-toggle:hover { background: var(--btn-bg); }
.pw-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.pw-toggle svg { display: block; }
.pwhint { background: var(--surface); border: 1.5px dashed var(--pink); border-radius: 14px; padding: 12px 14px; }
.pwhint .linkbtn { margin-top: 6px; font-size: .9rem; }
.suggest-note { margin: 0; font-size: .85rem; color: var(--ink-mute); }
/* One-time recovery code display (signup and desk regenerate): big,
   spaced letters on a dashed ticket, impossible to skim past. */
.recoverycode { font-size: 1.7rem; font-weight: 800; letter-spacing: 3px; text-align: center; color: var(--accent); background: var(--surface-warm); border: 1.5px dashed var(--pink); border-radius: 14px; padding: 16px 10px; word-break: break-all; }
/* The note on the login page after a successful password reset. */
.resetnote { background: var(--surface-warm); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 700; color: var(--ink-soft); }
/* ---------- split-screen auth pages (login, signup) ---------- */
/* These two pages escape the centred 860px column: layout() renders
   <main class="wide"> for them, which drops the max-width and padding
   so .authsplit runs edge to edge, 100% of the viewport width, with
   no horizontal scrollbar (both halves are border-box grid tracks).
   The wide main is a flex column and the split grows inside it, so
   it fills exactly the space between the header and the footer band
   and runs flush into the band (the fixed min-height allowance it
   used before predated the tall plum footer and left the split
   short of the band). The left half is the sunset brand panel; it
   opens with the promise headline, because the brand mark and name
   already sit in the header and are not repeated inside the panel.
   The right half carries the form card on the normal app background,
   centred in its half. At and under 860px the brand panel disappears
   entirely and the form takes the whole width as one column with its
   own padding. */
main.wide { max-width: none; padding: 0; display: flex; flex-direction: column; }
.authsplit { flex: 1 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.authbrand { background: var(--sunset); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; box-shadow: 12px 0 30px rgba(244, 63, 94, .18); }
.authbrand h1 { color: #fff; font-size: 2.1rem; line-height: 1.15; margin: 0 0 10px; }
.authbrand-line { margin: 0; max-width: 46ch; }
.authbrand .phone { align-self: flex-start; }
.authbrand .sample-note { color: #fff; }
.authmain { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.authcard { margin: 0; width: 100%; max-width: 440px; }
.authcard h1 { margin-top: 0; }
@media (max-width: 860px) {
  .authsplit { display: block; min-height: 0; }
  .authbrand { display: none; }
  .authmain { padding: 24px 16px; }
}
/* Public demo mode: the homepage "Try the demo" button (a plain white
   secondary beside the sunset signup button, on the hero card) and the
   banner across the top of a demo shop's desk. */
.btn.demobtn { width: 100%; background: #fff; color: var(--coral-deep); box-shadow: 0 2px 8px rgba(59, 16, 50, .18); }
.demobanner { background: var(--surface-warm); border: 1.5px dashed var(--pink); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; color: var(--ink-soft); }
.demobanner strong { color: var(--accent); }
/* Paused shop: the banner across the top of the owner's desk while the
   shop is closed to buyers, with the Resume action inline. Same dashed
   ticket family as the demo banner, in the warm warning tones. */
.pausedbanner { background: var(--surface-warm); border: 1.5px dashed var(--orange); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pausedbanner p { margin: 0; }
.pausedbanner strong { color: var(--warn); }
/* Suspended shop: the banner across the top of the owner's desk while
   the platform admin has the shop suspended. Heavier than the paused
   banner on purpose (solid danger border, danger-ink heading): this
   state is not the owner's doing and only the admin can lift it. */
.suspendedbanner { background: var(--surface-warm); border: 2px solid var(--danger-line); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; color: var(--ink-soft); }
.suspendedbanner p { margin: 0; }
.suspendedbanner strong { color: var(--danger-ink); }
/* Platform admin: the shop-list status badges. Like the order badges
   they are brand moments with fixed light colours, readable in every
   theme. */
.badge.adminbadge-suspended { background: #fee2e2; color: #b91c1c; }
.badge.adminbadge-paused { background: #ffedd5; color: #c2410c; }
.badge.adminbadge-deleted { background: #e5e7eb; color: #4b5563; }
.badge.adminbadge-demo { background: #ede9fe; color: #6d28d9; }
/* Admin Payments: the payment status badges, in the same fixed
   light colours as the other admin badges. */
.badge.payst-paid { background: #dcfce7; color: #15803d; }
.badge.payst-pending { background: #ffedd5; color: #c2410c; }
.badge.payst-failed { background: #fee2e2; color: #b91c1c; }
.badge.payst-abandoned { background: #e5e7eb; color: #4b5563; }
/* Buyer report counts in admin (the Shops list and the detail
   page's Reports heading): a fixed red-tinted badge, so a reported
   shop stands out in every theme. */
.badge.reportbadge { background: #fee2e2; color: #b91c1c; }
/* The quiet "Report this shop" line at the foot of the buyer shop
   and product pages. */
.reportlink { text-align: center; margin: 16px 0 4px; font-size: .85rem; }
.reportlink a { color: var(--ink-mute); }
/* The worked choices example on the desk Help page: a soft panel in
   the shop's own words, line breaks doing the layout. */
.helpexample { background: var(--surface-warm); border: 1.5px dashed var(--pink); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
/* Platform notice bar: a slim sunset strip at the very top of the
   homepage and every seller desk while the owner has it switched on.
   Like the other sunset moments it stays constant in every theme. */
.noticebar { background: var(--sunset); color: #fff; font-weight: 700; text-align: center; padding: 9px 14px; border-radius: 12px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(244, 63, 94, .25); }
/* Comprehensive admin: the sub-navigation's Log out is a button
   inside a form, reset so it reads as one more pill in the bar. */
.adminlogout { margin-left: auto; }
.adminlogoutbtn { background: none; border: none; font: inherit; cursor: pointer; }
.adminlogoutbtn:hover { background: var(--tint); }
/* Admin overview figures: the by-status and plan lines inside the
   stat cards. */
.adminfigline { margin: 4px 0; font-size: 1rem; }
/* Last-7-days strip: one row per Lagos day, a CSS bar for the order
   count and the paid value as text. No chart library. */
.daystrip { display: grid; gap: 8px; margin-top: 6px; }
.dayrow { display: flex; align-items: center; gap: 10px; }
.daylabel { flex: 0 0 92px; font-weight: 700; font-size: .9rem; }
.daybar { flex: 1 1 auto; height: 12px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; }
.dayfill { display: block; height: 100%; background: var(--sunset); border-radius: 999px; }
.daynums { flex: 0 0 auto; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 560px) { .dayrow { flex-wrap: wrap; } .daylabel { flex-basis: 100%; } }
/* Admin filter forms (Shops and Orders): the search box and the
   selects sit in one wrapping row, usable with no JavaScript. */
.adminfilters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.adminfilters label { flex: 1 1 180px; }
.adminfilters .btn { flex: 0 0 auto; }
/* Shop detail facts list. */
.adminfacts { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.adminfacts li { font-size: .98rem; }
.adminbadges { margin: 0 0 4px; }
.adminplanform { max-width: 320px; }
/* ---------- homepage sections ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy h1 { font-size: 2rem; line-height: 1.15; margin-top: 0; }
.sample-note { font-size: .8rem; opacity: .85; margin: 8px 0 0; }
.phone { background: #fff; border-radius: 28px; padding: 14px; max-width: 300px; margin-top: 16px; color: var(--plum); box-shadow: 0 14px 30px rgba(59, 16, 50, .30); border: 6px solid rgba(59, 16, 50, .85); }
.phone-notch { width: 70px; height: 6px; border-radius: 999px; background: #ead9e2; margin: 0 auto 12px; }
.phone-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.phone-head small { color: var(--muted); font-size: .68rem; word-break: break-all; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sunset); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.phone-item { display: flex; justify-content: space-between; padding: 8px 10px; background: #fff7f0; border: 1px solid var(--card-border); border-radius: 10px; margin-bottom: 8px; font-size: .9rem; }
.phone-item strong { color: var(--coral-deep); }
.phone-order { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: #fdf2f8; border: 1px dashed var(--pink); border-radius: 10px; font-size: .85rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.stepnum { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sunset); color: #fff; font-weight: 800; margin-bottom: 8px; }
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--tint); border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .92rem; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.feature { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.pricing { background: var(--tint-grad); text-align: center; }
.pricing h2 { font-size: 1.6rem; margin-bottom: 6px; }
/* Homepage pricing section: the Free and Pro plan cards side by side
   (stacked on narrow screens). Pro is launching soon and cannot be
   bought yet, so its button is a muted non-link span, never a checkout. */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; text-align: left; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricecard { background: var(--surface-soft); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; }
.pricecard.pro { background: var(--tint-grad); border-color: var(--pink); }
.pricecard h3 { margin: 0 0 4px; font-size: 1.25rem; }
.pricebig { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 4px 0 10px; }
.pricebig .per { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.pricefeatures { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; color: var(--ink-soft); }
.pricefeatures li::before { content: '✓ '; color: var(--accent); font-weight: 800; }
.probadge { display: inline-block; background: var(--sunset); color: #fff; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .82rem; margin: 0 0 8px; }
.btn.soonbtn { background: var(--btn-disabled); color: var(--ink-mute); cursor: default; width: 100%; box-shadow: none; }
.btn.soonbtn:hover { filter: none; }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { color: var(--ink-soft); margin: 8px 0 2px; }
.cta { background: var(--sunset); color: #fff; border: 0; text-align: center; box-shadow: 0 12px 30px rgba(244, 63, 94, .35); }
.cta h2 { color: #fff; }
.btn.ctabtn { background: #fff; color: var(--coral-deep); padding: 12px 26px; box-shadow: 0 6px 16px rgba(59, 16, 50, .25); }
.footbrand { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.foot p { margin: 4px 0; }

/* ---------- shop page ---------- */
.storehead { display: flex; gap: 14px; align-items: center; }
.storehead h1 { margin: 0 0 4px; }
.big-avatar { width: 58px; height: 58px; font-size: 1.6rem; }
.trustline { margin: 0 0 2px; color: var(--ink-soft); font-weight: 600; }
.aboutline { margin: 0 0 2px; color: var(--ink-soft); }
.shoplink { margin: 0; color: var(--ink-mute); font-size: .85rem; word-break: break-all; }
.basketbar { position: sticky; bottom: 12px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 10px 10px 18px; margin-bottom: 16px; box-shadow: 0 10px 26px rgba(244, 63, 94, .22); }
.basketbar .btn.primary { width: auto; }
.basketbar strong { color: var(--accent); }
.basketbar span strong:first-child { color: var(--ink); }
/* Checkout panel: the buyer details moved out of the page into an
   overlay sheet that opens from the basket bar's (or product page's)
   Review order button once something is picked. A bottom sheet on
   mobile, a centred dialog on wider screens. The global [hidden] rule
   hides it until shop.js opens it; opening also locks body scroll. */
.checkout-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(59, 16, 50, .55); display: flex; align-items: flex-end; justify-content: center; }
.checkout-sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px; box-shadow: 0 -12px 30px rgba(59, 16, 50, .30); }
@media (min-width: 721px) { .checkout-overlay { align-items: center; padding: 16px; } .checkout-sheet { border-radius: 20px; } }
body.checkout-open { overflow: hidden; }
.checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.checkout-head h2 { margin: 0; }
.reviewlist { display: grid; gap: 10px; margin: 14px 0; }
.reviewrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 14px; padding: 10px 12px; }
.reviewmain { display: grid; gap: 2px; }
.reviewchoice { color: var(--ink-soft); font-size: .9rem; }
.reviewnums { display: grid; gap: 2px; text-align: right; white-space: nowrap; color: var(--ink-soft); }
.reviewnums strong { color: var(--accent); }
/* Pay by transfer block: the shop's bank details inside the checkout
   panel and on the order success page. A soft tinted panel so it reads
   as reference information, never as another step in the form. */
.bankblock { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.bankblock h3 { margin: 0 0 6px; }
.bankline { margin: 0 0 6px; line-height: 1.5; }
.bankblock p { margin: 0; }
/* Product page hint under the quantity stepper, pointing at the Review
   order button that appears once a quantity is set. */
.orderhint { color: var(--ink-soft); font-weight: 600; margin: 0; }
.success { text-align: left; }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--sunset); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; box-shadow: 0 8px 20px rgba(244, 63, 94, .35); margin-bottom: 12px; }

/* ---------- desk ---------- */
/* Desk menu: the sticky bar over the desk and the account page, in the
   same pill language as the filter chips. It sticks near the top of
   the viewport on a solid white card background, so desk content
   scrolls underneath without showing through. The current page (the
   Account span on the account page) wears the sunset fill, like an
   active filter chip, and is not a link. */
.deskmenu { position: sticky; top: 10px; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(244, 63, 94, .14); }
.dmenu { border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink); }
a.dmenu:hover { background: var(--tint); }
.dmenu.active { background: var(--sunset); color: #fff; box-shadow: 0 4px 12px rgba(244, 63, 94, .30); }
/* Anchored desk sections land clear of the sticky menu, not under it. */
#orders, #products { scroll-margin-top: 84px; }
/* The shared owner pill button: one soft white-to-peach pill with deep
   plum text, a subtle shadow and a gentle hover lift. It dresses the
   desk Log out button and every "Back to desk / Back to your account
   settings" link on the owner pages, so the pair match across the app.
   It works the same on a <button> and on an <a>. */
.pillbtn { display: inline-block; background: var(--pill-grad); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 20px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; box-shadow: 0 4px 12px rgba(244, 63, 94, .14); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.pillbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(244, 63, 94, .22); background: var(--pill-grad-hover); }
/* Desk greeting card: the greeting and the Log out pill sit side by
   side on wide screens and stack neatly on narrow ones. */
.greetcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.greetcard h1 { margin: 0; }
.logoutform { margin: 0; }
/* Danger zone: the Delete my account doorway at the foot of the
   account page, set apart from every other control by a dashed
   divider and generous space. The button itself is a deep crimson
   gradient pill, darker and richer than the sunset brand gradient,
   with white bold text and a red-tinted shadow: expensive-looking and
   unmistakably dangerous, nothing like the soft owner pill buttons. */
.dangerzone { margin-top: 30px; border-top: 1.5px dashed #e3a7a7; padding-top: 18px; }
.dangerlabel { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--danger-ink); }
.dangerbtn { display: inline-block; background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #991b1b 100%); color: #fff; border: 1.5px solid #7f1d1d; border-radius: 999px; padding: 13px 30px; font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(153, 27, 27, .35); transition: transform .15s ease, box-shadow .15s ease; }
.dangerbtn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(153, 27, 27, .45); }
@media (max-width: 560px) { .greetcard { flex-direction: column; align-items: flex-start; } }
/* Desk product grid: the owner's products as compact cards, 2 per row
   on phone widths, 3 from 560px and 4 from 800px (the desk container
   tops out at 860px, so 800px is its wide tier). A card's face is just
   the photo, name, category and price, with Edit/Delete as small
   buttons; tapping the photo or name expands the card across the full
   row (desk.js toggles .expanded and unhides .dpdetails) to reveal the
   full choices summary, description and extra photos. */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.dproduct { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 8px; align-content: start; box-shadow: 0 6px 18px rgba(244, 63, 94, .09); }
.dptoggle { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; border-radius: 12px; cursor: pointer; font: inherit; text-align: inherit; }
.dptoggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(249, 115, 22, .45); }
.dpimg { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 12px; }
.noimg-dp { display: grid; place-items: center; background: var(--tint-grad-alt); color: var(--rose); font-weight: 800; }
.noimg-dp span { font-size: 2.2rem; line-height: 1; }
.dproduct .expandhint { position: absolute; right: 8px; bottom: 8px; background: rgba(59, 16, 50, .82); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .2px; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.dproduct.expanded .expandhint { display: none; }
.dpname { margin: 0; font-size: 1rem; cursor: pointer; }
.dpmeta { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dpactions { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dpdetails { border-top: 1.5px dashed var(--line); padding-top: 10px; display: grid; gap: 8px; }
.dpchoices, .dpdesc { margin: 0; color: var(--ink-soft); }
.dpextras { display: flex; gap: 8px; flex-wrap: wrap; }
.dpextra { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.dpclose { justify-self: start; }
.dproduct.expanded { grid-column: 1 / -1; }
/* Expanded desk photo is capped at a moderate 300px height with the
   whole picture visible (no cropping) and centred, so a tall photo
   cannot fill the screen and bury the details below it. Desk only:
   the buyer-side .product.expanded photo keeps its full natural
   height on purpose. */
.dproduct.expanded .dpimg { width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; margin: 0 auto; }
.dproduct.expanded .noimg-dp { height: 300px; }
.desk-top { display: grid; grid-template-columns: 1fr; }
.desk-top .card { margin-bottom: 16px; }
/* The day's figures as one tidy row of four stat cards under the shop
   link card; two by two on narrow screens. The row carries the bottom
   spacing, so the cards inside it drop the usual card margin. */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stats-row .card { margin-bottom: 0; }
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stats-row .statcard h2 { font-size: 1.05rem; }
/* Needs-you strip: directly under the stats row, listing only what is
   genuinely waiting for the owner (new orders, paid orders to deliver).
   It wears the sunset gradient like the hero card, with a soft premium
   shadow, white heading and text, and each action as a chunky white
   pill button in deep plum with its count large in front, so the whole
   pill is the tap target into the matching filtered orders view. When
   nothing is waiting, one calm white line says so. */
.needsyou { background: var(--sunset); color: #fff; border: 0; box-shadow: 0 12px 30px rgba(244, 63, 94, .35); }
.needsyou h2 { font-size: 1.05rem; color: #fff; }
.needpills { display: flex; flex-wrap: wrap; gap: 10px; }
.needpill { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--plum); border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 1.02rem; text-decoration: none; box-shadow: 0 4px 12px rgba(59, 16, 50, .22); }
.needpill:hover { filter: brightness(1.03); }
.needcount { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--coral-deep); }
.needsyou .caughtup { margin: 4px 0; color: #fff; font-weight: 600; }
/* Plan state: the quiet plan line above the add-product form (on its
   own page), the dashed limit notice (shown at the top of that page
   after a blocked create, and in place of the form at the cap), and the
   warn-only banner a free shop gets on the desk once the month's order
   figure is passed. The banner is warm, not an error: orders never
   stop. */
.planline { color: var(--ink-soft); font-weight: 600; margin: 4px 0 12px; }
.limitnotice { background: var(--surface-warm); border: 1.5px dashed var(--pink); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; color: var(--ink-soft); }
.planwarn { background: var(--surface-soft); }
.planwarn h2 { font-size: 1.05rem; color: var(--warn); }
.planwarn p { margin: 6px 0; color: var(--ink-soft); font-weight: 600; }
/* Setup checklist: the "Get your shop ready" card at the top of the
   desk. A plain themed card (its surfaces read the variables, so Dark
   and Grey hold), a slim sunset progress bar, and four step rows:
   done steps muted with a sunset check disc, the first open step
   highlighted as Next up in a soft panel wearing the only action
   button, later steps plain. The dismiss cross sits in the corner;
   its form is unstyled so the card keeps its shape with JS off. */
.setupcard { position: relative; }
.setupcard h2 { margin-top: 0; }
.setupsub { color: var(--ink-soft); font-weight: 600; margin: 4px 0 12px; }
.setupdismissform { position: absolute; top: 10px; right: 12px; margin: 0; }
.setupx { background: none; border: 0; color: var(--ink-mute); font-size: 1.35rem; line-height: 1; padding: 6px 8px; cursor: pointer; border-radius: 8px; }
.setupx:hover { color: var(--ink); background: var(--tint); }
.setupbar { height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.setupfill { height: 100%; background: var(--sunset); border-radius: 999px; transition: width .3s ease; }
.setupcount { color: var(--ink-soft); font-weight: 600; margin: 8px 0 4px; font-size: .92rem; }
.setuplist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.setupstep { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.setupstep.nextup { background: var(--surface-soft); border: 1.5px solid var(--line); }
.setupmark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--ink-soft); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.setupstep.done .setupmark, .setupstep.nextup .setupmark { background: var(--sunset); color: #fff; }
.setuptext { min-width: 0; }
.setuptitle { margin: 2px 0; font-weight: 700; color: var(--ink); }
.setupstep.done .setuptitle, .setupstep.done .setuphint { color: var(--ink-mute); }
.setupnext { display: inline-block; background: var(--sunset); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.setuphint { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.setupaction { margin: 10px 0 2px; }
.setupcard .btn.primary { width: auto; padding: 10px 22px; }
/* Share kit: the card right after the setup checklist carrying the
   shop's QR code and share links. The QR figure is a white tile in
   every theme (a code only scans on white), the shop name sits under
   the code as its caption, and the actions wrap beside it on wide
   screens and stack under it on phones. */
.sharecard h2 { margin-top: 0; }
.installcard h2 { margin-top: 0; }
.installcard .btn.primary { width: auto; padding: 10px 22px; }
/* First-landing install sheet: rendered only on the homepage and
   the seller desk, parked below the viewport by transform and slid
   up by the .open class (public/install.js owns the timing and the
   show rules). Full width with rounded top corners on phones; a
   floating card on wider screens. The sunset strip across the top
   is the brand accent; the surface and ink follow the theme. */
.installsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); color: var(--ink); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 34px rgba(59, 16, 50, .28); padding: 20px 18px; transform: translateY(110%); transition: transform .35s ease; }
.installsheet[hidden] { display: none; }
.installsheet::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--sunset); border-radius: 18px 18px 0 0; }
.installsheet.open { transform: translateY(0); }
.installsheet-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.installsheet-main { flex: 1 1 auto; min-width: 0; }
.installsheet-main h2 { margin: 2px 0 6px; font-size: 1.12rem; }
.installsheet-main p { margin: 0 0 10px; color: var(--ink-soft); }
.installsheet-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.installsheet .btn.primary { width: auto; padding: 10px 22px; }
.installsheet-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--ink-mute); cursor: pointer; padding: 6px; }
@media (min-width: 640px) {
  .installsheet { left: 50%; right: auto; bottom: 16px; width: min(500px, calc(100% - 32px)); border-radius: 18px; transform: translate(-50%, calc(100% + 24px)); }
  .installsheet::before { border-radius: 18px 18px 0 0; }
  .installsheet.open { transform: translate(-50%, 0); }
}
.shareflex { display: flex; gap: 20px; flex-wrap: wrap; }
.qrfigure { margin: 0; flex: none; text-align: center; }
.qrfigure .qrimg { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qrname { margin-top: 8px; font-weight: 700; color: var(--ink); max-width: 162px; overflow-wrap: anywhere; }
.sharemain { flex: 1 1 260px; min-width: 0; }
.sharemain .btn.primary { width: auto; padding: 10px 22px; }
.sharebtns { display: flex; flex-wrap: wrap; gap: 8px; }
.linkrow { word-break: break-all; font-size: 1.02rem; }
.copied { color: var(--accent); font-weight: 700; }
.statcard { text-align: center; background: var(--tint-grad); }
.statnum { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 6px 0; }
.awaitcard { background: var(--surface); }
.awaitcard h2 { font-size: 1.05rem; }
.awaitnum { font-size: 1.45rem; color: var(--warn); }
.catchip { display: inline-block; background: var(--tint); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: .78rem; vertical-align: middle; }
.filterchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.fchip { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.fchip:hover { border-color: var(--orange); }
.fchip.active { background: var(--sunset); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(244, 63, 94, .30); }
.btn.danger { background: var(--surface); border: 1.5px solid var(--danger-line); color: var(--danger-ink); box-shadow: none; }
.empty { background: var(--surface-soft); border: 1.5px dashed var(--pink); border-radius: 14px; padding: 16px; color: var(--ink-soft); }
.empty p { margin: 4px 0; }
#filterEmpty { margin: 0; font-weight: 700; }

.inline { display: inline; }
/* The reject picker (.rejectfields: the preset select, the custom
   box, Confirm reject and Cancel) is rendered open by the server and
   folded behind the .rejectreveal button by desk.js on load; the
   global [hidden] rule does the hiding, so no display rule belongs
   here. With JavaScript off the picker simply stays open. */
.rejectform select { width: auto; max-width: 190px; padding: 7px 10px; vertical-align: middle; }
/* The reject form's custom-reason box, beside the preset select
   inside the revealed picker (the server, not the script, decides
   whether its text counts). Slightly muted until desk.js spotlights
   it with the .active class when the owner picks "Other". */
.rejectform .reason-other { width: auto; max-width: 210px; padding: 7px 10px; vertical-align: middle; background: var(--surface-soft); }
.rejectform .reason-other.active { background: var(--surface); border-color: var(--rose); box-shadow: 0 0 0 3px rgba(244, 63, 94, .18); }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- themes: Dark and Grey ---------- */
/* The header icon button (layout()) sets data-theme on <html> from the
   device-local 'cod-theme' choice; no attribute (or a fresh device)
   is the Normal theme defined by the :root variables at the top.
   Dark and Grey only restate the semantic variables: every themed
   surface follows at once, while the brand moments that never read
   the variables (sunset header, hero, auth panel, Needs-you strip,
   phone mock, badges, white pills on gradients) stay exactly as they
   are in all three themes. The few component touches below are the
   exceptions a variable cannot express: the collapsed-card select
   chevron is a baked-in SVG colour, and the pink-tinted shadows all
   but vanish on dark surfaces, so dark swaps them for black ones. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171019;
  --surface: #251829;
  --surface-soft: #2c1e33;
  --surface-warm: #2c1e33;
  --ink: #f7eef2;
  --ink-soft: #d3b7c9;
  --ink-mute: #ab8ea2;
  --line: #48304e;
  --field-line: #574060;
  --field-bg: #1f1424;
  --tint: #352232;
  --tint-grad: linear-gradient(135deg, #2c1e33, #3a2233);
  --tint-grad-alt: linear-gradient(135deg, #38202f, #2c1e33);
  --btn-bg: #3a2438;
  --btn-disabled: #2e1c2c;
  --accent: #fb7185;
  --warn: #fb923c;
  --danger-ink: #f0958a;
  --danger-line: #8a554e;
  --pill-grad: linear-gradient(135deg, #2e2036, #251829);
  --pill-grad-hover: linear-gradient(135deg, #352540, #2a1c30);
}
:root[data-theme="dark"] .card { box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .product, :root[data-theme="dark"] .dproduct { box-shadow: 0 6px 18px rgba(0, 0, 0, .40); }
:root[data-theme="dark"] .basketbar { box-shadow: 0 10px 26px rgba(0, 0, 0, .50); }
:root[data-theme="dark"] .deskmenu { box-shadow: 0 8px 20px rgba(0, 0, 0, .40); }
:root[data-theme="dark"] .checkout-sheet { box-shadow: 0 -12px 30px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .phone { border-color: rgba(247, 238, 242, .28); box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .productpage .mainphoto { box-shadow: 0 10px 26px rgba(0, 0, 0, .50); }
:root[data-theme="dark"] .grid:not(.few) .product:not(.expanded) select.choice { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23d3b7c9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Grey: the calm middle theme. Cards stay white on a soft grey wash,
   every peach tint becomes a neutral grey, and the brand accents keep
   their Normal strength, only the surfaces quieten down. */
:root[data-theme="grey"] {
  --bg: #e9e9ea;
  --surface: #fff;
  --surface-soft: #f4f4f5;
  --surface-warm: #f4f4f5;
  --ink: #26262a;
  --ink-soft: #4c4c52;
  --ink-mute: #71717a;
  --line: #d9d9dd;
  --field-line: #c9c9ce;
  --field-bg: #fff;
  --tint: #eeeef0;
  --tint-grad: linear-gradient(135deg, #f0f0f1, #e6e6e8);
  --tint-grad-alt: linear-gradient(135deg, #e8e8ea, #eeeef0);
  --btn-bg: #e4e4e7;
  --btn-disabled: #dcdce0;
  --accent: #e11d48;
  --warn: #c2410c;
  --danger-ink: #b0443c;
  --danger-line: #dfb3b3;
  --pill-grad: linear-gradient(135deg, #ffffff, #eeeef0);
  --pill-grad-hover: linear-gradient(135deg, #ffffff, #e4e4e7);
}
:root[data-theme="grey"] .card { box-shadow: 0 8px 24px rgba(38, 38, 42, .08), 0 2px 6px rgba(38, 38, 42, .05); }
:root[data-theme="grey"] .product, :root[data-theme="grey"] .dproduct { box-shadow: 0 6px 18px rgba(38, 38, 42, .07); }
:root[data-theme="grey"] .productpage .mainphoto { box-shadow: 0 10px 26px rgba(38, 38, 42, .10); }
