/* =============================================================================
   joes-menu-nav.css — Barra horizontal de categorías (/restaurante y /delivery)
   ============================================================================= */

/* ── Contenedor ────────────────────────────────────────────────────────── */
.joes-cat-nav {
  background-color: #0E1520;
  border-top: 1px solid rgba(243, 244, 246, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
}
.joes-cat-nav__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab;
}
.joes-cat-nav__track::-webkit-scrollbar { display: none; }

/* ── Scrollbar fantasma ─────────────────────────────────────────────── */
.joes-cat-nav__scrollbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.joes-cat-nav__scrollbar.is-visible {
  opacity: 1;
}
.joes-cat-nav__scrollbar-thumb {
  position: absolute;
  top: 0;
  height: 100%;
  background: #e46142;
  border-radius: 999px;
  will-change: left, width;
}

/* ── Pills — mobile/tablet: icono ARRIBA, label ABAJO ──────────────────── */
.joes-cat-nav__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  color: #9CA3AF;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  line-height: 1.2;
}
.joes-cat-nav__item:hover {
  color: #F3F4F6;
  text-decoration: none;
}
.joes-cat-nav__item.active {
  background: #e46142;
  border-color: #e46142;
  color: #fff;
  font-weight: 600;
}

/* ── Icono — sin fondo circular ────────────────────────────────────────── */
.joes-cat-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  height: 20px;
}

/* ── Label ─────────────────────────────────────────────────────────────── */
.joes-cat-nav__label {
  font-size: 0.70rem;
  text-align: center;
}

/* ── Desktop: icono IZQUIERDA, label DERECHA (≥ 768 px) ───────────────── */
@media (min-width: 768px) {
  .joes-cat-nav__track {
    gap: 2px;
    padding: 6px 16px 8px;
  }
  .joes-cat-nav__item {
    flex-direction: row;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
  }
  .joes-cat-nav__icon {
    font-size: 0.88rem;
    height: auto;
  }
  .joes-cat-nav__label {
    font-size: 0.84rem;
    text-align: left;
  }
}

/* ── Offset para el header sticky + breathing room ───────────────────────── */
/* Selector (0,1,1): usado por scroll-margin-top que no compite con el plugin */
section.category-section {
  scroll-margin-top: 148px;
}
@media (min-width: 768px) {
  section.category-section {
    scroll-margin-top: 134px;
  }
}
/* Selector (1,1,1): supera al (1,1,0) del plugin (#joes-menu-2026 .category-section)
   que tiene padding:0 y margin-bottom:32px !important                               */
#joes-menu-2026 section.category-section {
  padding-top: 2.5rem !important;
  margin-bottom: 5rem !important;
}
@media (min-width: 768px) {
  #joes-menu-2026 section.category-section {
    padding-top: 2.75rem !important;
    margin-bottom: 6rem !important;
  }
}

/* ── Botón fijo Bebidas ⇄ Cocina (solo donde exista .joes-cat-nav--toggle) ── */
.joes-cat-nav--toggle .joes-cat-nav__track {
  /* reserva espacio a la derecha para que los chips no queden bajo el botón */
  padding-right: 92px;
}
.joes-cat-nav__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 72px;
  min-height: 46px;
  padding: 6px 6px;
  text-decoration: none;
  color: #F15A29;                              /* íconos + label en naranja */
  background: #0F1C2B;                          /* fondo oscuro sólido (no naranja sólido) */
  border: 1.5px solid #F15A29;                 /* borde naranja */
  border-radius: 12px;                          /* como los chips */
  box-shadow: 0 0 9px rgba(241, 90, 41, 0.28); /* resplandor naranja sutil */
  line-height: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.joes-cat-nav__toggle::before {                /* separador vertical discreto a la izquierda */
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(243, 244, 246, 0.14);
}
.joes-cat-nav__toggle:hover,
.joes-cat-nav__toggle:focus-visible {
  background: #142838;
  box-shadow: 0 0 14px rgba(241, 90, 41, 0.5);
  color: #ff6a3c;
  outline: none;
}
.joes-cat-nav__toggle-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.joes-cat-nav__toggle-icons i {
  font-size: 15px;
  line-height: 1;
  color: inherit;                              /* hereda el naranja del botón */
}
.joes-cat-nav__toggle-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: inherit;
}
