New shoes and new clothes should be part of your budget. You shouldn’t be blindsided by this.
Everything else, do some reseaech into ‘emergency fund’. You need one before you start investing, else yes you’ll be dipping into your investments the moment you need some extra cash and you might end up loosing money if the market has gone down when you sell.