@charset "UTF-8";
/* Site de pedidos Reis Frios — mesmas cores do painel: dourado (#F2B705) e azul real (#13306B). */
:root {
  --gold: #F2B705; --gold-600: #D49E00; --gold-50: #FFF7DB; --gold-ink: #3B2C00;
  --navy: #13306B; --navy-700: #0E2552; --navy-900: #0A1630; --navy-50: #EAF0FB;
  --ink: #1C2433; --slate: #4A5568; --muted: #6B7686;
  --line: #E3E7EE; --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #FAFBFD;
  --ok: #15803D; --ok-50: #E7F6EC; --danger: #DC2626; --danger-50: #FDECEC; --info: #2563EB; --info-50: #EAF1FE;
  --whats: #1FA855; --whats-700: #168A45;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.14);
  --shadow-lg: 0 30px 70px -25px rgba(10,22,48,.45);
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus: 0 0 0 4px rgba(242,183,5,.25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E7EBF2; --slate: #B6BFCC; --muted: #8B95A5;
    --line: #2A3446; --bg: #0F1522; --surface: #171F2E; --surface-2: #1B2435;
    --gold-50: rgba(242,183,5,.12); --navy-50: rgba(99,140,230,.14); --ok-50: rgba(21,128,61,.2); --danger-50: rgba(220,38,38,.18); --info-50: rgba(37,99,235,.18);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 26px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--font-head); margin: 0; }
