@media screen and (max-width: 100px) {

  .hero-emoji {
    font-size: 60px !important;
  }

  .hero-title {
    font-size: 30px !important;
  }

  .hero-subtitle {
    font-size: 22px !important;
  }

  .my-orders-btn {
    font-size: 16px !important;
    padding: 14px 18px !important;
  }

}

* {
  box-sizing: border-box;
}

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

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

/* Header / Food Order Section */
.hero-card {
  background: rgba(255,255,255,0.78);
  border-radius: 30px;
  padding: 28px 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.06);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.hero-emoji {
  font-size: 30px;
  line-height: 1;
}

.hero-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #000;
  line-height: 1;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: #666;
  font-size: 9px;
  line-height: 1.3;
}

.my-orders-btn {
  border: 1px solid rgba(180,90,20,0.25);
  background: white;
  color: #a04f09;
  padding: 15px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Categories */
.categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.category-btn {
  border: none;
  padding: 13px 22px;
  border-radius: 30px;
  background: white;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

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

/* Menu Cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.menu-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  cursor: pointer;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.food-icon {
  font-size: 50px;
  line-height: 1;
}

.menu-card h3 {
  margin: 20px 0 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: #000;
}

.menu-card p {
  display: none;
}

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

.price-row strong {
  font-size: 24px;
  font-weight: 900;
}

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

/* Floating Cart */
.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 */
.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;
}

/* Buttons */
.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;
}

/* Popups */
.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;
}

/* Item Options */
.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;
}

/* Checkout */
.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 */
.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;
}

/* Order History */
.history-card {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.history-card h4 {
  margin: 0 0 8px;
}

.history-meta {
  font-size: 14px;
  color: #444;
  margin-top: 4px;
}

.history-item {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 700px) {
  .hero-card {
    padding: 22px;
    border-radius: 28px;
  }

  .hero-top {
    align-items: flex-start;
    gap: 12px;
  }

  .hero-title-wrap {
    gap: 12px;
  }

  .hero-emoji {
    font-size: 42px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 17px;
    margin-top: 12px;
  }

  .my-orders-btn {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 16px;
  }

  .category-btn {
    padding: 12px 18px;
  }

  .menu-card {
    min-height: 175px;
    padding: 18px;
    border-radius: 24px;
  }

  .food-icon {
    font-size: 38px;
  }

  .menu-card h3 {
    font-size: 22px;
    margin-top: 16px;
  }

  .price-row strong {
    font-size: 20px;
  }

  .plus {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 30px;
  }
}
