.product-section {
  padding: 60px 80px;
  background-color: #fff8f0;
}

.collection-product-section{
  min-height: 100vh !important;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  color: #1b2a41;
  margin-bottom: 50px;
  font-family: "EditorsNoteRegular", sans-serif;
  font-weight: 400;
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
  margin-bottom: 40px;
}

.product-card {
  text-align: left;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

/* Image Container */
.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #fff;
}

.product-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Zoom effect on hover */
.product-card:hover img {
  transform: scale(1.05);
}

/* Primary Image - Always visible */
.primary-image {
  position: relative;
  z-index: 1;
}

/* Secondary Image - Hidden by default, shows on hover */
.secondary-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .secondary-image {
  opacity: 1;
}

/* Discount Badge - Positioned on Image */
.discount-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #09233a;
  color: white;
  font-size: 0.7rem;
  padding: 6px 8px;
  border-radius: 50px;
  z-index: 3;
  font-weight: 500;
}

/* Placeholder image styling */
.placeholder-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.placeholder-image svg {
  width: 64px;
  height: 64px;
  color: #d1d5db;
  opacity: 0.5;
}

.product-card:hover .placeholder-image {
  transform: scale(1.08);
}

.product-card:hover .product-title {
  text-decoration: underline;
}

.product-title {
  font-size: 1rem;
  font-weight: 500;
  color: #1b2a41;
  margin: 10px 0 2px;
  margin-bottom: 5px;
}

.product-price {
  font-size: 0.95rem;
  color: #0b2c61;
  font-weight: 500;
  margin: 0;
}

.product-grid a {
  text-decoration: none;
}

/* Sale pricing container */
.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

/* Sale price - matches regular price styling */
.sale-price {
  font-size: 0.95rem;
  color: #0b2c61;
  font-weight: 500;
  margin: 0;
}

.original-price {
  color: #9e9e9e;
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0;
}

/* 📱 Mobile View: Two Columns */
@media (max-width: 768px) {
  .product-section {
    padding: 40px 20px;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: 1.6rem;
    text-align: left;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .placeholder-image svg {
    width: 48px;
    height: 48px;
  }

  /* Disable hover effects on mobile */
  .product-card:hover .secondary-image {
    opacity: 0;
  }

  .product-card:hover img {
    transform: none;
  }

  .product-card:hover .placeholder-image {
    transform: none;
  }

  /* Adjust badge size for mobile */
  .discount-badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    bottom: 8px;
    left: 8px;
  }
}

/* 🖥️ Tablet Layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .placeholder-image svg {
    width: 56px;
    height: 56px;
  }
}