/* ============================================================
   56 MOMENTS — store + admin styles
   store = dark "section 3" vibe: tilt cards, floating art,
   wavy text, drifting blobs
   ============================================================ */
:root {
  --paper: #f3efe7; --paper-2: #eae4d8;
  --ink: #141310; --ink-soft: #4d493f;
  --accent: #e4572e; --accent-2: #f2a541;
  --dark: #12110f; --dark-2: #1c1a16;
  --line: rgba(20, 19, 16, 0.14);
  --line-l: rgba(243, 239, 231, 0.12);
  --paper-soft: rgba(243, 239, 231, 0.55);
  --font-display: "Space Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "IBM Plex Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 99px;
  border: 3px solid var(--dark-2);
}
/* never wider than the screen, and no pinch / double-tap zoom */
html { overflow-x: clip; touch-action: pan-x pan-y; }
body.store-body, body.admin-body {
  background: var(--dark); color: var(--paper);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* (clip, where the browser knows it: "hidden" makes the body a scroller of
     its own, and the top bar then can't stick to the screen) */
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
button { font-family: inherit; cursor: pointer; }

/* ============ shared animations ============ */
@keyframes bob {
  0%, 100% { transform: translateY(7px) rotate(-1.6deg); }
  50%      { transform: translateY(-7px) rotate(1.6deg); }
}
@keyframes bob-soft {
  0%, 100% { transform: translateY(2px); }
  50%      { transform: translateY(-2px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ch-wave {
  0%, 100% { transform: translateY(14%); }
  50%      { transform: translateY(-14%); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(46px); }
}
@keyframes blob-drift {
  to { transform: translate(8%, 10%) scale(1.15) rotate(30deg); }
}

/* wavy text — each letter rides its own sine */
.wavy .ch {
  display: inline-block;
  animation: ch-wave 2.3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 85ms);
  will-change: transform;
}
.wavy--big .ch { animation-duration: 3.2s; animation-delay: calc(var(--i) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .wavy .ch, .st-art, .st-art .disc, .st-add, .st-card-body .sub, .st-blobs span { animation: none !important; }
}

/* ============ atmosphere blobs ============ */
/* soft glows: the softness is in the gradient — a blur filter over the
   whole screen was re-rendered every frame of their drift */
.st-blobs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.st-blobs span { position: absolute; width: 64vw; max-width: 1000px; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.st-blobs .b1 {
  background: radial-gradient(closest-side, var(--accent-2) 0%, rgba(228, 87, 46, 0.7) 40%, rgba(228, 87, 46, 0) 100%);
  top: -16%; right: -10%; opacity: 0.16;
  animation: blob-drift 24s ease-in-out infinite alternate;
}
.st-blobs .b2 {
  background: radial-gradient(closest-side, #7fb7be 0%, rgba(60, 110, 113, 0.7) 42%, rgba(60, 110, 113, 0) 100%);
  bottom: -22%; left: -14%; opacity: 0.13;
  animation: blob-drift 30s ease-in-out infinite alternate-reverse;
}

/* scroll-interactive particle background */
.st-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- nav ---------- */
.st-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(18, 17, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-l);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.st-nav.is-hidden { transform: translateY(-110%); } /* (as on the home page) */
.st-back { font-weight: 700; letter-spacing: 0.08em; }
.st-back em { font-style: normal; color: var(--accent-2); font-family: var(--font-display); }
.st-nav-right { display: flex; align-items: center; gap: 0.8rem; }
.lang-switch {
  display: flex;
  border: 1px solid var(--line-l);
  border-radius: 99px;
  padding: 3px;
  background: rgba(28, 26, 22, 0.6);
  backdrop-filter: blur(6px);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--paper-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 99px;
  transition: all 0.2s;
}
.lang-switch button.is-active { background: var(--accent-2); color: var(--dark); }
.lang-switch button:not(.is-active):hover { color: var(--paper); }
.st-user-btn, .st-orders-btn {
  border: 1px solid rgba(243, 239, 231, 0.35); background: transparent; color: var(--paper);
  border-radius: 99px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.st-user-btn:hover, .st-orders-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.st-cart-btn {
  position: relative; border: 0; background: var(--accent-2); color: var(--dark);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.st-cart-btn:hover { background: var(--accent); color: var(--paper); transform: translateY(-2px); }
.st-cart-btn svg { width: 21px; height: 21px; transform-origin: 14% 16%; } /* (it swings from its handle) */
.st-cart-btn:hover svg, .st-cart-btn.is-swing svg { animation: cart-swing 0.9s ease; }
.st-cart-btn.is-swing { animation: cart-bump 0.45s ease; }
.st-cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; border-radius: 99px;
  background: var(--accent); color: var(--paper);
  box-shadow: 0 0 0 2px var(--dark);
  font-family: var(--font-mono); font-size: 0.66rem;
  display: grid; place-items: center; padding: 0 5px;
  transition: transform 0.25s ease;
}
.st-cart-count[data-n="0"] { transform: scale(0); }
.st-cart-count.is-pop { animation: count-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }

/* ---------- store hero ---------- */
.st-main { position: relative; z-index: 1; max-width: 78rem; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem) 6rem; }
.st-hero { padding: clamp(2.5rem, 7vh, 5rem) 0 2rem; }
.st-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--accent-2); margin-bottom: 1rem;
}
.st-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05;
}
.st-hero h1 em { text-transform: none; color: var(--accent-2); }
.st-sub { max-width: 52ch; margin-top: 1.2rem; color: var(--paper-soft); line-height: 1.6; }

/* ---------- tabs ---------- */
.st-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.st-tab {
  border: 1px solid var(--line-l); background: transparent; border-radius: 99px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--paper-soft);
  transition: all 0.25s;
}
.st-tab.is-active, .st-tab:hover {
  background: var(--accent-2); color: var(--dark); border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* ---------- product grid ---------- */
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
  perspective: 1400px;
}
.st-card {
  position: relative;
  border: 1px solid rgba(243, 239, 231, 0.09);
  border-radius: 1.4rem; overflow: hidden;
  background: var(--dark-2);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s ease-out, border-color 0.3s, box-shadow 0.3s;
  animation: card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--in, 0s);
}
.st-card:hover {
  border-color: rgba(242, 165, 65, 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.st-shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0; transition: opacity 0.3s;
}
.st-card:hover .st-shine { opacity: 1; }

.st-card-visual {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #221d16, #131110); /* default for admin-added categories */
}
.st-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.st-card:hover .st-card-img { transform: scale(1.045); }
.st-card-visual.v-vinyl-art-set { background: #1a1917; } /* same stage color as the live site */
.st-card-visual.v-soundframe { background: linear-gradient(150deg, #2b2117, #16110d); }
.st-card-visual.v-webcard { background: linear-gradient(150deg, #24494c, #14262a); }

/* floating CSS product art */
.st-art {
  position: relative; width: 60%; aspect-ratio: 1;
  animation: bob 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transform: translateZ(36px);
}
/* soundframe: frame with a glowing card grid */
.st-art--soundframe .frame {
  position: absolute; inset: 4% 16%;
  background: #0d0c0a;
  border: 5px solid #2e2418;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}
.st-art--soundframe .frame::after {
  content: ""; position: absolute; inset: 9%;
  background:
    repeating-linear-gradient(to right, rgba(242, 165, 65, 0.35) 0 28%, transparent 28% 36%),
    repeating-linear-gradient(to bottom, rgba(243, 239, 231, 0.28) 0 28%, transparent 28% 36%);
  border-radius: 3px;
}
/* webcard: little page + link tag */
.st-art--webcard .cardlet {
  position: absolute; inset: 8% 14% 16% 14%;
  background: #f7f2e9;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}
.st-art--webcard .cardlet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14%;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.st-art--webcard .cardlet::after {
  content: "♥"; position: absolute; inset: 20% 0 0;
  display: grid; place-items: center;
  color: var(--accent); font-size: 1.6rem;
}
.st-art--webcard .tag {
  position: absolute; bottom: 4%; right: 2%;
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-2); color: var(--dark);
  display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 1rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.st-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; transform: translateZ(24px); }
.st-badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark); background: var(--accent-2);
  padding: 0.25rem 0.6rem; border-radius: 99px;
  margin-bottom: 0.2rem;
}
.st-card-body h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.st-card-body .sub {
  font-size: 0.83rem; color: var(--paper-soft); line-height: 1.5; flex: 1;
  animation: bob-soft 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.st-card-body .size { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: rgba(243, 239, 231, 0.4); }
.st-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; gap: 0.6rem; }
.st-price { font-weight: 700; font-size: 1.06rem; color: var(--accent-2); }
.st-add {
  border: 1px solid rgba(243, 239, 231, 0.32); background: transparent; color: var(--paper);
  border-radius: 99px;
  padding: 0.5rem 1.05rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  transition: all 0.25s;
  animation: bob-soft 4.6s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + 0.6s);
}
.st-add:hover {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(228, 87, 46, 0.35);
}
/* pressed (about 2.6 s in all):
     - its letters run together in the middle, and yellow spreads from there
       to fill the button, a cart drawn on it in orange;
     - the yellow draws in from the button's shape to the cart's — a fat
       yellow outline of it, the orange cart on top;
     - three little things drop into the cart one after another and fill it;
     - then it all goes back the way it came, and the letters return.
   --w, --h: the button's size; --c: the cart's. The yellow is a box that
   changes size over a yellow cart that keeps still: what is left of the box
   when it has shrunk is the cart. */
.st-add, .vd-use { position: relative; }
.st-add .ch, .vd-use .ch { display: inline-block; }
.st-add.is-pop, .st-add.is-pop:hover, .vd-use.is-pop, .vd-use.is-pop:hover {
  background: transparent; transform: none; box-shadow: none;
  animation: btn-frame 2.6s linear both;
}
.st-add.is-pop .ch, .vd-use.is-pop .ch { animation: ch-merge 2.6s both; }
.st-add-anim { position: absolute; inset: 0; pointer-events: none; }
.st-add-blob {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2);
  background: var(--accent-2);
  transform: translate(-50%, -50%) scale(0); opacity: 0;
}
.st-add-cartbox { position: absolute; left: 50%; top: 50%; width: var(--c); height: var(--c); margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2); }
.st-add-cartbox svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-add-sil { color: var(--accent-2); opacity: 0; }
.st-add-line { color: var(--accent); opacity: 0; transform-origin: 50% 60%; }
/* what drops in: a record, a frame, a card */
.st-add-item { position: absolute; width: 21%; height: 21%; opacity: 0; }
.st-add-item.a { left: 43%; top: 54%; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 26%, var(--dark) 30%); --turn: 0deg; }
.st-add-item.b { left: 61%; top: 54%; border-radius: 16%; background: var(--accent); --turn: 14deg; }
.st-add-item.c { left: 52%; top: 38%; border-radius: 22%; background: var(--paper); --turn: -10deg; }
.is-pop > .st-add-anim { animation: cart-bounce 2.6s both; }
.is-pop .st-add-blob { animation: blob-cart 2.6s both; }
.is-pop .st-add-sil { animation: sil-show 2.6s both; }
.is-pop .st-add-line { animation: line-pop 2.6s both; }
.is-pop .st-add-item { animation: item-drop 0.38s linear 1.3s both, item-out 0.16s ease 1.92s forwards; }
.is-pop .st-add-item.b { animation-delay: 1.48s, 1.92s; }
.is-pop .st-add-item.c { animation-delay: 1.66s, 1.92s; }

/* ---------- ready-made vinyl designs (drag to inspect) ---------- */
.vd-section { margin-top: 4rem; }
.vd-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.vd-head h2 em { text-transform: none; color: var(--accent-2); }
.vd-search {
  margin-top: 1.4rem;
  width: min(340px, 100%);
  border: 1px solid var(--line-l); border-radius: 99px;
  background: var(--dark-2); color: var(--paper);
  padding: 0.75rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
}
.vd-search:focus { outline: 2px solid var(--accent-2); }
.vd-search::placeholder { color: rgba(243, 239, 231, 0.35); }

/* every [data-v3d] element hosts its own canvas cell (blitted from
   one offscreen WebGL renderer by vinyl3d.js) */
.vd-stage3d {
  position: relative;
  aspect-ratio: 3 / 3.6;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.vd-stage3d.is-drag { cursor: grabbing; }
.v3d-cell {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.st-visual3d { position: absolute; inset: 0; aspect-ratio: auto; }

.vd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 2.6rem 1.4rem;
  margin-top: 2.4rem;
}
.vd-item { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.vd-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.vd-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.vd-name {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--paper-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vd-price {
  font-weight: 700; font-size: 0.92rem;
  color: var(--accent-2);
}
.vd-use {
  flex-shrink: 0;
  border: 1px solid rgba(243, 239, 231, 0.32); background: transparent; color: var(--paper);
  border-radius: 99px; padding: 0.42rem 0.9rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em;
  transition: all 0.25s;
}
.vd-use:hover {
  background: var(--accent-2); border-color: var(--accent-2); color: var(--dark);
  transform: translateY(-2px);
}
.vd-hint {
  grid-column: 1 / -1; text-align: center;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--paper-soft);
  padding: 2rem 0;
}

/* ---------- cart drawer ---------- */
.st-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 90; animation: st-fade 0.3s ease both; }
.st-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 94vw);
  background: var(--dark-2);
  border-left: 1px solid var(--line-l);
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
}
.st-drawer.is-open { transform: translateX(0); }
.st-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line-l); }
.st-drawer-head h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.st-drawer-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: var(--accent-2); color: var(--dark);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  display: grid; place-items: center;
}
.st-drawer-n[data-n="0"] { display: none; }
.st-x {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(243, 239, 231, 0.3); background: transparent; color: var(--paper);
  transition: all 0.2s;
}
.st-x:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.st-drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.st-line {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 0.8rem;
  padding: 0.8rem 0; border-bottom: 1px dashed var(--line-l);
}
.st-line.is-new { animation: line-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
.st-line-thumb {
  width: 48px; height: 48px; border-radius: 0.75rem; overflow: hidden;
  background: var(--dark); border: 1px solid var(--line-l);
  display: grid; place-items: center; color: var(--accent-2);
}
.st-line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-line-thumb svg { width: 26px; height: 26px; }
.st-line-info { min-width: 0; }
.st-line-info b, .st-line-info i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-line-info b { font-size: 0.92rem; }
.st-line-info i { font-style: normal; font-size: 0.74rem; color: var(--paper-soft); margin-top: 0.1rem; }
.st-line-info span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-2); }
.st-qty {
  display: flex; align-items: center; gap: 0.1rem;
  border: 1px solid rgba(243, 239, 231, 0.2); border-radius: 99px; padding: 2px;
}
.st-qty button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--paper); transition: background 0.15s, color 0.15s; }
.st-qty button:hover { background: var(--paper); color: var(--ink); }
.st-qty span { min-width: 1.4rem; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; }
.st-qty span.is-bump { animation: count-pop 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.st-empty--cart { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 3.2rem 1rem; }
.st-empty--cart p { line-height: 1.7; max-width: 24ch; }
.st-empty-art { position: relative; width: 84px; color: var(--accent-2); }
.st-empty-art svg { display: block; width: 100%; transform-origin: 8% 10%; }
.st-empty-art i { position: absolute; right: -8px; top: -6px; font-style: normal; font-size: 1.1rem; opacity: 0; }
/* (only while the drawer is open: nothing moves off screen) */
.st-drawer.is-open .st-empty-art svg { animation: cart-sway 2.4s ease-in-out infinite alternate; }
.st-drawer.is-open .st-empty-art i { animation: note-float 2.8s ease-out infinite; }
.st-empty { text-align: center; color: var(--paper-soft); padding: 3rem 0; font-family: var(--font-mono); font-size: 0.8rem; }
.st-drawer-foot { padding: 1.2rem 1.4rem 1.6rem; border-top: 1px solid var(--line-l); display: flex; flex-direction: column; gap: 0.8rem; }
.st-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.st-total b { color: var(--accent-2); }
.st-drawer-foot textarea {
  border: 1px solid var(--line-l); border-radius: 0.6rem; padding: 0.7rem;
  font-family: inherit; font-size: 0.85rem;
  background: var(--dark); color: var(--paper); resize: vertical;
}
.st-drawer-foot textarea:focus { outline: 2px solid var(--accent-2); }
.st-drawer-foot .st-err:empty { display: none; }
.st-checkout {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: var(--accent-2); color: var(--dark); border: 0; border-radius: 99px;
  padding: 1rem; font-family: var(--font-mono); letter-spacing: 0.1em; font-size: 0.8rem;
  text-transform: uppercase; font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.st-checkout:hover { background: var(--accent); color: var(--paper); transform: translateY(-2px); }
.st-checkout:disabled { background: var(--accent-2); color: var(--dark); opacity: 0.4; transform: none; cursor: default; }
.st-checkout-label { transition: opacity 0.2s; }
.st-checkout-cart { display: grid; width: 20px; height: 20px; --roll: 150px; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.st-checkout-cart svg { width: 100%; height: 100%; }
.st-checkout:hover:not(:disabled) .st-checkout-cart { transform: translateX(6px) rotate(-10deg); }
/* the order is being sent: the cart rolls across */
.st-checkout.is-busy { pointer-events: none; }
.st-checkout.is-busy .st-checkout-label { opacity: 0.45; }
.st-checkout.is-busy .st-checkout-cart { animation: cart-roll 1s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.st-fine { font-size: 0.72rem; color: var(--paper-soft); text-align: center; }

/* ---------- modals ---------- */
.st-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0, 0, 0, 0.66);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: st-fade 0.25s ease both;
}
.st-modal-card {
  position: relative;
  width: min(430px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: var(--dark-2); color: var(--paper);
  border: 1px solid var(--line-l);
  border-radius: 1.2rem;
  padding: 2rem 1.8rem 1.8rem;
  animation: st-pop-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.12) both;
}
.st-modal-card--wide { width: min(640px, 100%); }
.st-modal-x { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3; }
.st-modal-title { margin-bottom: 1.2rem; font-size: 1.5rem; }
.st-auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.st-auth-tab {
  flex: 1; padding: 0.7rem; border-radius: 0.7rem;
  border: 1px solid var(--line-l); background: transparent; color: var(--paper-soft);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
}
.st-auth-tab.is-active { background: var(--accent-2); color: var(--dark); border-color: var(--accent-2); }
.st-pane { display: flex; flex-direction: column; gap: 0.85rem; }
.st-pane label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-soft);
}
.st-pane input {
  border: 1px solid var(--line-l); border-radius: 0.6rem;
  padding: 0.75rem 0.9rem; font-family: var(--font-display); font-size: 0.95rem;
  background: var(--dark); color: var(--paper);
}
.st-pane input:focus { outline: 2px solid var(--accent-2); }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.st-submit {
  margin-top: 0.4rem;
  background: var(--accent-2); color: var(--dark); border: 0; border-radius: 99px;
  padding: 0.95rem; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.st-submit:hover { background: var(--accent); color: var(--paper); }
.st-err { color: #ff9d7e; font-size: 0.8rem; min-height: 1em; }
.st-ok { color: #7edf9d; font-size: 0.8rem; }
.st-link-btn {
  background: none; border: 0; padding: 0.2rem 0;
  color: var(--paper-soft); font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.06em; text-decoration: underline;
  text-underline-offset: 3px; align-self: center; cursor: pointer;
}
.st-link-btn:hover { color: var(--accent-2); }
.st-modal-sub {
  margin: 1.6rem 0 0.9rem; font-size: 0.95rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line-l);
}
.st-modal-sub:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- account panel ----------
   the card itself no longer scrolls (that dragged the tabs and the
   sign-out button off-screen with the list) — only the active pane's
   own content area scrolls, header/tabs/footer stay put */
.st-account-card {
  display: flex; flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.st-account-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.3rem; padding-right: 3rem; /* clear the ✕ */
  flex-shrink: 0;
}
.st-avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  color: var(--dark); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase;
}
.st-account-who { min-width: 0; }
.st-account-who .st-modal-title { margin-bottom: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-account-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--paper-soft); }
.st-account-tabs {
  display: flex; gap: 0.45rem;
  margin-bottom: 1.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.st-account-tabs::-webkit-scrollbar { display: none; }
.st-account-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line-l); background: transparent; color: var(--paper-soft);
  border-radius: 99px; padding: 0.55rem 1.05rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  transition: all 0.2s;
}
.st-account-tab.is-active { background: var(--accent-2); color: var(--dark); border-color: var(--accent-2); }
.st-account-pane {
  min-height: 200px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 6px; /* keep the scrollbar off the text */
  margin-right: -6px;
}
.st-account-foot {
  margin-top: 1.5rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-l);
  display: flex; justify-content: flex-end;
  flex-shrink: 0;
}
.st-logout {
  border: 1px solid rgba(228, 87, 46, 0.55); background: transparent; color: #ff9d7e;
  border-radius: 99px; padding: 0.6rem 1.3rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  transition: all 0.2s;
}
.st-logout:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ---------- orders list / receipt ---------- */
.st-order {
  border: 1px solid var(--line-l); border-radius: 0.9rem;
  padding: 1rem 1.2rem; margin-bottom: 0.9rem; background: var(--dark);
}
.st-order-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.st-order-code { font-family: var(--font-mono); font-weight: 700; color: var(--accent-2); }
.st-chip {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem; border-radius: 99px; text-transform: uppercase;
}
.st-chip.awaiting_payment { background: #f6e3b4; color: #7a5c00; }
.st-chip.approved { background: #d9ead9; color: #24581f; }
.st-chip.delivered { background: #d7e5f4; color: #1d4569; }
.st-chip.cancelled { background: #f2d4cc; color: #8c2d13; }
.st-order-items { margin: 0.6rem 0; font-size: 0.85rem; color: var(--paper-soft); }
.st-order-total { font-weight: 700; }
.st-byl {
  margin-top: 0.8rem; padding: 1.1rem 1rem;
  background: rgba(243, 239, 231, 0.06); border-radius: 0.7rem;
  text-align: center;
}
.st-byl-btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent-2); color: var(--dark);
  font-weight: 700; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.7rem 1.6rem; border-radius: 99px;
  margin-bottom: 0.7rem;
  transition: background 0.2s, transform 0.2s;
}
.st-byl-btn:hover { background: var(--accent); color: var(--paper); transform: translateY(-2px); }
.st-byl-btn:disabled { opacity: 0.5; transform: none; cursor: default; }
.st-byl .st-err:empty { display: none; }
.st-byl-hint { font-size: 0.78rem; color: var(--paper-soft); margin-bottom: 0.4rem; line-height: 1.5; }
.st-byl-status { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-2); }
.st-byl-status.is-paid { color: #7edf9d; }

.st-webcard-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper-soft); }
.st-webcard-link { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.6rem; }
.st-webcard-link a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-2); word-break: break-all; }
.st-webcard-link a:hover { text-decoration: underline; }
.st-webcard-qr { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--line-l); }
.st-webcard-qr .st-fine { text-align: left; margin-bottom: 0.5rem; }
.st-qr-box { flex: 0 0 auto; }
.st-qr-box canvas { display: block; width: 88px; height: 88px; border-radius: 6px; }

