/* Hide Woodmart sticky nav everywhere */
.wd-sticky-nav { display: none !important; }

#nifty-cats {
  padding-top: 5px;
  padding-bottom: 5px;
}

@media (max-width: 1024px) {
  /* keep header row visible; we will collapse/expand menu via burger */
}

#nifty-cats {
  :is(ul,ol) li {
    margin-bottom: 0;
  }
}

/* NEW: Scroll wrapper handles horizontal scrolling only */
#nifty-cats .nifty-scroll-wrapper {
 overflow-x: auto;
  overflow-y: visible; /* allow vertical expansion */
  white-space: nowrap;
  padding: 10px;
  position: relative; /* important for anchoring */
  z-index: 2;
}

#nifty-cats .container {
  overflow: visible;
  position: relative; /* required for anchoring dropdowns properly */
  z-index: 3;
}

/* Container defaults to inline block inside wd-content-layout. If you prefer fixed sidebar, uncomment position rules below. */
#nifty-cats {
  /* position: fixed;
  top: 100px;
  left: 20px; */
  width: 100%;
  z-index: 3;
  /*margin-bottom: 20px;*/

  background: #ffffff;
  color: #111111;
  /*border-radius: 16px;*/
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  font: 500 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header chip */
#nifty-cats .nifty-header {
  background: #0b5ed7; /* ensure ≥ 4.5:1 vs white text */
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 16px 16px 0 0;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
}

/* Top-level list horizontal */
#nifty-cats .nifty-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  display: flex;
  gap: 16px;
  overflow: visible; /* CHANGED from overflow-x:auto */
	position: relative;
  white-space: nowrap;
  z-index: 1;
}
#nifty-cats .nifty-item {
  position: relative;
  border-top: 0;
}

/* Top-level link as pill */
#nifty-cats .nifty-link {
  display: inline-block;
  align-items: center;
  gap: 0;
  padding: 10px 12px;
  text-decoration: none;
  color: #111111;
  background: #ffffff;
  border-radius: 10px;
}

#nifty-cats .nifty-link:hover,
#nifty-cats .nifty-link:focus {
  background: #f8fafc;
  text-decoration: underline;
  outline: none;
}

#nifty-cats .nifty-icon { display: none !important; }
#nifty-cats .nifty-icon img { display: none !important; }

/* Toggle button (for submenus) - hide on desktop, show on small screens */
#nifty-cats .nifty-toggle { display: none !important; }
#nifty-cats .chev { display: none !important; }

/* Dropdown submenu */
#nifty-cats .nifty-subwrap {
  position: fixed; /* required for escaping scroll containers */
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 240px;
  z-index: 9999;
}
#nifty-cats .nifty-item:hover > .nifty-subwrap,
#nifty-cats .nifty-item:focus-within > .nifty-subwrap,
#nifty-cats .nifty-subwrap[data-open="true"] { display: block; }

#nifty-cats .nifty-sub { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow:auto; }
#nifty-cats .nifty-sub .nifty-item { border-top: 0; }
#nifty-cats .nifty-sub .nifty-link { padding: 8px 10px; border-radius: 8px; border: 0; }
#nifty-cats .nifty-sub .nifty-link:hover,
#nifty-cats .nifty-sub .nifty-link:focus { background: #f1f5f9; text-decoration: none; }

/* Responsive */
@media (max-width: 1024px) {
  #nifty-cats { display: block; }
  #nifty-cats .nifty-list { display: block; padding: 0; }
  #nifty-cats .nifty-item { border-top: 1px solid #f1f5f9; }
  #nifty-cats .nifty-link { display: block; padding: 12px 14px; border-radius: 0; border: 0; }
  #nifty-cats .nifty-subwrap { position: static; border: 0; box-shadow: none; border-radius: 0; display: block !important; }
  #nifty-cats .nifty-sub { padding: 0 0 8px 0; }
  #nifty-cats .nifty-sub .nifty-link { padding-left: 20px; }
}

@media (min-width: 1025px) {
    .wd-sticky-nav-enabled { margin-left: 0px !important; }
    .whb-main-header { margin-left: 0px !important; }
}
