Can you maybe explain what happened to me? Was shopping and in line heard a click in head and got dizzy and heart started beating. It scared me

Dehydrated. Could you have been dehydrated? Hypoglycemic? Did you feel panicky as if you just had to jump out of line and get away from all the people? Shortness of breath or feelings of impending doom in the store? You may benefit from a good physical examination.