/* New header (nh=1) — scoped under .nh-header / .nh-on only */

.nh-header.ui-header {
  padding: 0 !important;
  background-color: #fcd975 !important;
  position: relative;
  z-index: 1100;
  overflow: visible !important;
}

.nh-header .nh-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  overflow: visible;
  min-height: 64px;
}

.nh-header .nh-col-brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
  min-width: 0;
  grid-column: 1;
  align-self: stretch;
  padding: 0.6em 1em;
  box-sizing: border-box;
}

.nh-header .nh-col-cta {
  display: flex;
  align-items: stretch;
  grid-column: 3;
  justify-self: end;
  align-self: stretch;
  margin-left: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Pin-only controls: mobile fixed bar. Hidden everywhere else. */
.nh-header .nh-cta-pin-burger,
.nh-header .nh-cta-pin-contact {
  display: none !important;
}

.nh-header .nh-cta-spacer {
  display: none !important;
}

.nh-header .nh-col-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  grid-column: 4;
  justify-self: end;
  overflow: visible;
  position: relative;
  z-index: 1200;
  align-self: stretch;
  height: 100%;
  margin-left: 0;
  padding: 0;
  box-sizing: border-box;
}

.nh-header .leftopener {
  float: none;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nh-header .nh-burger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nh-header .nh-burger-box {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.nh-header .nh-burger-line {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
  transform-origin: center;
}

.nh-header .nh-burger-line:nth-child(1) {
  top: 0;
}

.nh-header .nh-burger-line:nth-child(2) {
  top: 7px;
}

.nh-header .nh-burger-line:nth-child(3) {
  top: 14px;
}

.nh-header .nh-burger.is-open .nh-burger-line:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nh-header .nh-burger.is-open .nh-burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nh-header .nh-burger.is-open .nh-burger-line:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.nh-header .nh-col-brand .logo {
  float: none;
  width: auto;
  overflow: visible;
}

.nh-header .nh-col-brand .logoname {
  float: none;
  padding-bottom: 0;
}

.nh-header .nh-cta {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 0.55em;
  height: 100%;
  box-sizing: border-box;
  padding: 0 0.85em 0 0.65em;
  background: #333;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  text-shadow: none !important;
  border-radius: 0;
  white-space: nowrap;
  line-height: 1.15;
  max-width: 100%;
}

.nh-header .nh-cta:hover,
.nh-header .nh-cta:focus {
  background: #111;
  color: #fff !important;
}

.nh-header .nh-cta-clip {
  display: inline-flex;
  flex: 0 0 auto;
  color: #fff;
}

.nh-header .nh-cta-clip svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nh-header .nh-cta-spin {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  overflow: hidden;
}

.nh-header .nh-cta-spin-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0;
  animation: nh-cta-spin 8s infinite;
}

.nh-header .nh-cta-spin-item:nth-child(1) {
  animation-delay: 0s;
}
.nh-header .nh-cta-spin-item:nth-child(2) {
  animation-delay: 2s;
}
.nh-header .nh-cta-spin-item:nth-child(3) {
  animation-delay: 4s;
}
.nh-header .nh-cta-spin-item:nth-child(4) {
  animation-delay: 6s;
}

@keyframes nh-cta-spin {
  0% {
    opacity: 0;
    transform: scale(0.85) rotate(-8deg);
  }
  4% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  21% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0;
    transform: scale(0.85) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) rotate(8deg);
  }
}

.nh-header .nh-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.nh-header .nh-cta-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.nh-header .nh-cta-sub {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0;
}

.nh-header .nh-col-actions > .nh-icon,
.nh-header .nh-col-actions > .nh-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0;
  margin: 0;
  height: auto;
  width: auto;
  min-height: 100%;
  min-width: unset;
  max-width: none;
  aspect-ratio: 1 / 1;
}

.nh-header .nh-icon,
.nh-header button.nh-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #444;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nh-header .nh-col-actions > .nh-icon.nh-search-toggle,
.nh-header .nh-col-actions > .nh-icon.nh-cart {
  width: auto;
  height: auto;
  min-height: 100%;
  min-width: unset;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: stretch;
}

.nh-header .nh-icon:hover,
.nh-header .nh-icon:focus,
.nh-header button.nh-icon:hover,
.nh-header button.nh-icon:focus {
  background-color: rgba(0, 0, 0, 0.08);
  color: #111;
  outline: none;
}

.nh-header .nh-icon:active,
.nh-header button.nh-icon:active {
  background-color: rgba(0, 0, 0, 0.14);
  color: #111;
}

