Hello, @Rikinte,
No need for the CSS to remove that border but in order to solve your issue please go to Dashboard >> Theme Settings >> Woocommerce (Shop) >> Single Product Builder >> Gallery >> and there you can choose Border Style (None). See the image for a reference: https://postimg.cc/xJXYCmhz
Regards 8Themes Team.