/* Shared desktop header geometry: keep every page on the same navigation rhythm. */
@media (min-width: 992px) {
  .header-nine .uc-navbar {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) 158px;
    align-items: center;
    column-gap: 28px;
    width: 100%;
  }

  .header-nine .uc-navbar-left,
  .header-nine .uc-navbar-center,
  .header-nine .uc-navbar-right {
    margin: 0 !important;
  }

  .header-nine .uc-navbar-left {
    grid-column: 1;
    min-width: 0;
  }

  .header-nine .uc-navbar-center {
    grid-column: 2;
    min-width: 0;
    width: auto;
    display: flex;
    justify-content: center;
    position: static !important;
    transform: none !important;
  }

  .header-nine .uc-navbar-right {
    grid-column: 3;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
  }

  .header-nine .uc-navbar-nav {
    align-items: center;
    gap: 20px !important;
  }

  .header-nine .uc-navbar-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 15px !important;
    line-height: 1.1;
  }

  .header-nine .uc-navbar-right > .btn {
    min-height: 44px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 15px !important;
    white-space: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-nine .uc-navbar {
    grid-template-columns: 140px minmax(0, 1fr) 140px;
    column-gap: 16px;
  }

  .header-nine .uc-navbar-nav {
    gap: 12px !important;
  }

  .header-nine .uc-navbar-nav > li > a {
    font-size: 14px !important;
  }

  .header-nine .uc-navbar-right > .btn {
    min-height: 40px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 14px !important;
  }
}

@media (max-width: 991.98px) {
  .header-nine .uc-navbar-main {
    --uc-nav-height: 64px !important;
  }

  .header-nine .uc-navbar {
    width: 100%;
    min-width: 0;
  }

  .header-nine .uc-navbar-left {
    min-width: 0;
  }

  .header-nine .uc-navbar-left .uc-logo > a {
    display: block;
    width: 132px !important;
  }

  .header-nine .uc-navbar-left .uc-logo img {
    display: block;
    width: 100%;
    height: auto;
  }

  .header-nine .uc-navbar-right {
    margin-left: auto;
  }

  .header-nine .uc-navbar-right > .btn {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }
}

@media (max-width: 359.98px) {
  .header-nine .uc-navbar-left .uc-logo > a {
    width: 120px !important;
  }
}
