/* Sanduba do Moral · protótipo · cardapio.css
   Dono: agente da área CARDÁPIO. Tokens e componentes em base.css.
   .cd-stage: palco (por que · celular · log). .cd-app: o app de pedido (celular ou tela cheia). .cd-sheet: folhas do app. */

/* =====================================================================
   1. Palco no computador: texto · celular · log
   ===================================================================== */
.cd-stage {
  max-width: 1360px; margin: 0 auto; padding: 24px 20px 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) 392px minmax(0, 1fr); gap: 32px; align-items: start;
}
.cd-stage__phone { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--protobar-h) + 16px); }
.cd-intro { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 6px; }
.cd-lado { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cd-h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.02; color: var(--carvao-900); }
.cd-lead { color: var(--ink-2); font-size: 16px; max-width: 46ch; }

/* comissão: o pedido daqui contra o marketplace */
.cd-comp { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.cd-comp__t { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--carvao-900); }
.cd-comp__sub { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.cd-comp__sub b { color: var(--ink); }
.cd-comp__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.cd-comp__row b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--carvao-900); }
.cd-comp__row i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--sunk); position: relative; overflow: hidden; }
.cd-comp__row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ketchup-600); }
.cd-comp__row.is-aqui span { font-weight: 700; color: var(--ink); }
.cd-comp__row.is-aqui b { color: var(--mata-ink); }
.cd-comp__row.is-aqui i::after { width: 6px; background: var(--mata-500); }
.cd-comp__nota { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: var(--laranja-50); color: var(--laranja-ink); font-size: 13.5px; font-weight: 600; }
.cd-comp__nota svg { flex: none; margin-top: 1px; }
.cd-comp__nota b { color: var(--carvao-900); }

/* depois do pedido */
.cd-depois { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.cd-depois__t { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--carvao-900); }
.cd-depois__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.cd-depois__sub b { color: var(--ink); }
.cd-depois__a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--dur-quick) ease, background-color var(--dur-quick) ease; }
.cd-depois__a > svg:first-child { color: var(--laranja-800); }
.cd-depois__a > svg:last-child { margin-left: auto; color: var(--muted); transition: transform var(--dur-fast) var(--ease-out); }
.cd-depois__a span { min-width: 0; }
.cd-depois__a b { display: block; font-weight: 700; font-size: 14.5px; }
.cd-depois__a small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .cd-depois__a:hover { border-color: var(--laranja-300); background: var(--laranja-50); text-decoration: none; }
  .cd-depois__a:hover > svg:last-child { transform: translateX(3px); color: var(--laranja-800); }
}

/* o celular: o app rola por dentro */
.cd-stage .phone { --ph-h: min(780px, calc(100vh - var(--protobar-h) - 36px)); }
.cd-papp { overflow-x: hidden; position: relative; }

@media (max-width: 1179px) {
  .cd-stage { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; padding: 20px 16px 48px; }
  .cd-stage__phone { grid-column: 1; grid-row: 1 / span 2; }
  .cd-intro { grid-column: 2; grid-row: 1; }
  .cd-lado { grid-column: 2; grid-row: 2; }
}
@media (max-width: 860px) {
  .cd-stage { grid-template-columns: 360px minmax(0, 1fr); gap: 20px; }
  .cd-h1 { font-size: 30px; }
}

/* =====================================================================
   2. Tela cheia (celular de verdade): o app ocupa a tela
   ===================================================================== */
