/* Tema confeitaria: creme, morango, chocolate e caramelo. Tema realeza: verde escuro e dourado. */
:root {
  --creme: #FBFAF6; --creme2: #F3EDE4; --morango: #FF675B; --morango-esc: #D94865; --chocolate: #4A2E23;
  --coral: #FF675B; --framboesa: #D94865; --laranja: #FF913C;
  --caramelo: #FF913C; --menta: #8FC9B5; --texto: #4A2E23; --mudo: #7A645A; --borda: #E8E2D8; --branco: #fff;
  --ok: #2E7D5B; --erro: #B3261E; --info: #2D5D8A; --raio: 14px; --sombra: 0 6px 20px rgba(91, 58, 41, .10);
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--fonte); color: var(--texto); background: var(--creme); line-height: 1.5; font-size: 16px; }
a { color: var(--morango-esc); }
h1, h2, h3 { color: var(--chocolate); line-height: 1.2; }
h1 { font-size: 1.7rem; margin: .2em 0 .4em; } h2 { font-size: 1.25rem; margin: 1.4em 0 .5em; } h3 { font-size: 1.05rem; margin: .2em 0 .5em; }
small, .mini { color: var(--mudo); font-size: .88rem; }
code { background: var(--creme2); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--caramelo); outline-offset: 2px; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 2px solid transparent; border-radius: 999px;
  padding: .65em 1.3em; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; background: var(--creme2); color: var(--chocolate); }
.botao.primario { background: var(--morango); color: #fff; box-shadow: 0 4px 12px rgba(255, 103, 91, .3); }
.botao.primario:hover { background: var(--morango-esc); }
.botao.secundario { background: var(--chocolate); color: #fff; }
.botao.contorno { background: transparent; border-color: var(--morango); color: var(--morango-esc); }
.botao.perigo { background: var(--erro); color: #fff; }
.botao.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--morango-esc); text-decoration: underline; font-weight: 500; }
.botao.grande { font-size: 1.08rem; padding: .85em 1.6em; }
.botao.pequeno { padding: .35em .9em; min-height: 36px; font-size: .92rem; }
.botao.largo { width: 100%; }
.botao.icone { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.15rem; position: relative; }
.botao:disabled { opacity: .6; cursor: wait; }
.botao[hidden] { display: none; }

/* Formulários */
label { display: block; font-weight: 600; margin: .8em 0 .3em; color: var(--chocolate); }
input, select, textarea { width: 100%; font: inherit; padding: .7em .85em; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; color: var(--texto); min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--morango); outline: none; box-shadow: 0 0 0 3px rgba(255, 103, 91, .18); }
label.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 500; }
label.check input { width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; margin-top: .1em; }
fieldset { border: 1.5px solid var(--borda); border-radius: 12px; margin: 1em 0; padding: .6em 1em; }
legend { font-weight: 700; color: var(--chocolate); padding: 0 .3em; }
.opcao-plano { display: flex; align-items: center; gap: .6em; font-weight: 400; margin: .4em 0; }
.opcao-plano input { width: 20px; height: 20px; min-height: 0; }
.prefixo { display: flex; align-items: stretch; }
.prefixo span { background: var(--creme2); border: 1.5px solid var(--borda); border-right: 0; border-radius: 10px 0 0 10px; padding: .7em .6em; color: var(--mudo); white-space: nowrap; }
.prefixo input { border-radius: 0 10px 10px 0; }
.form-linha { display: flex; flex-wrap: wrap; gap: .4em 1em; align-items: flex-end; }
.form-linha > label, .form-linha > .campo-senha, .form-linha > input, .form-linha > select { flex: 1 1 200px; }
.form-linha > label { flex-basis: 100%; margin-bottom: 0; }
.form-linha > h3, .form-linha > strong, .form-linha > .msg, .form-linha > .mini, .form-linha > p { flex-basis: 100%; }

/* Olho dentro do campo de senha */
.campo-senha { position: relative; display: block; width: 100%; }
.campo-senha input { padding-right: 3.2em; }
.olho-senha { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--mudo); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.olho-senha:hover { color: var(--morango-esc); background: var(--creme2); }
.olho-senha[aria-pressed="true"] { color: var(--morango-esc); }

