/* ============================================================
   TCHÊ PUDIM — interface
   Base branca. O creme e o caramelo são detalhe, não fundo.
   Cor só onde há ação ou informação.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--fonte-corpo);
  background: var(--fundo);
  color: var(--tinta);
  font-size: var(--t-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: var(--fonte-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--largura); margin: 0 auto; padding: 0 1.25rem; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rolagem { overflow-x: auto; }

:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   TOPO — branco, discreto, o logo é o protagonista
   ============================================================ */

.topo {
  background: var(--fundo);
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topo-inner { display: flex; align-items: center; gap: .75rem; min-height: 64px; }

.marca {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.marca-logo {
  width: 120px; height: 40px;
  background: var(--logo-url) left center/contain no-repeat;
  flex: none;
  font-size: 0;
}
#marca-nome { display: none; }

.topo-btn {
  background: transparent;
  border: 1px solid var(--borda-forte);
  color: var(--tinta);
  padding: .5rem .8rem;
  border-radius: var(--raio-p);
  cursor: pointer;
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.topo-btn:hover { border-color: var(--rosa); color: var(--rosa); }

.carrinho-btn {
  position: relative;
  background: var(--rosa);
  border-color: var(--rosa);
  color: #fff;
}
.carrinho-btn:hover { background: var(--rosa-escuro); border-color: var(--rosa-escuro); color: #fff; }
.carrinho-contagem {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--caramelo);
  color: var(--tinta);
  min-width: 20px; height: 20px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid var(--fundo);
}

.calda-drip, .capa-onda { display: none; }

/* ============================================================
   CAPA E CABEÇALHO DA LOJA
   ============================================================ */

.capa {
  height: clamp(130px, 22vw, 200px);
  background: linear-gradient(112deg, var(--rosa-escuro) 0%, var(--rosa) 58%, var(--caramelo) 145%) center/cover;
  position: relative;
}
.capa::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(36,20,23,.3));
}

.loja-cabecalho { background: var(--fundo); }
.loja-topo { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: -40px; position: relative; z-index: 2; }

.loja-logo {
  width: 92px; height: 92px;
  border-radius: var(--raio-g);
  background: var(--logo-mono), var(--creme);
  background-size: 78%, cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--borda);
  box-shadow: 0 6px 20px rgba(36,20,23,.14);
  flex: none;
  font-size: 0;
}

.loja-info { padding-top: 46px; min-width: 0; flex: 1; }
.loja-info h1 { font-size: clamp(1.45rem, 4.2vw, 1.95rem); color: var(--tinta); }
.loja-info .tagline { font-size: 1rem; margin-top: .05rem; }

.tagline { font-family: var(--fonte-assinatura); color: var(--caramelo); line-height: 1.2; }

.loja-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--borda);
  border-radius: var(--raio-p);
  padding: .3rem .6rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--tinta-media);
  white-space: nowrap;
}
.pill.on { color: var(--pistache); border-color: color-mix(in srgb, var(--pistache) 40%, white); background: color-mix(in srgb, var(--pistache) 7%, white); }
.pill.off { color: var(--erro); border-color: color-mix(in srgb, var(--erro) 35%, white); background: color-mix(in srgb, var(--erro) 5%, white); }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--pistache); }
.ponto.fechado { background: var(--erro); }

@media (max-width: 560px) {
  .loja-topo { flex-direction: column; gap: .6rem; margin-top: -34px; }
  .loja-logo { width: 76px; height: 76px; }
  .loja-info { padding-top: 0; }
}

/* ============================================================
   BUSCA E CATEGORIAS
   ============================================================ */

.barra-filtros {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: var(--fundo);
  padding: .9rem 0 .65rem;
  border-bottom: 1px solid var(--borda);
}
body.com-alarme .barra-filtros { top: 120px; }