.cd-faixa { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 16px; background: var(--carvao-900); color: var(--carvao-200); font-size: 13.5px; border-bottom: 1px solid #2B2622; }
.cd-faixa b { color: #fff; }
.cd-faixa__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--sol-400); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.cd-faixa__btn:active { transform: scale(.97); }
.cd-cheio.tem-bar { padding-bottom: 88px; }
.cd-folha-sobre { display: flex; flex-direction: column; gap: 14px; }
.cd-folha-sobre .cd-intro, .cd-folha-sobre .cd-lado { padding: 0; }
html.cd-trava, html.cd-trava body { overflow: hidden; }

/* =====================================================================
   3. O app
   ===================================================================== */
.cd-app { container: cdapp / inline-size; background: var(--ground); min-height: 100%; overflow-x: clip; }
.cd-scr { padding-bottom: 28px; }
.cd-app.tem-bar .cd-scr { padding-bottom: 104px; }

/* ---- topo escuro: a chapa à noite ---- */
.cd-top {
  padding: 12px 14px 40px; color: var(--carvao-200);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 138, 31, .16) 1.1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(180deg, var(--carvao-950), var(--carvao-900));
}
.cd-top__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cd-top__row .logo--h { flex: none; }
.cd-top__ped { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-weight: 650; font-size: 13.5px; white-space: nowrap; transition: background-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out); }
.cd-top__ped:hover { background: rgba(255,255,255,.12); }
.cd-top__ped:active { transform: scale(.97); }
.cd-top :focus-visible { outline-color: var(--sol-400); }
.cd-end {
  width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; text-align: left;
  transition: background-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out);
}
.cd-end:hover { background: rgba(255,255,255,.12); }
.cd-end:active { transform: scale(.985); }
.cd-end > svg:first-child { color: var(--laranja-400); flex: none; }
.cd-end > svg:last-child { color: var(--carvao-300); flex: none; }
.cd-end__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cd-end__txt small { font-size: 12px; color: var(--carvao-300); font-weight: 600; }
.cd-end__txt b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-meta { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cd-meta li { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 12.5px; font-weight: 650; color: var(--carvao-200); white-space: nowrap; }
.cd-meta li svg { color: var(--carvao-300); }
.cd-meta .is-suposicao { text-decoration-color: var(--laranja-400); }
.cd-meta__st.is-aberto { color: #fff; }
.cd-meta__st.is-aberto i { width: 8px; height: 8px; border-radius: 50%; background: #3BC47F; box-shadow: 0 0 0 3px rgba(59, 196, 127, .22); }
.cd-meta__st.is-fechado { background: var(--ketchup-600); color: #fff; }
.cd-meta__st.is-fechado svg { color: #fff; }
.cd-meta__cb { padding: 0 !important; background: none !important; }
.cd-meta__cb button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; border-radius: 8px; background: var(--sol-400); color: var(--carvao-950); font-size: 12.5px; font-weight: 700; position: relative; }
.cd-meta__cb button::after { content: ""; position: absolute; inset: -8px -2px; }   /* alvo de toque de 44 px */
.cd-meta__cb svg { color: var(--carvao-950) !important; }

/* ---- Moral do Dia sobre a borda do topo ---- */
.cd-dia { position: relative; z-index: 1; margin-top: -28px; padding: 0 12px; }
.cd-app .mdia { padding: 14px 14px 14px 16px; gap: 10px; grid-template-columns: minmax(0, 1fr) 100px; }
.cd-app .mdia__foto { width: 100px; }
.cd-app .mdia .letra--xl { font-size: 30px; }
.cd-app .mdia__nome { font-size: 21px; }
.cd-app .mdia__preco b { font-size: 28px; }
.cd-app .mdia__dia { font-size: 11.5px; }
.cd-app .mdia .btn { min-height: 44px; }
.cd-app.is-primeira .cd-dia .mdia { animation: cd-mdia-in 560ms var(--ease-out) 60ms both; }
.cd-app.is-primeira .cd-dia .mdia__foto { animation: cd-foto-in 640ms var(--ease-out) 160ms both; }
.cd-app.is-primeira .cd-semana { animation: cd-fade 360ms ease-out 300ms both; }
@keyframes cd-mdia-in { from { opacity: 0; transform: translateY(18px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
@keyframes cd-foto-in { from { opacity: 0; transform: rotate(-28deg) scale(.86); } to { opacity: 1; transform: rotate(4deg); } }
@keyframes cd-fade { from { opacity: 0; } to { opacity: 1; } }

.cd-semana { list-style: none; margin: 10px -12px 0; padding: 2px 12px 4px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cd-semana::-webkit-scrollbar { display: none; }
.cd-semana li { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0; min-width: 96px; padding: 7px 10px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); line-height: 1.2; }
.cd-semana b { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cd-semana span { font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.cd-semana em { font-style: normal; font-family: var(--font-display); font-size: 15px; color: var(--ketchup-700); }
.cd-semana li.is-hoje { background: var(--ketchup-600); border-color: var(--carvao-950); box-shadow: 0 2px 0 var(--carvao-950); }
.cd-semana li.is-hoje b, .cd-semana li.is-hoje span, .cd-semana li.is-hoje em { color: #fff; }
.cd-semana li.cd-semana__fim { background: transparent; border-style: dashed; }
.cd-semana li.cd-semana__fim span { color: var(--muted); font-weight: 600; }

/* ---- avisos ---- */
.cd-aviso { display: flex; gap: 10px; align-items: flex-start; margin: 14px 12px 0; padding: 11px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.cd-aviso svg { flex: none; margin-top: 1px; }
.cd-aviso--fechado { background: var(--ketchup-100); color: var(--ketchup-700); border: 1px solid rgba(194, 31, 23, .25); }
.cd-aviso--fechado b { color: var(--ketchup-700); }

/* ---- busca e abas fixas ---- */
.cd-busca { padding: 16px 12px 4px; }
.cd-busca__f { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line-2); color: var(--muted); transition: border-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease; }
.cd-busca__f:focus-within { border-color: var(--mar-600); box-shadow: 0 0 0 3px rgba(14, 106, 133, .18); }
.cd-busca__i { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; }
.cd-busca__i::placeholder { color: var(--muted); }
.cd-busca__i::-webkit-search-cancel-button { display: none; }
.cd-busca__x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--sunk); color: var(--ink-2); }
.cd-tabs-wrap { position: sticky; top: 0; z-index: 6; background: var(--ground); padding: 0 4px; box-shadow: 0 1px 0 var(--line); }
.cd-app--full .cd-tabs-wrap { top: calc(var(--protobar-h) + env(safe-area-inset-top, 0px)); }
.cd-tabs { border-bottom: 0; gap: 0; scroll-padding: 0 12px; }
.cd-tabs .tabs__btn { padding: 11px 11px; font-size: 14px; }
.cd-tabs .tabs__bar { height: 3px; }

/* ---- seções ---- */
.cd-secoes { padding: 6px 12px 0; }
.cd-sec { padding-top: 18px; }
.cd-sec__t { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--carvao-900); margin-bottom: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.cd-sec__t small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); }
.cd-sec__sub { font-size: 13.5px; color: var(--muted); margin: -6px 0 10px; }
.cd-lista { display: flex; flex-direction: column; gap: 10px; }
.cd-app.is-buscando .cd-dia, .cd-app.is-buscando .cd-aviso { display: none; }

/* cartão de produto no app estreito (o celular desenhado tem ~350 px) */
.cd-app .prod, .cd-sheet .prod { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 11px; padding: 10px; cursor: pointer; }
.cd-app .prod__foto, .cd-sheet .prod__foto { width: 84px; }
.cd-app .prod__nome, .cd-app .prod__preco b { font-size: 17px; }
.cd-app .prod__desc { font-size: 13px; }
.cd-app .prod:active { transform: scale(.99); }
.cd-sheet .prod--compacto { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 8px 10px; }
.cd-sheet .prod--compacto .prod__foto { width: 64px; }
@container cdapp (min-width: 520px) {
  .cd-app .prod { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; padding: 12px; }
  .cd-app .prod__foto { width: 104px; }
  .cd-app .prod__nome, .cd-app .prod__preco b { font-size: 19px; }
}
.prod.is-esgotado { background: var(--sunk); border-style: dashed; }
.prod.is-esgotado .prod__foto img { filter: grayscale(1); opacity: .55; }
.prod.is-esgotado .prod__nome, .prod.is-esgotado .prod__preco b { color: var(--muted); }
.prod.is-esgotado .prod__add { background: var(--raised); color: var(--erro-ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.prod.is-esgotado .selo { margin-left: 2px; }

/* preferidos: carrossel de fichas */
.cd-pref { display: flex; gap: 10px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cd-pref::-webkit-scrollbar { display: none; }
.cd-tile {
  position: relative; flex: none; width: 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); text-align: left; color: var(--ink);
  transition: border-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out);
}
.cd-tile:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cd-tile:hover { border-color: var(--laranja-300); } }
.cd-tile__foto { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--laranja-100); margin: 0 auto 6px; border: 3px solid var(--carvao-950); }
.cd-tile__foto img, .cd-tile__foto .ph { width: 100%; height: 100%; object-fit: cover; }
.cd-tile__nome { font-family: var(--font-display); font-weight: 400; font-size: 15.5px; line-height: 1.1; color: var(--carvao-900); min-height: 2.2em; }
.cd-tile__preco { font-weight: 700; font-size: 14px; color: var(--ink); display: flex; gap: 5px; align-items: baseline; }
.cd-tile__preco s { font-size: 12px; color: var(--muted); font-weight: 500; }
.cd-tile__mais { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--action); color: var(--carvao-950); box-shadow: 0 2px 0 var(--carvao-950); }

/* adicionais (informativo) */
.cd-ads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cd-ads li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.cd-ads__foto { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--laranja-100); color: var(--laranja-800); }
.cd-ads__foto img { width: 100%; height: 100%; object-fit: cover; }
.cd-ads__nome { font-weight: 650; }
.cd-ads b { font-size: 14px; color: var(--ink-2); }

.cd-vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; color: var(--muted); }
.cd-vazio b { color: var(--ink); }
.cd-nota { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cd-nota svg { display: inline; vertical-align: -2px; }

.cd-rodape { margin: 28px 12px 0; padding: 22px 16px; border-radius: 18px; background: var(--carvao-900); color: var(--carvao-300); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13.5px; }
.cd-rodape .logo { margin-bottom: 6px; }
.cd-rodape b { color: #fff; }
.cd-rodape .is-suposicao { text-decoration-color: var(--laranja-400); }

/* =====================================================================
   4. Barra da sacola
   ===================================================================== */
.cd-bar { position: absolute; left: 10px; right: 10px; bottom: 20px; z-index: 18; }
.cd-bar--full { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; z-index: 50; }
.cd-bar__btn {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 9px;
  border: 0; border-radius: 18px; background: var(--carvao-950); color: #fff; text-align: left;
  box-shadow: 0 14px 28px -10px rgba(21, 17, 14, .6), 0 3px 8px rgba(21, 17, 14, .2);
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-quick) ease;
}
.cd-bar__btn:hover { background: #2A221C; }
.cd-bar__btn:active { transform: scale(.98); }
.cd-bar__btn:focus-visible { outline: 3px solid var(--sol-400); outline-offset: 2px; }
.cd-bar__ic { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--laranja-500); color: var(--carvao-950); }
.cd-bar__n { position: absolute; top: -7px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; background: var(--sol-400); color: var(--carvao-950); border: 2px solid var(--carvao-950); font-size: 12px; font-weight: 800; }
.cd-bar__n.is-pop { animation: cd-pop 420ms var(--ease-bounce); }
@keyframes cd-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) translateY(-2px); } 100% { transform: scale(1); } }
.cd-bar__txt { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }
.cd-bar__tot { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--sol-400); white-space: nowrap; }
.cd-bar__btn.is-pedir { background: var(--action); color: var(--carvao-950); box-shadow: 0 3px 0 var(--carvao-950), 0 14px 28px -10px rgba(21, 17, 14, .5); }
.cd-bar__btn.is-pedir:hover { background: var(--action-hover); }
.cd-bar__btn.is-pedir .cd-bar__ic { background: var(--carvao-950); color: var(--laranja-400); }
.cd-bar__btn.is-pedir .cd-bar__tot { color: var(--carvao-950); }
.cd-bar__btn.is-pedir .cd-bar__txt { font-size: 17px; }
.cd-bar__btn.is-off { background: var(--carvao-700); color: var(--carvao-200); box-shadow: none; }
.cd-bar__btn.is-off .cd-bar__ic { background: var(--carvao-800); color: var(--carvao-300); }
.cd-bar__btn.is-off .cd-bar__tot { color: var(--carvao-200); }
.cd-bar__btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: ct-spin .7s linear infinite; }
.cd-bar__btn[aria-busy="true"] { justify-content: center; gap: 10px; }

