/*
  VOICE: divertido e cheio de energia, como uma revista em quadrinhos de ninja.
  IDEA: cada produto é um quadro de HQ — contorno preto grosso e sombra chapada.
  PICTURE: telhados à noite, uma pizza no lugar da lua e um ninja entregador.
  COLOUR/TYPE: verde-ninja dominante, tinta preta de apoio, laranja de pizza como destaque. Bangers nos títulos, Nunito no texto.
  LAYOUT: topo verde de ponta a ponta; cardápio em quadros; sacola sempre a um toque.
*/
:root {
  color-scheme: light;
  --ink: #0e1a12;
  --ink-2: #3f5246;
  --ink-3: #6f8276;
  --paper: #eef5e4;
  --card: #fffdf3;
  --line: #0e1a12;
  --soft-line: #cfdcc5;
  --green: #1f8a3e;
  --green-d: #0f3d22;
  --green-dd: #0a2617;
  --green-soft: #dcf0dc;
  --orange: #ff7a1a;
  --orange-d: #e8630a;
  --yellow: #ffc93c;
  --red: #d62839;
  --red-soft: #fde5e7;
  --amber-soft: #fff1cc;
  --r: 16px;
  --hard: 4px 4px 0 var(--ink);
  --hard-lg: 6px 6px 0 var(--ink);
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --comic: "Bangers", "Impact", "Arial Black", system-ui, sans-serif;
}
:root[data-theme=dark], :root[data-theme=light] { color-scheme: light; }
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; font: 16px/1.5 var(--font); color: var(--ink); overflow-x: clip;
  background: radial-gradient(circle, rgba(31,138,62,.09) 1.2px, transparent 1.3px) 0 0 / 14px 14px, var(--paper);
}
body.noscroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); font-weight: 700; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.boot { min-height: 60vh; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--ink-2); padding: 24px; font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--ink); background: var(--card); padding: 10px 18px; min-height: 44px;
  border-radius: 999px; font-weight: 800; cursor: pointer; text-decoration: none; color: var(--ink);
  box-shadow: var(--hard); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--orange); color: #fff; font-family: var(--comic); font-weight: 400; font-size: 20px; letter-spacing: 1px; text-shadow: 1px 1px 0 rgba(0,0,0,.25); }
.btn.primary:hover { background: var(--orange-d); }
.btn.primary:disabled { background: #c9d3c3; color: #fff; cursor: not-allowed; box-shadow: none; transform: none; text-shadow: none; }
.btn.big { width: 100%; padding: 14px 18px; font-size: 22px; }
.btn.sm { padding: 6px 12px; min-height: 36px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.btn.sm.primary { font-size: 16px; }
.btn.ghost { background: var(--card); }
.btn.danger { color: var(--red); }
.btn.armed { background: var(--red); color: #fff; }
.btn.wa { background: #25a85a; color: #fff; width: 100%; }
.link { background: none; border: 0; color: var(--green); font-weight: 800; cursor: pointer; padding: 6px 0; text-decoration: none; }

/* Topo */
.hero {
  position: relative; color: #f1f8ee; padding: 26px max(5vw, 16px) 0;
  background:
    radial-gradient(circle, rgba(255,255,255,.07) 1.3px, transparent 1.4px) 0 0 / 10px 10px,
    radial-gradient(900px 420px at 80% 10%, #1f6b38 0%, transparent 70%),
    linear-gradient(180deg, var(--green-d), var(--green-dd));
  border-bottom: 4px solid var(--ink);
}
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: end; }
.hero-text { display: grid; gap: 14px; padding-bottom: 28px; align-self: center; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { font-family: var(--comic); font-weight: 400; font-size: clamp(46px, 7vw, 72px); letter-spacing: 2px; line-height: .95; color: #fff; text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.brand .sub { margin: 4px 0 0; color: var(--yellow); font-weight: 800; font-size: 15px; }
.logo { width: 72px; height: 72px; flex: none; filter: drop-shadow(3px 3px 0 var(--ink)); animation: spin-in .9s cubic-bezier(.2,.9,.3,1.3) both; }
.logo svg { width: 100%; height: 100%; display: block; }
.brand.sm .logo { width: 38px; height: 38px; filter: drop-shadow(2px 2px 0 var(--ink)); }
@keyframes spin-in { from { transform: rotate(-200deg) scale(.4); opacity: 0; } }
.tagline { margin: 0; font-size: 18px; font-weight: 700; color: #d9ecd6; max-width: 30ch; text-wrap: balance; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; background: var(--card); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa59d; border: 2px solid var(--ink); }
.status.open .dot { background: #3ddc6e; }
.status.closed { background: #ffe0e3; }
.hero-art { width: 100%; height: auto; display: block; margin-bottom: -4px; }
.hero-art .moon { transform-origin: 300px 92px; animation: moon 30s linear infinite; }
.hero-art .star { transform-origin: 86px 87px; animation: star 2.4s linear infinite; }
@keyframes moon { to { transform: rotate(360deg); } }
@keyframes star { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .moon, .hero-art .star, .logo { animation: none; } }
.facts { list-style: none; margin: 0 auto -34px; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; top: 0; transform: translateY(50%); }
.facts li { background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--hard); padding: 10px 14px; display: grid; }
.facts li:first-child { background: var(--yellow); }
.facts b { font-size: 17px; font-weight: 900; white-space: nowrap; }
.facts span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero + * { margin-top: 64px !important; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 6px; }
  .hero-text { padding-bottom: 4px; }
  .hero-art { max-width: 460px; justify-self: center; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); transform: translateY(40%); }
  .hero + * { margin-top: 84px !important; }
}

.demo-note { max-width: 1100px; margin: 12px auto 0; padding: 10px 14px; background: var(--amber-soft); border: 2px dashed var(--ink); border-radius: 12px; font-size: 14px; }
.track-banner { display: flex; align-items: center; gap: 10px; max-width: 1100px; margin: 14px auto 0; padding: 12px 16px; background: var(--green); color: #fff; border: 3px solid var(--ink); box-shadow: var(--hard); border-radius: 14px; text-decoration: none; font-weight: 700; }
@media (max-width: 1140px) { .demo-note, .track-banner { margin-left: 16px; margin-right: 16px; } }
.track-banner .arrow { margin-left: auto; font-size: 20px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,201,60,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,201,60,0); } }

/* Topo com vídeo */
.hero.has-video { min-height: clamp(440px, 62vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; overflow: visible; }
.hero-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--green-dd); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s; }
.hero-video video.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,38,23,.92) 0%, rgba(10,38,23,.65) 45%, rgba(10,38,23,.15) 100%),
  linear-gradient(0deg, rgba(10,38,23,.85) 0%, transparent 45%),
  radial-gradient(circle, rgba(0,0,0,.18) 1.3px, transparent 1.4px) 0 0 / 6px 6px; }
.hero.has-video .hero-inner, .hero.has-video .facts { position: relative; z-index: 1; }
.hero.has-video .hero-inner, .hero.has-video .facts { width: 100%; }
.hero.has-video .hero-text { padding-bottom: 40px; }
.hero-space { min-height: 1px; }
.ig-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; min-height: 44px; border-radius: 999px; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); color: #fff; font-weight: 800; text-decoration: none; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ig-link svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .hero.has-video { min-height: 560px; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,38,23,.95) 0%, rgba(10,38,23,.7) 50%, rgba(10,38,23,.25) 100%), radial-gradient(circle, rgba(0,0,0,.18) 1.3px, transparent 1.4px) 0 0 / 6px 6px; }
}

