:root {
  --milk: #FFF4FA;
  --ink: #2A1433;
  --ink-soft: #5B4466;
  --bubble: #FF7EB6;
  --bubble-deep: #F2559B;
  --lilac: #CDB8FF;
  --mint: #BFF0DA;
  --butter: #FFE89A;
  --pink-tint: #FFD3E7;
  --cherry: #C8174F;
  --white: #FFFFFF;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;

  --line: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --r-lg: 30px;
  --r-md: 18px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;

  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='22' cy='42' rx='10' ry='13'/%3E%3Cellipse cx='40' cy='24' rx='10' ry='13'/%3E%3Cellipse cx='60' cy='24' rx='10' ry='13'/%3E%3Cellipse cx='78' cy='42' rx='10' ry='13'/%3E%3Cpath d='M50 46c-15 0-28 15-28 28 0 10 8 14 15 14 6 0 9-3 13-3s7 3 13 3c7 0 15-4 15-14 0-13-13-28-28-28z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--bubble-deep); outline-offset: 3px; border-radius: 6px; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--milk); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

/* ---------- logo (PNG used as a mask, so it can be any colour) ---------- */
.logo-mark {
  display: block;
  aspect-ratio: 1400 / 787;
  background: currentColor;
  -webkit-mask: url("assets/logo-mask.png") center / contain no-repeat;
          mask: url("assets/logo-mask.png") center / contain no-repeat;
}
.logo-paw {
  display: inline-block; width: 56px; aspect-ratio: 1;
  background: var(--bubble);
  -webkit-mask: var(--paw) center / contain no-repeat;
          mask: var(--paw) center / contain no-repeat;
}
.logo-paw--big { width: 96px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: var(--line); border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 900; font-size: 16px; text-decoration: none;
  cursor: pointer; background: var(--white); color: var(--ink);
  box-shadow: var(--pop-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--milk); box-shadow: 3px 3px 0 var(--bubble-deep); }
.btn--ink:hover { box-shadow: 4px 4px 0 var(--bubble-deep); }
.btn--ghost { background: var(--white); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--pop-sm); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: var(--line); border-radius: 50%; background: var(--white); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--milk) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.topbar__logo { color: var(--ink); width: 104px; flex: none; }
.topbar__nav { display: flex; gap: 6px; margin-right: auto; }
.topbar__nav a {
  text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill);
}
.topbar__nav a:hover { background: var(--pink-tint); }

