To add a border to the sidebar on the shop page. You need to add the following Custom CSS in the Global Custom CSS area under Theme Settings >> Custom CSS.
To add a border that will include all the widgets in the sidebar you need to add the following Custom CSS in the Global Custom CSS area under Theme Settings >> Custom CSS.