:root {
  --carvao: #1d1611;
  --carvao-2: #2b211a;
  --brasa: #d9542a;
  --brasa-escura: #b8431f;
  --dourado: #f2b33d;
  --creme: #fbf6ee;
  --creme-2: #f3e9da;
  --texto: #2a211b;
  --texto-suave: #6b5d52;
  --borda: #e6d9c6;
  --verde: #1fa855;
  --verde-escuro: #178a45;
  --vermelho: #d4202c;
  --raio: 14px;
  --sombra: 0 6px 20px rgba(29, 22, 17, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.tem-pedido { padding-bottom: 76px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Oswald", sans-serif; line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; letter-spacing: .5px; }
h3 { font-size: 1.25rem; }
h4 { margin: 0; font-size: 1rem; }
.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.sub { color: var(--texto-suave); margin: 0 0 1.2rem; }
.pequeno { font-size: .85rem; }

/* Faixa de aviso */
.aviso {
  background: var(--dourado);
  color: var(--carvao);
  text-align: center;
  font-weight: 600;
  padding: 8px 16px;
}

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: var(--carvao);
  color: #fff;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Oswald", sans-serif; font-size: 1.35rem; line-height: 1; }
.marca small { display: block; font-family: "Inter", sans-serif; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dourado); margin-top: 3px; }
.marca-icone { font-size: 1.6rem; }
.marca-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rodape-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.aberto { color: #2fd16f; background: rgba(47, 209, 111, .14); }
.status-pill.fechado { color: #a89a8e; }
.categoria .status-pill.aberto { color: var(--verde-escuro); background: #e3f6ea; }
.categoria .status-pill.fechado { color: var(--texto-suave); background: var(--creme-2); white-space: normal; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font: 700 1rem "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn:disabled:hover { background: #b9b0a8; color: #fff; cursor: not-allowed; transform: none; }
.btn-whats { background: var(--verde); color: #fff; }
.btn-whats:hover { background: var(--verde-escuro); }
.btn-sec { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-sec-escuro { background: transparent; color: var(--texto); border: 2px solid var(--borda); }
.btn-brasa { background: var(--brasa); color: #fff; }
.btn-brasa:hover { background: var(--brasa-escura); }
.btn-claro { background: #fff; color: var(--brasa-escura); }
.btn-bloco { width: 100%; }
.ico { width: 22px; height: 22px; fill: currentColor; }

/* Hero — a foto de fundo fica na última linha */
.hero {
  color: #fff;
  padding: 72px 16px 80px;
  background:
    linear-gradient(180deg, rgba(29,22,17,.55), rgba(29,22,17,.9)),
    radial-gradient(ellipse at 85% 110%, rgba(217,84,42,.55), transparent 60%),
    url("img/costela-forno.jpg") center 40% / cover,
    var(--carvao);
}

/* Galeria */
.secao-escura { background: var(--carvao); color: #fff; }
.secao-escura .sub { color: #cbbfb3; }
.galeria {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin;
}
.galeria img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--raio); scroll-snap-align: start;
}
@media (min-width: 900px) {
  .galeria { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
.hero-conteudo { width: min(1100px, 100%); margin-inline: auto; display: grid; gap: 24px; }
.hero-logo {
  width: 170px; height: 170px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 10px 40px rgba(0,0,0,.55), 0 0 0 4px rgba(242,179,61,.35);
}
.hero-tag { color: var(--dourado); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: .8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); text-transform: uppercase; max-width: 14ch; }
.hero h1 span { color: var(--dourado); }
.hero-texto { font-size: 1.1rem; max-width: 46ch; color: #eadfd3; margin: 0 0 28px; }
.hero-botoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* Seções */
.secao { padding: 56px 0; }
.secao-clara { background: #fff; }
.secao-brasa { background: var(--brasa); color: #fff; }

/* Hoje tem */
.hoje-grid { display: grid; gap: 12px; }
.hoje-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center;
  padding: 16px 18px; border-radius: var(--raio);
  background: #fff; border: 2px solid var(--borda);
  text-decoration: none;
  transition: transform .15s;
}
.hoje-card:hover { transform: translateY(-2px); }
.hoje-emoji { grid-row: span 2; font-size: 2.2rem; }
.hoje-nome { font-family: "Oswald", sans-serif; font-size: 1.2rem; }
.hoje-status { font-size: .9rem; color: var(--texto-suave); font-weight: 500; }
.hoje-card.aberto { border-color: var(--verde); background: #f0faf4; }
.hoje-card.aberto .hoje-status { color: var(--verde-escuro); font-weight: 700; }
.hoje-card.mais-tarde { border-color: var(--dourado); }
.hoje-card.fechado { opacity: .7; }

/* Cardápio */
.chips {
  position: sticky; top: 58px; z-index: 10;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 0; margin-bottom: 8px;
  background: #fff;
  scrollbar-width: none;
}
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px;
  background: var(--creme-2); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.categoria { padding-top: 28px; }
.categoria-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.categoria-topo h3 { margin: 0; font-size: 1.5rem; }
.produtos { display: grid; gap: 12px; }
.grupo {
  margin: 20px 0 10px; font-family: "Oswald", sans-serif; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--brasa-escura);
}
.prod {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px;
  padding: 12px; border-radius: var(--raio);
  background: var(--creme); border: 1px solid var(--borda);
}
.prod-midia {
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; font-size: 2.3rem;
  background: var(--creme-2);
}
.prod-midia img { width: 100%; height: 100%; object-fit: cover; }
.prod-info { display: flex; flex-direction: column; min-width: 0; }
.prod-info p { margin: 2px 0 0; font-size: .85rem; color: var(--texto-suave); }
.prod-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.preco { font-weight: 700; color: var(--brasa-escura); }
.preco small { font-weight: 500; color: var(--texto-suave); }
.btn-add {
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--brasa);
  background: #fff; color: var(--brasa-escura); font: 700 .88rem "Inter", sans-serif; cursor: pointer;
}
.btn-add:hover { background: var(--brasa); color: #fff; }
.stepper {
  display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--brasa); color: #fff; font-weight: 700; font-size: .9rem;
}
.stepper button {
  width: 36px; height: 36px; border: 0; background: none; color: #fff;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.stepper span { min-width: 44px; text-align: center; }
.btn-mercearia { margin-top: 16px; width: 100%; }

/* Esgotado */
.prod-midia { position: relative; }
.prod.esgotado { background: #fff5f5; border-color: #f1b5b5; }
.prod.esgotado .prod-midia img,
.prod.esgotado .prod-midia > span:first-child { filter: grayscale(1); opacity: .45; }
.prod.esgotado h4, .prod.esgotado .preco { color: #9a8f88; }
.prod.esgotado .preco { text-decoration: line-through; }
.faixa-esgotado {
  position: absolute; left: -6px; right: -6px; top: 50%; transform: translateY(-50%) rotate(-12deg);
  background: var(--vermelho); color: #fff; text-align: center;
  font: 700 .62rem "Inter", sans-serif; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 0; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.selo-esgotado {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--vermelho); color: #fff;
  font: 800 .85rem "Inter", sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.aviso-esgotado {
  background: #fdecec; border-left: 4px solid var(--vermelho); color: var(--vermelho);
  padding: 10px 12px; border-radius: 6px; font-size: .92rem; margin: 0 0 12px;
}
.toast {
  position: fixed; left: 12px; right: 12px; top: 12px; z-index: 50;
  max-width: 520px; margin-inline: auto;
  background: var(--vermelho); color: #fff; font-weight: 700;
  padding: 14px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.toast[hidden] { display: none; }

/* Encomenda */
.encomenda { display: grid; gap: 20px; align-items: center; }
.encomenda p { margin: 0; max-width: 55ch; }

/* Entrega */
.info-grid { display: grid; gap: 12px; margin-bottom: 28px; }
.info-card { background: #fff; border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); }
.info-card h3 { margin: 6px 0 2px; }
.info-card p { margin: 0; color: var(--texto-suave); }
.info-icone { font-size: 1.8rem; }
.bairros { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.bairros li { background: #fff; border: 1px solid var(--borda); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }

/* Local */
.local { display: grid; gap: 28px; }
.endereco { font-size: 1.1rem; font-weight: 600; }
.horarios { list-style: none; padding: 0; margin: 0 0 24px; }
.horarios li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.horarios li span:last-child { color: var(--texto-suave); }
.mapa { border-radius: var(--raio); overflow: hidden; min-height: 300px; background: var(--creme-2); }
.mapa iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

/* Avaliar */
.avaliar { text-align: center; }
.avaliar .sub { margin-inline: auto; }
.estrelas { color: var(--dourado); font-size: 2rem; letter-spacing: 4px; margin: 0; }
.nota-google { margin: 0 0 8px; color: var(--texto-suave); }
.nota-google strong { font-size: 1.4rem; color: var(--texto); }

/* Rodapé */
.rodape { background: var(--carvao); color: #cbbfb3; padding: 36px 0; text-align: center; }
.rodape p { margin: 4px 0; }
.rodape-marca { font-family: "Oswald", sans-serif; color: #fff; font-size: 1.3rem; }
.rodape a { color: var(--dourado); }

/* Barra do pedido */
.barra-carrinho {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; border: 0; border-radius: 999px;
  background: var(--brasa); color: #fff; font: 600 1rem "Inter", sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer;
  max-width: 560px; margin-inline: auto;
}
.barra-carrinho[hidden] { display: none; }

/* WhatsApp flutuante */
.whats-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 25;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde); box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: bottom .2s;
}
.whats-flutuante svg { width: 32px; height: 32px; fill: #fff; }
body.tem-pedido .whats-flutuante { bottom: 84px; }

/* Carrinho */
.carrinho {
  width: 100%; max-width: 520px; max-height: 100dvh; height: 100dvh;
  margin: 0 0 0 auto; padding: 0; border: 0;
  background: var(--creme); color: var(--texto);
}
.carrinho::backdrop { background: rgba(29,22,17,.6); }
.carrinho form { display: flex; flex-direction: column; height: 100%; }
.carrinho-topo { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--carvao); color: #fff; }
.carrinho-topo h2 { margin: 0; font-size: 1.4rem; }
.fechar { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.carrinho-corpo { flex: 1; overflow-y: auto; padding: 16px; }
.carrinho-rodape { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--borda); }
.lista-pedido { list-style: none; padding: 0; margin: 0 0 12px; }
.lista-pedido li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.lista-pedido small { display: block; color: var(--texto-suave); }
.linha-total { grid-column: 1 / -1; text-align: right; font-weight: 600; font-size: .9rem; }
.vazio { color: var(--texto-suave); }
.aviso-item { background: #fff6e0; border-left: 4px solid var(--dourado); padding: 10px 12px; border-radius: 6px; font-size: .9rem; margin: 0 0 12px; }

.campo { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.campo > span, .campo legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--borda);
  background: #fff; font: 1rem "Inter", sans-serif; color: var(--texto);
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--brasa); border-color: transparent; }
.campo[hidden], #grupo-endereco[hidden] { display: none; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.opcoes legend { width: 100%; }
.opcoes label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.opcoes input { width: 18px; height: 18px; accent-color: var(--brasa); }

.totais { background: #fff; border-radius: 10px; padding: 12px 14px; }
.totais div { display: flex; justify-content: space-between; padding: 3px 0; }
.totais .total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 8px; }
.totais p { margin: 6px 0 0; color: var(--texto-suave); }
.totais .alerta { color: var(--brasa-escura); font-weight: 600; }
.erro { color: #c0262d; font-weight: 600; margin: 10px 0 0; min-height: 1em; }

/* Telas maiores */
@media (min-width: 640px) {
  .produtos { grid-template-columns: repeat(2, 1fr); }
  .hoje-grid, .info-grid { grid-template-columns: repeat(3, 1fr); }
  .hoje-card { grid-template-columns: 1fr; grid-template-rows: auto; text-align: left; }
  .hoje-emoji { grid-row: auto; }
  .btn-mercearia { width: auto; }
}
@media (min-width: 900px) {
  .produtos { grid-template-columns: repeat(3, 1fr); }
  .encomenda { grid-template-columns: 1fr auto; }
  .local { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .hero { padding: 90px 16px 100px; }
  .hero-conteudo { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .hero-logo { order: 2; width: 340px; height: 340px; }
}
