/* Oggy Choco: warm paper, dark chocolate, one ember accent.
   Type: Fraunces (display) + Instrument Sans (text), both self-hosted. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ece1;
  --paper-2: #ebe2d3;
  --surface: #fbf8f3;
  --ink: #1c1511;
  --ink-2: #4a3f36;
  --muted: #85786b;
  --line: #ddd2c1;
  --choco: #2e1b12;
  --choco-2: #46281b;
  --ember: #e2512b;
  --ember-dark: #c23e1b;
  --butter: #f3c969;
  --sage: #b5c7a3;
  --blush: #f0c4b4;
  --sky: #b9cfd6;
  --danger: #b4281a;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --shadow-1: 0 1px 0 rgba(46, 27, 18, 0.04), 0 8px 24px -12px rgba(46, 27, 18, 0.18);
  --shadow-2: 0 2px 0 rgba(46, 27, 18, 0.04), 0 24px 48px -20px rgba(46, 27, 18, 0.35);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
main { flex: 1; padding-top: 2.25rem; padding-bottom: 5rem; }
main.flush { padding-top: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; word-spacing: 0.08em; line-height: 1.05; margin: 0; font-variation-settings: "opsz" 144; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 3.5rem 0 1.25rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--ember); }

.muted { color: var(--muted); font-size: 0.92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(226, 81, 43, 0.5); animation: ping 2.4s var(--ease) infinite; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--ember) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  view-transition-name: site-header;
}
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; display: block; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark rect { fill: var(--choco); }
.brand-mark rect.hot { fill: var(--ember); }

.menu { display: flex; align-items: center; gap: 0.4rem; }
.menu a, .menu .link-btn { position: relative; padding: 0.5rem 0.8rem; font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.menu a:not(.cart-link)::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.25rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.menu a:not(.cart-link):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.hello { color: var(--muted); font-size: 0.92rem; padding: 0 0.4rem 0 0.8rem; }

.cart-link { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--paper) !important; border-radius: 999px; padding: 0.5rem 1rem !important; margin-left: 0.4rem; transition: background 0.25s, transform 0.25s var(--ease); }
.cart-link:hover { background: var(--ember); transform: translateY(-1px); }
.cart-link svg { width: 18px; height: 18px; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ember); color: #fff; font-size: 0.78rem; font-weight: 700; animation: pop 0.6s var(--ease); }
.cart-link:hover .badge { background: var(--ink); }

form.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; font: inherit; cursor: pointer; color: var(--ink); }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); font-size: 0.9rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease); }
.menu-toggle span::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-open .menu-toggle span { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle span::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 0.85rem 1.5rem;
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { background: var(--ember); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(226, 81, 43, 0.7); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.small { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--butter); color: var(--ink); box-shadow: none; }
.btn.loading { pointer-events: none; opacity: 0.75; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; padding: 2.5rem 0 4rem; }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 6rem); line-height: 0.94; letter-spacing: -0.03em; word-spacing: 0.1em; margin: 1.25rem 0 1.5rem; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.hero h1 em path { fill: none; stroke: var(--ember); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s 0.9s var(--ease) forwards; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 30ch; margin: 0 0 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }

.stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.stage-bg { position: absolute; inset: 4% 2% 2% 6%; background: var(--butter); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; animation: morph 14s ease-in-out infinite; }
.stage .tile { position: absolute; margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); border: 6px solid var(--surface); }
.stage .tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage .t1 { width: 54%; left: 3%; top: 10%; transform: rotate(-5deg); animation: float 7s ease-in-out infinite; }
.stage .t2 { width: 46%; right: 0; top: 2%; transform: rotate(4deg); animation: float 8s -2s ease-in-out infinite; }
.stage .t3 { width: 48%; right: 8%; bottom: 3%; transform: rotate(-2deg); animation: float 9s -4s ease-in-out infinite; }
.stage .tile { aspect-ratio: 1; }
.seal { position: absolute; left: -2%; bottom: 6%; width: 132px; height: 132px; z-index: 3; }
.seal svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font-family: var(--text); font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--ink); }
.seal-core { position: absolute; inset: 30%; border-radius: 50%; background: var(--ember); display: grid; place-items: center; }
.seal-core svg { width: 55%; height: 55%; animation: none; }

/* entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

/* ---------- marquee ---------- */
.marquee { background: var(--choco); color: var(--paper); overflow: hidden; border-radius: var(--r-lg); padding: 1.1rem 0; margin: 0 0 1rem; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 400; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: var(--ember); flex: none; }

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 4.5rem 0 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5; padding: 1.4rem; border-radius: var(--r-lg); text-decoration: none; overflow: hidden;
  background: var(--tint, var(--paper-2)); color: var(--ink);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cat:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-2); }
