﻿/*============ Floating Cart Button Start =============*/

.floating-cart-button {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3CA958 0%, #2a8c42 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(60, 169, 88, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: scale(0) translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
    padding: 0;
    font-size: 24px;
    color: #fff;
}
.floating-cart-icon {
    width: 60px;
    height: 60px;
    pointer-events: none; /* שלא יפריע ללחיצה */
}


.floating-cart-button.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.floating-cart-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 30px rgba(60, 169, 88, 0.6);
}

.floating-cart-button:active {
    transform: scale(0.95) translateY(0);
}

.floating-cart-button-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.floating-cart-button-pulse {
    animation: floatingPulse 2s ease-in-out infinite;
}

@keyframes floatingPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(60, 169, 88, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(60, 169, 88, 0.7);
    }
}

/* מוסתר בדסקטופ */
@media (min-width: 1024px) {
    .floating-cart-button {
        display: none !important;
    }
}

/* אנימציה לקבלת פוקוס */
.floating-cart-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/*============ Floating Cart Button End =============*/
