/* ==========================================================
   SWEET TREATS BY KJ — 3D scroll build
   cream + cocoa, one soft-blue accent, condensed display type
   ========================================================== */
:root {
  --cream: #f6efe2;
  --flour: #fdf9f1;
  --cocoa: #2e2015;
  --cocoa-soft: #4a3624;
  --tan: #c89b6b;
  --blue: #7fb6d9;          /* the one accent — from the logo */
  --blue-deep: #5d9cc4;
  --shadow: 0 18px 50px rgba(46, 32, 21, .18);
  --font-display: 'Anton', sans-serif;
  --font-body: 'Sora', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ SCROLL PROGRESS ============ */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: var(--blue); z-index: 300;
}

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--cocoa);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--cocoa); object-fit: cover;
  background: var(--flour);
}
.brand-name { font-family: var(--font-display); font-size: 18px; letter-spacing: .06em; }
.brand-name em { font-style: normal; color: var(--blue-deep); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--cocoa); text-decoration: none; font-weight: 600;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--blue-deep); }
.cart-btn {
  position: relative; background: var(--cocoa); color: var(--flour);
  border: none; border-radius: 50%; width: 46px; height: 46px;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .15s ease;
}
.cart-btn:hover { transform: scale(1.08); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--blue); color: var(--cocoa);
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; border: 2px solid var(--cream);
}

/* ============ HERO ============ */
.hero { height: 180vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--cocoa);
  perspective: 900px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,214,150,.16) 0 2.5%, transparent 3.5%),
    radial-gradient(circle at 78% 16%, rgba(255,214,150,.2) 0 2%, transparent 3%),
    radial-gradient(circle at 64% 74%, rgba(255,214,150,.12) 0 3%, transparent 4%),
    radial-gradient(circle at 30% 82%, rgba(255,214,150,.14) 0 2%, transparent 3%),
    radial-gradient(circle at 90% 60%, rgba(255,214,150,.1) 0 2.5%, transparent 3.5%),
    radial-gradient(ellipse 120% 90% at 50% 30%, #4a3624 0%, var(--cocoa) 62%, #201509 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,32,21,.4) 0%, rgba(46,32,21,0) 38%, rgba(46,32,21,.55) 100%);
  pointer-events: none;
}

/* floating 3D cookie coins */
.float-stage {
  position: absolute; inset: 0; z-index: 2;
  transform-style: preserve-3d; pointer-events: none;
}
.coin {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(253,249,241,.92);
  box-shadow: 0 28px 56px rgba(0,0,0,.5), 0 0 0 8px rgba(127,182,217,.14);
  transform: rotate(var(--r));
  will-change: transform;
  animation: bobble 5s ease-in-out infinite;
}
/* little logo-style hearts drifting in the hero */
.float-stage::before, .float-stage::after {
  content: '♥'; position: absolute; color: var(--blue); opacity: .5;
  font-size: 30px; animation: bobble 6s ease-in-out infinite;
  text-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.float-stage::before { left: 24%; top: 22%; transform: rotate(-14deg); }
.float-stage::after  { left: 70%; top: 76%; font-size: 22px; transform: rotate(12deg); animation-delay: -3s; }
.coin:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
.coin:nth-child(3n) { animation-duration: 7.5s; animation-delay: -4s; }
@keyframes bobble {
  50% { margin-top: -14px; }
}

.hero-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 20px; color: var(--flour);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.hero-logo {
  width: 128px; height: 128px; border-radius: 50%;
  border: 4px solid var(--flour);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 10px rgba(127,182,217,.18);
  margin-bottom: 22px;
  animation: bobble 6s ease-in-out infinite;
}
.hero-kicker {
  font-size: 13px; letter-spacing: .38em; font-weight: 600;
  color: var(--tan); margin-top: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9.5vw, 130px);
  line-height: .95; letter-spacing: .01em;
  text-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.hero-title .accent-script {
  display: block;
  font-family: 'Pacifico', cursive;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.4;
  color: var(--blue);
  text-transform: none; letter-spacing: 0;
}
/* scalloped edge, like the logo badge border */
.hero-scallop {
  position: absolute; bottom: 0; left: 0; right: 0; height: 22px; z-index: 4;
  background: radial-gradient(circle at 20px -8px, transparent 20px, var(--blue) 21px);
  background-size: 40px 22px; background-position: center bottom; background-repeat: repeat-x;
}
.hero-sub { margin-top: 22px; font-size: 16px; opacity: .9; max-width: 460px; }
.hero-cta {
  margin-top: 28px; text-decoration: none;
  font-family: var(--font-display); font-size: 18px; letter-spacing: .08em;
  color: var(--cocoa); background: var(--blue);
  padding: 14px 38px; border-radius: 999px;
  border: 2px solid var(--flour);
  transition: transform .15s ease, background .15s ease;
}
.hero-cta:hover { transform: translateY(-2px); background: var(--flour); }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 11px; letter-spacing: .3em; color: rgba(253,249,241,.7);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--blue); color: var(--cocoa);
  border-top: 2px solid var(--cocoa); border-bottom: 2px solid var(--cocoa);
  padding: 12px 0;
}
.marquee-track {
  display: inline-block;
  animation: scroll-marquee 26s linear infinite;
  font-family: var(--font-display); font-size: 20px; letter-spacing: .12em;
}
.marquee-track span { padding-right: 8px; }
@keyframes scroll-marquee { to { transform: translateX(-50%); } }

