.product-section {
  background: linear-gradient(135deg, #ffe6e6, #ffcccc);
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background-image: linear-gradient(
      45deg,
      rgb(255 235 235 / 50%) 25%,
      #facdcd00 25%
    ),
    linear-gradient(-45deg, rgb(247 242 242 / 50%) 25%, transparent 25%);
  background-size: 60px 60px, 60px 60px;
  background-position: 0 0, 30px 30px;
  background-blend-mode: overlay;
}

.section-title {
  color: #d72a2d;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
  text-align: center;
}

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

.product-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.12);
}

.product-img {
  display: block;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 10px;
}

.product-img img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-title {
  font-size: 1rem;
  margin: 10px 0;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d72a2d;
  margin-bottom: 15px;
}

.custom-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d72a2d;
  color: white;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.custom-cart-btn:hover {
  background: #d72a2d;
  transform: translateY(-2px);
}

.cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background-color: white;
  border-radius: 50%;
  margin-right: 8px;
}

.cart-icon i {
  font-size: 14px;
  color: #333;
}

.custom-cart-btn:hover .cart-icon i {
  color: #d72a2d;
}

.view-all-container {
  text-align: center;
  margin-top: 30px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  background: #d72a2d;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #d72a2d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-all-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.view-all-btn:hover i {
  transform: translateX(3px);
}

.best-seller-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-img img {
    height: 210px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .product-item {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-section {
    padding: 40px 0;
  }

  .product-img img {
    height: 200px;
  }

  .custom-cart-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
