How do you deal with shame after being too pushy with the guy you liked?

I met this guy almost a year ago in my hobby area. We never dated or went out together but there was a flirtatious dynamic going on everytime we saw each other. He never took the next step. I thought he was shy or insecure so while i waited I tried my best to keep it casual but I did show my interest on him and even got to the point to tell him "I feel very attracted to you". He politely responded that he was flattered and he was happy to have met me". I stupidly didn't take this as "I like you as a friend", so slowly and discreetly I kept pushing for months. I tried a couple more times telling his straight that I was interested in him but he just took it politely answering things like: "you are a great person"
I I was still hopeful and would try to start conversations. I would throw one or another flirt here and there, complimented him occasionally after he did it to me, I baked cookies for Christmas and share some with him and another female friend. I also got to meet him outside of our hobby spot "by coincidence" a couple of times. It was just a hi and a brief Conversation that didn't lead to anything but still, I think he knew that I wasn't there just by coincidence :(. I also took some chances to touch his arm while talking and commented once on a song he posted that I mistakenly thought was an indirect for me. I was not too much but I did was very obvious.
Anyway, he is a good guy. He was also kind and very very friendly to the point that I got confused and hopeful that it could turn into something else. He did flirt back a bit but I guess that was because I cornered him. He once told me liked me too ( but because of the tone of the conversation he meant just maybe not the way I liked him) I was starting to get that he is emotionally unavailable.
One day I noticed a change in his behavior towards me. He started to give me the cold shoulder. I got it. It was fine but now I feel really embarrassed for having bothered him. How do I behave in front of him now?
How do you deal with shame after being too pushy with the guy you liked?
Post Opinion