/* ---------- admin: links made ahead (cards, stickers) ---------- */
.ad-links-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.8rem; margin-bottom: 1rem; }
.ad-links-form label { display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 239, 231, 0.55); }
.ad-links-form input, .ad-links-form select {
  border: 1px solid rgba(243, 239, 231, 0.2); border-radius: 0.55rem;
  background: var(--dark); color: var(--paper);
  padding: 0.65rem 0.8rem; font-family: var(--font-display); font-size: 0.9rem;
}
.ad-lot { background: var(--dark-2); border: 1px solid rgba(243, 239, 231, 0.1); border-radius: 0.9rem; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; }
.ad-lot-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.ad-lot-head b { font-size: 0.95rem; }
.ad-lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin-top: 0.9rem; }
.ad-lot-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; }
.ad-lot-item canvas { width: 110px; height: 110px; border-radius: 6px; cursor: pointer; }
.ad-lot-item a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent-2); }

/* ============================================================
   Shop polish — the picture that flies into the cart, the toast,
   an order's track, and the little scene over a receipt.
   All of it moves by transform and opacity only.
   ============================================================ */
@keyframes st-fade { from { opacity: 0; } }
@keyframes st-pop-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
@keyframes st-sheet-in { from { transform: translateY(100%); } }
@keyframes cart-swing {
  0%, 100% { transform: rotate(0); }
  18% { transform: rotate(-26deg); }
  38% { transform: rotate(18deg); }
  56% { transform: rotate(-12deg); }
  74% { transform: rotate(7deg); }
  88% { transform: rotate(-3deg); }
}
@keyframes cart-bump { 35% { transform: scale(1.16); } }
@keyframes count-pop { 0% { transform: scale(0.4); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes cart-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes note-float {
  0% { opacity: 0; transform: translate(0, 6px) rotate(-10deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(8px, -22px) rotate(14deg); }
}
@keyframes line-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes btn-frame {
  8%, 30% { border-color: var(--accent-2); }
  36%, 84% { border-color: transparent; }
  91% { border-color: var(--accent-2); }
}
@keyframes ch-merge {
  0%, 2% { opacity: 1; transform: translateX(0) scale(1); animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.5); }
  14%  { opacity: 0; transform: translateX(var(--dx, 0px)) scale(0.1); }
  88%  { opacity: 0; transform: translateX(var(--dx, 0px)) scale(0.1); animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes blob-cart {
  0%, 6% { opacity: 1; width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2); transform: translate(-50%, -50%) scale(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  18% { opacity: 1; width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2); transform: translate(-50%, -50%) scale(1); }
  30% { opacity: 1; width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2); transform: translate(-50%, -50%) scale(1); animation-timing-function: cubic-bezier(0.65, 0, 0.3, 1); }
  47% { opacity: 1; width: calc(var(--c) * 0.7); height: calc(var(--c) * 0.52); border-radius: calc(var(--c) * 0.16); transform: translate(calc(-50% + var(--c) * 0.042), calc(-50% + var(--c) * 0.012)) scale(1); }
  75% { opacity: 1; width: calc(var(--c) * 0.7); height: calc(var(--c) * 0.52); border-radius: calc(var(--c) * 0.16); transform: translate(calc(-50% + var(--c) * 0.042), calc(-50% + var(--c) * 0.012)) scale(1); animation-timing-function: cubic-bezier(0.65, 0, 0.3, 1); }
  88% { opacity: 1; width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2); transform: translate(-50%, -50%) scale(1); }
  95%, 100% { opacity: 0; width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2); transform: translate(-50%, -50%) scale(1); }
}
@keyframes sil-show { 0%, 17% { opacity: 0; } 18%, 87% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes line-pop {
  0%, 12% { opacity: 0; transform: scale(0) rotate(-30deg); }
  19% { opacity: 1; transform: scale(1.4) rotate(8deg); }
  24% { opacity: 1; transform: scale(0.9) rotate(-4deg); }
  29%, 88% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(0.6) rotate(0); }
}
@keyframes item-drop {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% - var(--c) * 1.1)) rotate(-50deg) scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  18%  { opacity: 1; }
  62%  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--turn)) scale(1.2, 0.75); animation-timing-function: ease-out; }
  82%  { opacity: 1; transform: translate(-50%, calc(-50% - var(--c) * 0.1)) rotate(var(--turn)) scale(0.95, 1.05); animation-timing-function: ease-in; }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--turn)) scale(1); }
}
@keyframes item-out { to { opacity: 0; } }
@keyframes cart-bounce {
  0%, 46%, 52%, 57.5%, 61%, 64.500%, 68%, 71.500%, 75%, 100% { transform: translateY(0); }
  49% { transform: translateY(-3px); }
  59% { transform: translateY(1.5px); }
  66% { transform: translateY(1.5px); }
  73% { transform: translateY(1.5px); }
}
@keyframes fly-pop { from { opacity: 0; transform: scale(0.3); } }
@keyframes cart-roll {
  0% { transform: translateX(calc(var(--roll) * -1)) rotate(-8deg); opacity: 0; }
  18%, 82% { opacity: 1; }
  100% { transform: translateX(var(--roll)) rotate(-8deg); opacity: 0; }
}

