/* ============================================================
   FIELD DAY — Picnic Supply Co.
   VIBRANT BLOCK BASED art direction: big solid color blocks,
   hard edges, zero radius, hard ink shadows, chromatic
   collision. No gradients, no warm paper tones.
   ============================================================ */

:root {
  --yellow: #FFE600;
  --red: #FF3D00;
  --blue: #2D6BFF;
  --cyan: #00C2D1;
  --green: #00B26B;
  --pink: #FF5CA8;
  --ink: #111111;
  --paper: #FFFFFF;
  --cream: #FFF8E7;
  --radius: 0px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.02;
  margin: 0;
}

button { font-family: inherit; cursor: pointer; }

img, svg { display: block; }

.hand { font-family: var(--font-hand); color: var(--red); font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--yellow);
  padding: 10px 16px; border-radius: 0; border: 2px solid var(--yellow);
  z-index: 200; transition: top .2s;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: .95rem;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }

.btn-primary { background: var(--red); color: #FFFFFF; border-color: var(--ink); }
.btn-primary:hover { background: var(--yellow); color: var(--ink); }
.btn-outline { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: var(--paper); box-shadow: none; border-style: dashed; }
.btn-ghost:hover { box-shadow: none; background: var(--cyan); color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-small { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

.icon-btn {
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  width: 38px; height: 38px; border-radius: 0;
  font-size: 1.3rem; line-height: 1; display: inline-grid; place-items: center;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.icon-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 44px) 18px;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 7px;
  background:
    repeating-linear-gradient(0deg, var(--red) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(90deg, var(--red) 0 7px, transparent 7px 14px);
  border-top: 0;
}

.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-sun {
  width: 22px; height: 22px; align-self: center;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px var(--ink);
}
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand-sub {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--ink); font-weight: 700;
}

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 4px 2px; border-bottom: 4px solid transparent;
  transition: border-color .15s ease;
  text-transform: uppercase; letter-spacing: .08em;
}
.site-nav a:hover { border-bottom-color: var(--red); }

.cart-button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 0; padding: 9px 18px;
  font-weight: 700; font-size: .95rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cart-button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.cart-count {
  background: var(--red); color: #FFFFFF;
  min-width: 22px; height: 22px; border-radius: 0;
  display: inline-grid; place-items: center;
  font-size: .78rem; font-weight: 800; padding: 0 5px;
  border: 2px solid var(--ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vh, 90px) clamp(16px, 6vw, 90px) 120px;
  overflow: hidden;
  background: var(--cyan);
}
.hero-sun {
  position: absolute; top: -90px; right: -70px;
  width: 340px; height: 340px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  opacity: 1;
}
.hero-cloud { position: absolute; width: clamp(90px, 12vw, 150px); opacity: .95; }
.hero-cloud.c1 { top: 16%; left: 6%; animation: drift 26s ease-in-out infinite alternate; }
.hero-cloud.c2 { top: 30%; right: 18%; width: clamp(70px, 9vw, 110px); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(18px); } }

