/* =====================================================================
   DELIVERY DO CAMPO — Sistema de design (v2)
   Sóbrio e profissional: fotografia como protagonista, verde da marca
   como cor principal, amarelo só para destaque, ícones de linha (Lucide).
   ===================================================================== */
:root {
  --verde-900: #0b3517;
  --verde-800: #0f4d1f;
  --verde-700: #155e28;
  --verde-600: #1b7333;
  --verde-500: #23893e;
  --verde-400: #3ea356;
  --verde-200: #c4e3cb;
  --verde-100: #e6f2e8;
  --verde-50:  #f2f8f3;
  --amarelo-600: #d29f00;
  --amarelo-500: #f8c000;
  --amarelo-300: #ffd040;
  --amarelo-100: #fde8a6;
  --terra-600: #6d4c41;
  --terra-500: #8d6e63;
  --terra-100: #f4eeeb;
  --laranja: #d9680f;
  --laranja-100: #fdefe3;
  --vermelho: #c9302c;
  --vermelho-100: #fcebea;
  --azul: #1d6fbf;
  --azul-100: #e8f1fb;
  --roxo: #6a46c2;
  --roxo-100: #f0ebfb;
  --cinza: #667068;
  --cinza-100: #f0f1ee;

  --bg: #f5f5f2;
  --superficie: #ffffff;
  --texto: #131a15;
  --texto-2: #424c45;
  --suave: #6b746d;
  --borda: #e6e8e3;
  --borda-forte: #d3d8d1;

  --raio: 14px;
  --raio-p: 10px;
  --raio-g: 18px;
  --sombra-1: 0 1px 2px rgba(17, 24, 18, .05);
  --sombra-2: 0 8px 24px rgba(17, 24, 18, .08), 0 1px 3px rgba(17, 24, 18, .05);
  --sombra-3: 0 24px 56px rgba(17, 24, 18, .20);
  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-titulo: var(--fonte);
  --topo-h: 60px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--fonte); font-size: 15.5px; line-height: 1.5; letter-spacing: -.005em;
  color: var(--texto); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: var(--verde-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); line-height: 1.2; margin: 0 0 .5em; color: var(--texto); letter-spacing: -.025em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--borda); margin: 20px 0; }
