/* ===========================================================
   PIPOQUE — Cardápio Digital + Delivery
   Sistema visual derivado do manual da marca
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,700&family=Caveat:wght@500;600;700&display=swap');

/* ---------- PALETA: POP (padrão) ---------- */
:root,
[data-palette="pop"] {
  --bg:        #FFF4E6;
  --bg-2:      #FFE9D2;
  --surface:   #FFFFFF;
  --surface-2: #FFF8F0;
  --ink:       #2C1A3D;
  --ink-soft:  #6B5670;
  --line:      rgba(44,26,61,.12);

  --p1: #FF4D8D;   /* hot pink   */
  --p2: #FFC42E;   /* sunny      */
  --p3: #2BBBD9;   /* cyan       */
  --p4: #7A4DD6;   /* grape      */
  --on-p1: #FFFFFF;
  --on-p2: #2C1A3D;
  --on-p3: #06303a;
  --on-p4: #FFFFFF;

  --hero-bg: var(--p1);
  --hero-ink: #FFFFFF;
  --pop-cream: #FFE7B8;
  --shadow: 44,26,61;
}

/* ---------- PALETA: PASTEL ---------- */
[data-palette="pastel"] {
  --bg:        #FFF9F3;
  --bg-2:      #FBEFE6;
  --surface:   #FFFFFF;
  --surface-2: #FFF6EF;
  --ink:       #5E4357;
  --ink-soft:  #9B8090;
  --line:      rgba(94,67,87,.14);

  --p1: #F58BA9;
  --p2: #F6C77E;
  --p3: #8FCFB6;
  --p4: #C3A2E6;
  --on-p1: #5a2236;
  --on-p2: #5a3d1a;
  --on-p3: #18402f;
  --on-p4: #3c2456;

  --hero-bg: var(--p1);
  --hero-ink: #5a2236;
  --pop-cream: #FBE3B8;
  --shadow: 94,67,87;
}

/* ---------- PALETA: NEON DARK ---------- */
[data-palette="neon"] {
  --bg:        #160F24;
  --bg-2:      #1E1533;
  --surface:   #221836;
  --surface-2: #2A1E44;
  --ink:       #FBF5FF;
  --ink-soft:  #B6A4D6;
  --line:      rgba(255,255,255,.14);

  --p1: #FF3D86;
  --p2: #FFD23F;
  --p3: #1FE3D0;
  --p4: #B06CFF;
  --on-p1: #2a0418;
  --on-p2: #2a2206;
  --on-p3: #053330;
  --on-p4: #1c0a35;

  --hero-bg: #1E1533;
  --hero-ink: #FBF5FF;
  --pop-cream: #FFE7B8;
  --shadow: 0,0,0;
}

/* ===========================================================
   BASE
   =========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--p2); color: var(--ink); }

.wordmark { font-family: 'Bagel Fat One', system-ui, cursive; font-weight: 400; }
.hand     { font-family: 'Caveat', cursive; font-weight: 700; }
.display  { font-family: 'Fredoka', sans-serif; }
h1,h2,h3,h4 { font-family: 'Fredoka', sans-serif; font-weight: 700; margin: 0; line-height: 1.05; }

/* scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 99px; }

/* ===========================================================
   LAYOUT HELPERS
   =========================================================== */
