/* Hamburgueria e Dogueria 547 — layout no padrão de cardápio digital (claro, limpo) */
:root {
  --bg: #f9f9f9;
  --branco: #ffffff;
  --txt: #212529;
  --txt2: #6c757d;
  --linha: #e9ecef;
  --cinza: #e9ecef;        /* fundo dos cabeçalhos de grupo */
  --primaria: #111111;     /* cor dos botões principais — troque pela cor da marca se quiser */
  --primaria-txt: #ffffff;
  --destaque: #ff7a00;     /* laranja da 547 (detalhes) */
  --ok: #198754;
  --erro: #dc3545;
  --info-bg: #e7f1f8;
  --info-txt: #2b5f86;
  --raio: 10px;
  --sombra: 0 2px 12px rgba(0, 0, 0, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45; color: var(--txt); background: var(--bg); }
body.travado { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--txt); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.estreito { max-width: 680px; padding-top: 22px; padding-bottom: 30px; }
.muted { color: var(--txt2); }
.pequeno { font-size: .85rem; }
.link { border: 0; background: none; padding: 0; font-weight: 600; color: var(--txt); }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 40; background: var(--branco); box-shadow: 0 1px 0 var(--linha); }
.topo-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.topo-logo { flex-shrink: 0; text-decoration: none; }
.topo-tit { font-weight: 600; }
.busca { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; background: #f1f1f1; border-radius: 8px; padding: 0 14px; height: 44px; }
.busca svg { width: 20px; height: 20px; fill: none; stroke: var(--txt); stroke-width: 2; flex-shrink: 0; }
.busca input { flex: 1; border: 0; background: none; outline: none; min-width: 0; height: 100%; }
.busca input::placeholder { color: #888; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--txt2); font-size: .9rem; }
.nav a.ativo { color: var(--txt); font-weight: 500; }
.nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* logo "547" em CSS (usado quando LOJA_LOGO está vazio) */
.logo-css { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #3a1670, #12081f 70%); color: #fff; line-height: 1; }
.logo-css b { font-weight: 800; letter-spacing: -1px; background: linear-gradient(180deg, #ffc23d, #ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-css small { text-transform: uppercase; letter-spacing: .08em; color: #ffb000; font-weight: 600; }
.logo-mini { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.logo-mini.logo-css b { font-size: .95rem; }
.logo-mini.logo-css small { display: none; }
.logo-grande { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 5px solid var(--branco); box-shadow: var(--sombra); }
.logo-grande.logo-css b { font-size: 2.3rem; }
.logo-grande.logo-css small { font-size: .5rem; margin-top: 4px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.col-main { min-width: 0; }

/* ---------- loja ---------- */
.capa { height: 230px; border-radius: var(--raio) var(--raio) 0 0; background: #1a0b2e center / cover no-repeat; }
.loja-info { position: relative; padding: 0 16px; }
.loja-info .logo-grande { margin-top: -58px; position: relative; }
.loja-info h1 { font-size: 1.45rem; font-weight: 600; margin: 10px 0 6px; }
.loja-end { margin: 0 0 6px; color: var(--txt); }
.loja-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; font-size: .92rem; }
.st-fechada { color: var(--erro); }
.st-aberta { color: var(--ok); font-weight: 500; }
.chip { background: var(--info-bg); color: var(--info-txt); padding: 2px 10px; border-radius: 4px; font-size: .85rem; }
.linha-acao { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 15px 16px; font-size: .92rem; font-weight: 500; }
.linha-acao svg { width: 22px; height: 22px; fill: none; stroke: var(--txt); stroke-width: 1.8; flex-shrink: 0; }
.linha-acao span { flex: 1; }
.linha-acao .seta { width: 18px; height: 18px; stroke-width: 2.2; }

/* ---------- abas de categoria ---------- */
.abas { position: sticky; top: 68px; z-index: 30; display: flex; align-items: stretch; background: var(--branco); margin-top: 14px; box-shadow: 0 1px 0 var(--linha); }
.abas-menu { border: 0; background: none; padding: 0 16px; display: grid; place-items: center; }
.abas-menu svg { width: 22px; height: 22px; stroke: var(--txt); stroke-width: 2; fill: none; }
.abas-lista { display: flex; overflow-x: auto; scrollbar-width: none; }
.abas-lista::-webkit-scrollbar { display: none; }
.abas-lista a { white-space: nowrap; text-decoration: none; text-transform: uppercase; color: var(--txt2); font-size: .88rem; font-weight: 500; padding: 20px 26px 17px; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.abas-lista a.ativo { color: var(--txt); font-weight: 600; border-bottom-color: var(--txt); }

/* ---------- categorias e produtos ---------- */
.cat { margin-top: 10px; }
.cat h2 { font-size: 1.25rem; font-weight: 500; text-transform: uppercase; color: #495057; margin: 24px 16px 12px; letter-spacing: .02em; }
.cat-nota { margin: -6px 16px 12px; color: var(--txt2); font-size: .85rem; }
.lista { background: var(--branco); border-radius: 4px; }
.card { width: 100%; display: flex; gap: 20px; align-items: center; text-align: left; border: 0; background: none; padding: 20px 16px; border-bottom: 1px solid var(--linha); transition: background .15s; }
.card:last-child { border-bottom: 0; }
.card:not(:disabled):hover { background: #fcfcfc; }
.card-txt { flex: 1; min-width: 0; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0 0 10px; color: var(--txt2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card strong { font-weight: 400; font-size: .95rem; color: var(--txt); }
.card img { width: 140px; height: 100px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cat-bloq .card { opacity: .5; cursor: not-allowed; }
.vazio-busca { text-align: center; color: var(--txt2); padding: 40px 0; }

/* ---------- sacola ---------- */
.sacola { position: sticky; top: 92px; }
.sacola-in { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; display: flex; flex-direction: column; max-height: calc(100vh - 112px); }
.sacola-top { display: flex; justify-content: space-between; align-items: center; }
.sacola-top h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.sacola-top .x { display: none; }
.sacola-itens { overflow-y: auto; margin: 6px -4px 10px; padding: 0 4px; flex: 1; }
.sacola-vazia { text-align: center; padding: 26px 0 18px; color: #adb5bd; }
.sacola-vazia svg { width: 46px; height: 46px; fill: none; stroke: #adb5bd; stroke-width: 1.4; stroke-linejoin: round; }
.sacola-vazia p { margin: 6px 0 0; font-size: .9rem; }
.item { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9rem; }
.item-txt b { font-weight: 500; }
.item-txt small { color: var(--txt2); font-size: .8rem; }
.item-txt span { font-weight: 500; margin-top: 2px; }
.sacola-tot, .resumo { border-top: 1px solid var(--linha); padding-top: 10px; margin-bottom: 14px; }
.sacola-tot div, .resumo div { display: flex; justify-content: space-between; padding: 2px 0; color: var(--txt2); font-size: .88rem; }
.sacola-tot .total, .resumo .total { color: var(--txt); font-weight: 600; font-size: 1rem; padding-top: 4px; }

.barra-sacola { position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 45; display: none; align-items: center; gap: 12px; border: 0; border-radius: 8px; padding: 14px 16px; background: var(--primaria); color: var(--primaria-txt); font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.barra-sacola span:nth-child(2) { flex: 1; text-align: left; }
.bs-qtd { background: rgba(255, 255, 255, .18); border-radius: 6px; min-width: 26px; padding: 1px 8px; text-align: center; font-size: .85rem; }

/* ---------- botões / stepper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 13px 20px; font-weight: 500; text-decoration: none; transition: opacity .15s; }
.btn-prim { background: var(--primaria); color: var(--primaria-txt); }
.btn-prim:hover { opacity: .88; }
.btn-sec { background: var(--branco); color: var(--txt); border: 1px solid #ced4da; }
.btn-ghost { background: transparent; color: var(--txt2); }
.btn-full { width: 100%; }
.btn:disabled { background: #6c757d; color: #fff; opacity: 1; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--linha); border-radius: 8px; background: #fafafa; }
.stepper button { border: 0; background: none; width: 40px; height: 46px; font-size: 1.2rem; color: var(--txt); }
.stepper output { min-width: 26px; text-align: center; border-left: 1px solid #ddd; border-right: 1px solid #ddd; line-height: 1.4; }
.stepper.sm button { width: 30px; height: 32px; font-size: 1rem; }

/* ---------- modais ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.modal-box { position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--branco); border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); animation: sobe .2s ease; }
.modal-peq { max-width: 460px; padding: 0 0 8px; }
.modal-largo { max-width: 620px; padding: 22px; }
@keyframes sobe { from { transform: translateY(16px); opacity: 0; } }
.x { border: 0; background: #f1f1f1; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: #555; }
.x-flut { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255, 255, 255, .85); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--linha); }
.m-head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.m-tit { font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; }

.mp-foto { position: relative; height: 340px; overflow: hidden; background: #222; }
.mp-foto::before { content: ''; position: absolute; inset: -20px; background: var(--img) center / cover; filter: blur(18px); opacity: .7; }
.mp-foto img { position: relative; height: 100%; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.mp-sem-foto { height: 56px; }
.mp-corpo { padding: 20px 22px 16px; }
.mp-tit { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.mp-desc { color: var(--txt2); margin: 0 0 12px; }
.mp-alerta { color: var(--erro); font-size: .88rem; margin: 0 0 10px; }
.mp-preco { margin: 0; }
.grupo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--cinza); padding: 14px 22px; }
.grupo-top b { display: block; font-weight: 500; }
.grupo-top small { color: #555; font-size: .82rem; }
.badges { display: flex; gap: 6px; flex-shrink: 0; }
.badge { background: #495057; color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 8px; border-radius: 4px; }
.badge-claro { background: #ced4da; color: #333; }
.grupo { padding: 0 22px; }
.grupo textarea { width: 100%; margin: 14px 0; padding: 12px; border: 1px solid #ced4da; border-radius: 6px; resize: vertical; outline: none; }
.grupo textarea:focus { border-color: #888; }
.opcao { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linha); cursor: pointer; }
.opcao:last-child { border-bottom: 0; }
.opcao b { display: block; font-weight: 400; }
.opcao small { color: var(--txt2); }
.opcao input { width: 20px; height: 20px; accent-color: var(--primaria); }
.mp-rodape { position: sticky; bottom: 0; display: flex; gap: 20px; padding: 18px 22px; background: var(--branco); border-top: 1px solid var(--linha); margin-top: 10px; }
.mp-rodape .btn { flex: 1; justify-content: space-between; font-weight: 600; padding: 14px 22px; }

.modalidade { display: grid; gap: 10px; padding: 16px 18px 10px; }
.modalidade button { text-align: left; border: 1px solid #ced4da; background: var(--branco); border-radius: 8px; padding: 14px 16px; }
.modalidade button b { display: block; font-weight: 600; }
.modalidade button span { color: var(--txt2); font-size: .88rem; }
.modalidade button.ativo { border: 2px solid var(--primaria); padding: 13px 15px; }
.info { margin: 0; padding: 6px 18px 10px; }
.info dt { font-weight: 600; font-size: .85rem; margin-top: 12px; }
.info dd { margin: 2px 0 0; color: var(--txt2); }
.cats-lista a { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--linha); text-decoration: none; text-transform: uppercase; font-size: .9rem; font-weight: 500; }
.cats-lista a span { color: var(--txt2); }

/* ---------- checkout ---------- */
fieldset { border: 0; border-bottom: 1px solid var(--linha); padding: 0 0 16px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
fieldset label { display: block; font-size: .85rem; color: var(--txt2); margin-top: 10px; }
fieldset input:not([type=radio]):not([type=checkbox]), fieldset textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #ced4da; border-radius: 6px; background: var(--branco); outline: none; resize: vertical; }
fieldset input:focus, fieldset textarea:focus { border-color: #888; }
.sub-leg { margin: 12px 0 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt2); font-weight: 600; }
.opcoes2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { margin: 0 !important; position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; height: 100%; padding: 12px 14px; border: 1px solid #ced4da; border-radius: 8px; color: var(--txt); font-weight: 600; }
.radio-card small { display: block; font-weight: 400; color: var(--txt2); font-size: .8rem; }
.radio-card input:checked + span { border: 2px solid var(--primaria); padding: 11px 13px; }
.endereco { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.endereco .span2 { grid-column: span 2; }
.radio-linha { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--linha); cursor: pointer; color: var(--txt) !important; font-size: .95rem !important; margin-top: 0 !important; }
.radio-linha span { flex: 1; }
.radio-linha input, .check18 input { width: 18px; height: 18px; accent-color: var(--primaria); }
.troco { margin-top: 4px; }
.check18 { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: #fff3f3; border: 1px solid #f5c2c7; margin-bottom: 14px; font-size: .9rem; }
.erro { color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; border-radius: 6px; padding: 12px 14px; font-size: .9rem; }

/* ---------- acompanhamento do pedido ---------- */
.card-box { display: block; background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; margin-bottom: 14px; color: var(--txt); text-decoration: none; }
.card-box h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.centro { text-align: center; }
.pg-tit { font-size: 1.35rem; font-weight: 600; margin: 4px 0 16px; }
.ped-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.ped-head small { color: var(--txt2); font-size: .8rem; }
.ped-head h1 { font-size: 1.6rem; font-weight: 600; margin: 0; line-height: 1.1; }
.ped-data { color: var(--txt2); font-size: .9rem; }
.confirmacao { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--raio); margin-bottom: 14px; background: #e8f5ee; border: 1px solid #b7e1c8; animation: sobe .25s ease; }
.conf-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.confirmacao b { font-weight: 600; }
.confirmacao span { display: block; color: #3d5a48; font-size: .92rem; }
.status-tit { font-size: 1.2rem !important; }
.linha { list-style: none; margin: 4px 0 14px; padding: 0; }
.linha li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: #adb5bd; }
.linha li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ced4da; background: var(--branco); flex-shrink: 0; position: relative; z-index: 1; }
.linha li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 29px; bottom: -9px; width: 2px; background: #dee2e6; }
.linha li.feito { color: var(--txt); }
.linha li.feito i { background: var(--ok); border-color: var(--ok); }
.linha li.feito::after { background: var(--ok) !important; }
.linha li.atual { color: var(--txt); font-weight: 600; }
.linha li.atual i { border-color: var(--destaque); background: var(--destaque); animation: pulso 1.6s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .5); } 70% { box-shadow: 0 0 0 9px rgba(255, 122, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); } }
.pix { text-align: center; }
.pix-item { padding: 8px 0; }
.pix-item + .pix-item { border-top: 1px solid var(--linha); }
.pix-item h3 { margin: 6px 0 0; font-size: 1rem; }
.pix-valor { font-size: 1.4rem; font-weight: 600; margin: 4px 0 10px; }
.qr { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--linha); border-radius: 8px; }
.qr img, .qr canvas { width: 200px; height: 200px; }
.copia { display: flex; gap: 8px; margin-top: 12px; }
.copia input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #ced4da; border-radius: 6px; background: #f8f9fa; color: var(--txt2); font-size: .82rem; }
.pix a { color: var(--ok); font-weight: 500; }
.resumo-itens { list-style: none; padding: 0; margin: 0 0 10px; }
.resumo-itens li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linha); font-size: .92rem; }
.ri-q { font-weight: 600; }
.ri-n { flex: 1; }
.ri-n small { display: block; color: var(--txt2); }
.dados { margin: 0; }
.dados dt { color: var(--txt2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.dados dd { margin: 2px 0 0; }
.demo { border: 1px dashed #ced4da; box-shadow: none; background: #fffdf5; color: var(--txt2); font-size: .9rem; }
.demo b { color: var(--txt); }
.demo-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.demo-btns .btn { padding: 9px 14px; font-size: .88rem; }
.ped-lista { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ped-lista:hover { box-shadow: 0 2px 16px rgba(0, 0, 0, .1); }
.ped-lista small { display: block; color: var(--txt2); }
.pl-dir { text-align: right; }
.pl-dir b { display: block; margin-top: 4px; font-weight: 600; }
.st { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: #fff1e5; color: #b45309; }
.st-concluido { color: var(--ok); background: #e8f5ee; }
.st-cancelado { color: var(--erro); background: #fdecee; }
.perfil label { display: block; font-size: .85rem; color: var(--txt2); margin-top: 12px; }
.perfil input { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #ced4da; border-radius: 6px; outline: none; }
.perfil .acoes { display: flex; gap: 10px; margin-top: 18px; }
.perfil .acoes .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 80; background: #212529; color: #fff; font-size: .9rem; padding: 12px 18px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center; animation: sobe .2s ease; }
.rodape { text-align: center; color: var(--txt2); font-size: .8rem; padding: 10px 16px 30px; }

/* ---------- celular / tablet ---------- */
@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .wrap.layout { padding: 0; }
  .capa { border-radius: 0; height: 170px; }
  .loja-info .logo-grande { width: 96px; height: 96px; margin-top: -50px; }
  .abas { margin-top: 10px; }
  .topo-in { height: 60px; gap: 12px; }
  .pg-inicio .topo-logo { display: none; }
  .busca { max-width: none; }
  .abas { top: 60px; }
  html { scroll-padding-top: 120px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; gap: 0; background: var(--branco); box-shadow: 0 -1px 0 var(--linha), 0 -4px 16px rgba(0, 0, 0, .05); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
  .nav a { flex: 1; flex-direction: column; gap: 3px; font-size: .78rem; }
  .nav svg { width: 24px; height: 24px; }
  body { padding-bottom: 76px; }
  body.tem-sacola { padding-bottom: 140px; }
  .sacola { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .5); visibility: hidden; opacity: 0; transition: .2s; }
  .sacola.aberta { visibility: visible; opacity: 1; }
  .sacola-in { width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; transform: translateY(30px); transition: .25s; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .sacola.aberta .sacola-in { transform: none; }
  .sacola-top .x { display: block; }
  .barra-sacola { display: flex; }
}
@media (max-width: 600px) {
  .cat h2 { font-size: 1.1rem; }
  .card { gap: 14px; padding: 16px; }
  .card img { width: 120px; height: 90px; }
  .card p { font-size: .88rem; }
  .abas-lista a { padding: 18px 18px 15px; font-size: .82rem; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 100vh; border-radius: 12px 12px 0 0; }
  .mp-foto { height: 260px; }
  .modal-largo { padding: 20px 16px; }
  .opcoes2, .endereco { grid-template-columns: 1fr; }
  .endereco .span2 { grid-column: auto; }
  .mp-rodape { gap: 12px; padding: 14px 16px; }
  .mp-rodape .btn { padding: 14px 16px; }
  .grupo-top, .grupo { padding-left: 16px; padding-right: 16px; }
  .mp-corpo { padding: 18px 16px 14px; }
}

/* ---------- sacola: nota ---------- */
.sacola-nota { margin: 6px 0 0; font-size: .8rem; color: var(--txt2); }

/* ---------- checkout (v2) ---------- */
.modal-ck { max-width: 600px; display: flex; flex-direction: column; overflow: hidden; }
.modal-ck form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); }
.ck-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--linha); flex-shrink: 0; }
.ck-head h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.ck-corpo { overflow-y: auto; padding: 4px 20px 16px; flex: 1; }
.sec { padding: 18px 0; border-bottom: 1px solid var(--linha); }
.sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1rem; font-weight: 600; }
.sec h3 small { font-weight: 400; color: var(--txt2); font-size: .85rem; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--primaria); color: var(--primaria-txt); display: grid; place-items: center; font-size: .78rem; font-weight: 600; }
.sec label:not(.opt):not(.chip-op):not(.troco-campo) { display: block; font-size: .85rem; color: var(--txt2); margin-top: 10px; }
.sec input:not([type=radio]):not([type=checkbox]), .sec textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #ced4da; border-radius: 8px; background: var(--branco); outline: none; resize: vertical; }
.sec input:focus, .sec textarea:focus { border-color: var(--primaria); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.sec .endereco { margin-top: 4px; }

.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dee2e6; border-radius: 10px; background: var(--branco); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt:hover { border-color: #adb5bd; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-ico { width: 42px; height: 42px; border-radius: 10px; background: #f1f3f5; display: grid; place-items: center; flex-shrink: 0; }
.opt-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--txt); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ico-pix { background: #e6f7f2; }
.ico-pix svg { stroke: #0f8a6a; }
.opt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-txt b { font-weight: 600; font-size: .95rem; }
.opt-txt small { color: var(--txt2); font-size: .8rem; }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ced4da; flex-shrink: 0; position: relative; transition: .15s; }
.opt:has(input:checked) { border-color: var(--primaria); box-shadow: 0 0 0 1px var(--primaria); background: #fcfcfc; }
.opt:has(input:checked) .check { border-color: var(--primaria); background: var(--primaria); }
.opt:has(input:checked) .check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opt:has(input:focus-visible) { outline: 2px solid var(--primaria); outline-offset: 2px; }
.tag-rec { font-size: .7rem; font-weight: 600; color: #0f8a6a; background: #e6f7f2; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pay { margin-bottom: 0; }
.sec .sub-leg { margin: 6px 0 8px; }
.sec .sub-leg + .opt { margin-bottom: 14px; }
.pay-grupo { border-radius: 10px; margin-bottom: 10px; }
.pay-grupo:has(input[name=pagamento]:checked) .pay { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pay-extra { border: 1px solid var(--primaria); border-top: 0; border-radius: 0 0 10px 10px; padding: 12px 14px 14px; background: #fafafa; box-shadow: 0 0 0 1px var(--primaria); clip-path: inset(0 -2px -2px -2px); }
.pe-tit { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.pe-nota { display: block; color: var(--txt2); font-size: .8rem; margin-top: 8px; }
.chips { display: flex; gap: 8px; }
.chip-op { position: relative; cursor: pointer; }
.chip-op input { position: absolute; opacity: 0; }
.chip-op span { display: inline-block; padding: 8px 18px; border: 1px solid #ced4da; border-radius: 999px; background: var(--branco); font-size: .88rem; font-weight: 500; transition: .15s; }
.chip-op input:checked + span { background: var(--primaria); color: var(--primaria-txt); border-color: var(--primaria); }
.troco-campo { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .88rem; }
.troco-campo .rs { font-weight: 600; }
.sec .troco-campo input { width: 130px; margin: 0; display: inline-block; font-weight: 600; }
.ck-corpo .resumo { margin: 16px 0 0; border-top: 0; background: #f8f9fa; border-radius: 10px; padding: 12px 14px; }
.ck-corpo .check18 { margin: 16px 0 0; }
.ck-corpo .erro { margin: 14px 0 0; }
.ck-rodape { display: flex; align-items: center; gap: 16px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: var(--branco); flex-shrink: 0; }
.ck-total { display: flex; flex-direction: column; line-height: 1.2; }
.ck-total small { color: var(--txt2); font-size: .78rem; }
.ck-total b { font-size: 1.2rem; font-weight: 600; }
.ck-rodape .btn { flex: 1; padding: 14px 20px; font-weight: 600; }

/* ---------- PIX (v2) ---------- */
.pix-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; text-align: left; }
.pix-topo h2 { margin: 0 !important; }
.pix-status { font-size: .75rem; font-weight: 600; color: #b45309; background: #fff4e5; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pix-item { padding: 14px 0 6px; }
.pix-item small { display: block; }
.pix-valor { font-size: 1.9rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -.02em; }
.qr { padding: 14px; border-radius: 12px; }
.pix-copiar { margin-top: 16px; }
.pix-copiar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.pix-copiar.copiado { background: var(--ok); }
.pix-codigo { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px dashed #ced4da; border-radius: 8px; background: #f8f9fa; color: var(--txt2); font-size: .75rem; text-align: center; }
.pix-receb { margin: 10px 0 0; font-size: .85rem; color: var(--txt2); }
.pix-passos { text-align: left; margin: 16px 0 0; padding: 14px 14px 14px 34px; background: #f8f9fa; border-radius: 10px; font-size: .88rem; color: #495057; }
.pix-passos li { margin: 4px 0; }

@media (max-width: 600px) {
  .modal-ck form { max-height: 100vh; }
  .modal-ck { height: 100vh; max-height: 100vh; border-radius: 0; }
  .ck-corpo { padding: 0 16px 16px; }
  .ck-head, .ck-rodape { padding-left: 16px; padding-right: 16px; }
  .tag-rec { display: none; }
}
.troco-campo span { white-space: nowrap; }
.sec .troco-campo input { width: 140px !important; flex: 0 0 auto; }

/* ---------- instalar o app ---------- */
.instalar { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 55; display: flex; align-items: center; gap: 12px; background: var(--branco); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 12px 12px 12px 14px; max-width: 480px; margin: 0 auto; animation: sobe .3s ease; }
.instalar img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.inst-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; }
.inst-txt b { font-weight: 600; font-size: .92rem; }
.inst-txt span { color: var(--txt2); }
.inst-btn { border: 0; background: var(--primaria); color: var(--primaria-txt); border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: .85rem; }
.inst-x { border: 0; background: none; font-size: 1.3rem; color: var(--txt2); width: 28px; height: 28px; }
body.tem-sacola .instalar { bottom: 148px; }
@media (min-width: 992px) { .instalar { bottom: 20px; left: auto; right: 20px; } }

/* ===== login do cliente ===== */
.entrar { max-width: 420px; margin: 28px auto; padding: 26px 22px; }
.entrar-topo { text-align: center; margin-bottom: 8px; }
.entrar-topo h1 { font-size: 1.25rem; margin: 12px 0 6px; }
.entrar-topo p { font-size: .88rem; margin: 0 0 6px; }
.logo-entrar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; display: inline-flex; }
.entrar label { display: block; font-size: .85rem; color: var(--txt2); margin-top: 14px; }
.entrar input { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 1px solid #ced4da; border-radius: 8px; outline: none; font-size: 1rem; }
.entrar input:focus, .perfil input:focus { border-color: #111; }
.entrar .btn-full { margin-top: 18px; padding: 14px; }
.entrar .erro, .wrap > .erro { background: #fdecec; color: #b42318; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin: 10px 0 0; }
.ck-cliente { display: flex; align-items: center; gap: 12px; border: 1px solid #e3e6ea; border-radius: 10px; padding: 12px; }
.ck-cliente div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ck-cliente small { color: var(--txt2); }
.ck-cliente a { font-size: .85rem; font-weight: 600; color: var(--txt); }
.ck-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-weight: 600; }
.ck-av.grande { width: 52px; height: 52px; font-size: 1.2rem; }
.perfil-cab { display: flex; align-items: center; gap: 14px; }
.perfil-cab div { display: flex; flex-direction: column; }
.perfil-cab small { color: var(--txt2); }
.perfil small.muted { display: block; margin-top: 4px; font-size: .76rem; }
.perfil input:disabled { background: #f4f5f7; color: var(--txt2); }
.perfil-sub { font-size: .95rem; margin: 22px 0 0; }
.aviso-ok { background: #e7f6ec; color: #146c2e; border-radius: 8px; padding: 10px 12px; font-size: .88rem; }
.logo-entrar b { font-size: 1.6rem; } .logo-entrar small { font-size: .42rem; margin-top: 2px; }

/* ---------- PIX com comprovante · código de entrega · localização ---------- */
.pix-aviso { background: #fff7e6; border: 1px solid #ffd99a; color: #7a4b00; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin: 0 0 12px; }
.comprovante { display: grid; gap: 10px; margin-top: 14px; }
.comp-arq { position: relative; display: flex; align-items: center; gap: 12px; border: 2px dashed #cfd4da; border-radius: 10px; padding: 14px 16px; cursor: pointer; background: #fafbfc; }
.comp-arq.tem { border-style: solid; border-color: var(--ok); background: #effaf3; }
.comp-arq input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.comp-ico { font-size: 1.5rem; }
.comp-txt { display: flex; flex-direction: column; min-width: 0; }
.comp-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-txt small { color: var(--txt2); font-size: .8rem; }
.comp-ok { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: #e8f5ee; color: #146c43; font-weight: 600; font-size: .9rem; }
.cod-entrega { display: flex; align-items: center; gap: 16px; border: 2px solid var(--destaque); background: #fff8f2; }
.cod-entrega > div { text-align: center; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 8px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cod-entrega > div small { display: block; font-size: .66rem; color: var(--txt2); text-transform: uppercase; letter-spacing: .05em; }
.cod-entrega > div b { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: .14em; color: var(--txt); line-height: 1.2; }
.cod-entrega p { margin: 0; font-size: .88rem; color: #6b4a2e; line-height: 1.4; }
.cod-entrega p b { color: var(--txt); font-weight: 600; }
.pix.pago .pix-item, .pix.pago .pix-passos { display: none; }
.pl-cod, .pl-pix { display: block; margin-top: 2px; }
.pl-cod b { letter-spacing: .08em; color: var(--txt); }
.pl-pix { color: #b45309; font-weight: 600; }
.st-aguardando_pix { background: #fff7e6; color: #b45309; }
.btn-loc { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 8px; border: 1.5px solid var(--primaria); background: #fff; font-weight: 600; font-size: .9rem; }
.btn-loc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-loc.ok { border-color: var(--ok); color: var(--ok); background: #effaf3; }
.loc-info { grid-column: 1 / -1; margin: -4px 0 0; font-size: .8rem; color: var(--txt2); }
.loc-info.erro { color: var(--erro); }
.ou-digite { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--txt2); font-size: .78rem; margin: 2px 0; }
.ou-digite::before, .ou-digite::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
.btn-loc { margin: 4px 0 10px; } .ou-digite { margin: 4px 0 6px; } .loc-info { margin: -4px 0 8px; }
/* opção escolhida (também para celulares sem suporte a :has) */
.opt.sel { border-color: var(--primaria); box-shadow: 0 0 0 1px var(--primaria); background: #fcfcfc; }
.opt.sel .check { border-color: var(--primaria); background: var(--primaria); }
.opt.sel .check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pay-grupo.sel .pay { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
/* avisos do pedido (push) */
.avisos { display: flex; align-items: center; gap: 14px; }
.avisos .av-ico { width: 42px; height: 42px; border-radius: 12px; background: #f1f3f5; display: grid; place-items: center; flex-shrink: 0; }
.avisos .av-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--txt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avisos .av-corpo { flex: 1; min-width: 0; }
.avisos .av-tit { display: block; font-weight: 600; }
.avisos .av-txt { display: block; color: var(--txt2); font-size: .85rem; margin-top: 2px; }
.avisos .av-btn { flex-shrink: 0; }
.avisos.ligado .av-ico { background: #e8f7ee; }
.avisos.ligado .av-ico svg { stroke: #15803d; }
@media (max-width: 480px) { .avisos { flex-wrap: wrap; } .avisos .av-btn { width: 100%; } }
.qr-img { display: block; width: 220px; height: 220px; margin: 12px auto; image-rendering: pixelated; border-radius: 8px; background: #fff; }

/* ---------- acompanhamento animado ---------- */
.acomp { margin: -2px 0 6px; text-align: center; }
.acomp-cena { position: relative; height: 128px; margin: 0 auto 6px; max-width: 260px; }
.acomp-cena .cena { position: absolute; inset: 0; width: 100%; height: 100%; display: none; fill: none; stroke: var(--txt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.acomp-cena .fundo { fill: #fff3e6; stroke: none; }
.acomp[data-st="aguardando_pix"] .c-aguardando_pix, .acomp[data-st="novo"] .c-novo, .acomp[data-st="aceito"] .c-preparo, .acomp[data-st="preparo"] .c-preparo,
.acomp[data-st="saiu"] .c-saiu, .acomp[data-st="pronto"] .c-pronto, .acomp[data-st="concluido"] .c-concluido, .acomp[data-st="cancelado"] .c-cancelado { display: block; animation: cenaEntra .45s ease; }
@keyframes cenaEntra { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.cena .onda { stroke: var(--destaque); stroke-width: 2; opacity: 0; transform-origin: 100px 60px; animation: onda 2.2s ease-out infinite; }
.cena .onda.o2 { animation-delay: 1.1s; }
@keyframes onda { 0% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.9); } }
.cena .pt { fill: var(--destaque); stroke: none; animation: ponto 1.2s ease-in-out infinite; }
.cena .p2 { animation-delay: .2s; } .cena .p3 { animation-delay: .4s; }
@keyframes ponto { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.cena .vapor { stroke: #adb5bd; stroke-width: 2.5; opacity: 0; animation: vapor 2.4s ease-in-out infinite; }
.cena .v2 { animation-delay: .8s; } .cena .v3 { animation-delay: 1.6s; }
@keyframes vapor { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-12px); } }
.cena .fogo { stroke: var(--destaque); transform-origin: 100px 104px; animation: fogo .5s ease-in-out infinite alternate; }
@keyframes fogo { from { transform: scaleY(.85); opacity: .8; } to { transform: scaleY(1.12); opacity: 1; } }
.cena .moto { animation: moto .5s ease-in-out infinite alternate; }
@keyframes moto { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.cena .estrada { stroke: #ced4da; animation: estrada .7s linear infinite; }
@keyframes estrada { from { transform: translateX(0); } to { transform: translateX(-60px); } }
.cena .vento { stroke: #ced4da; stroke-width: 2.5; animation: vento .9s linear infinite; }
@keyframes vento { 0% { opacity: 0; transform: translateX(14px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(-14px); } }
.cena .sacola { transform-origin: 100px 98px; animation: sacola 1.4s ease-in-out infinite; }
@keyframes sacola { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-8px) rotate(-3deg); } }
.cena .brilho { stroke: var(--destaque); stroke-width: 2.5; animation: brilho 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cena .b2 { animation-delay: .8s; }
@keyframes brilho { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1); } }
.cena .anel { stroke: var(--ok); }
.cena .check { stroke: var(--ok); stroke-width: 4; stroke-dasharray: 50; stroke-dashoffset: 50; animation: check .6s .25s ease forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.c-concluido .fundo { fill: #e8f5ee; }
.c-cancelado { stroke: var(--erro) !important; } .c-cancelado .fundo { fill: #fdecee; }
.acomp-barra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.acomp-barra span { position: relative; height: 6px; border-radius: 6px; background: var(--linha); overflow: hidden; }
.acomp-barra span.cheio { background: var(--destaque); }
.acomp-barra span.atual::after { content: ''; position: absolute; inset: 0; width: 45%; border-radius: 6px; background: var(--destaque); animation: barra 1.4s ease-in-out infinite; }
@keyframes barra { 0% { transform: translateX(-100%); } 100% { transform: translateX(230%); } }
.acomp[data-st="cancelado"] .acomp-barra { display: none; }
.acomp[data-st="concluido"] .acomp-barra span { background: var(--ok); }
.acomp-sub { margin: 0 0 4px; color: var(--txt2); font-size: .92rem; min-height: 1.3em; }
.acomp .status-tit { text-align: center; margin: 0 0 4px; }
.acomp-barra { margin: 12px 0 14px !important; }
@media (prefers-reduced-motion: reduce) { .acomp * { animation: none !important; } .cena .check { stroke-dashoffset: 0; } }
