/* Responsive header; keep dropdowns outside the navigation row unclipped. */
#header .container {
  padding-inline: 0px;
}

#header #masthead,
#header #top-bar,
#header #wide-nav {
  height: auto;
}

#header #masthead .header-inner {
  height: auto;
  padding-block: 12px;
  gap: 60px;
  min-height: 88px;
}

#header #masthead .header-inner > .flex-col {
  min-width: 0;
}

#header #logo {
  flex-shrink: 0;
  margin-right: 0;
  width: 176px;
}

#header #logo img {
  width: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

#header .sd_tops {
  flex-wrap: nowrap;
  gap: 16px;
}

#header .sd_tops > .header-search-form {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
}

#header .header-search-form-wrapper,
#header .searchform-wrapper {
  width: 100%;
  min-width: 0;
  max-width: none;
}

#header .searchform > .flex-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  background: #fff;
  border-radius: 8px;
}

#header .searchform > .flex-row:has(select) {
  grid-template-columns: auto minmax(0, 1fr) 44px;
}

#header .searchform > .flex-row > .flex-col {
  min-width: 0;
  width: auto;
  max-width: none;
  position: static;
}

/* Flatsome flat forms overlap the submit column with a negative margin. */
#header .searchform-wrapper.form-flat .flex-col:last-of-type {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .searchform .search-field {
  width: 100%;
  max-width: none;
  border: 0;
  box-shadow: none;
  min-height: 46px;
  font-size: 16px;
  padding-right: 12px;
}

#header .searchform .ux-search-submit {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: none;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  color: #050a30;
  background: transparent;
  border: 0;
}

#header .std_nav_right {
  flex-wrap: nowrap;
  gap: 18px;
}

#header .std_nav_right > li {
  margin: 0;
  flex-shrink: 0;
}

#header .header-button-1 .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

#header .header-button-1 .button > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.2;
}

#header .header-button-1 .button > span::before {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

#header .header-cart-title {
  white-space: nowrap;
}

#header .nav-icon > a,
#header .account-item > a,
#header .cart-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

#header .nav-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

#header #wide-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#header #wide-nav > .flex-row {
  min-height: 54px;
}

#header #wide-nav .flex-center {
  flex: 1 1 auto;
  min-width: 0;
}

#header .std_bt_nav {
  gap: clamp(8px, 1vw, 16px);
  justify-content: space-between;
}

#header .std_bt_nav > li {
  margin: 0;
}

#header .std_bt_nav > li > a {
  font-size: 16px;
  color: #fff;
  gap: 6px;
  min-height: 48px;
  white-space: nowrap;
}
.sec_menu .container {
    padding-inline: 0 !important;
}
#header .std_bt_nav > li.active > a,
#header .std_bt_nav > li > a:hover,
#header .std_bt_nav > li > a:focus-visible {
  color: #dd3333;
}

#header .std_bt_nav > li > a > .ux-menu-icon {
  width: 19px;
  height: 19px;
  margin-right: 0;
  flex-shrink: 0;
}

#header #top-bar > .flex-row {
  gap: 16px;
  min-height: 36px;
  padding-block: 6px;
  height: auto;
}

#header #top-bar .flex-center {
  position: static;
  flex: 1 1 auto;
}

#header #top-bar .nav {
  gap: 8px;
}

#header #top-bar .nav > li {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

#header #top-bar .header-contact a {
  white-space: nowrap;
  font-size: 13px;
}

#header a:focus-visible,
#header button:focus-visible,
#header input:focus-visible {
  outline: 0px solid #dfba84;
  outline-offset: 3px;
}

/* Align the upper right items with the final desktop navigation item. */
@media (min-width: 850px) {
  #header #top-bar > .container,
  #header #masthead > .header-inner.container,
  #header #wide-nav > .container {
    padding-right: 0 !important;
  }

  /* Flatsome's clearfix becomes an empty flex item and adds a trailing gap. */
  #header #top-bar > .container::after,
  #header #masthead > .header-inner.container::after {
    content: none;
    display: none;
  }

  #header #top-bar .header-contact > li:last-child,
  #header .std_nav_right > li:last-child {
    margin-right: 0;
  }

  #header #top-bar .header-contact > li:last-child > a {
    padding-right: 0;
  }

  #header .std_nav_right > li:last-child .header-button {
    padding-right: 0;
  }

  #header .std_nav_right > li:last-child .button {
    margin-right: 0 !important;
  }
}

