{% assign badges = productBadges | where: 'type', 'graphic' %}
{% for badge in badges %}
{% if product.tags contains badge.tag %}
{% if badge.icon contains '.' %}
{% else %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
{% assign badges = productBadges | where: 'type', 'icon' %}
{% for badge in badges %}
{% if product.tags contains badge.tag %}
{% if badge.icon contains '.' %}
{% else %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
{% assign badges = productBadges | where: 'type', 'option' %}
{% if badges != blank %}
{% for badge in badges %}
{% assign show_badge = false %}
{% if product.tags contains badge.tag %}
{% assign show_badge = true %}
{% endif %}
{% for sibling in product.siblings %}
{% if sibling.tags contains badge.tag %}
{% assign show_badge = true %}
{% endif %}
{% endfor %}
{% if show_badge %}
{{ badge.label }}
{% endif %}
{% endfor %}
{% endif %}
{%- assign swatch_styles = 'h-full w-full object-contain' -%}
{% assign limit = 4 %}
{% if product.siblings.size > 4 %}
{% assign limit = 3 %}
{% endif %}
{% for sibling in product.siblings limit:limit %}
{% endfor %}
{% if product.siblings.size > 4 %}
+{{ product.siblings.size | minus: 4 }} More
{% endif %}
{% endif %}
{% if product.available == false %}