/* Mensagens */
.msg { border-radius: 10px; padding: .7em 1em; margin: .8em 0; }
.msg.erro { background: #FDECEA; color: var(--erro); }
.msg.ok { background: #E6F4EC; color: var(--ok); }
.msg.info { background: #EAF2FA; color: var(--info); }
.msg[hidden] { display: none; }
.selo { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--caramelo); color: #3a2410; padding: .15em .6em; border-radius: 999px; vertical-align: middle; }
.tag { font-size: .8rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: #E6F4EC; color: var(--ok); } .tag.breve { background: #FFF1DC; color: #8A5A12; } .tag.bloq { background: #EFE8E4; color: var(--mudo); }
.situacao { font-weight: 700; padding: .15em .7em; border-radius: 999px; font-size: .9rem; background: #FFF1DC; color: #8A5A12; }
.st-em_dia { background: #E6F4EC; color: var(--ok); } .st-bloqueado, .st-atrasado { background: #FDECEA; color: var(--erro); } .st-demonstracao { background: #EAF2FA; color: var(--info); }
.carregando { color: var(--mudo); padding: 2em; text-align: center; }

/* Página inicial pública */
.pub-topo { display: flex; justify-content: space-between; align-items: center; padding: .8em 1.2em; max-width: 1150px; margin: 0 auto; }
.pub-topo nav { display: flex; gap: 1.2em; align-items: center; }
.pub-topo nav a:not(.botao) { color: var(--chocolate); text-decoration: none; font-weight: 600; }
.marca { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 800; font-size: 1.2rem; color: var(--chocolate); }
.marca img { border-radius: 10px; }
.marca img.logo-marca, .logo-marca { height: 48px; width: auto; display: block; border-radius: 0; }
.pub-topo .logo-marca { height: 52px; }
.pagina-acesso .logo-marca { height: 76px; }
.marca.grande { font-size: 1.5rem; margin-bottom: 1em; }
.slogan { color: var(--framboesa); display: block; font-size: 1.05rem; margin-bottom: .25em; }
.heroi { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2em; align-items: center; max-width: 1150px; margin: 0 auto; padding: 2em 1.2em 3em; }
.heroi h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.lead { font-size: 1.15rem; color: var(--mudo); }
.selo-topo { display: inline-block; background: var(--creme2); color: var(--morango-esc); font-weight: 700; padding: .3em .9em; border-radius: 999px; margin: 0; }
.acoes-heroi { display: flex; flex-wrap: wrap; gap: .8em; margin: 1.1em 0 .2em; align-items: center; }
.cartao-receita { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 1.5em; border: 2px solid var(--creme2); transform: rotate(1.5deg); }
.cr-titulo { font-weight: 800; font-size: 1.2rem; color: var(--chocolate); margin: 0 0 .6em; }
.cartao-receita ul { list-style: none; padding: 0; margin: 0; }
.cartao-receita li { display: flex; justify-content: space-between; padding: .55em .2em; border-bottom: 1px dashed var(--borda); }
.cartao-receita li span:last-child { color: var(--morango-esc); font-size: .85rem; font-weight: 600; }
.cr-canais { display: flex; gap: .5em; margin: 1em 0 .5em; }
.cr-canais span { background: var(--menta); color: #173d30; font-weight: 700; padding: .3em .8em; border-radius: 999px; font-size: .85rem; }
.cr-rodape { color: var(--mudo); margin: 0; font-size: .9rem; }
.faixa { padding: 2.5em 1.2em; max-width: 1150px; margin: 0 auto; }
.faixa.clara { background: #fff; border-radius: 28px; box-shadow: var(--sombra); margin-bottom: 2em; }
.faixa h2 { text-align: center; font-size: 1.7rem; }
.centro { text-align: center; }
.fluxo { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .8em; counter-reset: f; }
.fluxo li { background: #fff; border-radius: var(--raio); padding: 1em; box-shadow: var(--sombra); counter-increment: f; }
.fluxo li::before { content: counter(f); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--morango); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: .4em; }
.fluxo strong { display: block; color: var(--chocolate); } .fluxo span { color: var(--mudo); font-size: .92rem; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin: 1.5em 0; }
.grade-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; }
.bloco { background: #fff; border-radius: var(--raio); padding: 1.1em 1.3em; box-shadow: var(--sombra); margin: 1em 0; }
.plano { background: var(--creme); border: 2px solid var(--borda); border-radius: 18px; padding: 1.3em; }
.plano.destaque { border-color: var(--morango); background: #fff; box-shadow: var(--sombra); }
.plano .preco { font-size: 1.8rem; font-weight: 800; color: var(--morango-esc); margin: .2em 0 0; }
.plano .preco small { font-size: .9rem; color: var(--mudo); font-weight: 500; }
.plano ul { padding-left: 1.2em; }
.rodape { text-align: center; color: var(--mudo); font-size: .88rem; padding: 1.5em 1em 2em; }
.caixa-central { max-width: 720px; margin: 2em auto; padding: 1.5em; background: #fff; border-radius: 20px; box-shadow: var(--sombra); }

/* Modal de instalar */
.modal-fundo { position: fixed; inset: 0; background: rgba(59, 42, 34, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1em; }
.modal { background: #fff; border-radius: 20px; max-width: 640px; width: 100%; padding: 1.4em; max-height: 92vh; overflow: auto; color: var(--texto); }
.passos-instalar { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; margin-bottom: 1em; }
.passos-instalar section { background: var(--creme); border-radius: 14px; padding: .8em 1em; border: 2px solid transparent; }
.passos-instalar section.destaque { border-color: var(--morango); }
.passos-instalar ol { padding-left: 1.2em; margin: 0; } .passos-instalar li { margin: .4em 0; }
.aviso-whats { background: #FFF1DC; border-radius: 12px; padding: .8em 1em; }

/* Acesso (entrar, cadastro, 2FA) */
.pagina-acesso { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 2em 1em 0;
  background: radial-gradient(circle at 15% 10%, #FFE3E0 0, transparent 40%), radial-gradient(circle at 90% 80%, #FFE8D2 0, transparent 40%), var(--creme); }
.cartao-acesso { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 1.6em 1.6em 1.2em; width: 100%; max-width: 440px; }
.cartao-acesso h1 { margin-top: 0; }
.cartao-acesso form .botao.largo { margin-top: 1.2em; }
.links-acesso { text-align: center; margin-top: 1.2em; font-size: .95rem; }
.qr { text-align: center; margin: 1em 0; } .qr img { border-radius: 10px; border: 1px solid var(--borda); }
.codigos { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.codigos code { display: block; text-align: center; padding: .4em; font-size: 1.05rem; letter-spacing: .05em; }
.passos { padding-left: 1.2em; }

/* Sistema */
body.sistema { background: var(--creme); }
.topo { display: flex; align-items: center; gap: .8em; background: linear-gradient(90deg, var(--morango), var(--morango-esc)); color: #fff; padding: .5em 1em; position: sticky; top: 0; z-index: 10; }
.topo .marca { color: #fff; font-size: 1.1rem; background: var(--creme); border-radius: 10px; padding: 4px 10px; }
.topo .logo-marca { height: 32px; }
.topo-loja { font-weight: 600; opacity: .95; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-acoes { display: flex; align-items: center; gap: .5em; }
.topo .botao.contorno { border-color: #fff; color: #fff; }
.topo-usuario { font-weight: 600; } .topo-usuario small { color: #fde3ea; display: block; font-size: .75rem; line-height: 1; }
#btn-valores { width: auto; padding: 0 .7em; border-radius: 999px; gap: .3em; }
#btn-valores[aria-pressed="true"] { background: #fff; color: var(--morango-esc); }
.rotulo-olho { font-size: .85rem; font-weight: 800; }
.corpo { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 120px); }
.menu { background: #fff; border-right: 1px solid var(--borda); padding: 1em .6em; }
.menu a { display: block; padding: .6em .9em; border-radius: 10px; text-decoration: none; color: var(--texto); font-weight: 500; }
.menu a:hover { background: var(--creme2); }
.menu a.ativo { background: var(--morango); color: #fff; font-weight: 700; }
.menu-grupo { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--mudo); font-weight: 800; margin: 1.1em .9em .3em; }
.menu-grupo:first-child { margin-top: 0; }
.tela { padding: 1.4em 2em 2em; max-width: 1100px; outline: none; }
.sub { color: var(--mudo); margin-top: -.3em; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1em; margin: 1em 0; }
.cartao { background: #fff; border-radius: var(--raio); padding: 1em 1.2em; box-shadow: var(--sombra); border-top: 4px solid var(--caramelo); }
.cartao.destaque { border-top-color: var(--morango); }
.cartao-rotulo { margin: 0; color: var(--mudo); font-size: .9rem; font-weight: 600; }
.cartao-valor { margin: .2em 0 0; font-size: 1.5rem; font-weight: 800; color: var(--chocolate); }
.valor.oculto { letter-spacing: .05em; }
.funcoes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5em; }
.funcoes li { display: flex; justify-content: space-between; align-items: center; gap: .5em; background: #fff; padding: .6em .9em; border-radius: 10px; border: 1px solid var(--borda); }
.funcoes li.travada { background: #F7F1EC; color: var(--mudo); }
.funcoes select { width: auto; min-height: 36px; padding: .3em; }
.tabela { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); margin: .5em 0 1em; }
.tabela th, .tabela td { padding: .65em .8em; text-align: left; border-bottom: 1px solid var(--creme2); vertical-align: top; }
.tabela th { background: var(--creme2); color: var(--chocolate); font-size: .88rem; }
.tabela .num { text-align: right; white-space: nowrap; }
.tabela td.saida { color: var(--erro); } .tabela td.entrada { color: var(--ok); }
.tabela select { min-height: 36px; padding: .3em; }
.painel-loja td { background: var(--creme); }
.gerenciar form { margin: .6em 0; padding: .6em 0; border-bottom: 1px dashed var(--borda); }
.gerenciar label { font-weight: 600; margin: 0; }
.gerenciar .perigo strong { color: var(--erro); }
.lista { padding-left: 1.2em; }
details summary { cursor: pointer; font-weight: 600; }
details.bloco > summary { list-style: none; display: inline-flex; }
.link-vitrine code { font-size: 1.1rem; }
.so-celular { display: none !important; }

/* Vitrine da loja */
body.vitrine { background: var(--creme); }
.vt-topo { text-align: center; padding: 2.5em 1em 2em; background: linear-gradient(160deg, var(--morango), var(--morango-esc)); color: #fff; border-radius: 0 0 32px 32px; }
.vt-topo h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); margin: .2em 0; }
.vt-desc { max-width: 560px; margin: 0 auto .4em; opacity: .95; }
.vt-info span:not(:empty) { display: inline-block; background: rgba(255,255,255,.18); padding: .2em .8em; border-radius: 999px; margin: .2em; font-size: .9rem; }
.vt-acoes { display: flex; gap: .8em; justify-content: center; flex-wrap: wrap; margin-top: 1.2em; }
.vt-acoes .botao.primario { background: #fff; color: var(--morango-esc); }
.vt-acoes .botao.contorno { border-color: #fff; color: #fff; }
.vt-coroa { width: 64px; height: 40px; margin: 0 auto; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='%23fff' d='M8 30 4 8l14 10 14-16 14 16 14-10-4 22z'/%3E%3Crect x='8' y='32' width='48' height='6' rx='2' fill='%23fff'/%3E%3C/svg%3E"); opacity: .9; }
.vt-main { max-width: 900px; margin: 0 auto; padding: 1.5em 1em; }
.vt-lista { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1em; }
.vt-item { background: #fff; border-radius: 18px; padding: 1.1em 1.2em; box-shadow: var(--sombra); }
.vt-item-topo { display: flex; justify-content: space-between; gap: .5em; align-items: flex-start; }
.vt-item h3 { margin: 0; } .vt-item p { color: var(--mudo); margin: .4em 0; }
.vt-preco { color: var(--morango-esc); font-size: 1.2rem; }
.vt-breve { text-align: center; color: var(--mudo); margin-top: 1.5em; }
.vt-demo { text-align: center; background: #FFF1DC; border-radius: 12px; padding: .6em; }

/* Tema realeza (verde escuro e dourado) */
body.tema-realeza { --verde: #123B2C; --verde2: #0E2E22; --ouro: #C9A54C; --ouro2: #E6CD84; background: #F6F1E4; color: #1F2A24; }
.tema-realeza .vt-topo { background: radial-gradient(circle at 50% 0, #1B5340 0, var(--verde) 45%, var(--verde2) 100%); border-bottom: 4px solid var(--ouro); }
.tema-realeza .vt-topo h1 { color: var(--ouro2); font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.tema-realeza .vt-coroa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='%23C9A54C' d='M8 30 4 8l14 10 14-16 14 16 14-10-4 22z'/%3E%3Crect x='8' y='32' width='48' height='6' rx='2' fill='%23C9A54C'/%3E%3Ccircle cx='4' cy='7' r='3' fill='%23E6CD84'/%3E%3Ccircle cx='32' cy='3' r='3' fill='%23E6CD84'/%3E%3Ccircle cx='60' cy='7' r='3' fill='%23E6CD84'/%3E%3C/svg%3E"); width: 84px; height: 52px; opacity: 1; }
.tema-realeza .vt-info span:not(:empty) { background: rgba(201,165,76,.2); color: var(--ouro2); }
.tema-realeza .vt-acoes .botao.primario { background: var(--ouro); color: var(--verde2); box-shadow: none; }
.tema-realeza .vt-acoes .botao.contorno { border-color: var(--ouro); color: var(--ouro2); }
.tema-realeza h2 { color: var(--verde); font-family: Georgia, serif; text-align: center; }
.tema-realeza .vt-item { border: 1px solid #E3D6B0; border-top: 4px solid var(--ouro); }
.tema-realeza .vt-item h3 { color: var(--verde); font-family: Georgia, serif; }
.tema-realeza .vt-preco { color: #8A6A1F; }
.tema-realeza .selo { background: var(--verde); color: var(--ouro2); }
.tema-realeza .vt-demo { background: #EDE3C6; color: var(--verde); }
.tema-realeza .rodape a { color: var(--verde); }

@media (max-width: 860px) {
  .heroi { grid-template-columns: 1fr; padding-top: 1em; }
  .heroi-cartao { order: -1; } .cartao-receita { transform: none; }
  .fluxo { grid-template-columns: repeat(2, 1fr); }
  .grade-3, .grade-2, .passos-instalar { grid-template-columns: 1fr; }
  .pub-topo nav a:not(.botao) { display: none; }
  .corpo { grid-template-columns: 1fr; }
  .menu { display: none; position: absolute; left: 0; right: 0; z-index: 9; box-shadow: var(--sombra); }
  .menu.aberto { display: block; }
  .so-celular { display: inline-flex !important; }
  .topo-usuario, .topo-loja { display: none; }
  .tela { padding: 1em; }
  .tabela { display: block; overflow-x: auto; }
}

/* ===== Lote 1: pedido rápido, ficha técnica, estoque ===== */
.acoes-inicio { display: flex; flex-wrap: wrap; gap: .6em; margin: .4em 0 1em; }
.passos-curto { padding-left: 1.3em; } .passos-curto li { margin: .35em 0; }
.aviso-estoque { background: #FFF1DC; color: #6B4310; }
.aviso-estoque ul { margin: .4em 0 0; padding-left: 1.2em; }
.tabela tr.alerta td { background: #FFF6EA; }
.lista li { display: flex; justify-content: space-between; gap: 1em; padding: .25em 0; border-bottom: 1px dashed var(--creme2); }
.lista li.falta { color: var(--erro); }
.check { display: flex; align-items: center; gap: .5em; margin: .6em 0; }
.check input { width: auto; min-height: 0; }
.filtro { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; }
.filtro input { width: auto; }
/* Pedido rápido: botões grandes para o polegar */
.canais-rapidos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; margin: .6em 0 1em; }
.canal-btn { min-height: 52px; font-weight: 700; background: #fff; border: 2px solid var(--creme2); color: var(--chocolate); }
.canal-btn.ativo { background: var(--chocolate); border-color: var(--chocolate); color: #fff; }
.grade-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6em; margin-bottom: 1em; }
.prod-rapido { position: relative; }
.prod-add { width: 100%; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: .4em;
  text-align: left; padding: .8em; border-radius: var(--raio); border: 2px solid var(--creme2); background: #fff; box-shadow: var(--sombra); cursor: pointer; font: inherit; color: var(--chocolate); }
.prod-rapido.marcado .prod-add { border-color: var(--morango); background: #FFF4F2; }
.pr-nome { font-weight: 600; line-height: 1.25; } .pr-preco { color: var(--morango-esc); font-weight: 700; }
.pr-qtd { position: absolute; top: -8px; right: -6px; min-width: 30px; height: 30px; border-radius: 15px; background: var(--morango); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 .4em; }
.prod-rapido .pr-menos { position: absolute; z-index: 1; bottom: 6px; right: 6px; width: 36px; height: 36px; min-height: 0; padding: 0; font-size: 1.3rem; }
.barra-pedido { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 12px rgba(74, 46, 35, .06); display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap;
  background: var(--creme); border-top: 2px solid var(--creme2); padding: .8em 0; margin-top: .8em; }
/* Pedidos */
.lista-pedidos { display: grid; gap: .6em; }
.pedido { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: .8em 1em; }
.pedido header { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; }
.pedido .pd-total { margin-left: auto; font-weight: 700; }
.pedido p { margin: .3em 0; }
.pedido.cancelado { opacity: .6; }
/* Ficha técnica */
.cartoes-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6em; }
.cartao-item { display: flex; flex-direction: column; gap: .3em; background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: .9em 1em;
  color: var(--chocolate); text-decoration: none; border: 2px solid transparent; }
.cartao-item:hover, .cartao-item:focus-visible { border-color: var(--morango); }
.item-linha { display: grid; grid-template-columns: minmax(0, 1fr) 90px 52px 86px 40px; gap: .4em; align-items: center; margin-bottom: .4em; }
.item-linha select, .item-linha input { margin: 0; }
.it-un { color: var(--mudo); font-size: .9rem; } .it-custo { text-align: right; font-size: .92rem; }
.it-tirar { width: 40px; height: 40px; min-height: 0; padding: 0; }
.total-vivo { font-size: 1.1rem; margin: .8em 0; }
.arvore { list-style: none; padding-left: 1.1em; margin: .2em 0; border-left: 2px solid var(--creme2); }
.bloco > .arvore { border-left: 0; padding-left: 0; }
.arvore li { margin: .25em 0; }
.arvore li > .arv-nome { display: inline-block; min-width: 60%; }
.arvore li > .arv-custo { float: right; font-weight: 600; }
.arvore li::after { content: ''; display: block; clear: both; }
.produto header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; margin-bottom: .3em; }
.canal-form h2 { margin-top: 0; }
@media (max-width: 860px) {
  .item-linha { grid-template-columns: minmax(0, 1fr) 76px 40px; }
  .item-linha select { grid-column: 1 / -1; }
  .it-custo { grid-column: 1 / 3; text-align: left; }
  .barra-pedido .botao.grande { width: 100%; }
  .canais-rapidos { grid-template-columns: repeat(2, 1fr); }
}
.prod-rapido .botao.icone.pr-menos, .botao.icone.it-tirar { background: var(--creme2); color: var(--chocolate); }
@media (min-width: 861px) { .item-linha:not(:has(.it-tirar)) { grid-template-columns: minmax(0, 1fr) 90px 52px 86px; } }

/* ===== v0.2.1: faixa fixa da demonstração do visitante ===== */
.faixa-demo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: .8em; flex-wrap: wrap;
  background: var(--chocolate); color: #fff; padding: .55em 1em; font-size: .92rem; box-shadow: 0 -4px 14px rgba(0, 0, 0, .18); }
.faixa-demo .mini-demo { opacity: .85; }
.faixa-demo .botao { background: #fff; color: var(--chocolate); border-color: #fff; min-height: 38px; }
body:has(.faixa-demo) .rodape { padding-bottom: 5.5em; }
body:has(.faixa-demo) .barra-pedido { bottom: 3.4em; }
@media (max-width: 860px) { body:has(.faixa-demo) .barra-pedido { bottom: 5.6em; } .faixa-demo { font-size: .85rem; } }

/* v0.2.1: topo cabe em celular estreito (390 px) sem rolagem lateral */
@media (max-width: 480px) {
  .topo { gap: .4em; padding: .5em .6em; }
  .topo-acoes { gap: .3em; }
  .topo .marca { padding: 3px 6px; }
  .topo-acoes .botao { padding-left: .8em; padding-right: .8em; }
}
