/* ============================================================
   MENU PAGE SPECIFIC STYLES
   ============================================================ */


/* ============================================================
   STICKY CATEGORY TABS
   ============================================================ */

.menu-tabs {
  position: sticky;

  /*
   * Sits below the sticky topbar + header
   */
  top: 129px;

  background: #fff;

  z-index: 400;

  box-shadow: var(--shadow-sm);
}


/* ============================================================
   CATEGORY TABS - HORIZONTAL SCROLL
   ============================================================ */

.menu-tabs-inner {
  display: flex;

  flex-wrap: nowrap;

  gap: 8px;

  padding: 14px 24px;

  /*
   * Only category tabs scroll horizontally
   */
  overflow-x: auto;
  overflow-y: hidden;

  white-space: nowrap;

  -webkit-overflow-scrolling: touch;

  /*
   * Firefox
   */
  scrollbar-width: thin;

  scrollbar-color:
    var(--maroon)
    var(--cream);
}


/* Chrome / Edge / Safari */

.menu-tabs-inner::-webkit-scrollbar {
  height: 6px;
}

.menu-tabs-inner::-webkit-scrollbar-track {
  background: var(--cream);

  border-radius: 10px;
}

.menu-tabs-inner::-webkit-scrollbar-thumb {
  background: var(--maroon);

  border-radius: 10px;
}

.menu-tabs-inner::-webkit-scrollbar-thumb:hover {
  background: var(--maroon-dark);
}


/* ============================================================
   CATEGORY TAB
   ============================================================ */

.menu-tab {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  /*
   * Prevent category tab from shrinking
   */
  flex: 0 0 auto;

  padding: 9px 18px;

  border-radius: 30px;

  font-size: 0.88rem;

  font-weight: 600;

  color: var(--maroon-dark);

  background: var(--cream);

  white-space: nowrap;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.menu-tab:hover {
  background: var(--cream-dark);
}

.menu-tab.active {
  background: var(--maroon);

  color: #fff;
}


/* ============================================================
   MENU LIST
   ============================================================ */

.menu-list {
  padding: 30px 0 20px;
}


/* ============================================================
   MENU CATEGORY
   ============================================================ */

.menu-category {
  padding-top: 32px;

  margin-bottom: 46px;

  /*
   * Prevent category title from being hidden
   * behind sticky elements when clicking a tab.
   */
  scroll-margin-top: 260px;
}


/* ============================================================
   STICKY CATEGORY TITLE
   ============================================================ */

.category-title {
  position: sticky;

  /*
   * menu-tabs starts at 129px.
   * Category title sits below the sticky tabs.
   */
  top: 190px;

  z-index: 300;

  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 1.5rem;

  color: var(--maroon-dark);

  margin: 0 0 24px;

  padding: 12px 0;

  /*
   * Required for sticky background
   */
  background: #fff;

  border-bottom: 2px solid var(--cream-dark);

  position: sticky;
}


/* Gold underline */

.category-title::after {
  content: '';

  position: absolute;

  left: 0;

  bottom: -2px;

  width: 60px;

  height: 2px;

  background: var(--gold);
}


/* ============================================================
   CATEGORY ICON
   ============================================================ */

.category-icon {
  width: 34px;

  height: 34px;

  flex: 0 0 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--cream);

  color: var(--maroon-dark);
}

.category-icon svg {
  width: 19px;

  height: 19px;
}


/* ============================================================
   MENU ITEM GRID
   ============================================================ */

/*
 * Desktop:
 * 2 columns
 *
 * Mobile:
 * 1 column
 *
 * NO horizontal scrolling here.
 */

.item-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;

  width: 100%;
}


/* ============================================================
   MENU ITEM
   ============================================================ */