/* ============ REVEAL (3D fly-in) ============ */
.reveal {
  opacity: 0;
  transform: perspective(900px) rotateX(14deg) translateY(70px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.16,.84,.3,1);
}
.reveal.inview { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }

/* ============ BUILD YOUR BOX ============ */
.build { padding: 90px 5vw 40px; }
.catalog-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1280px; margin: 0 auto;
  perspective: 1400px;
}
.catalog-card { will-change: transform; }
.catalog-card:nth-child(2) { transition-delay: .08s; }
.catalog-card:nth-child(3) { transition-delay: .16s; }
.card-meta { font-size: 13px; color: var(--cocoa-soft); }
.card-meta strong { color: var(--blue-deep); font-size: 15px; }
.menu-link { text-align: center; margin: 44px auto 0; font-size: 14px; color: var(--cocoa-soft); }
.menu-link a { color: var(--blue-deep); font-weight: 600; }

/* ============ BOX BUILDER MODAL ============ */
.builder-scrim {
  position: fixed; inset: 0; background: rgba(46,32,21,.6); z-index: 250;
  display: none; place-items: center; padding: 18px;
}
.builder-scrim.open { display: grid; }
.builder {
  background: var(--flour); border: 2px solid var(--cocoa); border-radius: 22px;
  width: min(680px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow); overflow: hidden;
  animation: builder-in .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes builder-in { from { transform: translateY(40px) scale(.96); opacity: 0; } }
.builder-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px 26px 16px; border-bottom: 2px solid var(--cocoa);
}
.builder-head h3 { font-family: var(--font-display); font-size: 26px; }
.builder-steps { margin-top: 6px; font-size: 11.5px; color: var(--cocoa-soft); letter-spacing: .02em; }
.builder-steps .on { color: var(--blue-deep); font-weight: 700; }
.builder-steps .done { color: var(--tan); }
.builder-body { padding: 22px 26px; overflow-y: auto; flex: 1; min-height: 220px; }
.builder-note { font-size: 13.5px; color: var(--cocoa-soft); margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--cocoa);
  border: 1.5px solid var(--cocoa);
  transition: all .15s ease;
}
.chip:hover { background: var(--cocoa); color: var(--flour); }
.chip.active { background: var(--blue); border-color: var(--cocoa); color: var(--cocoa); }
.mix-list { display: flex; flex-direction: column; gap: 10px; }
.mix-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1.5px solid var(--cocoa); border-radius: 14px; padding: 12px 16px;
  background: var(--cream);
}
.mix-info { display: flex; flex-direction: column; }
.mix-info strong { font-size: 14.5px; }
.mix-info span { font-size: 12px; color: var(--cocoa-soft); }
.mix-ctrl { display: flex; align-items: center; gap: 12px; }
.mix-btn {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--cocoa); background: var(--flour);
  font-size: 17px; font-weight: 700; color: var(--cocoa);
  transition: all .12s ease;
}
.mix-btn:hover:not(:disabled) { background: var(--blue); }
.mix-btn:disabled { opacity: .3; cursor: not-allowed; }
.mix-n { font-family: var(--font-display); font-size: 20px; min-width: 22px; text-align: center; }
.review h4 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.review ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.review li {
  border: 1.5px solid var(--cocoa); border-radius: 10px; padding: 10px 14px;
  background: var(--cream); font-size: 14px; font-weight: 600;
}
.builder-foot {
  border-top: 2px solid var(--cocoa); padding: 16px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.builder-price { display: flex; flex-direction: column; }
.builder-price span:first-child { font-size: 10px; letter-spacing: .25em; color: var(--cocoa-soft); }
.builder-price span:last-child { font-family: var(--font-display); font-size: 26px; color: var(--blue-deep); }
.builder-nav { display: flex; gap: 10px; }
.ghost-btn {
  font-family: var(--font-display); font-size: 15px; letter-spacing: .08em;
  background: transparent; color: var(--cocoa); border: 2px solid var(--cocoa);
  border-radius: 12px; padding: 13px 20px; cursor: pointer;
}
.ghost-btn:hover { background: var(--cream); }
.builder-nav .add-btn { margin-top: 0; padding: 13px 24px; }
.builder-nav .add-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ============ CHECKOUT ============ */
.drawer-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-view[hidden] { display: none; }
.fulfil-toggle { display: flex; gap: 10px; margin-bottom: 12px; }
.fulfil-opt {
  flex: 1; font-family: var(--font-display); font-size: 15px; letter-spacing: .05em;
  padding: 13px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 2px solid var(--cocoa); color: var(--cocoa);
}
.fulfil-opt.active { background: var(--blue); }
.fulfil-note { font-size: 12px; color: var(--cocoa-soft); margin-bottom: 16px; }
.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form label { font-size: 12px; font-weight: 700; letter-spacing: .04em; display: flex; flex-direction: column; gap: 5px; }
.checkout-form input, .checkout-form textarea {
  font-family: var(--font-body); font-size: 14px; padding: 11px 14px;
  border: 1.5px solid var(--cocoa); border-radius: 10px;
  background: var(--flour); color: var(--cocoa); outline: none;
}
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--blue-deep); }
.checkout-form .invalid { border-color: #b0472e; background: #fbeae4; }
#deliveryFields { display: flex; flex-direction: column; gap: 12px; }
#deliveryFields[hidden] { display: none; }
.order-success { text-align: center; padding: 30px 10px; }
.order-success img { width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--cocoa); margin-bottom: 16px; }
.order-success h4 { font-family: var(--font-display); font-size: 26px; margin-bottom: 10px; }
.order-success p { font-size: 14px; color: var(--cocoa-soft); margin-bottom: 12px; }
a.checkout-btn { display: block; text-decoration: none; text-align: center; box-sizing: border-box; }
.wa-send { margin-top: 8px; }
.success-done { width: 100%; margin-top: 12px; }
.wa-link {
  display: inline-block; margin: 12px 0 2px;
  font-size: 13px; font-weight: 700; color: var(--blue-deep);
  text-decoration: underline;
}