/* the picture on its way to the cart (two boxes: one goes across, one goes up) */
.st-fly { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; will-change: transform; }
.st-fly > div { will-change: transform; }
.st-fly-pic {
  width: 100%; height: 100%;
  border-radius: 28%; overflow: hidden;
  background: var(--dark-2); border: 2px solid var(--accent-2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  display: grid; place-items: center; color: var(--accent-2); font-size: 1.3rem;
  animation: fly-pop 0.24s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.st-fly-pic img, .st-fly-pic canvas { display: block; width: 100%; height: 100%; object-fit: cover; }

/* "it's in the cart" */
.st-toast {
  /* (in the middle, and as wide as the screen lets it be) */
  position: fixed; left: 0.8rem; right: 0.8rem; bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 85;
  width: fit-content; margin: 0 auto;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  background: var(--paper); color: var(--ink);
  border-radius: 99px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  opacity: 0; transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.3, 1), opacity 0.25s;
}
.st-toast.is-in { opacity: 1; transform: none; }
.st-toast-tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #2f8f4e; color: #fff; font-size: 0.7rem;
  display: grid; place-items: center;
}
.st-toast-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-toast button {
  flex: 0 0 auto;
  border: 0; border-radius: 99px; background: var(--dark); color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em;
  transition: background 0.2s;
}
.st-toast button:hover { background: var(--accent); }

