/* ---------- topo ---------- */
.hero {
  position: relative; color: #fff; text-align: center; padding: 22px 18px 52px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22) 0 26px, transparent 27px),
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.16) 0 18px, transparent 19px),
    linear-gradient(160deg, #F45BA3 0%, var(--pink) 45%, var(--pink-d) 100%);
}
.hero::after { /* calda de chocolate escorrendo */
  content: ''; position: absolute; left: 0; right: 0; bottom: -30px; height: 42px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 44' preserveAspectRatio='none'%3E%3Cpath fill='%234A2418' d='M0 0H400V12H379C379 22 377 24 370 24C363 24 361 22 361 12H324C324 40 322 42 315 42C308 42 306 40 306 12H264C264 26 262 28 255 28C248 28 246 26 246 12H209C209 34 207 36 200 36C193 36 191 34 191 12H149C149 20 147 22 140 22C133 22 131 20 131 12H94C94 38 92 40 85 40C78 40 76 38 76 12H39C39 24 37 26 30 26C23 26 21 24 21 12H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.logo { width: 112px; height: 112px; margin: 0 auto 6px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.15; text-shadow: 0 3px 0 var(--choco); }
.hero .sub { font-family: 'Pacifico'; font-size: 20px; margin: 2px 0 6px; color: #FFF0F7; }
.hero p { margin: 0 auto; max-width: 420px; font-size: 14px; opacity: .95; }
.hero .chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none; }
.chip.wa { background: #fff; color: var(--pink-d); border-color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 0 14px 150px; }

/* ---------- promoção ---------- */
.promo {
  margin: -20px 0 16px; position: relative; z-index: 2; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; border: 2px dashed var(--mint);
}
.promo .ico { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--cyan), var(--mint)); }
.promo b { display: block; font-size: 15px; color: var(--choco); }
.promo span { font-size: 12.5px; color: var(--muted); }

.closed { margin: -26px 0 16px; position: relative; z-index: 2; background: var(--choco); color: #fff; border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 600; }

.sec-title { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 10px; }
.sec-title h2 { margin: 0; font-family: 'Pacifico'; font-weight: 400; font-size: 24px; color: var(--pink-d); }
.sec-title small { color: var(--muted); font-size: 12px; }

/* ---------- sabores ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 12px rgba(74,36,24,.08); display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.card.sel { border-color: var(--pink); }
.card .ph { position: relative; aspect-ratio: 4 / 4.4; background: var(--pink-l); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: absolute; top: 8px; left: 8px; background: var(--choco); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.card .st { position: absolute; bottom: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff; }
.card .st.ultimas { color: var(--warn); }
.card .st.esgotado { color: #fff; background: var(--danger); }
.card.out .ph img { filter: grayscale(.7) opacity(.6); }
.card .bd { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 14.5px; line-height: 1.25; color: var(--choco); }
.card .ds { font-size: 11.5px; color: var(--muted); margin: 0; flex: 1; }
.card .pr { font-weight: 800; color: var(--pink-d); font-size: 16px; }
.qty { display: flex; align-items: center; justify-content: space-between; background: var(--pink-xl); border-radius: 99px; padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--pink-d); font-size: 20px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); line-height: 1; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quick { display: flex; gap: 6px; }
.quick button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 0; font-size: 11.5px; font-weight: 700; color: var(--pink-d); }
.add-btn { border: 0; border-radius: 99px; background: var(--pink); color: #fff; font-weight: 700; padding: 9px; font-size: 13.5px; }
.add-btn:disabled { background: #D8C6CD; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin: 30px 0 0; }
.foot .script { color: var(--pink-d); font-size: 18px; display: block; margin-bottom: 4px; }
.foot a { color: var(--muted); }

/* ---------- barra do pedido ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(74,36,24,.12); transform: translateY(110%); transition: transform .25s; }
.bar.show { transform: none; }
.bar .in { max-width: 760px; margin: 0 auto; }
.prog { font-size: 12px; font-weight: 600; color: var(--choco); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.prog.ok { color: var(--ok); }
.track { height: 8px; border-radius: 99px; background: var(--pink-l); overflow: hidden; margin-bottom: 9px; }
.track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--mint)); transition: width .3s; }
.bar .row { display: flex; align-items: center; gap: 10px; }
.bar .sum { flex: 1; line-height: 1.2; }
.bar .sum b { font-size: 17px; color: var(--choco); }
.bar .sum small { display: block; color: var(--muted); font-size: 12px; }
.btn { border: 0; border-radius: 99px; padding: 13px 20px; font-weight: 700; font-size: 15px; background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(233,65,143,.35); }
.btn.green { background: #1FAF55; box-shadow: 0 4px 12px rgba(31,175,85,.3); }
.btn.ghost { background: transparent; color: var(--pink-d); box-shadow: none; }
.btn:disabled { opacity: .6; }

/* ---------- checkout ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: none; }
.sheet.open { display: block; }
.sheet .bg { position: absolute; inset: 0; background: rgba(58,29,20,.5); }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--cream); border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-width: 620px; margin: 0 auto; }
.sheet h2 { margin: 0 0 10px; font-family: 'Pacifico'; font-weight: 400; color: var(--pink-d); font-size: 24px; }
.x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--pink-l); color: var(--pink-d); font-size: 18px; }
.lines { background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; }
.lines div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.lines div:last-child { border: 0; }
.lines .tot { font-weight: 800; font-size: 15px; }
.lines .free { color: var(--ok); font-weight: 700; }
label.f { display: block; font-size: 12.5px; font-weight: 600; color: var(--choco-l); margin: 9px 0 4px; }
.in-f { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px; font-size: 15px; }
.in-f:focus { outline: none; border-color: var(--pink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #fff; border-radius: 14px; padding: 4px; border: 1.5px solid var(--line); }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 9px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--pink); color: #fff; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }
.hint.ok { color: var(--ok); font-weight: 600; }
.err { background: #FFE8E8; color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-top: 10px; display: none; }
.done { text-align: center; padding: 10px 4px 4px; }
.done .big { font-size: 54px; }
.done h3 { margin: 4px 0; color: var(--choco); }
.done p { color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%) translateY(calc(-100% - 40px)); background: var(--choco); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; z-index: 50; transition: transform .25s; max-width: 92vw; }
.toast.show { transform: translateX(-50%); }
