input: Write a Python function to fetch product details by name from a given list of products.
  ```python
  def fetch_product_by_name(products, name):
      product = next((p for p in products if p['name'] == name), None)
      if product:
          return product
      else:
          return {'message': 'Product not found'}
  
  # Test cases
  products = [
      {'name': 'Laptop', 'category': 'Electronics', 'price': 499.99},
      {'name': 'Headphone', 'category': 'Electronics', 'price': 59.99},
      {'name': 'Yoga Mat', 'category': 'Sports', 'price': 39.99},
  ]
  
  assert fetch_product_by_name(products, 'Laptop') == {'name': 'Laptop', 'category': 'Electronics', 'price': 499.99}
  assert fetch_product_by_name(products, 'Yoga Mat') == {'name': 'Yoga Mat', 'category': 'Sports', 'price': 39.99}
  assert fetch_product_by_name(products, 'Smartphone') == {'message': 'Product not found'}
output: def fetch_product_by_name(products, name):
      product = next((p for p in products if p['name'] == name), None)
      if product:
          return product
      else:
          return {'message': 'Product not found'}
  
  # Test cases
  products = [
      {'name': 'Laptop', 'category': 'Electronics', 'price': 499.99},
      {'name': 'Headphone', 'category': 'Electronics', 'price': 59.99},
      {'name': 'Yoga Mat', 'category': 'Sports', 'price': 39.99},
  ]
  
  assert fetch_product_by_name(products, 'Laptop') == {'name': 'Laptop', 'category': 'Electronics', 'price': 499.99}
  assert fetch_product_by_name(products, 'Yoga Mat') == {'name': 'Yoga Mat', 'category': 'Sports', 'price': 39.99}
  assert fetch_product_by_name(products, 'Smartphone') == {'message': 'Product not found'}