:root {
  --fundo: #FBF8F3;
  --creme: #F5EEE6;
  --branco: #FFFFFF;
  --bordo: #781F2A;
  --bordo-escuro: #5E1720;
  --bege: #E9DCD0;
  --texto: #625650;
  --texto-forte: #3F3531;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }

/* ---------- Topo ---------- */
.topo {
  text-align: center;
  padding: 56px 20px 64px;
  max-width: 760px;
  margin: 0 auto;
}
.marca { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; gap: 2px; }
.marca-logo { width: 190px; height: auto; }
@media (max-width: 640px) { .marca-logo { width: 150px; } }
.marca-nome {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: .32em;
  margin-right: -.32em; /* compensa o espaçamento da última letra */
  color: var(--bordo);
  line-height: 1;
}
.marca-sub {
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--texto);
  margin-right: -.34em;
}
.titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.12;
  color: var(--texto-forte);
  margin: 44px 0 16px;
}
.chamada { max-width: 520px; margin: 0 auto 30px; font-size: 16px; }

.botao-contorno {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--bordo);
  border-radius: 999px;
  color: var(--bordo);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.botao-contorno:hover { background: var(--bordo); color: var(--branco); }

/* ---------- Catálogo ---------- */
.catalogo { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.catalogo h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4.4vw, 34px);
  text-align: center;
  color: var(--texto-forte);
  margin: 0 0 24px;
  padding-top: 40px;
  border-top: 1px solid var(--bege);
}
.controles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 8px;
}
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtros button {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--texto);
  min-height: 38px;
}
.filtros button:hover { border-color: var(--bege); }
.filtros button[aria-pressed="true"] { border-color: var(--bordo); color: var(--bordo); }
.ordenar { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ordenar select {
  border: 1px solid var(--bege);
  background: var(--branco);
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  min-height: 38px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto) 50%), linear-gradient(135deg, var(--texto) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.contagem { font-size: 13px; margin: 0 0 18px; opacity: .85; }

.grade {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 28px;
}
.card { display: flex; flex-direction: column; }
.card-foto {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--creme);
  border-radius: var(--raio);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}
.card-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card-foto:hover img { transform: scale(1.03); }
.card-fotos-qtd {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(255,255,255,.9);
  color: var(--texto-forte);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
}
.card-corpo { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  color: var(--texto-forte);
  margin: 0 0 6px;
}
.card-desc { font-size: 13.5px; margin: 0 0 6px; }
.preco {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--bordo);
  margin: auto 0 14px;
  padding-top: 4px;
  letter-spacing: .01em;
}
.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 18px;
  background: var(--bordo);
  color: var(--branco);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  transition: background .2s;
}
.botao:hover { background: var(--bordo-escuro); }

/* ---------- Aviso ---------- */
.aviso {
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 0 20px;
}
.aviso p {
  margin: 0;
  background: var(--bege);
  color: var(--texto-forte);
  padding: 22px 28px;
  border-radius: var(--raio);
  text-align: center;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  font-style: italic;
}

/* ---------- Rodapé ---------- */
.rodape { text-align: center; padding: 64px 20px 110px; }
.rodape-nome { font-size: 12px; letter-spacing: .3em; margin: 0 0 10px; color: var(--bordo); font-weight: 500; }
.rodape-frase { font-family: var(--serif); font-style: italic; font-size: 17px; margin: 0 0 20px; color: var(--texto-forte); }
.rodape-links { display: flex; justify-content: center; gap: 28px; font-size: 14px; }
.rodape-links a { text-decoration: none; border-bottom: 1px solid var(--bege); padding-bottom: 2px; }
.rodape-links a:hover { border-color: var(--bordo); color: var(--bordo); }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bordo);
  color: var(--branco);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(94, 23, 32, .22);
  z-index: 20;
}
.whats-flutuante svg { width: 27px; height: 27px; }

/* ---------- Lightbox ---------- */
body.travado { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-fundo { position: absolute; inset: 0; background: rgba(40, 30, 28, .62); }
.lb-janela {
  position: relative;
  background: var(--fundo);
  width: min(1060px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.lb-fechar {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  color: var(--texto-forte);
}
.lb-foto {
  position: relative;
  background: #F1EBE4;
  height: calc(100vh - 48px);
  max-height: 860px;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-x pan-y pinch-zoom;
}
.lb-foto img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-foto.ampliada { overflow: auto; cursor: zoom-out; }
.lb-foto.ampliada img { width: 220%; height: auto; max-width: none; object-fit: initial; }
.lb-foto.ampliada .lb-seta, .lb-foto.ampliada .lb-pontos, .lb-foto.ampliada .lb-dica { display: none; }
.lb-seta {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); font-size: 26px; line-height: 1; cursor: pointer;
  color: var(--texto-forte);
}
.lb-ant { left: 12px; } .lb-prox { right: 12px; }
.lb-pontos { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 7px; }
.lb-pontos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lb-pontos span.ativo { background: var(--bordo); }
.lb-dica { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: 12px; color: var(--texto); }
.lb-info { padding: 48px 36px 28px; overflow-y: auto; display: flex; flex-direction: column; }
.lb-info h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 25px; line-height: 1.28;
  color: var(--texto-forte);
  margin: 0 0 10px;
}
.lb-desc { margin: 0 0 6px; }
.lb-desc:empty { display: none; }
.lb-preco { margin: 6px 0 20px; font-size: 24px; }
.lb-aviso {
  font-size: 12.5px; line-height: 1.55;
  margin: 18px 0 0; padding: 12px 14px;
  background: var(--creme); border-left: 2px solid var(--bege);
  border-radius: 0 var(--raio) var(--raio) 0;
}
.lb-navega { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.lb-navega button { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 13.5px; color: var(--texto); }
.lb-navega button:hover { color: var(--bordo); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .grade { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topo { padding: 40px 16px 44px; }
  .marca-nome { font-size: 30px; }
  .titulo { margin-top: 34px; }
  .chamada { font-size: 15px; }
  .catalogo { padding: 0 14px; }
  .catalogo h2 { padding-top: 32px; margin-bottom: 18px; }
  .controles { justify-content: center; }
  .filtros {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    justify-content: flex-start; padding-bottom: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: 0 0 auto; }
  .ordenar { width: 100%; justify-content: flex-end; }
  .contagem { text-align: center; }
  .grade { gap: 30px 12px; }
  .card-corpo { padding-top: 10px; }
  .card h3 { font-size: 14px; line-height: 1.35; }
  .card-desc { font-size: 12.5px; }
  .preco { font-size: 16.5px; margin-bottom: 10px; }
  .botao { min-height: 44px; font-size: 13px; padding: 8px 10px; }
  .aviso { margin-top: 48px; padding: 0 14px; }
  .aviso p { font-size: 15px; padding: 18px 18px; }

  .lightbox { place-items: stretch; }
  .lb-janela {
    width: 100vw; max-height: none; height: 100%;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }
  .lb-foto { height: 68vh; max-height: none; }
  .lb-info { padding: 22px 18px 28px; overflow: visible; }
  .lb-info h3 { font-size: 21px; }
  .lb-preco { font-size: 22px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
