Why does my loop always return the same color value in Shopify?

Hi community,

I’m facing a problem and I can’t understand what’s happening.

Here’s my code

{% for product_option in product.options_with_values %}
  {% for value in product_option.values %}
    
  {% endfor %}
{% endfor %}

So I’m just looping through product options to print all the colors of my product (the span is there for a clickable item). The ‘value’ is always a color name (eg. red, black) and the background of the span is set correctly but the value of the input is always the same (I get always black!!!). What am I missing?