Minimal Theme: How to show "only a few left" text on product grid for products w/ multiple variants?

I am wanting to display an “only a few left” message on the product grid and on the product page when there are 3 or less products in stock. When there is only 1 left, I want to change it to “only 1 left”. I have it right now where it works beautifully for single variant products, but cannot figure out how to get it to total the product variants for products with multiple variants. For example, if a product has 3 variants (red, blue and green) with associated quantities of 2, 3, and 1, I only want it to display “only a few left” when the sum (currently at 6 in my example) gets to 3, not just for any single variant. Right now I can only get it work for the first variant, based on my code.

Here is the code I have in the product-grid-item.liquid:

{% if product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity > 0 and product.variants.first.inventory_quantity <= 1 %} ⧗ ONLY 1 LEFT {% endif %}
{% if product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity > 1 and product.variants.first.inventory_quantity <= 3 %} ⧗ ONLY A FEW LEFT {% endif %}

I have the same code in the product-template.liquid for the product page. How can I adjust product.variants.first.inventory_quantity to sum the total of all variants to then display the correct message? Please help!

My website is www.sundreeaccessories.com.

Thank you!