Both possible but in both you need to customize the code
Write a script which will check is there content available in these section or not f not hide them else leave them as it is.
Check the ajax call which work after click of atc button and display color over the cart icon. Here you will find the object break it and get the number as you need.
Both of these requests require custom coding, and we’d love to make that happen for you!
You can send your collaborator code to hello@untechnickle.com, and we’ll send you a store access request. Once that’s done, we’ll create a copy of your theme and implement the changes there. Once you’re satisfied, you can publish the updated theme.