/* Logo da pizzaria */
.brand-logo { margin: 0; line-height: 0; }
.brand-logo .brand-img { width: clamp(240px, 32vw, 430px); height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 1.5px rgba(255,255,255,.8)) drop-shadow(0 10px 22px rgba(0,0,0,.6)); animation: logo-in .7s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes logo-in { from { transform: scale(.85) rotate(-3deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-logo .brand-img { animation: none; } }
.hero-text > .sub { margin: -6px 0 0; color: var(--yellow); font-weight: 800; font-size: 15px; letter-spacing: .5px; }
@media (max-width: 760px) { .brand-logo .brand-img { width: min(80vw, 340px); } }
.cats-logo { flex: none; position: sticky; left: 0; z-index: 1; display: grid; place-content: center; width: 66px; height: 46px; margin: -6px 4px -6px 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.cats-logo img { width: 66px; height: auto; display: block; }
.top-logo { height: 42px; width: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.8)); }
.topbar { gap: 10px; }
.brand.sm .head-img { width: 58px; height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.8)); }
.login-brand { display: grid; justify-items: center; gap: 6px; text-align: center; }
.login-brand .brand-img { width: 260px; height: auto; }
.login-brand h1 { font-family: var(--comic); font-weight: 400; font-size: 26px; letter-spacing: 1px; }

