/* versão 20261015b */
:root {
  /* cores tiradas do logo */
  --papel: #fcf6ea;
  --papel-2: #f4e9d5;
  --branco: #fffdf8;
  --tinta: #2b1b0d;
  --suave: #6f5f4f;
  --regua: #e5d9c2;
  --regua-forte: #c9b999;
  --rosa: #a34751;
  --rosa-esc: #8d3d47;
  --rosa-cl: #f6e3e1;
  --oliva: #746e52;
  --oliva-esc: #5c5841;
  --oliva-cl: #eeead6;
  --cab: #7a3340;
  --erro: #a4261b;
  --r: 4px;
  --italico: Georgia, "Times New Roman", serif;
  --script: "Kaushan Script", "Segoe Script", cursive;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* visual da página principal */
  --vinho-topo: #5f2934;
  --vinho-base: #692c38;
  --kraft: #caab8a;
  --folha: #fcf3e2;
  --nome: #6b2231;
  --serif-dia: "Playfair Display", Georgia, "Times New Roman", serif;
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42  0 0 0 0 .27  0 0 0 0 .13  0 0 0 .26 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--folha) var(--grao);
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
body.travado { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }

.rotulo { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }

/* ---------- Cabeçalho: faixa com o logo e flores ---------- */
#app { display: flex; flex-direction: column; min-height: 100dvh; }
.topo-site { position: relative; overflow: hidden; padding-top: env(safe-area-inset-top, 0px); color: var(--papel); background: linear-gradient(180deg, var(--vinho-topo) 0%, var(--vinho-base) 100%); }
@keyframes florescer { from { opacity: 0; } to { opacity: 1; } }
.topo-in, .masthead { position: relative; z-index: 1; }
.topo-in { display: flex; align-items: center; justify-content: flex-start; max-width: 1100px; height: 48px; margin: 0 auto; padding: 0 16px; font-size: 0.85rem; }
.topo-link { color: rgba(252, 246, 234, 0.92); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topo-link::after { content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 7px; vertical-align: -4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8c5.3 0 9.5 3.6 9.5 8.1 0 4.5-4.2 8.1-9.5 8.1-1 0-2-.12-2.9-.36L5 21l.9-3.9C4.1 15.7 2.5 13.5 2.5 10.9 2.5 6.4 6.7 2.8 12 2.8z' fill='%23fcf6ea'/%3E%3Ccircle cx='8.2' cy='10.9' r='1.15' fill='%236a2c39'/%3E%3Ccircle cx='12' cy='10.9' r='1.15' fill='%236a2c39'/%3E%3Ccircle cx='15.8' cy='10.9' r='1.15' fill='%236a2c39'/%3E%3C/svg%3E") center / contain no-repeat; }
.masthead { max-width: 1100px; margin: 0 auto; padding: 0 20px 6px; text-align: center; }
.logo { display: block; width: 112px; height: 112px; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)); animation: crescer 0.8s var(--ease) both; }
.marca { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.masthead.sem-logo .marca { position: static; width: auto; height: auto; clip: auto; margin-bottom: 4px; font-family: var(--script); font-weight: 400; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1; }
.marca-sub { margin-top: 16px; font-family: var(--sans); font-weight: 700; font-size: clamp(0.9rem, 2.6vw, 1.05rem); line-height: 24px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; animation: subir-suave 0.7s 0.12s var(--ease) both; }
.marca-aviso { margin-top: 8px; font-family: var(--italico); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 4vw, 1.7rem); line-height: 32px; color: #f1d9bd; animation: subir-suave 0.7s 0.24s var(--ease) both; }
@keyframes crescer { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
@keyframes subir-suave { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Dias: abas de papel com costura ---------- */
.abas { position: sticky; top: 0; z-index: 20; background: var(--vinho-base); }
.abas::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--vinho-base); pointer-events: none; }
.abas-cap { position: relative; display: flex; align-items: flex-end; gap: 10px; width: max-content; max-width: 100%; margin: 0 auto; padding: 26px 16px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.abas-cap::-webkit-scrollbar { display: none; }
.aba { flex: none; position: relative; min-height: 48px; margin: 0; padding: 0 22px; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #58202c; background: var(--grao), linear-gradient(180deg, #d0b190 0%, #c4a481 100%); border: 0; border-radius: 16px 16px 0 0; outline: 1.5px dashed rgba(88, 52, 30, 0.5); outline-offset: -7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); transition: filter 0.25s var(--ease), color 0.25s var(--ease); }
@media (hover: hover) { .aba:not(.ativa):hover { filter: brightness(1.05); } }
.aba.ativa { min-height: 72px; margin-bottom: -14px; padding-bottom: 14px; color: #6a1f2f; background: var(--grao), var(--folha); outline-color: rgba(88, 52, 30, 0.42); box-shadow: none; }
.aba.feita::before { content: ""; position: absolute; left: 50%; top: -22px; width: 38px; height: 38px; margin-left: -19px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.4' cy='.35' r='.75'%3E%3Cstop offset='0' stop-color='%23f6c9a3'/%3E%3Cstop offset='1' stop-color='%23d69f73'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M40.90 22.00 L40.78 22.49 L40.44 22.97 L39.92 23.41 L39.28 23.82 L38.62 24.19 L38.00 24.53 L37.51 24.87 L37.20 25.23 L37.09 25.62 L37.19 26.07 L37.47 26.58 L37.86 27.15 L38.30 27.77 L38.70 28.41 L39.00 29.04 L39.13 29.63 L39.06 30.14 L38.77 30.54 L38.28 30.84 L37.63 31.02 L36.89 31.13 L36.13 31.18 L35.41 31.22 L34.80 31.30 L34.34 31.47 L34.05 31.76 L33.93 32.19 L33.94 32.75 L34.03 33.42 L34.16 34.16 L34.26 34.92 L34.27 35.63 L34.15 36.23 L33.89 36.68 L33.47 36.95 L32.92 37.03 L32.27 36.94 L31.56 36.72 L30.85 36.44 L30.18 36.16 L29.58 35.95 L29.07 35.88 L28.67 35.99 L28.36 36.29 L28.12 36.78 L27.92 37.41 L27.71 38.13 L27.48 38.86 L27.19 39.52 L26.83 40.04 L26.41 40.36 L25.92 40.45 L25.39 40.31 L24.85 39.98 L24.30 39.49 L23.78 38.93 L23.29 38.38 L22.83 37.91 L22.41 37.61 L22.00 37.50 L21.59 37.61 L21.17 37.91 L20.71 38.38 L20.22 38.93 L19.70 39.49 L19.15 39.98 L18.61 40.31 L18.08 40.45 L17.59 40.36 L17.17 40.04 L16.81 39.52 L16.52 38.86 L16.29 38.13 L16.08 37.41 L15.88 36.78 L15.64 36.29 L15.33 35.99 L14.93 35.88 L14.42 35.95 L13.83 36.16 L13.15 36.44 L12.44 36.72 L11.73 36.94 L11.08 37.03 L10.53 36.95 L10.11 36.68 L9.85 36.23 L9.73 35.63 L9.74 34.92 L9.84 34.16 L9.97 33.42 L10.06 32.75 L10.07 32.19 L9.95 31.76 L9.66 31.47 L9.20 31.30 L8.59 31.22 L7.87 31.18 L7.11 31.13 L6.37 31.02 L5.72 30.84 L5.23 30.54 L4.94 30.14 L4.87 29.63 L5.00 29.04 L5.30 28.41 L5.70 27.77 L6.14 27.15 L6.53 26.58 L6.81 26.07 L6.91 25.62 L6.80 25.23 L6.49 24.87 L6.00 24.53 L5.38 24.19 L4.72 23.82 L4.08 23.41 L3.56 22.97 L3.22 22.49 L3.10 22.00 L3.22 21.51 L3.56 21.03 L4.08 20.59 L4.72 20.18 L5.38 19.81 L6.00 19.47 L6.49 19.13 L6.80 18.77 L6.91 18.38 L6.81 17.93 L6.53 17.42 L6.14 16.85 L5.70 16.23 L5.30 15.59 L5.00 14.96 L4.87 14.37 L4.94 13.86 L5.23 13.46 L5.72 13.16 L6.37 12.98 L7.11 12.87 L7.87 12.82 L8.59 12.78 L9.20 12.70 L9.66 12.53 L9.95 12.24 L10.07 11.81 L10.06 11.25 L9.97 10.58 L9.84 9.84 L9.74 9.08 L9.73 8.37 L9.85 7.77 L10.11 7.32 L10.53 7.05 L11.08 6.97 L11.73 7.06 L12.44 7.28 L13.15 7.56 L13.82 7.84 L14.42 8.05 L14.93 8.12 L15.33 8.01 L15.64 7.71 L15.88 7.22 L16.08 6.59 L16.29 5.87 L16.52 5.14 L16.81 4.48 L17.17 3.96 L17.59 3.64 L18.08 3.55 L18.61 3.69 L19.15 4.02 L19.70 4.51 L20.22 5.07 L20.71 5.62 L21.17 6.09 L21.59 6.39 L22.00 6.50 L22.41 6.39 L22.83 6.09 L23.29 5.62 L23.78 5.07 L24.30 4.51 L24.85 4.02 L25.39 3.69 L25.92 3.55 L26.41 3.64 L26.83 3.96 L27.19 4.48 L27.48 5.14 L27.71 5.87 L27.92 6.59 L28.12 7.22 L28.36 7.71 L28.67 8.01 L29.07 8.12 L29.58 8.05 L30.18 7.84 L30.85 7.56 L31.56 7.28 L32.27 7.06 L32.92 6.97 L33.47 7.05 L33.89 7.32 L34.15 7.77 L34.27 8.37 L34.26 9.08 L34.16 9.84 L34.03 10.58 L33.94 11.25 L33.93 11.81 L34.05 12.24 L34.34 12.53 L34.80 12.70 L35.41 12.78 L36.13 12.82 L36.89 12.87 L37.63 12.98 L38.28 13.16 L38.77 13.46 L39.06 13.86 L39.13 14.37 L39.00 14.96 L38.70 15.59 L38.30 16.23 L37.86 16.85 L37.47 17.42 L37.19 17.93 L37.09 18.38 L37.20 18.77 L37.51 19.13 L38.00 19.47 L38.62 19.81 L39.28 20.18 L39.92 20.59 L40.44 21.03 L40.78 21.51 Z' fill='url(%23g)' stroke='%23c28b60' stroke-width='1'/%3E%3Ccircle cx='22' cy='22' r='12.6' fill='none' stroke='%23cf996e' stroke-width='1.1'/%3E%3Cpath d='M14.2 22.6l5.6 5.6 10.4-11.6' fill='none' stroke='%236b2b37' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28)); pointer-events: none; }
.aba.feita:not(.ativa)::before { top: -27px; }
.aba.ativa::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 14px; height: 10px; pointer-events: none; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--folha) 10px) left bottom / 10px 10px no-repeat, radial-gradient(circle at 100% 0, transparent 9.5px, var(--folha) 10px) right bottom / 10px 10px no-repeat; }
.aba:focus, .aba:focus-visible { outline: 1.5px dashed rgba(88, 52, 30, 0.5); outline-offset: -7px; }
.aba.ativa:focus, .aba.ativa:focus-visible { outline-color: rgba(88, 52, 30, 0.42); }
.aba .cont { margin-left: 6px; padding: 1px 6px; font-size: 0.7rem; letter-spacing: 0; color: #fff; background: var(--vinho-base); border-radius: 9px; vertical-align: 1px; }

/* ---------- Estrutura ---------- */
.layout { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.principal { min-width: 0; padding-top: 18px; }
.lateral { display: none; }

.prazo { animation: subir-suave 0.6s 0.4s var(--ease) both; position: relative; isolation: isolate; margin: 18px 2px 8px; padding: 20px 16px; font-size: clamp(0.84rem, 3.85vw, 1.04rem); font-weight: 800; line-height: 1.35; text-align: center; color: #3a2216; background: none; border: 0; border-radius: 0; filter: drop-shadow(0 4px 6px rgba(88, 55, 25, 0.28)); }
.prazo::before { content: ""; position: absolute; inset: -4px -5px -3px -4px; z-index: -2; background: var(--grao), linear-gradient(180deg, #d9ab76, #d09f68); transform: rotate(0.8deg); clip-path: polygon(0 3px, 6% 1px, 23% 3px, 42% 0, 61% 2px, 79% 0, 95% 3px, 100% 1px, 99.6% 46%, 100% calc(100% - 3px), 92% 100%, 75% calc(100% - 2px), 56% 100%, 35% calc(100% - 2px), 16% 100%, 4% calc(100% - 3px), 0 calc(100% - 1px), 0.4% 52%); }
.prazo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(74, 44, 24, 0.72), rgba(74, 44, 24, 0.72)) 14px 10px / calc(100% - 28px) 1px no-repeat, linear-gradient(rgba(74, 44, 24, 0.72), rgba(74, 44, 24, 0.72)) 14px calc(100% - 10px) / calc(100% - 28px) 1px no-repeat, var(--grao), linear-gradient(172deg, #edc392, #e5b57d); clip-path: polygon(0 2px, 5% 0, 21% 2px, 40% 1px, 60% 0, 80% 2px, 96% 0, 100% 2px, 99.7% 50%, 100% calc(100% - 1px), 94% 100%, 77% calc(100% - 2px), 58% 100%, 37% calc(100% - 1px), 18% calc(100% - 2px), 5% 100%, 0 calc(100% - 2px), 0.3% 48%); }

#vista { scroll-margin-top: 76px; }
/* encerrado / sem cardápio / erro: cartão no meio da tela */
body.centralizar .layout { display: grid; grid-template-columns: minmax(0, 520px); justify-content: center; align-content: center; padding-top: 36px; padding-bottom: 36px; }
body.centralizar .principal { padding: 0; }
body.centralizar .aviso-card { margin: 0; }
body.centralizar .dock { display: none; }
.dia { animation: dia-entra 0.4s var(--ease) both; }
.dia.sai { animation: dia-sai 0.15s ease-in both; }
@keyframes dia-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes dia-sai { to { opacity: 0; transform: translateX(var(--dx, 0px)); } }
@keyframes card-entra { from { opacity: 0; transform: translate(var(--dx, 0px), 14px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dia-nome { animation: card-entra 0.5s var(--ease) backwards; margin-top: 24px; font-family: var(--serif-dia); font-weight: 800; font-size: clamp(1.9rem, 7vw, 2.3rem); line-height: 1.15; letter-spacing: 0; text-align: center; color: var(--nome); }
.dia-ajuda { animation: card-entra 0.5s 0.05s var(--ease) backwards; max-width: 34ch; margin: 6px auto 0; text-align: center; color: #3b2a1c; font-size: 1rem; line-height: 1.45; }

/* ---------- Grupos e opções ---------- */
.grupo { margin-top: 30px; scroll-margin-top: 70px; }
.grupo-topo { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.grupo-n { min-width: 1.1em; font-family: var(--script); font-size: 1.3rem; color: var(--regua-forte); transition: color 0.2s; }
.grupo.ok .grupo-n { color: var(--rosa); }
.grupo-topo h3 { font-family: var(--script); font-weight: 400; font-size: 1.65rem; line-height: 1.15; color: var(--rosa-esc); }
.grupo-nota { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--suave); }
.grupo-nota::before { content: "Escolha 1"; }
.grupo.ok .grupo-nota { color: var(--oliva-esc); }
.grupo.ok .grupo-nota::before { content: "Escolhido"; }
.grupo.falta .grupo-topo h3 { animation: piscar 0.9s; }
@keyframes piscar { 0%, 100% { color: var(--rosa-esc); } 25%, 75% { color: var(--erro); } }

.itens { border-top: 1px solid var(--oliva); }
.item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 12px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--regua);
  transition: background 0.15s, box-shadow 0.15s;
}
@media (hover: hover) { .item:hover { background: var(--papel-2); } }
.item.on { background: var(--rosa-cl); box-shadow: inset 0 0 0 1.5px var(--rosa); }
.marcador { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--regua-forte); border-radius: 50%; transition: border-color 0.15s; }
.marcador::after { content: ""; width: 10px; height: 10px; background: var(--rosa); border-radius: 50%; transform: scale(0); transition: transform 0.18s var(--ease); }
.item.on .marcador { border-color: var(--rosa); }
.item.on .marcador::after { transform: scale(1); }
.item-corpo { flex: 1; display: grid; gap: 1px; min-width: 0; }
.item-nome { font-weight: 600; line-height: 1.25; }
.item-desc { font-size: 0.85rem; color: var(--suave); line-height: 1.3; }
.item-extra { flex: none; font-size: 0.88rem; font-weight: 700; color: var(--rosa); white-space: nowrap; }
.item-foto { flex: none; width: 60px; height: 60px; overflow: hidden; background: var(--papel-2); border-radius: var(--r); }
.item-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }


.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.chip { min-height: 44px; padding: 0 16px; font-weight: 700; background: #fff; border: 1px solid var(--regua-forte); border-radius: var(--r); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip.on { color: #fff; background: var(--rosa); border-color: var(--rosa); }
.chip:disabled { opacity: 0.4; cursor: default; }
.dica { font-size: 0.85rem; color: var(--suave); }

.stepper { display: inline-flex; align-items: center; flex: none; background: #fff; border: 1px solid var(--regua-forte); border-radius: var(--r); }
.stepper button { width: 44px; height: 44px; font-size: 1.3rem; line-height: 1; color: var(--tinta); background: none; border: 0; }
.stepper button:active { background: var(--papel-2); }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; }

/* ---------- Especial ---------- */
.esp-lista { display: grid; gap: 14px; margin-top: 18px; }
.esp { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--grao), linear-gradient(180deg, #f5efe3, #f1e9db); border: 1px solid rgba(188, 156, 118, 0.45); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 18px rgba(80, 50, 25, 0.12); }
.esp-corpo { flex: 1; min-width: 0; }
.esp-corpo h3 { font-family: var(--serif-dia); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--nome); }
.esp-corpo p { margin-top: 2px; font-size: 0.9rem; color: var(--suave); }
.preco { display: inline-block; margin-top: 6px; font-weight: 800; }
.esp .item-foto { width: 72px; height: 72px; }

/* ---------- Barra fixa de baixo ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; transform: translateY(115%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; padding: 22px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, #f3ece0 62%, rgba(243, 236, 224, 0)); border-top: 0; box-shadow: none; }
.dock.on { transform: none; visibility: visible; transition-delay: 0s; }
.dock-in { display: flex; align-items: center; gap: 14px; max-width: 1100px; margin: 0 auto; }
.dock-resumo { flex: 1; display: grid; align-content: center; justify-items: center; gap: 0; min-height: 58px; padding: 0 10px; text-align: center; color: var(--vinho-base); background: #fbf5ea; border: 2px solid var(--vinho-base); border-radius: 999px; box-shadow: 0 4px 12px rgba(80, 30, 40, 0.16); }
.dock-resumo b { font-size: 0.95rem; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.dock-resumo span { font-size: 0.76rem; font-weight: 600; line-height: 1.2; color: var(--suave); white-space: nowrap; }
.dock-resumo:active { background: #f1e3df; }
.dock-cta { flex: 1.15; min-height: 58px; padding: 0 12px; white-space: nowrap; font-size: 1.15rem; font-weight: 800; color: #fff7ec; background: var(--grao), linear-gradient(180deg, #732f3e, #652836); border: 0; border-radius: 999px; box-shadow: 0 8px 18px rgba(82, 28, 42, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14); transition: filter 0.15s, transform 0.15s var(--ease); }
.dock-cta:active { filter: brightness(0.92); transform: scale(0.99); }
.dock.pulso .dock-in { animation: pulso 0.35s var(--ease); }
@keyframes pulso { 40% { transform: scale(1.012); } }
.principal { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font-weight: 800; color: #fff; background: var(--rosa); border: 0; border-radius: var(--r); text-decoration: none; }

/* ---------- Página do dia: cartões ---------- */
.cards-grade { column-count: 1; column-gap: 18px; margin-top: 20px; }
.card-grupo { break-inside: avoid; margin: 0 0 18px; overflow: hidden; background: var(--grao), linear-gradient(180deg, #f5efe3, #f1e9db); border: 1px solid rgba(188, 156, 118, 0.45); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 22px rgba(80, 50, 25, 0.14); animation: card-entra 0.55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms + 70ms); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
@media (hover: hover) { .card-grupo:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 30px rgba(80, 50, 25, 0.18); } }
.card-grupo h3 { padding: 16px 18px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #2d1a12; background: var(--grao), linear-gradient(180deg, #d1af8d, #c8a684); }
.card-grupo ul { margin: 0; padding: 0; list-style: none; }
.card-grupo li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; border-top: 1.5px solid rgba(196, 163, 125, 0.75); }
.card-grupo li:first-child { border-top: 0; }
.card-grupo li::after { content: ""; flex: none; width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%23c9a888' stroke-width='2'/%3E%3Cpath d='M10 16.6l4.2 4.2 8-8.6' fill='none' stroke='%23c2a07f' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.card-grupo li > span:not(.item-foto):not(.cg-extra) { flex: 1; min-width: 0; }
.card-grupo .item-foto { width: 60px; height: 50px; background: #e7dcc9; border-radius: 12px; box-shadow: 0 2px 6px rgba(70, 40, 20, 0.25); }
.cg-nome { display: block; font-weight: 800; font-size: 1.08rem; line-height: 1.25; color: var(--nome); }
.cg-desc { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.35; color: var(--suave); }
.cg-extra { flex: none; font-size: 0.88rem; font-weight: 800; color: var(--rosa); white-space: nowrap; }
@media (min-width: 640px) { .cards-grade { column-count: 2; } }
.minhas { margin-top: 22px; }
.minhas > .rotulo { display: block; padding-bottom: 6px; border-bottom: 1px solid var(--oliva); }

/* ---------- Janela de montar a marmita (um passo por vez) ---------- */
dialog.sheet.montar { max-width: none; width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
dialog.sheet.montar .sheet-in { height: 100dvh; max-height: 100dvh; }
.passo-m { animation: entra 0.26s var(--ease) both; }
.passo-m.volta { animation-name: entraVolta; }
@keyframes entra { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes entraVolta { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.passo-titulo { font-family: var(--script); font-weight: 400; font-size: 2.1rem; line-height: 1.2; color: var(--rosa-esc); }
.passo-ajuda { margin-bottom: 14px; color: var(--suave); }
.passo-m .itens { margin-top: 4px; }
.revisao { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--oliva); }
.revisao li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--regua); }
.revisao small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }
.revisao strong { font-weight: 700; }
.revisao .link { flex: none; }

/* rodapé fixo da janela: quantidade, repetir em outros dias e botões */
.rod-fixo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--branco); border-top: 1px solid var(--regua-forte); box-shadow: 0 -8px 20px rgba(43, 27, 13, 0.08); }
.rod-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rod-linha small { display: block; font-size: 0.82rem; color: var(--suave); }
.rod-valor strong { font-size: 1.35rem; font-weight: 800; }
.rod-valor span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }
.rod-rep { min-width: 0; }
.rod-rep .rotulo { display: block; margin-bottom: 6px; }
.chips-rol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips-rol::-webkit-scrollbar { display: none; }
.chips-rol .chip { flex: none; }
.rod-botoes { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.rod-botoes .btn-sec, .rod-botoes .btn-principal { max-width: none; width: 100%; }
@media (min-width: 640px) {
  dialog.sheet.montar { max-width: 560px; height: min(90dvh, 760px); max-height: 90dvh; margin: auto; border-radius: 0; }
  dialog.sheet.montar .sheet-in { height: 100%; max-height: none; }
}

/* ---------- Estados ---------- */
.sk { height: 58px; margin-bottom: 8px; background: linear-gradient(90deg, #f1e6cf 25%, #f8f0df 37%, #f1e6cf 63%); background-size: 400% 100%; animation: brilho 1.3s ease infinite; border-radius: var(--r); }
.sk-t { width: 55%; height: 38px; margin-top: 16px; margin-bottom: 18px; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: 0 0; } }
.aviso-card { margin-top: 18px; padding: 26px 20px; text-align: center; background: var(--branco); border: 1px solid var(--regua-forte); border-radius: var(--r); }
.aviso-card h2 { margin-bottom: 6px; font-family: var(--script); font-weight: 400; font-size: 1.7rem; line-height: 1.2; color: var(--rosa-esc); }
.aviso-card p { margin-bottom: 16px; color: var(--suave); }

/* ---------- Pedido (lateral e janela) ---------- */
.resumo-dia { margin-bottom: 16px; }
.resumo-dia h3 { margin-bottom: 2px; font-family: var(--script); font-weight: 400; font-size: 1.3rem; color: var(--rosa-esc); }
.linha-c { padding: 12px 0; border-bottom: 1px dotted var(--regua-forte); }
.lc-topo { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.lc-topo b { white-space: nowrap; }
.lc-desc { margin-top: 1px; font-size: 0.88rem; color: var(--suave); }
.lc-acoes { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin-top: 6px; }
.lc-acoes .stepper button { width: 40px; height: 40px; }
.link { min-height: 44px; padding: 0 4px; font-size: 0.85rem; font-weight: 700; color: var(--rosa); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; }
.link:last-child { color: var(--suave); }
.vazio-c { padding: 18px 0; color: var(--suave); }
.tot-lateral { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; padding-top: 12px; font-size: 1.1rem; font-weight: 800; border-top: 2px solid var(--tinta); }
.btn-final { width: 100%; min-height: 54px; font-weight: 800; color: #fff; background: var(--rosa); border: 0; border-radius: var(--r); }

/* ---------- Janela ---------- */
dialog.sheet { width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0; overflow: hidden; color: var(--tinta); background: var(--papel); border: 0; border-radius: 0; }
dialog.sheet::backdrop { background: rgba(43, 27, 13, 0.55); animation: fundo 0.2s ease; }
dialog.sheet[open] { animation: subir 0.24s var(--ease); }
dialog.sheet.saindo { animation: descer 0.18s ease-in forwards; }
dialog.sheet.saindo::backdrop { opacity: 0; transition: opacity 0.18s; }
@keyframes subir { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes descer { to { transform: translateY(28px); opacity: 0; } }
@keyframes fundo { from { opacity: 0; } }

.sheet-in { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet-topo { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; }
.sheet-tit { flex: 1; min-width: 0; display: grid; text-align: center; }
.sheet-tit strong { font-family: var(--script); font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--rosa-esc); }
.sheet-tit span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.icone { flex: none; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; background: transparent; border: 1px solid var(--regua-forte); border-radius: var(--r); }
.progresso { height: 2px; margin: 0 16px; background: var(--regua); }
.progresso i { display: block; height: 100%; width: 0; background: var(--rosa); transition: width 0.3s var(--ease); }
.sheet-corpo { flex: 1; min-height: 0; padding: 18px 16px 12px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-rodape { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--branco); border-top: 1px solid var(--regua-forte); }
.rod-total { display: grid; line-height: 1.2; }
.rod-total small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }
.rod-total strong { font-size: 1.45rem; font-weight: 800; }
.btn-principal { flex: 1; max-width: 270px; min-height: 52px; padding: 0 22px; font-weight: 800; color: #fff; background: var(--rosa); border: 0; border-radius: var(--r); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-principal:active { background: var(--rosa-esc); }
.btn-principal:disabled { opacity: 0.5; cursor: default; }
.btn-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; font-weight: 700; color: var(--tinta); background: transparent; border: 1px solid var(--tinta); border-radius: var(--r); text-decoration: none; }

.passo { animation: aparece 0.22s var(--ease) both; }

.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo > span:first-child { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }
.campo input, .campo textarea { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; background: #fff; border: 1px solid var(--regua-forte); border-radius: var(--r); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-cl); }
.campo textarea { resize: none; }
fieldset { margin: 0 0 16px; padding: 0; border: 0; }
fieldset legend { padding: 0; margin-bottom: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--suave); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 16px; font-weight: 600; background: #fff; border: 1px solid var(--regua-forte); border-radius: var(--r); transition: border-color 0.15s, background 0.15s; }
.seg input:checked + span { color: var(--rosa-esc); font-weight: 800; background: var(--rosa-cl); border-color: var(--rosa); box-shadow: inset 0 0 0 1px var(--rosa); }
.seg input:focus-visible + span { outline: 2px solid var(--rosa); outline-offset: 2px; }

.totais { margin: 4px 0 8px; padding-top: 10px; border-top: 2px solid var(--tinta); }
.totais div { display: flex; justify-content: space-between; padding: 3px 0; }
.totais dt, .totais dd { margin: 0; }
.totais .total { margin-top: 4px; padding-top: 8px; font-size: 1.3rem; font-weight: 800; border-top: 1px solid var(--regua); }

.sucesso { display: grid; justify-items: center; gap: 8px; padding: 14px 6px 8px; text-align: center; }
.sucesso-logo { width: 84px; height: 84px; }
.sucesso h2 { font-family: var(--script); font-weight: 400; font-size: 2.2rem; line-height: 1.15; color: var(--rosa-esc); }
.sucesso .num { margin: 4px 0; padding: 6px 14px; font-weight: 800; letter-spacing: 0.14em; border-top: 1px solid var(--oliva); border-bottom: 1px solid var(--oliva); }
.sucesso p { max-width: 36ch; color: var(--suave); }
.sucesso .btn-principal, .sucesso .btn-sec { width: 100%; max-width: none; margin-top: 8px; }

#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 460px); padding: 12px 16px; font-weight: 500; color: var(--papel); background: var(--tinta); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 0.2s, transform 0.25s var(--ease); }
#toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#toast.erro { background: var(--erro); }
#toast button { min-height: 44px; padding: 0 4px; font-weight: 800; color: #f2c9c4; background: none; border: 0; text-decoration: underline; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  dialog.sheet { margin: auto; border-radius: 0; }
  .logo { width: 150px; height: 150px; }
}
@media (min-width: 960px) {
  .topo-link { margin-left: auto; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .dock { position: sticky; bottom: 0; left: auto; right: auto; margin: 20px 0 0; padding: 12px 0; background: linear-gradient(to top, var(--papel) 72%, rgba(252, 246, 234, 0)); border-top: 0; box-shadow: none; }
  .dock-resumo { display: none; }
  .principal { padding-bottom: 0; }
  .lateral { display: block; position: sticky; top: 84px; margin-top: 18px; padding: 22px; background: var(--branco); border: 1px solid var(--regua-forte); border-radius: var(--r); }
  .lateral h2 { margin-bottom: 8px; padding-bottom: 8px; font-family: var(--script); font-weight: 400; font-size: 1.7rem; line-height: 1.2; color: var(--rosa-esc); border-bottom: 2px solid var(--tinta); }
  #toast { bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