/* on the way to the payment page */
.st-go {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(18, 17, 15, 0.88);
  display: grid; place-items: center;
  animation: st-fade 0.25s ease both;
}
.st-go-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0 1.5rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--paper);
}
.st-go-cart { width: 46px; height: 46px; color: var(--accent-2); --roll: 90px; animation: cart-roll 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.st-go-cart svg { width: 100%; height: 100%; }
.st-go-road {
  width: 180px; height: 2px; border-radius: 2px; margin-bottom: 1rem;
  background: repeating-linear-gradient(90deg, rgba(243, 239, 231, 0.4) 0 12px, transparent 12px 22px);
}

/* ---------- where an order is ---------- */
.st-track {
  position: relative;
  display: flex; justify-content: space-between;
  margin: 1.5rem 0 0.9rem; padding-top: 17px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(243, 239, 231, 0.38);
}
.st-track-line { position: absolute; left: 5px; right: 5px; top: 4px; height: 2px; border-radius: 2px; background: rgba(243, 239, 231, 0.14); }
.st-track-line b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--fill) * 100%); border-radius: 2px; background: var(--accent-2); }
.st-track span { position: relative; }
.st-track span::before {
  content: ""; position: absolute; left: 0; top: -17px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dark); border: 2px solid rgba(243, 239, 231, 0.28);
}
.st-track span:nth-of-type(2)::before { left: 50%; margin-left: -5px; }
.st-track span:nth-of-type(3)::before { left: auto; right: 0; }
.st-track span.is-done { color: var(--paper-soft); }
.st-track span.is-done::before { background: var(--accent-2); border-color: var(--accent-2); }
.st-track span.is-next { color: var(--accent-2); }
.st-track span.is-next::before { border-color: var(--accent-2); }
.st-track-truck { position: absolute; top: -11px; left: calc(5px + (100% - 10px) * var(--at)); width: 26px; height: 14px; margin-left: -13px; }

.st-receipt-lead { margin-bottom: 1rem; line-height: 1.6; color: rgba(243, 239, 231, 0.82); }

/* ---------- the scene, back from the payment page ----------
   --t: when it starts (the modal is still coming in). In seconds after it:
     0     the truck tears in, brakes hard (dust), and flashes its lights
     1.45  the package jumps, turning over, a trail of stars behind it
     2.15  it lands in the back (the truck dips, a puff and sparks)
     2.5   the truck rears up and is off: the country goes by, lamps flash
           past in front, and every few seconds it jumps a bump
   When the payment is confirmed: a tick, confetti, fireworks. */
