/* Header sticky + glass KRONOX */

.ps-site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  margin: 0;
  background: transparent;
}

.ps-site-header-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ps-header-fill);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--ps-border);
}

body.admin-bar .ps-site-header-wrap {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ps-site-header-wrap {
    top: 46px;
  }

  body.admin-bar .ps-site-header__nav,
  body.admin-bar .ps-header-search {
    top: calc(68px + 46px);
  }

  body.admin-bar .ps-site-header__nav {
    height: calc(100dvh - 68px - 46px);
  }
}

.ps-site-header {
  position: relative;
  width: 100%;
  height: 76px;
  z-index: 1;
  background: transparent;
  margin: 0;
}

.ps-site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--ps-container), calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
}

.ps-site-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none !important;
  z-index: 2;
}

.ps-site-header__logo-img {
  display: block;
  height: 63px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.ps-site-header__logo-text {
  color: var(--ps-heading);
  font-size: 16px;
  font-weight: 700;
}

.ps-site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ps-heading);
  cursor: pointer;
  z-index: 2;
}

.ps-site-header__toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.ps-site-header__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ps-site-header__toggle-bars span:nth-child(1) { top: 0; }
.ps-site-header__toggle-bars span:nth-child(2) { top: 7px; }
.ps-site-header__toggle-bars span:nth-child(3) { top: 14px; }

.ps-site-header.is-open .ps-site-header__toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.ps-site-header.is-open .ps-site-header__toggle-bars span:nth-child(2) {
  opacity: 0;
}

.ps-site-header.is-open .ps-site-header__toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.ps-site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.ps-site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-site-header__menu > li {
  position: relative;
}

.ps-site-header__menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--ps-nav) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.ps-site-header__menu > li.menu-item-has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}

.ps-site-header__menu > li > a:hover,
.ps-site-header__menu > li.current-menu-item > a,
.ps-site-header__menu > li.current-menu-ancestor > a,
.ps-site-header__menu > li.current_page_item > a {
  color: var(--ps-nav-hover) !important;
}

.ps-site-header__menu > li.current-menu-item > a,
.ps-site-header__menu > li.current-menu-ancestor > a {
  box-shadow: inset 0 -2px 0 var(--ps-primary);
}

.ps-site-header__menu .sub-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--ps-bg-soft);
  border: 1px solid var(--ps-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 20;
}

.ps-site-header__menu li:hover > .sub-menu,
.ps-site-header__menu li:focus-within > .sub-menu,
.ps-site-header__menu li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ps-site-header__menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ps-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.ps-site-header__menu .sub-menu a:hover,
.ps-site-header__menu .sub-menu .current-menu-item > a {
  color: var(--ps-primary) !important;
}

.ps-site-header__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.ps-site-header__tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ps-text);
  cursor: pointer;
  text-decoration: none !important;
}

.ps-site-header__tool:hover,
.ps-site-header__tool[aria-expanded="true"] {
  color: var(--ps-primary);
}

.ps-cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ps-primary);
  color: var(--ps-cta-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.ps-cart-count.is-zero {
  display: none;
}

.ps-header-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px 24px 20px;
  background: var(--ps-bg-soft);
  border-bottom: 1px solid var(--ps-border);
}

.ps-header-search[hidden] {
  display: none;
}

.ps-header-search__form {
  display: flex;
  gap: 10px;
  width: min(var(--ps-container), calc(100% - 0px));
  margin: 0 auto;
}

.ps-header-search__form input[type="search"] {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ps-border);
  background: var(--ps-bg);
  color: var(--ps-text);
  font-family: var(--ps-font);
  font-size: 15px;
}

.ps-header-search__form input[type="search"]:focus {
  outline: 1px solid var(--ps-primary);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.ps-nav-open,
html.ps-nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 1024px) {
  .ps-site-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
  }

  .ps-site-header,
  .ps-site-header__inner {
    height: 68px;
  }

  body {
    padding-top: 68px;
  }

  .ps-site-header__inner {
    width: calc(100% - 32px);
  }

  .ps-site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ps-site-header__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 0;
    background: var(--ps-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    height: calc(100dvh - 68px);
    max-height: none;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    z-index: 999;
  }

  body.admin-bar .ps-site-header__nav {
    top: calc(68px + 32px);
    height: calc(100dvh - 68px - 32px);
  }

  .ps-site-header.is-open .ps-site-header__nav {
    opacity: 1;
    visibility: visible;
    padding: 12px 20px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ps-site-header__menu {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-site-header__menu > li > a {
    width: 100%;
    padding: 14px 12px !important;
    color: var(--ps-heading) !important;
    font-size: 15px !important;
    box-shadow: none;
  }

  .ps-site-header__menu > li.current-menu-item > a,
  .ps-site-header__menu > li.current-menu-ancestor > a,
  .ps-site-header__menu > li.current_page_item > a {
    color: var(--ps-primary) !important;
  }

  .ps-site-header__menu .sub-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
  }

  .ps-site-header__menu li.is-open > .sub-menu {
    display: block;
  }

  .ps-header-search {
    position: fixed;
    top: 68px;
    z-index: 1001;
  }

  body.admin-bar .ps-header-search {
    top: calc(68px + 32px);
  }
}
