I agree with everyone else, it needs a vets attention! Bunnys guts are very sensitive as people have already said, and as soon as a rabbit stops eating it starts shutting down, once it has its a right B***** to get started again!
There could be a blockage, you said it was eating carpet and wood shavings, maybe the fibres have caused a fur ball like object in its gut, although it probably stopped eating because of the change of food, and the carpet maybe have exaggerated it maybe? My youngest bun has taken to eating the odd shaving, but as shes eating hay and food it just goes through her system, but if yours ate it after it stopped eating it could be a factor.
It may have stopped eating because of the change of food, they can be fussy which is why your bun might not have wanted to try it, which is another reason why you normally mix, aswell as to stop gut upsets.
I think some people need to recognise that you're new to this, with food, i know so many people who just swap their new buns food to whatever they want as they just dont know, pet shops are shocking at not telling you to swap slowly. Aswell as this, people who are used to cats and dogs may notice them not eating for a day but theyre fine the next. This is not normally the case with bunnies, its much more serious.
At the same time as understanding your point of view, if it has a red goo, i think anyone who knows nothing about rabbits would know this isnt a good sign, surely?
Please do take the bun to the vets asap, say everything you said here, theyll probably check teeth etc and give a gut stimulant and fibreplex aswell as syringe food.
Iv never know red goo before, my dental bun has nothing like that. The only goo i had was when my youngest bun was seriosuly ill and not eating, lots of green like goo came out with her first poos, which is apparently normal.
Im glad youv come to somewhere like this forum, please get the rabbit seen to asap and once thats sorted, please come on here and check posts and ask any questions about anything, its better to ask early on than later when youv got a problem! Good luck, and let us know what the vet says!