/**
 * Loaded LAST after theme CSS (bootstrap + style.min + responsive).
 * Static FTP export puts theme links after the Next.js CSS bundle, so without
 * this file the theme mobile drawer rules hide the desktop header nav.
 */

/* Theme defaults: .navbar-collapse { position:fixed; width:320px; transform:translateX(...) } */
@media (min-width: 992px) {
  .theme-main-menu.header-bar .navbar-expand-lg .navbar-collapse,
  .theme-main-menu.header-bar .navbar-expand-lg .navbar-collapse.collapse,
  .theme-main-menu.header-bar .navbar-expand-lg .navbar-collapse.collapse.show {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    clear: none !important;
    z-index: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    visibility: visible !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .theme-main-menu.header-bar .navbar-expand-lg .navbar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .theme-main-menu.header-bar .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }
}

.theme-main-menu.header-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(36, 64, 52, 0.08) !important;
  padding: 14px 20px !important;
}

@media (min-width: 992px) {
  .theme-main-menu.header-bar {
    padding: 10px 32px !important;
  }
}

.theme-main-menu.header-bar.fixed {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  background: #fff !important;
}

.theme-main-menu.header-bar .header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.theme-main-menu.header-bar .header-actions {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  position: relative;
  z-index: 20;
}

.theme-main-menu.header-bar .header-actions-list {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile drawer remains off-canvas until open */
@media (max-width: 991.98px) {
  .theme-main-menu.header-bar .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  .theme-main-menu.header-bar .navbar-collapse.collapse.show {
    display: block !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }
}
