Retail worker 101

I work in a small supermarket and have regular customers come in each day who I can have chat with. One of my regulars comes in while im stocking a bottom shelf and I’m on my knees to reach better. Without any sort of greeting or prior interation he walks over and tells me “that’s where I like to see a woman” i just blankly stare back at him and ask what he means (I knew at this point what comment he was trying to make). He said “you know, on their knees” while making that small smile to imply he’s joking. Now I’m used to sexual assault and harassment and have come a long way into being more self confident on what is right and wrong with things like this and try to stand up againt this sort of behaviour as much as I’m comfortable with, however I’m still surprised by his comment as I’ve had many interactions with him and didn’t think he was that kind of guy. So I try to politely say “thats not okay” while trying to match his joking demeanor to make it more light hearted as to not cause offence or a scene while I’m at work. He walked away after that and I still hate that I didn’t have the confidence to just react more seriously to make him aware that his comment isn’t okay.
Also there was a young male college working down the same section as me who was also kneeling down to reach the bottom shelf. He unfortunately didn’t hear the incident but when I told him straight after he was creeped out and luckily understood why it was wrong of him. – I have MANY more stories like this from comments being made to actually being touched while at work from both customers and one particular staff member on my shifts.