For products with variants, the cart button stays inactive until every required option (e.g. size and colour) is selected. It only becomes active once you have a unique, valid combination.
If a combination is sold out or does not exist, it also stays disabled. Pick a different option in that case.
Full details in the documentation: Product Variants.
