/* =========================
   FEATURED PRODUCTS SECTION
========================= */

.featured-products {
  background: var(--bg-body);
  margin-bottom: 30px;
}

/* Section spacing already handled by .section */
.featured-products .section-title {
  margin-top: 50px;
  text-align: center;
}

.featured-products .title-underline {
  margin: 0 auto 4rem;
}

/* =========================
   GRID
========================= */

.products-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft);
}

/* =========================
   IMAGE
========================= */

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

/* =========================
   IMAGE OVERLAY
========================= */

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.overlay-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* =========================
   PRODUCT INFO
========================= */

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: linear-gradient(
    to bottom,
    var(--bg-card),
    var(--bg-surface)
  );
}

.product-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

/* =========================
   RATING
========================= */

.product-rating {
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* =========================
   COLORS
========================= */

.product-color-swatches-small {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.product-color-swatches-small span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}

/* =========================
   PRICE & ACTION
========================= */

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.add-cart-btn-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.add-cart-btn-small:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .products-grid-page {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .products-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .products-grid-page {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.2rem;
  }
}
