/* ==================================================
   GLOBAL LAYOUT & PAGE WRAPPER
================================================== */
.catering-page-wrapper {
  width: 95%;
  max-width: 1200px;
  margin: 120px auto 40px auto;
  display: block;
  box-sizing: border-box;
}

.catering-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
}

/* ==================================================
   SIDEBAR & CONTENT
================================================== */
#sidebar-container {
  align-self: flex-start;
  position: sticky;
  top: 120px;
  flex: 0 0 240px;
  max-width: 240px;
  flex-shrink: 0;
}

#catering-container {
  flex: 1;
  margin-left: 25px;
  position: relative;
  box-sizing: border-box;
}

/* ==================================================
   TITLES & SCROLL FIX
================================================== */
.catering-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #1a1a1a;
}

.catering-section h2 {
  text-align: center;
  width: 100%;
  margin: 0 auto 10px auto;
  font-size: clamp(20px, 4vw, 28px);
  scroll-margin-top: 130px;
}

/* ==================================================
   GRID SYSTEM
================================================== */
.catering-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.unified-card {
  background: white;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

/* ==================================================
   CART ICON & BADGE
================================================== */
.cart-icon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 15px;
}

.cart-icon img {
  width: 35px;
  height: auto;
  display: block;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: #27ae60;
  color: white;
  font-size: 12px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 2px solid white;
  line-height: 1;
}
/* ================================
   ⭐ MATCH DESSERT PRICE STYLE
================================ */
.catering-price-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* same spacing as dessert */
  margin: 10px 0;
}

.catering-price-label {
  font-size: 18px;
  font-weight: 400;
  color: #444; /* same soft gray as dessert */
}

.catering-price-value {
  font-size: 18px;
  font-weight: 500; /* slight emphasis */
  color: #333;
}
.catering-section {
  margin-top: 30px; /* adjust 40–70px as you like */
}
.catering-section:first-of-type {
  margin-top: 0;
}
.item-note {
  font-size: 14px;
  color: #777;
  margin-top: -5px;
  margin-bottom: 10px;
}
.item-note-header {
  font-size: 14px;
  color: red;
  margin-top: -8px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ==================================================
   ⭐ UNIFIED MOBILE HEADER (CATERING)
================================================== */
.mobile-header-catering {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop header */
  .catering-page-body .main-header {
    display: none !important;
  }

  /* Show mobile header */
  .catering-page-body .mobile-header-catering {
    display: block;
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-header-top-catering {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
  }

  .mobile-logo-catering img {
    width: 55px;
  }

  .mobile-cart-icon-catering {
    position: relative;
  }

  .mobile-cart-icon-catering img {
    width: 32px;
    height: 32px;
  }

  #cart-count-mobile-catering {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #27ae60;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
  }

  /* MENU BUTTON */
  .mobile-menu-btn-catering {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: #f8f8f8;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }

  /* DROPDOWN */
  .mobile-dropdown-catering {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid #eee;
  }

  .mobile-dropdown-catering.active {
    display: flex;
  }

  .mobile-dropdown-catering a {
    padding: 14px 20px;
    font-size: 17px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }

  .mobile-dropdown-catering a:last-child {
    border-bottom: none;
  }

  /* ⭐ FIXED MOBILE WRAPPER (NO DUPLICATION) */
  .catering-page-wrapper {
    margin-top: 0;
    padding-top: 230px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .catering-layout {
    flex-direction: column;
    gap: 20px;
  }

  #sidebar-container {
    position: relative;
    top: 0;
    width: 100%;
    flex: none;
    max-width: 100%;
    margin-bottom: 20px;
  }

  #catering-container {
    margin-left: 0 !important;
    width: 100%;
  }

  .catering-items {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .catering-section h2 {
    scroll-margin-top: 180px;
  }
}

/* ==================================================
   ANIMATION
================================================== */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble-animate {
  animation: bubblePop 0.35s ease-out;
}

@keyframes bubblePop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* ==================================================
   ⭐ BACK TO TOP BUTTON
================================================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: #27ae60;
  color: white;
  font-size: 26px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 99999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #219150;
  transform: scale(1.1);
}

/* ==================================================
   ⭐ FLOATING JUMP MENU
================================================== */
.jump-menu-btn {
  position: fixed;
  top: 125px;
  left: 25px;
  background: #27ae60;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  transition: 0.25s ease;
}
@media (min-width: 769px) {
  .jump-menu-btn {
    left: 25px; /* move right — adjust as needed */
  }

  .jump-menu-panel {
    left: 25px; /* keep dropdown aligned with button */
  }
}

.jump-menu-btn:hover {
  background: #219150;
  transform: scale(1.05);
}

/* ⭐ FIXED JUMP MENU PANEL WITH VERTICAL SCROLLBAR */
.jump-menu-panel {
  position: fixed;
  top: 175px; /* under the button */
  left: 25px;
  background: white;
  border-radius: 12px;
  padding: 10px 15px;
  width: 240px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  z-index: 99999;
  box-sizing: border-box;

  /* FIX: Limit height and turn on the right side scrollbar */
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Styling the scrollbar track on the right side cleanly */
.jump-menu-panel::-webkit-scrollbar {
  width: 6px;
}
.jump-menu-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.jump-menu-panel::-webkit-scrollbar-thumb {
  background: #27ae60;
  border-radius: 10px;
}

.jump-menu-panel.active {
  display: flex;
}

.jump-menu-panel button {
  background: none;
  border: none;
  padding: 12px 5px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}

.jump-menu-panel button:last-child {
  border-bottom: none;
}

.jump-menu-panel button:hover {
  color: #27ae60;
  transform: translateX(4px);
}

/* ⭐ FIRST SECTION FIX */
.catering-section:first-of-type {
  scroll-margin-top: 230px;
}

@media (max-width: 768px) {
  .jump-menu-btn {
    top: 150px; /* was 90px — move it DOWN */
    left: 15px;
  }

  .jump-menu-panel {
    top: 200px; /* panel stays directly under the button */
    left: 15px;
  }
}
