.product-card {
  transition: transform 0.3s ease;
  background-color: #d4e7f7;
  border: 2px solid #3bafc0;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay button {
  width: 70%;
  max-width: 200px;
}
.product-card {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3682c8;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
}

.overlay-buttons {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.95);
  transition: bottom 0.3s ease;
  align-items: center;
}

.product-card:hover .overlay-buttons {
  bottom: 10px;
}

.btn-cart,
.btn-buy {
  padding: 8px 16px;
  border: none;
  background: #3bafc0;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-cart:hover,
.btn-buy:hover {
  background: #003b6f;
}

.card-info {
  padding: 16px;
  text-align: center;
}

.card-info h4 {
  font-size: 16px;
  color: #003b6f;
  margin-bottom: 6px;
}

.rating {
  color: #ffcc00;
  font-size: 14px;
}
