body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #f4f6f8;
}

header {
  background: #F28A3A;
  color: white;
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
}

header h1 span {
  color: #000;
}

header p {
  margin: 0;
  font-size: 18px;
  font-style: italic;
}

.page-layout {
  display: block;
}

#menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 24px;
}

.card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px rgbs(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.food-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin: 12px 16px 4px;
  font-size: 24px;
  font-weight: 900;
}

.card p {
  margin: 0 16px 16px;
  font-weight: bold;
  color: #444;
}

.card button {
  margin: 0 16px 16px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #F28A3A;
  color: white;
  font-weight: 600;
  transition: background 0, 15s ease;
}

.card button:hover {
  background: #F28A3Acc;
}

button {
  background: #F28A3A;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

#cart {
  background: white;
  max-width: 500px;
  margin: 24px auto;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  /*position: sticky;
  top: 20px;*/
}

.cart-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1100;

  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f4f6f8;
  color: #333;
  font-size: 12px;
  min-width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: white;
  box-sizing: border-box;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  padding: 56px 24px 24px;
  z-index: 1200;
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1150;
}

.cart-overlay.hidden {
  display: none;
}

.cart-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.close-cart {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  color: #333;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.item-name {
  flex: 1;
  min-width: 0;
}

.item-price {
  width: 60px;
  text-align: right;
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 80px;
  justify-content: center;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #F28A3A;
  color: white;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.qty {
  min-width: 20px;
  text-align: center;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: #333;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#checkout-form input {
  padding: 10px;
  border: 1px solid #333;
  border-radius: 8px;
}

#checkout-form button[type="submit"] {
  margin-top: 12px;
}

#checkout-message {
  margin-top: 12px;
  font-weight: 600;
}

#checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #333;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 14px;

  /*Animation Base State*/
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Visible State */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .cart-panel {
    width: 100%;
    max-width: 100%;
  }

  button {
    font-size: 16px;
  }
}