I'd consider it shittalking even if he didnt overhear you. But I only really find shittalking to be a problem if youre talking about someone youre friends with cause in that situation you guys should be able to talk to each other.
But with this coworker, that doesn't seem to be the case...