One time, without thinking, I put an item (which I intended to buy) from a store in my pocket. I immediately realized this wasn't a good idea, and took it out of my pocket, carried it in my hand for a while while I kept shopping, then went and paid for it and a couple other items.
Did I commit any crimes?
Could I be charged with theft for something that for a couple seconds, probably looked like I intended to shoplift?