:root {
  --cream: #FBF5EE;
  --cream-2: #F3E7DA;
  --cocoa: #4A2C21;
  --cocoa-soft: #7A5A4C;
  --berry: #B83A5E;
  --berry-dark: #8E2645;
  --caramel: #D9A066;
  --card: #FFFFFF;
  --line: #E8D8C8;
  --ok: #2E7D4F;
  --err: #B3261E;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream); color: var(--cocoa);
  font-family: "Nunito", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }
.script { font-family: "Pacifico", cursive; font-weight: 400; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; }

header.brand { text-align: center; padding: calc(28px + env(safe-area-inset-top)) 0 6px; }
.mark { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 10px; background: var(--cocoa); color: var(--cream);
  display: flex; align-items: center; justify-content: center; border: 4px solid var(--caramel); }
.mark span { font-family: "Pacifico", cursive; font-size: 46px; line-height: 1; margin-top: -6px; }
header.brand h1 { font-family: "Pacifico", cursive; font-weight: 400; font-size: 38px; line-height: 1.2; margin: 0; color: var(--cocoa); }
header.brand p { margin: 4px 0 0; color: var(--cocoa-soft); font-weight: 700; }

.drip { height: 14px; margin: 16px -16px 18px; background:
  radial-gradient(circle at 10px 0, var(--cocoa) 9px, transparent 10px) 0 0 / 28px 14px repeat-x; opacity: .9; }

section { margin: 0 0 24px; }
h2 { font-family: "Pacifico", cursive; font-weight: 400; font-size: 28px; line-height: 1.25; margin: 0 0 10px; text-align: center; }

.sale-card { background: var(--cocoa); color: var(--cream); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.sale-card h2 { color: var(--cream); margin-bottom: 6px; }
.sale-card .when { font-weight: 800; font-size: 18px; }
.sale-card .where { margin-top: 4px; }
.sale-card .where a { color: var(--caramel); font-weight: 800; }
.sale-card .note { color: #E9D6C6; font-size: 14px; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pill { background: var(--card); color: var(--berry-dark); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; }
.pill.closed { color: var(--cocoa-soft); }
.pill.sample { background: var(--caramel); color: var(--cocoa); }

.kind-h { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--cocoa-soft); margin: 18px 4px 8px; }
.menu { display: grid; gap: 12px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid;
  grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.item h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.item p { margin: 2px 0 0; font-size: 14px; color: var(--cocoa-soft); overflow-wrap: anywhere; }
.item .price { font-size: 15px; font-weight: 800; color: var(--berry-dark); margin-top: 4px; }
.item .left { font-size: 13px; font-weight: 700; color: var(--cocoa-soft); }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.item.out { opacity: .7; }
.item .soldout { background: var(--cream-2); color: var(--cocoa-soft); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--cream-2); padding: 0; border: 0; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.thumb { cursor: zoom-in; }

/* Drawn treats when there's no photo */
.art { width: 72px; height: 72px; border-radius: 14px; background: var(--cream-2); position: relative; overflow: hidden; }
.art::before, .art::after { content: ""; position: absolute; }
.art.cookie::before { inset: 12px; border-radius: 50%; background: var(--caramel);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }
.art.cookie::after { left: 26px; top: 24px; width: 7px; height: 6px; border-radius: 40%; background: var(--cocoa);
  box-shadow: 14px 4px var(--cocoa), 4px 16px var(--cocoa), 18px 18px var(--cocoa), -6px 8px var(--cocoa); }
.art.brownie::before { left: 13px; top: 18px; width: 46px; height: 36px; border-radius: 6px; background: #5B3426;
  box-shadow: inset 0 6px 0 #6E4232; }
.art.brownie::after { left: 20px; top: 26px; width: 5px; height: 5px; border-radius: 50%; background: #C9A27E; box-shadow: 18px 6px #C9A27E, 8px 14px #C9A27E; }
.art.cake::before { left: 14px; top: 30px; width: 44px; height: 26px; border-radius: 4px; background: #F7D9E2;
  box-shadow: inset 0 -9px 0 #E8A5B9, inset 0 9px 0 #fff; }
.art.cake::after { left: 34px; top: 14px; width: 4px; height: 14px; background: var(--berry); border-radius: 2px; box-shadow: 0 -4px 0 -1px #F2B84B; }
.art.cupcake::before { left: 20px; top: 36px; width: 32px; height: 22px; background: var(--caramel); clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%); }
.art.cupcake::after { left: 16px; top: 16px; width: 40px; height: 24px; border-radius: 50% 50% 30% 30%; background: #F7D9E2; }
.art.other::before { left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--berry); }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--berry); background: #fff; color: var(--berry);
  font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.stepper button:disabled { border-color: var(--line); color: var(--line); cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-size: 18px; }
.allergens { font-size: 13px; color: var(--cocoa-soft); text-align: center; margin: 12px 4px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
label.field, .field { display: block; font-weight: 800; margin: 0 0 6px; }
.opt { font-weight: 600; color: var(--cocoa-soft); font-size: 14px; }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream);
  color: var(--cocoa); min-height: 48px; -webkit-appearance: none; appearance: none; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--berry); }
.gap { margin-top: 14px; }
.err { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.err:empty { display: none; }
.choices { display: grid; gap: 8px; }
.choices label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; }
.choices input { accent-color: var(--berry); width: 20px; height: 20px; flex: none; }
.choices label:has(input:checked) { border-color: var(--berry); background: var(--cream); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; font-weight: 800; }
.total strong { font-size: 26px; color: var(--berry-dark); }
.btn { display: block; width: 100%; text-align: center; text-decoration: none; background: var(--berry); color: #fff; border: 0;
  border-radius: 999px; padding: 14px 18px; font-weight: 800; font-size: 17px; cursor: pointer; min-height: 50px; }
.btn:disabled { opacity: .6; }
.btn.ghost { background: transparent; color: var(--berry-dark); border: 2px solid var(--berry); }
.btn.small { display: inline-block; width: auto; padding: 8px 14px; min-height: 40px; font-size: 15px; }
.note { font-size: 14px; color: var(--cocoa-soft); text-align: center; margin: 10px 0 0; }

.ty { text-align: center; }
.ty .big { font-family: "Pacifico", cursive; font-size: 30px; color: var(--berry-dark); }
.ty ul { list-style: none; padding: 0; margin: 10px 0; font-weight: 700; }
.paybox { background: var(--cream); border-radius: 14px; padding: 12px; margin: 12px 0; }
.paybox .handle { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.copy { background: #fff; border: 1.5px solid var(--berry); color: var(--berry-dark); border-radius: 999px; padding: 6px 14px; font-weight: 800; cursor: pointer; margin-top: 6px; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 54px; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--cocoa); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
ol.steps b { display: block; }
ol.steps span { color: var(--cocoa-soft); font-size: 15px; }

.share { text-align: center; }
.share img { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; background: rgba(40,24,18,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; z-index: 50; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 75vh; border-radius: 16px; border: 3px solid #fff; background: #fff; }
.lightbox p { color: #fff; font-family: "Pacifico", cursive; font-size: 24px; margin: 12px 0 0; text-align: center; }
.install { text-align: center; font-size: 15px; color: var(--cocoa-soft); background: var(--cream-2); border-radius: 14px; padding: 12px; }
footer { text-align: center; color: var(--cocoa-soft); font-size: 14px; padding: 10px 0 30px; }
footer a { color: var(--berry-dark); font-weight: 800; }