/* o item voando até a sacola */
.cd-voo { position: fixed; z-index: 300; pointer-events: none; will-change: transform; }
.cd-voo__in { width: 100%; height: 100%; will-change: transform; }
.cd-voo__img { width: 100% !important; height: 100% !important; border-radius: 50% !important; overflow: hidden; border: 3px solid var(--carvao-950) !important; box-shadow: 0 8px 18px rgba(21, 17, 14, .35); background: var(--laranja-100); transform: none !important; animation: none !important; }
.cd-voo__img img, .cd-voo__img .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }

/* =====================================================================
   5. Telas internas (sacola, pagamento, Pix, confirmação, pedidos)
   ===================================================================== */
.cd-head { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; min-height: 58px; padding: 6px 12px 6px 6px; background: var(--raised); border-bottom: 1px solid var(--line); }
.cd-app--full .cd-head { top: calc(var(--protobar-h) + env(safe-area-inset-top, 0px)); }
.cd-head__back { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); flex: none; transition: background-color var(--dur-quick) ease; }
.cd-head__back:hover { background: var(--sunk); }
.cd-head__t { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--carvao-900); }
.cd-head__aside { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.cd-pad { padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 12px; }
.cd-card { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cd-card__t { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--carvao-900); padding: 0; }
.cd-sub { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--carvao-900); margin-top: 6px; }

