Above your reasonable w2 wage as defined by the irs you receive distributions that are commonly misconstrued as dividends. At the end of the day, after payroll expense, all, all net profit or loss is passed through to your personal return. Similar to an LLC any distribution to you other than wages is equity movement. Do not confuse it with expenses.
As long as you are a single shareholder s corp treat all equity in and out as contributions and draw. But if you have multiple shareholders, treat personal business purchases as loans and settle up these loans annually.
You should avoid making personal purchases with business funds like the plague.