#st-orders-scene:empty { display: none; }
.st-scene {
  --t: 0.3s;
  position: relative; height: 204px; margin: -2rem -1.8rem 1.4rem; /* (out to the card's edges) */
  border-bottom: 1px solid var(--line-l); overflow: hidden;
  background:
    radial-gradient(60% 46% at 50% 100%, rgba(242, 165, 65, 0.2), transparent 70%),
    radial-gradient(110% 90% at 14% 0%, rgba(242, 165, 65, 0.16), transparent 62%),
    linear-gradient(180deg, #17202d 0%, #1d2230 46%, #1b1915 88%);
  contain: layout paint;
}
.st-scene i { font-style: normal; }
.sc-moon {
  position: absolute; left: 34px; top: 24px; width: 24px; height: 24px; border-radius: 50%;
  background: #f6d9a0; box-shadow: 0 0 30px rgba(246, 217, 160, 0.55), 0 0 80px rgba(246, 217, 160, 0.2);
}
.sc-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--paper); opacity: 0.25; animation: sc-twinkle 2.2s ease-in-out infinite alternate; }
.sc-star.s1 { left: 22%; top: 34px; }
.sc-star.s2 { left: 41%; top: 16px; animation-delay: 0.7s; }
.sc-star.s3 { left: 58%; top: 44px; animation-delay: 1.3s; }
.sc-star.s4 { left: 74%; top: 22px; animation-delay: 0.4s; }
.sc-star.s5 { left: 90%; top: 56px; animation-delay: 1s; }
.sc-star.s6 { left: 66%; top: 70px; width: 2px; height: 2px; animation-delay: 1.6s; }
.sc-star.s7 { left: 12%; top: 76px; width: 2px; height: 2px; animation-delay: 0.9s; }
.sc-shoot {
  position: absolute; left: 68%; top: 14px; width: 54px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  opacity: 0; animation: sc-shoot 6.5s linear calc(var(--t) + 3.4s) infinite;
}
.sc-cloud { position: absolute; height: 14px; border-radius: 99px; background: rgba(243, 239, 231, 0.07); animation: sc-cloud 38s ease-in-out infinite alternate; }
.sc-cloud.c1 { left: 16%; top: 52px; width: 86px; }
.sc-cloud.c2 { left: 62%; top: 30px; width: 60px; animation-duration: 52s; animation-direction: alternate-reverse; }
/* far: mountains, slowly. Nearer: hills and gers. */
.sc-far, .sc-mid { position: absolute; left: 0; bottom: 20px; width: calc(100% + 260px); }
.sc-far {
  height: 56px; opacity: 0.08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='56' viewBox='0 0 260 56'%3E%3Cpath d='M0 30 30 16 52 36 84 6 118 40 140 24 170 44 200 14 232 40 260 30V56H0z' fill='%23f3efe7'/%3E%3C/svg%3E") left bottom / 260px 56px repeat-x;
}
.sc-mid {
  height: 40px; opacity: 0.13;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='40' viewBox='0 0 260 40'%3E%3Cg fill='%23f3efe7'%3E%3Cpath d='M0 40q45-30 95 0z' opacity='.55'/%3E%3Cpath d='M150 40q55-24 110 0z' opacity='.4'/%3E%3Cpath d='M103 40v-6q0-2.400 2.600-3.300Q112 28.500 117 24.500q5 4 11.400 6.200 2.600.9 2.600 3.300v6z'/%3E%3Cpath d='M196 40v-4.500q0-1.800 2-2.500 4.500-1.600 8-4.500 3.500 2.900 8 4.500 2 .7 2 2.500V40z' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") left bottom / 260px 40px repeat-x;
}
.sc-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: #13110e; border-top: 1px solid rgba(243, 239, 231, 0.18); }
.sc-road {
  position: absolute; left: 0; top: 9px; width: calc(100% + 46px); height: 2px;
  background: repeating-linear-gradient(90deg, rgba(243, 239, 231, 0.32) 0 18px, transparent 18px 46px);
}
.st-scene--pickup .sc-far { animation: sc-far 16s linear calc(var(--t) + 2.6s) infinite; }
.st-scene--pickup .sc-mid { animation: sc-far 6s linear calc(var(--t) + 2.6s) infinite; }
.st-scene--pickup .sc-road { animation: sc-road 0.26s linear calc(var(--t) + 2.6s) infinite; }
/* lamps by the road, flashing past in front of the truck */
.sc-lamp {
  position: absolute; left: calc(100% + 40px); bottom: 20px; /* (out of sight until it comes by) */ width: 3px; height: 92px; border-radius: 2px 2px 0 0;
  background: #2a2620;
  animation: sc-lamp 2.4s linear calc(var(--t) + 3s) infinite;
}
.sc-lamp.b { animation-delay: calc(var(--t) + 4.2s); }
.sc-lamp::before {
  content: ""; position: absolute; left: -9px; top: -3px; width: 16px; height: 6px; border-radius: 4px 4px 2px 2px;
  background: #ffe2a0; box-shadow: 0 0 14px 3px rgba(255, 216, 140, 0.55);
}
.sc-lamp::after {
  content: ""; position: absolute; left: -34px; top: 3px; width: 66px; height: 89px;
  background: linear-gradient(180deg, rgba(255, 222, 150, 0.22), rgba(255, 222, 150, 0));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}
/* the stage: 300 px wide, in the middle, standing on the ground */
.sc-stage { position: absolute; left: 50%; bottom: 19px; width: 300px; height: 110px; margin-left: -150px; transform: scale(1.3); transform-origin: 50% 100%; }