/* sacola */
.cd-sacola .sacola__aviso, .cd-sacola .sacola__ok { display: none; }
.cd-sacola .sacola__item { grid-template-columns: 26px minmax(0, 1fr) auto 44px; gap: 8px; }
.cd-sacola .x-btn--sm { width: 44px; height: 44px; margin: -10px -8px -6px 0; }
.cd-mais { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--link); font-weight: 700; font-size: 14.5px; }
.cd-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.cd-row__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--laranja-100); color: var(--laranja-800); }
.cd-row__ic--sol { background: var(--sol-100); color: var(--sol-ink); }
.cd-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cd-row__txt b { font-weight: 700; }
.cd-row__txt small { font-size: 13px; color: var(--muted); }
.cd-row__txt small b { color: var(--ink); font-weight: 700; }
.cd-row__btn { flex: none; padding: 10px 14px; }
.cd-row--sw { cursor: pointer; }
.cd-row--sw .switch { flex: none; }
.cd-row--sw .switch:disabled { opacity: .45; }
.cd-ganha { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--laranja-50); color: var(--laranja-ink); font-size: 13.5px; font-weight: 600; }
.cd-ganha svg { flex: none; margin-top: 1px; }
.cd-ganha b { color: var(--carvao-900); }
.cd-cupom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.cd-cupom .input { text-transform: uppercase; }
.cd-cupom .input::placeholder { text-transform: none; }
.cd-cupom .field__err { grid-column: 1 / -1; }
.cd-dica { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cd-dica b { color: var(--ink-2); letter-spacing: .04em; }
.cd-cupom__on { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cd-cupom__cod { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1.5px dashed var(--carvao-900); background: var(--sol-100); color: var(--carvao-950); font-weight: 800; letter-spacing: .06em; font-size: 14px; }
.cd-link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; color: var(--link); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cd-ok-msg, .cd-erro { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.cd-ok-msg svg, .cd-erro svg { flex: none; margin-top: 1px; }
.cd-ok-msg { background: var(--mata-100); color: var(--mata-ink); }
.cd-ok-msg b { color: var(--mata-ink); }
.cd-erro { background: var(--erro-100); color: var(--erro-ink); }
.cd-erro--box { flex-wrap: wrap; }
.cd-erro--box > span { flex: 1; min-width: 0; font-weight: 500; }
.cd-erro--box b { font-weight: 700; }
.cd-erro__btn { width: 100%; margin-top: 4px; }
.cd-frete { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sol-100); color: var(--sol-ink); }
.cd-frete__txt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cd-frete__txt b { color: var(--carvao-900); }
.cd-frete__bar { height: 8px; border-radius: 4px; background: rgba(122, 77, 0, .16); overflow: hidden; }
.cd-frete__bar i { display: block; height: 100%; width: var(--p); border-radius: 4px; background: var(--laranja-500); animation: cd-barra 600ms var(--ease-out) both; transform-origin: 0 50%; }
@keyframes cd-barra { from { transform: scaleX(.2); } }
.cd-sug { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--carvao-900); background: var(--raised); color: var(--carvao-950); font-weight: 650; font-size: 14px; text-align: left; transition: transform var(--dur-press) var(--ease-out); }
.cd-sug:active { transform: scale(.98); }

/* pagamento */
.cd-mets { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cd-mets legend { margin-bottom: 8px; }
.cd-met { display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 12px; align-items: center; min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--raised); cursor: pointer; transition: border-color var(--dur-quick) ease, background-color var(--dur-quick) ease; }
.cd-met input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cd-met__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sunk); color: var(--ink-2); transition: background-color var(--dur-quick) ease, color var(--dur-quick) ease; }
.cd-met__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cd-met__txt b { font-weight: 700; font-size: 15.5px; }
.cd-met__txt small { font-size: 13px; color: var(--muted); }
.cd-met__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--control); position: relative; }
.cd-met__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--carvao-950); transform: scale(0.4); opacity: 0; transition: transform var(--dur-fast) var(--ease-bounce), opacity var(--dur-quick) ease; }
.cd-met:has(input:checked) { border-color: var(--carvao-950); background: var(--laranja-50); }
.cd-met:has(input:checked) .cd-met__ic { background: var(--action); color: var(--carvao-950); }
.cd-met:has(input:checked) .cd-met__dot { border-color: var(--carvao-950); }
.cd-met:has(input:checked) .cd-met__dot::after { transform: none; opacity: 1; }
.cd-met:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.cd-troco { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.cd-check { min-height: 44px; align-items: center; }
.cd-resumo dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cd-resumo dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.cd-resumo dt, .cd-resumo dd { margin: 0; }
.cd-resumo dd s { color: var(--muted); }
.cd-resumo .is-desc dd { color: var(--mata-ink); font-weight: 650; }
.cd-resumo__tot { padding-top: 8px; margin-top: 2px; border-top: 2px solid var(--carvao-900); align-items: baseline; }
.cd-resumo__tot dt { font-weight: 700; color: var(--ink); }
.cd-resumo__tot dd { font-family: var(--font-display); font-size: 28px; color: var(--carvao-900); }
.cd-resumo__prev { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.cd-resumo__prev svg { color: var(--laranja-800); flex: none; }

/* Pix */
.cd-pix { align-items: stretch; text-align: center; }
.cd-pix__head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd-pix__n { font-weight: 700; color: var(--ink-2); margin-top: 4px; }
.cd-pix__v { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--carvao-900); }
.cd-pix__qr { position: relative; align-self: center; width: min(230px, 72%); }
.cd-pix__qr .qr { display: block; width: 100%; padding: 14px; border: 3px solid var(--carvao-950); border-radius: 18px; box-shadow: 0 4px 0 var(--carvao-950); transition: opacity var(--dur-base) ease, filter var(--dur-base) ease; }
.cd-pix__qr.is-venceu .qr { opacity: .18; filter: grayscale(1); }
.cd-pix__venceu { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--erro-ink); font-size: 16px; }
.cd-pix__venceu b { padding: 4px 10px; border-radius: 8px; background: var(--raised); }
.cd-pix__tempo { display: inline-flex; align-self: center; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); }
.cd-pix__tempo b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--carvao-900); }
.cd-pix__tempo.is-erro { padding: 9px 12px; border-radius: 12px; background: var(--erro-100); color: var(--erro-ink); font-weight: 600; font-size: 14px; text-align: left; }
.cd-pix__tempo.is-erro svg { flex: none; }
.cd-pix__cc { display: flex; flex-direction: column; gap: 8px; }
.cd-pix__cc code { display: block; padding: 10px 12px; border-radius: 12px; background: var(--sunk); font-size: 11.5px; line-height: 1.4; color: var(--ink-2); word-break: break-all; text-align: left; max-height: 3.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.cd-pix__demo { align-self: center; font-size: 13px; color: var(--muted); }

/* confirmação */
.cd-ok { align-items: stretch; text-align: center; padding-top: 26px; }
.cd-ok__check { display: grid; place-items: center; }
.cd-ok__t { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--carvao-900); margin-top: 6px; }
.cd-ok__prev { font-size: 16px; color: var(--ink-2); margin-top: -4px; }
.cd-ok__prev b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--laranja-800); }
.cd-ok__resto { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.cd-ok__linha { padding: 14px 8px 12px; }
.cd-ok__acoes { display: flex; flex-direction: column; gap: 8px; }
.cd-ok__res ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cd-ok__res li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; font-weight: 600; }
.cd-ok__res li > span:first-child { font-family: var(--font-display); font-weight: 400; color: var(--laranja-800); }
.cd-ok__res small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.cd-ok__pag { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.cd-ok__pag > b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--carvao-900); }