@media (min-width: 850px) and (max-width: 1199px) {
  #header .container {
    padding-inline: 20px;
  }

  #header #masthead .header-inner {
    gap: 18px;
    min-height: 80px;
  }

  #header #logo {
    width: 144px;
  }

  #header #top-bar > .flex-row > .flex-left {
    display: none;
  }

  #header .std_nav_right .item-title,
  #header .std_nav_right .header-cart-title {
    display: none;
  }

  #header .header-button-1 .button {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  #header .header-button-1 .button > span {
    font-size: 0;
    gap: 0;
  }

  #header .std_nav_right {
    gap: 10px;
  }

  #header .std_bt_nav {
    gap: 8px;
  }

  #header .std_bt_nav > li > a {
    font-size: 12px;
    gap: 4px;
  }

  #header .std_bt_nav > li > a > .ux-menu-icon {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 850px) and (max-width: 999px) {
  #header .std_bt_nav > li > a > .ux-menu-icon {
    display: none;
  }

  #header .std_bt_nav > li > a {
    font-size: 11.5px;
  }

  #header #top-bar .header-contact a {
    font-size: 11px;
  }
}

/* Use the compact header on tablets, including iPad Pro in portrait. */
@media (max-width: 1199px) {
  #header .container {
    padding-inline: 20px;
  }

  #header #top-bar > .flex-row {
    padding-block: 6px;
    justify-content: center;
  }

  #header #top-bar .mobile-nav {
    flex-wrap: wrap;
    text-align: center;
  }

  #header #masthead {
    height: auto;
  }

  #header #masthead .header-inner {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
    min-height: 76px;
    height: auto;
    gap: 12px;
    padding-block: 10px;
  }

  #header #logo {
    grid-column: 2;
    grid-row: 1;
    width: 150px;
    margin: 0;
  }

  #header #masthead .header-inner > .show-for-medium.flex-left {
    grid-column: 1;
    grid-row: 1;
  }

  #header #masthead .header-inner > .show-for-medium.flex-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  #header #masthead .mobile-nav {
    flex-wrap: nowrap;
    gap: 6px;
  }

  #header #masthead .mobile-nav > li {
    margin: 0;
  }

  #header .pixels-mobile-search {
    padding-bottom: 14px;
  }

  #header .pixels-mobile-search .searchform-wrapper {
    margin: 0;
  }

  #header .pixels-search-suggestions {
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    padding: 16px;
    max-height: min(480px, 60vh);
  }

  #header .pixels-search-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #header #wide-nav:has(> .flex-row > .show-for-medium) {
    min-height: 0;
  }

  #header #wide-nav .mobile-nav > li > a {
    min-height: 44px;
  }
}

/* Extend Flatsome's visibility helpers only inside the header. */
@media (min-width: 850px) and (max-width: 1199px) {
  #header .hide-for-medium {
    display: none !important;
  }

  #header .show-for-medium {
    display: block !important;
  }

  #header #top-bar > .container,
  #header #masthead > .header-inner.container,
  #header #wide-nav > .container {
    padding-inline: 20px !important;
  }

  #header #wide-nav > .flex-row {
    min-height: 0;
  }

  #header #wide-nav:not(:has(.mobile-nav)) {
    display: none;
  }
}

@media (max-width: 549px) {
  #header .container {
    padding-inline: 12px;
  }

  #header #masthead .header-inner {
    gap: 6px;
    min-height: 68px;
  }

  #header #logo {
    width: 116px;
  }

  #header #logo img {
    max-height: 46px;
  }

  #header #top-bar .nav > li {
    font-size: 10.5px;
    letter-spacing: 0.02em;
  }

  #header #masthead .mobile-nav {
    gap: 2px;
  }

  #header .pixels-search-categories {
    gap: 8px;
  }
}
