* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #fff3df, #eaf3ff);
}

.app { padding: 14px; padding-bottom: 120px; }

.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header { margin-bottom: 14px; }
.header h1 { margin: 0; }
.header p { margin-bottom: 0; color: #666; }

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.category-btn {
  border: none;
  padding: 11px 16px;
  border-radius: 30px;
  background: white;
  font-weight: bold;
  white-space: nowrap;
}

.category-btn.active { background: #111; color: white; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.menu-card {
  background: white;
  border-radius: 22px;
  padding: 14px;
  cursor: pointer;
}

.food-icon { font-size: 38px; }
.menu-card h3 { margin: 10px 0 6px; }
.menu-card p { margin: 0; color: #666; font-size: 13px; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.plus {
  background: #111;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.floating-cart-btn {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 68px;
  border-radius: 22px;
  background: rgba(17,17,17,0.94);
  backdrop-filter: blur(14px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  cursor: pointer;
}

.floating-cart-left { display: flex; align-items: center; gap: 12px; }
.cart-icon { font-size: 26px; }
.cart-text { display: flex; flex-direction: column; }
.cart-title { font-size: 15px; font-weight: bold; }
.cart-subtitle { font-size: 12px; opacity: 0.75; }
.cart-total-price { font-size: 18px; font-weight: bold; }

#floatingCartCount {
  background: red;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  padding: 0 6px;
  margin-right: 3px;
}

.cart-item { border-bottom: 1px solid #eee; padding: 12px 0; }
.cart-item small { display: block; color: #666; margin-top: 3px; }
.cart-top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-info { flex: 1; }
.qty-row { margin-top: 10px; display: flex; justify-content: flex-end; align-items: center; }
.qty-controls { display: flex; align-items: center; gap: 10px; }

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-number { font-weight: bold; min-width: 20px; text-align: center; }

.total { font-size: 18px; font-weight: bold; margin-top: 12px; }

.checkout-btn,
.add-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: #111;
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-top: 12px;
}

#confirmOrderBtn:disabled { opacity: 0.65; }

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 18px;
}

.popup.show { display: flex; }

.popup-card {
  width: 100%;
  max-width: 390px;
  background: white;
  border-radius: 26px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  float: right;
  border: none;
  background: none;
  font-size: 30px;
}

.popup-image { font-size: 52px; }

.option-box {
  margin: 12px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 16px;
}

.option-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #111;
}

.popup-card input,
.popup-card textarea,
.popup-card select {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
  margin-top: 10px;
}

.popup-card textarea { min-height: 65px; }

.order-type-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
}

.order-type-btn {
  border: none;
  padding: 12px 8px;
  border-radius: 14px;
  background: #f1f1f1;
  font-weight: bold;
}

.order-type-btn.active { background: #111; color: white; }

.checkout-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.back-btn {
  border: none;
  background: #f1f1f1;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
}

.checkout-close { float: none; }

.message-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.message-popup.show { display: flex; }

.message-card {
  width: 100%;
  max-width: 330px;
  background: white;
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.message-card h3 { margin: 0 0 8px; }
.message-card p { color: #555; white-space: pre-wrap; }

.message-card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: #111;
  color: white;
  font-weight: bold;
}
