:root {
  --rose: #9d5566;
  --rose-deep: #7c3f4f;
  --rose-ink: #5a2c38;
  --blush: #f6e3e7;
  --blush-2: #fbeff1;
  --cream: #fffaf7;
  --card: #ffffff;
  --muted: #8f6f77;
  --line: #f0dfe3;
  --ifood: #ea1d2c;
  --wa: #25a35a;
  --shadow: 0 10px 30px -12px rgba(124, 63, 79, .28);
  --shadow-sm: 0 4px 14px -6px rgba(124, 63, 79, .25);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --script: "Great Vibes", cursive;
  --sans: "Quicksand", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--rose-ink);
  background: var(--cream);
  background-image: radial-gradient(var(--blush) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------- barra de progresso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #e79aa9, var(--rose), #e79aa9); }

/* ---------- topo ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 250, 247, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform .45s var(--ease);
}
.topbar.show { transform: none; }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-brand img { width: 40px; height: 40px; border-radius: 50%; }
.topbar-brand span { font-family: var(--script); font-size: 1.7rem; color: var(--rose); line-height: 1; }
.icon-btn { background: var(--blush-2); border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--rose); cursor: pointer; transition: transform .3s var(--bounce), background .2s; }
.icon-btn:hover { transform: scale(1.08); background: var(--blush); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; place-items: center; text-align: center;
  padding: 40px 16px 64px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #b56a7b 0%, var(--rose) 45%, var(--rose-deep) 100%);
  color: #fff;
}
.hero-inner { position: relative; z-index: 2; max-width: 560px; }
.logo-wrap { position: relative; width: min(36vw, 150px); margin: 0 auto 18px; animation: pop .9s var(--bounce) both; }
.hero-logo { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .45); animation: float 6s ease-in-out infinite; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; animation: rise .8s .4s var(--ease) forwards; }
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 34px; font-size: .85rem;
  text-decoration: none; opacity: 0; animation: rise .8s .8s var(--ease) forwards; }
.scroll-hint svg { animation: nudge 1.6s ease-in-out infinite; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 2; fill: var(--cream); }
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco { position: absolute; opacity: .55; animation: drift var(--t, 9s) ease-in-out infinite alternate; will-change: transform; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; position: relative;
  transition: transform .35s var(--bounce), box-shadow .3s, filter .2s; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(.96); }
.btn-ifood { background: var(--ifood); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-soft { background: #fff; color: var(--rose); }
.btn-block { width: 100%; }
.btn-ico { font-size: 1.1em; }

/* ---------- faixa de aviso ---------- */
.ribbon { background: var(--blush); color: var(--rose-deep); overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem;
  padding: 10px 0; border-block: 1px dashed #e7c3cb; }
.ribbon-track { display: inline-flex; gap: 48px; padding-left: 48px; animation: marquee 28s linear infinite; }
.ribbon-track span + span::before { content: "•"; margin-right: 48px; color: var(--rose); }

/* ---------- categorias (chips) ---------- */
.chips-bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 250, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
body.scrolled .chips-bar { top: 61px; }
.search-row { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .4s var(--ease); padding: 0 16px; }
.search-row.open { max-height: 80px; padding: 12px 16px 2px; }
.search-row input { width: 100%; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font: inherit; color: var(--rose-ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.search-row input:focus { border-color: #e2a9b5; box-shadow: 0 0 0 4px var(--blush); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--bounce); }
.chip:hover { transform: translateY(-2px); }
.chip.active { background: var(--rose); color: #fff; border-color: var(--rose); box-shadow: var(--shadow-sm); }
.chip-emoji { font-size: 1.05em; }

/* ---------- seções ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
.cat { padding-top: 34px; }
.cat-head { text-align: center; margin-bottom: 18px; }
.cat-emoji { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--blush);
  font-size: 1.9rem; margin-bottom: 4px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--blush); }
.cat-title { font-family: var(--script); font-weight: 400; color: var(--rose); font-size: clamp(2.3rem, 8vw, 3rem); margin: 0; line-height: 1.1; }
.cat-desc { margin: 4px auto 0; color: var(--muted); max-width: 42ch; }
.cat-channel { margin-top: 10px; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; gap: 14px; align-items: stretch; text-align: left; width: 100%; padding: 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; position: relative;
  transition: transform .4s var(--bounce), box-shadow .3s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.card:active { transform: scale(.98); }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-name { font-weight: 700; font-size: 1.02rem; margin: 2px 0 4px; line-height: 1.3; }
.card-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--rose); }
.price small { font-weight: 600; color: var(--muted); font-size: .78rem; margin-right: 3px; }
.card-thumb { flex: none; width: 104px; height: 104px; border-radius: 16px; overflow: hidden; background: var(--blush-2); position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.08); }
.thumb-emoji { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem;
  background: radial-gradient(circle at 30% 25%, #fff 0, var(--blush) 70%); }
.badge { position: absolute; top: -8px; left: 14px; background: #f3b7c3; color: var(--rose-ink); font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); animation: wiggle 3.5s ease-in-out infinite; }
.card.soldout { opacity: .55; filter: grayscale(.5); }
.card.soldout .badge { background: #ddd; color: #555; animation: none; }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.tag-ifood { background: #fde8ea; color: var(--ifood); }
.tag-wa { background: #e3f6ea; color: #1d7d45; }

/* ---------- como pedir ---------- */
.how { margin-top: 56px; text-align: center; }
.how h2 { color: var(--rose); font-size: clamp(2.4rem, 8vw, 3rem); margin: 0 0 16px; }
.how-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.how-card h3 { margin: 6px 0; }
.how-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.how-ico { font-size: 2.2rem; }
.how-note { margin-top: 10px !important; font-size: .88rem; font-weight: 600; color: var(--rose) !important; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.1rem; }

/* ---------- rodapé ---------- */
.footer { text-align: center; padding: 50px 16px calc(100px + env(safe-area-inset-bottom)); background: var(--rose); color: #fff;
  border-radius: 40px 40px 0 0; margin-top: 30px; }
.footer-logo { margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); }
.footer-line { margin: 4px 0; opacity: .92; }
.footer-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.footer-copy { font-size: .85rem; opacity: .8; }
.beat { display: inline-block; animation: beat 1.4s ease-in-out infinite; }

/* ---------- botão flutuante ---------- */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 163, 90, .7);
  transform: scale(0); transition: transform .5s var(--bounce); }
.fab.show { transform: scale(1); }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.2s ease-out infinite; }

/* ---------- detalhe do produto (bottom sheet) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(90, 44, 56, .45); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s; }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--cream);
  border-radius: 28px 28px 0 0; padding: 0 0 calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%);
  transition: transform .5s var(--ease); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.35); }
.sheet.open { transform: none; }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; border-radius: 28px; transform: translate(-50%, 60%) scale(.9); opacity: 0;
    transition: transform .5s var(--bounce), opacity .3s; }
  .sheet.open { transform: translate(-50%, 50%) scale(1); opacity: 1; }
  .sheet-grab { display: none; }
}
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: #e2c6cd; margin: 10px auto 0; position: absolute; left: 0; right: 0; z-index: 3; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); cursor: pointer; box-shadow: var(--shadow-sm); font-size: 1rem; }
.sheet-hero { height: 240px; background: var(--blush); overflow: hidden; border-radius: 28px 28px 0 0; }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; animation: zoomOut 1.2s var(--ease) both; }
.sheet-hero .thumb-emoji { font-size: 6rem; animation: pop .7s var(--bounce) both; }
.sheet-content { padding: 20px 20px 0; }
.sheet-content > * { animation: rise .55s var(--ease) both; }
.sheet-content > :nth-child(2) { animation-delay: .05s; } .sheet-content > :nth-child(3) { animation-delay: .1s; }
.sheet-content > :nth-child(4) { animation-delay: .15s; } .sheet-content > :nth-child(5) { animation-delay: .2s; }
.sheet-content > :nth-child(6) { animation-delay: .25s; }
.sheet-cat { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sheet-title { font-size: 1.5rem; margin: 4px 0 8px; }
.sheet-desc { color: var(--muted); line-height: 1.6; margin: 0 0 14px; white-space: pre-line; }
.sheet-price { font-size: 1.35rem; font-weight: 700; color: var(--rose); margin-bottom: 16px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 16px; display: grid; gap: 10px; }
.quote h4 { margin: 0; font-size: .95rem; }
.quote label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.quote label { min-width: 0; }
.quote input, .quote textarea { width: 100%; min-width: 0; font: inherit; color: var(--rose-ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); outline: none; }
.quote input:focus, .quote textarea:focus { border-color: #e2a9b5; }
.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soldout-note { background: #eee; color: #555; padding: 12px; border-radius: 14px; text-align: center; font-weight: 600; margin-bottom: 12px; }

/* ---------- toast e corações ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 30px); background: var(--rose-ink); color: #fff; padding: 11px 18px;
  border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.heart { position: fixed; pointer-events: none; z-index: 95; font-size: 18px; animation: heart 1s var(--ease) forwards; }

/* ---------- revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-pop { opacity: 0; transform: scale(.6) rotate(-8deg); transition: opacity .6s var(--ease), transform .7s var(--bounce); }
.reveal-pop.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal-left.in { opacity: 1; transform: none; }

@keyframes pop { from { opacity: 0; transform: scale(.5) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--x, 14px), var(--y, -24px)) rotate(var(--r, 25deg)); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-6deg); } 96% { transform: rotate(6deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }
@keyframes zoomOut { from { transform: scale(1.15); } to { transform: none; } }
@keyframes heart { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--hx), var(--hy)) scale(1.3) rotate(var(--hr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-pop, .reveal-left { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- link do painel ---------- */
.topbar-right { display: flex; align-items: center; gap: 8px; }
.adm-link { font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--rose); padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; transition: transform .3s var(--bounce); }
.adm-link:hover { transform: scale(1.06); }
.adm-hero { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 3; color: #fff;
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }

/* ---------- aviso "deslize para baixo" ---------- */
.swipe-hint { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 16px 0; padding: 14px 18px;
  background: #fff; border: 2px dashed #e7c3cb; border-radius: 20px; color: var(--rose-deep); font-size: 1.05rem;
  box-shadow: var(--shadow-sm); transition: opacity .5s var(--ease), transform .5s var(--ease), max-height .5s var(--ease), margin .5s, padding .5s;
  max-height: 120px; overflow: hidden; animation: rise .8s .6s var(--ease) both; }
.swipe-hint b { color: var(--rose); }
.swipe-hand { font-size: 1.5rem; display: inline-block; animation: swipe 1.6s ease-in-out infinite; }
.swipe-arrows { display: grid; gap: 1px; }
.swipe-arrows i { width: 10px; height: 10px; border-right: 3px solid var(--rose); border-bottom: 3px solid var(--rose); transform: rotate(45deg);
  animation: blink 1.4s ease-in-out infinite; }
.swipe-arrows i + i { animation-delay: .2s; }
.swipe-hint.gone { opacity: 0; transform: translateY(-10px); max-height: 0; padding-block: 0; margin-block: 0; border-width: 0; }
@keyframes swipe { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(6px); } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (min-width: 700px) { .swipe-hint { max-width: 520px; margin-inline: auto; } }
#sections .cat:first-child { padding-top: 16px; }