.page { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.hide-mobile { }
.only-mobile { display: none; }

/* ===========================================================
   MASCOTE
   =========================================================== */
.pipo .pc-eye { fill: var(--ink); }

/* ===========================================================
   ÁTOMOS
   =========================================================== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 20px;
  padding: 2px 14px; border-radius: 999px; transform: rotate(-3deg);
}
.pill { display: inline-flex; align-items:center; gap:6px; padding: 6px 14px; border-radius: 999px; font-family: 'Fredoka'; font-weight: 600; font-size: 13px; }
.b-pink  { background: var(--p1); color: var(--on-p1); }
.b-yellow{ background: var(--p2); color: var(--on-p2); }
.b-cyan  { background: var(--p3); color: var(--on-p3); }
.b-grape { background: var(--p4); color: var(--on-p4); }
.b-ink   { background: var(--ink); color: var(--bg); }
.b-soft  { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: none; line-height: 1;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--p1); color: var(--on-p1); box-shadow: 0 8px 18px -8px var(--p1); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 24px -8px var(--p1); }
.btn-yellow { background: var(--p2); color: var(--on-p2); box-shadow: 0 8px 18px -8px var(--p2); }
.btn-yellow:hover { filter: brightness(1.04); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { filter: brightness(1.15); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px #25D366; }
.btn-wa:hover { filter: brightness(1.04); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}

.iconbtn {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  transition: background .15s ease, transform .12s ease;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:active { transform: scale(.94); }

/* confetti dots layer */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti.dots {
  background-image: radial-gradient(rgba(255,255,255,.30) 2.5px, transparent 2.6px), radial-gradient(rgba(255,255,255,.30) 2.5px, transparent 2.6px);
  background-size: 32px 32px; background-position: 0 0, 16px 16px;
}
.confetti.dots-dark {
  background-image: radial-gradient(rgba(0,0,0,.10) 2.5px, transparent 2.6px), radial-gradient(rgba(0,0,0,.10) 2.5px, transparent 2.6px);
  background-size: 32px 32px; background-position: 0 0, 16px 16px;
}

/* ===========================================================
   APP BAR
   =========================================================== */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.appbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-lockup .wordmark { font-size: 26px; color: var(--ink); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-link {
  font-family: 'Fredoka'; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--bg); }

/* cart button */
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--p1); color: var(--on-p1);
  border-radius: 999px; font-family: 'Fredoka'; font-weight: 700; font-size: 12px;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

