:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --text: #2b2420;
  --muted: #7a6e66;
  --line: #ece3d9;
  --brand: #e2572b;
  --brand-dark: #b8401b;
  --ok: #1f8a4c;
  --ml: #ffe600;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Cabeçalho */
header {
  background: var(--brand);
  color: #fff;
  padding: 18px 0 20px;
}
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo-ico { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.slogan { opacity: .9; font-size: .95rem; margin-top: 2px; }
.busca {
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
}

/* Categorias */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 6px;
  scrollbar-width: none;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .95rem;
  cursor: pointer;
  white-space: nowrap;
}
.chip.ativo { background: var(--text); color: #fff; border-color: var(--text); }

h2 { font-size: 1.15rem; margin: 18px 0 10px; }

/* Grade de produtos */
.grade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .grade { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grade { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.foto {
  aspect-ratio: 1 / 1;
  background: #f4ede5;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.foto img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.desconto {
  position: absolute; top: 8px; left: 8px;
  background: var(--ok); color: #fff;
  font-weight: 700; font-size: .8rem;
  padding: 3px 8px; border-radius: 999px;
}
.info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.titulo { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.antigo { color: var(--muted); text-decoration: line-through; font-size: .82rem; }
.preco { font-size: 1.25rem; font-weight: 800; }
.loja { color: var(--muted); font-size: .78rem; }
.btn {
  margin-top: auto;
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
}
.btn:hover { background: var(--brand-dark); }
.btn.pendente { background: #ddd; color: #777; pointer-events: none; font-weight: 500; font-size: .85rem; }

.vazio { color: var(--muted); padding: 30px 0; text-align: center; }

footer {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
footer p + p { margin-top: 6px; }

/* Página link na bio */
.bio { max-width: 480px; margin: 0 auto; padding: 32px 16px 40px; text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 24px;
  display: block; margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(226, 87, 43, .25);
}
.bio h1 { font-size: 1.4rem; }
.bio .slogan { color: var(--muted); margin-bottom: 20px; }
.links { display: flex; flex-direction: column; gap: 10px; }
.link {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-weight: 600;
  text-decoration: none;
}
.link.principal { background: var(--brand); color: #fff; border-color: var(--brand); }
.link.whats { background: #25d366; color: #fff; border-color: #25d366; }
.bio h2 { text-align: left; }
.bio .grade { grid-template-columns: repeat(2, 1fr); text-align: left; }
