/* ── Category nav bar ─────────────────────────────────────── */
.cat-nav {
  background: #1A1A1A;
  position: sticky;
  top: 70px;
  z-index: 800;
  border-bottom: 1px solid #111;
}
.cat-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  width: 100%;
}

.cat-nav-item {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.cat-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 44px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  letter-spacing: .01em;
  width: 100%;
}
.cat-nav-link:hover,
.cat-nav-item:hover .cat-nav-link {
  color: #fff;
  border-bottom-color: #E84400;
}
.cat-nav-link.active {
  color: #fff;
  border-bottom-color: #E84400;
}

/* ── Mega dropdown (shared) ───────────────────────────────── */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-top: 3px solid #E84400;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 900;
  min-width: 220px;
}
.mega-dropdown.drop-left {
  left: auto;
  right: 0;
}
.cat-nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Flat dropdown (single-panel) */
.mega-dropdown:not(.mega-flyout) {
  padding: 20px 24px;
}
.mega-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7A7A7A;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E6E1DA;
  white-space: nowrap;
}
.mega-cols { display: grid; gap: 2px 28px; }
.mega-cols-1 { grid-template-columns: 1fr; }
.mega-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-cols-3 { grid-template-columns: repeat(3, 1fr); }

.mega-link {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: #4A4A4A;
  text-decoration: none;
  white-space: nowrap;
  transition: color .1s;
  line-height: 1.4;
}
.mega-link:hover { color: #E84400; }

.mega-view-all {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #E6E1DA;
  font-size: 12px;
  font-weight: 700;
  color: #E84400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mega-view-all:hover { color: #C83C00; }

/* ── Flyout two-panel dropdown ────────────────────────────── */
.mega-flyout {
  display: flex;
  align-items: stretch;
  padding: 0;
  min-width: 520px;
}

/* Left panel — group names */
.mega-left {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #E6E1DA;
  padding: 16px 0 12px;
  display: flex;
  flex-direction: column;
}
.mega-left .mega-header {
  padding: 0 16px 10px;
  margin: 0 0 4px;
}
.mega-left .mega-view-all {
  margin: auto 16px 0;
  padding-top: 10px;
  border-top: 1px solid #E6E1DA;
}

.mega-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #4A4A4A;
  cursor: pointer;
  transition: background .1s, color .1s;
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.mega-group:hover,
.mega-group.active {
  background: #FFF1EB;
  color: #E84400;
  border-left-color: #E84400;
}
.mega-arr {
  font-size: 10px;
  color: #C0C0C0;
  flex-shrink: 0;
  margin-left: 10px;
}
.mega-group.active .mega-arr { color: #E84400; }

/* Right panel — subcategory links */
.mega-right {
  flex: 1;
  min-width: 240px;
  padding: 16px 20px;
}
.mega-right-panel .mega-header {
  margin-top: 0;
}
.mega-right .mega-link {
  white-space: normal;
}

/* ── Header search overlay panel ─────────────────────────── */
.header-search-panel {
  display: none;
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 20;
  align-items: center;
  padding: 0 8px 0 20px;
  border-bottom: 3px solid #E84400;
}
.header-search-panel.open { display: flex; }
.header-search-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #1A1A1A;
  background: transparent;
  font-family: inherit;
  padding: 0 4px;
}
.header-search-field::placeholder { color: #9A9A9A; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cat-nav { display: none; }
  .header-search-field { font-size: 15px; }
}