{% for karat_option in karat_set %}
{% if karat_option != '' %}
{% endif %}
{% endfor %}
{%- comment %}
Generate the metal color option buttons.
{%- endcomment %}
{%- assign metal_color_order = 'YG,RG,WG' | split: ',' -%}
{% for metal_color_option in metal_color_order %}
{% endfor %}
{%- comment %}
Generate separate tables for each type (Bracelet, Anklet, Necklace) and for each combination of karat and metal color.
{%- endcomment %}
{% assign types = 'Bracelet' %}
{% assign types2 = 'Anklet,Necklace' | split: ',' %}
{% for karat_option in karat_set %}
{% if karat_option == '' %}
{% continue %}
{% endif %}
{% for metal_color_option in metal_color_set %}
{% if metal_color_option == '' %}
{% continue %}
{% endif %}
{% assign metal_key = karat_option | append: metal_color_option %}
{% for metal in metal_set %}
{% if metal == '' %}
{% continue %}
{% endif %}
{% if metal contains karat_option and metal contains metal_color_option %}
{%- comment %}
MOBILE VERSION
{%- endcomment %}
{%- assign is_mobile = true -%}
{% if is_mobile %}
{% for type in types %}
{% assign length_set_for_type = '' %}
{% if type == 'Bracelet' %}
{% assign length_set_for_type = bracelet_length_set %}
{% endif %}
{% if length_set_for_type != blank %}
{{ type | upcase }}
{% for length_option in length_set_for_type %}
{% if length_option == '' %}
{% continue %}
{% else %}
{{ length_option }}
{% endif %}
{% endfor %}
{% for width_option in width_set %}
{% if width_option == '' %}
{% continue %}
{% else %}