/* Cardápio da casa · celular primeiro, no molde do Cuidar */
:root {
  --creme: #fbf5ec;
  --papel: #ffffff;
  --tinta: #2a211b;
  --tinta-2: #6b5d52;
  --linha: #eadfd2;
  --terracota: #b5532c;
  --terracota-claro: #f8e6dc;
  --oliva: #4d6b34;
  --oliva-claro: #e7efdc;
  --azul: #2f5f8a;
  --azul-claro: #e4edf6;
  --gelo: #2f6f9a;
  --freezer: #8a4fb0;
  --sombra: 0 2px 10px rgba(90, 55, 30, .08);
  --raio: 20px;
  --fonte: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--tinta); font-family: var(--fonte); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--terracota); }

.topo { position: sticky; top: 0; z-index: 5; background: var(--creme); padding: 14px 16px 8px; border-bottom: 1px solid var(--linha); }
.topo-linha { display: flex; gap: 12px; align-items: center; max-width: 760px; margin: 0 auto; }
.topo-emoji { font-size: 34px; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.2px; }
.topo-sub { margin: 0; color: var(--tinta-2); font-size: 13.5px; }
.abas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 760px; margin: 10px auto 0; }
.aba { border: 2px solid var(--linha); background: var(--papel); color: var(--tinta); border-radius: 14px; padding: 6px 2px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.aba-e { display: block; font-size: 19px; margin-bottom: 2px; }
.aba.ativa { background: var(--terracota); border-color: var(--terracota); color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
h2 { font-size: 19px; margin: 26px 0 10px; }
h2 .sub { display: block; font-size: 13.5px; font-weight: 500; color: var(--tinta-2); }

/* mapa da semana */
.dias { display: grid; gap: 10px; }
.dia { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 12px 14px; }
.dia-nome { font-weight: 800; font-size: 15px; margin-bottom: 6px; color: var(--terracota); }
.refeicao { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--linha); font-size: 14.5px; }
.refeicao:first-of-type { border-top: 0; }
.refeicao-hora { color: var(--tinta-2); font-size: 13px; padding-top: 2px; }
.refeicao-quem { display: grid; gap: 3px; }
.junto { background: var(--terracota-claro); border-radius: 10px; padding: 3px 8px; }
.junto-tag { font-size: 11.5px; font-weight: 700; color: var(--terracota); margin-left: 4px; }
.pessoa { font-size: 11.5px; font-weight: 800; border-radius: 8px; padding: 1px 6px; margin-right: 4px; }
.p-g { background: var(--azul-claro); color: var(--azul); }
.p-b { background: var(--oliva-claro); color: var(--oliva); }
.p-gb { background: var(--terracota-claro); color: var(--terracota); }
.link-prato { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--tinta-2); }

