/* ── Products Section ──────────────────────────────────────── */

.products-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-white);
  position: relative;
}

/* Linha separadora fina com cor accent no topo */
.products-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ── Header da seção ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-stone-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-stone-medium);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
}

/* ── Grid ──────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ── Card ──────────────────────────────────────────────────── */
.product-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26, 35, 50, 0.07);
  border: 1px solid var(--color-stone-light);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(43, 108, 176, 0.18);
  border-color: var(--color-accent);
}

/* ── Imagem ────────────────────────────────────────────────── */
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--color-sand);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.07);
}

/* Overlay escuro suave no hover */
.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

.product-card:hover .product-image::after {
  background: rgba(26, 35, 50, 0.07);
}

/* Badge de categoria */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-stone-dark);
  color: var(--color-white);
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-badge {
  background: var(--color-accent);
  transform: translateY(-1px);
}

/* ── Info ──────────────────────────────────────────────────── */
.product-info {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Linha accent que cresce no hover, abaixo do título */
.product-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--color-stone-dark);
  letter-spacing: 0.3px;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent-light);
}

.product-description {
  font-family: var(--font-body);
  color: var(--color-stone-medium);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
}

/* ── Size badges ───────────────────────────────────────────── */
.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.size-badge {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--color-stone-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--color-stone-medium);
  border-radius: 30px;
  background: var(--color-sand);
  transition: all 0.25s ease;
  cursor: default;
}

.product-card:hover .size-badge {
  border-color: var(--color-accent-light);
  color: var(--color-accent);
  background: #ebf4ff;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: var(--spacing-lg) 0;
  }

  .product-info {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .product-title {
    font-size: 1.4rem;
  }
}