/* meus pedidos */
.cd-saldo { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 3px solid var(--carvao-950); box-shadow: 0 4px 0 var(--carvao-950); color: var(--carvao-950); }
.cd-saldo__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--carvao-950); color: var(--sol-400); }
.cd-saldo small { display: block; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cd-saldo b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.cd-saldo p { font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.cd-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-hist__i { padding: 12px 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cd-hist__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-hist__top > b { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--carvao-900); }
.cd-hist__top > .num { margin-left: auto; font-weight: 700; }
.cd-hist__i p { font-size: 14px; color: var(--ink-2); }
.cd-hist__i small { font-size: 12.5px; color: var(--muted); }
.cd-hist__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cd-hist__acts .btn { flex: 1 1 140px; }

/* =====================================================================
   6. Folhas do app
   ===================================================================== */
.cd-layer { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.cd-layer--full { position: fixed; z-index: 70; }
.cd-layer.is-on { pointer-events: auto; }
.cd-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.cd-sheet__bg { position: absolute; inset: 0; background: rgba(21, 17, 14, .52); opacity: 0; transition: opacity 200ms ease; }
.cd-sheet.is-open .cd-sheet__bg { opacity: 1; transition-duration: 300ms; }
.cd-sheet__box {
  position: relative; width: 100%; max-height: 90%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 0 16px 30px; border-radius: 24px 24px 0 0; background: var(--raised); box-shadow: 0 -10px 40px rgba(21, 17, 14, .25);
  transform: translateY(100%); transition: transform 220ms var(--ease-out); outline: none;
}
.cd-sheet__box::-webkit-scrollbar { display: none; }
.cd-sheet.is-open .cd-sheet__box { transform: none; transition: transform 420ms var(--ease-drawer); }
.cd-layer--full .cd-sheet__box { max-width: 560px; margin: 0 auto; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.cd-sheet__handle { position: sticky; top: 0; z-index: 2; height: 24px; margin: 0 -16px; display: grid; place-items: center; cursor: grab; touch-action: none; background: var(--raised); }
.cd-sheet__handle::before { content: ""; width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); }
.cd-sheet__x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 44px; height: 44px; background: var(--sunk); border-radius: 50%; }
.cd-sheet__body { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.cd-sheet__t { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--carvao-900); padding-right: 48px; }
.cd-sheet .cfg { gap: 14px; }
.cd-sheet .cfg__head { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-right: 40px; }
.cd-sheet .cfg__foto { width: 96px; border-radius: 50%; border: 3px solid var(--carvao-950); }
.cd-sheet .cfg__nome { font-size: 23px; }
.cd-sheet .cfg__desc { font-size: 14px; }
.cd-sheet .cfg__foot { position: sticky; bottom: -30px; margin: 0 -16px -30px; padding: 12px 16px 30px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--raised) 18%); }
.cd-layer--full .cd-sheet .cfg__foot { bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); margin-bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.cd-sheet .cfg__add { min-width: 0; }
.cd-sheet .stepper output { font-weight: 400; }
.cd-sheet .addon .is-suposicao { text-decoration: none; color: var(--laranja-800); }
.cd-sheet .cfg__foot { flex-wrap: nowrap; gap: 10px; }
.cd-sheet .cfg__add { flex: 1; min-width: 0; padding: 12px 14px; gap: 8px; font-size: 16px; }
.cd-sheet .cfg__total { font-size: 19px; white-space: nowrap; }
.cd-seg { width: 100%; }
.cd-seg .seg__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.cd-end-f { display: flex; flex-direction: column; gap: 12px; }
.cd-end-f select.input { appearance: auto; }
.cd-esg { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 40px; }
.cd-esg__foto { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--line-2); background: var(--sunk); }
.cd-esg__foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .6; }
.cd-esg__txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cd-esg__t { font-family: var(--font-display); font-weight: 400; font-size: 23px; color: var(--carvao-900); }

