Aug 13, 2023
Instead of the the_product references you could use the following instead, which would access the second variant in the variants array.
the_product.variants[1].title
the_product.variants[1].featured_image
the_product.variants[1].available
the_product.variants[1].url
More info:-
https://shopify.dev/docs/api/liquid/objects/product#product-variants