﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Sarabun', sans-serif;
}

body {
  background: #fff5f0;
  color: #2b2b2b;
  padding-bottom: 80px;
}

.hidden {
  display: none !important;
}

.center-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

/* ===== Header ===== */
.header {
  background: #e0692b;
  color: white;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.header p {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== Menu List ===== */
.menu-list {
  padding: 16px;
}

.category-title {
  font-size: 16px;
  font-weight: bold;
  margin: 16px 0 8px;
  color: #e0692b;
}

.menu-item-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.menu-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0f0;
  margin-right: 12px;
  flex-shrink: 0;
}

.menu-item-info {
  flex: 1;
}

.menu-item-name {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 4px;
}

.menu-item-price {
  color: #e0692b;
  font-size: 14px;
}

.menu-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e0692b;
  background: white;
  color: #e0692b;
  font-size: 18px;
  cursor: pointer;
}

.qty-btn:active {
  background: #ffe8dc;
}

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

.empty-text {
  text-align: center;
  color: #999;
  padding: 40px 16px;
}

/* ===== Cart Button ===== */
.cart-button {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #e0692b;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 100;
}

.modal-content {
  background: white;
  width: 100%;
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  overflow-y: auto;
}

.modal-content.center-text {
  text-align: center;
  border-radius: 16px;
  margin: auto 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.close-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.modal-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #eee;
}

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

.submit-btn {
  width: 100%;
  background: #e0692b;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: 0.6;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-content.center-text h2 {
  margin-bottom: 8px;
}

.modal-content.center-text p {
  color: #666;
  margin-bottom: 20px;
}
