:root {
  --cafe: #2a1a12;
  --cafe-2: #3b2418;
  --creme: #f6efe4;
  --creme-2: #efe7db;
  --borda: #e3d6c2;
  --dourado: #c9a052;
  --dourado-texto: #8a5a2b;
  --apagado: #8b7763;
  --verde: #2e7d32;
  --vinho: #a03a2b;
  --whats: #1f9d48;
  --serifa: Georgia, 'Times New Roman', serif;
  --texto: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme-2); color: var(--cafe-2); font: 15px/1.4 var(--texto); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; background: var(--creme); min-height: 100vh; min-height: 100dvh; padding-bottom: 84px; }

/* Capa e marca */
.capa { position: relative; height: 190px; background: linear-gradient(135deg, #d9c7ae, #bfa483); overflow: hidden; }
.capa-foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.capa-provisoria, .familia-provisoria { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: var(--cafe-2); }
.capa-frase { position: absolute; inset: auto 0 0; margin: 0; padding: 28px 16px 34px; background: linear-gradient(transparent, rgba(42, 26, 18, .85)); color: var(--creme); font: italic 19px/1.25 var(--serifa); }
.marca { display: flex; align-items: flex-end; gap: 12px; padding: 0 16px 8px; }
.marca h1 { margin: 0; font: 700 18px var(--serifa); }
.logo { display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--dourado); background: #000; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.marca .logo { margin-top: -30px; position: relative; z-index: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.status { margin: 2px 0 0; font-size: 12px; font-weight: 600; }
.status.aberto { color: var(--verde); }
.status.fechado { color: var(--vinho); }
.status::before { content: '● '; }

.busca { display: flex; align-items: center; gap: 8px; margin: 6px 16px 10px; background: #fff; border: 1px solid var(--borda); border-radius: 22px; padding: 0 14px; }
.busca input { flex: 1; border: 0; background: none; padding: 11px 0; font: inherit; color: inherit; min-width: 0; }
.busca input:focus { outline: none; }
.busca:focus-within { border-color: var(--dourado); }

/* Categorias presas no topo */
.categorias { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; background: var(--creme); border-bottom: 1px solid var(--borda); scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
.categorias button { flex: none; border: 1px solid var(--borda); background: #fff; border-radius: 18px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.categorias button.ativa { background: var(--cafe-2); border-color: var(--cafe-2); color: var(--creme); }

/* Cardápio */
.secao { scroll-margin-top: 58px; }
.secao h2 { margin: 0; padding: 16px 16px 8px; font: 700 17px var(--serifa); }
.carrossel { display: flex; gap: 10px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 138px; scroll-snap-align: start; background: #fff; border: 0; border-radius: 14px; padding: 0; overflow: hidden; text-align: left; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.mini img { width: 100%; height: 100px; object-fit: cover; }
.mini > span { display: block; padding: 7px 9px 9px; }
.mini b { display: block; font-size: 13px; line-height: 1.25; }
.preco { color: var(--dourado-texto); font-weight: 700; font-size: 13px; }
.preco.indisponivel { color: var(--apagado); font-weight: 600; }
.item { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 10px; background: #fff; border: 0; border-radius: 14px; padding: 9px; text-align: left; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.item img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.item-texto { flex: 1; min-width: 0; }
.item-texto b { display: block; font-size: 15px; }
.item-texto small { display: block; margin: 2px 0 5px; font-size: 12.5px; color: var(--apagado); line-height: 1.35; }
.mais { width: 32px; height: 32px; border-radius: 50%; background: var(--dourado); color: var(--cafe); font: 700 20px/32px var(--texto); text-align: center; flex: none; }
.item.esgotado img, .mini.esgotado img { filter: grayscale(1); opacity: .6; }
.vazio { padding: 24px 16px; text-align: center; color: var(--apagado); }
.rodape { padding: 24px 16px 8px; text-align: center; font-size: 12px; color: var(--apagado); }
.rodape p { margin: 2px 0; }

.barra-carrinho { position: fixed; z-index: 10; left: 50%; bottom: 12px; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 16px; padding: 13px 16px; background: var(--cafe-2); color: var(--creme); font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.barra-carrinho b { background: var(--dourado); color: var(--cafe); padding: 7px 14px; border-radius: 20px; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--cafe-2); }
dialog::backdrop { background: rgba(20, 12, 8, .55); }
.fechar { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; z-index: 2; }

/* Entrada (boas-vindas e oferta) */
.modal { width: min(360px, calc(100% - 32px)); background: var(--cafe); color: var(--creme); border: 1px solid #6b4a2e; border-radius: 20px; overflow: visible; }
.modal-img { position: relative; height: 200px; border-radius: 19px 19px 0 0; background: linear-gradient(135deg, #d9c7ae, #bfa483); }
.modal-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 19px 19px 0 0; }
.familia-provisoria { border-radius: 19px 19px 0 0; }
.logo-modal { position: absolute; left: 18px; bottom: -30px; width: 62px; height: 62px; z-index: 2; }
.modal-corpo { padding: 40px 20px 20px; }
.kicker { margin: 0; color: var(--dourado); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.modal-titulo { margin: 4px 0 0; font: 400 25px/1.2 var(--serifa); }
.modal-destaque { margin: 0 0 12px; font: italic 31px/1.15 var(--serifa); color: #e2c48a; }
.modal ul { margin: 0 0 14px; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #e8dccb; }
.modal li::marker { color: var(--dourado); }
.dica { margin: 0; font-size: 12px; color: #a8927a; }
.modal-botoes { display: flex; align-items: center; gap: 18px; }
.link { border: 0; background: none; color: #e8dccb; text-decoration: underline; font-size: 14px; padding: 8px 0; }

.botao { border: 0; border-radius: 26px; padding: 13px 22px; font-weight: 700; font-size: 15px; }
.botao-dourado { background: var(--dourado); color: var(--cafe); }
.botao-escuro { background: var(--cafe-2); color: var(--creme); }
.botao-whatsapp { background: var(--whats); color: #fff; }
.botao-cheio { width: 100%; }
.botao:disabled { opacity: .45; }

/* Folha do produto */
.folha { width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; border-radius: 20px 20px 0 0; background: #fff; overflow: hidden; }
.folha-conteudo { display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh; }
.produto-foto { position: relative; height: 210px; flex: none; }
.produto-foto img { width: 100%; height: 100%; object-fit: cover; }
.folha-rolagem { overflow-y: auto; padding: 14px 16px 6px; }
.folha-rolagem h2 { margin: 0; font: 700 20px var(--serifa); }
.produto-desc { margin: 4px 0; color: var(--apagado); font-size: 14px; }
.produto-preco { margin: 0 0 10px; color: var(--dourado-texto); font-weight: 700; }
.grupo { margin: 0 -16px 8px; border: 0; padding: 0; }
.grupo legend { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 16px; background: var(--creme); font-weight: 700; font-size: 14px; }
.selo { font-size: 11px; font-weight: 700; background: var(--cafe-2); color: var(--creme); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.selo-claro { background: #c9b79f; color: #fff; }
.selo-ok { background: var(--verde); }
.opcao { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f0e8dc; font-size: 14px; }
.opcao input { width: 20px; height: 20px; accent-color: var(--dourado); flex: none; margin: 0; }
.opcao span { flex: 1; }
.opcao em { font-style: normal; color: var(--dourado-texto); font-weight: 600; white-space: nowrap; }
.opcao.bloqueada { opacity: .45; }
.campo-titulo { display: flex; justify-content: space-between; align-items: center; margin: 8px -16px 8px; padding: 9px 16px; background: var(--creme); font-weight: 700; font-size: 14px; }
textarea, .campo input { width: 100%; border: 1px solid var(--borda); border-radius: 10px; padding: 11px 12px; font: inherit; color: inherit; background: #fff; resize: none; }
textarea:focus, .campo input:focus { outline: none; border-color: var(--dourado); }
.folha-rodape { display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eee; flex: none; }
.folha-rodape .botao { flex: 1; }
.qtd { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.qtd button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--dourado); background: #fff; color: var(--dourado-texto); font-size: 18px; line-height: 1; }
.qtd-p button { width: 28px; height: 28px; font-size: 15px; }
.faltando { margin: 0 16px 6px; font-size: 12px; color: var(--vinho); text-align: center; }

/* Carrinho e finalização */
.tela { width: 100%; max-width: 480px; height: 100%; max-height: 100%; margin: 0 auto; background: var(--creme); }
.tela[open] { display: flex; flex-direction: column; }
.tela-topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--cafe-2); color: var(--creme); flex: none; }
.tela-topo h2 { margin: 0; font: 700 17px var(--serifa); }
.voltar { border: 0; background: none; color: var(--dourado); font-size: 22px; padding: 0 6px 0 0; }
.tela-corpo { flex: 1; overflow-y: auto; padding: 14px 16px; }
.tela-rodape { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); flex: none; }
.linha-carrinho { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 9px; margin-bottom: 9px; }
.linha-carrinho img { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; flex: none; }
.linha-carrinho .lc-texto { flex: 1; min-width: 0; }
.linha-carrinho b { display: block; font-size: 14px; }
.linha-carrinho small { display: block; color: var(--apagado); font-size: 12px; line-height: 1.35; margin: 2px 0 6px; overflow-wrap: anywhere; }
.lc-baixo { display: flex; justify-content: space-between; align-items: center; }
.adicionar-mais { width: 100%; border: 1px dashed var(--dourado); background: none; color: var(--dourado-texto); border-radius: 10px; padding: 10px; font-weight: 600; margin: 2px 0 12px; }
.resumo { background: #fff; border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 14px; }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; }
.resumo .total { border-top: 1px solid #eee; margin-top: 4px; padding-top: 8px; font-weight: 700; font-size: 16px; }
.info { margin-top: 10px; background: #fbf4e6; border: 1px solid #ecdcbc; border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.info p { margin: 4px 0; }
.rotulo { margin: 14px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--dourado-texto); }
.rotulo:first-of-type { margin-top: 0; }
.campo { display: block; margin-bottom: 6px; }
.dupla { display: flex; gap: 8px; }
.dupla .campo:first-child { flex: 1; }
.campo-numero { width: 78px; flex: none; }
.segmento, .pagamento { display: flex; gap: 6px; margin-bottom: 8px; }
.segmento label, .pagamento label { flex: 1; }
.segmento input, .pagamento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento span, .pagamento span { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 44px; padding: 6px; background: #fff; border: 1px solid var(--borda); border-radius: 10px; font-size: 13px; font-weight: 600; }
.segmento input:checked + span { background: var(--cafe-2); border-color: var(--cafe-2); color: var(--creme); }
.pagamento input:checked + span { border: 2px solid var(--dourado); background: #fbf4e6; }
.segmento input:focus-visible + span, .pagamento input:focus-visible + span { outline: 3px solid var(--dourado); }
.nota { margin: 4px 0 0; font-size: 12px; color: var(--apagado); }
.erro { margin: 0 0 6px; font-size: 12px; color: var(--vinho); }
.erro:empty { display: none; }
.aviso-fechado { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fde8e5; color: var(--vinho); font-size: 13px; font-weight: 600; }

.aviso-toast { position: fixed; z-index: 20; left: 50%; bottom: 90px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border-radius: 12px; background: var(--cafe); color: var(--creme); font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }

dialog .aviso-toast { bottom: 140px; }

/* Boas-vindas: só o logo, com entrada animada */
.boas-vindas { width: min(360px, calc(100% - 40px)); padding: 34px 26px 24px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 50% 18%, #4a2f20 0%, var(--cafe) 62%); border: 1px solid #8a6a3e; }
.boas-vindas::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(201, 160, 82, .35); border-radius: 15px; pointer-events: none; }
.boas-vindas[open] { animation: bv-entra .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.boas-vindas[open] .bv-logo { animation: bv-logo .7s .15s ease-out both; }
.bv-logo { display: block; width: 128px; height: 128px; margin: 0 auto 18px; border-width: 3px; box-shadow: 0 0 0 6px rgba(201, 160, 82, .15), 0 0 40px rgba(201, 160, 82, .35); }
.bv-ola { margin: 0; color: #e8dccb; font: italic 18px var(--serifa); }
.bv-nome { margin: 2px 0 0; color: #e2c48a; font: 700 clamp(26px, 8.4vw, 36px)/1.05 var(--serifa); letter-spacing: .5px; text-transform: uppercase; }
.bv-cafeteria { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--dourado); font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.bv-cafeteria::before, .bv-cafeteria::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--dourado)); }
.bv-cafeteria::after { transform: scaleX(-1); }
.bv-frase { margin: 0 0 10px; font: italic 20px/1.3 var(--serifa); color: var(--creme); }
.bv-info { margin: 0 0 16px; font-size: 14px; color: #cdbda6; }
.boas-vindas .dica { color: #a8927a; }
@keyframes bv-entra { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bv-logo { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .boas-vindas[open], .boas-vindas[open] .bv-logo { animation: none; } }

/* Destaque da semana */
.oferta-corpo { padding-top: 20px; }
#oferta-preco small { font: 600 14px var(--texto); color: #cdbda6; font-style: normal; }
.folha-rolagem { position: relative; }
.enviado { text-align: center; padding: 40px 12px; }
.enviado-icone { font-size: 44px; margin: 0; }
.enviado h3 { font: 700 20px var(--serifa); margin: 10px 0 8px; }
.enviado p { margin: 0 0 8px; }
.link-escuro { display: block; width: 100%; margin-top: 8px; color: var(--cafe-2); text-align: center; }

/* Painel da Natalia (demonstração) */
.painel { background: #e9e3da; }
.pn-faixa { position: sticky; top: 0; z-index: 6; margin: 0; padding: 7px 12px; background: #c9a052; color: var(--cafe); text-align: center; font-size: 12px; font-weight: 700; }
.pn-app { background: #f7f4ef; padding-bottom: 24px; }
.pn-topo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cafe); color: var(--creme); }
.pn-topo h1 { margin: 0; font: 700 17px var(--serifa); }
.pn-topo small { color: var(--dourado); font-size: 12px; }
.pn-logo { width: 42px; height: 42px; }
.pn-corpo { padding: 14px 16px; }
.pn-card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.pn-card b { display: block; font-size: 15px; }
.pn-card small { display: block; color: var(--apagado); font-size: 12px; }
.pn-card .rotulo { margin: 0 0 8px; }
.pn-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-dir { text-align: right; }
.pn-mini-botao { border: 1px solid var(--dourado); background: none; color: var(--dourado-texto); border-radius: 16px; padding: 4px 12px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.pn-oferta { display: flex; gap: 12px; align-items: center; }
.pn-oferta img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.pn-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pn-atalho { border: 0; background: #fff; border-radius: 14px; padding: 14px 12px; text-align: left; font-weight: 600; font-size: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.pn-atalho span { display: block; font-size: 22px; margin-bottom: 4px; }
.pn-chave { position: relative; flex: none; width: 46px; height: 26px; }
.pn-chave input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.pn-chave span:first-of-type { position: absolute; inset: 0; border-radius: 13px; background: #ccc; transition: background .2s; }
.pn-chave span:first-of-type::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.pn-chave input:checked + span { background: var(--whats); }
.pn-chave input:checked + span::after { left: 23px; }
.pn-chave input:focus-visible + span { outline: 3px solid var(--dourado); outline-offset: 2px; }
#pn-produtos .categorias { top: 0; }
.pn-produto { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 12px 8px 8px; margin-bottom: 8px; }
.pn-produto.off { opacity: .6; }
.pn-produto-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; }
.pn-produto-abrir img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; }
.pn-produto-abrir b { display: block; font-size: 14px; }
.pn-esgotado { font-style: normal; font-size: 10px; color: var(--vinho); background: #fde8e5; border-radius: 8px; padding: 1px 6px; }
.pn-foto { position: relative; height: 180px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.pn-foto img { width: 100%; height: 100%; object-fit: cover; }
.pn-trocar-foto { position: absolute; right: 10px; bottom: 10px; border: 0; border-radius: 16px; padding: 7px 12px; background: rgba(42, 26, 18, .85); color: var(--creme); font-size: 13px; font-weight: 600; }
.pn-campo { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--dourado-texto); }
.pn-campo input, .pn-opcoes { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--borda); border-radius: 10px; padding: 11px 12px; font: 15px var(--texto); color: var(--cafe-2); background: #fff; text-align: left; }
.pn-opcoes { color: var(--dourado-texto); font-weight: 600; }

.lateral { display: none; }
.flutuantes { display: none; } /* Instagram e WhatsApp aparecem no tema neon (tema-neon.css) */
.tema-neon .flutuantes { display: flex; }

/* Tablet: a mesma tela do celular, centralizada, com janelas que não grudam na base */
@media (min-width: 520px) {
  .app { box-shadow: 0 0 30px rgba(0, 0, 0, .08); }
  .folha { margin-bottom: auto; border-radius: 20px; }
  .tela { height: min(860px, 100%); border-radius: 20px; overflow: hidden; }
}

/* Computador: usa a tela inteira */
@media (min-width: 900px) {
  body { background: var(--creme); }
  .app { max-width: 1280px; padding: 0 28px 40px; box-shadow: none; background: none; }

  .capa { height: 380px; border-radius: 0 0 28px 28px; }
  .capa-frase { padding: 40px 36px 44px; font-size: 30px; }
  .capa-provisoria { font-size: 16px; }
  .topo-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 24px; margin-bottom: 18px; }
  .marca { padding: 0; gap: 18px; }
  .marca .logo { width: 116px; height: 116px; margin-top: -54px; border-width: 3px; }
  .marca h1 { font-size: 32px; }
  .status { font-size: 14px; margin-top: 4px; }
  .busca { width: 360px; margin: 0 0 6px; }

  .corpo { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }

  .categorias { top: 20px; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; overflow: visible; }
  .categorias button { width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 14px; font-size: 14px; }
  .categorias button:hover { background: #fff; }
  .categorias button.ativa { background: var(--cafe-2); color: var(--creme); }

  .secao { scroll-margin-top: 16px; }
  .secao h2 { padding: 22px 0 12px; font-size: 24px; }
  .secao:first-child h2 { padding-top: 0; }

  .carrossel, .lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 18px; padding: 0; overflow: visible; }
  .mini, .item { position: relative; display: flex; flex-direction: column; align-items: stretch; width: auto; margin: 0; padding: 0; gap: 0; border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
  .mini:hover, .item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(42, 26, 18, .12); }
  .mini img, .item img { width: 100%; height: 170px; border-radius: 0; }
  .mini > span { padding: 12px 14px 14px; }
  .mini b { font-size: 15px; }
  .item-texto { padding: 12px 14px 16px; }
  .item-texto small { font-size: 13px; }
  .mais { position: absolute; right: 12px; top: 128px; width: 34px; height: 34px; line-height: 34px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

  .rodape { padding-top: 40px; }

  /* Janela do produto: foto ao lado das opções */
  .folha { width: min(920px, calc(100% - 48px)); max-width: none; max-height: 88vh; margin: auto; border-radius: 22px; }
  .folha-conteudo { display: grid; grid-template-columns: 42% 1fr; grid-template-rows: minmax(0, 1fr) auto auto; height: min(640px, 88vh); max-height: none; }
  .produto-foto { grid-row: 1 / 4; height: 100%; }
  .folha-rolagem { padding: 22px 24px 8px; }
  .folha-rolagem h2 { font-size: 26px; }
  .grupo, .campo-titulo { margin-left: -24px; margin-right: -24px; }
  .grupo legend, .opcao, .campo-titulo { padding-left: 24px; padding-right: 24px; }
  .folha-rodape { padding: 14px 24px; }
  .faltando { margin: 0 24px 6px; }

  .tela { width: 540px; max-width: calc(100% - 48px); }
  .barra-carrinho { left: auto; right: 28px; transform: none; width: 360px; }
}

/* Tela larga: o pedido fica sempre à vista na direita */
@media (min-width: 1180px) {
  .corpo { grid-template-columns: 210px minmax(0, 1fr) 320px; }
  .lateral { display: block; position: sticky; top: 20px; background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 4px 18px rgba(42, 26, 18, .08); max-height: calc(100vh - 40px); overflow-y: auto; }
  .lateral h2 { margin: 0 0 12px; font: 700 20px var(--serifa); }
  .lateral .linha-carrinho { background: var(--creme); }
  .lateral .vazio { padding: 18px 0; }
  .lateral .botao { margin-top: 12px; }
  .barra-carrinho { display: none; }
}

.qtd button:disabled { opacity: .35; cursor: not-allowed; }

/* Painel de verdade (login, modo da loja, destaque) */
.pn-topo .pn-sair { margin-left: auto; border: 1px solid var(--dourado); background: none; color: var(--creme); border-radius: 16px; padding: 5px 12px; font-size: 13px; }
.pn-campo select, .pn-campo textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--borda); border-radius: 10px; padding: 11px 12px; font: 15px var(--texto); color: var(--cafe-2); background: #fff; resize: vertical; }
.pn-campo input:disabled { background: #f1ede7; color: var(--apagado); }
.pn-modos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.pn-modos label { position: relative; }
.pn-modos input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pn-modos span { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--borda); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--cafe-2); }
.pn-modos input:checked + span { background: var(--cafe); border-color: var(--cafe); color: var(--creme); }
.pn-modos input:focus-visible + span { outline: 3px solid var(--dourado); outline-offset: 2px; }
.pn-nota { margin: -4px 0 10px; font-size: 12px; color: var(--apagado); }
a.pn-atalho { color: inherit; text-decoration: none; }
.pn-trocar-foto { cursor: pointer; }
#pn-login .pn-corpo { max-width: 380px; margin: 0 auto; }
.pn-chave-fechar input:checked + span { background: var(--vinho); }

/* Combo: escolher quantas de cada marmita */
.opcao-qtd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opcao-qtd .qtd button:disabled { opacity: .35; }
.opcao-qtd .qtd span { flex: none; min-width: 16px; text-align: center; }
