${title}
{{if compare_at_price_min > price_min}}
{{html Shopify.formatMoney(compare_at_price_min, theme.moneyFormat)}}
{{if price_varies}}
from
{{html Shopify.formatMoney(price_min, theme.moneyFormat)}}
{{if price_varies}}
from
{{html Shopify.formatMoney(price_min, theme.moneyFormat)}}
{{each options}}
${( downcased_option = name.toLowerCase() ),''}
${( option_color_swatch = window.swatch_recently), ''}
{{if option_color_swatch.indexOf(downcased_option) > -1}}
${( colorlist = '' ),''}
${( optionCount = 0 ),''}
${( count = 0 ),''}
{{each values}}
${( color = 0 ),''}
{{each variants}}
{{if position == 1}}
${( color = variants[($index)].option1 ),''}
{{if position == 2}}
${( color = variants[($index)].option2 ),''}
{{if position == 3}}
${( color = variants[($index)].option3 ),''}
${( color_2 = color.toLowerCase().replace(" ", "") ),''}
{{if colorlist.indexOf(color)
${( optionCount ++ ),''}
${( count = optionCount / 4 ),''}
${( colorlist = colorlist.concat(" ",color) ),''}
{{/each}}
{{/each}}
{{if count > 4}}
+ ${count - 4}
{{/each}}