.busca { position: relative; max-width: 460px; }
.busca svg {
  position: absolute;
  left: .8rem; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: none; stroke: var(--tinta-fraca);
  stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.busca input {
  width: 100%;
  padding: .68rem .9rem .68rem 2.5rem;
  border: 1px solid var(--borda);
  border-radius: var(--raio-p);
  background: var(--fundo-2);
  font-size: var(--t-md);
}
.busca input:focus { border-color: var(--rosa); background: var(--fundo); outline: none; }

.chips { display: flex; gap: .4rem; overflow-x: auto; margin-top: .65rem; padding-bottom: .15rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  background: transparent;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-p);
  padding: .4rem .8rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--tinta-media);
  cursor: pointer;
  white-space: nowrap;
  transition: all .14s;
}
.chip:hover { border-color: var(--rosa); color: var(--rosa); }
.chip.ativo { background: var(--rosa); border-color: var(--rosa); color: #fff; }

/* ============================================================
   CARDÁPIO — linhas limpas, foto à direita
   ============================================================ */

.secao { padding: 1.75rem 0 2.5rem; }
.tipo-botoes {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.tipo-botao {
  flex: 1;
  max-width: 220px;
  padding: .7rem 1rem;
  border-radius: var(--raio-p);
  border: 1px solid var(--borda-forte);
  background: var(--fundo);
  color: var(--tinta-media);
  font-weight: 700;
  font-size: var(--t-sm);
  cursor: pointer;
  transition: all .15s;
}
.tipo-botao:hover { border-color: var(--rosa); color: var(--rosa); }
.tipo-botao.ativo { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.grupo { margin-bottom: 2.25rem; }
.grupo-titulo {
  font-size: var(--t-xl);
  color: var(--tinta);
  margin-bottom: .35rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.grupo-titulo small { font-size: var(--t-xs); color: var(--tinta-fraca); font-weight: 600; letter-spacing: 0; }

.itens { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .itens { grid-template-columns: 1fr 1fr; gap: 0 2rem; } }

.linha-produto {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--borda);
  cursor: pointer;
  align-items: flex-start;
  transition: opacity .12s;
}
.linha-produto:hover .linha-foto { transform: scale(1.03); }
.linha-produto:hover h3 { color: var(--rosa); }
.linha-produto:focus-visible { outline: 2px solid var(--rosa); outline-offset: 4px; }
.linha-produto.off { cursor: default; opacity: .5; }
.linha-produto.off:hover .linha-foto { transform: none; }
.linha-produto.off:hover h3 { color: inherit; }

.linha-texto { flex: 1; min-width: 0; }
.linha-texto h3 {
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
  transition: color .12s;
}
.linha-texto p {
  font-size: var(--t-sm);
  color: var(--tinta-media);
  margin-bottom: .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.linha-preco { display: flex; align-items: center; gap: .5rem; }
.preco { font-weight: 800; letter-spacing: -.03em; color: var(--tinta); }

.linha-foto {
  width: 104px; height: 104px;
  border-radius: var(--raio);
  background: linear-gradient(150deg, var(--creme), var(--creme-2)) center/cover no-repeat;
  background-position: right bottom;
  border: 1px solid var(--borda);
  flex: none;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease;
}
.linha-esgotado {
  position: absolute; inset: 0;
  background: rgba(36,20,23,.66);
  color: #fff;
  display: grid; place-items: center;
  font-size: var(--t-xs);
  font-weight: 700;
}
.linha-badge {
  position: absolute;
  top: .3rem; right: .3rem;
  background: var(--rosa);
  color: #fff;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: var(--t-xs);
  font-weight: 800;
  border: 2px solid #fff;
}
.btn-add-rapido {
  position: absolute;
  right: .4rem; bottom: .4rem;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--rosa);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: var(--sombra);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.btn-add-rapido:hover { background: var(--rosa-escuro); transform: scale(1.08); }
.btn-add-rapido:active { transform: scale(.95); }
.selo-estoque-mini {
  background: color-mix(in srgb, var(--caramelo) 18%, white);
  color: #7a6300;
  border: 1px solid color-mix(in srgb, var(--caramelo) 45%, white);
  border-radius: 5px;
  padding: .1rem .4rem;
  font-size: var(--t-xs);
  font-weight: 700;
}
.selo-estoque {
  position: absolute;
  top: .4rem; left: .4rem;
  background: var(--caramelo);
  color: var(--tinta);
  padding: .15rem .45rem;
  border-radius: 5px;
  font-size: var(--t-xs);
  font-weight: 700;
}

/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
  background: var(--rosa);
  color: #fff;
  border: 1px solid var(--rosa);
  padding: .68rem 1.1rem;
  border-radius: var(--raio-p);
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .14s, border-color .14s, transform .05s;
  white-space: nowrap;
}
.btn:hover { background: var(--rosa-escuro); border-color: var(--rosa-escuro); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-grande { width: 100%; padding: .9rem; font-size: var(--t-md); }
.btn-fantasma { background: transparent; color: var(--tinta); border-color: var(--borda-forte); }
.btn-fantasma:hover { background: var(--fundo-2); color: var(--rosa); border-color: var(--rosa); }
.btn-perigo { background: var(--erro); border-color: var(--erro); }
.btn-perigo:hover { background: #8f1e18; border-color: #8f1e18; }
.btn-mate { background: var(--pistache); border-color: var(--pistache); }
.btn-mate:hover { background: #5f7248; border-color: #5f7248; }
.btn-mini { padding: .32rem .6rem; font-size: var(--t-xs); }

/* ============================================================
   FORMULÁRIOS
   ============================================================ */

.campo { margin-bottom: .9rem; }
.campo label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: .35rem; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-p);
  background: var(--fundo);
  font-size: var(--t-md);
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--rosa); outline: none; }
.campo-dica { font-size: var(--t-xs); color: var(--tinta-fraca); margin-top: .28rem; line-height: 1.45; }
.linha { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .linha { grid-template-columns: 1fr; } }

.eyebrow {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--tinta-fraca);
  margin-bottom: .45rem;
}

/* ============================================================
   PAINEL LATERAL
   ============================================================ */

.overlay {
  position: fixed; inset: 0;
  background: rgba(36,20,23,.5);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: fade .14s ease;
  backdrop-filter: blur(2px);
}
@keyframes fade { from { opacity: 0; } }

.painel {
  background: var(--fundo);
  width: min(460px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 1.4rem;
  animation: entra .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes entra { from { transform: translateX(18px); opacity: .5; } }

.painel-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.painel-topo h2 { font-size: var(--t-xl); }
.fechar {
  background: none; border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--tinta-fraca);
  line-height: 1;
  padding: .2rem .45rem;
  border-radius: var(--raio-p);
}
.fechar:hover { background: var(--fundo-2); color: var(--tinta); }

/* ============================================================
   DETALHE DO PRODUTO
   ============================================================ */

.detalhe-produto { margin-bottom: 1.1rem; }
.detalhe-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--raio);
  background: linear-gradient(150deg, var(--creme), var(--creme-2)) center/cover no-repeat;
  background-position: right bottom;
  border: 1px solid var(--borda);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.detalhe-desc { font-size: var(--t-sm); color: var(--tinta-media); line-height: 1.55; margin-bottom: .85rem; }
.detalhe-selos { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.detalhe-preco { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.03em; color: var(--tinta); font-family: var(--fonte-display); }

/* ============================================================
   CARRINHO
   ============================================================ */

.item { display: flex; gap: .75rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--borda); }
.item-info { flex: 1; min-width: 0; }
.item-nome { font-weight: 600; font-size: var(--t-sm); }
.item-preco { font-size: var(--t-xs); color: var(--tinta-fraca); }
.qtd { display: flex; align-items: center; gap: .5rem; }
.qtd button {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--borda-forte);
  background: var(--fundo);
  cursor: pointer;
  font-weight: 700;
  color: var(--rosa);
}
.qtd button:hover { border-color: var(--rosa); background: var(--rosa-claro); }
.qtd span { min-width: 20px; text-align: center; font-weight: 700; font-size: var(--t-sm); }

.totais { margin: 1.2rem 0; }
.total-linha { display: flex; justify-content: space-between; padding: .3rem 0; font-size: var(--t-sm); color: var(--tinta-media); }
.total-linha.grande {
  font-size: var(--t-lg);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--tinta);
  border-top: 1px solid var(--borda);
  margin-top: .5rem;
  padding-top: .7rem;
}
.total-linha.desconto { color: var(--pistache); font-weight: 600; }

