body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

header {
  background-color: #ff5722;
  color: white;
  text-align: center;
  padding: 1rem;
}

.menu-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.menu {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: nowrap;
  justify-content: flex-start; /* Align items to the left */
  width: 100%;
  overflow: hidden;
}

.menu-item {
  flex: 1 1 25%; /* Each item takes 25% of the container width */
  max-width: 25%; /* Prevent items from growing larger than 25% */
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center; /* Centers text and content within the item */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures the button stays at the bottom */
}

.menu-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.menu-item h3 {
  margin: 0;
  padding: 0.5rem;
}

.menu-item p {
  padding: 0 0.5rem 1rem;
  margin: 0;
  color: #555;
}

.add-to-cart {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.5rem;
  width: 100%;
  cursor: pointer;
  border-top: 1px solid #ddd;
}

.add-to-cart:hover {
  background-color: #e64a19;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 10;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.cart {
  margin: 1rem;
  padding: 1rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart h3 {
  margin-top: 0;
}

.cart ul {
  list-style-type: none;
  padding: 0;
}

.cart ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.remove-item {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 3px;
}

.remove-item:hover {
  background-color: #e64a19;
}

.total {
  font-weight: bold;
  margin-top: 1rem;
  text-align: right;
}
