The Evolution of AI in Retail: From Basics to Breakthroughs