/* ===========================
   ⭐ CATERING MODAL OVERLAY
   =========================== */
.catering-modal-overlay {
  position: fixed;
  inset: 0; /* Modern shorthand for top/left/bottom/right: 0 */
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* ===========================
   ⭐ MODAL BOX
   =========================== */
.catering-modal {
  background: white;
  padding: 30px 25px;
  width: 90%;
  max-width: 380px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

.catering-modal h2 {
  margin-bottom: 20px;
  font-size: clamp(20px, 4vw, 24px); /* Scales between mobile/desktop */
  font-weight: 700;
  color: #1a1a1a;
}

/* ===========================
   ⭐ QUANTITY ROW
   =========================== */
.qty-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.qty-btn {
  width: 44px; /* Professional touch target size */
  height: 44px;
  font-size: 22px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e9ecef;
}

#cateringQtyValue {
  font-size: 24px;
  font-weight: 700;
  min-width: 40px;
}

/* ===========================
   ⭐ TOTAL & BUTTONS
   =========================== */
.total-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333;
}

.modal-buttons {
  display: flex;
  flex-direction: column; /* Stacked layout is more thumb-friendly on mobile */
  gap: 12px;
}

.catering-modal .add-btn {
  width: 100%;
  background: #27ae60;
  color: white;
  border: none;
  padding: 14px 0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.catering-modal .add-btn:hover {
  background: #219150;
}

.catering-modal .close-btn {
  background: transparent;
  color: dark black;
  background: #bdc3c7;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

/* ===========================
   ⭐ CATERING ITEM CARDS
   =========================== */
.unified-card h3 {
  font-size: clamp(18px, 3vw, 22px);
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

.price-line {
  font-size: clamp(16px, 2.5vw, 18px);
  margin: 4px 0 12px 0;
  font-weight: 600;
}

.unified-card .add-btn {
  width: 110px;
  height: 40px;
  font-size: 15px;
  border-radius: 8px;
  background: #27ae60;
  color: white;
  border: none;
  cursor: pointer;
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  font-weight: 600;
}

.unified-card .add-btn:hover {
  transform: translateY(-2px);
  background: #27ae60;
}

/* ===========================
   ⭐ CATEGORY HEADERS
   =========================== */
.catering-section h2 {
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  color: #1a1a1a;
}

.catering-section .subtitle,
.subtitle {
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 500;
  margin-bottom: 30px;
  text-align: center;
  color: #666;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================
   ⭐ MOBILE AUTO-ADJUST
   =========================== */
@media (max-width: 768px) {
  .catering-modal {
    padding: 25px 20px;
  }

  .qty-btn {
    width: 48px; /* Larger for mobile thumbs */
    height: 48px;
  }

  .unified-card .add-btn {
    width: 100%; /* Full width for easier tapping on mobile cards */
    height: 44px;
  }
}
/* ⭐ HIDE CATEGORY BUTTON + PANEL WHEN MODAL IS OPEN */
.hide-floating-ui #jumpMenuBtn,
.hide-floating-ui #jumpMenuPanel {
  display: none !important;
}
