/*
  Stick'd — shop styles
  Layout: chunky "sticker sheet" look. Thick ink outlines, offset shadows,
  slightly tilted elements and bold colour blocks per section.
  Brand colours come from the Stick'd logo: black, white, crown gold and purple.
  Change them below.
*/
:root {
  --ink: #0c0812;          /* logo black */
  --ink-soft: #4a4258;
  --paper: #ffffff;         /* logo white */
  --paper-2: #f5effd;       /* faint purple tint */
  --gold: #fcc200;          /* logo crown */
  --gold-light: #fff3c4;
  --purple: #7414c4;        /* logo purple */
  --purple-light: #b07cf0;  /* purple that reads on black */
  --lavender: #e6d6fb;
  --xmas-red: #e8233a;
  --xmas-green: #0f9d4a;
  --ok: #0f8a43;
  --warn: #c2410c;

  --font-display: "Bowlby One", "Arial Black", Impact, system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --tabbar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(12, 8, 18, 0.07) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
h3 { font-weight: 800; font-size: 1.15rem; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding-block: 32px 64px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.selectable { user-select: all; }
.noscript { margin: 0; padding: 14px 16px; text-align: center; font-weight: 700; background: var(--gold); border-bottom: var(--border); }

.eyebrow { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px;
  font: 800 1rem/1.1 var(--font-body); letter-spacing: 0.01em;
  color: var(--ink); background: var(--bg);
  border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { --bg: #e7e4ef; color: #8a8499; box-shadow: none; transform: none; cursor: not-allowed; border-color: #b9b3c8; }
.btn-lg { padding: 14px 24px; min-height: 54px; font-size: 1.08rem; }
.btn-xl { padding: 18px 30px; min-height: 64px; font-size: 1.2rem; }
.btn-sm { padding: 8px 12px; min-height: 40px; font-size: 0.92rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-block { width: 100%; }
.btn-purple { --bg: var(--purple); color: #fff; }
.btn-dark { --bg: var(--ink); color: var(--gold); }
.btn-gold { --bg: var(--gold); }
.btn-ghost { --bg: var(--paper); }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  background: var(--paper); border: var(--border); border-radius: 50%; cursor: pointer; font-size: 1.1rem; font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- Bars ---------- */
.preview-bar { background: var(--purple); color: #fff; font-size: 0.92rem; padding-block: 10px; }
.preview-inner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.preview-actions { display: inline-flex; gap: 12px; margin-left: auto; }
.preview-actions a, .preview-actions button { color: #fff; font-weight: 800; background: none; border: 2px solid #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; text-decoration: none; }

.announce { background: var(--ink); color: var(--gold); text-align: center; font-weight: 700; font-size: 0.92rem; padding-block: 8px; }
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-img { height: 54px; width: auto; transition: transform 0.25s cubic-bezier(.3,1.5,.5,1); }
.logo:hover .logo-img { transform: rotate(-4deg) scale(1.06); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--gold); border-color: var(--ink); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 8px 16px 8px 12px; min-height: 46px; font-weight: 800;
  background: var(--gold); border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.cart-count {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  background: var(--purple); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.cart-count.is-zero { background: var(--paper); color: var(--ink); }
.cart-count.bump { animation: bump 0.45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-10deg); } 100% { transform: scale(1); } }

/* ---------- Views ---------- */
.view { animation: view-in 0.35s ease both; }
@keyframes view-in { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--lavender);
  background-image:
    radial-gradient(rgba(12, 8, 18, 0.12) 1.6px, transparent 1.8px);
  background-size: 16px 16px;
  border-bottom: var(--border);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding-block: clamp(36px, 6vw, 80px);
}
.hero-logo {
  width: clamp(220px, 30vw, 360px); height: auto; margin: -10px 0 8px -12px;
  transform: rotate(-4deg); animation: logo-bob 4s ease-in-out infinite;
}
@keyframes logo-bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-1deg) translateY(-6px); } }
.tag-sticker {
  display: inline-block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em;
  background: var(--paper); border: var(--border); border-radius: 999px; padding: 6px 14px;
  transform: rotate(-2deg); box-shadow: var(--shadow-sm);
}
.hero-title { margin-top: 20px; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 0.92; text-transform: uppercase; }
.hero-title span { display: block; }
.ht-1 { color: var(--ink); }
.ht-2 { color: var(--purple); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); font-size: 0.72em; margin-block: 6px; }
.ht-3 {
  display: inline-block !important; background: var(--purple); color: var(--gold); padding: 0.06em 0.22em 0.12em;
  border: var(--border); border-radius: 16px; transform: rotate(-3deg); box-shadow: var(--shadow); margin-top: 6px;
  animation: aura 3.2s ease-in-out infinite;
}
@keyframes aura { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg) scale(1.04); } }
.hero-lead { margin-top: 24px; font-size: 1.2rem; max-width: 30em; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.sticker-pile { position: relative; height: clamp(320px, 38vw, 460px); }
.pile-sticker {
  position: absolute; width: 36%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: grab;
  transform: rotate(var(--r));
  animation: float 5s ease-in-out infinite; animation-delay: calc(var(--d) * -1);
  filter: drop-shadow(0 6px 0 rgba(12, 8, 18, 0.15));
}
.pile-sticker:hover { z-index: 5; }
.pile-sticker:hover img { transform: scale(1.08) rotate(4deg); }
.pile-sticker img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s; pointer-events: none; }
.pile-sticker.is-dragging { cursor: grabbing; z-index: 10; animation-play-state: paused; }
@media (pointer: fine) { .pile-sticker { touch-action: none; } }
@keyframes float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) * -0.5)) translateY(-12px); }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); border-bottom: var(--border); overflow: hidden; padding-block: 12px; }
.marquee-track { display: flex; width: max-content; gap: 22px; animation: marquee 32s linear infinite; font-family: var(--font-display); font-size: 1.2rem; white-space: nowrap; }
.marquee-track i { color: var(--gold); font-style: normal; }
.marquee-track span:nth-of-type(3n+1) { color: var(--gold); }
.marquee-track span:nth-of-type(3n+2) { color: var(--purple-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Lucky dip feature (home) ---------- */
.lucky-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: var(--purple); color: #fff; text-decoration: none;
  border: var(--border); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lucky-feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 85% 50%, rgba(255,255,255,0.14) 0 10deg, transparent 10deg 20deg);
}
.lucky-feature > * { position: relative; }
.lucky-feature:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.lucky-feature h2 { font-size: clamp(2.8rem, 8vw, 5rem); color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); text-transform: uppercase; margin: 6px 0 10px; }
.lucky-feature p { font-size: 1.2rem; font-weight: 600; max-width: 26em; }
.lucky-feature .btn { margin-top: 22px; pointer-events: none; }

