
.container {
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 2rem;
  animation: fadeDown 1s ease;
}

/* 🛒 Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
}

/* 🧱 Product Card */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

/* Hover Lift */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 🖼 Product Image */
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f0f0f0;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

/* 💗 Heart (Wishlist) Icon */
.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.heart::before {
  content: "♡";
  color: #666;
  font-size: 18px;
  transition: transform 0.4s, color 0.3s;
}

.heart:hover::before {
  content: "❤";
  color: #e63946;
  transform: scale(1.3);
}

/* 📦 Product Info */
.product-content {
  padding: 15px;
  text-align: left;
}

.product-title {
  font-size: 15px;
  color: #222;
  font-weight: 500;
  height: 40px;
  overflow: hidden;
  margin-bottom:8px;
}

.product-price {
  color: #000;
  font-weight: 600;
  font-size: 18px;
}

.product-offer {
  color: #388e3c;
  font-size: 14px;
  font-weight: 500;
  margin-left: 5px;
}

.rating {
  margin-top: 6px;
  background: #388e3c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
}

.bank-offer {
  color: #007b00;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

/* 🎬 Animation Sequence */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ✨ Keyframes */
@keyframes fadeInUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
