/* ==========================================================================
   Mobile/Tablet Category Nav Bar
   Figma: Austin Natural Mattress node-id=16-141 (mobile header)
   Task: 86exc5gtu
   ========================================================================== */

/* Container — appended after Blocksy header rows on mobile device */
.header-category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  background: rgba(89, 64, 46, 0.06);
  padding: 8px 16px;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.header-category-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Category links */
.header-category-nav a {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  color: #59402e;
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 4px;
  flex-shrink: 0;
}

.header-category-nav a:hover {
  color: #8f3237;
  text-decoration: underline;
}

/* Sale item — red to match desktop (Figma) */
.header-category-nav a.sale-menu-item {
  color: #ef4444;
}

.header-category-nav a.sale-menu-item:hover {
  color: #ef4444;
}

/* Pipe dividers */
.header-category-nav .category-divider {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #59402e;
  opacity: 0.4;
  padding: 0 6px;
  flex-shrink: 0;
  user-select: none;
}

/* Sticky wrapper — JS adds is-sticky to this single element; children always render nav-then-search */
.header-sticky-group {
  display: block;
  width: 100%;
}

.header-sticky-group.is-sticky {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999;
  /* Opaque equivalent of rgba(89,64,46,0.06) over white — prevents see-through over page content */
  background: rgb(245, 243, 242);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hide on desktop — only show on mobile/tablet */
@media (min-width: 1025px) {
  .header-category-nav,
  .header-search-row {
    display: none;
  }
}