/* Mystery box (pure CSS) */
.mystery { --s: 220px; width: var(--s); height: var(--s); position: relative; flex: none; animation: wobble 3s ease-in-out infinite; }
.mystery-sm { --s: 170px; }
.mystery-box {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 66%;
  background: var(--gold); border: var(--border); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; place-items: center;
  background-image: linear-gradient(90deg, transparent 43%, var(--purple) 43% 57%, transparent 57%);
}
.mystery-box span {
  font-family: var(--font-display); font-size: calc(var(--s) * 0.38); color: #fff; line-height: 1;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink);
}
.mystery-lid {
  position: absolute; left: 0; right: 0; top: 18%; height: 20%; z-index: 2;
  background: var(--gold); border: var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  background-image: linear-gradient(90deg, transparent 43%, var(--purple) 43% 57%, transparent 57%);
  transform-origin: 12% 100%; animation: lid 3s ease-in-out infinite;
}
.mystery-lid::before, .mystery-lid::after {
  content: ""; position: absolute; bottom: 100%; left: 50%; width: 30%; height: 70%;
  border: var(--border); border-bottom: 0; border-radius: 50% 50% 0 0; background: var(--purple);
}
.mystery-lid::before { transform: translateX(-95%) rotate(-24deg); transform-origin: right bottom; }
.mystery-lid::after { transform: translateX(-5%) rotate(24deg); transform-origin: left bottom; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(3deg); } }
@keyframes lid { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-10px) rotate(-8deg); } }
.mystery.is-shaking { animation: shake 0.6s cubic-bezier(.36,.07,.19,.97); }
.mystery.is-shaking .mystery-lid { animation: pop 0.6s ease; }
@keyframes shake { 10%, 90% { transform: translateX(-3px) rotate(-3deg); } 20%, 80% { transform: translateX(6px) rotate(5deg); } 30%, 50%, 70% { transform: translateX(-10px) rotate(-8deg); } 40%, 60% { transform: translateX(10px) rotate(8deg); } }
@keyframes pop { 50% { transform: translateY(-40px) rotate(-20deg); } }

