/* Products grid - mesmo layout do marketplace (rota /) */

.why_section {
  --btn-comprar: #C31343;
  --bg: #FFF;
  --bg-page: #F7F6F4;
  --bg-light: #F2F2F2;
  --border: #E5E5E5;
  --border-light: #F0EEEB;
  --text-dark: #1A1A2E;
  --text-mid: #4A4A5A;
  --text-light: #7A7A8A;
  --text-muted: #AAA;
  --radius-lg: 14px;
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);
  --white: #FFF;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PRODUCTS GRID */
.products-grid-ref {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  align-items: stretch;
}

.product-card-ref {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--tr);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-ref:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
  border-color: transparent;
}

.product-card-ref > a {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-card-ref > form {
  margin: 0;
  flex-shrink: 0;
  margin-top: auto;
}

.product-card-ref > .product-add-cart {
  margin-top: auto;
}

.product-img {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-placeholder {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  transition: all 0.5s;
}

.product-card-ref:hover .product-img-placeholder {
  transform: scale(1.15) rotate(-3deg);
  opacity: 0.4;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.product-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--btn-comprar);
}

.product-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin: 0;
  background: var(--bg-page);
  color: var(--text-mid);
  border: none;
  font-weight: 600;
  font-size: 0.84rem;
  transition: var(--tr);
  cursor: pointer;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.product-add-cart:hover {
  background: var(--btn-comprar);
  color: #fff;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .products-grid-ref {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .products-grid-ref {
    grid-template-columns: 1fr;
  }
}
