@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.floating-cart-btn {
    /* background: linear-gradient(135deg, var(--bright-green), var(--medium-green));*/
    color: #000000;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 8px 25px rgba(0, 150, 64, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
}

.floating-cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 150, 64, 0.4);
}

.floating-cart-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.floating-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.floating-cart-icon i {
    font-size: 1.3rem;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--bright-red);
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(227, 6, 19, 0.3);
}

.floating-cart-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.2;
}

.floating-cart-total {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 2px;
}

/* Анимация при добавлении товара */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.floating-cart-btn.added {
    animation: cartPulse 0.5s ease;
    background: var(--medium-green);
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 576px) {
    .mobile-cart-floating {
        bottom: 20px;
        right: 100px;
    }

    .floating-cart-btn {
        padding: 4px 4px;
        min-width: 95px;
        border-radius: 22px;
    }

    .floating-cart-icon {
        width: 40px;
        height: 40px;
    }

    .floating-cart-text {
        font-size: 0.85rem;
    }

    .floating-cart-total {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .mobile-cart-floating {
        bottom: 10px;
        right: 10px;
    }

    .floating-cart-btn {
        padding: 8px 14px;
        min-width: auto;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .floating-cart-text {
        display: none;
    }

    .floating-cart-icon {
        width: 44px;
        height: 44px;
    }
}

/* Прячем плавающую кнопку когда открыто модальное окно корзины */
.cart-modal-open .mobile-cart-floating {
    display: none;
}

/* Анимация при скролле */
.mobile-cart-floating.scrolled {
    transform: translateY(10px);
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 150, 64, 0.2);
}

/* Тень при наведении */
.floating-cart-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    box-shadow: 0 0 0 0 rgba(0, 150, 64, 0.4);
    transition: box-shadow 0.3s ease;
}

.floating-cart-btn:hover::after {
    box-shadow: 0 0 0 10px rgba(0, 150, 64, 0.1);
}

/* Эффект волны при клике */
.floating-cart-btn:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}