/* ---------- Ways to buy ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.way {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  border: var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.way:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); }
.way-single { background: var(--gold); }
.way-bundle { background: var(--lavender); }
.way-xmas { background: var(--xmas-red); color: #fff; }
.way-price { font-family: var(--font-display); font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.way h3 { font-size: 1.3rem; }
.way p { font-weight: 500; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; margin-bottom: 22px; }
.section-head h2, .section-title { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }
.section-title { margin-bottom: 22px; }
.link-arrow { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-arrow::after { content: " →"; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.card-img {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 14px; margin: 0;
  background: var(--paper-2); border: 0; border-bottom: var(--border); cursor: pointer;
}
.card:nth-child(4n+2) .card-img { background: var(--gold-light); }
.card:nth-child(4n+3) .card-img { background: #efe5fd; }
.card:nth-child(4n+4) .card-img { background: #f6f4f8; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s cubic-bezier(.3,1.5,.5,1); }
.card:hover .card-img img { transform: rotate(-6deg) scale(1.07); }
.card.is-out .card-img img { filter: grayscale(1); opacity: 0.5; }
.badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.badge-new { background: var(--purple); color: #fff; transform: rotate(-4deg); }
.badge-low { background: var(--gold); color: var(--ink); }
.badge-out { background: var(--ink); color: var(--paper); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card-name { font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere; }
.card-price { font-family: var(--font-display); font-size: 1.15rem; }
.card-actions { margin-top: auto; padding-top: 8px; }
.mat {
  display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 1px 8px;
  font: 800 0.68rem/1.5 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px;
}
.mat-vinyl { background: var(--lavender); }
.mat-paper { background: var(--gold-light); }
.pm-material { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; }
.pm-material p { font-size: 0.95rem; }
.mat-box-vinyl { background: var(--paper-2); }
.mat-box-paper { background: var(--gold-light); }

.stepper {
  display: flex; align-items: center; justify-content: space-between; min-height: 40px;
  border: var(--border); border-radius: 999px; background: var(--gold); overflow: hidden; box-shadow: 2px 2px 0 var(--ink);
}
.stepper button { width: 44px; min-height: 40px; border: 0; background: none; font-size: 1.3rem; font-weight: 800; cursor: pointer; line-height: 1; }
.stepper button:hover:not(:disabled) { background: rgba(12, 8, 18, 0.1); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper-n { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }

/* ---------- Steps / about ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li:nth-child(2) { transform: rotate(1deg); }
.steps li:nth-child(3) { transform: rotate(-1deg); }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px;
  font-family: var(--font-display); font-size: 1.5rem; background: var(--purple); color: #fff; border: var(--border); border-radius: 50%;
}
.steps h3 { margin-bottom: 4px; }
.about {
  background: var(--lavender); border: var(--border); border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px); margin-bottom: 72px;
}
.about h2 { font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; margin-bottom: 12px; }
.about p { font-size: 1.15rem; max-width: 40em; font-weight: 500; }

/* ---------- Page heads ---------- */
.page-head { border-bottom: var(--border); padding-block: clamp(28px, 5vw, 52px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); text-transform: uppercase; }
.page-head p { margin-top: 8px; font-size: 1.1rem; font-weight: 600; }
.page-head-gold { background: var(--gold); }
.page-head-purple { background: var(--purple); color: #fff; }
.page-head-purple h1 { color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.page-head-xmas { background: var(--xmas-green); color: #fff; }
.page-head-xmas h1 { color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--xmas-red); }
.xmas-deal { display: inline-block; background: var(--xmas-red); border: var(--border); border-radius: 999px; padding: 6px 16px; transform: rotate(-2deg); }
.snow {
  position: absolute; inset: -40px 0 0; pointer-events: none; opacity: 0.8;
  background-image: radial-gradient(#fff 2px, transparent 2.5px), radial-gradient(#fff 1.4px, transparent 2px);
  background-size: 60px 60px, 34px 34px; background-position: 0 0, 17px 11px;
  animation: snow 8s linear infinite;
}
@keyframes snow { to { background-position: 0 60px, 17px 79px; } }

/* ---------- Toolbar / chips ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block: 24px 14px; }
.search { flex: 1 1 260px; position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; }
.search input, .select select {
  width: 100%; min-height: 48px; font: 600 1rem var(--font-body); color: var(--ink);
  background: var(--paper); border: var(--border); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
}
.search input { padding: 10px 16px 10px 44px; }
.select select { padding: 10px 16px; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; min-height: 48px; }
.check input { width: 20px; height: 20px; accent-color: var(--purple); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin-inline: -4px; scrollbar-width: thin; }
.chip {
  flex: none; min-height: 40px; padding: 6px 16px; font-weight: 700; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
}
.chip:hover { background: var(--paper-2); }
.chip.is-on { background: var(--ink); color: var(--gold); }
.result-count { font-weight: 600; color: var(--ink-soft); min-height: 1.5em; margin-bottom: 8px; }
.empty { text-align: center; padding: 40px 16px; display: grid; gap: 16px; justify-items: center; font-weight: 600; }
#shop-grid, #xmas-grid { margin-bottom: 72px; }

/* ---------- Lucky dip page ---------- */
.lucky-page {
  background: var(--purple); color: #fff; border-bottom: var(--border); overflow: hidden;
  background-image: repeating-conic-gradient(from 0deg at 25% 55%, rgba(255,255,255,0.13) 0 9deg, transparent 9deg 18deg);
}
.lucky-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.lucky-page .mystery { --s: clamp(200px, 28vw, 300px); }
.lucky-page h1 { font-size: clamp(3rem, 9vw, 6rem); color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); text-transform: uppercase; margin-top: 6px; }
.lucky-price { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin-top: 6px; }
.lucky-price span { display: inline-block; background: var(--paper); color: var(--ink); border: var(--border); border-radius: 18px; padding: 4px 18px 8px; transform: rotate(-3deg); box-shadow: var(--shadow); }
.lucky-lead { font-size: 1.2rem; font-weight: 500; max-width: 30em; margin-top: 20px; }
.lucky-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.lucky-in-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 700; }
.lucky-in-cart .stepper { width: 150px; color: var(--ink); }
.lucky-stock { margin-top: 14px; font-weight: 800; color: var(--gold); }
.peek { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; filter: blur(5px) saturate(1.2); margin-bottom: 72px; }
.peek img { width: clamp(70px, 12vw, 120px); transform: rotate(var(--r)); }

/* ---------- Bundles ---------- */
.mini-title { font-family: var(--font-body); font-weight: 800; font-size: 1.3rem; margin-top: 32px; }
.bundle-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.bundle-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
  padding: 16px; background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer;
  position: relative; transition: transform 0.12s;
}
.bundle-opt:hover { transform: translate(-2px, -2px); }
.bundle-opt.is-on { background: var(--gold); box-shadow: var(--shadow); }
.bo-size { grid-row: 1 / 3; display: grid; place-items: center; width: 58px; height: 58px; font-family: var(--font-display); font-size: 1.6rem; background: var(--purple); color: #fff; border: var(--border); border-radius: 14px; }
.bo-name { font-weight: 800; font-size: 1.1rem; }
.bo-price { font-family: var(--font-display); font-size: 1.3rem; }
.bo-save { position: absolute; top: -12px; right: 12px; background: var(--purple); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; transform: rotate(4deg); }
.grid-pick { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 160px; }
.card-pick .card-img { cursor: default; }
.card-pick.is-picked { outline: 4px solid var(--gold); outline-offset: -1px; }
.pick-count { position: absolute; top: 8px; right: 8px; background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 800; }
.bundle-tray {
  position: sticky; bottom: var(--tabbar-h); z-index: 40;
  background: var(--paper); border-top: var(--border); box-shadow: 0 -6px 0 rgba(12, 8, 18, 0.08);
  padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
}
.tray-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.tray-info { display: grid; line-height: 1.25; }
.tray-info span { color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.slots { display: flex; gap: 6px; flex: 1 1 200px; overflow-x: auto; padding: 4px 2px; min-width: 0; }
.slot { flex: none; width: 46px; height: 46px; border: 2px dashed #a49cb8; border-radius: 12px; background: var(--paper-2); position: relative; padding: 0; }
.slot.is-filled { border: 2px solid var(--ink); background: var(--gold-light); cursor: pointer; }
.slot img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.slot-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 0.6rem; background: var(--ink); color: #fff; border-radius: 50%; opacity: 0; transition: opacity 0.15s; }
.slot.is-filled:hover .slot-x, .slot.is-filled:focus-visible .slot-x { opacity: 1; }
.tray-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Christmas ---------- */
.xmas-progress {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-block: 24px; padding: 14px 18px; font-weight: 600;
  background: #fff1f3; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.xp-pairs { display: inline-flex; gap: 4px; }
.xp-pairs i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.xp-pairs i.on { background: var(--xmas-red); }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(12, 8, 18, 0.55); }
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); max-width: 100%;
  padding: 0; border: 0; border-left: var(--border); background: var(--paper);
}
.drawer[open] { animation: slide-in 0.28s cubic-bezier(.2,.9,.3,1); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; padding-top: env(safe-area-inset-top, 0px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: var(--border); background: var(--gold); }
.drawer-head h2 { font-size: 1.7rem; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: var(--border); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; background: var(--paper-2); }
.drawer-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-block: 14px; border-bottom: 2px dashed #d9d3e6; }
.line-thumb { width: 64px; height: 64px; object-fit: contain; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px; padding: 4px; }
.mystery-thumb, .bundle-thumb { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; }
.mystery-thumb { background: var(--purple); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.bundle-thumb { background: var(--purple); color: #fff; }
.line-main { display: grid; gap: 4px; min-width: 0; }
.line-main .stepper { width: 128px; margin-top: 4px; }
.line-name { font-weight: 800; overflow-wrap: anywhere; }
.line-main .link-btn { justify-self: start; }
#home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body[data-view="bundles"] .toast { bottom: calc(100px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { #home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body[data-view="bundles"] .toast { bottom: calc(190px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .lucky-feature .eyebrow { padding-right: 90px; }
}
.line-sub { font-size: 0.88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.line-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.line-group { margin-top: 16px; background: #fff1f3; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 4px 14px 12px; }
.line-group .line:last-of-type { border-bottom: 0; }
.group-title { font-weight: 800; color: var(--xmas-red); padding-top: 10px; }
.group-total { display: flex; justify-content: space-between; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 10px; }
.nudge { margin-top: 10px; font-weight: 700; background: var(--gold); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; font-weight: 800; }
.total-row strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.foot-note { text-align: center; font-size: 0.88rem; color: var(--ink-soft); }
.problem { background: #ffe4e0; border: 2px solid var(--warn); color: #7c2d12; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.cart-empty { text-align: center; padding: 48px 8px; display: grid; gap: 8px; }
.cart-empty-title { font-family: var(--font-display); font-size: 1.6rem; }
.cart-empty-actions { display: grid; gap: 10px; margin-top: 16px; }

.modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: var(--border); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); background: var(--paper);
}
.modal[open] { animation: pop-in 0.25s cubic-bezier(.3,1.4,.5,1); }
@keyframes pop-in { from { transform: scale(0.9) rotate(-2deg); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pm-img { background: var(--paper-2); padding: 28px; border-right: var(--border); display: grid; place-items: center; }
.pm-img img { width: 100%; aspect-ratio: 1; object-fit: contain; animation: wiggle 4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.03); } }
.pm-info { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pm-info h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); padding-right: 40px; overflow-wrap: anywhere; }
.pm-price { font-family: var(--font-display); font-size: 2rem; }
.pm-note { font-weight: 600; background: #fff1f3; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; }
.pm-stock { font-weight: 700; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--ink-soft); }
.pm-actions { margin-top: auto; }
.pm-actions .btn { min-height: 52px; font-size: 1.05rem; }

/* ---------- Checkout ---------- */
.checkout-title { font-size: clamp(2.4rem, 7vw, 4rem); text-transform: uppercase; margin-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px; align-items: start; }
.checkout-form, .checkout-summary { background: var(--paper); border: var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); }
.checkout-form { display: grid; gap: 16px; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper-2); display: grid; gap: 14px; }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-head h2 { font-size: 1.5rem; text-transform: uppercase; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; border-bottom: 2px dashed #d9d3e6; padding-bottom: 8px; }
.sum-list li span:last-child { font-variant-numeric: tabular-nums; flex: none; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 800; }
.opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--ink); padding: 12px 14px; min-height: 48px;
  background: var(--paper); border: var(--border); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--purple); }
