/* =============================================================================
   Eli's Prints — styles.css
   Mobile-first. No framework, no build step.
   Breakpoints:  base = phone   ·   >=641px = tablet   ·   >=1025px = desktop
   ========================================================================== */

/* ---- 1. TOKENS ---------------------------------------------------------- */

:root {
  /* surfaces + text */
  --cream:      #FFF8EE;
  --ink:        #2D2A4A;
  --ink-soft:   #4A4668;
  --ink-mute:   #6B6685;
  --white:      #ffffff;

  /* brand */
  --red:        #E63946;   /* THE brand red. Not pink. */
  --orange:     #FF9F1C;
  --yellow:     #FFD23F;
  --teal:       #35D0A5;
  --sky:        #4CC9F0;
  --purple:     #9B5DE5;

  /* pastel tints (product card backgrounds) */
  --tint-red:    #FDE5E7;
  --tint-yellow: #FFF3D6;
  --tint-teal:   #E2F8F0;
  --tint-sky:    #E4F6FD;
  --tint-purple: #F1E6FC;

  /* form */
  --border:  3px solid var(--ink);
  --radius:  24px;
  --radius-sm: 14px;
  --pill:    999px;

  --scrim:   rgba(45, 42, 74, 0.45);

  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ---- 2. BASE ------------------------------------------------------------ */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
  line-height: 1.08;
  text-wrap: pretty;
}

p { margin: 0; }

a { color: var(--red); }
a:hover { color: var(--purple); }

img { max-width: 100%; display: block; }

button { font-family: var(--font-body); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 641px)  { .wrap { padding-left: 32px; padding-right: 32px; } }

.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;
}

/* ---- 3. BUTTONS --------------------------------------------------------- */
/* Pill, 3px ink border, hard offset shadow, presses down 2px. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: var(--border);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, background .15s ease;
}

.btn--red    { background: var(--red);    color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn--purple { background: var(--purple); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost  { background: var(--cream);  color: var(--ink); }

/* :not([disabled]) so a locked button (e.g. checkout mid-session) keeps its own
   colour instead of lighting up orange under the cursor. */
