/* ===== Body & Container ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f8ff, #e6e6fa);
  color: #333;
}

h3 {
  color: #1a1a2e;
  text-shadow: 1px 1px 2px #aaa;
}

/* ===== Product Card Styles ===== */
.product-card {
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  background: #fff;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.product-card img {
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.1) rotate(2deg);
}

.card-body h6 {
  font-weight: 600;
  font-size: 1rem;
}

.card-body p {
  margin: 0;
}

/* Price Styling */
.text-decoration-line-through {
  color: #999;
}

strong {
  color: #ff4d6d;
  font-size: 1.1rem;
}

/* Availability badge */
.text-success {
  color: #28a745 !important;
}
.text-danger {
  color: #dc3545 !important;
  font-weight: bold;
}

/* ===== Button Styles ===== */
.btn-success {
  background: linear-gradient(90deg, #28a745, #1cbf4a);
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-success:hover {
  background: linear-gradient(90deg, #1cbf4a, #28a745);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: scale(1.05);
  background-color: #6c757d;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Modal Styling ===== */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f0f0ff);
  animation: fadeIn 0.5s ease forwards;
}

#modalImg {
  border-radius: 15px;
  max-height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#modalImg:hover {
  transform: scale(1.1);
}

/* ===== Cart Count ===== */

/* Cart count badge */
#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: wheat;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-5px);}
}

/* ===== Responsive Styling ===== */
@media (max-width: 768px) {
  .product-card img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .product-card img {
    height: 120px;
  }
}