.hero-inner { position: relative; max-width: 760px; }
.hero-kicker {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .24em; font-size: .75rem;
  font-weight: 800; color: var(--ink); margin: 0 0 14px;
  background: var(--yellow); border: 2px solid var(--ink);
  padding: 5px 12px;
  box-shadow: 4px 4px 0 var(--ink);
}
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 7.2rem);
  font-weight: 900; letter-spacing: -.02em;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--yellow);
}
.hero h1 em { font-style: normal; color: var(--red); text-shadow: 4px 4px 0 var(--ink); }
.hero-sub {
  max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink); margin: 22px 0 30px;
  background: var(--paper); border: 2px solid var(--ink);
  padding: 10px 14px;
  box-shadow: 5px 5px 0 var(--ink);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-peek {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  animation: peekSway 7s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-peek svg { width: 100%; height: auto; }
@keyframes peekSway {
  0%, 100% { transform: rotate(-.6deg) translateY(2px); }
  50% { transform: rotate(.6deg) translateY(-3px); }
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-cue-dot { width: 12px; height: 12px; background: var(--red); border: 2px solid var(--ink); }
.scroll-cue-line { width: 3px; height: 34px; background: var(--red); border: 1px solid var(--ink); animation: cueDrop 1.6s ease-in-out infinite; }
@keyframes cueDrop { 0% { transform: scaleY(.2); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(.2); transform-origin: bottom; } }

/* ---------- marquee ribbon ---------- */

.marquee {
  background: var(--red);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  overflow: hidden; padding: 9px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem;
  letter-spacing: .12em; white-space: nowrap; padding-right: 12px;
  color: #FFFFFF; text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scroll-driven blanket reveal ---------- */

.unfold { position: relative; height: 280vh; background: var(--blue); }
.unfold-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.5vh, 26px);
  padding: 24px;
  overflow: hidden;
}
.unfold-title {
  text-align: center; font-weight: 900; letter-spacing: -.02em;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  color: #FFFFFF;
  text-shadow: 5px 5px 0 var(--ink);
}
.unfold-title span { display: block; }
.unfold-title span:last-child { font-style: normal; color: var(--yellow); }
.unfold-stage { width: min(880px, 94vw); }

.blanket {
  position: relative;
  transform-origin: center center;
  will-change: transform;
}
.blanket-svg { width: 100%; height: auto; }
.blanket-minis { position: absolute; inset: 0; }
.blanket-minis .mini {
  position: absolute; width: 15%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(4px 5px 0 rgba(17,17,17,.35));
}
.unfold-note { margin: 0; font-size: 1.35rem; text-align: center; color: var(--ink); }

/* ---------- shop layout ---------- */

.shop {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 340px;
  gap: clamp(18px, 2.5vw, 34px);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 3.5vw, 44px);
}

.shop-main { min-width: 0; }

/* ---------- filters ---------- */

.filters {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  position: sticky;
  top: 96px;
}
.filters-summary { display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: .82rem;
  padding: 6px 13px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.chip:hover { transform: translateY(-1px); background: var(--yellow); }
.chip.active { background: var(--ink); color: var(--yellow); }

.filter-field { margin-bottom: 14px; }
.filter-field label {
  display: block; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink); margin-bottom: 6px;
}
.filter-field select,
.filter-field input {
  width: 100%; padding: 9px 12px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: .92rem;
}
.filters-note { font-size: .85rem; color: var(--ink); margin: 12px 0 0; font-weight: 700; }

/* ---------- product grid & cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  animation: cardIn .45s ease both;
  animation-delay: var(--d, 0ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.card.dragging { opacity: .4; transform: scale(.97); }

.card-main {
  display: block; width: 100%;
  border: 0; background: transparent; padding: 16px 16px 4px;
  position: relative; text-align: center;
}
.card-art {
  display: block;
  aspect-ratio: 1 / .92;
  border-radius: 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 10px;
}
.card-art .art-svg { width: 100%; height: 100%; }

.art-svg {
  filter: drop-shadow(4px 5px 0 rgba(17,17,17,.25));
}

.card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 0;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.card-badge.badge-new { background: var(--blue); color: #FFFFFF; }
.card-badge.badge-limited { background: var(--green); color: #FFFFFF; }

.card-info { padding: 10px 16px 16px; }
.card-name {
  font-size: 1.06rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: .02em;
}
.card-cat {
  margin: 2px 0 10px;
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink);
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }

.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: .82rem;
  padding: 7px 13px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}
.add-btn:hover { background: var(--red); color: #FFFFFF; transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.add-btn:active { transform: translate(1.5px, 1.5px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- empty state ---------- */

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--paper);
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
}
.empty-art { width: 130px; margin: 0 auto 18px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink); max-width: 38ch; margin: 0 auto 20px; font-weight: 600; }

/* ---------- the illustrated basket (signature) ---------- */

.basket-panel {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px;
}
.basket-panel::before {
  content: ""; display: block;
  height: 9px; margin: -22px -22px 16px;
  border-bottom: 3px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, var(--red) 0 9px, transparent 9px 18px),
    repeating-linear-gradient(90deg, var(--red) 0 9px, transparent 9px 18px);
}
.basket-head h2 { font-size: 1.45rem; font-weight: 900; }
.basket-head .hand { font-size: 1.25rem; margin: 2px 0 0; }

.basket-stage {
  position: relative;
  aspect-ratio: 320 / 260;
  margin-top: 10px;
}
.basket-layer, .basket-stack { position: absolute; inset: 0; }
.basket-layer svg, .basket-art .basket-svg { width: 100%; height: auto; }
.basket-back { z-index: 1; }
.basket-stack { z-index: 2; }
.basket-front { z-index: 3; }