.bag-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 8px 0 16px; cursor: pointer;
  border: var(--line); border-radius: var(--r-pill);
  background: var(--bubble); font-weight: 900; box-shadow: var(--pop-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bag-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.bag-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.bag-btn__count {
  min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--ink); color: var(--milk); font-size: 14px;
}
.bag-btn.is-bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.12) rotate(-4deg); } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(64px, 10vw, 128px);
  background: var(--bubble);
  border-bottom: var(--line);
}
.hero__dots {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--bubble-deep) 22%, transparent 24%);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(ellipse at 50% 40%, transparent 30%, #000 75%);
          mask: radial-gradient(ellipse at 50% 40%, transparent 30%, #000 75%);
}
.hero__text { display: grid; justify-items: center; }
.hero__logo { width: min(720px, 92vw); color: var(--ink); }

/* mascot: printed as a die-cut sticker */
.hero__mascot {
  margin: clamp(36px, 6vw, 56px) 0 0; width: min(210px, 56vw);
  padding: 10px; background: var(--white);
  border: var(--line); border-radius: 36px; box-shadow: var(--pop);
  transform: rotate(4deg);
  animation: peel .9s .25s cubic-bezier(.3, 1.5, .5, 1) both;
}
.hero__mascot img { width: 100%; height: auto; border-radius: 26px; }
@keyframes peel {
  0% { transform: rotate(16deg) translateY(30px) scale(.85); opacity: 0; }
  100% { transform: rotate(4deg); opacity: 1; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: clamp(32px, 5vw, 80px);
    max-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    text-align: left;
  }
  .hero__text { justify-items: start; }
  .hero__logo { width: min(620px, 100%); }
  .hero__mascot { margin: 0; width: clamp(240px, 24vw, 320px); }
  .sticker--heart { right: auto; left: 58%; top: 10%; }
  .sticker--star { right: auto; left: 50%; bottom: 10%; }
}
.hero__logo .logo-mark--hero {
  filter: drop-shadow(0 0 0 var(--white)) drop-shadow(6px 6px 0 var(--white));
  animation: plop .8s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes plop {
  0% { transform: scale(.6) rotate(-6deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.hero__tagline {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--display); font-size: clamp(28px, 4.4vw, 52px); line-height: 1.05;
  color: var(--white); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.hero__note { margin-top: 14px; max-width: 40ch; font-weight: 700; font-size: 18px; }
.hero__cta { margin-top: 28px; min-height: 54px; padding: 0 30px; font-size: 18px; }

.hero__stickers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sticker {
  position: absolute; display: block; aspect-ratio: 1;
  background: var(--white); border: var(--line); border-radius: 50%;
  box-shadow: var(--pop);
}
.sticker::after {
  content: ""; position: absolute; inset: 20%;
  background: var(--ink);
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
}
.sticker--paw { --shape: var(--paw); width: clamp(72px, 10vw, 128px); left: 6%; top: 14%; transform: rotate(-14deg); }
.sticker--paw::after { background: var(--bubble-deep); }
.sticker--heart {
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 88S8 62 8 34C8 20 19 10 32 10c8 0 14 4 18 10 4-6 10-10 18-10 13 0 24 10 24 24 0 28-42 54-42 54z'/%3E%3C/svg%3E");
  width: clamp(60px, 8vw, 104px); right: 8%; top: 20%; transform: rotate(12deg); background: var(--lilac);
}
.sticker--star {
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c4 26 20 42 46 46-26 4-42 20-46 46-4-26-20-42-46-46C30 46 46 30 50 4z'/%3E%3C/svg%3E");
  width: clamp(56px, 7vw, 92px); right: 16%; bottom: 12%; transform: rotate(-8deg); background: var(--butter);
}
@media (max-width: 640px) {
  .sticker--paw { top: 4%; left: 3%; }
  .sticker--heart { top: auto; bottom: 4%; right: 5%; }
  .sticker--star { display: none; }
}

/* ---------- tape marquee ---------- */
.tape { overflow: hidden; background: var(--ink); color: var(--milk); border-bottom: var(--line); }
.tape__track {
  display: flex; width: max-content; gap: 40px; padding: 12px 0;
  font-family: var(--display); font-size: 20px;
  animation: slide 40s linear infinite;
}
.tape__track span::after { content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 40px; vertical-align: -2px;
  background: var(--bubble); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape__track, .hero__logo .logo-mark--hero, .hero__mascot, .bag-btn.is-bump { animation: none; }
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section__head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head p { max-width: 60ch; }
.section__head h2 { font-family: var(--display); font-size: clamp(36px, 5.5vw, 64px); }
.section__head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- product grid ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(22px, 3vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: var(--line); border-radius: var(--r-lg);
  box-shadow: var(--pop); overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .18s ease;
}
.card:nth-child(4n+1) { --tilt: -1.2deg; }
.card:nth-child(4n+2) { --tilt: .8deg; }
.card:nth-child(4n+3) { --tilt: -.5deg; }
.card:nth-child(4n+4) { --tilt: 1.3deg; }
.card:hover, .card:focus-within { transform: rotate(0deg) translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none; transition: none; } }

.card__media {
  position: relative; aspect-ratio: 1 / .86; border-bottom: var(--line);
  background: var(--tint, var(--pink-tint));
  display: grid; place-items: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media svg { width: 64%; height: 64%; }
.card[data-tint="pink"] { --tint: var(--pink-tint); }
.card[data-tint="lilac"] { --tint: var(--lilac); }
.card[data-tint="mint"] { --tint: var(--mint); }
.card[data-tint="butter"] { --tint: var(--butter); }

.stamp {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border: var(--line); border-radius: var(--r-pill);
  background: var(--white); font-weight: 900; font-size: 14px; transform: rotate(-6deg);
}
.card.is-unavailable .card__media > :not(.stamp) { filter: grayscale(1) contrast(.9); opacity: .55; }

.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card__name { font-family: var(--display); font-size: 23px; line-height: 1.1; }
.card__variant { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.card__desc { font-size: 15px; color: var(--ink-soft); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--display); font-size: 26px; }

.stepper {
  display: inline-flex; align-items: center;
  border: var(--line); border-radius: var(--r-pill); background: var(--white); overflow: hidden;
}
.stepper button {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  font-weight: 900; font-size: 20px; line-height: 1;
}
.stepper button:hover { background: var(--pink-tint); }
.stepper output { min-width: 26px; text-align: center; font-weight: 900; }
.card .add { min-height: 44px; }

/* ---------- how it works ---------- */
.how { border-top: var(--line); }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: s;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li { counter-increment: s; position: relative; padding: 64px 22px 22px; border: var(--line); border-radius: var(--r-md); background: var(--white); }
.steps li::before {
  content: counter(s); position: absolute; top: 16px; left: 18px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bubble); border: var(--line);
  font-family: var(--display); font-size: 20px;
}
.steps h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

/* ---------- shipping ---------- */
.shipping { border-top: var(--line); }
.ship-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.ship-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: var(--line); border-radius: var(--r-md); background: var(--white);
}
.ship-list strong { display: block; font-size: 18px; }
.ship-list span { color: var(--ink-soft); font-size: 15px; }
.ship-list .ship-price { font-family: var(--display); font-size: 24px; color: var(--ink); white-space: nowrap; }

/* ---------- footer ---------- */
.footer {
  display: grid; grid-template-columns: minmax(160px, 320px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  background: var(--ink); color: var(--milk);
}
.logo-mark--footer { color: var(--bubble); width: 100%; }
.footer h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); color: var(--bubble); }
.footer__body { display: grid; gap: 14px; max-width: 54ch; }
.contact-links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--milk); border-radius: var(--r-pill); text-decoration: none; font-weight: 700;
}
.contact-links a:hover { background: var(--milk); color: var(--ink); }
.footer__small { font-size: 14px; opacity: .7; margin-top: 18px; }
@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; }
  .logo-mark--footer { width: 200px; }
}

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(42 20 51 / .45); }
.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw); display: flex; flex-direction: column;
  background: var(--milk); border-left: var(--line);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.drawer__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: var(--line); background: var(--bubble);
}
.drawer__head h2 { font-family: var(--display); font-size: 28px; margin-right: auto; }
.drawer__view { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.drawer__view[hidden] { display: none; }

.bag-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bag-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 12px; border: var(--line); border-radius: var(--r-md); background: var(--white);
}
.bag-item__thumb { width: 64px; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--tint, var(--pink-tint)); }
.bag-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-item__thumb svg { width: 80%; height: 80%; }
.bag-item__name { font-weight: 900; line-height: 1.25; }
.bag-item__meta { font-size: 14px; color: var(--ink-soft); }
.bag-item__right { display: grid; justify-items: end; gap: 6px; }
.bag-item .stepper button { width: 34px; height: 34px; font-size: 17px; }
.bag-item__price { font-weight: 900; }

