Sorry to hear about your experience.
There are many stories like these about Amazon.
All I can suggest is to look at the customer reviews (including 1-star reviews) and the seller's reputation first before purchasing.
If location permits, you're probably better off buying locally.
Worse, there are numerous knockoffs you need to watch out for. This isn't limited to Amazon by the way. They can even be hard to detect until it's too late.
I dislike Amazon, but sometimes there is no choice when you have to buy online.
One of my relatives got scammed on Amazon once. She never received her product. She got refunded, but plenty of reviews said the seller is a scammer. Be careful out there.