I did a menu about 10 years ago but it wasn't anything like this complicated code. Granted we used XMPie as a print engine rather than uStore.
My menu had up to 8 sections over 2 pages. Sections headers and 4 to 10 menu items per section. Without data the tables just collapsed? I don't have that uplan anymore because I thought it might be an easier example.
I realized this is kind of a useless post but you have a very interesting solution. I wish I still worked in XMPie to try it out.
cheers,
Bob