{% assign plp_coming_soon = 'false' %}
{% for product in products %}
{% assign in_stock_variants = product.variants | where: 'available', true %}
{% if in_stock_variants.size >= 1 %}
{% assign product_available = 0 %}
{% else %}
{% assign product_available = 1 %}
{% endif %}
{% if product.tags contains 'SMART_TAG_COMINGSOON' %}
{% if plp_coming_soon == 'true' %}
{% assign product_available = 0 %}
{% else %}
{% assign product_available = 1 %}
{% endif %}
{% endif %}
{% if product.tags contains "SMART_TAG_COMINGSOON" %}
{% assign grid_coming_soon = 1 %}
{% assign plp_coming_soon = 'false' | to_i %}
{% if plp_coming_soon == "true" %}
{% assign plp_coming_soon = 1 %}
{% else %}
{% assign plp_coming_soon = 0 %}
{% endif %}
{% else %}
{% assign grid_coming_soon = 0 %}
{% assign plp_coming_soon = 0 %}
{% endif %}
{% if product.tags contains "UNISEX" %}
{% assign grid_cols = '2' %}
{% else %}
{% assign grid_cols = 5 %}
{% endif %}
{% assign show_siblings = false %}
{% assign show_sizegrid = false %}
{% assign sibling_visible = 1 %}
{% if show_sizegrid or show_siblings %}
{% assign hidemobileview ='product-item__quickadd hidden active:block' %}
{% else %}
{% assign hidemobileview ='' %}
{% assign cpage = 'index' %}
{% if cpage == 'index' %}
{% assign sibling_visible = 0 %}
{% endif %}
{% if cpage == 'product' %}
{% assign sibling_visible = 0 %}
{% endif %}
{% if cpage contains 'page' %}
{% assign sibling_visible = 0 %}
{% endif %}
{% endif %}
{% assign shop_name = 'Palladium US' %}
{% capture bg-color %}bg-gray-100{% endcapture %}
{% assign productTitle = product.title | remove: product.type | split: ' | ' %}
{% assign material = productTitle[0] | split: '-' %}
{% assign totalSiblings = 0 %}
{% assign childrenSizes = 'false' %}
{% assign twomobile = 'true' | to_i %}
{% if twomobile == "true" %}
{% assign twomobile = 1 | to_i %}
{% else %}
{% assign twomobile = 0 %}
{% endif %}
{% assign templates = 'index' %}
{% endfor %}
{% assign productNewSaleHideifComingSoonEnabled = 0 %}
{% if plp_coming_soon == 1 %}
{% assign productNewSaleHideifComingSoonEnabled = 1 %}
COMING SOON
{% endif %}
{% for badge in badges %}
{% if product.tags contains badge.tag and badge.tag != 'more-colors' and productNewSaleHideifComingSoonEnabled == 0 %}
{{ badge.collection_badge }}
{% endif %}
{% endfor %}
{% if product.available == false %}
{% unless product.tags contains "SMART_TAG_COMINGSOON" %}
Sold out
{% endunless %}
{% endif %}
{% if show_siblings or show_sizegrid %}
{% if show_siblings %}
{% endif %}
{% if show_sizegrid %}
{% assign strip_from_swatches = 'Mens,Womens,Big Kids,Little Kids,Toddlers' | split:',' %}
{% endif %}
{% endif %}
Color: {{ productTitle[2] }}
{% if material.size == 3 %} {% capture family %}{{ product.title | split: '-' | first }}-{{ product.title | split: ' | ' | first | split: '-' | last | strip }}{% endcapture %} {% else %} {% capture family %}{{ product.title | split: '-' | first }}{% endcapture %} {% endif %} {% if siblings[family] %} {% endif %}Select Size
{% for variant in product.variants %}
{% endfor %}