.floating-add-to-cart {
    position: fixed;
    bottom: -100px;
    right: 20px;
    z-index: 9999;
    transition: bottom 0.3s ease-in-out, transform 0.3s ease;
}

.floating-add-to-cart.visible {
    bottom: 20px;
}

.floating-cart-btn {
    background: #4E1C50;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.floating-cart-btn.adding {
    background: #4CAF50;
    transform: scale(1.1);
}

.floating-cart-btn.disabled {
    background: #4CAF50;
    cursor: default;
    transform: none;
}

.floating-cart-btn.disabled:hover {
    background: #4CAF50;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-cart-icon {
    width: 32px;
    height: 32px;
    stroke: white;
    transition: transform 0.3s ease;
    filter: invert(100%);
}

.floating-cart-btn:hover .floating-cart-icon {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-add-to-cart {
        right: 15px;
        bottom: -80px;
    }

    .floating-add-to-cart.visible {
        bottom: 15px;
    }

    .floating-cart-btn {
        width: 56px;
        height: 56px;
    }

    .floating-cart-icon {
        width: 22px;
        height: 22px;
    }

}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .floating-add-to-cart {
        right: 25px;
    }

    .floating-cart-btn {
        width: 65px;
        height: 65px;
    }

    .floating-cart-icon {
        width: 26px;
        height: 26px;
    }
}

/* Animation for added to cart */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.floating-cart-btn.adding .floating-cart-icon {
    animation: pulse 0.5s ease;
}