.nh-header .nh-icon svg {
  display: block;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

.nh-header .nh-icon-wrap {
  position: relative;
}

.nh-header .nh-icon-wrap .nh-icon {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-width: 0;
}

/* Desktop tooltips */
@media (min-width: 1000px) {
  .nh-header [data-tooltip] {
    position: relative;
    overflow: visible !important;
  }

  .nh-header .nh-icon-wrap,
  .nh-header .nh-col-actions {
    overflow: visible !important;
  }

  .nh-header [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    bottom: auto;
    transform: translateX(-50%);
    padding: 0.4em 0.65em;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 10000;
    text-shadow: none;
  }

  .nh-header a.nh-icon[data-tooltip]::before,
  .nh-header button.nh-icon[data-tooltip]::before,
  .nh-header [data-tooltip]::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: calc(100% + 3px) !important;
    right: auto !important;
    bottom: auto !important;
    width: 12px !important;
    height: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #333 !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 10001 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
  }

  .nh-header [data-tooltip]:hover::after,
  .nh-header [data-tooltip]:focus-visible::after,
  .nh-header [data-tooltip]:hover::before,
  .nh-header [data-tooltip]:focus-visible::before,
  .nh-header a.nh-icon[data-tooltip]:hover::before,
  .nh-header button.nh-icon[data-tooltip]:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nh-header .nh-icon-wrap.is-pop-open [data-tooltip]::after,
  .nh-header .nh-icon-wrap.is-pop-open [data-tooltip]:hover::after,
  .nh-header .nh-icon-wrap.is-pop-open [data-tooltip]::before,
  .nh-header .nh-icon-wrap.is-pop-open [data-tooltip]:hover::before {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* Contact popups */
.nh-header .nh-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  padding: 0.75em 1em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1101;
  text-align: center;
}

.nh-header .nh-pop[hidden] {
  display: none !important;
}

.nh-header .nh-pop a {
  color: #333 !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap;
}

.nh-header .nh-pop a:hover {
  color: #0562ad !important;
}

/* Search panel */
.nh-header .nh-search {
  display: none;
  width: 100%;
  padding: 0.75em 1em 1em;
  clear: both;
  box-sizing: border-box;
}

.nh-header.is-search-open .nh-search {
  display: block;
}

.nh-header .nh-search .cpt_product_search {
  float: none;
  min-width: 0;
  width: 100%;
  max-width: 520px;
}

.nh-header .nh-search .cpt_product_search .ui-input-text {
  width: calc(100% - 110px);
  max-width: none;
  float: left;
}

.nh-header .nh-search .cpt_product_search .ui-btn {
  margin-left: 0.75em;
}

/* Cart: keep component, restyle under .nh-header */
.nh-header .nh-cart {
  position: relative;
}

.nh-header .nh-col-actions > .nh-cart {
  width: auto;
  height: auto;
  min-width: 56px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: stretch;
}

.nh-header .nh-col-actions > .nh-cart > svg {
  position: relative;
  z-index: 1;
}

.nh-header .nh-cart > svg {
  position: relative;
  z-index: 1;
}

.nh-header .nh-cart .shcart_link,
.nh-header .nh-cart .carttxt,
.nh-header .nh-cart .cpt_shopping_cart_info {
  background: none !important;
  width: auto !important;
  float: none !important;
}

.nh-header .nh-cart .cpt_shopping_cart_info,
.nh-header .nh-cart #shpcrtgc {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100% !important;
  height: 100%;
  background: none !important;
}

.nh-header .nh-cart .shcart_link {
  display: none !important;
}

.nh-header .nh-cart .carttxt {
  display: none !important;
}

.nh-header .nh-cart #shpcrtgc {
  display: block;
}

.nh-header .nh-cart #cartcount {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #e53935;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
  border-radius: 9px;
  box-sizing: border-box;
}

.nh-header .nh-cart #cartcount:empty,
.nh-header .nh-cart #cartcount[data-empty="1"] {
  display: none;
}

/* Desktop: fixed header + blur; reset old layout hacks */
@media all and (min-width: 1000px) {
  .nh-on .nh-header .leftopener,
  .nh-on .nh-header .rightopener {
    display: none;
  }

  .nh-on .ui-content {
    top: 0 !important;
  }

  .nh-on #rightmenu {
    display: none !important;
    top: 0 !important;
    left: auto !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .nh-on .nh-header {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 1000px;
    transform: translateX(-50%);
    z-index: 1100;
    /* Opaque look of #fdda77 at 0.72 over white: C = (T - 0.28*255) / 0.72 */
    background-color: rgba(252, 204, 66, 0.72) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }

  .nh-on .nh-header .nh-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: stretch;
  }

  .nh-on .nh-header .nh-col-cta {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-top: 0;
    background: transparent;
    position: relative;
    width: auto;
    max-width: none;
  }

  .nh-on .nh-header .nh-col-cta.is-fixed {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    padding: 0;
    gap: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nh-on .nh-header .nh-cta-pin-burger,
  .nh-on .nh-header .nh-cta-pin-contact,
  .nh-on .nh-header .nh-cta-spacer {
    display: none !important;
  }

  .nh-on .nh-header .nh-cta {
    height: 100%;
    width: auto;
    border-radius: 0;
    min-height: 0;
  }

  .nh-on .nh-header-spacer {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: var(--nh-header-offset, 72px);
    pointer-events: none;
  }
}

.nh-header-spacer {
  display: none;
}

