:root {
  --accent: #6a2cf5;
  --accent-2: color-mix(in srgb, var(--accent) 35%, #ff2e93);
  --pink: #ff2e93;
  --sun: #ffd21f;
  --mint: #00c389;
  --sky: #2f8bff;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #14121f;
  --muted: #5f5b73;
  --line: #ebe9f3;
  --soft: #f5f3fc;
  --good: #008a5e;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --bad: #b3261e;
  --bad-bg: #fde8e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(26 31 27 / 6%), 0 6px 18px rgb(26 31 27 / 5%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; margin: 28px 0 18px; }
h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
p { margin: 0 0 10px; }
small { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main.wrap { min-height: 60vh; padding-bottom: 56px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; color: var(--accent); }
.search input { width: 100%; max-width: 460px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; color: inherit; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-pill svg { width: 22px; height: 22px; fill: currentColor; }
.cart-pill [data-cart-count] { background: #fff; color: var(--accent); min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 0.85rem; }
.cats { border-top: 1px solid var(--line); }
.cats-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.cats-row a { flex: none; padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.cats-row a:hover { background: var(--soft); color: var(--ink); }
.cats-row a[aria-current] { background: var(--ink); color: #fff; }

/* Hero */
.hero { margin: 24px 0 22px; padding: 28px; border-radius: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.hero h1 { margin: 0 0 4px; }
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-pic { display: block; aspect-ratio: 1; background: var(--soft); text-decoration: none; }
.pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic.blank { display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 45%, var(--soft)); background: var(--soft); text-transform: uppercase; }
.pic.thumb { width: 60px; height: 60px; border-radius: 10px; font-size: 1.4rem; }
.pic.big { border-radius: 20px; aspect-ratio: 1; font-size: 6rem; }
.card-body { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-name { font-weight: 600; text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-net { color: var(--muted); font-size: 0.9rem; }
.card-buy { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding: 10px 14px 14px; }
.price { display: flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price b { font-size: 1.15rem; font-weight: 800; }
.price s { color: var(--muted); font-size: 0.85rem; }
.price small { font-size: 0.8rem; }
.price.big { margin: 14px 0; }
.price.big b { font-size: 1.9rem; }

/* Quantity control */
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; background: var(--accent); color: #fff; flex: none; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button.add { width: auto; padding: 0 18px; font-size: 0.95rem; }
.stepper button:hover { background: rgb(255 255 255 / 16%); }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; margin-top: 28px; align-items: start; }
.product-pic { background: var(--soft); border-radius: 20px; overflow: hidden; }
.product h1 { margin: 6px 0 4px; }
.crumb { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.desc { margin-top: 18px; max-width: 60ch; }
.facts { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: 0.9rem; }
.fact dd { margin: 0; }

/* Boxes, notes, buttons */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box.narrow { max-width: 520px; }
.note { padding: 12px 14px; border-radius: 10px; background: var(--soft); margin: 0 0 14px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.good { background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good); font-weight: 600; }
.empty { color: var(--muted); padding: 28px 0; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.big { height: 52px; width: 100%; font-size: 1.05rem; margin-top: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cart */
.cart, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lines li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto 84px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.line-name { display: flex; flex-direction: column; }
.line-name a { text-decoration: none; font-weight: 600; }
.line-sum { text-align: right; font-variant-numeric: tabular-nums; }
.side { position: sticky; top: 132px; }
.sum { margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; }
.sum-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 800; font-size: 1.15rem; }
.sum-total dt { color: var(--ink); }
.mini { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.mini li { display: flex; justify-content: space-between; gap: 12px; }
.mini b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini em { display: block; font-style: normal; color: var(--warn); font-size: 0.85rem; }
.mini .i-missing span { color: var(--muted); }

/* Checkout form */
.steps { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c4b6; border-radius: 10px; background: var(--surface); font: inherit; color: inherit; }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: var(--bad); outline: 1px solid var(--bad); }
.err { color: var(--bad); font-size: 0.9rem; margin: 2px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.day { border: 0; padding: 0; margin: 0 0 12px; }
.day legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.day legend::first-letter { text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }
.chip.off span { color: var(--muted); background: var(--soft); cursor: not-allowed; }
.chip em { font-style: normal; font-size: 0.8rem; }
.choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.choice input, .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.choice span { display: flex; flex-direction: column; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 12px 0 0; cursor: pointer; font-size: 0.95rem; }
.sub { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Order page */
.order { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.status { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft); font-weight: 700; }
.status.s-delivered { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); }
.status.s-cancelled, .status.s-no_show { background: var(--bad-bg); color: var(--bad); }
.oops { text-align: center; padding-top: 80px; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 28px; }
.foot strong { color: var(--ink); }
.foot p { margin: 0 0 4px; }

@media (max-width: 860px) {
  .cart, .checkout, .product, .order { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .top-row { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .search input { max-width: none; }
  .cart-sum { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-buy { flex-direction: column; align-items: stretch; }
  .stepper { justify-content: space-between; }
  .stepper button.add { width: 100%; }
  .two { grid-template-columns: 1fr; }
  .lines li { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .lines .pic.thumb { width: 48px; height: 48px; }
  .line-sum { grid-column: 2 / -1; text-align: left; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .hero { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stepper button, .btn, .chip span, .cats-row a { transition: background-color 0.12s, border-color 0.12s; }
}

/* Colour theme: white page, vivid accents. Everything here only sets colour, so layout rules above stay untouched. */
.top { background: rgb(255 255 255 / 92%); }
.brand { background: linear-gradient(100deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search input { border-color: var(--line); background: var(--soft); }
.search input:focus { background: #fff; border-color: var(--accent); }
.cart-pill, .stepper, .btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.cart-pill { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.cart-pill [data-cart-count] { background: var(--sun); color: var(--ink); }
.cats-row a { color: var(--ink); }
.cats-row a:hover { background: var(--soft); }
.cats-row a:nth-child(5n + 2):hover { background: #ffe3f1; }
.cats-row a:nth-child(5n + 3):hover { background: #fff3b8; }
.cats-row a:nth-child(5n + 4):hover { background: #c9f7e6; }
.cats-row a:nth-child(5n + 5):hover { background: #d6e8ff; }
.cats-row a[aria-current] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.hero {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgb(255 255 255 / 55%) 0 5px, transparent 6px),
    radial-gradient(circle at 80% 62%, var(--sun) 0 9px, transparent 10px),
    radial-gradient(circle at 94% 78%, rgb(255 255 255 / 45%) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 24%, rgb(255 255 255 / 40%) 0 3px, transparent 4px),
    linear-gradient(115deg, var(--accent) 0%, var(--pink) 62%, #ff8a1f 100%);
}
.hero p { color: rgb(255 255 255 / 92%); }
.card { border-color: var(--line); }
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-pic, .product-pic { background: #fff3b8; }
.pic.blank { background: #fff3b8; color: #c98a00; }
.card:nth-child(5n + 2) .card-pic, .card:nth-child(5n + 2) .pic.blank { background: #ffe3f1; color: #e0006f; }
.card:nth-child(5n + 3) .card-pic, .card:nth-child(5n + 3) .pic.blank { background: #c9f7e6; color: #008a5e; }
.card:nth-child(5n + 4) .card-pic, .card:nth-child(5n + 4) .pic.blank { background: #d6e8ff; color: #1a62d6; }
.card:nth-child(5n + 5) .card-pic, .card:nth-child(5n + 5) .pic.blank { background: #e9defF; color: #5a22d6; }
.price:has(s) b { color: #e0006f; }
.box, .lines { border-color: var(--line); }
.note { background: var(--soft); }
.note.good { background: #c9f7e6; color: #00664a; }
.chip span { border-color: var(--line); }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
.chip.off span { background: #f4f4f6; }
.choice { border-color: var(--line); }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.btn.ghost { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, #fff); }
.status { background: #fff3b8; color: #7a5200; }
.status.s-delivered { background: #c9f7e6; color: #00664a; }
.sum-total dd { color: var(--accent); }
.foot { background: #fff; }