a { color: var(--navy); font-weight: 600; }
a:hover { color: var(--gold-600); }
@media (prefers-color-scheme: dark) { a { color: #9DB7F0; } }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(242,183,5,.6); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.travado { overflow: hidden; }

/* ---------- Botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 12px; font: 600 .95rem var(--font-head); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .1s, box-shadow .2s; }
.botao:active { transform: translateY(1px); }
.botao svg { width: 20px; height: 20px; fill: currentColor; }
.botao--principal { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 22px -12px rgba(242,183,5,.9); }
.botao--principal:hover { background: var(--gold-600); color: var(--gold-ink); }
.botao--fantasma { background: transparent; border-color: var(--line); color: var(--ink); }
.botao--fantasma:hover { border-color: var(--slate); color: var(--ink); }
.botao--whats { background: var(--whats); color: #fff; }
.botao--whats:hover { background: var(--whats-700); }
.botao--perigo { background: var(--danger); color: #fff; }
.botao--largo { width: 100%; }
.botao--pequeno { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.botao-icone { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.botao-icone:hover { background: var(--bg); color: var(--ink); }

/* ---------- Avisos ---------- */
.aviso { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; border-left: 4px solid; }
.aviso--erro { background: var(--danger-50); border-color: var(--danger); }
.aviso--ok { background: var(--ok-50); border-color: var(--ok); }
.aviso--info { background: var(--info-50); border-color: var(--info); }

/* ---------- Campos ---------- */
.form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo > span:first-child { font: 600 .86rem var(--font-head); color: var(--slate); }
.campo small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.campo input, .campo textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--gold); box-shadow: var(--focus); }
.senha { position: relative; display: block; }
.senha input { padding-right: 88px; }
.ver-senha { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font: 600 .8rem var(--font-head); cursor: pointer; }
.ver-senha:hover { background: var(--bg); }
@media (prefers-color-scheme: dark) { .ver-senha { color: #9DB7F0; } }
.form__rodape { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- Login / cadastro ---------- */
.tela-acesso { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, rgba(242,183,5,.18), transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.acesso { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 48px; align-items: center; max-width: 980px; min-height: 100vh; margin: 0 auto; padding: 32px 24px; }
.acesso__marca { color: #fff; }
.acesso__marca img { width: 120px; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.acesso__marca h1 { margin: 22px 0 10px; font-size: 2.3rem; line-height: 1.15; }
.acesso__marca p { max-width: 380px; margin: 0; color: #C7D2E8; font-size: 1.05rem; }
.acesso__card { padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 12px; background: var(--bg); }
.abas a { padding: 10px; border-radius: 9px; color: var(--muted); font: 600 .92rem var(--font-head); text-align: center; text-decoration: none; }
.abas a.ativa { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .acesso { grid-template-columns: 1fr; gap: 22px; align-content: start; padding: 28px 16px; }
  .acesso__marca { text-align: center; }
  .acesso__marca img { width: 84px; }
  .acesso__marca h1 { margin-top: 12px; font-size: 1.6rem; }
  .acesso__marca p { margin: 0 auto; font-size: .95rem; }
  .acesso__card { padding: 20px 16px; }
}

/* ---------- Topo do pedido ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: var(--navy-700); background: linear-gradient(180deg, var(--navy-700), var(--navy)); color: #fff; box-shadow: 0 8px 20px -14px rgba(10,22,48,.8); }
.topo__linha, .topo__busca { max-width: 820px; margin: 0 auto; padding: 10px 16px; }
.topo__linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topo__marca { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.topo__marca img { width: 40px; height: 40px; object-fit: contain; }
.topo__marca span { font: 700 1.02rem/1.1 var(--font-head); }
.topo__marca small { display: block; margin-top: 2px; font: 500 .66rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.topo__usuario { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topo__nome { color: #C7D2E8; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo__nome b { color: #fff; }
.topo .botao--fantasma { border-color: rgba(255,255,255,.25); color: #fff; }
.topo .botao--fantasma:hover { border-color: #fff; }
.topo__busca { display: grid; gap: 10px; padding-top: 2px; padding-bottom: 12px; }
.busca { position: relative; display: block; }
.busca svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--muted); pointer-events: none; }
.busca input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.busca input:focus { box-shadow: 0 0 0 3px var(--gold); }
.filtros { display: flex; gap: 8px; }
.filtro { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #DDE5F5; font: 600 .85rem var(--font-head); cursor: pointer; }
.filtro span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .76rem; text-align: center; }
.filtro.ativo { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); }
.filtro.ativo span { background: rgba(59,44,0,.14); }

/* ---------- Lista de produtos ---------- */
.conteudo { max-width: 820px; margin: 0 auto; padding: 16px 16px 40px; }
body.com-barra .conteudo { padding-bottom: 120px; }
.produtos { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.produto { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1.5px solid transparent; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s, background .2s; }
.produto--escolhido { border-color: var(--gold); background: var(--gold-50); }
.produto__foto { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.produto__foto--letra { display: grid; place-items: center; background: var(--navy-50); color: var(--navy); font: 700 .95rem var(--font-head); }
@media (prefers-color-scheme: dark) { .produto__foto--letra { color: #9DB7F0; } }
.produto__nome { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.qtd { display: flex; align-items: center; flex: none; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.produto--escolhido .qtd { border-color: var(--gold); }
.qtd__btn { width: 42px; height: 44px; border: 0; background: transparent; color: var(--ink); font: 600 1.35rem/1 var(--font-head); cursor: pointer; touch-action: manipulation; }
.qtd__btn:hover { background: var(--bg); }
.qtd__btn--mais { color: var(--navy); }
@media (prefers-color-scheme: dark) { .qtd__btn--mais { color: #9DB7F0; } }
.qtd__campo { width: 52px; height: 44px; padding: 0 2px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 16px var(--font-head); text-align: center; outline: none; }
.qtd__campo:focus { background: var(--gold-50); }
.qtd__campo::placeholder { color: var(--muted); font-weight: 500; opacity: .7; }
.vazio { margin: 30px 0; color: var(--muted); text-align: center; }
@media (max-width: 420px) {
  .produto { gap: 10px; padding: 8px; }
  .produto__foto { width: 40px; height: 40px; }
  .produto__nome { font-size: .92rem; }
  .qtd__btn { width: 38px; }
  .qtd__campo { width: 46px; }
  .topo__nome { display: none; }
}

/* ---------- Barra inferior ---------- */
.barra { position: fixed; left: 50%; bottom: 14px; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: calc(100% - 32px); max-width: 788px; padding: 10px 10px 10px 18px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: sobe .25s ease-out; }
.barra__info { display: grid; line-height: 1.2; }
.barra__info b { font: 700 1.05rem var(--font-head); }
.barra__info span { color: #9FADC7; font-size: .8rem; }
@keyframes sobe { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- Janela do pedido ---------- */
.janela, .confirma { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.janela__fundo { position: absolute; inset: 0; background: rgba(10,22,48,.55); }
.janela__caixa { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); }
.janela__topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.janela__topo h2 { font-size: 1.2rem; }
.janela__corpo { display: grid; gap: 14px; padding: 4px 22px 16px; overflow-y: auto; }
.janela__dica { margin: 0; color: var(--muted); font-size: .9rem; }
.janela__rodape { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.resumo { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.resumo li { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.resumo__qtd { min-width: 36px; font: 700 1rem var(--font-head); color: var(--navy); }
@media (prefers-color-scheme: dark) { .resumo__qtd { color: var(--gold); } }
.resumo__sep { color: var(--muted); }
.resumo__nome { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.previa summary { color: var(--muted); font-size: .88rem; cursor: pointer; }
.previa pre { margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: #E7F6EC; color: #10331E; font: .88rem/1.5 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .janela { align-items: flex-end; padding: 0; }
  .janela__caixa { max-height: 92vh; border-radius: 20px 20px 0 0; }
  .janela__corpo { padding: 4px 16px 14px; }
  .janela__rodape { flex-direction: column-reverse; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .janela__rodape .botao { width: 100%; }
}
.confirma { z-index: 60; }
.confirma__caixa { position: relative; width: 100%; max-width: 380px; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.confirma__caixa p { margin: 0 0 18px; font-weight: 500; }
.confirma__botoes { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Menu (Fazer pedido / Meus pedidos) ---------- */
.menu { display: flex; gap: 4px; max-width: 820px; margin: 0 auto; padding: 0 16px; }
.menu a { padding: 8px 14px 10px; border-bottom: 3px solid transparent; color: #C7D2E8 !important; font: 600 .9rem var(--font-head); text-decoration: none; }
.menu a:hover { color: #fff !important; }
.menu a.ativo { border-color: var(--gold); color: #fff !important; }

/* ---------- Meus pedidos ---------- */
.titulo { margin: 4px 0 16px; font-size: 1.35rem; }
.historico { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cartao { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.cartao__topo h2 { font-size: 1.05rem; }
.cartao__data { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.etiqueta { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-size: .76rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .etiqueta { color: #9DB7F0; } }
.cartao__itens { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.cartao__itens li { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.cartao__itens li.fora { opacity: .55; }
.cartao__itens li.fora .resumo__nome { text-decoration: line-through; }
.cartao__itens small { color: var(--muted); }
.cartao__obs { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--gold-50); font-size: .9rem; }
.cartao__rodape { display: flex; justify-content: flex-end; margin-top: 14px; }
.cartao__aviso { color: var(--muted); font-size: .88rem; }
.vazio--caixa { display: grid; justify-items: center; gap: 14px; padding: 30px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.vazio--caixa p { margin: 0; }
.mais { margin: 20px 0 0; text-align: center; }

/* ---------- Lembrar acesso ---------- */
.lembrar { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.lembrar input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
@media (prefers-color-scheme: dark) { .lembrar input { accent-color: var(--gold); } }
.lembrar span { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.lembrar small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

/* ---------- App instalado / instalar ---------- */
/* No iPhone, o app usa a barra de status translúcida: o topo desce o tamanho do entalhe */
.topo { padding-top: env(safe-area-inset-top, 0px); }
.tela-acesso .acesso { padding-top: calc(32px + env(safe-area-inset-top, 0px)); }
.menu { align-items: center; }
.menu__instalar { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border: 1.5px solid rgba(242,183,5,.6); border-radius: 999px; background: transparent; color: var(--gold); font: 600 .82rem var(--font-head); cursor: pointer; white-space: nowrap; }
.menu__instalar:hover { background: rgba(242,183,5,.12); }
.menu__instalar svg { width: 16px; height: 16px; fill: currentColor; }
.instalar-login { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.instalar-login:hover { border-color: var(--gold); }
.instalar-login svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--gold); fill: var(--gold-ink); }
.passos { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.passos li { line-height: 1.45; }
.ic-ios { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; fill: #2563EB; }
.acesso--simples { grid-template-columns: 1fr; text-align: center; }
.acesso--simples .acesso__marca p { margin: 0 auto 18px; }
.menu a { white-space: nowrap; }
@media (max-width: 440px) {
  .menu { gap: 0; }
  .menu a { padding-left: 8px; padding-right: 8px; font-size: .86rem; }
  .menu a:first-child { padding-left: 0; }
  .menu__instalar { padding: 5px 10px; }
  .menu__extra { display: none; }
}
@media (max-width: 360px) { .menu__texto { display: none; } .menu__instalar { padding: 6px 8px; } }