@media all and (max-width: 999px) {
  .nh-on .nh-header,
  .nh-header.ui-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: 100% !important;
    transform: none !important;
    z-index: 1100;
    overflow: visible !important;
    box-sizing: border-box;
    background-color: #fcd975 !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
  }

  .nh-header .nh-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    overflow: visible;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nh-header .nh-col-brand {
    order: 1;
    flex: 0 0 auto;
    grid-column: auto;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 12px;
    box-sizing: border-box;
    align-items: center;
  }

  .nh-header .leftopener {
    margin-right: 0;
  }

  .nh-header .nh-col-actions {
    order: 2;
    flex: 0 0 auto;
    grid-column: auto;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0;
    margin-left: auto;
    box-sizing: border-box;
  }

  .nh-header .nh-col-actions > .nh-icon,
  .nh-header .nh-col-actions > .nh-icon-wrap,
  .nh-header .nh-col-actions > .nh-icon.nh-search-toggle,
  .nh-header .nh-col-actions > .nh-icon.nh-cart {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-height: 48px;
    flex: 0 0 48px;
    aspect-ratio: 1 / 1;
    align-self: stretch;
  }

  .nh-header .nh-burger {
    height: 48px;
  }

  .nh-header .nh-col-cta {
    order: 3;
    flex: 1 1 100%;
    grid-column: auto;
    align-self: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding: 12px;
    text-align: center;
    justify-content: stretch;
    align-items: stretch;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1200;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background-color: #fcd975;
  }

  .nh-header .nh-cta-pin-burger,
  .nh-header .nh-cta-pin-contact {
    display: none !important;
    flex: 0 0 auto;
  }

  .nh-header .nh-col-cta.is-fixed {
    position: fixed !important;
    top: 0;
    z-index: 1300;
    margin: 0;
    padding: 8px 10px;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-top: 0;
    background-color: rgba(252, 217, 117, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    box-sizing: border-box;
  }

  .nh-header .nh-col-cta.is-fixed .nh-cta-pin-burger,
  .nh-header .nh-col-cta.is-fixed .nh-cta-pin-contact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nh-header .nh-col-cta.is-fixed .nh-cta-pin-burger {
    height: 40px;
  }

  .nh-header .nh-col-cta.is-fixed .nh-cta {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0.45em 0.65em;
  }

  .nh-header .nh-col-cta.is-fixed .nh-cta-spin {
    width: 24px;
    height: 24px;
  }

  .nh-header .nh-col-cta.is-fixed .nh-cta-spin-item {
    width: 24px;
    height: 24px;
  }

  .nh-header .nh-col-cta.is-fixed .nh-cta-pin-contact {
    border-radius: 0;
    color: #444;
  }

  .nh-header .nh-cta-spacer {
    display: none;
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
  }

  .nh-header .nh-cta-spacer.is-active {
    display: block !important;
  }

  .nh-header .nh-cta {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 52px;
    justify-content: center;
    box-sizing: border-box;
    text-align: left;
    border-radius: 6px;
    padding: 0.65em 0.85em;
  }

  .nh-header .nh-search {
    padding: 0.75em 0.75em 1em;
  }

  .nh-header .nh-pop {
    display: none !important;
  }

  .nh-header .logoname {
    font-size: 22px;
    margin-top: 0;
  }

  .nh-header .nh-col-brand .logo,
  .nh-header .nh-col-brand .logoname {
    margin-top: 0;
  }
}

@media all and (max-width: 480px) {
  .nh-header .nh-bar {
    min-height: 0;
  }

  .nh-header .nh-icon svg {
    width: 20px;
    height: 20px;
  }

  .nh-header .nh-cta {
    gap: 0.4em;
    padding: 0.55em 0.65em;
  }

  .nh-header .nh-cta-clip svg {
    width: 18px;
    height: 18px;
  }

  .nh-header .nh-cta-spin,
  .nh-header .nh-cta-spin-item {
    width: 24px;
    height: 24px;
  }

  .nh-header .nh-cta-title {
    font-size: 14px;
  }

  .nh-header .nh-cta-sub {
    font-size: 11px;
  }
}

/* Mobile left panel: fixed overlay + blur dismiss (nh only) */
@media all and (max-width: 999px) {
  .nh-on #leftmenu.ui-panel {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    z-index: 1400 !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
  }

  .nh-on #leftmenu .ui-panel-inner {
    overflow: visible !important;
    max-height: none;
    min-height: 100%;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .nh-on .ui-panel-dismiss {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1350 !important;
    background: rgba(20, 18, 12, 0.38);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    backdrop-filter: blur(10px) saturate(1.05);
  }

  .nh-on .ui-panel-dismiss-position-left,
  .nh-on .ui-panel-dismiss-position-right {
    left: 0 !important;
    right: 0 !important;
  }

  html.nh-panel-lock,
  html.nh-panel-lock body {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
  }

  body.nh-panel-open {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100% !important;
    overflow: hidden !important;
  }
}