.btn--red:not([disabled]):hover,    .btn--red:not([disabled]):focus-visible    { background: var(--orange); color: #fff; }
.btn--purple:not([disabled]):hover, .btn--purple:not([disabled]):focus-visible { background: var(--red);    color: #fff; }
.btn--ghost:not([disabled]):hover,  .btn--ghost:not([disabled]):focus-visible  { background: var(--yellow); color: var(--ink); }

.btn--red:not([disabled]):active,
.btn--purple:not([disabled]):active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--ghost:not([disabled]):active { transform: translate(2px, 2px); }

.btn--block { width: 100%; }
.btn--tall  { min-height: 56px; font-size: 18px; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- 4. ANNOUNCEMENT BAR ------------------------------------------------ */

.announce {
  background: var(--ink);
  color: var(--yellow);
  text-align: center;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .02em;
  line-height: 1.45;
}
@media (min-width: 641px) { .announce { font-size: 14px; letter-spacing: .03em; padding: 9px 16px; } }

/* ---- 5. NAV ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 1025px) { .nav { padding: 14px 32px; gap: 24px; } }

.logo {
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
@media (min-width: 1025px) { .logo { font-size: 26px; } }

/* The real logotype. Kept as an <img> with intrinsic width/height attributes so
   the nav doesn't reflow while it loads. The footer keeps the text logotype —
   this artwork has a navy wordmark that would vanish against the navy footer. */
.logo img {
  display: block;
  height: 42px;
  width: auto;
}
@media (min-width: 641px)  { .logo img { height: 50px; } }
@media (min-width: 1025px) { .logo img { height: 60px; } }

/* same mark inside the mobile nav sheet header */
.logo-img { display: block; height: 42px; width: auto; }

/* the multicolour logotype — used in the nav, the footer, and the nav sheet */
.l1 { color: var(--red); }
.l2 { color: var(--orange); }
.l3 { color: var(--teal); }
.l4 { color: var(--sky); }

/* desktop link row — hidden on phone + tablet */
.nav-links { display: none; }
@media (min-width: 1025px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
  }
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  padding: 7px 18px;
  border-radius: var(--pill);
  border: 2px solid transparent;
}
.nav-link:hover { background: var(--tint-red); color: var(--ink); }
.nav-link.is-active {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

/* cart button — pill w/ label on desktop, round badge on phone */
.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
}
.cart-btn:hover { background: #3b3760; }
.cart-btn .cart-btn__label { display: none; }
@media (min-width: 1025px) { .cart-btn .cart-btn__label { display: inline; } }

.cart-count.is-bouncing { animation: badgepop .5s ease; }

@keyframes badgepop {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.35); }
}

/* hamburger — phone + tablet only */
.hamburger {
  width: 44px; height: 44px;
  display: grid; place-items: center; gap: 0;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.hamburger:active { transform: translate(1px, 1px); }
.hamburger span {
  display: block;
  width: 18px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  margin: 2px 0;
}
@media (min-width: 1025px) { .hamburger { display: none; } }

/* ---- 6. MOBILE NAV SHEET ------------------------------------------------ */

.navsheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  visibility: hidden;
}
.navsheet.is-open { transform: translateY(0); visibility: visible; }

.navsheet__top {
  padding: 10px 20px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
}
.navsheet__body {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.navsheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: var(--border);
  border-radius: var(--pill);
  padding: 0 24px;
  height: 64px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
}
.navsheet__link:active { transform: translate(2px, 2px); }
.navsheet__link.is-active {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}
.navsheet__link .arrow {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  color: #9B8FA8;
}
.navsheet__cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  border: var(--border);
  border-radius: var(--pill);
  padding: 0 24px;
  height: 64px;
  cursor: pointer;
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 23px;
  width: 100%;
}
.navsheet__cart .pill {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 15px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--pill);
  padding: 4px 14px;
}
.navsheet__foot {
  padding: 18px 20px 28px;
  border-top: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.navsheet__mail { font-weight: 800; font-size: 12px; color: var(--ink-mute); }

.closebtn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: var(--border);
  background: var(--white);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.closebtn:hover { background: var(--yellow); }
.closebtn:active { transform: translate(1px, 1px); }

/* ---- 7. SOUND CHIP ------------------------------------------------------ */

.soundchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: var(--border);
  border-radius: var(--pill);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  background: var(--ink);
  color: var(--yellow);
}
.soundchip[data-sound="off"] {
  background: var(--cream);
  color: var(--ink-mute);
}
.soundchip:active { transform: translate(1px, 1px); }

/* in the navy footer the on-state flips to yellow so it reads against navy */
.footer .soundchip            { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.footer .soundchip[data-sound="off"] { background: var(--ink); color: #B9B3D0; border-color: var(--ink-mute); }

/* ---- 8. IMAGE PLACEHOLDER SLOTS ----------------------------------------- */
/* A slot is a pastel panel with a dashed outline and its own name printed in it.
   Dropping in a real photo is ONE line in the PRODUCT PHOTOS block at the bottom
   of this file — no HTML or JS changes. */

.slotbox {
  position: relative;
  overflow: hidden;
  background: var(--slot-bg, var(--tint-red));
}

.slot {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slot::before {
  content: '';
  display: var(--ph, block);
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(45, 42, 74, .32);
  border-radius: 16px;
}
.slot::after {
  content: attr(data-slot);
  display: var(--ph, grid);
  place-items: center;
  position: absolute;
  inset: 0;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(45, 42, 74, .5);
}

/* ---- 9. PRODUCT CARDS --------------------------------------------------- */

.card {
  position: relative;
  background: var(--white);
  border: var(--border);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 var(--card-shadow, var(--red));
}
.card__media {
  position: relative;
  aspect-ratio: 1;
  border-bottom: var(--border);
}
.card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
}
.card__price {
  font-weight: 900;
  font-size: 18px;
  color: var(--red);
  white-space: nowrap;
}
.card__desc {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}
/* Pin the add button to the bottom of the card so a two-line product name
   (e.g. "Rainbow Fidget Clicker") doesn't push its button out of line with
   its neighbours on the homepage, where there is no description to absorb it. */
.card__body > .btn { margin-top: auto; }
.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--card-shadow, var(--red));
  color: #fff;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 2px solid var(--ink);
  pointer-events: none;
}

