:root {
  --primary: #1b5e20;
  --primary-hover: #144618;
  --primary-light: #e8f5e9;
  --accent: #d4af37;
  --accent-dark: #b8901e;
  --text-main: #2d261e;
  --text-muted: #6b6357;
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --border: #e8e2d8;
  --border-focus: #2e7d32;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(45, 38, 30, 0.05);
  --shadow-md: 0 6px 18px rgba(45, 38, 30, 0.08);
  --shadow-lg: 0 12px 28px rgba(45, 38, 30, 0.12);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 60px;
}

/* Header & Nav */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-pill:hover {
  border-color: var(--whatsapp-green);
  color: #128c7e;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  padding: 32px 20px 24px;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  color: #1a3c1e;
  margin-bottom: 12px;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: #3b352e;
}

.badge svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f0eae1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main Layout */
.main-container {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* Menu Grid */
.menu-section h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #1f3b20;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.kuih-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kuih-card:hover, .kuih-card.has-qty {
  border-color: #a5d6a7;
  box-shadow: var(--shadow-md);
}

.kuih-info {
  flex: 1;
}

.kuih-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.kuih-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #24201a;
}

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

.kuih-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f5f0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.1s ease;
}

.qty-btn:hover {
  background: #eef2eb;
  color: var(--primary);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Order Summary Box */
.summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
}

.summary-panel h2 {
  font-size: 1.3rem;
  color: #1a3c1e;
  margin-bottom: 4px;
}

.summary-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b352e;
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Delivery Area Radio Options */
.location-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.location-radio-label {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fdfcf9;
  transition: all 0.15s ease;
}

.location-radio-label:hover {
  border-color: #a5d6a7;
}

.location-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.location-radio-label.checked {
  border-color: var(--primary);
  background: var(--primary-light);
}

.loc-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f3b20;
}

.loc-fee {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.location-radio-label.checked .loc-fee {
  color: var(--primary);
  font-weight: 600;
}

/* Receipt lines */
.order-breakdown {
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 14px 0;
  margin: 18px 0;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breakdown-row:last-child {
  margin-bottom: 0;
}

.breakdown-items-list {
  font-size: 0.85rem;
  color: #4a433a;
  margin-bottom: 10px;
}

.empty-cart-hint {
  font-size: 0.85rem;
  color: #8c8275;
  font-style: italic;
  padding: 6px 0;
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1b5e20;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* WhatsApp submit button */
.btn-whatsapp {
  width: 100%;
  padding: 14px 20px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.btn-whatsapp:disabled {
  background-color: #c4c1ba;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.35;
}

/* Info FAQ section */
.info-section {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.faq-card h3 {
  font-size: 1.15rem;
  color: #1f3b20;
  margin-bottom: 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item h4 {
  font-size: 0.95rem;
  color: #24201a;
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: 50px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px;
  border-top: 1px solid var(--border);
}

.footer strong {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .main-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .summary-panel {
    position: static;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}
