/* Product Like Button Styles */

.product-like-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.product-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: transparent!important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(16px, calc(16px + 4 * ((100vw - 320px) / 1600)), 20px)!important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif!important;
    font-weight: 600!important;
    color: #505050!important;
    outline: none;
}

.product-like-btn:hover {
    transform: translateY(-2px);
}

.product-like-btn:active {
    transform: translateY(0);
}

.product-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Heart Icon */
.heart-icon {
    width: 24px;
    height: 24px;
    stroke: #3086C8;
    fill: none;
    transition: all 0.3s ease;
}

.product-like-btn:hover .heart-icon {
    stroke: #e74c3c;
    fill: rgba(231, 76, 60, 0.1);
}

/* Liked State */
.product-like-btn.liked {
    background-color:  transparent;
}

.product-like-btn.liked .heart-icon {
    fill: #3086C8;
    stroke: #3086C8;
    animation: heartBeat 0.5s ease;
}

.product-like-btn.liked .like-text {
    color: #505050;
}

/* Unliked State */
.product-like-btn.unliked .heart-icon {
    fill: none;
    stroke: #3086C8;
}

/* Heart Beat Animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Like Message */
.like-message {
    display: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family), Sans-serif!important;
}

.like-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.like-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-like-btn {
        padding: 0;
        font-size: 14px;
    }
    
    .heart-icon {
        width: 20px;
        height: 20px;
    }
}