.stack-item {
  position: absolute;
  width: 21%;
  aspect-ratio: 1 / 1;
}
.stack-item-inner {
  width: 100%; height: 100%;
  filter: drop-shadow(3px 4px 0 rgba(17,17,17,.3));
}
.stack-item-inner .art-svg { width: 100%; height: 100%; filter: none; }
.stack-item-inner[data-pop] { animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes popIn {
  0% { transform: translateY(-46%) scale(.55); opacity: 0; }
  60% { transform: translateY(4%) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.stack-overflow {
  position: absolute; top: 2%; right: 2%;
  z-index: 4;
  background: var(--ink); color: var(--yellow);
  font-size: .75rem; font-weight: 800;
  padding: 3px 9px; border-radius: 0;
  border: 2px solid var(--yellow);
}

.basket-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px;
  font-family: var(--font-display);
}
.basket-meta span { font-size: .9rem; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.basket-meta strong { font-size: 1.35rem; font-weight: 900; }

.fill-meter {
  height: 12px; margin-top: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.fill-meter i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(45deg, var(--red) 0 8px, var(--yellow) 8px 16px);
  transition: width .45s cubic-bezier(.2, 1, .3, 1);
}

.basket-stage.bounce { animation: basketBounce .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes basketBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.045) rotate(-.6deg); }
  70% { transform: scale(.985) rotate(.4deg); }
  100% { transform: scale(1); }
}

.plus-one {
  position: absolute; left: 50%; top: 18%;
  font-family: var(--font-display); font-weight: 900;
  color: var(--red); font-size: 1.3rem;
  pointer-events: none;
  animation: plusFloat .9s ease-out both;
  -webkit-text-stroke: 1px var(--ink);
}
@keyframes plusFloat {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.7); }
  30% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -34px) scale(1.1); }
}

/* gift-set summary unfolds */
.gift-summary {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.3, 1, .3, 1);
  margin-top: 6px;
}
.gift-summary.has-items { grid-template-rows: 1fr; }
.gift-summary-inner { overflow: hidden; min-height: 0; }

.set-name {
  display: block;
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink);
  margin: 12px 0 8px;
}
.set-name input {
  display: block; width: 100%;
  margin-top: 5px;
  padding: 8px 12px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--cream);
  font-family: var(--font-hand); font-size: 1.3rem;
  color: var(--ink);
}

.set-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.set-line {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-top: 2px dashed var(--ink);
}
.set-line-art { width: 36px; flex: none; }
.set-line-art .art-svg { width: 100%; height: auto; }
.set-line-name {
  flex: 1; min-width: 0;
  font-weight: 700; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-line-total { font-weight: 800; font-size: .9rem; }

.set-line-qty {
  display: inline-flex; align-items: center; gap: 2px;
  border: 2px solid var(--ink); border-radius: 0;
  overflow: hidden; background: var(--paper);
}
.set-line-qty button {
  width: 22px; height: 22px;
  border: 0; background: transparent;
  font-weight: 800; font-size: .9rem; line-height: 1;
  display: grid; place-items: center;
  color: var(--ink);
}
.set-line-qty button:hover { background: var(--cyan); color: var(--ink); }
.set-line-qty span { min-width: 18px; text-align: center; font-weight: 800; font-size: .85rem; }

.set-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
}
.set-total strong { font-size: 1.3rem; font-weight: 900; }
.set-actions { display: flex; gap: 10px; margin-top: 12px; }
.set-actions .btn-primary { flex: 1; }

.basket-hint {
  margin: 14px 0 0;
  font-size: .8rem; color: var(--ink); font-weight: 600;
}

/* drop feedback */
.drop-hint { outline: 3px dashed var(--red); outline-offset: 7px; border-radius: 0; }
.drop-hover { transform: scale(1.03); }

/* ---------- mobile basket bar ---------- */

