.header .highlight {
  color: #ec0909;
}

/* === Menu Card Header === */
.menu-card-header {
  grid-column: span 12;
  display: grid;
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 14px;
  background: #fafafa;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Raleway";
  text-transform: uppercase;
  font-weight: 500;
}
.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* === Modal Overlay === */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  transition: opacity 0.3s ease;
  pointer-events: none; /* 🔹 overlay doesn’t block clicks */
}
.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === Modal Box === */
.modal-dialog {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  width: min(900px, 100%);
  max-width: none !important;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUp 0.35s ease;
  pointer-events: auto; /* 🔹 modal itself accepts clicks */
}
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Modal Body === */
.modal-body {
  display: flex;
  gap: 20px;
  padding: 20px;
}
.modal-left,
.modal-right {
  flex: 1;
}

/* Left section (scrollable, with carousel) */
.modal-left {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-left::-webkit-scrollbar {
  display: none;
}

.modal-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
  height: 300px;
}
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: url("./assets/sliderbg.png");
  mask-image: url("./assets/sliderbg.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.carousel-img.active {
  opacity: 1;
  z-index: 1;
}

/* Catering info */
.catering-info {
  font-family: 'Raleway Light', sans-serif;
  margin-top: 0;
  text-align: left;
  font-size: 0.95rem;
  color: #000;
}
.catering-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ec0909;
}
.catering-info h4 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #000;
  font-weight: bold;
}
.catering-info p {
  margin: 6px 0;
  font-size: 0.9rem;
}

/* Two-column details with icons */
.catering-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.catering-details li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #333;
}
.catering-details i {
  color: #ec0909;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.catering-details strong {
  display: block;
  font-weight: bold;
  color: #000;
  font-size: 0.95rem;
}
.catering-details span {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

/* Right section */
.modal-right {
  flex: 1;
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-right::-webkit-scrollbar {
  display: none;
}

.modal-title {
  font-family: "Antonio Script", cursive;
  font-size: 2rem;
  color: #ec0909;
  margin-bottom: 15px;
}

/* Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f8f8;
  padding: 14px 20px;
  border-top: 1px solid #eee;
}
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-btn {
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  background: #ec0909;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#count {
  font-size: 1.2rem;
  font-weight: bold;
}
.add-cart::before {
  margin-right: 6px;
  font-weight: bold;
  font-size: 1.1em;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  border: none;
  background: #fff;
  padding: 4px 10px;
  border-radius: 50%;
  cursor: pointer;
  color: #999;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.modal-close:hover {
  color: #ec0909;
  background: #f2f2f2;
}

/* Menu sections inside right */
.menu-section {
  margin-bottom: 24px;
  /* margin-inline: 12px; */
}
.section-header h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #000;
}
.section-header span {
  font-size: 0.9rem;
  color: #666;
}
.menu-section ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 7px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #000;
}
.menu-item em {
  font-size: 0.85rem;
  color: #333;
  font-style: normal;
  margin-left: 5px;
}
.item-counter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.item-counter button {
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  background: #ec0909;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-counter span {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

/* Notes */
.special-notes {
  width: 100%;
  min-height: 100px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.95rem;
  resize: vertical;
}

/* Mobile */
@media (max-width: 768px) {
  .modal-dialog {
    width: 100%;
    height: 90vh;
    border-radius: 10px;
  }
  .modal-body {
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
  }
  .modal-left,
  .modal-right {
    max-height: none;
    overflow: visible;
    padding: 12px;
  }
  .modal-carousel {
    aspect-ratio: 16/9;
    height: 300px;
  }
  .modal-title {
    font-size: 1.5rem;
    text-align: center;
  }
  .catering-info h3 {
    font-size: 1rem;
    text-align: center;
  }
  .modal-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
    z-index: 10;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .counter {
    justify-content: flex-start;
  }
  .add-cart {
    flex: 0 0 auto;
    text-align: right;
    font-size: 1rem;
  }
  #h1.catering-header {
    font-size: 2rem !important;
    line-height: 1.2;
    text-align: center;
  }
}
