/**
 * Sticky Cart Button CSS
 * Makes the View Cart button fixed at the bottom of the screen
 * so it's always visible when scrolling
 */

/* Sticky cart button container */
.sticky-cart-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sticky-cart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Cart icon */
.sticky-cart-icon {
    font-size: 24px;
    color: #635bff;
}

/* Cart count badge */
.sticky-cart-count {
    background: #635bff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* View Cart button */
.sticky-cart-button {
    background: #635bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.sticky-cart-button:hover {
    background: #4b45c6;
    transform: scale(1.05);
}

/* Hide on cart page */
body.cart-page .sticky-cart-container {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sticky-cart-container {
        bottom: 10px;
        right: 10px;
        padding: 12px 16px;
    }
    
    .sticky-cart-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .sticky-cart-icon {
        font-size: 20px;
    }
}

/* Animation when cart is updated */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.sticky-cart-container.cart-updated {
    animation: cartBounce 0.3s ease;
}