/* ==========================================================================
   Featured Products Section
   ========================================================================== */

/* ── Section ── */
.featured-products {
  padding-block: var(--space-4xl);
  background-color: var(--color-bg-alt);
  /* Light grey background as in photo */
}

/* ── Section Header Refinement ── */
.section-header--centered {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header__subtitle {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--color-neutral);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.section-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

/* ── Product Grid ── */
.featured-products__grid {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

/* ── Product Card ── */
.product-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-dark);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* ── Card Image Area ── */
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  /* White bg for product photos often looks cleaner if they have shadows */
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Contain to show full product */
  padding: var(--space-md);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.1);
}

/* ── Badges & Actions ── */
.product-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  background: var(--color-primary);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 28, 36, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  color: #fff;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card__wishlist:hover {
  background: #fff;
  color: var(--color-dark);
}

/* ── Card Info ── */
.product-card__info {
  padding: var(--space-xl) var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-card__name a {
  color: #fff;
  text-decoration: none;
}

.product-card__desc {
  font-size: 13px;
  color: var(--color-neutral);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Price ── */
.product-card__price {
  margin-top: auto;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-card__price del {
  font-size: 13px;
  color: #4a5568;
  font-weight: var(--font-weight-regular);
}

/* ── Footer Button ── */
.featured-products__footer {
  display: flex;
  justify-content: center;
}

.featured-products__view-all {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  font-weight: var(--font-weight-bold);
  border-radius: 8px;
  transition: all var(--transition-base);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .featured-products__grid {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: var(--space-lg);
  }

  .product-card__info {
    padding: var(--space-lg) var(--space-md);
  }

  .product-card__name {
    font-size: 16px;
  }

  .product-card__desc {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .featured-products {
    padding-block: var(--space-3xl);
  }

  .featured-products__grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
  }

  .product-card__info {
    padding: var(--space-md);
  }

  .product-card__name {
    font-size: 15px;
  }

  .product-card__desc {
    margin-bottom: var(--space-md);
    font-size: 12px;
  }

  .product-card__price {
    font-size: 15px;
  }
}