.basket-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--yellow);
  border-top: 3px solid var(--ink);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 0 var(--ink);
  cursor: pointer;
  transition: transform .2s ease;
}
.basket-bar:focus-visible { outline-offset: -3px; }
.bar-art { width: 42px; flex: none; }
.bar-art .art-svg { width: 100%; height: auto; }
.bar-label { font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.bar-count {
  background: var(--red); color: #FFFFFF;
  min-width: 24px; height: 24px; border-radius: 0;
  display: inline-grid; place-items: center;
  font-size: .78rem; font-weight: 800; padding: 0 6px;
  border: 2px solid var(--ink);
}
.bar-total { margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.bar-cta {
  background: var(--ink); color: var(--yellow);
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 0;
  border: 2px solid var(--ink);
}
.basket-bar.has-items { animation: barPop .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes barPop { 0% { transform: translateY(8px); } 100% { transform: translateY(0); } }

.sheet-close { display: none; }

/* ---------- cart drawer ---------- */

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 94vw);
  background: var(--paper);
  border-left: 3px solid var(--ink);
  z-index: 80;
  display: flex; flex-direction: column;
  transform: translateX(104%);
  transition: transform .32s cubic-bezier(.3, 1, .3, 1);
  box-shadow: -8px 0 0 var(--ink);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 3px solid var(--ink);
  background: var(--blue);
}
.cart-head h2 { font-size: 1.6rem; font-weight: 900; color: #FFFFFF; text-shadow: 3px 3px 0 var(--ink); }

.cart-body { flex: 1; overflow-y: auto; padding: 14px 16px; }

.cart-empty { text-align: center; padding: 46px 18px; }
.cart-empty-art { width: 120px; margin: 0 auto 14px; }
.cart-empty h3 { font-size: 1.3rem; margin-bottom: 6px; }
.cart-empty p { color: var(--ink); font-size: .92rem; font-weight: 600; }

.set-block {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 14px;
  overflow: hidden;
}
.set-block-head { display: flex; align-items: stretch; gap: 8px; padding: 10px 10px 10px 14px; }
.set-toggle {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  border: 0; background: transparent; text-align: left;
  font-family: inherit;
}
.set-name-text {
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase;
}
.set-meta { font-size: .78rem; color: var(--ink); font-weight: 700; }
.set-toggle .chevron { grid-row: span 2; align-self: center; transition: transform .2s ease; }
.set-toggle[aria-expanded="false"] .chevron { transform: rotate(-90deg); }
.set-remove { flex: none; align-self: center; width: 32px; height: 32px; font-size: 1.1rem; }

.set-items { list-style: none; margin: 0; padding: 2px 14px 12px; }
.set-items[hidden] { display: none; }
.set-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-top: 2px dashed var(--ink);
}
.set-item-art { width: 40px; flex: none; }
.set-item-art .art-svg { width: 100%; height: auto; }
.set-item-name {
  flex: 1; min-width: 0; font-weight: 700; font-size: .88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cart-foot {
  border-top: 3px solid var(--ink);
  padding: 16px 20px 20px;
  display: grid; gap: 10px;
  background: var(--yellow);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display);
}
.cart-subtotal strong { font-size: 1.6rem; font-weight: 900; }
.cart-note { margin: 0; font-size: .78rem; color: var(--ink); text-align: center; font-weight: 600; }

.scrim {
  position: fixed; inset: 0;
  background: rgba(17,17,17,.55);
  z-index: 70;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- product modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 20px;
}
.modal-scrim { position: absolute; inset: 0; background: rgba(17,17,17,.6); animation: fadeIn .2s ease; }
.modal-card {
  position: relative;
  width: 100%; max-width: 740px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid; grid-template-columns: 1fr 1fr;
  animation: modalIn .28s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal-art {
  display: grid; place-items: center;
  padding: 34px 26px;
  border-right: 3px solid var(--ink);
  min-height: 320px;
  background: var(--yellow);
}
.modal-art .art-svg { width: 100%; max-width: 300px; height: auto; }
.modal-info { padding: 30px 28px; }
.modal-cat {
  display: inline-block;
  margin: 0 0 6px;
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  padding: 3px 9px;
  box-shadow: 3px 3px 0 var(--ink);
}
.modal-info h3 { font-size: 1.9rem; font-weight: 900; letter-spacing: -.01em; }
.modal-price { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; margin: 8px 0 12px; color: var(--red); }
.modal-desc { color: var(--ink); margin: 0 0 18px; font-weight: 600; }

.qty-stepper {
  display: inline-flex; align-items: center; gap: 4px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); padding: 4px;
  margin-bottom: 16px;
}
.qty-stepper button {
  width: 34px; height: 34px; border-radius: 0;
  border: 0; background: transparent;
  font-size: 1.2rem; font-weight: 800;
  display: grid; place-items: center;
}
.qty-stepper button:hover { background: var(--yellow); color: var(--ink); }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.modal-hint { margin: 12px 0 0; font-size: .8rem; color: var(--ink); font-weight: 600; }

/* ---------- toasts, confetti, flyers ---------- */

.toasts {
  position: fixed; left: 22px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--yellow);
  font-weight: 700; font-size: .9rem;
  padding: 11px 18px; border-radius: 0;
  border: 2px solid var(--yellow);
  box-shadow: 4px 4px 0 var(--red);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  max-width: min(360px, 80vw);
}
.toast.show { opacity: 1; transform: translateY(0); }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.confetti {
  position: absolute; left: 0; top: 0;
  width: 9px; height: 13px; border-radius: 0;
  border: 1px solid var(--ink);
  will-change: transform, opacity;
}

