is an array of the product's options. Each entry has a .name (like "Size") and a list of .values. Loop both to build the picker.
{% for option in product.options_with_values %}
<div class="nw-option">
<div class="nw-option__label"><span>{{ option.name }}</span></div>
<div class="nw-option__pills">
{% for value in option.values %}
<button class="nw-pill" type="button">{{ value }}</button>
{% endfor %}
</div>
</div>
{% endfor %}
product.options is only the option names (strings). The values live on product.options_with_values. Loop the wrong one and there are no values to show.
Render the choices only. Do not rebuild selection in JavaScript. Shopify's variant system reads the inputs and picks the active variant for you.