body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background: #333;
  color: #fff;
  padding: 1em;
  text-align: center;
}

header input {
  margin-right: 0.5em;
  padding: 0.5em;
  width: 200px;
}

.items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1em;
}

.item-card {
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
  margin: 1em;
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: #fafafa;
  transition: box-shadow 0.3s;
}

.item-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.item-card img {
  max-width: 100%;
  height: auto;
}

.cart {
  position: fixed;
  right: 0;
  top: 100px;
  background: #fff;
  border: 1px solid #ccc;
  width: 250px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1em;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2em;
  max-width: 600px;
  width: 90%;
  position: relative;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  cursor: pointer;
  font-size: 1.5em;
}