/* ============ PRODUCT GRID ============ */
.drop { padding: 90px 5vw 120px; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2, .notify h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px); line-height: 1;
}
.section-head p { margin-top: 14px; color: var(--cocoa-soft); font-size: 15px; }
.grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1280px; margin: 0 auto;
  perspective: 1400px;
}
.card { will-change: transform; }
.card:nth-child(2) { transition-delay: .08s; }
.card:nth-child(3) { transition-delay: .16s; }
.card:nth-child(5) { transition-delay: .08s; }
.card:nth-child(6) { transition-delay: .16s; }
.card-inner {
  background: var(--flour);
  border: 2px solid var(--cocoa); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: 100%;
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .3s ease;
  will-change: transform;
}
.tilt:hover .card-inner { box-shadow: 0 34px 70px rgba(46,32,21,.3); }
.card-media { position: relative; aspect-ratio: 1; background: #e8dfd0; overflow: hidden; }
.card-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.card:hover .card-photo { transform: scale(1.06); }
.card-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-display); font-size: 14px;
  background: var(--cocoa); color: var(--blue);
  padding: 6px 12px; border-radius: 999px; letter-spacing: .1em;
  transform: translateZ(40px);
}
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-titlerow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-titlerow h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: .03em; }
.price { font-family: var(--font-display); font-size: 22px; color: var(--blue-deep); }
.card-desc { font-size: 13.5px; color: var(--cocoa-soft); line-height: 1.55; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--cocoa);
  border: 1.5px solid var(--cocoa);
  transition: all .15s ease;
}
.size:hover:not(:disabled) { background: var(--cocoa); color: var(--flour); }
.size.active { background: var(--blue); border-color: var(--cocoa); color: var(--cocoa); }
.size.soldout {
  opacity: .45; cursor: not-allowed; text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.add-btn {
  margin-top: auto;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .1em;
  background: var(--cocoa); color: var(--flour);
  border: none; border-radius: 12px; padding: 15px; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.add-btn:hover { background: var(--blue-deep); }
.add-btn:active { transform: scale(.98); }
.notify-link {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--blue-deep); font-weight: 600;
  text-align: left; padding: 0;
}
.notify-link:hover { text-decoration: underline; }

/* ============ 3D COOKIE COIN DIVIDER ============ */
.coin-divider {
  background: var(--cocoa);
  border-top: 2px solid var(--cocoa); border-bottom: 2px solid var(--cocoa);
  padding: 70px 20px 60px; text-align: center;
  perspective: 900px; overflow: hidden;
}
.coin-3d {
  position: relative; width: 190px; height: 190px; margin: 0 auto;
  transform-style: preserve-3d;
  animation: coin-spin 7s linear infinite;
}
@keyframes coin-spin { to { transform: rotateY(360deg); } }
.coin-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--blue);
  backface-visibility: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.coin-face.back { transform: rotateY(180deg); }