/* the truck: one box takes it along the road, one over the bumps, one leans and bobs */
.sc-truck {
  position: absolute; left: 30px; bottom: 0; width: 150px; height: 74px;
  animation: sc-in 0.8s cubic-bezier(0.15, 0.7, 0.25, 1) var(--t) both, sc-go 1.1s cubic-bezier(0.5, 0, 0.3, 1) calc(var(--t) + 2.5s) forwards;
}
.sc-truck-jump { position: absolute; inset: 0; animation: sc-bump 3.4s linear calc(var(--t) + 4.4s) infinite; }
.sc-truck-in {
  position: absolute; inset: 0; transform-origin: 22% 100%; /* (it turns about the back wheel) */
  animation: sc-brake 0.8s ease-out var(--t), sc-dip 0.36s ease-out calc(var(--t) + 2.13s),
    sc-rear 0.75s cubic-bezier(0.3, 0, 0.3, 1) calc(var(--t) + 2.5s), sc-bob 0.26s ease-in-out calc(var(--t) + 3.3s) infinite alternate;
}
.sc-truck-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-wheel {
  position: absolute; bottom: 0; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, #f3efe7 0 18%, #6b6253 19% 36%, #191714 37%);
  border: 2px solid #4c4538;
  animation: sc-roll-in 0.8s cubic-bezier(0.15, 0.7, 0.25, 1) var(--t) both, sc-roll 0.36s linear calc(var(--t) + 2.5s) infinite;
}
.sc-wheel::after { content: ""; position: absolute; left: 50%; top: 1px; width: 2px; height: 5px; margin-left: -1px; border-radius: 1px; background: #f3efe7; opacity: 0.75; }
.sc-wheel.w1 { left: 23px; }
.sc-wheel.w2 { left: 107px; }
/* its lights: two flashes at the package, then on for the road */
.sc-beam {
  position: absolute; left: 146px; bottom: 14px; width: 74px; height: 32px;
  background: linear-gradient(90deg, rgba(255, 233, 168, 0.5), rgba(255, 233, 168, 0));
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%);
  opacity: 0; animation: sc-lights 1.7s linear calc(var(--t) + 0.92s) forwards;
}
/* braking: dust thrown forward from the wheels */
.sc-dust { position: absolute; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 239, 231, 0.7), rgba(243, 239, 231, 0) 70%); opacity: 0; animation: sc-dust 0.7s ease-out calc(var(--t) + 0.42s); }
.sc-dust.d1 { left: 40px; }
.sc-dust.d2 { left: 124px; animation-delay: calc(var(--t) + 0.5s); }
.sc-dust.d3 { left: 132px; width: 7px; height: 7px; animation-delay: calc(var(--t) + 0.6s); }
/* setting off: one big puff, then a steady trail of small ones */
.sc-puff {
  position: absolute; left: -5px; bottom: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 239, 231, 0.75), rgba(243, 239, 231, 0) 70%);
  opacity: 0; animation: sc-puff 0.9s ease-out calc(var(--t) + 2.9s) infinite;
}
.sc-puff.p2 { animation-delay: calc(var(--t) + 3.2s); }
.sc-puff.p3 { animation-delay: calc(var(--t) + 3.5s); }
.sc-puff.big { width: 18px; height: 18px; animation: sc-burst 0.9s ease-out calc(var(--t) + 2.5s); }
.sc-heart { position: absolute; left: 40px; bottom: 62px; font-size: 11px; color: #ff8fa3; opacity: 0; animation: sc-heart 2.2s ease-out calc(var(--t) + 3s) infinite; }
.sc-heart.h2 { left: 54px; color: var(--accent-2); animation-delay: calc(var(--t) + 3.7s); }
.sc-heart.h3 { left: 30px; animation-delay: calc(var(--t) + 4.4s); }
.sc-speed { position: absolute; height: 2px; border-radius: 2px; background: rgba(243, 239, 231, 0.45); opacity: 0; animation: sc-speed 0.6s linear calc(var(--t) + 2.9s) infinite; }
.sc-speed.l1 { left: 34px; bottom: 60px; width: 26px; }
.sc-speed.l2 { left: 8px; bottom: 42px; width: 38px; animation-delay: calc(var(--t) + 3.1s); }
.sc-speed.l3 { left: 40px; bottom: 26px; width: 18px; animation-delay: calc(var(--t) + 3.3s); }
.sc-speed.l4 { left: 0; bottom: 74px; width: 30px; animation-delay: calc(var(--t) + 3.2s); }

/* the package: one waits by the road and jumps, one rides in the back
   (they swap, out of sight, as it lands) */
.sc-box { position: absolute; width: 36px; height: 34px; }
.sc-box svg { display: block; width: 100%; height: 100%; }
.sc-eyes { transform-box: fill-box; transform-origin: center; animation: sc-blink 3.6s linear infinite; }
.sc-box--wait { left: 214px; bottom: 0; animation: sc-hop-x 0.7s cubic-bezier(0.4, 0, 0.65, 1) calc(var(--t) + 1.45s) forwards, sc-gone 1ms linear calc(var(--t) + 2.15s) forwards; }
.sc-box-y { transform-origin: 50% 100%; animation: sc-peek 0.6s ease-out calc(var(--t) + 0.85s), sc-hop-y 0.7s linear calc(var(--t) + 1.45s) forwards; }
.sc-box-y svg { animation: sc-flip 0.7s cubic-bezier(0.4, 0, 0.6, 1) calc(var(--t) + 1.45s) forwards; }
.sc-box--loaded { left: 27px; bottom: 30px; opacity: 0; transform-origin: 50% 100%; animation: sc-land 0.5s cubic-bezier(0.3, 1.3, 0.5, 1) calc(var(--t) + 2.15s) forwards; }
.sc-box-bump { transform-origin: 50% 100%; animation: sc-box-bump 3.4s linear calc(var(--t) + 4.4s) infinite; } /* (over the bumps it leaves the floor) */
/* the stars it trails as it jumps: the same path, each a little later */
.sc-trail { position: absolute; left: 226px; bottom: 12px; animation: sc-hop-x 0.7s cubic-bezier(0.4, 0, 0.65, 1) calc(var(--t) + 1.45s + var(--late)) both; }
.sc-trail i { display: block; font-size: 10px; line-height: 1; color: var(--accent-2); opacity: 0; animation: sc-trail-y 0.7s linear calc(var(--t) + 1.45s + var(--late)) both; }
.sc-trail.t1 { --late: 0.07s; }
.sc-trail.t2 { --late: 0.14s; }
.sc-trail.t2 i { color: #fff; font-size: 8px; }
.sc-trail.t3 { --late: 0.21s; }
.sc-trail.t4 { --late: 0.28s; }
.sc-trail.t4 i { color: #ff8fa3; font-size: 7px; }
/* landing: a puff, and sparks */
.sc-poof { position: absolute; left: 31px; bottom: 30px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(243, 239, 231, 0.75); opacity: 0; animation: sc-poof 0.5s ease-out calc(var(--t) + 2.15s); }
.sc-spark { position: absolute; left: 42px; bottom: 44px; font-size: 9px; line-height: 1; color: var(--accent-2); opacity: 0; animation: sc-spark 0.6s ease-out calc(var(--t) + 2.15s); }
.sc-spark.k1 { --sx: -26px; --sy: -20px; }
.sc-spark.k2 { --sx: 22px; --sy: -26px; color: #fff; }
.sc-spark.k3 { --sx: -8px; --sy: -34px; color: #ff8fa3; }
.sc-spark.k4 { --sx: 30px; --sy: -8px; }

/* the payment came through */
.sc-stamp {
  position: absolute; left: 104px; bottom: 66px; width: 30px; height: 30px;
  border-radius: 50% 50% 50% 6px;
  background: #7edf9d; color: #12301c; font-weight: 700; font-size: 0.95rem;
  display: grid; place-items: center;
  transform: scale(0); transform-origin: 0 100%;
}
.st-scene.is-paid .sc-stamp { animation: sc-stamp 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) 0.15s forwards; }
.st-scene.is-paid .sc-truck-in { animation: sc-cheer 0.6s ease-out, sc-bob 0.26s ease-in-out 0.6s infinite alternate; }
.sc-confetti { position: absolute; left: 50%; top: 48%; width: 0; height: 0; pointer-events: none; }
.sc-confetti i { position: absolute; left: -3px; top: -4px; width: 6px; height: 9px; border-radius: 1.5px; opacity: 0; animation: sc-confetti 1.3s cubic-bezier(0.15, 0.7, 0.3, 1) forwards; }
.sc-firework { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 4px dotted var(--accent-2); opacity: 0; }
.sc-firework::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 3px dotted currentColor; }
.sc-firework.f1 { left: 24%; top: 40px; color: #fff; }
.sc-firework.f2 { left: 70%; top: 32px; border-color: #7fb7be; color: #ff8fa3; }
.sc-firework.f3 { left: 50%; top: 54px; border-color: #ff8fa3; color: var(--accent-2); }
.st-scene.is-paid .sc-firework { animation: sc-firework 1.1s ease-out 0.2s 2; }
.st-scene.is-paid .sc-firework.f2 { animation-delay: 0.55s; }
.st-scene.is-paid .sc-firework.f3 { animation-delay: 0.9s; }

/* the payment wasn't made: the package naps by the road */
.sc-box--nap { left: 132px; bottom: 0; transform-origin: 50% 100%; animation: sc-breathe 2.6s ease-in-out infinite alternate; }
.sc-box--nap .sc-eyes { animation: none; transform: scaleY(0.14); }
.sc-z { position: absolute; left: 166px; bottom: 30px; font-family: var(--font-mono); font-size: 11px; color: var(--paper-soft); opacity: 0; animation: sc-z 2.7s ease-out infinite; }
.sc-z.z2 { animation-delay: 0.9s; }
.sc-z.z3 { animation-delay: 1.8s; }

@keyframes sc-twinkle { to { opacity: 0.8; } }
@keyframes sc-shoot {
  0%, 86% { opacity: 0; transform: translate(0, 0) rotate(160deg); }
  88% { opacity: 1; transform: translate(0, 0) rotate(160deg); }
  100% { opacity: 0; transform: translate(-150px, 54px) rotate(160deg); }
}
@keyframes sc-cloud { to { transform: translateX(46px); } }
@keyframes sc-far { to { transform: translateX(-260px); } }
@keyframes sc-road { to { transform: translateX(-46px); } }
@keyframes sc-lamp { from { transform: translateX(0); } to { transform: translateX(-800px); } }
@keyframes sc-in { from { transform: translateX(-400px); } to { transform: translateX(0); } }
@keyframes sc-go { from { transform: translateX(0); } to { transform: translateX(46px); } }
@keyframes sc-brake { 0% { transform: rotate(-2.5deg); } 55% { transform: rotate(-1deg); } 78% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes sc-dip { 40% { transform: translateY(3px); } }
@keyframes sc-rear { 30% { transform: rotate(-7deg); } 62% { transform: rotate(-4deg); } 82% { transform: rotate(1deg); } }
@keyframes sc-bob { to { transform: translateY(-1.6px); } }
@keyframes sc-bump {
  0%, 84%, 100% { transform: translateY(0) rotate(0); }
  89% { transform: translateY(-8px) rotate(-2.5deg); animation-timing-function: ease-in; }
  94% { transform: translateY(2px) rotate(1deg); }
  97% { transform: translateY(-1.5px) rotate(0); }
}
@keyframes sc-box-bump {
  0%, 85%, 100% { transform: translateY(0) rotate(0); }
  91% { transform: translateY(-11px) rotate(-10deg); animation-timing-function: ease-in; }
  96% { transform: translateY(0) rotate(2deg) scale(1.08, 0.9); }
}
@keyframes sc-roll-in { from { transform: rotate(-1080deg); } to { transform: rotate(0); } }
@keyframes sc-roll { to { transform: rotate(360deg); } }
@keyframes sc-lights { 0%, 4% { opacity: 0; } 5%, 10% { opacity: 1; } 11%, 17% { opacity: 0; } 18%, 23% { opacity: 1; } 24%, 84% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sc-gone { to { opacity: 0; } }
@keyframes sc-dust {
  0% { opacity: 0.75; transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0; transform: translate(30px, -9px) scale(2.2); }
}
@keyframes sc-puff {
  0% { opacity: 0.7; transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0; transform: translate(-34px, -12px) scale(1.9); }
}
@keyframes sc-burst {
  0% { opacity: 0.8; transform: translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: translate(-46px, -18px) scale(3.2); }
}
@keyframes sc-heart {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-30px, -30px) scale(1.1); }
}
@keyframes sc-speed {
  0% { opacity: 0; transform: translateX(30px); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(-54px); }
}
@keyframes sc-blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(0.1); } }
@keyframes sc-peek {
  22% { transform: translateY(-10px) scale(0.96, 1.05); }
  44% { transform: translateY(0) scale(1.08, 0.92); }
  66% { transform: translateY(-6px) scale(0.98, 1.03); }
  88% { transform: translateY(0) scale(1.04, 0.96); }
}
@keyframes sc-hop-x { from { transform: translateX(0); } to { transform: translateX(-157px); } }
@keyframes sc-hop-y {
  0%   { transform: translateY(0) scale(1.14, 0.8); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  52%  { transform: translateY(-84px) scale(0.96, 1.05); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.6); }
  100% { transform: translateY(-30px) scale(1); }
}
@keyframes sc-trail-y {
  0%   { opacity: 0; transform: translateY(0) scale(1.2) rotate(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  14%  { opacity: 1; }
  52%  { opacity: 0.9; transform: translateY(-84px) scale(1) rotate(120deg); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.6); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.3) rotate(240deg); }
}
@keyframes sc-flip { to { transform: rotate(-360deg); } }
@keyframes sc-land {
  0%   { opacity: 1; transform: scale(1.2, 0.76); }
  45%  { opacity: 1; transform: scale(0.94, 1.1); }
  75%  { opacity: 1; transform: scale(1.03, 0.98); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes sc-poof { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(2); } }
@keyframes sc-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1.2) rotate(140deg); }
}
@keyframes sc-stamp { to { transform: scale(1); } }
@keyframes sc-cheer {
  30% { transform: translateY(-9px) rotate(-3deg); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-3px); }
}
@keyframes sc-confetti {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.4); }
  55%  { opacity: 1; transform: translate(calc(var(--x) * 0.9), var(--y)) rotate(calc(var(--r) * 0.7)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 40px)) rotate(var(--r)) scale(1); }
}
@keyframes sc-firework {
  0% { opacity: 0; transform: scale(0.1); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25) rotate(24deg); }
}
@keyframes sc-breathe { to { transform: scale(1.04, 0.96); } }
@keyframes sc-z {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(16px, -36px) scale(1.3); }
}

