The issue has been fixed. Now the cart page shows the proper count of stock for variant product ass added by the admin from store back end. WHen purchase the variant, the stock gets deducted properly.