Giant pandas are classified as carnivores but eat an almost entirely vegetarian diet of bamboo. This shift occurred because their habitat changed into bamboo forests around 2-3 million years ago, not because of nutritional needs. Their digestive system remains similar to other carnivorous mammals.