@media (max-width: 640px) {
  .st-modal-card, .st-modal-card--wide { animation: st-sheet-in 0.42s cubic-bezier(0.2, 0.85, 0.25, 1) both; }
  .st-scene { height: 164px; margin: -1.6rem -1.3rem 1.2rem; }
  .sc-stage { transform: none; }
  .sc-lamp { height: 72px; }
  .sc-lamp::after { height: 69px; }
  /* (the sheet's handle lies on the banner) */
  #st-orders .st-modal-card::before { position: absolute; left: 50%; top: 0.6rem; z-index: 3; margin: 0 0 0 -22px; }
  #st-orders-scene:empty + .st-modal-title { margin-top: 1rem; }
  /* the toast may take two lines */
  .st-toast { font-size: 0.8rem; border-radius: 1.5rem; padding-left: 0.8rem; }
  .st-toast-text { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .st-scene *, .st-modal, .st-modal-card, .st-scrim, .st-toast, .st-line, .st-go, .st-go-cart,
  .st-cart-btn, .st-cart-btn svg, .st-cart-count, .st-qty span, .st-empty-art *, .st-checkout-cart,
  .st-add, .vd-use, .st-add .ch, .vd-use .ch, .st-add-anim, .st-add-anim * { animation: none !important; }
  .st-toast, .st-nav { transition: none; }
  .st-scene.is-paid .sc-stamp { transform: none; } /* (the tick still shows) */
}

/* ---------- store footer ---------- */
.st-footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin-top: 4.5rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-l);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: rgba(243, 239, 231, 0.45);
  text-transform: uppercase;
}
.st-footer b { color: var(--paper-soft); }
.st-footer a { color: var(--accent-2); transition: color 0.2s; }
.st-footer a:hover { color: var(--accent); }