/* palette switcher inline */
.pal-inline { display: flex; gap: 7px; align-items: center; }
.pal-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; transition: transform .15s ease;
}
.pal-dot:hover { transform: scale(1.14); }
.pal-dot[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.1); }
.pal-dot.pop    { background: linear-gradient(135deg,#FF4D8D 50%,#FFC42E 50%); }
.pal-dot.pastel { background: linear-gradient(135deg,#F58BA9 50%,#8FCFB6 50%); }
.pal-dot.neon   { background: linear-gradient(135deg,#160F24 50%,#1FE3D0 50%); }

/* ===========================================================
   HERO HOME
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg); color: var(--hero-ink);
  border-radius: 0 0 38px 38px;
}
.hero-confetti {
  background-image: radial-gradient(rgba(255,255,255,.20) 3px, transparent 3.2px), radial-gradient(rgba(255,255,255,.12) 4px, transparent 4.2px);
  background-size: 46px 46px, 72px 72px; background-position: 0 0, 30px 24px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding: 46px 0 56px; position: relative; }
.hero h1 { font-family: 'Bagel Fat One'; font-size: clamp(46px, 8vw, 92px); line-height: .92; color: var(--hero-ink); }
.hero-sub { font-size: clamp(16px,2.2vw,20px); max-width: 440px; line-height: 1.45; margin-top: 16px; opacity: .96; }
.hero-mascot { display: grid; place-items: center; }
.hero-mascot svg { width: min(330px, 78%); height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.28)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@media (prefers-reduced-motion: reduce) { .hero-mascot svg { animation: none; } }

.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.info-chip {
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--surface) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 22%, transparent);
  padding: 12px 16px; border-radius: 16px;
}
.info-chip .ic { font-size: 22px; }
.info-chip .t { font-family: 'Fredoka'; font-weight: 600; font-size: 14px; line-height: 1.15; }
.info-chip .s { font-size: 12.5px; opacity: .82; }

/* ===========================================================
   SECTIONS
   =========================================================== */
.sec { padding: 54px 0 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-kicker {
  font-family: 'Fredoka'; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--p1); background: color-mix(in srgb, var(--p1) 14%, transparent);
  padding: 6px 13px; border-radius: 999px; display: inline-block;
}
.sec-title { font-size: clamp(26px, 4vw, 40px); color: var(--ink); margin-top: 12px; }
.sec-sub { color: var(--ink-soft); font-size: 16px; max-width: 560px; line-height: 1.5; margin-top: 8px; }

/* ===========================================================
   PRODUCT VISUAL (pote)
   =========================================================== */
.pvisual {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-radius: 18px;
}
.pvisual .glyph { position: relative; z-index: 2; font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.pvisual .pipo { position: relative; z-index: 2; }
.pvisual-img { display: block; object-fit: cover; }

/* logo oficial (balde de pipoca) */
.ppq-logo { display: block; }
.hero-logo { filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .20)); }

/* product card */
.prod-card { overflow: hidden; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -22px rgba(var(--shadow), .55); border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.prod-media { position: relative; aspect-ratio: 16 / 11; }
.prod-media .badge-row { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 3; flex-wrap: wrap; }
.prod-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prod-name { font-family: 'Fredoka'; font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.1; }
.prod-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.price { font-family: 'Fredoka'; font-weight: 700; font-size: 21px; color: var(--ink); white-space: nowrap; }
.price small { font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.add-btn {
  width: 44px; height: 44px; border-radius: 14px; border: none;
  background: var(--p1); color: var(--on-p1); font-size: 24px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; transition: transform .12s ease, filter .15s ease;
  box-shadow: 0 8px 16px -8px var(--p1);
}
.add-btn:hover { filter: brightness(1.06); }
.add-btn:active { transform: scale(.9); }

/* combo card (home) */
.combo-card { overflow: hidden; position: relative; display: flex; flex-direction: column; }
.combo-card .prod-media { aspect-ratio: 16/10; }

/* category chips */
.cat-bar { display: flex; gap: 9px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fredoka'; font-weight: 600; font-size: 14.5px;
  padding: 10px 17px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-soft); transition: all .15s ease;
}
.cat-chip:hover { border-color: color-mix(in srgb, var(--ink) 24%, transparent); color: var(--ink); }
.cat-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-chip .em { font-size: 17px; }

.grid-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid-combo { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

/* category section header in menu */
.cat-title { font-family: 'Fredoka'; font-weight: 700; font-size: 24px; color: var(--ink); display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; scroll-margin-top: 150px; }
.cat-title .em { font-size: 26px; }

/* ===========================================================
   INFO / SOBRE
   =========================================================== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.about-card { padding: 24px; }
.about-card .ic { font-size: 30px; }
.about-card h4 { font-size: 18px; margin: 12px 0 6px; }
.about-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ===========================================================
   FOOTER
   =========================================================== */
.foot { background: var(--hero-bg); color: var(--hero-ink); margin-top: 56px; border-radius: 38px 38px 0 0; position: relative; overflow: hidden; }
.foot-inner { padding: 44px 0 40px; position: relative; }
.foot-social { display: flex; gap: 12px; }
.soc-btn {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 26%, transparent); color: var(--hero-ink);
  transition: transform .14s ease, background .15s ease;
}
.soc-btn:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--surface) 34%, transparent); }

/* ===========================================================
   CART DRAWER
   =========================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20,10,28,.5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface); }

.citem { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.citem:last-child { border-bottom: none; }
.citem-media { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; overflow: hidden; }
.citem-name { font-family: 'Fredoka'; font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.15; }
.citem-opt { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 700; display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 26px; text-align: center; font-family: 'Fredoka'; font-weight: 700; font-size: 15px; }

.summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 7px; color: var(--ink-soft); }
.summary-row.total { font-family: 'Fredoka'; font-weight: 700; font-size: 22px; color: var(--ink); margin-top: 10px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state svg { opacity: .5; margin: 0 auto 14px; }

/* ===========================================================
   FORMS
   =========================================================== */
.field { margin-bottom: 15px; }
.field label { display: block; font-family: 'Fredoka'; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 13px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--p1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p1) 22%, transparent);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkline { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.switch { position: relative; width: 46px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s ease; }
.switch .track::before { content:''; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--p1); }
.switch input:checked + .track::before { transform: translateX(19px); }

/* pix box */
.pix-box { background: var(--surface-2); border: 1.5px dashed var(--p3); border-radius: 16px; padding: 16px; }
.pix-key { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-top: 10px; }
.pix-key code { font-family: 'Nunito'; font-weight: 700; font-size: 14px; color: var(--ink); word-break: break-all; flex: 1; }

/* upload */
.upload {
  border: 2px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center;
  background: var(--surface-2); transition: border-color .15s ease, background .15s ease; cursor: pointer;
}
.upload:hover { border-color: var(--p1); background: var(--surface); }
.upload.has { border-style: solid; border-color: var(--p3); }
.upload-prev { max-height: 180px; border-radius: 10px; margin: 0 auto; }

/* steps */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 8px; }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: 'Fredoka'; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--ink-soft); border: 1.5px solid var(--line); }
.step.active .num { background: var(--p1); color: var(--on-p1); border-color: var(--p1); }
.step.done .num { background: var(--p3); color: var(--on-p3); border-color: var(--p3); }
.step .lbl { font-family: 'Fredoka'; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.step.active .lbl { color: var(--ink); }
.step-bar { width: 22px; height: 2px; background: var(--line); }

/* ===========================================================
   CHECKOUT PAGE
   =========================================================== */
.checkout-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: start; }
.summary-card { padding: 22px; position: sticky; top: 86px; }