.coin-caption {
  margin-top: 34px; font-family: var(--font-display);
  color: var(--cream); letter-spacing: .18em; font-size: 17px;
}

/* ============ CRAFT (pinned macro + panels) ============ */
.craft { height: 340vh; position: relative; }
.craft-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  perspective: 1000px;
}
.craft-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: craft-zoom 26s ease-in-out infinite alternate;
}
@keyframes craft-zoom { from { transform: scale(1); } to { transform: scale(1.14); } }
.craft-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(46,32,21,.72) 100%);
}
.craft-panels { position: absolute; inset: 0; }
.craft-panel {
  position: absolute; top: 50%; left: 50%;
  width: min(560px, 88vw);
  padding: 46px 44px;
  background: color-mix(in srgb, var(--cocoa) 88%, transparent);
  color: var(--cream); border-radius: 22px;
  border: 2px solid var(--tan);
  backdrop-filter: blur(4px);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -40%) perspective(900px) rotateX(18deg) scale(.92);
  transition: opacity .5s ease, transform .6s cubic-bezier(.16,.84,.3,1);
  pointer-events: none;
  will-change: transform, opacity;
}
.craft-panel.active {
  opacity: 1;
  transform: translate(-50%, -50%) perspective(900px) rotateX(0) scale(1);
}
.craft-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 68px); line-height: .95; margin-bottom: 16px;
  color: var(--flour);
}
.craft-panel p { font-size: 15px; line-height: 1.7; opacity: .92; }
.craft-box {
  width: 100%; margin-top: 22px; border-radius: 14px;
  border: 2px solid var(--tan); display: block;
}

/* ============ NOTIFY ============ */
.notify { padding: 110px 5vw; text-align: center; }
.notify-logo {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--cocoa); margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.notify p { margin-top: 12px; color: var(--cocoa-soft); }
.notify-form, #modalForm { margin: 34px auto 0; display: flex; gap: 10px; max-width: 480px; }
.notify-form input, #modalForm input {
  flex: 1; padding: 16px 20px; font-family: var(--font-body); font-size: 15px;
  border: 2px solid var(--cocoa); border-radius: 999px;
  background: var(--flour); color: var(--cocoa); outline: none;
}
.notify-form input:focus, #modalForm input:focus { border-color: var(--blue-deep); }
.notify-form button, #modalForm button {
  font-family: var(--font-display); letter-spacing: .08em; font-size: 15px;
  background: var(--blue); color: var(--cocoa);
  border: 2px solid var(--cocoa); border-radius: 999px;
  padding: 0 30px; cursor: pointer; transition: background .15s ease;
}
.notify-form button:hover, #modalForm button:hover { background: var(--tan); }
.notify-ok { display: none; margin-top: 18px; color: var(--blue-deep); font-weight: 600; }
.notify-ok.show { display: block; }

/* ============ FOOTER ============ */
.footer {
  border-top: 2px solid var(--cocoa);
  padding: 26px 5vw; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cocoa-soft);
}

