:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --accent: #f59e0b;
  --bg: #fffbf5;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #78716c;
  --border: #fed7aa;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo h1 { font-size: 1.3rem; color: var(--primary-dark); }
.logo p { font-size: 0.75rem; color: var(--muted); }

.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.cart-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.cart-trigger:hover { background: var(--primary-dark); transform: translateY(-1px); }
.badge {
  background: #fef08a;
  color: #1c1917;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

/* Hero */
.hero-section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  background: #ffedd5;
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.hero-text h2 { font-size: 2.3rem; line-height: 1.3; margin-bottom: 1rem; color: var(--primary-dark); }
.hero-text p { color: var(--muted); font-size: 1rem; margin-bottom: 1.5rem; }
.hero-btns { display: flex; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  border: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(234,88,12,0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--primary-dark); border: 1px solid var(--border); }
.btn-secondary:hover { background: #fff7ed; }
.btn-block { width: 100%; margin-top: 12px; }

.hero-feature-card {
  background: white;
  border: 2px solid var(--border);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(234,88,12,0.08);
}

.feature-icon { font-size: 4.5rem; margin-bottom: 0.5rem; }
.feature-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-top: 0.8rem; }

/* Category Bar */
.category-bar {
  max-width: 1100px;
  margin: 1.5rem auto 1rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-tab {
  background: white;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-tab.active, .cat-tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Menu Grid */
.menu-wrap {
  max-width: 1100px;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}

.foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.food-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(234,88,12,0.1);
  border-color: var(--primary);
}

.card-top {
  background: #fff7ed;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.card-emoji { font-size: 3.5rem; }
.badge-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h4 { font-size: 1.15rem; margin-bottom: 0.3rem; color: var(--primary-dark); }
.card-body p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; flex-grow: 1; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffedd5;
  padding-top: 0.8rem;
}

.price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }

/* USP */
.usp-section {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.usp-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.usp-item { text-align: center; }
.usp-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.usp-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.usp-item p { font-size: 0.85rem; color: var(--muted); }

/* Modals */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.active { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); }
.modal-box {
  position: relative;
  max-width: 480px;
  margin: 40px auto;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  padding: 1rem 1.2rem;
  background: #fff7ed;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-x { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1.2rem; overflow-y: auto; }
.modal-foot {
  padding: 1rem 1.2rem;
  background: #fff7ed;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.food-summary-box {
  display: flex;
  gap: 12px;
  background: #fff7ed;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.summary-emoji { font-size: 2.5rem; }
.summary-price { font-weight: 700; color: var(--primary); }

.opt-group { margin-bottom: 1rem; }
.opt-group label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 0.3rem; }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}

.opt-chip {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #fff;
}
.opt-chip input { margin-right: 6px; }

.qty-box { display: flex; justify-content: space-between; align-items: center; }
.qty-btn-wrap { display: flex; align-items: center; gap: 12px; }
.btn-step { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: white; cursor: pointer; font-size: 1.1rem; }

.cart-items-wrap { display: flex; flex-direction: column; gap: 8px; }
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffbf5;
}

.cart-foot { flex-direction: column; gap: 10px; }
.total-bar { display: flex; justify-content: space-between; font-size: 1.15rem; }
.total-num { color: var(--primary); }
.btn-actions { display: flex; justify-content: flex-end; gap: 10px; }

.form-group { margin-bottom: 0.8rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.order-recap { background: #fff7ed; padding: 10px; border-radius: 8px; border: 1px dashed var(--border); margin-top: 10px; font-size: 0.85rem; }
.recap-final { text-align: right; margin-top: 6px; font-size: 1rem; color: var(--primary); }

.success-icon { font-size: 3.5rem; margin-bottom: 0.5rem; }
.badge-order-id { background: #ffedd5; color: var(--primary-dark); padding: 4px 12px; border-radius: 20px; display: inline-block; margin: 10px 0; font-weight: 600; }
.eta-line { color: var(--muted); margin-bottom: 1rem; }

.footer { text-align: center; padding: 2rem 1.5rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .nav-links { display: none; }
}
