How to turn the top challenges faced by midmarket retailers into opportunities