Quirky tax law can mean hidden costs for shoppers