.vazio { text-align: center; padding: 2.5rem 1rem; color: var(--tinta-media); }
.vazio-emoji { font-size: 2rem; margin-bottom: .5rem; }

.marca-pudim {
  width: 64px; height: 64px;
  margin: 0 auto .9rem;
  border-radius: var(--raio);
  background: var(--logo-mono), var(--creme);
  background-size: 76%, cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--borda);
  font-size: 0;
}

.barra-carrinho {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--fundo);
  border-top: 1px solid var(--borda);
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 60;
  box-shadow: 0 -4px 24px rgba(36,20,23,.09);
}
.barra-carrinho span { font-weight: 700; font-size: var(--t-sm); margin-right: auto; }

/* ============================================================
   CARTÕES, SELOS E FIDELIDADE
   ============================================================ */

.cartao {
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1rem;
  margin-bottom: .8rem;
}

.selo {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 5px;
  font-size: var(--t-xs);
  font-weight: 700;
  background: var(--creme);
  color: var(--tinta-media);
}
.selo.novo       { background: #fff4d6; color: #7a5c00; }
.selo.pago       { background: #e6efdf; color: #3f5230; }
.selo.preparando { background: #ffe9d1; color: #7a4400; }
.selo.saiu       { background: #dfe8fb; color: #1e3d78; }
.selo.entregue   { background: var(--pistache); color: #fff; }
.selo.cancelado  { background: #f8dedb; color: #7a1b0c; }

.selo-vez {
  display: inline-block;
  background: var(--fundo-2);
  border: 1px solid var(--borda);
  color: var(--tinta-media);
  border-radius: 5px;
  padding: .1rem .4rem;
  font-size: var(--t-xs);
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}
.selo-vez.novo-cliente { background: var(--pistache); border-color: var(--pistache); color: #fff; }
.selo-vez.fiel { background: var(--caramelo); border-color: var(--caramelo); color: var(--tinta); }

.fidelidade {
  background: linear-gradient(122deg, var(--rosa-escuro), var(--rosa) 65%, var(--caramelo) 155%);
  color: #fff;
  border-radius: var(--raio);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.fidelidade-pontos { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.barra { height: 6px; background: rgba(255,255,255,.28); border-radius: 999px; overflow: hidden; margin-top: .7rem; }
.barra div { height: 100%; background: #fff; border-radius: 999px; transition: width .4s; }

/* ============================================================
   PIX
   ============================================================ */

.pix-caixa { text-align: center; }
.pix-qr { background: #fff; padding: .9rem; border-radius: var(--raio); display: inline-block; border: 1px solid var(--borda); margin-bottom: 1rem; }
.pix-codigo {
  background: var(--fundo-2);
  border: 1px dashed var(--borda-forte);
  border-radius: var(--raio-p);
  padding: .7rem;
  font-size: .68rem;
  font-family: ui-monospace, monospace;
  word-break: break-all;
  text-align: left;
  max-height: 88px;
  overflow-y: auto;
  margin-bottom: .7rem;
  color: var(--tinta-media);
}

/* ============================================================
   AVISOS
   ============================================================ */

.toast {
  position: fixed;
  bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  background: var(--tinta);
  color: #fff;
  padding: .75rem 1.15rem;
  border-radius: var(--raio-p);
  z-index: 200;
  font-size: var(--t-sm);
  font-weight: 600;
  box-shadow: var(--sombra-alta);
  animation: sobe .22s ease;
  max-width: 90vw;
  text-align: center;
}
@keyframes sobe { from { transform: translate(-50%, 12px); opacity: 0; } }
.toast.erro { background: var(--erro); }

.erro-msg {
  background: color-mix(in srgb, var(--erro) 7%, white);
  border: 1px solid color-mix(in srgb, var(--erro) 25%, white);
  color: var(--erro);
  padding: .65rem .8rem;
  border-radius: var(--raio-p);
  font-size: var(--t-sm);
  margin-bottom: .85rem;
  font-weight: 600;
}

.carregando {
  width: 32px; height: 32px;
  border: 3px solid var(--borda);
  border-top-color: var(--rosa);
  border-radius: 50%;
  margin: 0 auto;
  animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.icone-ok, .icone-alerta {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto;
}
.icone-ok { background: var(--pistache); }
.icone-alerta { background: var(--caramelo); }
.icone-ok svg, .icone-alerta svg {
  width: 30px; height: 30px;
  fill: none; stroke: #fff;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.icone-alerta svg { stroke: var(--tinta); color: var(--tinta); }

/* ============================================================
   FESTAS E EVENTOS
   ============================================================ */

.secao-festa {
  background: var(--creme-2);
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  padding: 2.5rem 0;
  text-align: center;
}
.festa-titulo {
  font-family: var(--fonte-display);
  font-size: var(--t-2xl);
  color: var(--rosa-escuro);
  margin: .35rem 0 .75rem;
}
.festa-texto {
  max-width: 560px;
  margin: 0 auto;
  color: var(--tinta-media);
  line-height: 1.6;
}
.festa-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: .4rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}
.festa-foto {
  aspect-ratio: 1 / 1;
  border-radius: var(--raio-p);
  background: var(--fundo-2) center/cover no-repeat;
  border: 1px solid var(--borda);
  cursor: pointer;
  transition: transform .14s ease;
}
.festa-foto:hover { transform: scale(1.06); }

/* ============================================================
   RODAPÉ
   ============================================================ */

.rodape {
  background: var(--creme);
  border-top: 1px solid var(--borda);
  color: var(--tinta-media);
  padding: 2.5rem 0;
  margin-top: 2rem;
  font-size: var(--t-sm);
}
.rodape h3 { color: var(--tinta); margin-bottom: .5rem; font-size: var(--t-md); }
.rodape-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.75rem; }
.rodape-horario-lista { list-style: none; padding: 0; margin: 0; }
.rodape-horario-lista li { line-height: 1.6; }
.rodape-credito {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--borda);
  text-align: center;
  font-size: var(--t-xs);
  color: var(--tinta-fraca);
}
.rodape-credito a { color: var(--tinta-media); font-weight: 600; text-decoration: none; }
.rodape-credito a:hover { color: var(--rosa); }
.news-form { display: flex; gap: .5rem; margin-top: .6rem; }
.news-form input {
  flex: 1;
  padding: .6rem .75rem;
  border-radius: var(--raio-p);
  border: 1px solid var(--borda-forte);
  background: var(--fundo);
  min-width: 0;
}
.news-form input:focus { border-color: var(--rosa); outline: none; }

.link-admin {
  display: inline-block;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-p);
  padding: .4rem .75rem;
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--tinta-media);
}
.link-admin:hover { border-color: var(--rosa); color: var(--rosa); }

/* Botão do painel da loja — de propósito diferente do resto do rodapé */
.link-painel {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--tinta);
  border: 1px solid var(--tinta);
  border-radius: var(--raio-p);
  padding: .45rem .8rem;
  font-size: var(--t-xs);
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: background .15s, border-color .15s;
}
.link-painel svg { width: 15px; height: 15px; flex: none; }
.link-painel:hover { background: var(--rosa-escuro); border-color: var(--rosa-escuro); }

/* Ícones de WhatsApp e Instagram no rodapé */
.rodape-social { display: flex; gap: .55rem; margin-top: .5rem; }
.rodape-social-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--borda-forte);
  color: var(--tinta-media);
  background: var(--fundo);
  transition: border-color .15s, color .15s, background .15s;
}
.rodape-social-btn svg { width: 19px; height: 19px; }
.rodape-social-btn:hover { border-color: var(--rosa); color: var(--rosa); background: var(--rosa-claro); }

/* ============================================================
   PÁGINA DA CONTA
   ============================================================ */

.conta-grade { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 780px) { .conta-grade { grid-template-columns: 1fr; gap: 1.25rem; } }

.conta-menu { position: sticky; top: 84px; display: flex; flex-direction: column; gap: .2rem; }
@media (max-width: 780px) { .conta-menu { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .3rem; } }
.conta-menu button {
  background: none;
  border: 1px solid transparent;
  text-align: left;
  padding: .65rem .8rem;
  border-radius: var(--raio-p);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--tinta-media);
  white-space: nowrap;
}
.conta-menu button:hover { background: var(--fundo-2); color: var(--tinta); }
.conta-menu button.ativo { background: var(--rosa-claro); color: var(--rosa); }

.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--rosa);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex: none;
}

.endereco {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: .9rem;
  margin-bottom: .6rem;
}
.endereco.padrao { border-color: var(--rosa); background: color-mix(in srgb, var(--rosa) 3%, white); }

/* ============================================================
   ADMIN
   ============================================================ */

.admin-nav {
  display: flex;
  gap: .3rem;
  padding: .8rem 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav button {
  background: none;
  border: 1px solid transparent;
  padding: .5rem .85rem;
  border-radius: var(--raio-p);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--tinta-media);
  white-space: nowrap;
}
.admin-nav button.ativo { background: var(--tinta); color: #fff; }
.admin-nav button:hover:not(.ativo) { background: var(--fundo-2); color: var(--tinta); }

.tabela { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tabela th, .tabela td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-fraca); font-weight: 700; }

.horarios-dias { display: flex; flex-direction: column; gap: .25rem; }
.horario-dia { padding: .75rem 0; border-bottom: 1px solid var(--borda); }
.horario-dia:last-child { border-bottom: none; }
.horario-dia-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; }
.horario-periodos { display: flex; flex-direction: column; gap: .4rem; }
.horario-periodo { display: flex; align-items: center; gap: .5rem; }
.horario-periodo input[type="time"] { width: 120px; padding: .35rem .4rem; }
.horario-periodo span { font-size: var(--t-xs); color: var(--tinta-fraca); }
.horario-periodo [data-del-periodo] { margin-left: auto; }
.tabela tr:hover td { background: var(--fundo-2); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.kpi { background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); padding: .9rem; }
.kpi b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; display: block; color: var(--tinta); }
.kpi small { color: var(--tinta-fraca); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }

