What is the best way to display availability in a catalog for a product that has multiple versions (e.g., sizes) with different availabilities?

I could think of two best ways to deal with this situation:

A.) Show "in stock" if at least one product version/size is in stock.

B.) Show something like "some versions in stock" so customers won't be disappointed when a version is not available.

I thought of displaying available e.g. sizes directly in the product catalog, but it is not always just sizes, it could be also longer definitions of product versions - therefore showing this long information directly in the catalog is not an option.

Will be happy for any ideas or research references.