.menu-item {
  display: flex;

  align-items: center;

  gap: 8px;

  width: 100%;

  min-width: 0;

  box-sizing: border-box;

  background: #fff;

  border: 1px solid var(--cream-dark);

  border-radius: var(--radius-md);

  padding: 18px 20px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-item:hover {
  border-color: var(--gold);

  box-shadow: var(--shadow-sm);
}


/* ============================================================
   MENU ITEM NAME
   ============================================================ */

.item-name {
  flex: 0 1 auto;

  min-width: 0;

  max-width: 100%;

  overflow: hidden;
}


/*
 * Menu name must stay on ONE line
 */

.menu-item h3 {
  font-family: var(--font-body);

  font-size: 1rem;

  font-weight: 600;

  color: var(--ink);

  display: flex;

  align-items: center;

  gap: 8px;

  margin: 0;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


/* ============================================================
   MENU DESCRIPTION
   ============================================================ */

.menu-item p {
  font-size: 0.85rem;

  color: var(--text-muted);
}


/* ============================================================
   DOTTED LINE
   ============================================================ */

.dots {
  flex: 1 1 auto;

  min-width: 12px;

  height: 0;

  border-bottom:
    2px dotted var(--cream-dark);

  margin: 0;
}


/* ============================================================
   VEG DOT
   ============================================================ */

.veg-dot {
  width: 13px;

  height: 13px;

  border:
    1.5px solid #2e7d32;

  border-radius: 3px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 13px;
}

.veg-dot::after {
  content: '';

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: #2e7d32;
}


/* ============================================================
   PRICE
   ============================================================ */

.item-side {
  display: flex;

  align-items: center;

  flex: 0 0 auto;

  white-space: nowrap;
}

.price {
  font-weight: 700;

  color: var(--maroon-dark);

  font-size: 1rem;

  white-space: nowrap;
}


/* ============================================================
   MENU CTA
   ============================================================ */

.menu-cta {
  background: var(--maroon-dark);

  color: #fff;

  padding: 60px 0;

  margin-top: 20px;
}

.menu-cta h2 {
  font-size:
    clamp(1.4rem, 3vw, 1.9rem);

  margin-bottom: 10px;
}

.menu-cta p {
  color: #f0e2c8;

  margin-bottom: 22px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 768px) {

  /* -----------------------------------------
     Menu items = 1 column
     ----------------------------------------- */

  .item-grid {
    grid-template-columns: 1fr;
  }


  /* -----------------------------------------
     Category tabs
     ----------------------------------------- */

  .menu-tabs-inner {
    padding-right: 90px;
  }


  /* -----------------------------------------
     Menu container
     Keeps content clear of fixed buttons
     ----------------------------------------- */

  .menu-list .container {
    padding-right: 90px;
  }


  /* -----------------------------------------
     Sticky category title
     ----------------------------------------- */

  .category-title {
    top: 175px;

    font-size: 1.3rem;

    padding: 10px 0;

    margin-bottom: 18px;
  }


  /* -----------------------------------------
     Menu item
     ----------------------------------------- */

  .menu-item {
    width: 100%;

    min-width: 0;
  }


  .menu-item h3 {
    min-width: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 480px) {

  /* -----------------------------------------
     Category tabs
     ----------------------------------------- */

  .menu-tabs-inner {
    padding:
      10px 16px;

    padding-right: 72px;

    gap: 6px;
  }


  .menu-tab {
    padding:
      8px 14px;

    font-size: 0.82rem;
  }


  /* -----------------------------------------
     Menu container
     ----------------------------------------- */

  .menu-list .container {
    padding-right: 72px;
  }


  /* -----------------------------------------
     Sticky category title
     ----------------------------------------- */

  .category-title {
    top: 150px;

    font-size: 1.2rem;

    gap: 8px;

    padding: 9px 0;

    margin-bottom: 18px;
  }


  /* -----------------------------------------
     Category icon
     ----------------------------------------- */

  .category-icon {
    width: 26px;

    height: 26px;

    flex: 0 0 26px;
  }


  .category-icon svg {
    width: 14px;

    height: 14px;
  }


  /* -----------------------------------------
     Menu item
     ----------------------------------------- */

  .menu-item {
    gap: 6px;

    padding: 16px;
  }


  .menu-item h3 {
    font-size: 0.92rem;
  }


  /* -----------------------------------------
     Dots
     ----------------------------------------- */

  .dots {
    min-width: 8px;
  }


  /* -----------------------------------------
     Price
     ----------------------------------------- */

  .price {
    font-size: 0.95rem;
  }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {

  .category-title {
    top: 145px;

    font-size: 1.1rem;
  }

  .menu-item {
    padding: 14px;
  }

  .menu-item h3 {
    font-size: 0.88rem;
  }

  .price {
    font-size: 0.9rem;
  }
}