I wanted to ask you, if sometimes we’re talking to non mahrams, like for example at the grocery store or drive-through or at the cashier, and let’s say the non mahram is talking and as she’s talking she smiles and I smile back, is it haram?

If the smile is not malicious or comes with lust or desire and doesn’t not lead to haram then it’s ok