
.cart-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
    animation: cartFadeIn 0.3s ease;
}

.cart-container.active {
    display: flex;
}

@keyframes cartFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-bottom-sheet {
    background: white;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px 30px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: cartSlideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes cartSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cart-drag-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
}

.drag-bar {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-cart {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-cart:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.close-cart i {
    font-size: 1rem;
    color: #666;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    width: 100px;
    height: 100px;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-cart-icon i {
    font-size: 48px;
    color: #adb5bd;
}

.empty-cart h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1e24;
    margin: 0 0 8px;
}

.empty-cart p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 24px;
}

.continue-shopping-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 49, 0.3);
}

.cart-item-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
    animation: cartItemFadeIn 0.3s ease;
}

@keyframes cartItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 24px;
    color: #adb5bd;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1e24;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.cart-item-addons {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 4px 8px;
    border-radius: 30px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.qty-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 24px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.remove-item-btn:hover {
    background: #ffebee;
    transform: scale(1.05);
}

.cart-footer {
    background: white;
    border-top: 1px solid #f0f0f0;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #f0f0f0;
}

.cart-total-label {
    font-size: 1rem;
    color: #6c757d;
}

.cart-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 123, 49, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cart-bottom-sheet {
        border-radius: 24px 24px 0 0;
    }
    
    .cart-header {
        padding: 8px 16px 12px;
    }
    
    .cart-items-container {
        padding: 12px 16px;
    }
    
    .cart-item-card {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-footer {
        padding: 16px;
    }
    
    .cart-total-amount {
        font-size: 1.3rem;
    }
}
    