SYNCHRONIZING CART QUANTITIES ACROSS PAGES
Cart updates made on the product page were not immediately reflected on the cart page because state was managed locally in separate components.
Implemented global state management using React Context API and created a custom useCart hook to centralize cart logic. This ensured all components subscribed to the same state and updated instantly.