/* confirmation */
.confirm-hero { text-align: center; padding: 30px 20px; }
.confirm-hero .big-mascot { width: 130px; height: 130px; margin: 0 auto 16px; animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }

/* ===========================================================
   MODAL (builder / generic)
   =========================================================== */
.modal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; }
.modal-bg { position: absolute; inset: 0; background: rgba(20,10,28,.55); backdrop-filter: blur(4px); }
.modal {
  position: relative; background: var(--bg); border-radius: 26px; width: min(560px, 100%);
  max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); animation: modalin .28s cubic-bezier(.34,1.4,.64,1);
}
@keyframes modalin { 0% { transform: translateY(24px) scale(.96); opacity: 0 } 100% { transform: none; opacity: 1 } }
.modal-head { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--surface); }

/* builder option */
.opt-grid { display: grid; gap: 10px; }
.opt-grid.cols2 { grid-template-columns: 1fr 1fr; }
.opt-grid.cols3 { grid-template-columns: repeat(3,1fr); }
.opt {
  border: 1.5px solid var(--line); border-radius: 15px; padding: 13px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); transition: all .14s ease; text-align: left;
}
.opt:hover { border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
.opt.sel { border-color: var(--p1); background: color-mix(in srgb, var(--p1) 9%, var(--surface)); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--p1) 22%, transparent); }
.opt .o-name { font-family: 'Fredoka'; font-weight: 600; font-size: 15px; }
.opt .o-price { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.opt-block { text-align: center; flex-direction: column; gap: 6px; padding: 16px 12px; }
.opt-block .o-em { font-size: 30px; }

/* ===========================================================
   TOAST
   =========================================================== */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 13px 20px; border-radius: 999px;
  font-family: 'Fredoka'; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 16px 36px -12px rgba(0,0,0,.45); animation: toastin .3s cubic-bezier(.34,1.4,.64,1);
}
@keyframes toastin { 0% { transform: translateY(20px); opacity: 0 } 100% { transform: none; opacity: 1 } }

/* ===========================================================
   MOBILE BOTTOM NAV
   =========================================================== */
.botnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
}
.botnav-inner { display: flex; justify-content: space-around; align-items: center; }
.botnav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: 'Fredoka'; font-weight: 600; font-size: 11px; color: var(--ink-soft);
  padding: 5px 14px; border-radius: 14px; position: relative;
}
.botnav a.active { color: var(--p1); }
.botnav a svg { width: 24px; height: 24px; }
.botnav .bn-count { position: absolute; top: 0; right: 8px; min-width: 16px; height: 16px; background: var(--p1); color: var(--on-p1); border-radius: 99px; font-size: 10px; display: grid; place-items: center; font-weight: 700; padding: 0 3px; }

