/*
 * Alf Theme — Manufacturing Quick Nav Bar
 * Figma node: 853:2061
 *
 * Mirrors products-quick-nav.css exactly — same sticky dark bar,
 * same label/divider/tab pattern — with mfg-qnav prefix.
 *
 * Sticky position sits just below the fixed header (~70px).
 * Active tab: bg #cd261d (red).
 * Inactive tab: bg #373737 (dark grey).
 * Active state toggled by JS scroll-spy.
 */

.mfg-qnav {
  position: sticky;
  top: 70px;
  z-index: calc(var(--z-header, 1000) - 1);
  background-color: #252525;
  border-bottom: 1px solid var(--color-primary, #cd261d);
}

.mfg-qnav__inner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-block: 10px;
}

/* ── "Quick Nav" label ──────────────────────────────────────────── */
.mfg-qnav__label {
  flex-shrink: 0;
  border-left: 4px solid var(--color-primary, #cd261d);
  padding: 8px 12px;
}

.mfg-qnav__label span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #f8faf0;
  white-space: nowrap;
}

/* ── Vertical divider ───────────────────────────────────────────── */
.mfg-qnav__divider {
  flex-shrink: 0;
  width: 1px;
  height: 26px;
  background-color: rgba(248, 250, 240, 0.3);
}

/* ── Tab menu ───────────────────────────────────────────────────── */
.mfg-qnav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  min-width: 0;
}

/* ── Individual tab button ──────────────────────────────────────── */
.mfg-qnav__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-bottom: 2px solid #f8faf0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #f8faf0;
  background-color: #373737;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.mfg-qnav__tab:hover {
  background-color: #4a4a4a;
}

.mfg-qnav__tab--active {
  background-color: var(--color-primary, #cd261d);
  font-weight: 400;
}

.mfg-qnav__tab--active:hover {
  background-color: #b51e16;
}

/* ── Tab icon ───────────────────────────────────────────────────── */
.mfg-qnav__tab-icon {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  object-fit: contain;
  /* Tint icon white — works for PNG icons with transparency */
  filter: brightness(0) invert(1);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mfg-qnav__inner {
    gap: 8px;
  }

  .mfg-qnav__tab {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) {

  .mfg-qnav__label,
  .mfg-qnav__divider {
    display: none;
  }

  .mfg-qnav__menu {
    gap: 6px;
  }

  .mfg-qnav__tab {
    font-size: 11px;
    padding: 6px 8px;
    gap: 6px;
  }

  .mfg-qnav__tab-icon {
    width: 12px;
    height: 12px;
  }
}