In retail, cost of goods is calculated pretty straightforwardly: it's only what you actually paid suppliers for the merchandise. Rent, salesperson wages, utilities, internet - all of that is operating expenses, they go in a separate category. A lot of beginners mix these up and end up with a wrong picture of their profit. Really, the cost of goods doesn't change depending on how many people work in your store or what your rent is. It's just the purchase cost.
Here's how to calculate it: put the total cost of all goods you bought during a period into a spreadsheet somewhere, divide it by the number of units sold - that's your average cost per item. Then as a separate line item, put all your operating expenses: salaries, rent, utilities, packaging, shipping. These expenses affect whether your store is actually profitable or not, but they don't go into the cost of a specific item.
To figure out if you're actually in the black, calculate it like this: sales revenue minus cost of goods sold minus all operating expenses. That's your actual profit or loss. If using this method you find out your store is in the red, then either your prices are too low, or you need to cut expenses, or your sales are weak. Each of these problems needs a different solution, but without proper calculations you're just flying blind.