/* ── VITRINE ─────────────────────────────────────────────────────────────── */

.vitrine {
  background-color: var(--color-bg-alt);
  padding: 5rem 0;
}

.vitrine__title {
  color: var(--color-text);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

/* Faixa de garantia — destaque compacto acima da grade */
.vitrine__banner {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1rem;
  margin: 0 0 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* Grade de produtos */
.vitrine__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── CARD ────────────────────────────────────────────────────────────────── */

.product-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

/* ── IMAGEM ──────────────────────────────────────────────────────────────── */

.product-card__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  margin: 0;
  flex-shrink: 0;
}

/* Placeholder visual: ícone de anel centralizado */
.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  opacity: 0.3;
}

.product-card__placeholder svg {
  width: 72px;
  height: 72px;
}

/* Foto real: cobre o placeholder quando carregada */
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Esconde ícone de imagem quebrada enquanto foto real não existe */
.product-card__img--hidden {
  display: none;
}

/* ── BADGE ───────────────────────────────────────────────────────────────── */

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ── CORPO DO CARD ───────────────────────────────────────────────────────── */

.product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__material {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0.25rem 0 0;
  line-height: 1.2;
}

.product-card__installments {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── BOTÃO CTA ───────────────────────────────────────────────────────────── */

.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  padding-inline: 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-bg);
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.product-card__btn:hover,
.product-card__btn:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: var(--color-bg);
  outline: 2px solid var(--color-whatsapp);
  outline-offset: 2px;
}

/* ── TABLET ≤ 768px: 2 colunas ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .vitrine__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ── MOBILE ≤ 480px: 1 coluna ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .vitrine__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── TABLET/DESKTOP: espaçamentos maiores ───────────────────────────────── */
@media (min-width: 768px) {
  .vitrine {
    padding: 6.5rem 0;
  }

  .vitrine__title {
    margin-bottom: 3rem;
  }
}
