.featured-products {
  padding: 40px 20px;
  text-align: center;
}

.featured-swiper {
  position: relative;
  margin: 20px auto;
  max-width: 1280px;
}

.new-arrivals-swiper {
  position: relative;
  margin: 20px auto;
  max-width: 1280px;
}

.product-card {
  position: relative;
  overflow: hidden;
  width: 240px;
  height: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.card-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
}

.sale-icon,
.fav-icon {
  background: #007bff;
  color: #fff;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
}

.product-image-wrapper {
  width: 100%;
  height: 120px; /* or 120px if you want it tighter */
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9; /* Optional: adds a soft backdrop */
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.description {
  font-size: 14px;
  margin: 10px 0 5px;
}

.price {
  font-weight: bold;
  color: #333;
}

.view-btn {
  margin-top: 10px;
  background: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.view-more-container {
  margin-top: 20px;
}

.view-more-btn {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
}

.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 37px;
  height: 37px;
  background-color: #007bff; /* Bootstrap blue or your brand shade */
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.wishlist-btn:hover {
  background-color: #0056b3; /* Slightly darker blue on hover */
  transform: scale(1.05);
}

.sale-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 40px !important; /* Force fixed size */
  height: auto !important; /* Maintain aspect ratio */
  max-width: 60px !important; /* Prevent scaling */
  z-index: 10;
  pointer-events: none;
}

.clamp-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em; /* Approx. 3 lines */
}
