implementing department, category, and product hover effects only for medium and large screens