/* Praça 2 — folha de estilo única, sem dependências externas */

:root {
  --vermelho: #e11b22;
  --vermelho-escuro: #b3141a;
  --vermelho-claro: #fdecec;
  --tinta: #1a1a1a;
  --tinta-suave: #5c5c5c;
  --linha: #e6e3e0;
  --fundo: #ffffff;
  --fundo-suave: #faf8f7;
  --verde: #1d9c5a;
  --raio: 14px;
  --max: 620px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Cabeçalho ---------- */

.topo {
  background: var(--vermelho);
  color: #fff;
  padding: 28px 0 26px;
  text-align: center;
}

.topo img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: block;
  margin: 0 auto 14px;
  background: var(--vermelho);
}

.topo h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.topo p {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
}

/* ---------- Situação (aberto/fechado) ---------- */

.status {
  margin: -20px auto 0;
  max-width: calc(var(--max) - 40px);
  position: relative;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  padding: 18px 20px;
  text-align: center;
}

.status .bolinha {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--tinta-suave);
}

.status.aberto .bolinha { background: var(--verde); }
.status.fechado .bolinha { background: var(--vermelho); }

.status strong {
  font-size: 19px;
  vertical-align: middle;
}

.status.aberto strong { color: var(--verde); }
.status.fechado strong { color: var(--vermelho); }

.status span {
  display: block;
  font-size: 15px;
  color: var(--tinta-suave);
  margin-top: 3px;
}

/* ---------- Seções ---------- */

section { padding: 34px 0 6px; }

h2 {
  font-size: 21px;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

h2 .ico {
  color: var(--vermelho);
  margin-right: 7px;
}

p { margin: 0 0 14px; }

a { color: var(--vermelho); }

/* ---------- Tabela de horários ---------- */

.horarios {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.horarios th,
.horarios td {
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid var(--linha);
}

.horarios th { font-weight: 600; }
.horarios td { text-align: right; color: var(--tinta-suave); }
.horarios tr.hoje th,
.horarios tr.hoje td { color: var(--vermelho); font-weight: 700; }
.horarios tr.fechado td { color: #9a9a9a; }

/* ---------- Blocos de informação ---------- */

.info {
  background: var(--fundo-suave);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 16px 18px;
  margin: 0 0 14px;
}

.info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.info p:last-child { margin-bottom: 0; }

.aviso {
  background: var(--vermelho-claro);
  border: 1px solid #f6cfd0;
  border-radius: var(--raio);
  padding: 14px 16px;
  font-size: 15.5px;
}

/* ---------- Botões ---------- */

.botao {
  display: block;
  width: 100%;
  padding: 16px 18px;
  margin: 0 0 12px;
  background: var(--vermelho);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  border-radius: 50px;
  border: 2px solid var(--vermelho);
  transition: transform 0.12s ease, background 0.12s ease;
}

.botao:active { transform: scale(0.985); }

.botao.vazado {
  background: #fff;
  color: var(--vermelho);
}

.botao.zap {
  background: #1faa53;
  border-color: #1faa53;
  color: #fff;
}

.botao small {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ---------- Grade de categorias ---------- */

.categorias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.categorias li {
  background: var(--fundo-suave);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15.5px;
  font-weight: 500;
}

/* ---------- Achadinhos ---------- */

.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.produto {
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  text-decoration: none;
  color: var(--tinta);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.produto .foto {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--fundo-suave);
}

.produto .txt {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produto .nome {
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 0 10px;
  flex: 1;
}

.produto .cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--vermelho);
}

.vazio {
  border: 2px dashed var(--linha);
  border-radius: var(--raio);
  padding: 26px 18px;
  text-align: center;
  color: var(--tinta-suave);
  font-size: 15px;
}

/* ---------- Rodapé ---------- */

.rodape {
  margin-top: 36px;
  background: var(--fundo-suave);
  border-top: 1px solid var(--linha);
  padding: 26px 0 30px;
  text-align: center;
  font-size: 14.5px;
  color: var(--tinta-suave);
}

.redes {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.redes a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--linha);
  border-radius: 50px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.aviso-afiliado {
  font-size: 13px;
  line-height: 1.5;
  color: #8a8a8a;
  margin-top: 14px;
}

/* ---------- Página /bio ---------- */

body.bio {
  background: var(--vermelho);
  min-height: 100vh;
}

.bio-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 22px 50px;
  text-align: center;
}

.bio-wrap img.marca {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.bio-wrap h1 {
  color: #fff;
  font-size: 25px;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.bio-wrap .sub {
  color: #fff;
  opacity: 0.92;
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.5;
}

.bio-wrap .botao {
  background: #fff;
  color: var(--vermelho);
  border-color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.bio-wrap .botao.destaque {
  background: #ffd400;
  border-color: #ffd400;
  color: #4a3800;
}

.bio-wrap .botao.zap {
  background: #1faa53;
  border-color: #1faa53;
  color: #fff;
}

.bio-rodape {
  color: #fff;
  opacity: 0.8;
  font-size: 13px;
  margin-top: 26px;
  line-height: 1.5;
}

.bio-rodape a { color: #fff; }

@media (min-width: 560px) {
  .topo h1 { font-size: 30px; }
  body { font-size: 17.5px; }
}

/* Títulos de categoria dentro da /bio */
.bio-wrap .grupo {
  color: #fff;
  font-size: 17px;
  text-align: left;
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: -0.2px;
}

.bio-wrap .produtos {
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
  margin-bottom: 4px;
}

/* Títulos de categoria na home */
main .grupo {
  font-size: 17px;
  margin: 22px 0 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--vermelho);
}
main .grupo:first-of-type { margin-top: 6px; }