small, .pequeno { font-size: .84rem; }
.suave { color: var(--suave); }
.texto-2 { color: var(--texto-2); }
.negrito { font-weight: 700; }
.centro { text-align: center; }
.direita { text-align: right; }
.oculto, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.verde { color: var(--verde-600); }
.vermelho { color: var(--vermelho); }
.preco { font-weight: 800; color: var(--texto); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.riscado { text-decoration: line-through; color: var(--suave); font-weight: 500; }
:focus-visible { outline: 2.5px solid var(--verde-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--verde-200); }

/* ---------- ícones ---------- */
.ic { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.24em; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.ic-p { width: 1em; height: 1em; vertical-align: -.14em; }
.ic-g { width: 1.6em; height: 1.6em; }
.ic-xg { width: 2.2em; height: 2.2em; stroke-width: 1.6; }
.ic-cheio { fill: currentColor; }
.ico-caixa { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--verde-50); color: var(--verde-700); flex: 0 0 auto; }
.ico-caixa .ic { width: 22px; height: 22px; }
.ico-caixa.amarelo { background: var(--amarelo-100); color: #8a6a00; }
.ico-caixa.azul { background: var(--azul-100); color: var(--azul); }
.ico-caixa.roxo { background: var(--roxo-100); color: var(--roxo); }
.ico-caixa.laranja { background: var(--laranja-100); color: var(--laranja); }
.ico-caixa.vermelho { background: var(--vermelho-100); color: var(--vermelho); }
.ico-caixa.escuro { background: var(--verde-800); color: #fff; }

/* ---------- utilidades de layout ---------- */
.flex { display: flex; gap: 12px; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: 12px; }
.entre { justify-content: space-between; }
.quebra { flex-wrap: wrap; }
.cresce { flex: 1; min-width: 0; }
.gap-p { gap: 6px; } .gap-g { gap: 20px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; }
.grade { display: grid; gap: 12px; }
.grade-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade-4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .grade-3, .grade-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grade-2.empilha, .grade-3.empilha { grid-template-columns: 1fr; } }
.truncar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linhas-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   BOTÕES
   ===================================================================== */
.btn {
  --b: var(--verde-600); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--b); color: var(--t); font: 700 .95rem/1.1 var(--fonte); letter-spacing: -.01em; cursor: pointer;
  text-decoration: none !important; user-select: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:hover { filter: brightness(.96); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.carregando { opacity: .6; pointer-events: none; }
.btn.ouvindo { color: #fff !important; background: var(--vermelho) !important; border-color: var(--vermelho) !important; animation: ouvindo 1.2s ease-in-out infinite; }
@keyframes ouvindo { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,48,44,.45); } 50% { box-shadow: 0 0 0 10px rgba(201,48,44,0); } }
.btn.carregando::after { content: ""; width: 16px; height: 16px; border: 2.2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-primario { --b: var(--verde-600); }
.btn-escuro { --b: var(--verde-800); }
.btn-amarelo { --b: var(--amarelo-500); --t: var(--verde-900); }
.btn-perigo { --b: var(--vermelho); }
.btn-claro { --b: var(--verde-50); --t: var(--verde-700); }
.btn-branco { --b: #fff; --t: var(--texto); border-color: var(--borda-forte); }
.btn-contorno { --b: transparent; --t: var(--verde-700); border-color: var(--verde-600); }
.btn-texto { --b: transparent; --t: var(--verde-700); padding-inline: 10px; }
.btn-bloco { display: flex; width: 100%; }
.btn-grande { min-height: 54px; font-size: 1.02rem; padding-inline: 22px; border-radius: 14px; }
.btn-gigante { min-height: 68px; font-size: 1.12rem; border-radius: 16px; padding: 14px 22px; }
.btn-p { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: 10px; }
.btn-icone { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.btn-icone.btn-p { width: 36px; min-height: 36px; }
.btn .emoji { display: none; }

/* =====================================================================
   CARTÕES, CHIPS E SELOS
   ===================================================================== */
.card { background: var(--superficie); border-radius: var(--raio-g); border: 1px solid var(--borda); padding: 16px; }
.card-g { padding: 22px; }
.card + .card { margin-top: 12px; }
.card-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-titulo h2, .card-titulo h3 { margin: 0; }
.card-destaque { background: var(--verde-800); color: #fff; border: 0; }
.card-destaque h1, .card-destaque h2, .card-destaque h3 { color: #fff; }
.card-amarelo { background: var(--amarelo-100); border-color: #ecc95e; }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--borda-forte); box-shadow: var(--sombra-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--borda-forte); color: var(--texto-2); font-weight: 600; font-size: .88rem;
  white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: all .15s;
}
.chip:hover { border-color: var(--verde-500); color: var(--verde-700); }
.chip.ativo { background: var(--texto); border-color: var(--texto); color: #fff; }
.chip .emoji { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips > * { scroll-snap-align: start; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: var(--cinza-100); color: var(--cinza); }
.badge .ic { width: 1.05em; height: 1.05em; }
.badge.b-verde { background: var(--verde-100); color: var(--verde-700); }
.badge.b-amarelo { background: var(--amarelo-100); color: #7d6000; }
.badge.b-laranja { background: var(--laranja-100); color: #a24d0a; }
.badge.b-vermelho { background: var(--vermelho-100); color: #a52521; }
.badge.b-azul { background: var(--azul-100); color: #165a9c; }
.badge.b-roxo { background: var(--roxo-100); color: #5233a1; }
.badge.b-cinza { background: var(--cinza-100); color: var(--cinza); }
.badge.b-solido { background: var(--verde-800); color: #fff; }
.ponto-cor { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--verde-100); color: var(--verde-800); display: inline-grid; place-items: center; font-weight: 800; letter-spacing: -.02em; }
.avatar-g { width: 80px; height: 80px; font-size: 1.5rem; }
.avatar-p { width: 32px; height: 32px; font-size: .78rem; }

/* =====================================================================
   FORMULÁRIOS
   ===================================================================== */
.campo { margin-bottom: 16px; }
.rotulo { display: block; font-weight: 700; color: var(--texto); margin-bottom: 6px; font-size: .9rem; }
.rotulo .opcional { font-weight: 500; color: var(--suave); font-size: .88em; }
.entrada, select.entrada, textarea.entrada {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--borda-forte);
  background: #fff; color: var(--texto); font: 500 1rem var(--fonte); transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
select.entrada { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23424c45' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
textarea.entrada { min-height: 100px; resize: vertical; }
.entrada:focus { outline: none; border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(27, 115, 51, .12); }
.entrada::placeholder { color: #9aa29b; font-weight: 400; }
.entrada-g { min-height: 56px; font-size: 1.1rem; border-radius: 14px; }
.entrada-erro, .campo.erro .entrada { border-color: var(--vermelho); }
.ajuda { font-size: .82rem; color: var(--suave); margin-top: 6px; }
.erro-msg { font-size: .84rem; color: var(--vermelho); font-weight: 600; margin-top: 6px; }
.entrada-grupo { display: flex; align-items: stretch; border: 1.5px solid var(--borda-forte); border-radius: 12px; background: #fff; overflow: hidden; }
.entrada-grupo:focus-within { border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(27, 115, 51, .12); }
.entrada-grupo .entrada { border: 0; box-shadow: none !important; border-radius: 0; }
.entrada-grupo .prefixo { display: grid; place-items: center; padding: 0 14px; background: var(--cinza-100); color: var(--texto-2); font-weight: 700; }
.dinheiro-g { font-size: 2rem !important; font-weight: 800; color: var(--texto); text-align: center; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; padding: 4px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--verde-600); flex: 0 0 auto; margin-top: 2px; }

.interruptor { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { width: 50px; height: 30px; background: var(--borda-forte); border-radius: 999px; position: relative; transition: background .2s; flex: 0 0 auto; }
.interruptor .trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.interruptor input:checked + .trilho { background: var(--verde-600); }
.interruptor input:checked + .trilho::after { transform: translateX(20px); }
.interruptor input:focus-visible + .trilho { outline: 2.5px solid var(--verde-500); outline-offset: 2px; }

.opcoes { display: grid; gap: 10px; }
.opcoes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opcoes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opcao { position: relative; display: block; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao .caixa {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 68px; padding: 12px 10px; border-radius: 14px; border: 1.5px solid var(--borda-forte); background: #fff;
  font-weight: 700; color: var(--texto-2); transition: all .15s;
}
.opcao .caixa.lado { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; }
.opcao .caixa .emoji { font-size: 1.5rem; line-height: 1; }
.opcao .caixa .ic { width: 26px; height: 26px; color: var(--verde-700); }
.opcao .caixa small { font-weight: 500; color: var(--suave); }
.opcao input:checked + .caixa { border-color: var(--verde-600); background: var(--verde-50); color: var(--verde-800); box-shadow: 0 0 0 1px var(--verde-600); }
.opcao input:checked + .caixa::after { content: ""; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--verde-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.opcao input:focus-visible + .caixa { outline: 2.5px solid var(--verde-500); outline-offset: 2px; }
.opcao input:disabled + .caixa { opacity: .45; cursor: not-allowed; }

.qtd { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--borda-forte); border-radius: 12px; overflow: hidden; }
.qtd button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 600; color: var(--verde-700); cursor: pointer; display: grid; place-items: center; }
.qtd button:active { background: var(--verde-50); }
.qtd .valor { min-width: 56px; text-align: center; font-weight: 800; font-size: 1rem; color: var(--texto); font-variant-numeric: tabular-nums; }
.qtd-g button { width: 56px; height: 56px; font-size: 1.6rem; }
.qtd-g .valor { min-width: 88px; font-size: 1.3rem; }

.foto-upload { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.foto-slot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--cinza-100); border: 1.5px dashed var(--borda-forte); display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--texto-2); font-weight: 700; font-size: .82rem; }
.foto-slot img { width: 100%; height: 100%; object-fit: cover; }
.foto-slot .emoji { font-size: 1.6rem; display: block; }
.foto-slot .ic { width: 28px; height: 28px; display: block; margin: 0 auto 4px; color: var(--verde-700); }
.foto-slot .remover { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.foto-slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* =====================================================================
   ESTRUTURA DO APP (cliente / produtor / entregador)
   ===================================================================== */
.app { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
.app.sem-nav { padding-bottom: 24px; }
.topo {
  position: sticky; top: 0; z-index: 40; height: calc(var(--topo-h) + var(--safe-t)); padding: var(--safe-t) 10px 0 14px;
  display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--borda);
}
.topo .titulo { flex: 1; min-width: 0; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .marca { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none !important; }
.topo .marca img { height: 34px; width: auto; border-radius: 9px; }
.topo .marca img.marca-logo { height: 38px; max-width: 58vw; border-radius: 0; object-fit: contain; }
.topo .marca.marca-com-voltar img.marca-logo { height: 34px; max-width: 52vw; } /* produto e loja: seta de voltar + marca */
.topo .marca span { font-weight: 800; font-size: 1.02rem; color: var(--texto); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .marca span b { color: var(--verde-600); }
.topo .acao { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--texto); background: transparent; border: 0; cursor: pointer; text-decoration: none !important; }
.topo .acao .ic { width: 23px; height: 23px; }
.topo .acao:hover { background: var(--cinza-100); }
.contador { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--vermelho); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; font-variant-numeric: tabular-nums; }
.contador:empty, .contador[data-n="0"] { display: none; }

.conteudo { width: 100%; max-width: 1080px; margin: 0 auto; padding: 16px; }
.conteudo-estreito { max-width: 620px; }

.nav-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--borda);
}
.nav-inferior a {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #8a928b; font-size: .7rem; font-weight: 600; text-decoration: none !important; letter-spacing: 0;
}
.nav-inferior a .ico { font-size: 0; line-height: 0; }
.nav-inferior a .ic { width: 24px; height: 24px; stroke-width: 1.8; transition: transform .2s; }
.nav-inferior a.ativo { color: var(--verde-700); font-weight: 800; }
.nav-inferior a.ativo .ic { stroke-width: 2.2; }
.nav-inferior a .contador { top: 4px; right: calc(50% - 24px); }
@media (min-width: 900px) {
  .nav-inferior { max-width: 520px; margin: 0 auto 14px; border-radius: 18px; border: 1px solid var(--borda); box-shadow: var(--sombra-2); }
}

/* Cabeçalho da página inicial (limpo, sem degradê) */
.saudacao { background: #fff; color: var(--texto); padding: 18px 16px 16px; border-bottom: 1px solid var(--borda); }
.saudacao h1 { color: var(--texto); margin: 0; font-size: 1.45rem; }
.saudacao p { margin: 2px 0 0; color: var(--suave); font-weight: 500; }
.saudacao .conteudo { padding: 0; }
.sobe { margin-top: 0; }

.busca { display: flex; align-items: center; gap: 10px; background: var(--cinza-100); border-radius: 14px; padding: 4px 4px 4px 14px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.busca:focus-within { background: #fff; border-color: var(--verde-600); }
.busca input { flex: 1; border: 0; outline: 0; font: 500 1rem var(--fonte); min-height: 44px; background: transparent; color: var(--texto); min-width: 0; }
.busca .lupa { color: var(--suave); display: grid; }
.busca .btn { min-height: 40px; border-radius: 10px; }

.secao { margin-top: 28px; }
.secao-titulo { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.secao-titulo h2 { margin: 0; font-size: 1.18rem; display: flex; align-items: center; gap: 8px; }
.secao-titulo h2 .ic { color: var(--verde-600); }
.secao-titulo a { font-weight: 700; font-size: .88rem; }

.carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); gap: 12px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.carrossel > * { scroll-snap-align: start; }
@media (min-width: 700px) { .carrossel { grid-auto-columns: minmax(260px, 32%); } }

/* Categorias: círculo com foto real (ou ícone) */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 76px; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none !important; color: var(--texto-2); font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.2; }
.cat .bola { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cinza-100); color: var(--verde-700); overflow: hidden; border: 2px solid transparent; transition: transform .15s, border-color .15s; font-size: 0; }
.cat .bola img { width: 100%; height: 100%; object-fit: cover; }
.cat .bola .ic { width: 28px; height: 28px; }
.cat:hover .bola { transform: translateY(-2px); }
.cat.ativo .bola { border-color: var(--verde-600); }
.cat.ativo { color: var(--verde-700); font-weight: 800; }

/* Card de produtor (estilo lista de restaurantes) */
.loja-card { display: block; background: #fff; border-radius: var(--raio-g); overflow: hidden; border: 1px solid var(--borda); color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.loja-card:hover { box-shadow: var(--sombra-2); border-color: var(--borda-forte); }
.loja-card .capa { position: relative; aspect-ratio: 16/8; background: var(--verde-800); }
.loja-card .capa img { width: 100%; height: 100%; object-fit: cover; }
.loja-card .capa .badge { position: absolute; top: 10px; left: 10px; }
.loja-card .corpo { display: flex; gap: 12px; padding: 0 14px 14px; align-items: flex-end; }
.loja-card .corpo .avatar { width: 56px; height: 56px; border: 3px solid #fff; margin-top: -24px; box-shadow: var(--sombra-1); font-size: 1.05rem; }
.loja-card .nome { font-weight: 800; font-size: 1rem; color: var(--texto); line-height: 1.2; padding-top: 10px; letter-spacing: -.02em; }
.loja-card .info { font-size: .8rem; color: var(--suave); font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.estrela { color: #e5a700; }

/* Card de produto */
.grade-produtos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grade-produtos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grade-produtos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.produto-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--raio-g); overflow: hidden; border: 1px solid var(--borda); transition: box-shadow .15s, border-color .15s; }
.produto-card:hover { box-shadow: var(--sombra-2); border-color: var(--borda-forte); }
.produto-card .foto { position: relative; aspect-ratio: 1; background: var(--cinza-100); display: block; }
.produto-card .foto img { width: 100%; height: 100%; object-fit: cover; }
.produto-card .selos { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.produto-card .selos .badge { background: rgba(255,255,255,.95); box-shadow: var(--sombra-1); }
.produto-card .selos .badge.b-vermelho { background: var(--vermelho); color: #fff; }
.produto-card .corpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.produto-card .nome { font-weight: 700; color: var(--texto); line-height: 1.25; font-size: .93rem; text-decoration: none !important; letter-spacing: -.01em; }
.produto-card .loja { font-size: .76rem; color: var(--suave); font-weight: 500; }
.produto-card .disponivel { display: flex; align-items: center; gap: 3px; font-size: .74rem; color: var(--verde-700); font-weight: 700; margin-top: 1px; }
.disponivel-g { display: flex; align-items: center; gap: 5px; color: var(--verde-700); }
/* Captcha invisível: campo-isca fora da tela (pessoas não veem; robôs preenchem) */
.hp-campo { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* Selo "Rápido": produto no estoque da Central M3 (entrega mais rápida) */
.badge.b-rapido { background: linear-gradient(135deg, #1f9d48, #127a35); color: #fff; font-weight: 800; letter-spacing: .02em; box-shadow: 0 1px 4px rgba(18,122,53,.35); }
.badge.b-rapido .ic-p { margin-right: 2px; }
.rapido-faixa { display: flex; gap: 10px; align-items: flex-start; background: #e7f6ec; color: #0f5a28; border: 1px solid #b9e3c6; border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.rapido-faixa > svg { flex: 0 0 auto; color: #1f9d48; margin-top: 2px; }
.edu-selo-loja { color: #6a5200; background: var(--amarelo-100); border-radius: 999px; padding: 2px 10px; }
.produto-card .rodape { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.produto-card .preco { font-size: 1.05rem; line-height: 1.1; }
.produto-card .preco small { font-size: .72rem; color: var(--suave); font-weight: 500; }
.btn-add { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--verde-600); color: #fff; font-size: 1.4rem; font-weight: 500; cursor: pointer; display: grid; place-items: center; transition: transform .12s, background .15s; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.btn-add:active { transform: scale(.92); }
.btn-add.no-carrinho { background: var(--verde-800); color: #fff; font-size: .9rem; font-weight: 800; }
.esgotado .foto img { filter: grayscale(1) opacity(.55); }

.item-lista { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.item-lista:last-child { border-bottom: 0; }
.item-lista .miniatura { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--cinza-100); flex: 0 0 auto; }

.lista { list-style: none; margin: 0; padding: 0; }
.lista > li, .lista > a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--borda); color: inherit; text-decoration: none !important; }
.lista > li:last-child, .lista > a:last-child { border-bottom: 0; }
.lista > a:hover { background: var(--cinza-100); }
.lista .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--verde-50); color: var(--verde-700); font-size: 1.1rem; flex: 0 0 auto; }
.lista .ico .ic { width: 20px; height: 20px; }
.lista .seta { margin-left: auto; color: var(--borda-forte); font-size: 1.2rem; display: grid; }

.vazio { text-align: center; padding: 40px 20px; color: var(--suave); }
.vazio .emoji { display: none; }
.vazio .ico-vazio, .vazio > .ic { width: 64px; height: 64px; margin: 0 auto 14px; padding: 16px; border-radius: 20px; background: var(--cinza-100); color: var(--verde-700); display: block; box-sizing: border-box; }
.vazio h3 { color: var(--texto); }

/* Linha do tempo do pedido */
.linha-tempo { list-style: none; margin: 0; padding: 0; position: relative; }
.linha-tempo li { position: relative; padding: 0 0 22px 46px; }
.linha-tempo li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: -2px; width: 2px; background: var(--borda); }
.linha-tempo li:last-child::before { display: none; }
.linha-tempo .marcador { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--cinza-100); color: var(--suave); display: grid; place-items: center; font-size: .9rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--borda); }
.linha-tempo .marcador .ic { width: 16px; height: 16px; }
.linha-tempo li.feito .marcador { background: var(--verde-600); color: #fff; box-shadow: none; }
.linha-tempo li.feito::before { background: var(--verde-400); }
.linha-tempo li.atual .marcador { background: var(--amarelo-500); color: var(--verde-900); box-shadow: 0 0 0 5px rgba(245,196,0,.22); }
.linha-tempo .t { font-weight: 700; color: var(--texto); }
.linha-tempo .d { font-size: .84rem; color: var(--suave); font-weight: 500; }

.totais { display: grid; gap: 8px; }
.totais .linha { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.totais .total { font-size: 1.2rem; font-weight: 800; color: var(--texto); padding-top: 10px; border-top: 1px solid var(--borda); letter-spacing: -.02em; }

/* Barra de ação fixa: encaixada na navegação inferior (um painel só), nunca flutuando sobre o conteúdo */
.barra-fixa { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 45; padding: 8px 12px; background: #fff; border-top: 1px solid var(--borda); box-shadow: 0 -8px 24px rgba(16,24,18,.06); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.app.sem-nav .barra-fixa { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
.barra-fixa.recolhida { transform: translateY(calc(100% + 1px)); opacity: 0; pointer-events: none; }
.barra-fixa .interno { max-width: 620px; margin: 0 auto; }
/* reserva o espaço da barra no fim da página, para nada ficar escondido atrás dela */
body:has(.barra-fixa:not([hidden])) .app { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 84px); }
body:has(.barra-fixa:not([hidden])) .app.sem-nav { padding-bottom: calc(var(--safe-b) + 88px); }
body:has(.barra-fixa:not([hidden]):not(.recolhida)) .nav-inferior { border-top-color: transparent; }
/* Tablet e computador: sem faixa branca de ponta a ponta — o botão flutua centralizado, na largura do menu */
@media (min-width: 700px) {
  .barra-fixa { background: transparent; border-top: 0; box-shadow: none; padding: 0 16px 10px; pointer-events: none; }
  .barra-fixa .interno { pointer-events: auto; max-width: 560px; }
  .barra-fixa .btn-carrinho { box-shadow: 0 10px 28px rgba(16,24,18,.22); }
  .app.sem-nav .barra-fixa { padding-bottom: calc(16px + var(--safe-b)); }
  body:has(.barra-fixa:not([hidden]):not(.recolhida)) .nav-inferior { border-top-color: var(--borda); }
}
@media (min-width: 900px) {
  .barra-fixa { bottom: calc(var(--nav-h) + var(--safe-b) + 14px); }
  .barra-fixa .interno { max-width: 520px; }
}
.btn-carrinho { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 6px 6px 6px 16px; border-radius: 12px; border: 0; background: var(--verde-700); color: #fff; font: 700 .98rem var(--fonte); cursor: pointer; text-decoration: none !important; }
.btn-carrinho:active { transform: scale(.99); }
.btn-carrinho .qt { background: rgba(255,255,255,.14); color: #fff; border-radius: 9px; padding: 8px 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-carrinho .btn-carrinho { justify-content: flex-start; padding-left: 10px; }
.barra-carrinho .qt { margin-left: auto; }
.bc-ico { position: relative; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.bc-ico .ic { width: 20px; height: 20px; }
.bc-n { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amarelo-500); color: var(--verde-900); font-size: .66rem; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.bc-n:empty, .bc-n[data-n="0"] { display: none; }
.bc-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bc-txt b { font-weight: 700; font-size: .95rem; }
.bc-txt small { font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-txt small:empty { display: none; }

.abas { display: flex; gap: 2px; background: var(--cinza-100); padding: 4px; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas a, .abas button { flex: 1; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; font: 700 .88rem var(--fonte); color: var(--suave); cursor: pointer; text-align: center; white-space: nowrap; text-decoration: none !important; display: flex; align-items: center; justify-content: center; gap: 6px; }
.abas .ativo { background: #fff; color: var(--texto); box-shadow: var(--sombra-1); }
.abas .contador { position: static; border: 0; }

.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; font-weight: 500; margin-bottom: 14px; background: var(--verde-50); color: var(--verde-800); border: 1px solid var(--verde-100); }
.alerta .emoji { display: none; }
.alerta > .ic { width: 20px; height: 20px; margin-top: 1px; }
.alerta.aviso { background: var(--amarelo-100); color: #6a5200; border-color: #ecc95e; }
.alerta.erro { background: var(--vermelho-100); color: #8f201d; border-color: #f4cdcb; }
.alerta.info { background: var(--azul-100); color: #165a9c; border-color: #cfe2f6; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 70px); z-index: 1300; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 14px; background: #161d18; color: #fff; font-weight: 600; font-size: .93rem; box-shadow: var(--sombra-3); animation: entra .25s ease; }
.toast .ic { width: 20px; height: 20px; color: #6fd38a; }
.toast.erro .ic { color: #ff8a80; }
.toast.aviso .ic { color: var(--amarelo-300); }
.toast.saindo { animation: sai .25s ease forwards; }

.fundo-escuro { position: fixed; inset: 0; z-index: 900; background: rgba(12, 18, 13, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fundo-escuro.aberto { opacity: 1; pointer-events: auto; }
.folha { position: fixed; z-index: 901; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.9,.3,1); box-shadow: var(--sombra-3); }
.folha.aberta { transform: translateY(0); }
.folha::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--borda-forte); margin: 0 auto 16px; }
/* folha de compartilhar (app, produto, loja) */
.folha-compartilhar h2 { margin: 0 0 2px; text-align: center; }
.comp-nome { margin: 0 0 16px; text-align: center; color: var(--suave); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.comp-op { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid var(--borda); border-radius: 16px; background: #fff; font: 600 .86rem var(--fonte); color: var(--texto); text-decoration: none !important; cursor: pointer; }
.comp-op:hover { background: var(--cinza-100); }
.comp-bola { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-50); color: var(--verde-700); }
.comp-bola .ic { width: 26px; height: 26px; }
.comp-whats .comp-bola { background: #25d366; color: #fff; }
@media (min-width: 700px) { .folha { left: 50%; right: auto; width: 540px; bottom: auto; top: 50%; border-radius: 22px; transform: translate(-50%, -40%) scale(.97); opacity: 0; pointer-events: none; transition: all .22s; padding-top: 22px; } .folha.aberta { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; } .folha::before { display: none; } }

/* Diálogo de confirmação */
.dialogo-fundo { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; padding: 16px 14px calc(14px + var(--safe-b)); background: rgba(12, 18, 13, .52); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.dialogo-fundo.aberto { opacity: 1; }
.dialogo { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 24px 20px 12px; text-align: center; box-shadow: var(--sombra-3); transform: translateY(40px) scale(.98); transition: transform .28s cubic-bezier(.2, .9, .3, 1.1); }
.dialogo-fundo.aberto .dialogo { transform: none; }
.dialogo .ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--verde-50); color: var(--verde-700); }
.dialogo .ico .ic { width: 28px; height: 28px; }
.dialogo.perigo .ico { background: var(--vermelho-100); color: var(--vermelho); }
.dialogo h3 { font-size: 1.2rem; margin: 0 0 6px; }
.dialogo p { margin: 0 auto 20px; max-width: 34ch; color: var(--texto-2); font-weight: 500; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.dialogo .acoes { display: grid; gap: 4px; }
.dialogo .btn-texto { color: var(--suave); min-height: 46px; }
@media (min-width: 700px) { .dialogo-fundo { align-items: center; } }

.esqueleto { background: linear-gradient(90deg, var(--cinza-100) 25%, #f8f9f7 37%, var(--cinza-100) 63%); background-size: 400% 100%; animation: brilho 1.3s ease infinite; border-radius: 12px; }

/* Mapa */
.mapa { width: 100%; height: 320px; border-radius: var(--raio-g); overflow: hidden; border: 1px solid var(--borda); background: var(--cinza-100); z-index: 1; }
.mapa-g { height: calc(100vh - var(--topo-h) - var(--nav-h) - var(--safe-b) - var(--safe-t)); height: calc(100dvh - var(--topo-h) - var(--nav-h) - var(--safe-b) - var(--safe-t)); border-radius: 0; border: 0; }
.pino { width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.28); color: #fff; }
.pino span { transform: rotate(45deg); font-size: .95rem; display: grid; }
.pino .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.pino-foto { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--cor, var(--verde-600)); box-shadow: 0 4px 12px rgba(0,0,0,.28); background: #fff center/cover no-repeat; }
.legenda-mapa { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; font-weight: 600; color: var(--texto-2); }
.legenda-mapa span { display: inline-flex; align-items: center; gap: 6px; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: var(--sombra-2) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-family: var(--fonte) !important; }

.instalar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--borda); }
.instalar img { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--borda); }
.instalar > .ic-caixa { width: 44px; height: 44px; }

/* Guia de instalação no iPhone/iPad (a Apple não deixa o site abrir a tela de instalar; o guia aponta o botão) */
.folha-ios.seta-embaixo { bottom: calc(78px + var(--safe-b)); border-radius: 22px; left: 10px; right: 10px; }
.folha-ios.seta-embaixo:not(.aberta) { transform: translateY(calc(100% + 120px)); }
.ios-cab { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.ios-cab img { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--borda); flex: none; }
.ios-cab h2 { font-size: 1.2rem; margin: 0; }
.ios-cab p { margin: 2px 0 0; }
.ios-passo { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--cinza-100); margin-bottom: 8px; }
.ios-passo.atual { background: #fff7d1; box-shadow: inset 0 0 0 2px var(--amarelo-500); }
.ios-passo .n { width: 28px; height: 28px; border-radius: 50%; background: var(--verde-800); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; flex: none; }
.ios-passo .t { flex: 1; font-size: .92rem; line-height: 1.35; }
.ios-passo .mini { flex: none; min-width: 32px; height: 32px; padding: 0 7px; border-radius: 9px; background: #fff; border: 1px solid var(--borda); display: grid; place-items: center; color: var(--texto); }
.ios-passo .mini.azul { color: #007aff; }
.ios-passo .mini.texto { font-size: .75rem; font-weight: 700; }
.ios-dica { margin: 4px 2px 12px; }
.ios-tag { display: inline-block; background: #fff1e6; color: #b35400; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 4px 12px; margin: 0 0 10px; }
.ios-seta { position: fixed; z-index: 902; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--amarelo-500); pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.ios-seta .bal { background: var(--amarelo-500); color: var(--verde-900); font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.ios-seta.baixo-centro { left: 50%; bottom: calc(6px + var(--safe-b)); transform: translateX(-50%); }
.ios-seta.baixo-direita { right: 10px; bottom: calc(6px + var(--safe-b)); }
/* iOS 26: botão ☰ fica no começo da barra de endereço (pouco depois do botão voltar) */
.ios-seta.baixo-menu { left: 27%; bottom: calc(6px + var(--safe-b)); transform: translateX(-50%); }
.ios-seta.topo-direita { right: 8px; top: calc(6px + var(--safe-t)); flex-direction: column-reverse; }
.ios-seta.topo-direita svg { transform: rotate(180deg); }
.ios-seta svg { animation: iosPula 1s ease-in-out infinite; }
@keyframes iosPula { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.ios-seta.topo-direita svg { animation-name: iosPulaCima; }
@keyframes iosPulaCima { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.etapas { display: flex; gap: 6px; margin-bottom: 18px; }
.etapas span { flex: 1; height: 4px; border-radius: 4px; background: var(--borda); }
.etapas span.feita { background: var(--verde-600); }
.passo { display: none; animation: entra .25s ease; }
.passo.ativo { display: block; }
.pergunta { font-size: 1.35rem; font-weight: 800; color: var(--texto); line-height: 1.2; margin-bottom: 6px; letter-spacing: -.025em; }

.status-hero { text-align: center; padding: 26px 18px; border-radius: var(--raio-g); background: #fff; border: 1px solid var(--borda); }
.status-hero .emoji { display: none; }
.status-hero .ico-status { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--verde-50); color: var(--verde-700); }
.status-hero .ico-status .ic { width: 32px; height: 32px; }
.codigo-entrega { display: inline-flex; gap: 8px; margin-top: 8px; }
.codigo-entrega span { width: 46px; height: 56px; border-radius: 12px; background: var(--verde-800); color: #fff; font-size: 1.7rem; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* Estatísticas */
.stat { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-g); padding: 16px; position: relative; overflow: hidden; }
.stat .r { font-size: .76rem; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 1.6rem; font-weight: 800; color: var(--texto); line-height: 1.1; margin-top: 8px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .d { font-size: .8rem; font-weight: 500; color: var(--suave); margin-top: 4px; }
.stat .ico-fundo { display: none; }
.stat.verde { background: var(--verde-700); color: #fff; border: 0; }
.stat.amarelo { background: var(--amarelo-100); border-color: #ecc95e; }
.stat.escuro { background: var(--verde-900); color: #fff; border: 0; }
.stat.verde .r, .stat.verde .v, .stat.verde .d, .stat.escuro .r, .stat.escuro .v, .stat.escuro .d { color: #fff; }
.stat.verde .r, .stat.escuro .r, .stat.verde .d, .stat.escuro .d { opacity: .8; }
.stat.amarelo .r, .stat.amarelo .d { color: #6a5200; }
.barra-prog { height: 8px; background: var(--cinza-100); border-radius: 8px; overflow: hidden; }
.barra-prog > span { display: block; height: 100%; background: var(--verde-600); border-radius: 8px; }

/* Tabelas */
.tabela-wrap { overflow-x: auto; border-radius: var(--raio-g); border: 1px solid var(--borda); background: #fff; }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); font-weight: 700; padding: 11px 14px; background: #fafbf9; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover { background: #fafbf9; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela tfoot td { font-weight: 800; background: #fafbf9; }
@media (max-width: 700px) {
  .tabela.responsiva thead { display: none; }
  .tabela.responsiva tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--borda); }
  .tabela.responsiva td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .tabela.responsiva td::before { content: attr(data-r); font-weight: 700; color: var(--suave); font-size: .8rem; text-align: left; }
  .tabela.responsiva td.num { justify-content: space-between; }
}

.paginacao { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.paginacao a, .paginacao span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: #fff; border: 1px solid var(--borda); color: var(--texto-2); text-decoration: none !important; }
.paginacao .ativo { background: var(--texto); color: #fff; border-color: var(--texto); }

.galeria { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria figure { margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--cinza-100); }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; font-weight: 600; font-size: .84rem; }
@media (min-width: 700px) { .galeria { grid-auto-columns: 40%; } }

/* Página da loja do produtor */
.loja-hero { position: relative; }
.loja-hero .capa { height: 230px; background: var(--verde-800); position: relative; overflow: hidden; }
.loja-hero .capa img { width: 100%; height: 100%; object-fit: cover; }
.loja-hero .capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 38%, rgba(0,0,0,.18)); }
.loja-hero .identidade { display: flex; gap: 14px; align-items: flex-end; padding: 0 16px; margin-top: -44px; position: relative; z-index: 2; max-width: 1080px; margin-left: auto; margin-right: auto; }
.loja-hero .identidade .avatar { width: 96px; height: 96px; border: 4px solid #fff; box-shadow: var(--sombra-2); font-size: 1.8rem; }
.loja-hero .voltar { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; z-index: 3; }
.loja-hero .voltar .btn-icone { background: rgba(255,255,255,.96); color: var(--texto); border-radius: 50%; }
.selo-roca { display: inline-flex; align-items: center; gap: 6px; background: var(--amarelo-500); color: var(--verde-900); font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 6px; }

/* Animações */
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sai { to { opacity: 0; transform: translateY(-6px); } }
@keyframes brilho { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,196,0,.35); } 50% { box-shadow: 0 0 0 8px rgba(245,196,0,0); } }
@keyframes pula { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes flutua { 0%, 100% { transform: none; } }
.pula { animation: pula .3s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.offline-faixa { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; background: var(--texto); color: #fff; text-align: center; font-weight: 600; font-size: .82rem; padding: calc(5px + var(--safe-t)) 8px 5px; }

/* =====================================================================
   PAINEL (admin / logística)
   ===================================================================== */
.painel { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.painel-lateral { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #0d1f12; color: #c9d4cb; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.painel-lateral .marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none !important; }
.painel-lateral .marca img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #fff; }
.painel-lateral .marca b { font-size: 1rem; line-height: 1.1; display: block; letter-spacing: -.02em; }
.painel-lateral .marca small { color: #8fa596; font-weight: 600; }
.painel-lateral .grupo { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6f8475; font-weight: 700; margin: 18px 10px 6px; }
.painel-lateral a.item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: #c9d4cb; font-weight: 600; font-size: .9rem; text-decoration: none !important; transition: background .15s, color .15s; }
.painel-lateral a.item .ico { width: 20px; display: grid; place-items: center; font-size: 0; }
.painel-lateral a.item .ic { width: 19px; height: 19px; }
.painel-lateral a.item:hover { background: rgba(255,255,255,.06); color: #fff; }
.painel-lateral a.item.ativo { background: #fff; color: var(--verde-800); }
.painel-lateral a.item .contador { position: static; margin-left: auto; border: 0; }
.painel-lateral .rodape { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.painel-principal { min-width: 0; display: flex; flex-direction: column; }
.painel-topo { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: rgba(245,245,242,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--borda); min-height: 64px; }
.painel-topo h1 { margin: 0; font-size: 1.3rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.painel-topo .menu-btn { display: none; }
.painel-corpo { padding: 24px; width: 100%; max-width: 1400px; }
.painel-corpo .card + .card { margin-top: 16px; }
@media (max-width: 980px) {
  .painel { grid-template-columns: 1fr; }
  .painel-lateral { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--sombra-3); }
  .painel-lateral.aberto { transform: none; }
  .painel-topo { padding: calc(10px + var(--safe-t)) 14px 10px; }
  .painel-topo .menu-btn { display: grid; }
  .painel-topo h1 { font-size: 1.1rem; }
  .painel-corpo { padding: 14px; }
}
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filtros .campo { margin: 0; min-width: 150px; flex: 1; }
.filtros .entrada { min-height: 42px; padding: 8px 12px; }
.acoes-linha { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.grafico { position: relative; width: 100%; height: 300px; }
.grafico-p { height: 220px; }

.parada { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--borda); }
.parada + .parada { margin-top: 10px; }
.parada .num { width: 36px; height: 36px; border-radius: 10px; background: var(--verde-800); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.parada.concluida { opacity: .62; }
.parada.concluida .num { background: var(--verde-600); }
.parada.falhou .num { background: var(--vermelho); }
.arrastar { cursor: grab; color: var(--borda-forte); display: grid; }

/* =====================================================================
   TABLET E COMPUTADOR (a partir de 768px)
   Cliente: cabeçalho completo (menu, busca, conta). Produtor e entregador: menu lateral.
   O menu de baixo do celular some. As telas de cada módulo se ajustam no CSS do módulo.
   ===================================================================== */
.so-desk { display: none !important; }
.lateral-app { display: none; }
@media (min-width: 768px) {
  .so-desk { display: flex !important; }
  .so-mobile { display: none !important; }
  .app .nav-inferior { display: none !important; }
  .app, .app.sem-nav { padding-bottom: 40px; }
  body:has(.barra-fixa:not([hidden])) .app, body:has(.barra-fixa:not([hidden])) .app.sem-nav { padding-bottom: 120px; }
  .barra-fixa, .app.sem-nav .barra-fixa { bottom: calc(20px + var(--safe-b)); }
  .conteudo { max-width: 1200px; padding: 24px 32px; }
  .conteudo-estreito { max-width: 760px; }

  /* cliente: cabeçalho completo */
  .topo-cliente { height: 72px; padding: 0 max(24px, calc((100vw - 1200px) / 2 + 32px)); gap: 14px; }
  .topo-cliente .marca { flex: none; }
  .topo .marca img.marca-logo { height: 40px; max-width: 190px; }
  .topo-links { gap: 2px; align-items: center; }
  .topo-links a { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 11px; color: var(--texto-2); font-weight: 700; font-size: .92rem; text-decoration: none !important; white-space: nowrap; }
  .topo-links a .ic { width: 18px; height: 18px; }
  .topo-links a:hover { background: var(--cinza-100); }
  .topo-links a.ativo { background: #e7f3e8; color: var(--verde-800); }
  .topo-busca { flex: 1; max-width: 420px; align-items: center; gap: 8px; background: var(--cinza-100); border-radius: 12px; padding: 0 14px; height: 44px; margin-left: auto; }
  .topo-busca .ic { width: 18px; height: 18px; color: var(--suave); flex: none; }
  .topo-busca input { border: 0; background: transparent; flex: 1; font: 500 .95rem var(--fonte); outline: none; min-width: 0; height: 100%; color: var(--texto); }
  .topo-conta { align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--borda); font-weight: 700; font-size: .92rem; color: var(--texto); text-decoration: none !important; position: relative; white-space: nowrap; }
  .topo-conta .ic { width: 20px; height: 20px; }
  .topo-conta.ativo { border-color: var(--verde-600); color: var(--verde-800); }
  .topo-area { white-space: nowrap; }

  /* produtor e entregador: menu lateral */
  .com-lateral .casca { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
  .com-lateral .casca > .lateral-app { display: flex; position: sticky; top: 0; height: 100vh; width: auto; transform: none; box-shadow: none; }
  .lateral-app .marca img { object-fit: cover; }
  .lateral-app a.item.item-destaque { background: rgba(245,196,0,.16); color: #fff; }
  .lateral-app a.item.item-destaque:hover { background: rgba(245,196,0,.26); }
  .com-lateral .topo { padding: 0 24px; height: 64px; }
  .com-lateral .topo .titulo { font-size: 1.2rem; }
}
/* tablet: menos espaço no cabeçalho */
@media (min-width: 768px) and (max-width: 1023px) {
  .topo-cliente { padding: 0 18px; gap: 8px; }
  .topo-cliente .topo-busca { display: none !important; }
  .topo-links { margin-left: auto; }
  .topo-links a { padding: 8px 9px; font-size: .88rem; }
  .topo-links a .ic { display: none; }
  .topo .marca img.marca-logo { height: 34px; max-width: 150px; }
  .topo-area { display: none !important; }
  .com-lateral .casca { grid-template-columns: 216px minmax(0, 1fr); }
}
/* notebook pequeno / tablet deitado: cabe tudo sem passar da tela */
@media (min-width: 1024px) and (max-width: 1279px) {
  .topo-cliente { padding: 0 20px; gap: 10px; }
  .topo-links a { padding: 8px 10px; }
  .topo-links a .ic { display: none; }
  .topo-cliente .topo-busca { max-width: 240px; min-width: 150px; }
  .topo-area { display: none !important; }
  .topo-conta span:not(.contador) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
}
/* tablet pequeno em pé (600 a 767px): produtor e entregador já ganham o menu lateral */
@media (min-width: 600px) and (max-width: 767px) {
  .com-lateral .so-desk { display: flex !important; }
  .com-lateral .so-mobile { display: none !important; }
  .com-lateral .app .nav-inferior { display: none !important; }
  .com-lateral .app, .com-lateral .app.sem-nav { padding-bottom: 32px; }
  .com-lateral .barra-fixa, .com-lateral .app.sem-nav .barra-fixa { bottom: calc(16px + var(--safe-b)); }
  .com-lateral .casca { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 100vh; }
  .com-lateral .casca > .lateral-app { display: flex; position: sticky; top: 0; height: 100vh; width: auto; transform: none; box-shadow: none; padding-left: 8px; padding-right: 8px; }
  .com-lateral .lateral-app .marca img { object-fit: cover; }
  .com-lateral .lateral-app a.item { padding: 8px 9px; font-size: .88rem; }
  .com-lateral .lateral-app a.item.item-destaque { background: rgba(245,196,0,.16); color: #fff; }
  .com-lateral .topo { padding: 0 18px; height: 60px; }
  .com-lateral .conteudo { padding: 18px 18px; }
}
/* passo a passo da impressora Epson */
.ag-passos { margin: 0 0 14px; padding-left: 20px; color: var(--texto-2); }
.ag-passos li + li { margin-top: 4px; }
.topo-cliente { min-width: 0; }
.topo-cliente > * { flex-shrink: 0; }
.topo-cliente .topo-busca { flex-shrink: 1; }

@media print {
  body { background: #fff; }
  .nao-imprimir, .topo, .nav-inferior, .painel-lateral, .painel-topo, .toasts { display: none !important; }
}

/* painel/logística: ajustes de tela larga */
@media (min-width: 981px) { .painel { grid-template-columns: 264px minmax(0, 1fr); } }
@media (min-width: 981px) and (max-width: 1279px) {
  .painel { grid-template-columns: 224px minmax(0, 1fr); }
  .painel-corpo { padding: 20px; }
  .painel-lateral a.item { padding: 8px 10px; font-size: .86rem; }
}
@media (min-width: 1600px) { .painel-corpo { max-width: 1560px; } }
/* formulários do painel não esticam em tela larga */
.painel-corpo > form.card-g, .painel-corpo > .adm-form, .cfg-abas ~ form.card, .cfg-abas ~ .card { max-width: 1120px; }

/* cliente: ajustes de tela larga */
.sobre-logo { width: 100%; max-width: 440px; }
@media (min-width: 768px) {
  /* perfil: cabecalho alinhado com o conteudo de baixo */
  .perfil-saudacao { padding: 28px 0 24px; }
  .perfil-saudacao .conteudo { padding: 0 32px; align-items: center; }
  .perfil-saudacao h1 { font-size: 1.7rem; }
}
