The sale/discount functionality is handled by WooCommerce, and the theme doesn’t directly influence it. For variable products, the sale label shows the percentage for the highest discount among the available variations, and it doesn’t change when you select a specific variation. This is the way it works.