That would be unlawful detention here. Also, what about people that go in and decide they don’t actually want to buy anything after all?
It’s not like you’re trapped… you can just walk out if you want, but doing so without paying and carrying full bags may raise an eyebrow with employees. Although I think I could easily get away with that in my small village supermarket during quiet hours when nobody is paying attention.