.js-toggle-wishlist {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.js-toggle-wishlist:hover {
    transform: scale(1.1);
}

.js-toggle-wishlist svg {
    fill: transparent;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.js-toggle-wishlist.active svg {
    fill: #ff4242;
    stroke: #ff4242;
    animation: heartBeat 0.3s ease-in-out;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4242;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Animation for heart beat effect */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Wishlist drawer animations */
.aside_visible {
    animation: slideIn 0.3s ease-out forwards;
}

.aside-overlay {
    animation: fadeIn 0.3s ease-out forwards;
}

.aside-overlay.animate__fadeOut {
    animation: fadeOut 0.3s ease-out forwards;
}

.wishlist-loading {
    transition: opacity 0.3s ease;
}

.wishlist-item {
    animation: fadeInUp 0.3s ease-out;
}

/* Slide animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Fade animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

@keyframes fadeOut {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
