/* Kit de MVP (S65). Troque só as variáveis do :root (a cor vem do produto.json no montar). */
:root { --cor: #0b6b4f; --texto: #1b1f24; --fraco: #5a6270; --fundo: #ffffff; --linha: #d8dde3; --erro: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto); background: var(--fundo); }
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 1rem; }
header a { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--texto); text-decoration: none; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
a { color: var(--cor); }
.frase { font-size: 1.15rem; }
.nota { color: var(--fraco); font-size: .95rem; }
label { display: block; margin: .8rem 0 .25rem; font-weight: 600; }
input { width: 100%; font: inherit; padding: .7rem; border: 1px solid var(--linha); border-radius: .5rem; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--cor); outline-offset: 2px; }
.botao, button { display: inline-block; font: inherit; font-weight: 600; min-height: 48px; padding: .7rem 1.2rem; margin: .8rem .4rem 0 0;
  border: 2px solid var(--cor); border-radius: .5rem; background: var(--cor); color: #fff; text-decoration: none; cursor: pointer; }
.contorno { background: transparent; color: var(--cor); }
.pequeno { min-height: 40px; padding: .3rem .8rem; margin: 0; }
.perigo { background: var(--erro); border-color: var(--erro); }
.lista { list-style: none; padding: 0; }
.lista li { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--linha); }
.lista span { flex: 1; overflow-wrap: anywhere; }
.total { font-size: 1.1rem; }
.aviso { min-height: 1.5em; font-weight: 600; }
.aviso.erro { color: var(--erro); }
.fundador { margin-top: 2rem; padding: 1rem; border: 2px dashed var(--cor); border-radius: .75rem; }
.codigo { font: 700 1.2rem ui-monospace, Menlo, monospace; letter-spacing: .05em; overflow-wrap: anywhere; }
body[data-modo="servidor"] [data-modo-texto="aparelho"] { display: none; }
details { margin-top: 1rem; }
summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; color: var(--erro); font-weight: 600; }
footer { display: flex; gap: 1.2rem; flex-wrap: wrap; border-top: 1px solid var(--linha); margin-top: 2rem; }
footer a { min-height: 48px; display: inline-flex; align-items: center; }
/* Texto legal e de busca: endereço longo quebra em qualquer ponto (no iPhone a página passava de 390 px). */
.texto { overflow-wrap: break-word; overflow-wrap: anywhere; }
.texto table { border-collapse: collapse; width: 100%; }
.texto th, .texto td { border: 1px solid var(--linha); padding: .4rem; text-align: left; overflow-wrap: anywhere; }
.tabela { overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f6f8; padding: .8rem; border-radius: .5rem; }
.faixa { background: #fff6d6; border: 1px solid #e5c75c; padding: .6rem .8rem; border-radius: .5rem; }
/* Monta Pedido (S81) */
[hidden] { display: none !important; } /* o display dos botões vencia o atributo hidden */
input, select, textarea { width: 100%; font: inherit; padding: .7rem; border: 1px solid var(--linha); border-radius: .5rem; background: #fff; color: var(--texto); }
textarea { resize: vertical; }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cor); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.caixa { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; }
.caixa input { width: 1.4rem; height: 1.4rem; flex: none; }
.caixa label { margin: 0; }
.marca { width: 100%; color: var(--fraco); font-size: .85rem; margin: 0 0 1rem; }
.contador { font-weight: 700; }
.lista-produtos { list-style: none; padding: 0; }
.lista-produtos li { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--linha); }
.lista-produtos .nome { flex: 1; overflow-wrap: anywhere; }
.mini { width: 56px; height: 56px; object-fit: cover; border-radius: .4rem; background: #eef1f4; flex: none; }
.previa { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: .5rem; margin-bottom: .5rem; }
header.loja { padding-bottom: 0; }
header.loja h1 { margin-bottom: .2rem; overflow-wrap: anywhere; }
.produtos { list-style: none; padding: 0; margin: 0 0 6rem; }
.produto { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "foto info" "foto qtd"; column-gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--linha); min-height: 120px; }
.produto .foto { grid-area: foto; width: 96px; height: 96px; object-fit: cover; border-radius: .5rem; background: #eef1f4; display: block; }
.produto .info { grid-area: info; min-width: 0; }
.produto h2 { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.produto .preco { margin: .1rem 0 0; font-weight: 700; }
.produto .desc { margin: .1rem 0 0; color: var(--fraco); font-size: .92rem; overflow-wrap: anywhere; }
.produto .qtd { grid-area: qtd; display: flex; align-items: center; gap: .4rem; align-self: end; }
.produto .qtd button { margin: 0; min-width: 48px; min-height: 44px; padding: 0 .8rem; font-size: 1.3rem; line-height: 1; }
.produto .qtd output { min-width: 2ch; text-align: center; font-weight: 700; }
.produto.escolhido { background: #f2f8f5; }
.barra { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--cor); font-weight: 700; }
.barra[hidden] { display: none; }
.barra .botao { margin: 0; }
dialog { width: min(36rem, 100% - 1rem); max-height: calc(100% - 1rem); border: 0; border-radius: .75rem; padding: 1rem; overflow-y: auto; }
dialog::backdrop { background: rgb(0 0 0 / .45); }
.itens-pedido { padding-left: 1.2rem; }
.denuncia { margin: 2rem 0 7rem; }
.denuncia summary { color: var(--fraco); font-weight: 400; }

/* Campo-isca do formulário de pedidos (/ajuda/): fora da tela, robô preenche, gente não vê. */
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
