/* ==========================
   GLOBAL
   ========================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}

h1,
h2 {
  margin: 0 0 12px 0;
}

/* ==========================
   HERO SECTION
   ========================== */
.hero-menu-page {
  width: 100%;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 16px;
  gap: 24px;
  position: relative;
  background: url("https://images.squarespace-cdn.com/content/v1/6800d959a14cab232e464f76/d8f11ab3-3069-4e22-9959-bd2b8f9f1e1a/Cafe+Photos-05_sml.jpg?format=2500w")
    center/cover no-repeat;
  color: #fff;
}

.hero-menu-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.hero-menu-page h1 {
  font-size: 3rem;
  color: #fff;
}

/* ==========================
   ORDER CONTAINER
   ========================== */
.order-container {
  width: 100%;
  max-width: 640px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: #f2f2f2; /* light grey background */
  border-radius: 14px;
  padding: 18px;
  gap: 12px;
  color: #000;
}

.order-items-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card {
  background: #f8f9fa;
  color: #000;
  padding: 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s all;
}

.menu-card:hover {
  background: #eceff1;
  transform: translateY(-2px);
}

.order-buttons {
  display: flex;
  gap: 10px;
}

.order-buttons button {
  flex: 1;
  padding: 16px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  transition: 0.2s all;
}

.order-buttons button:hover {
  background: #607d8b;
}

/* ==========================
   MASTER MENU BUTTONS
   ========================== */
.master-menu-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.master-menu-btn {
  padding: 18px 28px;
  font-size: 1.3rem;
  border-radius: 12px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: 0.2s all;
}

.master-menu-btn:hover {
  background: #607d8b;
}

/* ==========================
   ACCORDION
   ========================== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

.accordion-header {
  padding: 18px;
  font-size: 1.3rem;
  border-radius: 12px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  cursor: pointer;
  text-align: center;
  transition: 0.2s all;
}

.accordion-header:hover {
  background: #607d8b;
  color: #fff;
}

/* ==========================
   COLLAPSED SECTIONS / MENU ITEMS
   ========================== */
.collapsed-section {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================
   DEBUG PANEL
   ========================== */
.debugPanel {
  height: 180px;
  overflow-y: auto;
  background: #fff8dc;
  border: 1px solid #e0c080;
  padding: 10px;
  font-family: monospace;
}

.debugLine {
  margin-bottom: 5px;
}
.info {
  color: #00796b;
}
.error {
  color: #e65100;
}

/* ==========================
   MODAL
   ========================== */
.modalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalContent {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  max-width: 500px;
  width: 90%;
  font-size: 1.2rem;
}

/* ==========================
   MOBILE FIRST BOOST + FULL WIDTH
   ========================== */
@media (max-width: 768px) {
  .order-container,
  .accordion,
  .collapsed-section {
    max-width: 100%;
  }

  .hero-menu-page {
    padding: 20px 12px;
    gap: 22px;
  }

  .hero-menu-page h1 {
    font-size: 3.2rem;
  }

  .order-container {
    min-height: 540px;
    padding: 20px;
  }

  .order-items-list {
    gap: 12px;
  }

  .menu-card {
    font-size: 1.35rem;
    padding: 20px;
  }

  .master-menu-btn {
    width: 100%;
    font-size: 1.4rem;
    padding: 20px;
  }

  .accordion-header {
    font-size: 1.4rem;
    padding: 20px;
  }

  .order-buttons {
    flex-direction: column;
  }

  .order-buttons button {
    font-size: 1.35rem;
    padding: 18px;
  }
}
