Hello Odessa Dawn,
I note this is in the Sydney Herald and so it may be how they use the word "hit" in Australia. It may be just slang. Yes, here it seems like, "inspired".
In BrE this sentence sounds like the child hit her in the coffee shop (literally punched her). I had to follow the link you gave to read more before I was sure.
In BrE we would say, "suddenly I was hit [inspired] by the idea....", as you correctly identified, which seems to be the origin of this other type of usage here.
Student or Learner