How can I show different images based on URL in my e-clothing store?

I am using unisex clothes in my e-shop, and I have on most of the products two images, one for men and one for women. I am trying to find a way to display the first image (which is a man) when the URL contains /men and the second image (which is a woman) whenever the URL contains /women. The theme I am using is "CRAFT,” and because I haven’t published it yet, you can find the website here: website.
Thank you in advance for your help!

Hi

Are you looking for similar solution we have implement the similar solution.

https://materialclothing.co.uk/

Hi @off-market_1 ,

We’ve carefully checked your website and found the problem quite complicated. So we suggest hiring a developer.

It’s what we can help with an optimal solution. If you need help from our expert, kindly share your request with us via Shopify experts: https://experts.shopify.com/bss-commerce/services?utm_source=Shopify+Community&utm_medium=Post+reply&utm_campaign=_

We will check it and give you a detailed solution. We’re looking forward to working with you.

Yes this looks exactly how I want it to be! Are you guys also using craft theme??

no, but I can code for Craft theme too.

So how could I make this work?

To implement this we have to change at multiple places including scripts, therefore not possible to explain.

We can implement this if it’s a job request you to connect over WhatsApp or email or details are in the post footer, if interested.