.cat .icon { width: 58%; align-self: center; margin-top: 0.4rem; transition: transform 0.7s var(--ease); }
.cat:hover .icon { transform: scale(1.1) rotate(-4deg); }
.cat .name { font-family: var(--display); font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.02em; max-width: 9ch; }
.cat .go { position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transform: rotate(-45deg); transition: transform 0.5s var(--ease), background 0.3s; }
.cat:hover .go { transform: rotate(0); background: var(--ember); }
.cat .go svg { width: 18px; height: 18px; }
.tint-electronics { --tint: var(--sky); }
.tint-clothing { --tint: var(--blush); }
.tint-home-kitchen { --tint: var(--sage); }
.tint-books { --tint: var(--butter); }

/* ---------- product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card-media { display: block; margin: 0.6rem 0.6rem 0; border-radius: calc(var(--r-md) - 4px); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 0.9rem 1.1rem 1.15rem; display: grid; gap: 0.25rem; flex: 1; }
.chip { justify-self: start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.22rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); } /* whole card is clickable */
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.price { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.price.big { font-size: 2.2rem; }
.quick-add { position: relative; z-index: 2; margin: 0; }
.quick-add button {
  display: inline-flex; align-items: center; gap: 0.35rem; height: 40px; padding: 0 0.95rem 0 0.8rem;
  border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.quick-add button svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.quick-add button:hover { background: var(--ember); color: #fff; }
.quick-add button:hover svg { transform: rotate(90deg); }
.quick-add button:active { transform: scale(0.94); }
.quick-add button.loading { opacity: 0.7; pointer-events: none; }

/* ---------- statement band ---------- */
.band { background: var(--choco); color: var(--paper); border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 5rem); margin-top: 5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; top: -120px; border-radius: 50%; background: var(--choco-2); }
.band h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1; position: relative; z-index: 1; }
.band h2 em { color: var(--butter); }
.band .band-side { position: relative; z-index: 1; display: grid; gap: 1.25rem; justify-items: start; color: #d9cbbb; }

/* ---------- filters ---------- */
.page-head { margin-bottom: 1.75rem; }
.page-head h1 { margin-bottom: 0.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; padding: 0.6rem; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-1); align-items: center; }
.filters input[type="search"] { flex: 1 1 220px; border: 0; background: transparent; padding: 0.7rem 1rem; }
.filters input[type="search"]:focus { box-shadow: none; }
.filters select { width: auto; border: 0; background: var(--paper-2); border-radius: 999px; padding: 0.7rem 1.1rem; font-weight: 500; }
.empty { text-align: center; padding: 5rem 1rem; }
.empty svg { width: 150px; margin-bottom: 1rem; }

/* ---------- inputs ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; color: var(--ink); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember) 18%, transparent); }
input[type="file"] { font: inherit; font-size: 0.92rem; }
input[type="checkbox"] { accent-color: var(--ember); width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- product detail ---------- */
.crumb { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 500; font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--ink-2); }
.crumb svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.crumb:hover svg { transform: translateX(-4px); }
.detail { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: start; }
.detail-media { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-1); }
.detail-media img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.detail-info h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.6rem 0 0.8rem; }
.detail-info .desc { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin: 1rem 0 0; }
.add-form { display: flex; align-items: stretch; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.25rem; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--ink); transition: background 0.2s; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 52px; border: 0; background: transparent; text-align: center; padding: 0.4rem 0; font-weight: 600; -moz-appearance: textfield; box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper label { display: flex; align-items: center; }
.stepper button { display: none; } /* only useful with JavaScript */
.js .stepper button { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.facts { list-style: none; margin: 2.2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; color: var(--ink-2); font-size: 0.95rem; }
.facts li { display: flex; align-items: center; gap: 0.7rem; }
.facts svg { width: 20px; height: 20px; color: var(--ember); flex: none; }

/* ---------- cart, tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.table th, .table td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--paper-2); }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
.table tr.selected td { background: color-mix(in srgb, var(--butter) 40%, var(--surface)); }
.cart-product { display: flex; align-items: center; gap: 1rem; text-decoration: none; font-family: var(--display); font-size: 1.1rem; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.qty-form { display: flex; gap: 0.5rem; align-items: center; }
.qty-form input[type="number"] { width: 76px; padding: 0.5rem 0.7rem; }
.cart-total { display: flex; justify-content: flex-end; align-items: center; gap: 1.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.cart-total p { margin: 0; font-size: 1.1rem; }
.cart-total strong { font-family: var(--display); font-size: 2rem; letter-spacing: -0.02em; margin-left: 0.4rem; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.thumb.big { width: 140px; height: 140px; }
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.row-between h1 { margin: 0; }

/* ---------- forms ---------- */
.form { background: var(--surface); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-1); }
.form.narrow { max-width: 460px; }
.form h2 { margin-top: 0; font-size: 1.6rem; }
.form label { display: block; margin-bottom: 1.1rem; font-weight: 600; font-size: 0.9rem; }
.form label input, .form label select, .form label textarea { margin-top: 0.4rem; font-weight: 400; font-size: 1rem; }
.form label.check { font-weight: 500; }
.form .btn { margin-top: 0.4rem; }
.actions { display: flex; align-items: center; gap: 1.25rem; }
.alert { background: #fbe3dd; color: var(--danger); border-radius: var(--r-sm); padding: 0.75rem 1rem; font-weight: 500; animation: shake 0.5s var(--ease); }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; min-height: 52vh; }
.auth-aside { padding: 1rem; }
.auth-aside h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.98; }
.auth-aside p { color: var(--ink-2); font-size: 1.1rem; max-width: 32ch; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.summary { background: var(--choco); color: var(--paper); border-radius: var(--r-lg); padding: 2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary h2 { margin: 0 0 1rem; font-size: 1.5rem; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(243, 236, 225, 0.15); font-size: 0.95rem; }
.total { font-size: 1.1rem; margin: 1rem 0 0; }
.total strong { font-family: var(--display); font-size: 1.8rem; letter-spacing: -0.02em; }

/* ---------- order confirmation ---------- */
.done { text-align: center; max-width: 560px; margin: 1rem auto 3rem; }
.done h1 { margin: 1rem 0 0.6rem; }
.check-draw { width: 96px; height: 96px; }
.check-draw circle { fill: var(--sage); }
.check-draw path { fill: none; stroke: var(--choco); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.7s 0.4s var(--ease) forwards; }
.check-draw circle { transform-origin: center; animation: pop 0.7s var(--ease); }
.order-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }

/* ---------- admin ---------- */
.date-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.date-form input[type="date"] { width: auto; padding: 0.5rem 0.8rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow-1); transition: transform 0.4s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat:nth-child(1) { background: var(--butter); }
.stat:nth-child(2) { background: var(--blush); }
.stat:nth-child(3) { background: var(--sage); }
.stat:nth-child(4) { background: var(--sky); }
.stat .num { font-family: var(--display); font-size: 3rem; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.stat .label { font-weight: 700; margin-top: 0.2rem; }
.stat .muted { color: var(--ink-2); }
.chart-wrap { background: var(--surface); border-radius: var(--r-md); padding: 1.25rem; box-shadow: var(--shadow-1); }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--choco); transform-box: fill-box; transform-origin: bottom; animation: grow 0.9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 12ms); transition: fill 0.2s; }
.chart .bar:hover { fill: var(--ember); }
.chart .bar.peak { fill: var(--ember); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--text); }

