The diet of a pet hamster typically consists of a combination of commercial hamster food, fresh vegetables, fruits, and occasional treats like sunflower seeds or mealworms. It's important to provide a balanced diet to keep your hamster healthy and happy. Always ensure they have access to fresh water as well.