/* ================================
   Sticky Category Nav – FULL CSS
   ================================ */

/* In-flow bar */
.its-sticky-category-nav-container.original {
  width: 100%;
}

/* Sticky clone — fixed, above content.
   Desktop: top is 0 (your old script behaviour).
   Mobile: top overridden in media query to sit under header. */
.its-sticky-category-nav-container.sticky-clone {
  position: fixed;
  top: 140;              /* desktop default; mobile override below */
  left: 0;
  right: 0;
  z-index: 999;          /* ensure your header/mega-nav is higher, e.g. 1001+ */
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fce500;   /* paint background so it covers content beneath */
}
.its-sticky-category-nav-container.sticky-clone.visible { display: block; }

/* The scrolling strip */
.its-sticky-category-nav {
  background: #fce500;   /* ITS Yellow */
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-x: auto;
  display: flex;
  gap: 2em;
  padding: .75em 1.25em;
  border-bottom: 1px solid #e1d400;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  direction: ltr;

  /* breathing room on the left */
  padding-left: 20px;

  /* keep layout steady when the scrollbar appears */
  scrollbar-gutter: stable;
}

/* Links */
.its-sticky-category-nav a {
  color: #111111;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-size: 1em;
}
.its-sticky-category-nav a::after {
  content: "";
  display: block;
  height: 2px;
  background: #111111;
  width: 100%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  margin-top: 4px;
}
.its-sticky-category-nav a:hover::after,
.its-sticky-category-nav a.active::after { transform: scaleX(1); }

/* Mobile: push the sticky clone below your header/mega-nav.
   If your mobile header is taller/shorter, change 120px. */
@media (max-width: 768px) {
  .its-sticky-category-nav-container.sticky-clone {
    top: 140; /* <-- adjust this to your actual header height on mobile */
  }

  .its-sticky-category-nav {
    -webkit-mask-image: none !important;
            mask-image: none !important;
  }
}

/* Desktop polish */
@media (min-width: 768px) {
  .its-sticky-category-nav {
    justify-content: center;
    font-size: 1.1rem;
  }
}
