:root {
  --bg: #f7f2ea;
  --surface: #fffdf8;
  --ink: #2b2118;
  --muted: #8a7b6b;
  --terracota: #a94a26;
  --terracota-dark: #863a1c;
  --ouro: #c8943a;
  --verde: #2f4f35;
  --preto: #1c1610;
  --line: rgba(43, 33, 24, 0.12);
  --zap: #25d366;
  --borda: 14px;
  --sombra: 0 6px 24px rgba(28, 22, 16, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(247, 242, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__marca {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.topbar__zap {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--zap);
  color: #fff;
  box-shadow: var(--sombra);
  transition: transform 0.15s ease;
}

.topbar__zap:active { transform: scale(0.94); }

/* ---------- herói ---------- */
.hero {
  text-align: center;
  padding: 40px 20px 30px;
}

.hero__sobre {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 10px;
}

.hero__titulo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.1;
}

.hero__subtitulo {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.hero__faixa {
  margin: 24px auto 0;
  width: min(220px, 60vw);
  height: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,
      var(--terracota) 0 22px,
      var(--ouro) 22px 44px,
      var(--verde) 44px 66px,
      var(--preto) 66px 88px);
}

/* ---------- filtros ---------- */
.filtros {
  position: sticky;
  top: 63px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 8px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(var(--bg) 92%, rgba(247, 242, 234, 0));
}

.filtros::-webkit-scrollbar { display: none; }

.filtros__chips {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s ease;
}

.filtros__chips.ativo {
  background: var(--preto);
  border-color: var(--preto);
  color: var(--bg);
}

/* ---------- grade ---------- */
.grade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 8px 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.aviso {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 16px;
}

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--borda);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: surgir 0.35s ease both;
}

.card:active { transform: scale(0.98); }

.card__foto {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f0e6d6, #e6d5bb);
  overflow: hidden;
}

.card__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__sem-foto {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 44px;
  color: var(--muted);
}

.card__sem-foto.mostra { display: grid; }

.card__corpo {
  padding: 10px 12px 12px;
}

.card__nome {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__categoria {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--terracota);
  text-transform: uppercase;
}

@keyframes surgir {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- rodapé ---------- */
.rodape {
  text-align: center;
  padding: 40px 20px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.rodape__marca {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.rodape__linha { font-size: 13px; margin-top: 4px; }

.rodape__zap {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--terracota-dark);
}

.rodape__credito { font-size: 11px; margin-top: 26px; }

/* ---------- botão flutuante WhatsApp ---------- */
.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--zap);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}

.fab:active { transform: scale(0.92); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 15, 10, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox[hidden] { display: none; }

.lightbox__painel {
  position: relative;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  animation: surgir 0.25s ease both;
}

.lightbox__fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(28, 22, 16, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox__foto {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f0e6d6, #e6d5bb);
}

.lightbox__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__sem-foto {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 72px;
  color: var(--muted);
}

.lightbox__sem-foto.mostra { display: grid; }

.lightbox__info { padding: 18px 20px 22px; }

.lightbox__categoria {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
}

.lightbox__nome {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-top: 4px;
}

.lightbox__detalhes {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.lightbox__tamanhos {
  margin-top: 14px;
  font-size: 13px;
}

.lightbox__zap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: var(--zap);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

/* ---------- telas maiores ---------- */
@media (min-width: 640px) {
  .grade { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 980px) {
  .grade { grid-template-columns: repeat(4, 1fr); }
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra);
  }
}