Let's say I'm walking down a street and someone passes by. I then proceed to say "good morning" or "good afternoon" to him/her.
Is this common? Here in the west people usually tend to greet each other sometimes, even though they've never met before. I'm not sure if you're all understanding what I'm referring to, but do people in Japan do that as well?
Is it something that's only limited to neighbors or individuals we encounter frequently, like, say, a shop owner? Speaking of which, is it common to thank a store or a shop's clerk after we're done paying for our stuff?