<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Cart Restriction Demo</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 40px; }
    .restaurant { margin-bottom: 20px; }
    .btn {
      padding: 10px 15px;
      background: #ff4d4d;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }
    .btn:hover { background: #e63939; }
    
    /* Popup */
    .modal {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      width: 300px;
    }
    .modal-content button {
      margin: 10px;
      padding: 8px 15px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }
    .yes { background: #28a745; color: white; }
    .no { background: #dc3545; color: white; }
  </style>
</head>
<body>

  <div class="restaurant">
    <h2>Restaurant A</h2>
    <button class="btn" onclick="addToCart('Pizza', 'A')">Add Pizza</button>
  </div>

  <div class="restaurant">
    <h2>Restaurant B</h2>
    <button class="btn" onclick="addToCart('Burger', 'B')">Add Burger</button>
  <


