.app { max-width: 440px; margin: 0 auto; min-height: 100dvh; padding-bottom: 96px; }
.meu-pedido { min-height: 40px; font-size: 14px; padding: 0 10px; }
.aviso { margin: 16px; padding: 12px 16px; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.aviso.fechada { background: var(--fundo-suave); border-color: transparent; }
main { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.categoria { padding: 0; overflow: hidden; }
.categoria summary {
  display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 16px;
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.categoria summary::-webkit-details-marker { display: none; }
.categoria .titulo { flex: 1; font-size: 17px; font-weight: 700; }
.categoria .qtd-itens { font-size: 13px; color: var(--texto-suave); }
.categoria .seta { transition: transform 0.2s; color: var(--texto-suave); }
.categoria[open] .seta { transform: rotate(180deg); }
.categoria[open] summary { border-bottom: 1px solid var(--borda); }

.produto { display: flex; gap: 12px; padding: 12px 16px; align-items: center; }
.produto + .produto { border-top: 1px solid var(--borda); }
.produto .foto { width: 80px; height: 80px; }
.produto .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.produto .nome { font-weight: 700; }
.produto .desc, .produto .sabores { font-size: 13px; color: var(--texto-suave); }
.produto .preco { font-weight: 700; }
.produto .botao.icone { border-radius: 999px; }

.barra-bandeja {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(408px, calc(100vw - 32px));
  min-height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--vermelho);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  cursor: pointer;
  z-index: 20;
}

dialog.folha { width: min(440px, 100vw); margin: auto auto 0; border-radius: 20px 20px 0 0; max-height: 92dvh; }
.linha-titulo { display: flex; align-items: center; justify-content: space-between; }

.escolhas { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; }
.escolhas legend { font-size: 13px; font-weight: 700; color: var(--texto-suave); margin-bottom: 8px; }
.escolhas label {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--borda); border-radius: 12px; font-weight: 600; cursor: pointer;
}
.escolhas label:has(input:checked) { border-color: var(--vermelho); background: var(--vermelho-suave); }
.escolhas input { accent-color: var(--vermelho); width: 18px; height: 18px; }

.quantidade { display: flex; align-items: center; justify-content: center; gap: 20px; }
.quantidade output { font-size: 22px; font-weight: 800; min-width: 32px; text-align: center; }

.item-bandeja { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.item-bandeja .corpo { flex: 1; min-width: 0; }
.item-bandeja .nome { font-weight: 700; }
.item-bandeja .sub { font-size: 13px; color: var(--texto-suave); }
.item-bandeja .qtd { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.item-bandeja .qtd .botao { width: 36px; min-height: 36px; padding: 0; }

.botao.grande { min-height: 56px; font-size: 17px; width: 100%; }
