Hello,
Issue with columns caused by third-party plugin that you use https://prnt.sc/200tnuc Product Category Slider for Elementor. It uses a lot of global classes that break the default layout even for the Storefront theme not just for the XSore. So, contact plugin authors to fix the problem. Keep plugin enabled till you get it fixed.
What did you want to implement using that custom code? Do you want to hide swatches on the shop page? Then go to Theme Options > WooCommerce > Shop Elements > Variation swatches > Swatch Position > choose disable.
Regards