


.product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.product-card-modern:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}


.product-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.product-btn:hover::before {
    width: 80px;
    height: 80px;
}

.product-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-btn:hover i {
    transform: scale(1.2);
}


.product-btn.add-to-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    animation: cartPulse 2s ease-in-out infinite;
}

@keyframes cartPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
    }
}

.product-btn.add-to-cart:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.product-btn.add-to-cart i {
    animation: cartBounce 1s ease-in-out infinite;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}


.product-btn.quick-view-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.product-btn.quick-view-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}


.product-btn.wishlist-btn {
    background: white;
    color: #ef4444;
}

.product-btn.wishlist-btn:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
    transform: scale(1.15);
}

.product-btn.wishlist-btn.active {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
}

.product-btn.wishlist-btn.active i {
    animation: heartBeat 0.8s ease-in-out;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.25);
    }
}


.product-btn.compare-btn {
    background: white;
    color: #10b981;
}

.product-btn.compare-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: scale(1.15);
}


.product-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #9ca3af !important;
}


.product-btn.loading {
    pointer-events: none;
}

.product-btn.loading i {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.product-btn.success {
    background: #10b981 !important;
    color: white !important;
}

.product-btn.success i {
    animation: checkmark 0.5s ease !important;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}


@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
        transform: translateY(0);
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .product-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .product-actions {
        flex-direction: row;
        bottom: 10px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
    }

    .product-card-modern:hover .product-actions {
        transform: translateX(-50%);
    }

    .product-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}