I have a very food motivated dog, also. He’s learned to wait for treats. I don’t give him scraps or feed him when I’m eating. It’s up to me to make sure nothing is in reach, and that includes on top of the fridge. He’s not allowed in the kitchen when I’m there, either.