Let's ignore the machines for a while(waves hands...). I think that is possible. Think of the the ones giving all sorts of coffee in a cup, but also soups, like in some companies canteens.
I've thought about the carbonizing thing. Let's say there are glass cylinders of common sizes and proportions, made out of light, and nearly indestructible laboratory glassware. Everybody has a few of them, like knife, fork and spoon, kitchenware, and so on. Why not have the cylinder open on the top, with a screw thread?
Several sorts of caps precisely fitting onto that thread, sealed when latched on? Then there could be a module like this https://en.wikipedia.org/wiki/Codd-neck_bottle for anything sparkling as the 'cap' being screwed and latched onto that cylinder. As one of many options. Think bottle lego! :-)
As for the branding, consumer information? Some sort of e-paper, or some RFID with a little bit of storage would surely do? (Also modular, so you can either change it, without throwing away the base bottle in case of defect, or vice versa. Because shit always happens)
Edit: Thinking further about it, It vaguely seems this could also be applied to most stuff which ships in tin cans. Like soups, Ravioli, and so on.
Editedit: Regarding the large facility...These already exist for baking pre-baked stuff, so you have the illusion of freshness.
It could also save a massive amount of store space because there could be one area with all sorts of filling stations, with the canisters plugged in behind the scenes. Instead of having rows of rows of stacked bottles or tin cans which need to be restocked continuosly.
Regarding deliveries, could be similar. All the "ghost kitchens' having such systems, filling those common containers with their common caps, from a common pool.
The small modular bottles for consumers just shuttling back and forth locally/regionally in that pool, while the larger ones only making it back and forth between delivery hubs and producers. No matter if Supermarket or delivery from some 'ghost kitchen'.
Phew! I'll leave it at that :-)
Editeditedit: Err, nope! Can't stop! Cold Plasma like in https://en.wikipedia.org/wiki/Nonthermal_plasma for disinfection! (Maybe)