It goes without saying that rotten wood makes a poor shelf support. So be sure to make sure wood is good.
Rear shelves are attached to the upper cabinet and the closet. as well as the top wood on all three windows
. Front shelf is attached to kitchen cabinet, then the wood above front window. And as I recall, the bulged two layer vertical fiberglass beside the door.