.bag-empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 40px 0; font-weight: 700; }
.bag-empty[hidden], .bag-foot[hidden] { display: none; }
.bag-foot { display: grid; gap: 18px; margin-top: auto; }

.ship-pick { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.ship-pick legend { font-weight: 900; margin-bottom: 8px; }
.ship-opt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); cursor: pointer;
}
.ship-opt:has(input:checked) { background: var(--pink-tint); box-shadow: var(--pop-sm); }
.ship-opt input { accent-color: var(--bubble-deep); width: 18px; height: 18px; margin: 0; }
.ship-opt small { display: block; color: var(--ink-soft); font-size: 13px; }
.ship-opt b { white-space: nowrap; }

.coupon label { font-weight: 900; display: block; margin-bottom: 6px; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon__msg { font-size: 14px; margin-top: 6px; font-weight: 700; }
.coupon__msg.is-bad { color: var(--cherry); }

.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-top: 14px; border-top: 2px dashed var(--ink); }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; text-align: right; font-weight: 700; }
.totals .grand { font-family: var(--display); font-size: 26px; color: var(--ink); margin-top: 4px; }

/* ---------- form fields ---------- */
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--white);
  font-size: 16px;
}
textarea { resize: vertical; min-height: 88px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1433' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bubble-deep); box-shadow: 0 0 0 3px var(--pink-tint); }

.checkout__lead { color: var(--ink-soft); }
.checkout__sub { font-family: var(--display); font-size: 22px; margin-top: 6px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 900; }
.field .opt { font-weight: 500; color: var(--ink-soft); }
.field__hint { font-size: 14px; color: var(--ink-soft); }
.field__err { display: none; font-size: 14px; font-weight: 700; color: var(--cherry); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--cherry); }
.field.is-invalid .field__err { display: block; }
.field__prefix { display: flex; align-items: stretch; }
.field__prefix span { display: grid; place-items: center; padding: 0 14px; border: 2px solid var(--ink); border-right: 0; border-radius: 14px 0 0 14px; background: var(--pink-tint); font-weight: 900; }
.field__prefix input { border-radius: 0 14px 14px 0; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.checkout__pay { padding: 12px 14px; border-radius: 14px; background: var(--butter); border: 2px solid var(--ink); font-weight: 700; font-size: 15px; }
.checkout__err { color: var(--cherry); font-weight: 700; }
.checkout__err:empty { display: none; }

.done { align-items: center; text-align: center; }
.done h3 { font-family: var(--display); font-size: 36px; }
.done__ref { font-size: 15px; }
.done__summary {
  width: 100%; margin: 0; padding: 14px; text-align: left; white-space: pre-wrap;
  font-family: var(--body); font-size: 14px; line-height: 1.5;
  border: 2px dashed var(--ink); border-radius: 14px; background: var(--white);
}
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.done__actions a { text-decoration: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px;
  transform: translate(-50%, 140%); opacity: 0;
  padding: 12px 20px; border: var(--line); border-radius: var(--r-pill);
  background: var(--ink); color: var(--milk); font-weight: 700; box-shadow: 4px 4px 0 var(--bubble-deep);
  transition: transform .25s ease, opacity .25s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .topbar { gap: 12px; }
  .topbar__nav { display: none; }
  .topbar__logo { margin-right: auto; width: 92px; }
  .bag-btn span:not(.bag-btn__count) { display: none; }
  .bag-btn { padding: 0 6px 0 12px; }
  .field-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   v2: account link, product modal, account page, info pages
   ===================================================================== */

/* ---------- header account link ---------- */
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  border: var(--line); border-radius: var(--r-pill); background: var(--white);
  font-weight: 900; text-decoration: none;
}
.acct-btn:hover, .acct-btn.is-current { background: var(--pink-tint); }
.acct-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
a.bag-btn { text-decoration: none; color: var(--ink); }
@media (max-width: 720px) {
  .acct-btn { width: 46px; padding: 0; justify-content: center; }
  .acct-btn span { display: none; }
}

/* ---------- cards v2 ---------- */
.card__media { width: 100%; padding: 0; border: 0; border-bottom: var(--line); cursor: pointer; font: inherit; color: inherit; }
.card__media:focus-visible { outline-offset: -6px; }
.card__name button {
  all: unset; cursor: pointer; font: inherit; line-height: inherit;
}
.card__name button:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.card__name button:focus-visible { outline: 3px solid var(--bubble-deep); outline-offset: 3px; border-radius: 6px; }
.stamp--low { background: var(--butter); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.card--loading { min-height: 420px; background: var(--white); opacity: .6; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .card--loading { animation: none; } }
.grid__empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; font-weight: 700; border: 3px dashed var(--ink); border-radius: var(--r-lg); }
.section__head a { font-weight: 700; }

/* ---------- product modal ---------- */
.pm {
  width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: var(--line); border-radius: var(--r-lg); background: var(--milk); color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink); overflow: auto;
}
.pm::backdrop { background: rgb(42 20 51 / .5); }
.pm[open] { animation: pm-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pm-in { from { transform: translateY(16px) scale(.98); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm[open] { animation: none; } }
.pm__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pm__body { display: grid; grid-template-columns: 1.1fr 1fr; }
.pm__gallery { background: var(--tint, var(--pink-tint)); border-right: var(--line); display: grid; align-content: start; }
.pm__main { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pm__main img { width: 100%; height: 100%; object-fit: cover; }
.pm__main svg { width: 55%; height: 55%; }
.pm__thumbs { display: flex; gap: 8px; padding: 12px; border-top: var(--line); overflow-x: auto; background: var(--white); }
.pm__thumbs button { flex: none; width: 64px; aspect-ratio: 1; padding: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; cursor: pointer; opacity: .6; }
.pm__thumbs button[aria-current="true"] { opacity: 1; box-shadow: var(--pop-sm); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm__info { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 28px; }
.pm__name { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); padding-right: 48px; }
.pm__price { font-family: var(--display); font-size: 30px; }
.pm__desc { white-space: pre-line; color: var(--ink-soft); max-width: 60ch; }
.pm__buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; }
.pm__buy .btn--ink { flex: 1; min-width: 160px; }
@media (max-width: 720px) {
  .pm__body { grid-template-columns: 1fr; }
  .pm__gallery { border-right: 0; border-bottom: var(--line); }
  .pm__main { aspect-ratio: 4 / 3; }
  .pm__info { padding: 22px 20px 22px; }
}

/* ---------- checkout extras ---------- */
.checkout__signin { padding: 10px 14px; border: 2px dashed var(--ink); border-radius: 14px; font-size: 15px; }
.checkout__signin a, .checkout__legal a { font-weight: 700; }
.checkout__legal { font-size: 13px; color: var(--ink-soft); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--bubble-deep); }

/* ---------- footer extras ---------- */
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.footer__links a { font-weight: 700; text-underline-offset: 3px; }
.contact-missing { opacity: .7; font-size: 15px; }
.footer--slim { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 32px; }
.footer--slim .footer__small { margin: 0; }

/* ---------- generic page bits ---------- */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; width: 100%; }
.page__title { font-family: var(--display); font-size: clamp(36px, 5.5vw, 60px); margin-bottom: 14px; }
.panel { padding: clamp(22px, 3vw, 32px); background: var(--white); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--pop); }
.panel--narrow { max-width: 520px; margin: 0 auto; }
.panel__lead { color: var(--ink-soft); margin-bottom: 20px; }
.stack { display: grid; gap: 16px; }
.btn-link { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.btn-link:focus-visible { outline: 3px solid var(--bubble-deep); outline-offset: 3px; border-radius: 4px; }
.form-msg { margin-top: 14px; font-weight: 700; color: var(--cherry); }
.form-msg:empty { display: none; }
[data-code-sent] { font-weight: 700; }

/* ---------- account ---------- */
.account__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.account__head .page__title { margin: 0; }
.account__who { color: var(--ink-soft); }
.account__who .btn-link { margin-left: 10px; color: var(--ink); }
.account__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (max-width: 860px) { .account__grid { grid-template-columns: 1fr; } }
.account__sub { font-family: var(--display); font-size: 28px; margin-bottom: 14px; }

.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.orders__empty { padding: 32px 24px; text-align: center; font-weight: 700; border: 3px dashed var(--ink); border-radius: var(--r-md); }
.orders__empty a { display: block; margin-top: 6px; }
.order { padding: 20px 22px; background: var(--white); border: var(--line); border-radius: var(--r-md); }
.order.is-cancelled { opacity: .7; }
.order__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.order__num { font-family: var(--display); font-size: 24px; }
.order__date { font-size: 14px; color: var(--ink-soft); }
.order__status { margin-top: 12px; font-weight: 700; }
.order__tracking { margin-top: 4px; }
.order__tracking a { font-weight: 900; }

.pill { padding: 4px 12px; border: 2px solid var(--ink); border-radius: var(--r-pill); font-weight: 900; font-size: 14px; white-space: nowrap; background: var(--white); }
.pill--new { background: var(--butter); }
.pill--confirmed { background: var(--lilac); }
.pill--paid { background: var(--pink-tint); }
.pill--shipped { background: var(--mint); }
.pill--cancelled { background: #eee; }

.track { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: t; }
.track li {
  counter-increment: t; position: relative; padding-top: 34px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.track li::before {
  content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--white); font-size: 13px; color: var(--ink);
}
.track li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #e6dbe9; }
.track li:first-child::after { display: none; }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { content: "✓"; background: var(--bubble); }
.track li.is-done::after { background: var(--ink); }

.order__more { margin-top: 14px; border-top: 2px dashed var(--ink); padding-top: 10px; }
.order__more summary { cursor: pointer; font-weight: 900; min-height: 32px; display: flex; align-items: center; }
.order__items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.order__items li { display: flex; justify-content: space-between; gap: 12px; }
.order__items small { color: var(--ink-soft); }
.order__total { font-weight: 900; padding-top: 6px; border-top: 2px solid var(--ink); }
.order__addr { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ---------- info / prose ---------- */
.prose { max-width: 820px; display: grid; gap: clamp(48px, 7vw, 80px); }
.prose section { scroll-margin-top: 96px; }
.prose h3 { font-family: var(--display); font-size: 24px; margin: 26px 0 10px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose__meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: var(--line); border-radius: var(--r-md); }
.faq details[open] { box-shadow: var(--pop-sm); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-weight: 900; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 26px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }
input.is-fixed { background: var(--pink-tint); font-weight: 700; cursor: default; }
