
.card-img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #f5f0eb; 
}

.primary-img, .secondary-img {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1; 
}


.product-card:hover .secondary-img {
    opacity: 1;
}


.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}


.heart-icon {
  width: 24px;
  height: 24px;
  fill: transparent; 
  stroke: var(--text-main, #333); 
  stroke-width: 2px;
  transition: fill 0.2s ease, stroke 0.2s ease; 
  display: block;
}


.active .heart-icon, .btn-wishlist.active .heart-icon, .card-wishlist.active .heart-icon {
  fill: #e57373; 
  stroke: #e57373; 
}


.heart-animate .heart-icon {
  animation: pop 0.3s ease-in-out;
}


@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}


.flying-img {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}


.page-fade-in {
    animation: fadeInPage 0.4s ease-out forwards;
}

@keyframes fadeInPage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes shakeAnimation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.shake-animation {
    animation: shakeAnimation 0.3s ease-in-out;
}
