I like AnyList for this. Keeps the groceries synced to your phone, sticks things in relatively sane categories, is fairly customizable, supports multiple real time editors (so my wife and I can both check stuff off as we add it around the store), has a web interface, and until Google decided to ruin it, had a nice smart speaker integration