Racism is a subset of bigotry, pertaining to strictly race: black, white, yellow, brown, red, or any other color group I'm missing here.
Bigotry, on the other hand, encompasses not only race, religion, national origin, political party, or hair color, among other things.
It's what you say in your criticisms that define the difference if it is, in truth, a criticism or bigotry in play