/* ==========================================================================
   LATEST PRODUCTS SECTION - Homepage
   1 large featured + 3 regular cards
   ========================================================================== */

.latest-products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-icon {
  font-size: 22px;
}

.section-title {
  font-family: var(--font-heading, 'Arial Black', sans-serif);
  font-size: 22px;
  color: #2a1a8f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--color-pink, #ec1e7e);
  color: var(--color-pink, #ec1e7e);
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-all-btn:hover {
  background: var(--color-pink, #ec1e7e);
  color: #fff;
}

/* Grid: featured card takes left column spanning 2 rows worth of height,
   3 regular cards stack/flow on the right */
.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
}

.product-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured (first) card - spans full height of the row, image fills, text overlays bottom */
.featured-card {
  grid-row: span 1;
  position: relative;
}

.featured-card .card-image-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 420px;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.featured-overlay .product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.featured-overlay .product-price {
  font-size: 18px;
  font-weight: 800;
  color: #ff6b6b;
}

/* Regular product cards */
.card-content {
  padding: 14px;
}

.card-content .product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content .product-price {
  font-size: 16px;
  font-weight: 800;
  color: #e0245e;
}

.no-products {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card {
    grid-column: span 2;
  }

  .featured-card .card-image-wrap {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-column: span 1;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .view-all-btn {
    order: 3;
    margin-top: 8px;
  }
}