/* the whole card is a link on the homepage */
a.card { text-decoration: none; color: var(--ink); }
a.card:hover {
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--card-shadow, var(--red));
}

/* grids */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 641px)  { .grid { gap: 20px; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) {
  .grid--shop     { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid--featured { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .grid--3        { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 10. HERO + SECTIONS ------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 1025px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 56px;
  }
}
.hero__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (min-width: 1025px) { .hero__copy { gap: 24px; } }

.hero h1 { font-size: clamp(34px, 7vw, 64px); line-height: 1.04; }
.hero__lede {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  max-width: 46ch;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  background: var(--purple);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}

.hero__art { position: relative; }
.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: var(--border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--yellow);
  --slot-bg: var(--tint-red);
}
.hero__flag {
  position: absolute;
  top: -14px;
  right: -6px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: var(--border);
  animation: floaty 4s ease-in-out infinite;
}
@media (min-width: 641px) { .hero__flag { font-size: 16px; padding: 10px 18px; top: -18px; right: -14px; } }

@keyframes floaty {
  0%, 100% { transform: translateY(0)     rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__flag { animation: none; }
  * { scroll-behavior: auto !important; }
}

.section { padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 1025px) { .section { padding-top: 24px; padding-bottom: 64px; } }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(26px, 4.5vw, 38px); }
.seeall { font-weight: 900; font-size: 15px; color: var(--red); text-decoration: none; }
.seeall:hover { color: var(--purple); }

.band {
  border-top: var(--border);
  border-bottom: var(--border);
}
.band--sky    { background: var(--sky); }
.band--yellow { background: var(--yellow); }
.band__inner { padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 1025px) { .band__inner { padding-top: 56px; padding-bottom: 56px; } }
.band h2 { font-size: clamp(26px, 4.5vw, 38px); margin-bottom: 26px; }

.tile {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  border: var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}
.tile h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.tile p  { font-weight: 600; line-height: 1.55; color: var(--ink-soft); font-size: 15px; }
.tile__title { font-family: var(--font-head); font-weight: 700; font-size: 21px; }

.cta-block {
  padding-top: 48px;
  padding-bottom: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.cta-block h2 { font-size: clamp(26px, 4.6vw, 40px); }
.cta-block p  { font-size: 17px; font-weight: 600; color: var(--ink-soft); max-width: 52ch; }

/* ---- 11. FOOTER --------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 26px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 1025px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 32px;
    gap: 24px;
  }
}
.footer__logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.footer__links { display: flex; gap: 20px; font-weight: 800; font-size: 14px; flex-wrap: wrap; }
.footer__links a { color: var(--yellow); text-decoration: none; }
.footer__links a:hover { color: var(--red); }
.footer__sound { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__caption { font-weight: 700; font-size: 12.5px; color: #B9B3D0; font-style: italic; }
.footer__note { font-weight: 600; font-size: 12.5px; opacity: .7; }

/* ---- 12. SCRIM (shared by modal + drawer) ------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---- 13. PRODUCT PEEK MODAL --------------------------------------------- */

.peek {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 85;
  background: var(--cream);
  border-top: var(--border);
  border-radius: 28px 28px 0 0;
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 13px;
  transform: translateY(101%);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  max-height: 94vh;
  overflow-y: auto;
  visibility: hidden;
}
.peek.is-open { transform: translateY(0); visibility: visible; }
.peek.is-dragging { transition: none; }

@media (min-width: 641px) {
  .peek {
    left: 50%;
    right: auto;
    bottom: 0;
    width: 430px;
    transform: translate(-50%, 101%);
    border: var(--border);
    border-bottom: none;
    padding-left: 22px;
    padding-right: 22px;
  }
  .peek.is-open { transform: translate(-50%, 0); }
}

.grabber {
  width: 48px; height: 5px;
  border-radius: var(--pill);
  background: var(--ink);
  opacity: .25;
  margin: 0 auto;
  flex-shrink: 0;
}

.peek__photo {
  position: relative;
  height: 200px;
  border: var(--border);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-height: 760px) { .peek__photo { height: 210px; } }

.peek__dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.peek__dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, background .15s ease;
}
/* the tap target is bigger than the dot itself, for thumbs */
.peek__dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.peek__dot.is-active { transform: scale(1.25); }

.peek__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.peek__title h2 { font-family: var(--font-head); font-weight: 700; font-size: 23px; }
.peek__price { font-weight: 900; font-size: 20px; color: var(--red); white-space: nowrap; }
.peek__desc { font-weight: 700; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* ---- 14. FILAMENT SWATCHES ---------------------------------------------- */

.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (min-width: 400px) { .swatches { gap: 12px; justify-content: flex-start; } }

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: 56px;
  font-family: var(--font-body);
}
.swatch__dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(45, 42, 74, .35);
  transition: box-shadow .12s ease, border-color .12s ease;
}
.swatch__name {
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
  max-width: 62px;
  text-align: center;
  line-height: 1.2;
}
.swatch.is-selected .swatch__dot {
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.swatch.is-selected .swatch__name { font-weight: 900; }

/* ---- 15. QUANTITY STEPPER ----------------------------------------------- */

.qtyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.qtyrow__label { font-weight: 900; font-size: 15px; }

.stepper {
  display: flex;
  align-items: center;
  border: var(--border);
  border-radius: var(--pill);
  background: var(--white);
  overflow: hidden;
}
.stepper button {
  width: 46px;
  height: 44px;
  border: none;
  background: var(--yellow);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.stepper button:active { background: var(--orange); }
.stepper button[disabled] { opacity: .45; cursor: not-allowed; }
.stepper__val {
  width: 48px;
  text-align: center;
  font-weight: 900;
  font-size: 17px;
}

/* compact stepper inside cart lines */
.stepper--sm button { width: 36px; height: 34px; font-size: 16px; }
.stepper--sm .stepper__val { width: 34px; font-size: 14px; }

/* ---- 16. CART DRAWER ---------------------------------------------------- */

.drawer {
  position: fixed;
  z-index: 85;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  visibility: hidden;

  /* phone: full-height sheet from the bottom */
  left: 0; right: 0; bottom: 0;
  top: 0;
  transform: translateY(100%);
  border-top: var(--border);
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer.is-dragging { transition: none; }

@media (min-width: 641px) {
  /* tablet + desktop: 420px drawer from the right */
  .drawer {
    left: auto;
    width: 420px;
    max-width: 100vw;
    border-top: none;
    border-left: var(--border);
    transform: translateX(101%);
  }
  .drawer.is-open { transform: translateX(0); }
}

.drawer__head {
  padding: 12px 20px 14px;
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.drawer__headrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.drawer__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer__title .count {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 15px;
  border-radius: var(--pill);
  padding: 3px 12px;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer__foot {
  border-top: var(--border);
  background: var(--white);
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.drawer.is-busy .drawer__body,
.drawer.is-busy .drawer__head { opacity: .45; pointer-events: none; }

.subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}

/* cart line item */
.line {
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.line__thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  border: var(--border);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.line__main { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.line__top { display: flex; justify-content: space-between; gap: 8px; }
.line__name { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.line__total { font-weight: 900; font-size: 15px; color: var(--red); white-space: nowrap; }
.line__color {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-soft);
}
.line__chip {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: inline-block;
  flex-shrink: 0;
}
.line__ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line__remove {
  border: none;
  background: none;
  font-weight: 900;
  font-size: 13px;
  color: var(--ink-mute);
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
  min-height: 44px;
  font-family: var(--font-body);
}
.line__remove:hover { color: var(--red); }

/* free-shipping progress */
.ship {
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ship__msg { font-weight: 900; font-size: 14px; }
.ship__track {
  height: 16px;
  border: var(--border);
  border-radius: var(--pill);
  background: var(--yellow);
  overflow: hidden;
}
.ship__fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--pill);
  width: 0;
  transition: width .4s ease;
}

/* trust row */
.trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 11.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.trust__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--ink);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.trust > span { display: flex; align-items: center; gap: 5px; }
.cardmark {
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 900;
  background: var(--cream);
}

/* empty state */
.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}
.empty__badge {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--tint-red);
  border: var(--border);
  display: grid;
  place-items: center;
}
.empty h3 { font-family: var(--font-head); font-weight: 700; font-size: 23px; }
.empty p  { font-weight: 700; color: var(--ink-soft); font-size: 15px; }

/* note under a not-yet-wired button */
.phase-note {
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-mute);
}

/* checkout button spinner, while the Stripe session is being created */
.spinner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---- 17. TOAST ---------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 95;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 900;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 3px solid var(--yellow);
  box-shadow: 0 8px 24px rgba(45, 42, 74, .35);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* failure variant: navy body, RED border — never solid brand red */
.toast--error { border-color: var(--red); color: #fff; }

/* ---- 18. FORMS ---------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;           /* 16px stops iOS zoom-on-focus */
  padding: 12px 14px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* honeypot — off-screen for humans, irresistible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.namerow { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 481px) { .namerow { grid-template-columns: 1fr 1fr; } }

.panel {
  background: var(--white);
  border: var(--border);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 6px 6px 0 var(--panel-shadow, var(--red));
}
@media (min-width: 641px) { .panel { padding: 32px; gap: 18px; } }

.notecard {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 5px 5px 0 var(--sky);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 48px;
}
@media (min-width: 1025px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
  .split--about { grid-template-columns: 1fr 1.2fr; align-items: center; }
}
.split h1 { font-size: clamp(32px, 6vw, 52px); }
.split .lede { font-size: clamp(16px, 2.2vw, 18px); font-weight: 600; line-height: 1.65; color: var(--ink-soft); }

/* ---- 19. STANDALONE PAGES (404 / thanks / cart-returned) ---------------- */

.stage {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 20px 56px;
  text-align: center;
}
.stage h1 { font-size: clamp(28px, 6vw, 36px); }
.stage p  { font-weight: 700; font-size: 16px; color: var(--ink-soft); max-width: 32ch; }
.stage__actions {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.flag {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--pill);
  padding: 8px 18px;
  font-weight: 900;
  font-size: 13px;
  transform: rotate(-2deg);
}

.summary {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}
.summary__row { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.summary__row .muted { color: var(--ink-mute); font-weight: 700; }
.summary__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  border-top: var(--border);
  padding-top: 9px;
}

.steps { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.steps__row { display: flex; gap: 12px; align-items: center; }
.steps__num {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  border: var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.steps__row div:last-child { font-weight: 800; font-size: 14.5px; }

/* ---- 20. PRODUCT PHOTOS ------------------------------------------------- */
/*
   HOW TO ADD A REAL PHOTO — one line each, nothing else changes:

     1. Drop the file in  public/img/  named after the slot, e.g.
        public/img/p-crystal-dragon.jpg
     2. Uncomment / add its line below.

   Setting --ph:none hides the dashed outline and the slot-name label for that
   slot only. Slots without a photo keep showing their placeholder.

   .slot[data-slot="hero"]              { background-image:url("/img/hero.jpg");              --ph:none; }
   .slot[data-slot="p-crystal-dragon"]  { background-image:url("/img/p-crystal-dragon.jpg");  --ph:none; }
   .slot[data-slot="p-baby-dragon"]     { background-image:url("/img/p-baby-dragon.jpg");     --ph:none; }
   .slot[data-slot="p-fidget-clicker"]  { background-image:url("/img/p-fidget-clicker.jpg");  --ph:none; }
   .slot[data-slot="p-spiral-cone"]     { background-image:url("/img/p-spiral-cone.jpg");     --ph:none; }
   .slot[data-slot="p-axolotl"]         { background-image:url("/img/p-axolotl.jpg");         --ph:none; }
   .slot[data-slot="p-infinity-cube"]   { background-image:url("/img/p-infinity-cube.jpg");   --ph:none; }
   .slot[data-slot="p-spinner-top"]     { background-image:url("/img/p-spinner-top.jpg");     --ph:none; }
   .slot[data-slot="p-octo-buddy"]      { background-image:url("/img/p-octo-buddy.jpg");      --ph:none; }
   .slot[data-slot="p-flexi-shark"]     { background-image:url("/img/p-flexi-shark.jpg");     --ph:none; }
   .slot[data-slot="p-dino-egg"]        { background-image:url("/img/p-dino-egg.jpg");        --ph:none; }
   .slot[data-slot="about-eli"]         { background-image:url("/img/about-eli.jpg");         --ph:none; }
*/