/* ---------- admin ---------- */
body.admin-body { background: var(--dark); color: var(--paper); }
.ad-main { max-width: 82rem; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 5rem; }
.ad-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0 1.6rem; }
.ad-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.ad-head h1 em { color: var(--accent-2); }
.ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 2rem; }
.ad-card {
  background: var(--dark-2); border: 1px solid rgba(243, 239, 231, 0.1);
  border-radius: 0.9rem; padding: 1.1rem 1.2rem;
}
.ad-card .n { font-size: 1.8rem; font-weight: 700; }
.ad-card .l { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: rgba(243, 239, 231, 0.55); text-transform: uppercase; margin-top: 0.3rem; }
.ad-section { margin-bottom: 2.4rem; }
.ad-section h2 { font-size: 1.15rem; margin-bottom: 0.9rem; letter-spacing: 0.02em; }
.ad-table-wrap { overflow-x: auto; border: 1px solid rgba(243, 239, 231, 0.1); border-radius: 0.9rem; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 640px; }
.ad-table th {
  text-align: left; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 239, 231, 0.5);
  padding: 0.8rem 1rem; border-bottom: 1px solid rgba(243, 239, 231, 0.1);
}
.ad-table td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(243, 239, 231, 0.07); vertical-align: top; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-btn {
  border: 1px solid rgba(243, 239, 231, 0.3); background: transparent; color: var(--paper);
  border-radius: 99px; padding: 0.35rem 0.85rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em;
  margin: 0 0.25rem 0.25rem 0;
}
.ad-btn:hover { background: var(--paper); color: var(--ink); }
.ad-btn.approve { border-color: #7fb069; color: #a8d5a2; }
.ad-btn.approve:hover { background: #7fb069; color: var(--dark); }
.ad-btn.danger { border-color: #c8553d; color: #e8a598; }
.ad-btn.danger:hover { background: #c8553d; color: var(--paper); }
/* admin: start fresh */
.ad-fresh { display: grid; gap: 0.55rem; margin: 0.9rem 0 0.6rem; }
.ad-fresh label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; cursor: pointer; }
.ad-fresh input { width: 18px; height: 18px; flex: none; accent-color: #c8553d; }
.ad-fresh input:disabled + span { opacity: 0.6; }
.ad-login {
  max-width: 340px; margin: 14vh auto; display: flex; flex-direction: column; gap: 0.9rem;
}
.ad-login input {
  border: 1px solid rgba(243, 239, 231, 0.2); border-radius: 0.6rem;
  background: var(--dark-2); color: var(--paper);
  padding: 0.85rem 1rem; font-family: inherit;
}
.ad-muted { color: rgba(243, 239, 231, 0.5); font-size: 0.78rem; }
.ad-prod-form {
  background: var(--dark-2);
  border: 1px solid rgba(243, 239, 231, 0.1);
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.ad-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.ad-prod-grid label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(243, 239, 231, 0.55);
}
.ad-prod-grid input, .ad-prod-grid select {
  border: 1px solid rgba(243, 239, 231, 0.2); border-radius: 0.55rem;
  background: var(--dark); color: var(--paper);
  padding: 0.65rem 0.8rem; font-family: var(--font-display); font-size: 0.9rem;
}
.ad-prod-grid input:focus, .ad-prod-grid select:focus { outline: 2px solid var(--accent-2); }
.ad-prod-grid .ad-check {
  flex-direction: row; align-items: center; gap: 0.5rem;
  align-self: end; padding-bottom: 0.7rem;
  cursor: pointer;
}
.ad-prod-grid .ad-check input { width: 18px; height: 18px; accent-color: var(--accent-2); }
.ad-img-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem;
  margin-bottom: 0.8rem; padding-top: 0.2rem;
}
.ad-img-pick {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(243, 239, 231, 0.55);
}
.ad-img-pick input[type="file"] { color: var(--paper-soft); font-size: 0.78rem; max-width: 240px; }
.ad-img-pick input[type="file"]::file-selector-button {
  border: 1px solid rgba(243, 239, 231, 0.3); background: transparent; color: var(--paper);
  border-radius: 99px; padding: 0.45rem 0.9rem; margin-right: 0.7rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; cursor: pointer;
}
.ad-img-preview {
  width: 76px; height: 57px; object-fit: cover;
  border-radius: 0.5rem; border: 1px solid rgba(243, 239, 231, 0.2);
}
.ad-img-row .ad-check {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(243, 239, 231, 0.55);
}
.ad-img-row .ad-check input { width: 18px; height: 18px; accent-color: var(--accent-2); }
.ad-thumb {
  width: 52px; height: 40px; object-fit: cover;
  border-radius: 0.4rem; border: 1px solid rgba(243, 239, 231, 0.15);
  display: block;
}
span.ad-thumb--none {
  display: grid; place-items: center;
  color: rgba(243, 239, 231, 0.25); border-style: dashed;
}
.ad-pager-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.6rem;
  margin-top: 0.9rem;
}
.ad-pager { display: flex; align-items: center; gap: 0.3rem; }
.ad-pg-btn {
  min-width: 34px; height: 34px; padding: 0 0.6rem;
  border: 1px solid rgba(243, 239, 231, 0.2); background: transparent; color: var(--paper);
  border-radius: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  transition: all 0.2s;
}
.ad-pg-btn:hover:not(:disabled) { background: rgba(243, 239, 231, 0.1); }
.ad-pg-btn.is-active { background: var(--accent-2); color: var(--dark); border-color: var(--accent-2); }
.ad-pg-btn:disabled { opacity: 0.3; cursor: default; }
.ad-pg-dots { color: rgba(243, 239, 231, 0.35); padding: 0 0.2rem; font-family: var(--font-mono); font-size: 0.72rem; }

/* ---------- admin: vinyl gallery ---------- */
.ad-vin-status {
  margin-bottom: 0.9rem; padding: 0.6rem 0.85rem; border-radius: 0.6rem; font-size: 0.78rem; line-height: 1.5;
  background: rgba(242, 165, 65, 0.1); border: 1px solid rgba(242, 165, 65, 0.3); color: #f6d3a2;
}
.ad-vin-status.ok { background: rgba(127, 176, 105, 0.1); border-color: rgba(127, 176, 105, 0.35); color: #bfe0b6; }
.ad-vin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1.2rem; align-items: start; }
.ad-vin-fields .ad-vin-wide, .ad-vin-fields .ad-vin-img { grid-column: 1 / -1; }
.ad-vin-img {
  min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0.55rem 0.75rem 0.75rem;
  border: 1px dashed rgba(243, 239, 231, 0.22); border-radius: 0.6rem;
}
.ad-vin-img legend { padding: 0 0.3rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 239, 231, 0.55); }
.ad-vin-img input[type="file"] { padding: 0; border: 0; background: none; color: var(--paper-soft); font-size: 0.78rem; }
.ad-vin-img input[type="file"]:disabled { opacity: 0.4; }
.ad-vin-img input[type="file"]::file-selector-button {
  border: 1px solid rgba(243, 239, 231, 0.3); background: transparent; color: var(--paper);
  border-radius: 99px; padding: 0.45rem 0.9rem; margin-right: 0.7rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; cursor: pointer;
}
.ad-vin-color { display: flex; gap: 0.45rem; }
.ad-prod-grid .ad-vin-color input[type="color"] { flex: none; width: 48px; height: 42px; padding: 3px; cursor: pointer; }
.ad-prod-grid .ad-vin-color input[name="vinylHex"] { flex: 1; min-width: 0; font-family: var(--font-mono); text-transform: lowercase; }
.ad-prod-grid input[type="range"] { padding: 0; border: 0; background: none; accent-color: var(--accent-2); }
.ad-vin-fields label b { color: var(--paper); font-family: var(--font-mono); }
.ad-vin-hint { display: flex; justify-content: space-between; text-transform: none; letter-spacing: 0; }
/* a quick look before saving: the record sliding out of its sleeve */
.ad-vin-preview {
  position: relative; height: 210px; overflow: hidden; border-radius: 0.8rem;
  background: repeating-linear-gradient(45deg, #24201b 0 10px, #1a1814 10px 20px);
  --vc: #000000; --vt: 0;
}
.ad-vin-sleeve, .ad-vin-disc i { background: #3a342c center / cover no-repeat; }
.ad-vin-sleeve { position: absolute; left: 14px; top: 22px; width: 166px; height: 166px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55); }
.ad-vin-disc {
  position: absolute; left: 96px; top: 27px; width: 156px; height: 156px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22), transparent 45%),
    color-mix(in srgb, var(--vc) calc((1 - var(--vt) * 0.72) * 100%), transparent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ad-vin-disc i { position: absolute; inset: 33%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.ad-vin-disc i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #111; }
.ad-vin-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 0.9rem; }
.ad-vin-search {
  width: min(100%, 340px); padding: 0.65rem 0.9rem; border-radius: 99px; font: inherit; font-size: 0.88rem;
  border: 1px solid rgba(243, 239, 231, 0.2); background: var(--dark-2); color: var(--paper);
}
.ad-vin-search:focus { outline: 2px solid var(--accent-2); }
.ad-vin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.ad-vin-card {
  min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; padding: 0.75rem; font-size: 0.84rem;
  background: var(--dark-2); border: 1px solid rgba(243, 239, 231, 0.1); border-radius: 0.8rem;
}
.ad-vin-card.is-hidden { opacity: 0.55; }
.ad-vin-card > b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad-vin-thumbs { position: relative; height: 96px; }
.ad-vin-thumbs img { position: absolute; left: 0; top: 0; width: 96px; height: 96px; object-fit: cover; border-radius: 0.3rem; background: #3a342c; }
.ad-vin-thumbs img.lbl {
  left: 70px; top: 14px; width: 68px; height: 68px; border-radius: 50%;
  box-shadow: 0 0 0 7px var(--c, #111), 0 0 0 8px rgba(255, 255, 255, 0.15), 0 6px 14px rgba(0, 0, 0, 0.5);
}
.ad-vin-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255, 255, 255, 0.35); }
@media (max-width: 760px) {
  .ad-vin-layout { grid-template-columns: 1fr; }
  .ad-vin-preview { max-width: 300px; }
}

/* the hidden attribute must always win over display rules above */
[hidden] { display: none !important; }

/* ============================================================
   RESPONSIVE — the store should feel like an app on a phone
   ============================================================ */

/* keep the sticky nav + drawer clear of notches and home bars */
.st-nav {
  padding-left: max(clamp(1.2rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.2rem, 4vw, 3rem), env(safe-area-inset-right));
}
.st-drawer-foot { padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); }

/* ---------- tablets ---------- */
@media (max-width: 1024px) {
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* ---------- phones: app-like ---------- */
@media (max-width: 640px) {
  .st-row { grid-template-columns: 1fr; }

  /* nav wraps into two clean rows instead of crushing */
  .st-nav { flex-wrap: wrap; gap: 0.55rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .st-nav-right { flex-wrap: wrap; gap: 0.55rem; }

  /* category tabs: one swipeable row, like app filter chips */
  .st-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * clamp(1.2rem, 4vw, 3rem));
    margin-right: calc(-1 * clamp(1.2rem, 4vw, 3rem));
    padding: 0.25rem clamp(1.2rem, 4vw, 3rem);
    scroll-snap-type: x proximity;
  }
  .st-tabs::-webkit-scrollbar { display: none; }
  .st-tab { flex: 0 0 auto; scroll-snap-align: start; }
  .st-tab.is-active, .st-tab:hover { transform: none; } /* no lift mid-scroll */

  /* two-across product browsing, compact card bodies */
  /* minmax(0, …): a plain 1fr can't shrink below a long unbroken name,
     which widened the page and made phones zoom out */
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .st-card { border-radius: 1rem; }
  .st-card-body { padding: 0.8rem 0.85rem 0.95rem; gap: 0.35rem; }
  .st-card-body h3 { font-size: 0.95rem; }
  .st-card-body .sub { display: none; } /* app-style: image, name, price */
  .st-card-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-top: 0.3rem; }
  .st-price { font-size: 1rem; }
  .st-add { width: 100%; padding: 0.65rem; text-align: center; }

  .vd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0.8rem; }
  .vd-use { padding: 0.5rem 0.8rem; }

  /* modals become bottom sheets */
  .st-modal { align-items: flex-end; padding: 0; }
  .st-modal-card, .st-modal-card--wide {
    width: 100%;
    max-height: 88dvh;
    border-radius: 1.4rem 1.4rem 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    padding: 1.6rem 1.3rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  .st-modal-card::before {
    content: "";
    display: block;
    width: 44px; height: 4px;
    border-radius: 99px;
    background: rgba(243, 239, 231, 0.25);
    margin: -0.4rem auto 1rem;
  }

  /* the cart drawer takes the full width, like an app screen */
  .st-drawer { width: 100vw; border-left: 0; }
}

/* ---------- tiny / flip-phone cover screens ---------- */
@media (max-width: 360px) {
  .st-hero h1 { font-size: 1.9rem; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .vd-grid { grid-template-columns: minmax(0, 1fr); }
  .lang-switch button { padding: 0.35rem 0.5rem; }
  .st-user-btn, .st-orders-btn { padding: 0.45rem 0.8rem; font-size: 0.66rem; }
}

/* ---------- touch devices: real tap targets ---------- */
@media (pointer: coarse) {
  input, textarea, select { font-size: max(16px, 1em); } /* iOS zooms into smaller fields */
  .st-tab, .st-add, .st-user-btn, .st-orders-btn, .st-submit,
  .st-checkout, .st-auth-tab, .vd-use, .ad-btn { min-height: 44px; }
  .st-qty button { width: 34px; height: 34px; }
  .st-x { width: 44px; height: 44px; }
  .st-card:hover { transform: none !important; } /* no tilt on touch */
}