/* pratos */
.pratos { display: grid; gap: 12px; }
details.prato { scroll-margin-top: 150px; background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
details.prato > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px 1fr 18px; gap: 12px; align-items: center; padding: 10px; }
.prato-mini { width: 96px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--linha); }
.seta { font-size: 24px; color: var(--tinta-2); transition: transform .2s; }
details[open] .seta { transform: rotate(90deg); }
details.prato > summary::-webkit-details-marker { display: none; }
.prato-foto { width: 100%; max-height: 230px; object-fit: cover; border-radius: 14px; margin-top: 12px; background: var(--linha); }
.prato-cab { min-width: 0; }
.prato-nome { font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.prato-sub { color: var(--tinta-2); font-size: 14px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip { font-size: 12.5px; font-weight: 700; border-radius: 10px; padding: 2px 8px; background: #f3ece3; color: var(--tinta-2); }
.chip.gel { background: #e3eef6; color: var(--gelo); }
.chip.frz { background: #efe5f6; color: var(--freezer); }
.chip.rod { background: #fff1d6; color: #9a6400; }
.receita { padding: 0 14px 16px; border-top: 1px solid var(--linha); }
.info { display: grid; gap: 8px; margin: 14px 0; }
.info div { background: #faf6f0; border-radius: 12px; padding: 8px 10px; font-size: 14.5px; }
.info b { display: block; font-size: 12px; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .4px; }
.receita h3 { font-size: 15.5px; margin: 16px 0 6px; }
.receita ul { margin: 0; padding-left: 20px; }
.receita li { margin: 3px 0; font-size: 15px; }
.receita ol { margin: 0; padding-left: 22px; }
.receita ol li { margin: 7px 0; }
.dica { margin-top: 12px; background: var(--terracota-claro); border-radius: 12px; padding: 9px 12px; font-size: 14.5px; }

/* acompanhamentos e regras */
.lista-simples { display: grid; gap: 8px; }
details.mini { background: var(--papel); border-radius: 16px; box-shadow: var(--sombra); padding: 10px 14px; }
details.mini summary { cursor: pointer; font-weight: 700; }
details.mini summary span { font-weight: 500; color: var(--tinta-2); font-size: 13.5px; }
details.mini p { margin: 8px 0 2px; font-size: 15px; }

details.reserva { margin-top: 22px; border: 2px dashed var(--linha); border-radius: var(--raio); padding: 10px 12px; }
details.reserva > summary { cursor: pointer; font-weight: 800; }
details.reserva > summary span { font-weight: 500; color: var(--tinta-2); font-size: 13.5px; }
details.reserva .pratos { margin-top: 10px; }

/* compras */
.loja-bloco { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 6px 12px 8px; margin-bottom: 12px; }
.loja-nome { font-weight: 800; padding: 8px 0 6px; display: flex; justify-content: space-between; align-items: center; }
.loja { font-size: 12px; font-weight: 800; border-radius: 8px; padding: 1px 7px; white-space: nowrap; }
.l-palato { background: #fde4e7; color: #c4122f; }
.l-ml { background: #fff3b0; color: #2d3277; }
.l-nobre { background: var(--oliva-claro); color: var(--oliva); }
.item { display: grid; grid-template-columns: 24px 56px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--linha); font-size: 14.5px; }
.item-marca input, .passo .item-marca input { width: 20px; height: 20px; accent-color: var(--oliva); }
.item-foto { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--linha); }
.item-foto.vazia { display: grid; place-items: center; font-size: 22px; }
.item-texto { min-width: 0; }
.item-dir { display: grid; gap: 6px; justify-items: end; }
.comprar { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 800; border-radius: 10px; padding: 6px 10px; }
a.comprar.l-palato { background: #c4122f; color: #fff; }
a.comprar.l-ml { background: #ffe600; color: #2d3277; }
.atalhos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.atalhos a { text-decoration: none; background: var(--papel); border: 2px solid var(--linha); border-radius: 12px; padding: 5px 10px; font-size: 13.5px; font-weight: 700; color: var(--tinta); }
section.compra, #lista-mes { scroll-margin-top: 140px; }
.conta-linha { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linha); font-size: 14.5px; }
.conta-linha:first-child { border-top: 0; }
.resumo-custo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 22px; background: var(--tinta); color: #fff; border-radius: var(--raio); padding: 12px 14px; text-decoration: none; font-size: 14.5px; }
.resumo-custo .botao { background: var(--terracota); border-radius: 12px; padding: 7px 12px; font-weight: 800; }

/* na cozinha */
.seletor { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.seletor a { text-align: center; text-decoration: none; background: var(--papel); border: 2px solid var(--linha); border-radius: 12px; padding: 8px; font-weight: 800; color: var(--tinta); }
.seletor a.ativo { background: var(--oliva); border-color: var(--oliva); color: #fff; }
.progresso { display: grid; gap: 4px; font-size: 13.5px; color: var(--tinta-2); }
.progresso .barra { height: 8px; border-radius: 6px; background: var(--linha); overflow: hidden; }
.progresso .barra div { height: 100%; background: var(--oliva); }
.fase h2 { font-size: 16.5px; margin: 22px 0 8px; color: var(--terracota); }
.passo { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; background: var(--papel); border-radius: 16px; box-shadow: var(--sombra); padding: 10px 12px; margin-bottom: 8px; }
.passo.feito { opacity: .55; }
.passo.feito .passo-t { text-decoration: line-through; }
.passo-t { font-weight: 800; font-size: 15px; }
.passo-d { font-size: 14.5px; color: var(--tinta-2); }
.timer-btn { border: 0; background: var(--oliva-claro); color: var(--oliva); font: inherit; font-size: 13.5px; font-weight: 800; border-radius: 12px; padding: 7px 9px; cursor: pointer; white-space: nowrap; }
#timers { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 20; display: grid; gap: 6px; justify-items: center; padding: 0 12px; pointer-events: none; }
.timer-pill { pointer-events: auto; display: flex; gap: 8px; align-items: center; background: var(--tinta); color: #fff; border-radius: 999px; padding: 8px 8px 8px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 100%; font-size: 14.5px; }
.timer-pill .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.timer-pill .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; color: #e8ddd2; }
.timer-pill button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
.timer-pill.fim { background: var(--terracota); animation: pisca 1s infinite; }
@keyframes pisca { 50% { transform: scale(1.04); } }
.item.feito .item-nome { text-decoration: line-through; color: var(--tinta-2); }
.item-q { color: var(--tinta-2); font-size: 13px; }
.item-obs { color: var(--tinta-2); font-size: 12.5px; font-style: italic; }
.item-preco { font-weight: 700; white-space: nowrap; }
.total { background: var(--tinta); color: #fff; border-radius: var(--raio); padding: 12px 16px; display: grid; gap: 4px; }
.total-linha { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.total-linha.forte { font-size: 18px; font-weight: 800; }
.total small { color: #d9cfc4; }
.nota { color: var(--tinta-2); font-size: 13.5px; margin: 8px 2px; }
.limpar { border: 0; background: none; color: var(--terracota); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 0; }

.rodape { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; color: var(--tinta-2); font-size: 12.5px; }

@media (min-width: 640px) {
  .dias { grid-template-columns: 1fr 1fr; }
}
