Depends on the hat. Some cost a few dollars and others can go up to thousands of dollars. A expensive hat, like the ones recently worn to the royal wedding, cost hundreds of dollars. So it varies.
..as much as desired.
I Don't Know. Probally close to $1
40'000'000'000
Too much money depends on the reference point of the question.