/* Cart Sidebar Mobile Optimizations */

/* Fix cart footer visibility on mobile */
@media (max-width: 768px) {
    .cart-sidebar {
        display: flex;
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
    }
    
    .cart-items-wrapper {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 180px; /* Space for fixed footer */
    }
    
    .cart-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e5e5;
        padding: 15px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .checkout-btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 25px;
        background: linear-gradient(135deg, #00b900 0%, #00a810 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .checkout-btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(0, 185, 0, 0.3);
    }
    
    /* Ensure cart total is visible */
    .cart-total-section {
        margin-bottom: 10px;
        padding: 10px 0;
        border-top: 1px solid #f0f0f0;
    }
    
    /* Prevent content from being hidden behind footer */
    .cart-content {
        padding-bottom: 200px;
    }
}

/* Smooth scroll for cart items */
.cart-items-wrapper {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .cart-item-quantity button {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }
    
    .cart-item-remove {
        min-width: 32px;
        min-height: 32px;
    }
}