/* Product Card Layout */
.product-card {
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}
.product-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.product-thumb img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Wishlist Overlay Icon */
.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}
.product-wishlist img {
  width: 18px;
  height: auto;
  transition: all 0.3s ease;
}

/* When product is in wishlist */
.product-wishlist.active {
  background: #e60023;
}
.product-wishlist.active img {
  filter: brightness(0) invert(1);
}

/* Hover effect */
.product-thumb:hover .product-wishlist {
  transform: scale(1.1);
}
.latest-post-box {
  position: relative;
}

.latest-post-inner {
  position: relative;
}

.latest-post-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.product-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e60023;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.product-wishlist img {
  width: 18px;
  height: auto;
  transition: all 0.3s ease;
}

/* Active wishlist state */
.product-wishlist.active {
  background: #e60023;
}

.product-wishlist.active img {
  filter: brightness(0) invert(1);
}

/* Toast Notification */
.wishlist-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.wishlist-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wishlist-toast.success {
  background: #28a745;
}

.wishlist-toast.error {
  background: #dc3545;
}

/* Heart Icon Active */
.product-wishlist.active {
  background: #e60023;
}
.product-wishlist.active img {
  filter: brightness(0) invert(1);
}

.product-wishlist.active img {
  filter: brightness(0) invert(1);
}
.product-wishlist.active {
  background-color: #e60023;
}

