The front part of a shrimp’s body includes both the head and thorax, forming the cephalothorax. The heart is located inside this region, above the digestive system and surrounded by vital organs.