/* =====================================================================
   7. Menos movimento: tudo aparece no lugar
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cd-app.is-primeira .cd-dia .mdia, .cd-app.is-primeira .cd-dia .mdia__foto, .cd-app.is-primeira .cd-semana { animation: none; }
  .cd-bar__n.is-pop, .cd-frete__bar i { animation: none; }
  .cd-sheet__box, .cd-sheet__bg { transition: none; }
}

/* com a barra da sacola na tela cheia, os avisos sobem para não cobrir o botão */
html:has(.cd-bar--full:not([hidden])) #toast-root { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* esgotado vindo do Sistema: ficha, Moral do Dia e linha da sacola */
.cd-tile.is-esgotado { background: var(--sunk); border-style: dashed; }
.cd-tile.is-esgotado .cd-tile__foto img { filter: grayscale(1); opacity: .55; }
.cd-tile.is-esgotado .cd-tile__mais { background: var(--raised); color: var(--erro-ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cd-tile.is-esgotado .cd-tile__nome, .cd-tile.is-esgotado .cd-tile__preco { color: var(--muted); }
.mdia.is-esgotado .mdia__foto img { filter: grayscale(1); }
.mdia.is-esgotado .btn { background: var(--raised); color: var(--erro-ink); }
.cd-sacola .sacola__item.is-esgotado .sacola__nome > b { text-decoration: line-through; color: var(--muted); }
.cd-sacola .sacola__item.is-esgotado .selo { margin-top: 4px; }
