It is not good idea to use CSS to hide things with display:none when there are better solution.
You can try the function is_woocommerce() which will check if the current page is a woocommerce template...With that, you can wrap it around the code that displays the sidebar and negate the check so it won't display the sidebar on those pages.
if ( ! is_woocommerce() ) { get_sidebar(); }