Test

<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1" />
  <title>Ingredient Scanner</title>
  <style>
    body { font-family: system-ui, Arial; margin: 16px; }
    .card { padding: 12px; border: 1px solid #ddd; border-radius: 12px; margin-top: 12px; }
    input, button { font-size: 16px; padding: 10px; }
    button { cursor: pointer; }
    #video { width: 100%; max-width: 520px; border-radius: 12px; background: #000; }
  </style>
</head>
<body>
  <h2>Ingredient Scanner (Web)</h2>

  <div class="card">
    <h3>1) Search by product name</h3>
    <input id="nameInput" placeholder="Type product name…" style="width: 100%;" />
    <button id="searchBtn" style="margin-top:8px;">Search</button>
    <div id="searchResults"></div>
  </div>

  <div class="card">
    <h3>2) Scan barcode</h3>
    <button id="startScanBtn">Start camera scan</button>
    <p id="scanStatus"></p>
    <video id="video" autoplay playsinline></video>
  </div>

  <div class="card">
    <h3>Result</h3>
    <div id="result"></div>
  </div>

  <script type="module" src="app.js"></script>
</body>
</html>