/* ---------- footer ---------- */
.site-footer { background: var(--choco); color: #d9cbbb; margin-top: auto; padding: 4rem 0 6.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 0.95; letter-spacing: -0.03em; word-spacing: 0.08em; color: var(--paper); margin: 0 0 1rem; }
.footer-brand em { color: var(--butter); }
.site-footer h4 { margin: 0 0 0.8rem; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9c8d7c; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: var(--paper); }
.site-footer a:hover { color: var(--butter); }
.legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(243, 236, 225, 0.14); font-size: 0.88rem; color: #9c8d7c; }

/* ---------- which server answered ---------- */
.server-badge {
  --dot: var(--ember);
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 292px; max-width: calc(100vw - 32px);
  background: color-mix(in srgb, var(--ink) 94%, transparent); color: var(--paper);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.82rem; overflow: hidden;
  animation: rise 0.8s 0.6s var(--ease) backwards;
}
.server-badge[data-hue="1"] { --dot: var(--butter); }
.server-badge[data-hue="2"] { --dot: var(--sage); }
.server-badge[data-hue="3"] { --dot: var(--sky); }
.server-badge[data-hue="4"] { --dot: var(--blush); }
.sb-head { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.7rem 0.9rem; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.sb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: 0 0 0 0 var(--dot); animation: ping 2.2s var(--ease) infinite; }
.sb-title { flex: 1; font-weight: 700; letter-spacing: 0.02em; }
.sb-title small { font-weight: 500; color: #a99b8b; margin-left: 0.35rem; font-family: var(--mono); font-size: 0.78rem; }
.sb-chev { width: 16px; height: 16px; color: #a99b8b; transition: transform 0.35s var(--ease); }
.server-badge.collapsed .sb-chev { transform: rotate(180deg); }
.sb-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s var(--ease); }
.server-badge.collapsed .sb-body { grid-template-rows: 0fr; }
.sb-body > div { overflow: hidden; }
.sb-rows { margin: 0; padding: 0 0.9rem 0.85rem; display: grid; gap: 0.1rem; }
.sb-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.38rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sb-rows dt { color: #a99b8b; }
.sb-rows dd { margin: 0; font-family: var(--mono); font-size: 0.78rem; text-align: right; word-break: break-all; }
.sb-rows dd.none { color: #a99b8b; font-style: italic; font-family: var(--text); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- page transitions (Chrome and Edge; others just navigate) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.22s ease both; }
::view-transition-new(root) { animation: fade-in 0.38s var(--ease) both; }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot, var(--ember)) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
  50% { border-radius: 56% 44% 42% 58% / 46% 56% 44% 54%; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; }
  .stage { justify-self: center; max-width: 440px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .detail, .two-col, .auth, .order-grid, .band { grid-template-columns: 1fr; }
  .detail-media, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { padding: 0 1.1rem; }
  .menu-toggle { display: grid; }
  .menu {
    position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem 1.1rem 1.2rem;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.45s var(--ease), visibility 0.45s;
  }
  .menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu a, .menu .link-btn { padding: 0.9rem 0.2rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .menu a::after { display: none; }
  .cart-link { margin: 0.8rem 0 0; justify-content: center; border-bottom: 0 !important; width: 100%; }
  .hello { padding: 0.9rem 0.2rem; }
  form.inline { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.75rem; }
  .card-body { padding: 0.75rem 0.8rem 0.9rem; }
  .card h3 { font-size: 1.02rem; }
  .quick-add button span { display: none; }
  .quick-add button { padding: 0; width: 40px; justify-content: center; }
  .cats { gap: 0.7rem; }
  .cat { padding: 1rem; }
  .cat .name { font-size: 1.25rem; }
  .filters { border-radius: var(--r-md); }
  .filters input[type="search"], .filters select { flex: 1 1 100%; width: 100%; }
  .filters .btn { width: 100%; }
  .server-badge { width: auto; right: 10px; bottom: 10px; }
  /* cart rows become stacked cards */
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; }
  .table.stack tr { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  .table.stack td { border: 0; padding: 0.25rem 0; }
  .table.stack td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 5.5rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rise, .js .reveal { opacity: 1; transform: none; }
  .hero h1 em path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}

/* wrapper divs from the scroll reveal must not shrink the cards */
.grid > div > .card { height: 100%; }