/* ===========================================================
   ADMIN
   =========================================================== */
.admin-bg { min-height: 100vh; background: var(--bg-2); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.login-card { width: min(400px, 100%); padding: 32px; position: relative; z-index: 2; }

.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--bg); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand-lockup .wordmark { color: var(--bg); }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px;
  font-family: 'Fredoka'; font-weight: 600; font-size: 15px; color: color-mix(in srgb, var(--bg) 70%, transparent);
  transition: background .14s ease, color .14s ease;
}
.admin-nav-item:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }
.admin-nav-item.active { background: var(--p1); color: var(--on-p1); }
.admin-nav-item svg { width: 20px; height: 20px; }
.admin-main { padding: 28px 32px 60px; overflow-x: hidden; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; }
.admin-head p { color: var(--ink-soft); margin: 6px 0 0; font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px 20px; }
.stat .n { font-family: 'Fredoka'; font-weight: 700; font-size: 30px; color: var(--ink); line-height: 1; }
.stat .l { color: var(--ink-soft); font-size: 13px; margin-top: 6px; font-family: 'Fredoka'; font-weight: 600; }

/* admin product table */
.adm-table { width: 100%; }
.adm-prow {
  display: grid; grid-template-columns: 56px 2fr 1fr 90px 92px 88px 80px; gap: 12px; align-items: center;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px;
  transition: box-shadow .18s ease;
}
.adm-prow:hover { box-shadow: 0 10px 26px -18px rgba(var(--shadow),.5); }
.adm-prow .pthumb { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; }
.adm-pname { font-family: 'Fredoka'; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.adm-pcat { font-size: 12.5px; color: var(--ink-soft); }
.adm-thead { display: grid; grid-template-columns: 56px 2fr 1fr 90px 92px 88px 80px; gap: 12px; padding: 0 16px 8px; font-family: 'Fredoka'; font-weight: 600; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.mini-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }

.tabline { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabline button { font-family: 'Fredoka'; font-weight: 600; font-size: 15px; color: var(--ink-soft); background: none; border: none; padding: 12px 6px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabline button.active { color: var(--ink); border-bottom-color: var(--p1); }

.panel { padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel-title { font-family: 'Fredoka'; font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.panel-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }

/* zone editor */
.zone-row { display: grid; grid-template-columns: 1fr 130px 44px; gap: 10px; align-items: center; margin-bottom: 10px; }

/* order card admin */
.order-card { padding: 18px 20px; margin-bottom: 14px; }
.order-status { font-family: 'Fredoka'; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.st-novo { background: color-mix(in srgb, var(--p1) 16%, transparent); color: var(--p1); }
.st-preparo { background: color-mix(in srgb, var(--p2) 22%, transparent); color: var(--on-p2); }
.st-entregue { background: color-mix(in srgb, var(--p3) 20%, transparent); color: var(--on-p3); }
.st-cancelado { background: color-mix(in srgb, var(--ink) 13%, transparent); color: var(--ink-soft); }

/* badge de pagamento (admin) */
.pay-badge { font-family: 'Fredoka'; font-weight: 700; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pay-approved { background: color-mix(in srgb, var(--p3) 24%, transparent); color: var(--on-p3); }
.pay-pending { background: color-mix(in srgb, var(--p2) 26%, transparent); color: var(--on-p2); }
.pay-off { background: color-mix(in srgb, var(--p1) 16%, transparent); color: var(--p1); }

/* spinner (tela de pagamento) */
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-top-color: var(--p1); animation: ppq-spin .7s linear infinite; }
@keyframes ppq-spin { to { transform: rotate(360deg); } }

/* horário de funcionamento — rodapé (destaca o dia de hoje) */
.biz-hours { display: grid; gap: 2px; font-size: 13.5px; min-width: 210px; }
.bh-row { display: flex; justify-content: space-between; gap: 16px; padding: 1px 0; opacity: .82; }
.bh-row.today { opacity: 1; font-weight: 700; }
.bh-day { display: inline-flex; align-items: center; gap: 7px; }
.bh-now { font: 700 10px 'Fredoka'; background: var(--p2); color: var(--on-p2); padding: 1px 7px; border-radius: 999px; letter-spacing: .02em; }
.bh-time { white-space: nowrap; }
.bh-deliv-line { margin-top: 7px; font-size: 12.5px; opacity: .8; }

/* horário de funcionamento — editor no admin */
.sched-list { display: grid; gap: 2px; margin-top: 8px; }
.sched-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sched-row.closed { opacity: .72; }
.sched-day { font-family: 'Fredoka'; font-weight: 700; width: 92px; flex-shrink: 0; }
.sched-time { width: 124px; padding: 9px 11px; }

/* editor do montador (tamanhos) */
.build-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.build-icon { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.build-thumb { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); flex-shrink: 0; }
.build-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.build-thumb-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--p1); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.build-photo-btn { width: 38px; height: 38px; flex-shrink: 0; }
/* foto no botão de tamanho do montador (loja) */
.opt-block .o-em-img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.order-status-select {
  border: none; cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 26px; max-width: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%232C1A3D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}

/* glyph picker */
.glyph-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.glyph-pick button { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 22px; display: grid; place-items: center; }
.glyph-pick button.sel { border-color: var(--p1); background: color-mix(in srgb, var(--p1) 10%, var(--surface)); }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick button { width: 38px; height: 38px; border-radius: 11px; border: 2.5px solid transparent; }
.color-pick button.sel { border-color: var(--ink); transform: scale(1.08); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 36px 0 44px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-mascot { order: -1; }
  .hero-mascot svg { width: 200px; }
  .info-strip { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; flex-direction: row; overflow-x: auto; z-index: 50; padding: 8px; gap: 4px; border-radius: 22px 22px 0 0; }
  .admin-side .side-brand, .admin-side .side-foot { display: none; }
  .admin-nav-item { flex-direction: column; gap: 4px; font-size: 11px; padding: 8px 12px; flex-shrink: 0; }
  .admin-nav-item span.lbl { white-space: nowrap; }
  .admin-main { padding: 20px 16px 110px; }
  .adm-prow { grid-template-columns: 50px 1fr auto; grid-template-areas: "thumb info actions" "thumb toggles toggles"; row-gap: 10px; }
  .adm-thead { display: none; }
  .adm-prow .pthumb { grid-area: thumb; }
  .adm-prow .pinfo { grid-area: info; }
  .adm-prow .ptoggles { grid-area: toggles; display: flex; gap: 18px; }
  .adm-prow .pactions { grid-area: actions; }
  .adm-prow .pprice-cell { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .botnav { display: block; }
  body.has-botnav { padding-bottom: 76px; }
  .appbar-inner { height: 60px; }
  .brand-lockup .wordmark { font-size: 22px; }
  .grid-prod { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 13px; }
  .grid-combo { grid-template-columns: 1fr; }
  .prod-name { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .sec { padding: 38px 0 6px; }
  .drawer { width: 100%; }
  .only-mobile { display: revert; }
  .opt-grid.cols3 { grid-template-columns: 1fr 1fr; }
  .zone-row { grid-template-columns: 1fr 100px 40px; }
}

@media (max-width: 420px) {
  .grid-prod { grid-template-columns: 1fr 1fr; gap: 11px; }
  .prod-body { padding: 12px 12px 13px; }
  .price { font-size: 19px; }
}

/* utility */
.divider { height: 1px; background: var(--line); margin: 18px 0; border: none; }
.link-accent { color: var(--p1); font-weight: 700; cursor: pointer; }
.link-accent:hover { text-decoration: underline; }
.shake { animation: shake .4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
