.product-card {
  width: 100%;
  background: var(--y-color-primary);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1rem;
  margin: 0;
  position: relative;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.wishlist-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;

  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  background-color: #ac530033;
}

.wishlist-btn i {
  color: var(--y-secondary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.wishlist-btn.active i {
  font-weight: 900;
  color: var(--y-color-btn);
}

.wishlist-btn.active {
  background-color: rgba(172, 83, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.product-card a.btn-primary,
.product-card .btn-primary {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: auto;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.75rem 1rem;
  min-height: 44px;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  .product-card {
    width: 100%;
    height: auto;
  }
  .product-card h3 {
    font-size: 1.1rem;
  }
  .product-card a.btn-primary,
  .product-card .btn-primary {
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 0.65rem 0.875rem;
    min-height: 40px;
  }
  .product-card-price {
    font-size: 1rem;
  }
  .product-card .product-card-img img {
    height: 200px;
  }
  .wishlist-btn {
    width: 38px;
    height: 38px;
  }
  .wishlist-btn i {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .product-card h3 {
    font-size: 1rem;
  }
  .product-card a.btn-primary,
  .product-card .btn-primary {
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 0.6rem 0.75rem;
    min-height: 38px;
  }
  .product-card-price {
    font-size: 0.95rem;
  }
  .product-card {
    padding: 0.875rem;
  }
}

@media (max-width: 576px) {
  .product-card h3 {
    font-size: 0.9rem;
  }
  .product-card a {
    font-size: 0.8rem;
  }
  .product-card-price {
    font-size: 0.9rem;
  }
  .product-card {
    padding: 0.75rem;
    gap: 8px;
  }
  .wishlist-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    left: 10px;
  }
  .wishlist-btn i {
    font-size: 1rem;
  }
}
