body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f8f8f8;
}
header {
  background: #ff9800;
  color: #fff;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 {
  margin: 0;
  flex: 1;
}
#cart-fab {
  background: #fff;
  color: #ff9800;
  border: none;
  border-radius: 50%;
  padding: .5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  margin-left: 1rem;
  position: relative;
}
#cart-count {
  background: #ff9800;
  color: #fff;
  border-radius: 50%;
  padding: .1em .6em;
  font-size: .9em;
  position: absolute;
  top: -8px;
  right: -8px;
}
main {
  max-width: 500px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 1rem;
}
h2 {
  margin-top: 1rem;
}
ul {
  list-style: none;
  padding: 0;
}
#menu-list li {
  display: flex;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid #eee;
  animation: fadein .3s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.menu-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 8px;
  border: 1px solid #eee;
}
.menu-item-info {
  flex: 1;
}
.menu-item-name {
  font-weight: 500;
  display: block;
}
.menu-item-price {
  color: #ff9800;
  margin-left: .5rem;
}
.menu-item-add {
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .4rem .7rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: background .2s;
}
.menu-item-add:active {
  background: #f57c00;
}
#cart-modal.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  max-width: 95vw;
  width: 400px;
  padding: 1.5rem 1rem;
  position: relative;
  animation: fadein .3s;
}
.close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 1.7rem;
  color: #ff9800;
  cursor: pointer;
}
#cart-list li {
  display: flex;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid #eee;
  animation: fadein .3s;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 500;
}
.cart-item-price {
  color: #ff9800;
}
.cart-qty {
  display: flex;
  align-items: center;
  margin-left: .7rem;
}
.qty-btn {
  background: #eee;
  border: none;
  border-radius: 3px;
  color: #333;
  font-size: 1.2rem;
  width: 26px;
  height: 26px;
  margin: 0 .2em;
  cursor: pointer;
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
#place-order {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-left: .7rem;
}
#place-order:active {
  background: #388e3c;
}
.clear-cart {
  color: #888;
  background: #f3f3f3;
  border: none;
  border-radius: 4px;
  padding: .4rem 1rem;
  margin-top: .7rem;
  cursor: pointer;
  float: right;
}
#order-msg {
  margin: 1rem 0;
  text-align: center;
  color: #4caf50;
  font-weight: bold;
}
#overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.25);
  z-index: 90;
}
.hidden {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: .5rem;
  }
  .modal-content {
    width: 95vw;
  }
}
