/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

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

.cart-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #232F3E;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.cart-close-btn:hover {
    color: #FF9900;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

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

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 18px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.cart-item img,
.cart-item-placeholder {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #999;
}

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

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #232F3E;
}

.cart-item-price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #FF9900;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #FF9900;
    background: white;
    color: #FF9900;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: #FF9900;
    color: white;
}

.cart-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.cart-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    background: #cc0000;
}

.cart-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.cart-total-price {
    color: #FF9900;
    font-size: 28px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    background: #FF9900;
    color: #232F3E;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-checkout-btn:hover {
    background: #E88B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item img,
    .cart-item-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}