.flyer, .drag-ghost {
  position: fixed; left: 0; top: 0;
  width: 56px; height: 56px;
  pointer-events: none;
  z-index: 96;
  will-change: transform;
}
.drag-ghost { width: 68px; height: 68px; opacity: .96; filter: drop-shadow(5px 8px 0 rgba(17,17,17,.35)); }
.flyer .art-svg, .drag-ghost .art-svg { width: 100%; height: 100%; }

/* ---------- about & footer ---------- */

.about { padding: clamp(56px, 9vh, 110px) 24px; background: var(--red); border-top: 3px solid var(--ink); }
.about-card {
  max-width: 660px; margin: 0 auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(28px, 4vw, 46px);
  text-align: center;
}
.about-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 14px; color: var(--ink); }
.about-card p { color: var(--ink); font-weight: 600; }
.about-card .hand { font-size: 1.5rem; margin-bottom: 0; color: var(--red); }

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 26px 20px calc(26px + 0px);
  text-align: center;
  color: var(--paper);
  font-size: .88rem;
  background: var(--ink);
}
.site-footer b { font-family: var(--font-display); color: var(--yellow); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .shop { grid-template-columns: 210px minmax(0, 1fr); }
  .basket-panel { grid-column: 1 / -1; position: static; }
}

@media (max-width: 1023px) {
  /* basket becomes a bottom sheet; the bar is its handle */
  .basket-bar { display: flex; }
  .basket-panel {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 65;
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 0;
    border-bottom: 0;
    transform: translateY(106%);
    transition: transform .38s cubic-bezier(.3, 1, .3, 1);
    box-shadow: 0 -8px 0 var(--ink);
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .basket-panel.open { transform: translateY(0); }
  .basket-panel::before { border-radius: 0; }
  .basket-panel.drop-hint { outline-offset: -6px; }
  .sheet-close {
    display: grid; place-items: center;
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    border: 2px solid var(--ink); border-radius: 0;
    background: var(--red); color: #FFFFFF; font-size: 1.2rem; font-weight: 800;
  }
  .site-footer { padding-bottom: calc(26px + 66px); }
}

@media (min-width: 1024px) {
  .basket-bar { display: none; }
}

@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-summary {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; border: 0; background: transparent;
    font-family: var(--font-display); font-weight: 650; font-size: 1.1rem;
    padding: 0; cursor: pointer;
    text-transform: uppercase;
  }
  .filters-chevron {
    width: 12px; height: 12px;
    border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .filters:not([open]) .filters-chevron { transform: rotate(-45deg); }
  .filters-body { padding-top: 16px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-art { border-right: 0; border-bottom: 3px solid var(--ink); min-height: 240px; padding: 24px; }
  .modal-art .art-svg { max-width: 220px; }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-info { padding: 8px 12px 12px; }
  .card-name { font-size: .92rem; }
  .add-btn { padding: 6px 10px; font-size: .76rem; }
  .card-price { font-size: .98rem; }
  .hero { padding-bottom: 110px; }
  .toasts { left: 12px; bottom: 84px; }
  .brand-sub { display: none; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-art { padding: 6px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
  .hero-peek { animation: none; }
  .scroll-cue-line { animation: none; }
}