/* ============ CART DRAWER ============ */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(46,32,21,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 200;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--flour); z-index: 201;
  border-left: 2px solid var(--cocoa);
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 2px solid var(--cocoa);
}
.drawer-head h3 { font-family: var(--font-display); font-size: 26px; }
.drawer-close {
  background: none; border: 2px solid var(--cocoa); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 14px; color: var(--cocoa);
}
.drawer-close:hover { background: var(--cocoa); color: var(--flour); }
.drawer-items { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.drawer-empty { color: var(--cocoa-soft); font-size: 14px; margin-top: 20px; }
.drawer-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1.5px solid var(--cocoa); border-radius: 14px; padding: 12px 16px;
  background: var(--cream);
}
.di-info { display: flex; flex-direction: column; gap: 2px; }
.di-name { font-family: var(--font-display); font-size: 15px; letter-spacing: .04em; }
.di-size { font-size: 12px; color: var(--cocoa-soft); }
.di-right { display: flex; align-items: center; gap: 12px; }
.di-price { font-weight: 700; font-size: 14px; }
.di-remove { background: none; border: none; cursor: pointer; color: var(--cocoa-soft); font-size: 15px; }
.di-remove:hover { color: #b0472e; }
.drawer-foot { border-top: 2px solid var(--cocoa); padding: 20px 24px; }
.drawer-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-size: 22px; margin-bottom: 14px;
}
.checkout-btn {
  width: 100%; font-family: var(--font-display); font-size: 17px; letter-spacing: .1em;
  background: var(--blue); color: var(--cocoa); border: 2px solid var(--cocoa);
  border-radius: 12px; padding: 15px; cursor: pointer;
}
.checkout-btn:hover { background: var(--tan); }
.drawer-note { margin-top: 10px; font-size: 11px; color: var(--cocoa-soft); text-align: center; }

/* ============ MODAL ============ */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(46,32,21,.55); z-index: 300;
  display: none; place-items: center; padding: 20px;
}
.modal-scrim.open { display: grid; }
.modal {
  position: relative; background: var(--flour); border: 2px solid var(--cocoa);
  border-radius: 22px; padding: 40px 36px; max-width: 460px; width: 100%;
  box-shadow: var(--shadow);
}
.modal h3 { font-family: var(--font-display); font-size: 30px; }
.modal p { margin-top: 8px; font-size: 14px; color: var(--cocoa-soft); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 2px solid var(--cocoa); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; color: var(--cocoa);
}
.modal-close:hover { background: var(--cocoa); color: var(--flour); }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px);
  background: var(--cocoa); color: var(--flour);
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--blue);
  font-weight: 600; font-size: 14px; z-index: 400;
  opacity: 0; transition: all .3s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .coin { width: calc(var(--s) * .68); height: calc(var(--s) * .68); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 10px 16px; }
  .brand-name { font-size: 15px; }
  .hero { height: 150vh; }               /* light pinned hero on phones */
  .hero-sub { font-size: 14px; }
  .hero-logo { width: 96px; height: 96px; margin-bottom: 16px; }
  .craft { height: 280vh; }
  .craft-panel { padding: 30px 22px; }
  .build, .drop { padding-left: 5vw; padding-right: 5vw; }
  .catalog-grid, .grid { gap: 24px; }
  .card-titlerow h3 { font-size: 20px; }
  .marquee-track { font-size: 16px; }
  .coin-3d { width: 150px; height: 150px; }
  /* builder modal on small screens */
  .builder { width: 100%; max-height: 96vh; border-radius: 18px; }
  .builder-head { padding: 16px 18px 12px; }
  .builder-head h3 { font-size: 21px; }
  .builder-body { padding: 16px 18px; }
  .builder-foot { padding: 12px 18px; flex-wrap: wrap; }
  .builder-nav { width: 100%; justify-content: space-between; }
  .builder-nav .add-btn, .ghost-btn { padding: 12px 16px; font-size: 14px; }
  .chip { padding: 10px 14px; font-size: 13px; }
  .mix-row { padding: 10px 12px; }
  .fulfil-opt { font-size: 13px; padding: 11px 8px; }
}
@media (max-width: 480px) {
  /* keep the real-cookie coins on phones — smaller, fewer, and clear of the text */
  .coin { width: calc(var(--s) * .48); height: calc(var(--s) * .48); }
  .coin:nth-child(5), .coin:nth-child(6) { display: none; }
  .coin:nth-child(3) { left: 76%; top: 76%; }
  .coin:nth-child(4) { left: -5%; top: 78%; }
  .float-stage::after { top: 66%; }
  .hero-cta { font-size: 16px; padding: 12px 30px; }
  .footer { flex-direction: column; text-align: center; }
}
/* prevent iOS zoom-on-focus: keep inputs at 16px on touch screens */
@media (pointer: coarse) {
  .checkout-form input, .checkout-form textarea,
  .notify-form input, #modalForm input { font-size: 16px; }
}