/* Topo com fotos reais (fundo preto das fotos + verde ninja) */
.hero.has-photos { background: radial-gradient(700px 380px at 78% 30%, rgba(31,138,62,.35), transparent 70%), radial-gradient(circle, rgba(255,255,255,.05) 1.3px, transparent 1.4px) 0 0 / 10px 10px, #0b0d0a; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; display: none; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease; }
.hero-slides img.on { opacity: 1; animation: kenburns 6s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero-trio { position: relative; height: 430px; margin-bottom: 26px; }
.hero-trio figure { position: absolute; margin: 0; width: 46%; aspect-ratio: 4 / 5; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 8px 8px 0 var(--green); background: #000; }
.hero-trio img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.hero-trio figure:hover img { transform: scale(1.06); }
.hero-trio figure:nth-child(1) { left: 0; top: 40px; transform: rotate(-5deg); z-index: 1; }
.hero-trio figure:nth-child(2) { left: 27%; top: 0; transform: rotate(2deg); z-index: 3; box-shadow: 8px 8px 0 var(--orange); }
.hero-trio figure:nth-child(3) { right: 0; top: 56px; transform: rotate(6deg); z-index: 2; }
.cta { justify-self: start; font-size: 24px; padding: 10px 28px; }
.hero:not(.has-photos):not(.has-video) .cta { display: none; }
@media (max-width: 760px) {
  .hero.has-photos { min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero.has-photos .hero-slides { display: block; }
  .hero.has-photos .hero-shade { background: linear-gradient(0deg, rgba(11,13,10,.97) 0%, rgba(11,13,10,.75) 45%, rgba(11,13,10,.1) 75%, rgba(11,13,10,.35) 100%); }
  .hero.has-photos .hero-inner, .hero.has-photos .facts { position: relative; z-index: 1; width: 100%; }
  .hero-trio { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-slides img.on { animation: none; } }

/* Topo minimalista: 3 fotos escurecidas ocupando o fundo, conteúdo no centro */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-actions .cta, .hero-actions .status, .hero-actions .ig-link { justify-self: auto; }
.hero-bg { display: none; }
@media (min-width: 761px) {
  .hero.has-photos { min-height: min(80vh, 740px); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; background: #000; }
  .hero.has-photos .hero-slides { display: none; }
  .hero-bg { display: grid; position: absolute; inset: 0; overflow: hidden; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: #000; }
  .hero-bg .col { position: relative; overflow: hidden; }
  .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; transition: opacity 1.8s ease; filter: brightness(.4) saturate(1.1); transform: scale(1.1); }
  .hero-bg img.on { opacity: 1; animation: drift 16s ease-in-out infinite alternate; }
  .hero-bg .col:nth-child(2) img.on { animation-delay: -6s; animation-direction: alternate-reverse; }
  .hero-bg .col:nth-child(3) img.on { animation-delay: -11s; }
  .hero-veil { position: absolute; inset: 0; background:
    radial-gradient(ellipse 55% 60% at 50% 45%, rgba(0,0,0,.55), rgba(0,0,0,.15) 70%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 18%); }
  .hero.has-photos .hero-inner { position: relative; z-index: 1; grid-template-columns: 1fr; justify-items: center; text-align: center; width: 100%; }
  .hero.has-photos .hero-text { justify-items: center; padding-bottom: 64px; gap: 16px; }
  .hero.has-photos .brand-logo .brand-img { width: clamp(300px, 30vw, 460px); }
  .hero.has-photos .tagline { max-width: 46ch; font-size: 19px; color: #e8efe4; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
  .hero.has-photos .hero-actions { justify-content: center; }
  .hero.has-photos .facts { position: relative; z-index: 1; width: 100%; }
}
@keyframes drift { from { transform: scale(1.08) translate(-1.5%, -1.5%); } to { transform: scale(1.2) translate(1.5%, 1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img.on { animation: none; } }
@media (max-width: 760px) {
  .hero.has-photos .hero-text { justify-items: center; text-align: center; }
  .hero.has-photos .hero-actions { justify-content: center; }
  .hero.has-photos .tagline { max-width: 34ch; }
}

/* Vitrine "Direto do forno" */
.reels { background: #0b0d0a; color: #f3eee2; padding: 22px 0 26px; margin-top: 18px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.reels-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 0 max(5vw, 16px); max-width: 1180px; margin: 0 auto 12px; }
.reels-head h2 { font-family: var(--comic); font-weight: 400; font-size: 34px; letter-spacing: 1.5px; color: var(--yellow); }
.reels-head p { margin: 0; color: #a9b8a6; font-weight: 700; font-size: 14px; }
.reels-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px max(5vw, 16px) 10px; scroll-padding-inline: max(5vw, 16px); scroll-snap-type: x mandatory; scrollbar-width: none; }
@media (min-width: 1260px) { .reels-row { padding-left: calc((100% - 1100px) / 2); scroll-padding-inline: calc((100% - 1100px) / 2); } }
.reel { position: relative; flex: none; width: clamp(196px, 58vw, 250px); border: 3px solid #26301f; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: #141812; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.reel:hover { transform: translateY(-3px); border-color: var(--green); }
.reel.na { opacity: .7; }
.reel-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #000; cursor: pointer; color: inherit; }
.reel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, opacity .9s ease; }
.reel-photo img.fade { opacity: 0; }
.reel-photo img.fade.on { opacity: 1; }
.reel-bars { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; z-index: 1; }
.reel-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); }
.reel-bars i.on { background: #fff; }
.reel:hover .reel-photo img.on { transform: scale(1.05); }
.reel-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 48px 12px 10px; text-align: left; display: grid; gap: 2px; background: linear-gradient(0deg, rgba(0,0,0,.92) 10%, transparent); color: #fff; }
.reel-kind { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--yellow); }
.reel-cap b { font-size: 15.5px; font-weight: 900; line-height: 1.2; }
.reel-flv { font-size: 12.5px; line-height: 1.3; color: #d6dfd2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-foot { display: grid; gap: 8px; padding: 10px 12px 12px; margin-top: auto; }
.reel-price { color: #fff; font-size: 18px; font-weight: 900; white-space: nowrap; }
.reel.na .reel-price { font-size: 13px; color: #f0b9b9; }
.reel-btns { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.reel-btns .btn { width: 100%; }
.reel-edit { background: none; border: 2px solid #4b5a45; border-radius: 999px; color: #e5efe2; font-weight: 800; cursor: pointer; padding: 6px 12px; min-height: 38px; font-size: 13.5px; }
.reel-edit:hover { border-color: var(--yellow); color: var(--yellow); }
.reel-btns .btn.sm.primary { font-size: 16px; padding: 5px 12px; box-shadow: 2px 2px 0 #000; border-color: #000; }
.reel-btns .btn.added { background: var(--green); }
.preset-note { margin: 6px 0 0 !important; display: inline-block; background: var(--yellow); color: var(--ink) !important; font-weight: 800; font-size: 13px !important; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.reels + .menu .cat:first-child { padding-top: 22px; }
.cats + .reels { margin-top: 0; }

/* Carrossel (computador) */
.reels-stage { position: relative; }
.reels-arrow, .reels-dots { display: none; }
.reels.carousel { overflow: hidden; }
.reels.carousel .reels-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 4px; }
.reels.carousel .reels-row { display: grid; justify-content: center; align-items: stretch; overflow: visible; padding: 10px 0 14px; scroll-snap-type: none; }
.reels.carousel .reel { grid-area: 1 / 1; width: 250px; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s, opacity .5s, border-color .2s; }
.reels.carousel .reel:hover { transform: none; }
.reels.carousel .reel[data-off="0"] { border-color: var(--yellow); box-shadow: 0 18px 50px rgba(0,0,0,.6), 6px 6px 0 var(--orange); }
.reels.carousel .reel[data-off="1"] { filter: blur(1.5px) brightness(.62); cursor: pointer; }
.reels.carousel .reel[data-off="2"] { filter: blur(4px) brightness(.4); cursor: pointer; }
.reels.carousel .reel[data-off="out"] { opacity: 0; pointer-events: none; }
.reels.carousel .reel:not([data-off="0"]) * { pointer-events: none; }
.reels.carousel .reels-arrow { display: grid; place-content: center; position: absolute; top: 50%; z-index: 20; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: 38px; font-weight: 900; line-height: 1; padding-bottom: 4px; cursor: pointer; box-shadow: 3px 3px 0 #000; transition: transform .1s; }
.reels.carousel .reels-arrow:hover { transform: scale(1.08); }
.reels.carousel .reels-arrow:active { transform: scale(.95); }
.reels.carousel .reels-arrow.prev { left: max(2vw, 12px); }
.reels.carousel .reels-arrow.next { right: max(2vw, 12px); }
.reels.carousel .reels-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.reels-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a4634; transition: width .3s, background .3s; }
.reels-dots i.on { width: 26px; border-radius: 6px; background: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .reels.carousel .reel { transition: none; } }

/* Cartões com foto */
.grid.photos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 600px) { .grid.photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card.pcard { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.card.pcard:hover { transform: translate(-2px, -2px); }
.pcard .pic { position: relative; aspect-ratio: 4 / 5; background: #0b0d0a; overflow: hidden; border-bottom: 3px solid var(--ink); }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.pcard:hover .pic img { transform: scale(1.06); }
.pcard .pic .badge { position: absolute; left: 10px; bottom: 12px; }
.off-tag { position: absolute; right: 10px; top: 10px; background: var(--yellow); color: var(--ink); font-family: var(--comic); font-size: 22px; letter-spacing: .5px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(4deg); }
.pcard .info { padding: 12px 14px 26px; display: grid; gap: 4px; }
.pcard h3 { margin: 0; font-size: 18px; }
.pcard p { margin: 0; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .go { position: static; justify-self: start; margin-top: 8px; }
@media (max-width: 600px) {
  .pcard .info { padding: 10px 10px 14px; }
  .pcard h3 { font-size: 15.5px; }
  .pcard p { font-size: 12.5px; }
  .pcard .price b { font-size: 18px; }
  .pcard .price s { font-size: 12px; }
  .pcard .go { font-size: 15px; padding: 3px 12px; }
  .pcard .go-x { display: none; }
  .off-tag { font-size: 18px; }
  .pcard .pic .badge { font-size: 10.5px; }
}

/* Foto grande na montagem da pizza */
.p-photo { margin: -22px -18px 12px; aspect-ratio: 16 / 11; overflow: hidden; background: #0b0d0a; border-bottom: 3px solid var(--ink); border-radius: 19px 19px 0 0; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.p-head.with-photo { padding-right: 0; }
.sheet .x { background: rgba(255,253,243,.95); }
.opt .thumb { width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid var(--ink); background: #000; }
.opt .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upsell .art img.round { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); display: block; }

/* Editor de "Mais pedidos" no painel */
.mp-list { display: grid; gap: 10px; }
.mp-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.mp-row.off { opacity: .6; }
.mp-pic { width: 86px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #0b0d0a; border: 2px solid var(--ink); display: grid; place-content: center; color: #aaa; font-size: 12px; }
.mp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-fields { display: grid; gap: 6px; }
.mp-fields input, .mp-fields select { min-height: 40px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; font-size: 15px; width: 100%; }
.mp-fields input { font-weight: 800; }
.mp-selects { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.mp-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mp-photos select { font-size: 13px; }
.mp-sum { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.mp-sum.bad b { color: var(--red); }
.mp-acts { display: grid; gap: 8px; justify-items: end; }
.mp-move { display: flex; gap: 6px; }
.mp-move button[data-mpup] { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 900; }
@media (max-width: 700px) {
  .mp-row { grid-template-columns: 70px minmax(0, 1fr); }
  .mp-pic { width: 70px; }
  .mp-acts { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .mp-photos { grid-template-columns: 1fr; }
}

/* Vídeos no painel */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.vid { margin: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.vid video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; display: block; background: var(--green-dd); }
.vid figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px; align-items: center; font-size: 13px; }
.vid figcaption span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid figcaption small { color: var(--ink-3); grid-column: 1; }
.vid figcaption .btn { grid-column: 2; grid-row: 1 / span 2; }
.upload-btn { justify-self: start; cursor: pointer; }

/* Categorias */
.cats { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 12px max(5vw, 16px); margin-top: 18px; background: rgba(238,245,228,.94); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); scrollbar-width: none; }
.cats a { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--card); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-family: var(--comic); font-weight: 400; font-size: 18px; letter-spacing: .8px; box-shadow: 2px 2px 0 var(--ink); }
.cats a:hover { background: var(--yellow); }
.cats a.cat-hot { background: var(--orange); color: #fff; }
@media (min-width: 1210px) { .cats { padding-left: calc((100% - 1100px) / 2); } }

.menu { max-width: 1100px; margin: 0 auto; padding: 8px 16px 130px; }
.cat { padding-top: 26px; }
.cat h2 { font-family: var(--comic); font-weight: 400; font-size: 38px; letter-spacing: 1.5px; margin-bottom: 14px; display: inline-block; background: var(--yellow); border: 3px solid var(--ink); box-shadow: var(--hard); padding: 2px 16px 0; transform: rotate(-1.5deg); border-radius: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 16px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--r); cursor: pointer; box-shadow: var(--hard-lg);
  transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translate(-2px, -2px) rotate(-.3deg); box-shadow: 8px 8px 0 var(--ink); }
.card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.card.off { opacity: .55; cursor: not-allowed; transform: none; }
.card .art { width: 104px; height: 104px; flex: none; transition: transform .3s; }
.card:hover .art { transform: rotate(25deg); }
.art svg { width: 100%; height: 100%; display: block; }
.card .info { flex: 1; }
.card h3 { font-size: 19px; font-weight: 900; margin: 4px 0 4px; }
.card p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.price s { color: var(--ink-3); margin-right: 4px; font-size: 14px; white-space: nowrap; }
.price b { font-size: 21px; font-weight: 900; white-space: nowrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; color: #fff; background: var(--red); border: 2px solid var(--ink); padding: 1px 9px; border-radius: 999px; transform: rotate(-3deg); }
.go { position: absolute; right: 12px; bottom: -14px; background: var(--orange); color: #fff; font-family: var(--comic); font-size: 17px; letter-spacing: 1px; padding: 3px 14px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); }
.soldout { margin-left: 8px; font-size: 13px; font-weight: 900; color: var(--red); }
.foot { margin-top: 44px; padding: 18px; border: 3px solid var(--ink); border-radius: var(--r); background: var(--card); box-shadow: var(--hard); color: var(--ink-2); font-size: 14px; }
.foot p { margin: 4px 0; }

/* Barra da sacola */
.cartbar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 3px solid var(--ink); border-radius: 999px; background: var(--orange); color: #fff; font-family: var(--comic); font-size: 22px; letter-spacing: 1px; box-shadow: var(--hard-lg); cursor: pointer; z-index: 10; animation: up .3s cubic-bezier(.2,.9,.3,1.4); }
.cartbar .count { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; min-width: 32px; height: 32px; display: grid; place-content: center; font-size: 18px; }
.cartbar b { margin-left: auto; font-weight: 400; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }

/* Folha / modal */
#sheet-root .backdrop { position: fixed; inset: 0; background: rgba(10,38,23,.55); opacity: 0; transition: opacity .2s; z-index: 20; }
#sheet-root .sheet { position: fixed; z-index: 21; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: min(640px, 100%); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--card); border: 3px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
#sheet-root.open .backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: translate(-50%, 0); }
@media (min-width: 700px) {
  #sheet-root .sheet { bottom: 50%; transform: translate(-50%, 60%); border-radius: 22px; border-bottom: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); opacity: 0; transition: transform .25s, opacity .2s; }
  #sheet-root.open .sheet { transform: translate(-50%, 50%); opacity: 1; }
}
.sheet-body { overflow-y: auto; padding: 22px 18px 10px; position: relative; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; align-items: center; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 3px solid var(--ink); background: var(--green-soft); border-radius: 0 0 20px 20px; }
.sheet-foot .add { flex: 1; }
.x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; font-size: 15px; font-weight: 900; z-index: 2; }
.p-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; margin-bottom: 6px; }
.p-head .art.big { width: 104px; height: 104px; flex: none; }
.p-head h2 { font-family: var(--comic); font-weight: 400; font-size: 32px; letter-spacing: 1px; }
.p-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.grp { padding: 16px 0; border-top: 2px dashed var(--soft-line); }
.grp:first-of-type { border-top: 0; }
.grp header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.grp h3 { font-size: 19px; font-weight: 900; }
.grp h4 { margin: 16px 0 8px; font-family: var(--comic); font-weight: 400; font-size: 20px; letter-spacing: 1px; color: var(--green); }
.req { font-size: 13px; font-weight: 900; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.req.ok { background: var(--green-soft); color: var(--green-d); border: 2px solid var(--green); }
.hint { color: var(--ink-2); font-size: 14px; margin: 0 0 8px; }
.pad { margin-top: 12px; }
.search { width: 100%; min-height: 44px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; margin: 4px 0 2px; font-size: 16px; }
.search.inline { width: auto; margin-left: 12px; padding: 6px 12px; min-height: 36px; font-size: 15px; font-weight: 600; font-family: var(--font); letter-spacing: 0; }
.opts { display: grid; gap: 8px; }
.opts.row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 13px; min-height: 48px; border: 2px solid var(--soft-line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s, transform .08s; }
.opt:hover { border-color: var(--ink-3); }
.opt input { accent-color: var(--green); width: 20px; height: 20px; flex: none; margin: 0; }
.opt.on { border-color: var(--ink); background: var(--green-soft); box-shadow: 3px 3px 0 var(--green); }
.opt.off { opacity: .5; cursor: not-allowed; }
.opt:has(input:disabled):not(.on) { opacity: .45; cursor: not-allowed; }
.opt .txt { display: grid; flex: 1; }
.opt .txt b { font-weight: 800; }
.opt .txt small { color: var(--ink-2); font-size: 13px; }
.opt .tag { font-size: 14px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.empty-search { color: var(--ink-3); font-size: 14px; }
textarea, .f input, .f select { width: 100%; min-height: 46px; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; resize: vertical; font-size: 16px; }
.f select.empty { color: var(--ink-3); border-style: dashed; border-color: var(--orange); background: #fff8ef; }
textarea:focus, .f input:focus, .f select:focus, .search:focus { outline: 3px solid rgba(255,122,26,.35); border-color: var(--orange); }
.qty { display: flex; align-items: center; border: 3px solid var(--ink); border-radius: 999px; background: var(--card); box-shadow: 2px 2px 0 var(--ink); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; font-weight: 900; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 900; font-size: 18px; }

/* Montagem de combo: uma aba por pizza */
.part-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.part-tabs button { flex: 1 0 auto; min-width: 110px; display: grid; gap: 1px; text-align: left; padding: 8px 12px; min-height: 52px; border: 2px solid var(--soft-line); border-radius: 12px; background: #fff; cursor: pointer; }
.part-tabs button b { font-weight: 900; }
.part-tabs button small { color: var(--ink-2); font-size: 12.5px; text-transform: capitalize; }
.part-tabs button.done { border-color: var(--green); }
.part-tabs button.done b { color: var(--green-d); }
.part-tabs button.on { border: 3px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }

/* Ofertas na sacola */
.upsells { display: grid; gap: 10px; margin-top: 12px; }
.upsell { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 3px dashed var(--orange); border-radius: 14px; background: #fff8ef; }
.upsell .art { width: 52px; height: 52px; flex: none; }
.upsell > div:nth-child(2) { flex: 1; display: grid; }
.upsell b { font-weight: 900; }
.upsell small { color: var(--ink-2); font-size: 13.5px; }
.upsell small s { color: var(--ink-3); }
.upsell .btn { flex: none; }

/* Sacola */
.checkout h2 { font-family: var(--comic); font-weight: 400; font-size: 34px; letter-spacing: 1px; margin-bottom: 6px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 2px dashed var(--soft-line); }
.lines li.bad { background: var(--red-soft); margin: 0 -10px; padding: 12px 10px; border-radius: 10px; }
.ln-main { flex: 1; display: grid; gap: 2px; }
.ln-main b { font-weight: 900; }
.ln-main small { color: var(--ink-2); font-size: 14px; }
.ln-main .note { font-style: italic; }
.ln-main .err { color: var(--red); font-weight: 800; }
.ln-side { text-align: right; display: grid; align-content: start; gap: 4px; font-weight: 900; white-space: nowrap; }
.ln-act { display: flex; justify-content: flex-end; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper button { width: 38px; height: 36px; border: 0; background: none; font-size: 22px; font-weight: 900; line-height: 1; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.stepper button:hover { background: var(--soft, #eef5ea); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper button[data-dec] .ico { color: var(--red); }
.stepper span { min-width: 24px; text-align: center; font-weight: 900; font-size: 16px; }
.ln-links { display: flex; gap: 14px; justify-content: flex-end; }
.ln-links button { border: 0; background: none; color: var(--green); font-size: 14px; font-weight: 800; cursor: pointer; padding: 4px 0; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.ln-links button[data-del] { color: var(--red); }
.bag-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-right: 44px; }
.bag-head h2 { margin: 0; }
.bag-clear { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--red); color: var(--red); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; cursor: pointer; }
.bag-clear:hover { background: var(--red-soft); }
.clear-ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 12px; background: var(--red-soft); border: 2px solid var(--red); border-radius: 12px; font-weight: 800; }
.clear-ask span { margin-right: auto; }
.btn.danger { background: var(--red); color: #fff; }
.ico { vertical-align: -3px; }
.toast-act { margin-left: 10px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 900; font-size: 14px; cursor: pointer; }
#toast { pointer-events: none; }
#toast.show { pointer-events: auto; }
.lines.compact li { padding: 9px 0; }
.add-more { margin-top: 4px; }
.sec { font-family: var(--comic); font-weight: 400; font-size: 24px; letter-spacing: 1px; margin: 24px 0 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button { display: grid; gap: 2px; text-align: left; padding: 12px 14px; min-height: 60px; border: 2px solid var(--soft-line); border-radius: 14px; background: #fff; cursor: pointer; }
.seg button b { font-size: 17px; font-weight: 900; }
.seg button small { color: var(--ink-2); font-size: 13px; }
.seg button.on { border: 3px solid var(--ink); background: var(--green-soft); box-shadow: 3px 3px 0 var(--green); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.f { display: grid; gap: 4px; }
.f > span { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.f.wide { grid-column: span 2; }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } .f.wide { grid-column: auto; } }
.pay { display: grid; gap: 8px; }
.summary { margin-top: 18px; padding: 12px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; display: grid; gap: 4px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary div span:last-child { white-space: nowrap; font-weight: 700; }
.summary .total { font-weight: 900; font-size: 20px; margin-top: 4px; padding-top: 8px; border-top: 2px dashed var(--ink); }
.eta-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--green-d); color: #eef7ea; border: 3px solid var(--ink); box-shadow: var(--hard); }
.eta-box svg { width: 26px; height: 26px; flex: none; color: var(--yellow); margin-top: 1px; }
.eta-box div { display: grid; gap: 2px; }
.eta-box b { font-size: 17px; font-weight: 900; }
.eta-box small { color: #bfd8bd; font-size: 13.5px; }
.warn { margin: 10px 0 0; padding: 10px 12px; background: var(--amber-soft); border: 2px solid #e0b443; border-radius: 12px; font-size: 14px; font-weight: 600; }
.form-err { margin: 10px 0 0; padding: 10px 12px; background: var(--red-soft); color: #9b1422; border: 2px solid var(--red); border-radius: 12px; font-weight: 800; font-size: 14px; }
.sheet-foot.col { flex-direction: column; }

/* Pedido */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--green-d); color: #fff; border-bottom: 3px solid var(--ink); }
.topbar .back { color: #fff; text-decoration: none; font-weight: 800; }
.topbar span { font-weight: 700; }
.order { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; display: grid; gap: 16px; }
.o-hero {
  border-radius: 20px; padding: 26px 20px; text-align: center; display: grid; gap: 6px; justify-items: center; color: #eef7ea; border: 3px solid var(--ink); box-shadow: var(--hard-lg);
  background: radial-gradient(circle, rgba(255,255,255,.07) 1.3px, transparent 1.4px) 0 0 / 10px 10px, linear-gradient(160deg, #1d6b37, var(--green-dd));
}
.o-hero h2 { font-family: var(--comic); font-weight: 400; font-size: 36px; letter-spacing: 1px; color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.o-hero p { margin: 0; color: #cfe5cc; }
.o-hero .eyebrow { font-family: var(--comic); font-size: 20px; letter-spacing: 1.5px; color: var(--yellow); }
.o-hero .eta { font-family: var(--comic); font-size: clamp(72px, 20vw, 104px); line-height: .95; color: #fff; letter-spacing: 3px; text-shadow: 4px 4px 0 var(--ink); }
.o-hero .left { font-size: 18px; font-weight: 700; }
.o-hero .bar { width: 100%; height: 16px; background: rgba(0,0,0,.3); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; position: relative; }
.o-hero .bar span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, var(--yellow) 10px 20px); border-radius: 999px; transition: width .6s; animation: stripes 1s linear infinite; background-size: 28px 28px; }
@keyframes stripes { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .o-hero .bar span { animation: none; } }
.o-hero.wait { background: linear-gradient(160deg, #6b5a12, #3a300a); }
.o-hero.bad { background: linear-gradient(160deg, #7c1c26, #3e0d13); }
.o-hero.done, .o-hero.ready { background: radial-gradient(circle, rgba(255,255,255,.08) 1.3px, transparent 1.4px) 0 0 / 10px 10px, linear-gradient(160deg, #23a04b, #0f5a2b); }
.o-hero .btn { margin-top: 8px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; text-align: center; font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--ink-3); }
.steps li { display: grid; gap: 6px; justify-items: center; }
.steps li span { width: 100%; height: 10px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); }
.steps li.done span { background: var(--green); }
.steps li.now { color: var(--ink); font-weight: 900; }
.steps li.now span { background: var(--orange); animation: glow 1s infinite alternate; }
@keyframes glow { to { background: var(--yellow); } }
.card-box { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: var(--hard); }
.card-box h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.meta-line { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }

/* Aviso */
#toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -100px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 15px; z-index: 40; transition: transform .25s cubic-bezier(.2,.9,.3,1.3); max-width: calc(100% - 32px); border: 3px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.3); }
#toast.show { transform: translate(-50%, 0); }
#toast.ok { background: var(--green); }
#toast.bad { background: var(--red); }

/* Painel */
.login { min-height: 100vh; display: grid; place-content: center; padding: 20px; background: radial-gradient(circle, rgba(255,255,255,.07) 1.3px, transparent 1.4px) 0 0 / 10px 10px, linear-gradient(180deg, var(--green-d), var(--green-dd)); }
.login form { width: min(400px, 92vw); display: grid; gap: 14px; }
.login .brand h1 { font-size: 46px; }
.login .brand .sub { color: var(--green); }
.admin { min-height: 100vh; }
.a-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--green-d); color: #fff; border-bottom: 3px solid var(--ink); }
.a-top .brand b { font-family: var(--comic); font-weight: 400; font-size: 22px; letter-spacing: 1px; }
.a-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.a-tabs button { border: 2px solid transparent; background: none; color: #cfe5cc; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 800; min-height: 40px; }
.a-tabs button.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.a-tools { margin-left: auto; display: flex; gap: 6px; }
.chip-btn { border: 2px solid #cfe5cc; background: none; color: #fff; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; min-height: 36px; }
#a-body { padding: 16px; max-width: 1400px; margin: 0 auto; }
.a-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.a-stats div { background: var(--card); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 14px; padding: 10px 14px; display: grid; }
.a-stats b { font-size: 24px; font-weight: 900; }
.a-stats span { font-size: 13px; color: var(--ink-3); font-weight: 700; }
@media (max-width: 700px) { .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 980px) { .board { grid-template-columns: 1fr; } }
.col { background: #d7e8cf; border: 3px solid var(--ink); border-radius: 16px; padding: 10px; display: grid; gap: 12px; }
.col header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.col h3 { font-family: var(--comic); font-weight: 400; font-size: 24px; letter-spacing: 1px; }
.col .n { background: var(--ink); color: #fff; border-radius: 999px; min-width: 28px; text-align: center; font-size: 14px; font-weight: 900; padding: 2px 9px; }
.col.new { background: #ffe9c9; }
.col.new .n { background: var(--orange); border: 2px solid var(--ink); }
.col .empty { text-align: center; padding: 18px 0; margin: 0; font-size: 14px; font-weight: 700; }
.ocard { background: var(--card); border: 3px solid var(--ink); border-radius: 14px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--hard); }
.ocard.fresh { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); animation: fresh .9s ease-in-out infinite alternate; }
@keyframes fresh { to { box-shadow: 4px 4px 0 var(--orange), 0 0 0 6px rgba(255,122,26,.25); } }
.ocard.late { background: #fff4dc; }
.ocard header { display: flex; align-items: center; gap: 8px; }
.ocard .code { font-family: var(--comic); font-weight: 400; font-size: 26px; letter-spacing: 1px; }
.ocard .time { margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.mode { font-size: 12px; font-weight: 900; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--ink); }
.mode.entrega { background: #ffe0c2; }
.mode.retirada { background: var(--green-soft); }
.who { font-size: 15px; }
.who a { text-decoration: none; }
.addr2 { font-size: 14px; color: var(--ink-2); background: #eef5e4; padding: 6px 9px; border-radius: 9px; border: 2px dashed var(--soft-line); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.items li { display: grid; font-size: 15px; }
.items small { color: var(--ink-2); font-size: 13px; }
.items .note, .onote { color: #a05a00; font-weight: 800; }
.onote { margin: 0; font-size: 14px; }
.pay-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-line b { font-size: 18px; font-weight: 900; }
.pill { font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px; border: 2px solid currentColor; }
.pill.ok { background: var(--green-soft); color: var(--green-d); }
.pill.warn { background: var(--amber-soft); color: #8a5a00; }
.pill.cash { background: #fff; color: var(--ink-2); }
.eta-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; background: #eef5e4; padding: 6px 9px; border-radius: 9px; }
.eta-line.late { background: #ffe1a8; color: #6b4a00; font-weight: 700; }
.adj { display: flex; gap: 4px; }
.adj button { border: 2px solid var(--ink); background: #fff; border-radius: 8px; padding: 3px 9px; min-height: 32px; cursor: pointer; font-size: 13px; font-weight: 900; box-shadow: 1px 1px 0 var(--ink); }
.ocard footer { display: flex; gap: 6px; flex-wrap: wrap; }
.ocard footer .primary { flex: 1; white-space: nowrap; font-size: 15px; }
.ocard.compact { gap: 6px; }
.a-sec { font-size: 17px; font-weight: 900; margin: 24px 0 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.a-panel { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; }
.tbl { background: var(--card); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--hard); }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) 140px 150px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 2px solid var(--soft-line); }
.tr:first-child { border-top: 0; }
.tr .nm { display: grid; }
.tr .nm b { font-weight: 800; }
.tr .nm small { color: var(--ink-3); font-size: 12px; }
.tr.small { padding: 6px 14px 6px 30px; background: #f5f9ef; font-size: 14px; }
.sub-tbl .tr { border-top: 1px dashed var(--soft-line); }
.money { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.money input { width: 76px; min-height: 38px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 9px; font-size: 15px; }
.sw { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.sw input { accent-color: var(--green); width: 20px; height: 20px; }
@media (max-width: 560px) { .tr { grid-template-columns: minmax(0, 1fr) auto; } .tr .money { grid-column: 1; } }
.save-bar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 30%); }
.cfg .card-box { display: grid; gap: 12px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { accent-color: var(--green); width: 20px; height: 20px; flex: none; }
.example { margin: 0; padding: 10px 12px; background: #eef5e4; border: 2px dashed var(--soft-line); border-radius: 12px; font-size: 14px; }
.hours { display: grid; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.hrow .check { width: 120px; }
.hrow input[type=time] { min-height: 40px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; }
.zones { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.zhead, .zrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 92px 120px 140px minmax(0, 1.3fr) 36px; gap: 8px; align-items: center; padding: 8px 10px; }
.zhead { background: var(--green-soft); font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--green-d); border-bottom: 2px solid var(--ink); }
.zrow { border-top: 1px solid var(--soft-line); font-size: 14px; }
.zrow:first-child { border-top: 0; }
.zrow.off { background: #f3f3f0; color: var(--ink-3); }
.zrow > input[data-zname] { min-height: 38px; padding: 6px 9px; border: 2px solid var(--ink); border-radius: 9px; font-size: 15px; font-weight: 700; width: 100%; }
.zrow .money input { width: 60px; }
.zavg { font-size: 13px; }
.zdel { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 900; color: var(--red); }
@media (max-width: 760px) {
  .zhead { display: none; }
  .zrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 10px; }
  .zrow > input[data-zname] { grid-column: 1; }
  .zdel { grid-column: 2; grid-row: 1; }
  .zavg { grid-column: 1 / -1; }
}

.chip-btn.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* Editor de cardápio e custos (painel) */
.a-panel.wide { max-width: 1200px; }
.ed-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: #d7e8cf; border: 3px solid var(--ink); border-radius: 14px; }
.ed-tabs button { border: 2px solid transparent; background: none; padding: 8px 14px; min-height: 40px; border-radius: 10px; font-weight: 800; cursor: pointer; color: var(--ink-2); }
.ed-tabs button.on { background: var(--card); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.ed-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.ed-add input:not(.search) { min-height: 38px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; font-size: 15px; min-width: 220px; }
.prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 2px solid var(--soft-line); }
.prow:first-child { border-top: 0; }
.prow.frow { grid-template-columns: minmax(0, 1fr) auto auto; }
.prow.off { background: #f6f3ec; }
.prow.off .pinfo b { color: var(--ink-3); }
.pthumb { width: 56px; height: 64px; border-radius: 10px; overflow: hidden; background: #0b0d0a; border: 2px solid var(--ink); display: grid; place-content: center; font-size: 22px; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinfo { display: grid; gap: 2px; }
.pinfo b { font-weight: 800; }
.pinfo small { color: var(--ink-2); font-size: 13px; }
.pprice { text-align: right; white-space: nowrap; }
.pprice s { color: var(--ink-3); font-size: 12px; margin-right: 4px; }
.pprice b { font-weight: 900; }
.pacts { display: flex; gap: 4px; align-items: center; }
.mini { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 900; }
.mini.danger { color: var(--red); }
.mini.armed { background: var(--red); color: #fff; }
.cat-in { min-height: 38px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; font-size: 15px; font-weight: 800; max-width: 360px; }
@media (max-width: 700px) {
  .prow { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .prow .sw { grid-column: 2; }
  .prow .pacts { grid-column: 1 / -1; justify-content: flex-end; }
  .prow.frow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow.frow .pacts { grid-column: 1 / -1; }
}
#sheet-root .sheet.ed { width: min(760px, 100%); }
.ed-sheet h2 { font-family: var(--comic); font-weight: 400; font-size: 30px; letter-spacing: 1px; margin-bottom: 10px; padding-right: 44px; }
.ed-sheet .sec { margin: 22px 0 8px; }
.ed-form .check.wide { grid-column: 1 / -1; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 6px; max-height: 320px; overflow: auto; padding: 4px; border: 2px solid var(--soft-line); border-radius: 12px; background: #fff; }
.chk { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.chk:hover { background: var(--green-soft); }
.chk input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.chk span { display: grid; }
.chk small { color: var(--ink-3); font-size: 11px; text-transform: capitalize; }
.chk.on { background: var(--green-soft); font-weight: 800; }
.ed-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.rows { display: grid; gap: 6px; margin-bottom: 8px; }
.row-ed { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border: 2px solid var(--soft-line); border-radius: 10px; background: #fff; }
.row-ed input:not([type=number]), .row-ed select { min-height: 38px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; font-size: 15px; flex: 1 1 160px; min-width: 0; }
.photo-field .pf-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pf-prev { width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); background: #0b0d0a; display: grid; place-content: center; color: #aaa; font-size: 13px; }
.pf-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-acts { display: grid; gap: 8px; flex: 1 1 220px; }
.pf-acts select { min-height: 40px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; background: #fff; font-size: 14px; }
.pf-acts label.btn { cursor: pointer; justify-self: start; }
.danger-link { color: var(--red); justify-self: start; }

.cost-intro p { margin: 0 0 8px; }
.scroll { overflow-x: auto; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; font-size: 14px; }
.ctable th { background: #d7e8cf; text-align: left; padding: 10px; font-size: 12.5px; font-weight: 900; color: var(--green-d); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ctable td { padding: 9px 10px; border-top: 1px solid var(--soft-line); vertical-align: top; }
.ctable .num, .ctable th:not(:first-child) { text-align: right; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--red); font-weight: 900; }
.pos { color: var(--green); }
.cmv { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 900; font-size: 12.5px; border: 2px solid currentColor; }
.cmv.ok { color: var(--green-d); background: var(--green-soft); }
.cmv.warn { color: #8a5a00; background: var(--amber-soft); }
.cmv.bad { color: #9b1422; background: var(--red-soft); }
.sim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }
.sim-in { display: grid; gap: 12px; }
.sim-flv { display: flex; flex-wrap: wrap; gap: 4px; max-height: 260px; overflow: auto; padding: 4px; border: 2px solid var(--soft-line); border-radius: 12px; background: #fff; }
.sim-flv .chk { border: 1px solid var(--soft-line); }
.breakdown { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.breakdown li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--soft-line); }
.breakdown li.tot { font-weight: 900; border-bottom: 2px solid var(--ink); }
.big-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.big-nums div { background: #eef5e4; border-radius: 10px; padding: 8px 10px; display: grid; }
.big-nums small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.big-nums b { font-size: 19px; font-weight: 900; white-space: nowrap; }
@media (max-width: 480px) { .big-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ing-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px 80px 36px; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--soft-line); }
.ing-row:first-child { border-top: 0; }
.tbl > .ing-row:only-child, .tbl .ing-row:has(> span) { grid-template-columns: minmax(0, 1fr) auto; }
.ing-row input[data-name], .ing-row select { min-height: 38px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 9px; font-size: 14px; background: #fff; min-width: 0; }
@media (max-width: 700px) { .ing-row { grid-template-columns: minmax(0, 1fr) auto; } .ing-row input[data-name] { grid-column: 1 / -1; } }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 80px 36px; gap: 8px; align-items: center; padding: 4px 0; }
.rec-row select { min-height: 38px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 9px; font-size: 14px; background: #fff; min-width: 0; }
.rec-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.ficha { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.ficha-list { display: grid; gap: 4px; max-height: 70vh; overflow: auto; padding-right: 4px; }
.fl-btn { display: grid; text-align: left; padding: 8px 10px; border: 2px solid var(--soft-line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 800; font-size: 14px; }
.fl-btn small { font-weight: 600; color: var(--ink-3); font-size: 12px; }
.fl-btn.on { border-color: var(--ink); background: var(--yellow); }
@media (max-width: 760px) { .ficha { grid-template-columns: 1fr; } .ficha-list { max-height: 220px; } }
.bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.bases .card-box { display: grid; gap: 8px; }
.cfg-c { display: grid; gap: 6px; max-width: 640px; }

/* Origem do pedido e lançamento pela equipe */
.origin { font-size: 11px; font-weight: 900; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.origin.o-whatsapp { background: #d9f7e3; color: #0d6b33; }
.origin.o-balcao { background: #fff1cc; color: #7a5300; }
.origin.o-telefone { background: #e6ecff; color: #23408f; }
.launch-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; background: var(--card); border: 3px dashed var(--ink); border-radius: 14px; }
.launch-bar span { font-weight: 800; margin-right: auto; }
.staff-bar { position: relative; z-index: 40; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px max(5vw, 16px); background: var(--orange); color: #fff; border-bottom: 3px solid var(--ink); }
.staff-bar span { font-size: 14px; }
.staff-bar a { margin-left: auto; color: #fff; font-weight: 900; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Impressão (cupom 80 mm): cada via sai numa página, para a impressora cortar entre elas */
#print-area { display: none; }
@media print {
  body { background: #fff; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  .ticket { width: 72mm; font: 13px/1.35 ui-monospace, Menlo, Consolas, "Courier New", monospace; color: #000; break-after: page; page-break-after: always; }
  .ticket:last-child { break-after: auto; page-break-after: auto; }
  .ticket p { margin: 3px 0; }
  .ticket hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  .ticket hr.thin { border-top-style: dotted; }
  .t-logo { display: block; width: 44mm; height: auto; margin: 0 auto 4px; }
  .t-via { text-align: center; font-weight: 900; font-size: 14px; border: 2px solid #000; padding: 2px 0; letter-spacing: 1px; }
  .t-code { text-align: center; font-size: 34px; font-weight: 900; line-height: 1.1; }
  .t-center { text-align: center; }
  .t-origin { text-align: center; font-weight: 900; font-size: 16px; letter-spacing: .5px; border-top: 3px double #000; border-bottom: 3px double #000; padding: 2px 0; margin: 4px 0; }
  .t-big { font-size: 16px; font-weight: 900; }
  .t-obs { font-weight: 900; text-transform: uppercase; }
  .t-r { float: right; }
  .t-pay { font-weight: 900; font-size: 14px; }
  @page { size: 80mm auto; margin: 3mm; }
}
