input: Write a python function to scrape product details (name, price, and availability) from an online store website.
  assert scrape_products('https://www.example.com') == [{'name': 'Product 1', 'price': '$10', 'availability': 'In stock'}, {'name': 'Product 2', 'price': '$20', 'availability': 'Out of stock'}]
  assert scrape_products('https://www.example.com/products') == [{'name': 'Product A', 'price': '$30', 'availability': 'In stock'}, {'name': 'Product B', 'price': '$40', 'availability': 'Out of stock'}]
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_products(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      products = []
      product_elements = soup.find_all('div', class_='product')
      
      for element in product_elements:
          name = element.find('h2', class_='product-name').text
          price = element.find('span', class_='product-price').text
          availability = element.find('span', class_='product-availability').text
          
          products.append({
              'name': name,
              'price': price,
              'availability': availability
          })
      
      return products