.field.has-err input { border-color: #d6223b; background: #fff5f6; }
.field-err { color: #b0182c; font-weight: 600; font-size: 0.9rem; }
.field-err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-info { background: var(--gold); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; }
.form-status { font-weight: 700; text-align: center; min-height: 1.4em; }
.form-status.is-err { color: #b0182c; }

.done { max-width: 640px; margin-inline: auto; text-align: center; display: grid; gap: 14px; justify-items: center; background: var(--paper); border: var(--border); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(24px, 5vw, 48px); }
.done-badge { font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 3.4rem); text-transform: uppercase; background: var(--gold); border: var(--border); border-radius: 18px; padding: 8px 22px; transform: rotate(-3deg); box-shadow: var(--shadow); }
.done-id { font-size: 1.2rem; margin-top: 10px; }
.done-id strong { font-family: var(--font-display); font-weight: 400; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; }
.test-note { background: var(--paper-2); border: 2px solid var(--purple); border-radius: 12px; padding: 10px 14px; text-align: left; }

.load-error { padding-block: 80px; text-align: center; display: grid; gap: 12px; }

/* ---------- Toast & confetti ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  padding: 10px 12px 10px 18px; font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 999px; box-shadow: 4px 4px 0 var(--purple);
  transform: translate(-50%, 160%); transition: transform 0.3s cubic-bezier(.3,1.4,.5,1);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast:empty { display: none; }
.toast button { background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.confetti { position: fixed; z-index: 90; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8d2ea; border-top: var(--border); padding-block: 36px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner p { margin-top: 4px; }
.footer-logo { width: 170px; height: auto; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-admin { opacity: 0.6; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .cart-btn { margin-left: auto; }
  body { --tabbar-h: 68px; }
  .tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--paper); border-top: var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  }
  .tabbar a {
    flex: 1 1 0; display: grid; justify-items: center; align-content: center; gap: 2px; height: 66px;
    text-decoration: none; font-size: 0.72rem; font-weight: 800;
  }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { background: var(--gold); }
  .tabbar .tab-lucky { color: var(--purple); }
  .tabbar .tab-lucky[aria-current="page"] { background: var(--purple); color: #fff; }
  .hero-inner { grid-template-columns: 1fr; }
  .sticker-pile { height: 300px; max-width: 520px; width: 100%; margin-inline: auto; }
  .ways, .steps { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo-img { height: 44px; }
  .hero-logo { width: 200px; }
  .cart-label { display: none; }
  .cart-btn { padding: 6px 10px; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .ht-2 { -webkit-text-stroke-width: 2px; text-shadow: 3px 3px 0 var(--ink); }
  .hero-actions .btn { flex: 1 1 100%; }
  .sticker-pile { height: 250px; }
  .lucky-feature { grid-template-columns: 1fr; }
  .lucky-feature .mystery { position: absolute; right: -14px; top: 10px; --s: 120px; opacity: 0.95; }
  .lucky-feature h2 { padding-right: 90px; }
  .lucky-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lucky-actions, .lucky-in-cart { justify-content: center; }
  .lucky-lead { margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { box-shadow: 3px 3px 0 var(--ink); border-radius: 14px; }
  .card-img { padding: 8px; }
  .card-body { padding: 10px; }
  .card-name { font-size: 0.95rem; }
  .card .btn-sm { padding: 8px 6px; font-size: 0.85rem; }
  .stepper button { width: 38px; }
  .modal-inner { grid-template-columns: 1fr; }
  .pm-img { border-right: 0; border-bottom: var(--border); padding: 20px 60px; }
  .pm-info { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .tray-inner { gap: 8px 12px; }
  .tray-actions { margin-left: 0; width: 100%; }
  .tray-actions .btn[data-bundle-add] { flex: 1; }
  .slots { order: 3; flex-basis: 100%; }
  .slot { width: 40px; height: 40px; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .select { flex: 1 1 0; min-width: 0; }
  .toolbar .check { flex-basis: 100%; min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
