Seeking Assistance with Shopify Product Carousel Customization

Hello,

I am attempting to create a product carousel to integrate into my Shopify contact form, allowing users to select a product. I have succeeded in this, but now I am seeking guidance on implementing an additional functionality: filtering the products displayed in the carousel based on the collection chosen in the radio button.

I am struggling to achieve this. Do you have any ideas on how to accomplish it?

You can access the contact form here.

Thank you for your help,

Froz,