/* App dos clientes MBrasil Rodízio (PWA), mobile-first. Cores: brasa #e0501c, preto quente #0c0b09, creme #faf6ef. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(fonts/great-vibes-latin-400-normal.woff2) format('woff2'); }

:root {
  --brasa: #e0501c; --brasa-d: #c24214; --brasa-l: #fdeee7; --ink: #0c0b09; --ink-2: #1f1b18; --cream: #faf6ef;
  --card: #fff; --muted: #6f6a62; --line: #ece5d8; --ok: #2e7d32; --ok-l: #e4f3e5; --err: #c62828; --err-l: #fdeaea;
  --radius: 18px; --shadow: 0 6px 22px rgba(31, 27, 24, .09); --nav: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: contain; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.suave { color: var(--muted); }

#app { width: 100%; min-height: 100dvh; background: var(--cream); position: relative; }
.arranque { min-height: 100dvh; display: grid; place-items: center; background: var(--ink); }
.tela { padding-bottom: calc(var(--nav) + var(--safe-b) + 24px); animation: entra .18s ease-out; }
.tela.sem-nav { padding-bottom: calc(var(--safe-b) + 24px); }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Barra inferior ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav-in { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 500; color: var(--muted); }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--brasa); font-weight: 600; }

/* ---------- Topo escuro (início) ---------- */
.hero { position: relative; color: #fff; background: var(--ink) center / cover; padding: calc(var(--safe-t) + 14px) 16px 22px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,9,.55) 0%, rgba(12,11,9,.86) 70%, rgba(12,11,9,.96) 100%); }
.hero > * { position: relative; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topo img { height: 44px; width: auto; }
.btn-cart { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; }
.btn-cart svg { width: 22px; height: 22px; }
.cart-n { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--brasa); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.estado-loja { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: .76rem; font-weight: 500; }
.estado-loja i { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; }
.estado-loja.fechada i { background: #ef5350; }
.hero h1 { margin-top: 16px; font-size: 1.75rem; line-height: 1.15; font-weight: 600; }
.hero h1 em { font-style: normal; color: #ff8a4c; }
.hero p.sub { margin-top: 8px; color: rgba(255,255,255,.8); font-size: .88rem; max-width: 300px; }
.modos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.modo { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--ink); border: 2px solid transparent; }
.modo svg { width: 28px; height: 28px; color: var(--brasa); }
.modo b { display: block; font-size: .92rem; font-weight: 600; }
.modo small { display: block; font-size: .7rem; color: var(--muted); }
.modo.on { background: var(--brasa); color: #fff; }
.modo.on svg, .modo.on small { color: #fff; }
.modo[disabled] { opacity: .5; }

/* ---------- Cabeçalho simples das restantes páginas ---------- */
.barra-topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 12px 10px; background: var(--ink-2); color: #fff; }
.barra-topo h1 { flex: 1; font-size: 1.05rem; font-weight: 600; text-align: center; }
.barra-topo .vazio-esq { width: 40px; }
.btn-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.btn-ico.claro { background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.btn-ico svg { width: 20px; height: 20px; }

/* ---------- Conteúdo ---------- */
.corpo { padding: 16px; }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.sec-t h2 { font-size: 1.1rem; font-weight: 700; }
.sec-t a, .sec-t button { color: var(--brasa); font-size: .82rem; font-weight: 600; }
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 66px; padding: 10px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: .74rem; font-weight: 500; }
.cat.on { background: var(--brasa); color: #fff; border-color: var(--brasa); }
.cat svg { width: 22px; height: 22px; }
.chips { position: sticky; top: calc(var(--safe-t) + 60px); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: rgba(250,246,239,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.pesquisa { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pesquisa svg { width: 18px; height: 18px; color: var(--muted); }
.pesquisa input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .92rem; }

.destaques { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cartao { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.cartao .foto { aspect-ratio: 4 / 3; background: #1f1b18 center / cover; display: grid; place-items: center; }
.cartao .foto img { width: 100%; height: 100%; object-fit: cover; }
.cartao .foto.vazia img { width: 60%; height: auto; opacity: .85; object-fit: contain; }
.cartao .info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.cartao h3 { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.cartao .preco { font-weight: 700; color: var(--brasa); font-size: .95rem; }
.cartao .base { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.mais { width: 32px; height: 32px; border-radius: 50%; background: var(--brasa); color: #fff; display: grid; place-items: center; }
.mais svg { width: 16px; height: 16px; }
.cartao.esgotado { opacity: .55; }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); z-index: 2; }
.fav.on { color: var(--brasa); }
.fav svg { width: 18px; height: 18px; }

.lista-prod { display: flex; flex-direction: column; gap: 12px; }
.linha-prod { display: flex; gap: 12px; padding: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; position: relative; width: 100%; }
.linha-prod .foto { flex: none; width: 92px; height: 92px; border-radius: 14px; background: #1f1b18 center / cover; overflow: hidden; display: grid; place-items: center; }
.linha-prod .foto img { width: 100%; height: 100%; object-fit: cover; }
.linha-prod .foto.vazia img { width: 70%; height: auto; object-fit: contain; }
.linha-prod .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linha-prod h3 { font-size: .92rem; font-weight: 600; padding-right: 30px; }
.linha-prod .desc { font-size: .76rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linha-prod .base { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.linha-prod .fav { top: 6px; right: 6px; background: transparent; width: 30px; height: 30px; }
.linha-prod.esgotado { opacity: .55; }
.tag { padding: 3px 9px; border-radius: 99px; background: var(--line); font-size: .7rem; font-weight: 600; }

.cartao-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff3e0; color: #7a4a00; font-size: .84rem; margin-bottom: 14px; }
.cartao-aviso svg { margin-top: 2px; }
.cartao-aviso.ok { background: var(--ok-l); color: #1b5e20; }

/* ---------- Botões e campos ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--brasa); color: #fff; font-weight: 600; font-size: .95rem; text-align: center; }
.btn:active { background: var(--brasa-d); }
.btn[disabled] { opacity: .55; }
.btn.claro { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.escuro { background: var(--ink-2); }
.btn.perigo { background: var(--err-l); color: var(--err); }
.btn.link { background: none; color: var(--brasa); padding: 8px; width: auto; margin: 0 auto; font-size: .88rem; }
.btn.pequeno { width: auto; padding: 8px 14px; font-size: .82rem; border-radius: 10px; }
.campo { display: block; margin-bottom: 12px; }
.campo > span { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: .95rem; outline: 0; color: var(--ink); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--brasa); }
.erro { color: var(--err); font-size: .84rem; margin: 6px 0; }
.ok-txt { color: var(--ok); font-size: .84rem; margin: 6px 0; }
.sep-ou { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: .78rem; }
.sep-ou::before, .sep-ou::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.painel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.painel h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }

/* ---------- Folha do produto ---------- */
.produto-foto { position: relative; height: 270px; background: #1f1b18 center / cover; }
.produto-foto img { width: 100%; height: 100%; object-fit: cover; }
.produto-foto.vazia { display: grid; place-items: center; }
.produto-foto.vazia img { width: 50%; height: auto; object-fit: contain; }
.produto-foto .acoes { position: absolute; top: calc(var(--safe-t) + 12px); left: 12px; right: 12px; display: flex; justify-content: space-between; }
.produto-corpo { position: relative; margin-top: -22px; padding: 20px 16px 120px; background: var(--cream); border-radius: 24px 24px 0 0; }
.produto-corpo .titulo { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.produto-corpo h1 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.produto-corpo .preco { font-size: 1.25rem; font-weight: 700; color: var(--brasa); white-space: nowrap; }
.produto-corpo .desc { margin-top: 6px; color: var(--muted); font-size: .9rem; white-space: pre-line; }
.grupo { margin-top: 18px; }
.grupo h3 { font-size: .95rem; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.grupo h3 small { font-weight: 500; font-size: .72rem; color: var(--muted); }
.opc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.opc label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.opc input { accent-color: var(--brasa); width: 18px; height: 18px; }
.opc .ex { color: var(--muted); font-size: .82rem; }
.rodape-fixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + var(--safe-b)); }
.rodape-fixo > div { width: 100%; display: flex; gap: 12px; align-items: center; }
.qtd { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 14px; padding: 4px; }
.qtd button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; }
.qtd span { min-width: 26px; text-align: center; font-weight: 600; }
.qtd svg { width: 14px; height: 14px; }

/* ---------- Barra "Ver carrinho" ---------- */
.barra-carrinho { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav) + var(--safe-b) + 10px); z-index: 41; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 16px; background: var(--brasa); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(224,80,28,.4); }
.barra-carrinho .n { margin-right: 10px; padding: 1px 9px; border-radius: 99px; background: #fff; color: var(--brasa); font-size: .82rem; }

/* ---------- Carrinho / checkout ---------- */
.item-cart { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-cart:last-child { border: 0; }
.item-cart .t { flex: 1; min-width: 0; }
.item-cart b { font-size: .92rem; font-weight: 600; }
.item-cart small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.item-cart .dir { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.soma { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.soma.t { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.escolhas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.escolha { position: relative; padding: 12px; border-radius: 14px; background: #fff; border: 2px solid var(--line); text-align: center; font-size: .86rem; font-weight: 600; }
.escolha small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.escolha.on { border-color: var(--brasa); background: var(--brasa-l); }
.cupao { display: flex; gap: 8px; }
.cupao input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; text-transform: uppercase; background: #fff; }
.morada-salva { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .84rem; }
.morada-salva b { display: block; font-size: .8rem; }

/* ---------- Pedido ---------- */
.cartao-pedido { background: #fff; border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow); }
.cartao-pedido .cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cartao-pedido h2 { font-size: 1.25rem; font-weight: 700; }
.pilula { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--ok-l); color: #1b5e20; white-space: nowrap; }
.pilula.erro { background: var(--err-l); color: var(--err); }
.pilula.espera { background: #fff3e0; color: #7a4a00; }
.linha-t { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.linha-t:last-child { padding-bottom: 0; }
.linha-t::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.linha-t:last-child::before { display: none; }
.linha-t.feito::before { background: #4caf50; }
.bola { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; z-index: 1; }
.bola svg { width: 16px; height: 16px; }
.feito .bola { background: #4caf50; }
.atual .bola { background: var(--brasa); box-shadow: 0 0 0 5px var(--brasa-l); }
.linha-t .txt { flex: 1; min-width: 0; padding-top: 3px; }
.linha-t b { display: block; font-size: .95rem; font-weight: 600; }
.linha-t.atual b { color: var(--brasa); }
.linha-t small { color: var(--muted); font-size: .8rem; }
.linha-t time { font-size: .8rem; color: var(--muted); padding-top: 4px; }
.eta { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--cream); margin-top: 16px; }
.eta svg { width: 28px; height: 28px; color: var(--brasa); }
.eta b { display: block; color: var(--brasa); font-size: 1.05rem; }
.eta small { color: var(--muted); font-size: .76rem; }
.estafeta { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; margin-top: 12px; box-shadow: var(--shadow); }
.estafeta .av { width: 44px; height: 44px; border-radius: 50%; background: var(--brasa-l); color: var(--brasa); display: grid; place-items: center; }
.estafeta .av svg { width: 24px; height: 24px; }
.estafeta small { color: var(--muted); font-size: .76rem; display: block; }

/* ---------- Pedidos / conta ---------- */
.card-pedido { display: block; width: 100%; text-align: left; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card-pedido .cab { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card-pedido b { font-size: .95rem; }
.card-pedido p { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.card-pedido .rod { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.vazio-conta { text-align: center; padding: 36px 20px; }
.vazio-conta .ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: var(--brasa-l); color: var(--brasa); display: grid; place-items: center; }
.vazio-conta .ic svg { width: 34px; height: 34px; }
.vazio-conta h2 { font-size: 1.15rem; font-weight: 700; }
.vazio-conta p { margin: 8px 0 18px; color: var(--muted); font-size: .9rem; }
.menu-lista { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.menu-lista > * { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.menu-lista > *:last-child { border: 0; }
.menu-lista svg { width: 20px; height: 20px; color: var(--brasa); }
.menu-lista .seta { margin-left: auto; color: var(--muted); }
.perfil-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.perfil-cab .av { width: 56px; height: 56px; border-radius: 50%; background: var(--brasa); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.perfil-cab b { display: block; font-size: 1.05rem; }
.perfil-cab small { color: var(--muted); }

/* ---------- Diálogos / avisos ---------- */
.fundo { position: fixed; inset: 0; z-index: 80; background: rgba(12,11,9,.55); display: flex; align-items: flex-end; justify-content: center; }
.folha { width: 100%; max-width: 560px; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); animation: sobe .22s ease-out; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.folha p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.folha .btn + .btn { margin-top: 10px; }
.passos-ios { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.passos-ios li { margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav) + var(--safe-b) + 80px); transform: translateX(-50%); z-index: 100; max-width: 90vw; padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .86rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.faixa-instalar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink-2); color: #fff; margin-bottom: 14px; }
.faixa-instalar img { width: 40px; height: 40px; border-radius: 10px; }
.faixa-instalar div { flex: 1; font-size: .82rem; }
.faixa-instalar b { display: block; font-size: .9rem; }
.faixa-instalar .btn { width: auto; padding: 9px 14px; font-size: .82rem; }
.spin { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }

.produto-foto .acoes .fav { position: static; }

/* ---------- Cabeçalho e hero iguais aos da loja /delivery ---------- */
.cab-site { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-t) + 8px) 16px 8px; background: #fff; border-bottom: 1px solid #e5e5e5; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cab-site img { height: 44px; width: auto; }
.btn-pedido { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--brasa); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.btn-pedido svg { width: 16px; height: 16px; }
.btn-pedido .n { padding: 0 6px; border-radius: 99px; background: #fff; color: var(--brasa-d); font-size: .7rem; }
.hero-site { position: relative; background: #171717 center / cover; }
.hero-site::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.hero-in { position: relative; padding: 64px 16px; text-align: center; color: #fff; }
.hero-in .script { font-family: 'Great Vibes', cursive; font-size: 3rem; line-height: 1; }
.hero-in .script span { color: #ff8a4c; }
.hero-in h1 { margin-top: 12px; font-size: 1.5rem; font-weight: 700; }
.hero-in .desc { max-width: 560px; margin: 12px auto 0; font-size: .85rem; color: rgba(255,255,255,.8); }
.pesq-site { display: flex; max-width: 560px; margin: 28px auto 0; overflow: hidden; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.pesq-site input { flex: 1; min-width: 0; padding: 12px 20px; border: 0; outline: 0; background: none; font: inherit; font-size: .88rem; color: #262626; }
.pesq-site button { padding: 0 20px; background: var(--brasa); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.info-site { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; font-size: .76rem; font-weight: 500; color: rgba(255,255,255,.9); }
.info-site span { display: inline-flex; align-items: center; gap: 6px; }
.info-site svg { width: 16px; height: 16px; }

/* ---------- Carrinho ---------- */
.item-cart { align-items: flex-start; }
.mini { flex: none; width: 64px; height: 64px; border-radius: 12px; background: #1f1b18; overflow: hidden; display: grid; place-items: center; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini.vazia img { width: 70%; height: auto; object-fit: contain; }
.item-cart .tot { font-size: .92rem; white-space: nowrap; }
.qtd-linha { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--err); background: var(--err-l); }
.rm svg { width: 16px; height: 16px; }
.acoes-cart { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.bar-t { font-size: 1.05rem; font-weight: 700; border-left: 4px solid var(--brasa); padding-left: 10px; }
.carrossel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.sug { flex: none; width: 168px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sug .foto { aspect-ratio: 1 / 1; background: #1f1b18; display: grid; place-items: center; }
.sug .foto img { width: 100%; height: 100%; object-fit: cover; }
.sug .foto.vazia img { width: 60%; height: auto; object-fit: contain; }
.sug .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sug h3 { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.sug .base { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.vantagens { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .78rem; color: var(--muted); }
.vantagens li { display: flex; align-items: center; gap: 8px; }
.vantagens svg { color: #2e7d32; }

/* ---------- Checkout em passos ---------- */
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; margin: 0 0 16px; padding: 0; }
.etapas button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; font-size: .68rem; font-weight: 500; color: var(--muted); text-align: center; }
.etapas button:disabled { cursor: default; }
.etapas b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: .82rem; }
.etapas b svg { width: 14px; height: 14px; }
.etapas .atual b { background: var(--brasa); color: #fff; box-shadow: 0 0 0 4px var(--brasa-l); }
.etapas .atual button { color: var(--brasa); font-weight: 600; }
.etapas .feito b { background: #4caf50; color: #fff; }
.escolha { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.escolha svg { width: 24px; height: 24px; margin-bottom: 4px; color: var(--brasa); }
.escolha.off { opacity: .5; }
.cupao-bloco { margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cupao-bloco .cupao { margin-top: 6px; }
.nav-passos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
.rvs { margin: 0; }
.rv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv:last-child { border: 0; }
.rv dt { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rv dd { margin: 4px 0 0; font-size: .9rem; }
.rv-ed { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--brasa); background: var(--brasa-l); flex: none; }
.rv-ed svg { width: 16px; height: 16px; }

/* ---------- Botão próprio "Continuar com o Google" (logótipo G e texto como pede o Google) ---------- */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; border: 1px solid #dadce0; border-radius: 14px; background: #fff; color: #3c4043; font-weight: 600; font-size: .95rem; box-shadow: 0 1px 2px rgba(60,64,67,.12); }
.btn-google:active { background: #f1f3f4; }

/* ---------- Tablet (orientação vertical): a app ocupa toda a largura, sem margens laterais ---------- */
@media (min-width: 600px) {
  .corpo { padding: 20px 24px; }
  .cab-site, .barra-topo { padding-left: 24px; padding-right: 24px; }
  .hero { padding-left: 24px; padding-right: 24px; }
  .hero-in { padding: 72px 24px; }
  .hero-in .script { font-size: 3.6rem; }
  .hero-in h1 { font-size: 1.8rem; }
  .pesquisa { margin-left: 24px; margin-right: 24px; }
  .chips { padding-left: 24px; padding-right: 24px; }
  .cats { margin: 0 -24px; padding: 14px 24px 4px; }
  .carrossel { margin: 0 -24px; padding: 4px 24px 10px; scroll-padding: 0 24px; }
  .destaques { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lista-prod { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .produto-foto { height: 360px; }
  .produto-foto .acoes { left: 24px; right: 24px; }
  .produto-corpo { padding: 24px 24px 130px; }
  .rodape-fixo { padding-left: 24px; padding-right: 24px; }
  .barra-carrinho { left: 24px; right: 24px; }
  .nav button { font-size: .78rem; }
  .etapas { max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 900px) {
  .destaques { grid-template-columns: repeat(4, 1fr); }
}

/* Confirmação do email no checkout */
.folha .email-conf { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #f6f3ec; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 1.02rem; word-break: break-all; text-align: center; }
.folha .email-aviso { padding: 10px 12px; border-radius: 10px; background: #fdecea; border: 1px solid #f5c2bd; color: #8a1f17; }

/* =====================================================================================================
   Estrutura comum: colunas (carrinho, checkout, pedido), produto e conta. No telemóvel e no tablet ficam
   como sempre (uma coluna); o computador (>= 1024 px) reorganiza-as mais abaixo.
   ===================================================================================================== */
.cols { display: block; }
.ck { display: flex; flex-direction: column; }
.ck .col-a, .ck .col-b { display: contents; } /* mantém a ordem do telemóvel: dados, resumo, erros, botões */
.ck .col-a > section { order: 1; }
.ck .col-b > section { order: 2; }
.ck .col-a > #erros { order: 3; }
.ck .col-a > .nav-passos { order: 4; }
.produto-pag { display: block; }
.produto-col { display: contents; }
.conta-wrap { display: block; }
.conta-lat, .dk-topo, .dk-nav, .dk-rodape { display: none; }

/* =====================================================================================================
   Computador (>= 1024 px): o site /delivery (e a app aberta num PC). Cabeçalho com conta, rodapé com contactos,
   menu lateral da conta e duas colunas no carrinho, checkout, produto e pedido. Tema claro, como a loja.
   ===================================================================================================== */
@media (min-width: 1024px) {
  :root { --gut: max(32px, calc((100vw - 1136px) / 2)); --dknav: 68px; }
  .nav, .barra-carrinho, .cab-site { display: none !important; }
  .tela, .tela.sem-nav { padding-bottom: 64px; min-height: 60vh; }
  .toast { bottom: 32px; }

  /* Faixa escura e barra de navegação */
  .dk-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 0 var(--gut); }
  .dk-topo { display: block; background: #171717; color: rgba(255,255,255,.75); font-size: .75rem; padding: 8px 0; }
  .dk-topo a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
  .dk-topo a:hover { color: #fff; }
  .dk-topo svg { width: 14px; height: 14px; color: #ff8a4c; }
  .dk-topo-dir { display: flex; gap: 22px; }
  .dk-nav { display: block; position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e5e5e5; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
  .dk-nav .dk-in { height: var(--dknav); }
  .dk-logo img { height: 46px; width: auto; }
  .dk-links { display: flex; gap: 34px; margin-right: auto; margin-left: 28px; font-size: .88rem; font-weight: 500; color: #404040; }
  .dk-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
  .dk-links a:hover, .dk-links a.on { color: var(--brasa-d); }
  .dk-links a.on { border-bottom-color: var(--brasa); }
  .dk-dir { display: flex; align-items: center; gap: 16px; }
  .dk-estado { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; }
  .dk-estado i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
  .dk-estado.aberta { color: #059669; }
  .dk-estado.fechada { color: #dc2626; }
  .dk-entrar { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; font-weight: 600; transition: background .15s; }
  .dk-entrar:hover { background: var(--cream); }
  .dk-entrar svg { width: 18px; height: 18px; color: var(--brasa); }
  .dk-conta { position: relative; }
  .dk-conta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; font-weight: 600; transition: background .15s; }
  .dk-conta-btn:hover, .dk-conta-btn[aria-expanded="true"] { background: var(--cream); }
  .dk-conta-btn .av { width: 32px; height: 32px; border-radius: 50%; background: var(--brasa); color: #fff; display: grid; place-items: center; font-size: .86rem; }
  .dk-conta-btn .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dk-conta-btn svg { width: 12px; height: 12px; color: var(--muted); }
  .dk-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 280px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.16); }
  .dk-menu-cab { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .dk-menu-cab b { display: block; font-size: .92rem; }
  .dk-menu-cab small { display: block; color: var(--muted); font-size: .76rem; word-break: break-all; }
  .dk-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: .88rem; text-align: left; }
  .dk-menu button:hover { background: var(--cream); }
  .dk-menu button svg { width: 18px; height: 18px; color: var(--brasa); }
  .dk-menu .sair { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--err); }
  .dk-menu .sair svg { color: var(--err); }

  /* Início */
  .hero-in { padding: 110px var(--gut); }
  .hero-in .script { font-size: 5rem; }
  .hero-in h1 { font-size: 2.6rem; }
  .hero-in .desc { font-size: 1rem; max-width: 640px; }
  .pesq-site { max-width: 640px; }
  .pesq-site input { padding: 15px 26px; font-size: .95rem; }
  .info-site { font-size: .84rem; gap: 10px 32px; }
  .corpo { padding: 28px var(--gut); }
  .cats { margin: 0; padding: 18px 0 6px; flex-wrap: wrap; justify-content: center; }
  .destaques { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .cartao, .linha-prod { transition: transform .18s, box-shadow .18s; }
  .cartao:hover, .linha-prod:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(31,27,24,.14); cursor: pointer; }

  /* Menu */
  .pesquisa { max-width: 520px; margin: 28px var(--gut) 0; }
  .chips { top: var(--dknav); padding: 12px var(--gut); }
  .lista-prod { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .linha-prod .foto { width: 104px; height: 104px; }

  /* Títulos das páginas: deixam de ser a barra escura do telemóvel */
  .barra-topo { position: static; justify-content: flex-start; gap: 14px; padding: 32px var(--gut) 0; background: transparent; color: var(--ink); }
  .barra-topo h1 { flex: none; text-align: left; font-size: 1.7rem; font-weight: 700; }
  .barra-topo .vazio-esq, .barra-topo .btn-cart { display: none; }
  .barra-topo .btn-ico { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
  .barra-topo + .corpo, .barra-topo + form.corpo { padding-top: 20px; }
  .vazio-conta { padding: 56px 20px; }

  /* Produto: foto à esquerda, escolhas à direita */
  .produto-pag { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; padding: 36px var(--gut) 0; }
  .produto-pag .produto-foto { position: sticky; top: calc(var(--dknav) + 24px); height: 540px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
  .produto-pag .produto-foto .acoes { top: 16px; left: 16px; right: 16px; }
  .produto-col { display: block; }
  .produto-corpo { margin-top: 0; padding: 0 0 16px; background: transparent; border-radius: 0; }
  .produto-corpo h1 { font-size: 1.8rem; }
  .rodape-fixo { position: static; z-index: auto; padding: 8px 0 0; background: transparent; border: 0; }

  /* Carrinho, checkout e pedido: conteúdo à esquerda, resumo à direita */
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .ck { display: grid; }
  .ck .col-a, .ck .col-b { display: block; }
  .cols > .col-b { position: sticky; top: calc(var(--dknav) + 24px); }
  #pedido-corpo .col-b { position: static; }
  .etapas { max-width: none; margin: 0 0 22px; }
  .etapas button { flex-direction: row; justify-content: center; gap: 10px; font-size: .8rem; }
  .carrossel { margin: 0; padding: 4px 0 10px; scroll-padding: 0; }

  /* Conta: menu lateral + conteúdo */
  .conta-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px var(--gut) 0; }
  .conta-lat { display: block; position: sticky; top: calc(var(--dknav) + 24px); padding: 18px 12px 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
  .conta-lat .perfil-cab { padding: 0 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .conta-lat nav button, .conta-lat .sair { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-size: .9rem; text-align: left; transition: background .15s; }
  .conta-lat nav button:hover { background: var(--cream); }
  .conta-lat nav button.on { background: var(--brasa-l); color: var(--brasa-d); font-weight: 600; }
  .conta-lat svg { width: 18px; height: 18px; color: var(--brasa); }
  .conta-lat .sair { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--err); }
  .conta-lat .sair svg { color: var(--err); }
  .conta-main .barra-topo { padding: 0; }
  .conta-main .corpo { padding: 16px 0 0; }
  .conta-main .perfil-cab, .conta-main #sair, .conta-main .menu-lista > button[data-ir] { display: none; }
  .conta-main .menu-lista:not(:has(#ativar-avisos)) { display: none; }
  .conta-main .lista-prod { grid-template-columns: repeat(2, 1fr); }
  .conta-main #f-dados, .conta-main #f-senha, .conta-main #f-morada { max-width: 540px; }

  /* Entrar, criar conta, recuperar: cartão ao centro */
  #f-entrar, #f-reg, #f-esq, #f-red { max-width: 480px; margin: 28px auto 0; padding: 32px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }

  /* Diálogos ao centro (em vez da folha inferior do telemóvel) */
  .fundo { align-items: center; padding: 24px; }
  .folha { max-width: 480px; border-radius: 24px; padding: 26px 24px; }

  /* Rodapé */
  .dk-rodape { display: block; background: #171717; color: rgba(255,255,255,.7); font-size: .88rem; }
  .dk-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 48px; }
  .dk-rodape img { height: 80px; width: auto; margin-bottom: 16px; }
  .dk-rodape p { max-width: 320px; line-height: 1.6; }
  .dk-rodape h3 { margin-bottom: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
  .dk-rodape ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
  .dk-rodape a { display: inline-flex; align-items: flex-start; gap: 12px; transition: color .15s; }
  .dk-rodape a:hover { color: #fff; }
  .dk-rodape svg { width: 16px; height: 16px; margin-top: 2px; color: #ff8a4c; }
  .dk-base { border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; color: rgba(255,255,255,.5); }
  .dk-base .dk-in { padding-top: 16px; padding-bottom: 16px; }
  .dk-base span:last-child { display: flex; gap: 20px; }
  .dk-base a { text-decoration: underline; }
}

/* ---------- Início: categorias e menu completo no computador (como o site antigo); a app no tablet e telemóvel ---------- */
.so-dk, .chips.so-dk { display: none; }
@media (min-width: 1024px) {
  .so-mov { display: none; }
  .so-dk { display: block; }
  .chips.so-dk { display: flex; }
  .so-dk .sec-menu { margin-bottom: 40px; scroll-margin-top: 130px; }
  .bar-t.sec-dk { margin: 6px 0 20px; font-size: 1.3rem; }
  .grelha-dk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .cl .info { gap: 6px; padding: 16px 18px 18px; }
  .cl h3 { font-size: 1rem; padding-right: 36px; }
  .cl .desc { min-height: 2.4em; font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cl .base { padding-top: 10px; }
  .cl .preco { font-size: 1.1rem; }
  .cl .pedir { padding: 8px 20px; border-radius: 999px; background: var(--brasa); color: #fff; font-size: .78rem; font-weight: 700; transition: background .15s; }
  .cl:hover .pedir { background: var(--brasa-d); }
}

/* ---------- Dados do restaurante no fim dos ecrãs (telemóvel e tablet); no computador há o rodapé ---------- */
.rodape-mov { margin: 24px 0 -24px; padding: 22px 16px; background: #fff; box-shadow: 0 -8px 22px -6px rgba(31,27,24,.14), 0 8px 22px -6px rgba(31,27,24,.14); } /* sem margens laterais; encosta ao menu inferior; sombra no topo e em baixo em vez de uma linha reta */
.tela.com-barra .rodape-mov { margin-bottom: 52px; } /* só deixa espaço para a barra "Ver carrinho" quando ela existe */
.rodape-mov img { height: 64px; width: auto; margin-bottom: 10px; }
.rodape-mov h2 { margin-bottom: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rodape-mov ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rodape-mov li a { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; }
.rodape-mov li svg { margin-top: 2px; color: var(--brasa); }
.rodape-mov .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: .74rem; color: var(--muted); text-align: center; }
.rodape-mov .legal a { text-decoration: underline; }
@media (min-width: 600px) { .rodape-mov { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .rodape-mov { display: none; } }

/* ---------- Carrossel "Também podes querer": setas e deslocamento suave ---------- */
.carrossel { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .carrossel { scroll-behavior: auto; } }
.car-setas { display: flex; gap: 8px; flex: none; }
.car-setas button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: border-color .15s, color .15s; }
.car-setas button:hover { border-color: var(--brasa); color: var(--brasa); }
.car-setas svg { width: 16px; height: 16px; }

/* ---------- Avatares: círculo perfeito, nunca encolhem (o email comprido cortava-os num oval no menu lateral do PC) ---------- */
.perfil-cab .av, .dk-conta-btn .av, .estafeta .av { flex: none; aspect-ratio: 1 / 1; }
.perfil-cab > div, .estafeta > div { min-width: 0; }
.perfil-cab b, .perfil-cab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-menu-cab b, .dk-menu-cab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perfil-cab small { font-size: .72rem; }

/* ---------- Chips de categorias no computador: como o site antigo (laranja quando selecionado) ---------- */
@media (min-width: 1024px) {
  .chip { padding: 8px 20px; border-color: #e5e5e5; color: #525252; font-size: .875rem; transition: border-color .15s, color .15s, background .15s; }
  .chip:hover { border-color: var(--brasa); color: var(--brasa-d); }
  .chip.on, .chip.on:hover { background: var(--brasa); border-color: var(--brasa); color: #fff; }
}

/* ---------- Banner em carrossel (só com anúncios): o banner de sempre é o 1.º slide; a pesquisa fica fora do carrossel ----------
   PROPORÇÃO FIXA 2:1 em todos os ecrãs (nada salta ao mudar de slide). Imagem do anúncio: 2000 x 1000 px, igual em telemóvel, tablet e PC
   (conteúdo importante ao centro; em ecrãs com mais de 1120 px a altura pára nos 560 px e as margens de cima e de baixo podem ser aparadas). */
.hero-car { margin-bottom: 18px; background: none; }
.hero-car::before { display: none; }
.hero-area { position: relative; }
.hero-trilho { display: flex; width: 100%; aspect-ratio: 2 / 1; max-height: 560px; min-height: 188px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hero-trilho::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; display: block; color: #fff; background: #171717 center / cover; }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.6); }
.hero-slide .hero-in { position: relative; z-index: 2; padding: 14px 16px 26px; }
.hs-base { display: flex; align-items: center; justify-content: center; } /* o banner de sempre fica ao centro da altura fixa */
.hs-base .hero-in { width: 100%; }
.hs-anuncio { display: grid; place-items: center; background-image: linear-gradient(135deg, #2a1d16, #8a3410); }
.hs-anuncio.com-img::before { background: rgba(0,0,0,.38); }
.hs-anuncio:not(.com-txt)::before { display: none; }
.an-bg { position: absolute; inset: 0; z-index: 0; display: block; }
.an-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; } /* imagens na proporção certa: sem cortes nem faixas */
.an-titulo { font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.an-texto { max-width: 560px; margin: 12px auto 0; font-size: .95rem; color: rgba(255,255,255,.92); }
.an-btn { display: inline-block; margin-top: 22px; padding: 12px 28px; border-radius: 999px; background: var(--brasa); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .15s; }
.an-btn:hover { background: var(--brasa-d); }
.pesq-fixa { width: calc(100% - 32px); max-width: 560px; margin: 16px auto 0; box-shadow: var(--shadow); } /* por baixo do banner (não tapa nenhuma imagem) */
.hero-pontos { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.hero-pontos button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border-radius: 99px; background: rgba(255,255,255,.5); box-shadow: 0 0 5px rgba(0,0,0,.55); transition: width .2s, background .2s; }
.hero-pontos button.on { width: 24px; background: #fff; }
.hero-seta { display: none; position: absolute; top: calc(50% - 22px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); transition: background .15s; }
.hero-seta:hover { background: rgba(255,255,255,.34); }
.hero-seta.ant { left: 16px; }
.hero-seta.seg { right: 16px; }
/* Banner de sempre dentro do carrossel, em telemóvel e tablet pequeno (altura 2:1, baixa): título e a linha de levantamento/entrega; sem descrição nem os outros itens */
.hero-car .hs-base .script { font-size: 2.1rem; }
.hero-car .hs-base h1 { margin-top: 4px; font-size: 1.05rem; line-height: 1.2; }
.hero-car .hs-base .desc { display: none; }
.hero-car .hs-base .info-site { margin-top: 10px; gap: 4px 14px; font-size: .68rem; }
.hero-car .hs-base .info-site span:nth-child(n+3) { display: none; }
.hero-car .an-titulo { font-size: 1.3rem; }
.hero-car .an-texto { margin-top: 6px; font-size: .8rem; }
.hero-car .an-btn { margin-top: 10px; padding: 8px 18px; font-size: .68rem; }
@media (min-width: 600px) {
  .hero-car .hs-base .script { font-size: 3rem; }
  .hero-car .hs-base h1 { margin-top: 8px; font-size: 1.4rem; }
  .hero-car .hs-base .info-site { margin-top: 14px; font-size: .76rem; }
  .hero-car .an-titulo { font-size: 1.9rem; }
  .hero-car .an-texto { margin-top: 10px; font-size: .95rem; }
  .hero-car .an-btn { margin-top: 16px; padding: 11px 26px; font-size: .78rem; }
  .hero-slide .hero-in { padding: 24px 24px 40px; }
}
@media (min-width: 768px) {
  .hero-car .hs-base .desc { display: block; }
  .hero-car .hs-base .info-site span:nth-child(n+3) { display: inline-flex; }
}
@media (min-width: 1024px) {
  .hero-slide .hero-in { padding: 48px var(--gut) 56px; }
  .hero-car .hs-base .script { font-size: 4rem; }
  .hero-car .hs-base h1 { font-size: 2rem; }
  .hero-car .an-titulo { font-size: 2.6rem; }
  .an-texto { font-size: 1.1rem; max-width: 680px; }
  .pesq-fixa { max-width: 640px; }
  .hero-seta { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .hero-trilho { scroll-behavior: auto; } }
