Motion Theme: Do not show products with specific tags to specific locations

Hello,

I am just expanding to new markets. Some of my products are only available in specific countries. I now want to hide them on all collection pages based on the country the customer visits from.

I found this instruction from shopify: https://www.shopify.com/partners/blog/customize-content-by-country

But it refers to the Dawn Theme. I am using the Motion Theme and can not find main-collection-product-grid.liquid to put in the code there.

Does anyone know where to place the code for this in the Motion Theme? Or how can I find out?

The code itself is really easy:

{% unless product.tags contains "do_not_sell_to_UK" and localization.country.iso_code == 'GB' %}
  <li class="grid__item">
    {% render 'product-card', product_card_product: product, media_size: section.settings.image_ratio, show_secondary_image: section.settings.show_secondary_image, add_image_padding: section.settings.add_image_padding, show_vendor: section.settings.show_vendor, show_image_outline: section.settings.show_image_outline, show_rating: section.settings.show_rating %}
  </li>
{% endunless %}

Can someone please help me on this?

Thank you so much for reading.