.pedido-admin { border-left: 3px solid var(--rosa); }
.pedido-admin.novo { border-left-color: var(--caramelo); background: color-mix(in srgb, var(--caramelo) 4%, white); }
.acoes { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }

.alarme-barra {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--erro);
  color: #fff;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  animation: alarme-pisca 1.6s ease-in-out infinite;
}
@keyframes alarme-pisca { 50% { background: #8f1e18; } }
.alarme-barra strong { font-size: var(--t-md); }
.alarme-nomes { font-size: var(--t-sm); opacity: .85; margin-right: auto; }
.alarme-barra .btn { background: #fff; color: var(--erro); border-color: #fff; }
.alarme-barra .btn:hover { background: #ffe9e7; border-color: #ffe9e7; }
.alarme-barra .btn-fantasma { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.alarme-barra .btn-fantasma:hover { background: rgba(255,255,255,.12); color: #fff; }
.alarme-pulso { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: pulso 1s ease-in-out infinite; }
@keyframes pulso { 50% { transform: scale(1.5); opacity: .4; } }
body.com-alarme { padding-top: 54px; }
body.com-alarme .topo { top: 54px; }
@media (prefers-reduced-motion: reduce) { .alarme-barra, .alarme-pulso { animation: none; } }

.foto-upload { display: flex; gap: .85rem; align-items: flex-start; }
.foto-previa {
  width: 88px; height: 88px;
  border-radius: var(--raio-p);
  border: 1px dashed var(--borda-forte);
  background: var(--fundo-2) center/cover no-repeat;
  display: grid; place-items: center;
  flex: none;
  overflow: hidden;
}
.foto-previa span { font-size: var(--t-xs); color: var(--tinta-fraca); }

.banner-previa {
  width: 100%;
  height: 130px;
  border-radius: var(--raio);
  border: 1px dashed var(--borda-forte);
  background: var(--fundo-2) center/cover no-repeat;
  display: grid; place-items: center;
  overflow: hidden;
}
.banner-previa span { font-size: var(--t-xs); color: var(--tinta-fraca); }

.galeria-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .6rem;
}
.galeria-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--raio-p);
  border: 1px solid var(--borda);
  background: var(--fundo-2) center/cover no-repeat;
  overflow: hidden;
}
.galeria-item [data-fe-del] {
  position: absolute;
  top: .25rem; right: .25rem;
  width: 26px; height: 26px;
  padding: 0;
  line-height: 1;
  border-radius: 999px;
}

.estoque-num { font-weight: 800; min-width: 2ch; display: inline-block; text-align: center; }
.estoque-baixo { color: var(--erro); }
.estoque-zero { color: var(--tinta-fraca); text-decoration: line-through; }
.estoque-ctrl { display: flex; align-items: center; gap: .3rem; }
.estoque-ctrl input { width: 58px; padding: .28rem .35rem; border: 1px solid var(--borda-forte); border-radius: 6px; text-align: center; }

@media (max-width: 780px) { .caixa-grade { grid-template-columns: 1fr !important; } }

/* ===== Serve quantas pessoas ===== */
.selo-serve {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--pistache);
  border: 1px solid color-mix(in srgb, var(--pistache) 35%, white);
  background: color-mix(in srgb, var(--pistache) 6%, white);
  border-radius: 5px;
  padding: .1rem .4rem;
  white-space: nowrap;
}

/* ===== Marca d'água: prévia ===== */
@media (max-width: 560px) {
  .md-grade { grid-template-columns: 1fr !important; }
  .md-grade canvas { width: 100% !important; height: auto !important; aspect-ratio: 1; }
}

/* ===== Topo no mobile: os botões (avisos, som, sair) quebram linha em vez de estourar por cima da logo ===== */
@media (max-width: 640px) {
  .topo-inner { flex-wrap: wrap; row-gap: .5rem; min-height: 0; padding: .6rem 0; }
  .marca { margin-right: 0; flex: 1 1 100%; order: -1; }
}

input[type="range"] { accent-color: var(--rosa); width: 100%; }