The standard pantries in the house we bought last year were almost unusable. Long deep shelves and only 3-4 of them in a large closet sized area. Thank heavens they had doors. I designed
the shelves, my husband cut them out of MDF boards, I painted them with several coats of paint, and he installed them with aluminum channel. The channel allowed use of the shelf all the way to the back of the space. I counted and measured all the things in my food pantry to make the plan for how many shelves, how wide, tall and deep they needed to be. See the beginning and end result. It's so nice to be able to find things now. It turned out so nice, we did the 2nd pantry where I keep dishes, plastics, and mixed items for the kitchen!