/* Modern Professional Product Card Design */

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, #90c52d, #90c52d);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(134, 38, 43, 0.12);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card a>div {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card .category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #90c52d, #7ab025);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(144, 197, 45, 0.2);
  align-self: flex-start;
  margin: 0 auto;
}

.product-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 15px 0 0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .views {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #ffffff;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  z-index: 5;
}

.image-container {
  position: relative;
  width: 100%;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(134, 38, 43, 0.15);
}

.wishlist-btn i {
  font-size: 16px;
  color: #86262b;
  transition: all 0.3s ease;
}

.wishlist-btn.active {
  background: linear-gradient(135deg, #86262b, #6d1f23);
}

.wishlist-btn.active i {
  color: #ffffff;
  animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1.1);
  }

  75% {
    transform: scale(1.2);
  }
}

@media (max-width: 768px) {
  .product-card img {
    height: 200px;
  }

  .product-card h4 {
    font-size: 0.9rem;
    min-height: 2.2rem;
  }

  .product-card .category {
    font-size: 0.6rem;
    padding: 0.25rem 0.7rem;
  }

  .wishlist-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }

  .wishlist-btn i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-card img {
    height: 180px;
  }

  .product-card a>div {
    padding: 0.85rem;
  }

  .product-card h4 {
    font-size: 0.85rem;
  }
}