/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.3s ease;
  background: #1e1e1e;
  z-index: 1002;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.header--scrolled {
  background: #1e1e1e;
}

/* Hide top bar when scrolled */
.header--scrolled .header__top {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition:
    height 200ms ease,
    padding 200ms ease;
}

/* Transparent header: only transparent before scroll */
.header--transparent:not(.header--scrolled) {
  background: transparent;
  box-shadow: none;
}

.header:not(header--transparent) .header__top {
  background: #0a344c;
}

.header--transparent:not(.header--scrolled) .header__top {
  background: #1e1e1e;
}

.header__top {
  background: #1e1e1e;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    height 200ms ease,
    padding 200ms ease;
}

.header__top-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1920px;
  width: 90%;
  margin: 0 auto;
}

.header__top-left,
.header__top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__top-right {
  overflow: hidden; /* prevent horizontal scroll when items don't fit */
  min-width: 0;
}
.header__topLinks,
.header__topInfo {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.header__topLink a {
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 1.122px;
  text-transform: uppercase;
  text-decoration: none;
}
.header__topLink a:hover {
  text-decoration: underline;
}
.header__topItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.122px;
}

/* Top header ticker (when right-side items don't fit) */
.header__topInfo.is-rotating {
  display: block; /* items are stacked via absolute positioning */
  position: relative;
  width: 100%;
}
.header__topInfo.is-rotating .header__topItem {
  position: absolute;
  left: 50%;
  right: auto;
  top: 0;
  max-width: min(100%, 520px);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 350ms ease,
    transform 350ms ease;
  pointer-events: none;
}
.header__topInfo.is-rotating .header__topItem.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}
.header__topInfo.is-rotating .header__topText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header__topIcon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
}

/* <= 1000px: hide top-left links */
@media (max-width: 1000px) {
  .header__top-left {
    display: none;
  }
  .header__top-container {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .header__top-right {
    min-width: 100%;
  }
}

.header__container {
  max-width: 1920px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 35% calc(30% - 80px) 35%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 1002;
  box-sizing: border-box;
  padding: 10px 0;
  height: 110px;
}

.header__container > div:nth-child(1) {
  display: flex;
  justify-content: flex-start;
}

.header__container > div:nth-child(2) {
  display: flex;
  justify-content: center;
}

.header__container > div:nth-child(3) {
  display: flex;
  justify-content: flex-end;
}

/* Logo Column */
.header__logo {
  display: flex;
  align-items: center;
}

.header__logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.header__logo-link {
  text-decoration: none;
  color: #000;
}

.header__logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.header__logo img {
  max-height: 60px;
  height: 32px;
  width: auto;
  max-width: none;
}

/* Navigation Column */
.header__nav {
  display: flex;
  justify-content: center;
}

.header__menu {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

/* Ensure hover bridge and panel anchor to each menu item */

/* BigMenu */
.nb-bigmenu__item:hover::after,
.nb-bigmenu__item:focus-within::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 75px;
  height: 50px; /* bridge the hover gap above the panel */
}
.nb-bigmenu__item > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}
.nb-bigmenu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100%);
  background: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  padding: 60px 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
}
.nb-bigmenu__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: -1;
}
.nb-bigmenu__item:hover > .nb-bigmenu__panel,
.nb-bigmenu__item:focus-within > .nb-bigmenu__panel {
  display: block;
}
.nb-bigmenu__inner {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 64px;
  padding: 0;
  box-sizing: border-box;
}
.nb-bigmenu__col--image {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #151515;
  border-radius: 10px;
}
.nb-bigmenu__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  border-radius: 10px;
}
.nb-bigmenu__image {
  display: block;
  width: 100%;
  min-height: 200px;
  background: #f5f5f5 center/cover no-repeat;
  border-radius: 10px;
  position: relative;
}
.nb-bigmenu__card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-color: #fff;
  border-radius: 50%;
  padding: 12px;
}
.nb-bigmenu__promo-meta {
  width: 100%;
  padding: 18px 80px 40px 18px;
  box-sizing: border-box;
  position: relative;
}
.nb-bigmenu__promo-title {
  color: #fff;
  font-family: "DM Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
.nb-bigmenu__tree,
.nb-bigmenu__branch {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nb-bigmenu__tree {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 30px 60px;
}
.nb-bigmenu__node.is-wide .nb-bigmenu__branch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nb-bigmenu__node {
  margin: 0 0 8px;
}
.header__menu .nb-bigmenu__node > a {
  color: #3e3e3e;
  font-family: "DM Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  line-height: 150%; /* 27px */
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: normal;
  display: block;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nb-bigmenu__branch {
  margin-top: 20px;
  display: grid;
  gap: 16px 30px;
}
.header__menu .nb-bigmenu__branch a {
  color: #3e3e3e;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: capitalize;
  letter-spacing: normal;
}
.nb-bigmenu__branch a:hover {
  color: #0a344c;
}

.header__menu .nb-bigmenu__node .nb-btn {
  color: #ff8000;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header__menu li {
  margin: 0;
}

.header__menu a {
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: rotate 0.3s ease;
}

/* Transparent header keeps white links until scrolled */
.header--transparent:not(.header--scrolled) .header__menu a {
  color: #fff;
}

.header--transparent:not(.header--scrolled) .header__menu .nb-bigmenu__inner a {
  color: #3e3e3e;
}

.header--transparent:not(.header--scrolled)
  .header__menu
  .nb-bigmenu__inner
  .nb-bigmenu__node
  > a.nb-btn {
  color: #ff8000;
}

.header__menu a:active {
  font-weight: 700;
}

.header__menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.header__menu a:hover svg {
  rotate: 180deg;
}

/* Keep underline on main category while BigMenu is open */
.nb-bigmenu__item:hover > a::after,
.nb-bigmenu__item:focus-within > a::after {
  width: 100%;
}

.nb-bigmenu__item:hover > a svg,
.nb-bigmenu__item:focus-within > a svg {
  rotate: 180deg;
  transition: rotate 0.3s ease;
}

.header__buttons {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  align-items: center;
}
.header__searchSlot {
  flex: 1 1 auto;
  min-width: 220px;
}
.header__searchRow {
  display: none;
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  padding: 0 0 12px;
}
.header__searchRow.is-active {
  display: block;
}
.header__iconButtons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header__button--searchToggle {
  display: none; /* shown on mobile only */
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header .header__button--hamburger {
  display: none; /* only show on <=1280 */
}
.header__button--hamburger-left {
  flex: 0 0 auto;
}
.header__button--hamburger {
  width: 30px;
  height: 30px;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header__hamburger-bars,
.header__hamburger-bars::before,
.header__hamburger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.header__hamburger-bars {
  top: 14px;
}
.header__hamburger-bars::before {
  top: -8px;
}
.header__hamburger-bars::after {
  top: 8px;
}

/* Side menu */
#nb-side-overlay[hidden] {
  display: none;
}
#nb-side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2000;
}
.nb-side {
  position: fixed;
  left: 0;
  right: auto;
  top: 0;
  bottom: 0;
  width: 100vw;
  background: var(--darkBlue);
  border-right: 1px solid #000;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  /* Default hidden (prevents "always visible" if anything goes wrong) */
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.nb-side[aria-hidden="false"] {
  transform: translateX(0);
}

/* Side menu top bar (logo/back left, close right) */
.nb-side__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: #1e1e1e;
  z-index: 2;
}
.nb-side__topbarLeft {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nb-side__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.nb-side__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.nb-side__topbarLeft .custom-logo-link img {
  max-height: 18px;
  width: auto;
}
.nb-side__brandText {
  font: 700 16px/1.2 "DM Sans";
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nb-side__backTop {
  display: none; /* only on subpages */
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 600 14px/1 "DM Sans";
}
.nb-side__backTopLabel {
  font-weight: 600;
}
.nb-side.is-subpage .nb-side__brand {
  display: none;
}
.nb-side.is-subpage .nb-side__topbarLeft > a.custom-logo-link {
  display: none !important;
}
.nb-side.is-subpage .nb-side__backTop {
  display: inline-flex;
}
.nb-side__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: #fff;
  font-size: 32px;
  line-height: 40px;
}
.nb-side__nav {
  padding: 0;
}
/* Fallback: if JS hasn't moved the nav into pages yet, keep it visible under the topbar */
.nb-side > .nb-side__nav {
  padding: 80px 16px 16px; /* 64px topbar + spacing */
}
.nb-side__nav .page_item > a,
.nb-side__nav .menu-item > a {
  color: #0b0203;
  font-family: "DM Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 27px */
  text-transform: uppercase;
  padding: 12px 0;
}
.nb-side__pages {
  height: 100%;
  display: flex;
  width: 100%;
  transition: transform 0.25s ease;
  will-change: transform;
  background: #f9f9f9;
  color: #000;
}
.nb-side__page {
  flex: 0 0 100%;
  height: 100%;
  overflow: auto;
  padding: 80px 16px 16px; /* 64px topbar + spacing */
  box-sizing: border-box;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
}
.nb-side__page .nb-side__nav {
  padding: 0; /* padding lives on the page */
}

/* Root extras (groups under the menu) */
.nb-side__extras {
  margin-top: 18px;
  display: grid;
}
.nb-side__groupLinks {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: grid;
  gap: 0px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.nb-side__groupLink {
  padding: 12px 0;
}
.nb-side__groupLink a {
  padding: 12px 0;
  color: #0b0203;
  font-family: "DM Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 21px */
  text-transform: uppercase;
  text-decoration: none;
}
.nb-side__groupLink a:hover {
  text-decoration: underline;
}

/* Footer (cloned into every page/slide) */
.nb-side__pageFooter {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 12px;
}
.nb-side__footerLinks {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.nb-side__footerLink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: #000;
  font-family: "DM Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}
.nb-side__footerIcon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.nb-side__footerLabel {
  font: 400 16px/1.5 "DM Sans";
}
.nb-side__footerBtn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border-radius: 30px;
  background: #ff8000;
  color: #fff;
  text-decoration: none;
  font: 600 16px/1 "DM Sans";
  margin-top: 18px;
}
.nb-side__footerBtnIcon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
/* Old per-page headers are no longer used (we use the topbar back button instead) */
.nb-side__pageHead,
.nb-side__back,
.nb-side__pageTitle {
  display: none !important;
}

/* BigMenu panels inside side menu should be normal-flow content */
.nb-side .nb-bigmenu__panel {
  position: static;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.nb-side .nb-bigmenu__panel::before {
  display: none;
}
.nb-side .nb-bigmenu__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.nb-side .nb-bigmenu__tree {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nb-side .nb-bigmenu__nodeHead > a {
  color: #0b0203;
  font-family: "DM Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 27px */
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nb-side .nb-bigmenu__nodeHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 0 0 0;
}
.nb-side .nb-bigmenu__inner {
  padding: 0 0 12px 0;
}
.nb-side .nb-side__nodeToggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0b0203;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 24px/1 "DM Sans";
}
.nb-side .nb-side__nodeToggle::before {
  content: "+";
}
.nb-side .nb-side__nodeToggle[aria-expanded="true"]::before {
  content: "−";
}
.nb-side .nb-bigmenu__branch[hidden] {
  display: none !important;
}
.nb-side .nb-bigmenu__branch {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}
.nb-side .nb-bigmenu__branch a {
  color: #000;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
  text-decoration: none;
  transition: color 0.3s ease;
}
.nb-side .nb-bigmenu__node.is-wide .nb-bigmenu__branch {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.nb-side .nb-bigmenu__branch > a {
  background: transparent;
  border: none;
  padding: 0;
  color: #ff8000;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 18px */
  gap: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.nb-side .nb-bigmenu__col--image {
  display: none; /* keep the side menu lightweight */
}
.nb-side__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.nb-side__menu li.nb-bigmenu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nb-side__menu a {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  flex: 1 1 auto;
  min-width: 0;
}
.nb-side__menu a:hover {
  text-decoration: underline;
}
.nb-side__drill {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0b0203;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nb-side__drill:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nb-side__drill .nb-bigmenu__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nb-side__drill .nb-bigmenu__chev svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

.nb-side__drill .nb-bigmenu__chev svg path {
  fill: #0b0203;
}

.header__button {
  width: 30px;
}
.header__button--cart {
  position: relative;
}
.header__button--account.has-favorites {
  position: relative;
}
.header__button--account.has-favorites::after {
  content: "!";
  position: absolute;
  right: -8px;
  top: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d05d38;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.header__button svg {
  width: auto;
  max-height: 30px;
}
.nb-cart-count {
  position: absolute;
  right: -8px;
  top: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d05d38;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.header__button--fav {
  position: relative;
}
.nb-fav-count {
  position: absolute;
  right: -8px;
  top: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d05d38;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.nb-fav-count[hidden] {
  display: none;
}

/* Favorites header icon active state (avoid relying on woocommerce.css) */
.header__button.socksy-fav-header svg path {
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}
.header__button.socksy-fav-header.is-active svg path {
  fill: #ff5a5f;
  stroke: #ff5a5f;
}

/* Cart popup (Figma 1194:53875) ------------------------------------------ */

.nb-cartpop__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 100000;
}

.nb-cartpop {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  justify-content: flex-end;
}

.nb-cartpop[hidden],
.nb-cartpop__overlay[hidden] {
  display: none !important;
}

.nb-cartpop__panel {
  width: 613px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-right: 0;
  border-radius: 0 0 0 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 66px 1fr auto;
}

.nb-cartpop__head {
  border-bottom: 1px solid rgba(30, 30, 30, 0.15);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nb-cartpop__headLeft {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.nb-cartpop__headTitle {
  margin: 0;
  font: 600 24px/1.4 "DM Sans";
  color: #000;
}

.nb-cartpop__headCount {
  margin: 0;
  font: 400 16px/1.2 "DM Sans";
  color: #909090;
}

.nb-cartpop__close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 400 22px/1 "DM Sans";
  color: #1e1e1e;
}

.nb-cartpop__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nb-cartpop__body {
  overflow: auto;
}

.nb-cartpop__empty {
  height: 100%;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.nb-cartpop__emptyIcon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}
.nb-cartpop__emptyTitle {
  margin: 0;
  font: 700 20px/1.2 "DM Sans";
  color: #000;
}
.nb-cartpop__emptyText {
  margin: 0;
  font: 300 14px/1.5 "DM Sans";
  color: #404040;
  max-width: 360px;
}
.nb-cartpop__emptyCta {
  margin-top: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 30px;
  background: #1e1e1e;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1 "DM Sans";
}
.nb-cartpop__emptyCta:hover {
  filter: brightness(1.05);
}

.nb-cartpop__item {
  display: grid;
  grid-template-columns: 121px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.nb-cartpop__img {
  width: 121px;
  height: 121px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-cartpop__imgEl {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nb-cartpop__imgLink {
  display: block;
  width: 100%;
  height: 100%;
}

.nb-cartpop__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nb-cartpop__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nb-cartpop__name,
.nb-cartpop__name > a {
  margin: 0;
  font: 600 18px/1.2 "DM Sans";
  color: #000;
}

.nb-cartpop__name > a {
  color: inherit;
  text-decoration: none;
}
.nb-cartpop__name > a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nb-cartpop__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font: 400 14px/1.5 "DM Sans";
  min-width: 100px;
}

.nb-cartpop__trash {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nb-cartpop__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #737373;
  font: 400 14px/1.5 "DM Sans";
}

.nb-cartpop__tag {
  display: inline-block;
  margin-right: 4px;
}

.nb-cartpop__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6e6e6e;
}

.nb-cartpop__dot {
  width: 11px;
  height: 11px;
  border-radius: 30px;
  border: 0.5px solid #404040;
  background: #33bf31;
}

.nb-cartpop__dot.is-out {
  background: #bbb;
}

.nb-cartpop__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.nb-cartpop__price {
  margin: 0;
  font: 700 24px/1.5 "DM Sans";
  color: #080808;
}

.nb-cartpop__installment {
  margin: 0;
  color: #7d7d7d;
  font: 400 14px/1.5 "DM Sans";
  display: flex;
  gap: 10px;
}

.nb-cartpop__installment span {
  font-weight: 300;
  font-size: 12px;
}

.nb-cartpop__qty {
  height: 34px;
  display: grid;
  grid-template-columns: 40px 38px 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #1e1e1e;
  border: 0.5px solid #404040;
}

.nb-cartpop__qtyBtn {
  border: 0;
  background: transparent;
  color: #fff;
  font:
    700 18px/1 "Roboto Condensed",
    sans-serif;
  cursor: pointer;
}

.nb-cartpop__qtyVal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font:
    600 18px/1.5 "Roboto Condensed",
    sans-serif;
  border-left: 0.5px solid #404040;
  border-right: 0.5px solid #404040;
}

.nb-cartpop__footer {
  padding: 20px 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nb-cartpop__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nb-cartpop__sumTitle {
  margin: 0;
  font: 600 24px/1.2 "DM Sans";
  color: #000;
}

.nb-cartpop__sumNote {
  margin: 3px 0 0;
  font: 300 12px/1.5 "DM Sans";
  color: #7d7d7d;
}

.nb-cartpop__sumValue {
  margin: 0;
  font: 600 24px/1.5 "DM Sans";
  color: #080808;
  text-align: right;
}

.nb-cartpop__btn {
  width: 100%;
  height: 50px;
  border-radius: 30px;
  background: #1e1e1e;
  border: 0.5px solid #909090;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 18px/1.5 "DM Sans";
  cursor: pointer;
}

.nb-cartpop__btnIcon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.nb-cartpop__btn--primary svg {
  transform: rotate(180deg);
}

.nb-cartpop__btn--secondary {
  background: transparent;
  border: 0.5px solid #909090;
  color: #000;
}

.nb-cartpop__btn--secondary .nb-cartpop__btnIcon {
  color: #ff8000;
}

@media (max-width: 680px) {
  .nb-cartpop {
    justify-content: center;
  }
  .nb-cartpop__panel {
    width: min(613px, 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    height: min(100vh, 820px);
    align-self: center;
  }
  .nb-cartpop__head,
  .nb-cartpop__footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nb-cartpop__item {
    padding-left: 20px;
    padding-right: 20px;
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .nb-cartpop__img {
    width: 96px;
    height: 96px;
  }
}

/* Header search (input + dropdown trigger area) */
.header__search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__searchBox {
  position: relative;
  flex: 1 1 auto;
  min-width: 220px;
}
.header__search input[type="search"] {
  padding: 12px 14px 12px 42px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  width: 100%;
  height: 44px;
  background: #fff;
  outline: none;
}
.header__search input[type="search"]::placeholder {
  color: #8b8b8b;
}
.header__search input[type="search"]:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

#nb-header-search {
  position: relative;
  width: 100%;
}
.nb-header-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f6f6f;
  display: inline-flex;
  pointer-events: none;
}
.header__search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 1003;
  padding: 0;
  overflow: hidden; /* columns scroll individually */
}

.header__searchCta {
  flex: 0 0 auto;
  padding: 12px 8px;
  border-radius: 5px;
  background: #ff8000;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.header__searchCta:hover {
  filter: brightness(1.04);
}
.header__searchCta:active {
  transform: translateY(1px);
}
.header__searchCtaIcon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.header__searchCtaLabel {
  display: inline-block;
}

/* Desktop: dropdown should not be constrained by the narrow right header column */
@media (min-width: 901px) {
  .header__search-dropdown {
    width: min(980px, calc(100vw - 80px));
    left: auto;
    right: 0; /* align with search input right edge */
  }
}

/* Header: Mobile-first refinements */
@media (max-width: 1280px) {
  /* Header main row → hamburger (left), logo (center), icons (right) + search below */
  .header__container {
    grid-template-columns: 0px 1fr auto;
    grid-template-rows: auto;
    gap: 12px;
    height: auto;
    padding: 16px 0;
    align-items: center;
  }

  .header__container > div:nth-child(2) {
    justify-content: flex-start;
  }

  /* Hide desktop menu items; use side menu instead */
  .header__menu-left-item {
    display: none;
  }

  .header__menu {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .header .header__button--hamburger {
    display: inline-flex;
  }

  .header__logo {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
  }

  .header__buttons {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
  }

  .header__iconButtons {
    justify-content: flex-end;
    gap: 8px;
  }

  /* Search moves out to .header__searchRow via JS at this breakpoint */
  .header__searchSlot {
    display: none;
  }
  .header__searchRow.is-active {
    display: block;
  }
}

@media (max-width: 900px) {
  /* Reduce global offset when the header condenses on mobile */
  body {
    padding-top: 40px; /* account for top bar + main row */
  }

  /* Keep top bar visible on mobile */
  .header__top {
    display: flex;
    height: 40px;
  }

  .header__top-container {
    justify-content: center;
    padding: 10px 0;
  }

  .header__top p {
    display: none;
  }

  .header__topItem {
    font-size: 12px;
  }

  /* Collapse BigMenu bar on mobile */
  .header__bottom {
    display: none;
  }

  /* Header main row → 2 columns: logo (left) + actions (right) with search below */
  .header__container {
    grid-template-columns: 0px calc(40% - 80px) 1fr;
    gap: 12px;
    height: auto;
    padding: 20px 0;
  }

  .header__menu {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }

  .header__logo {
    grid-column: 2;
    grid-row: 1;
  }

  .header__buttons {
    grid-column: 3;
    grid-row: 1;
    gap: 5px;
  }

  .header__button svg {
    width: auto;
    max-height: 30px;
  }

  .header__search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .header__searchBox {
    min-width: 0;
  }

  .header__search input[type="search"] {
    width: 100%;
  }

  .header__logo img {
    max-height: 32px; /* thinner to accommodate long logo */
  }

  #nb-header-search {
    width: 100%;
  }

  /* Ensure search overlay starts below condensed header */
  #nb-search-overlay {
    inset: 110px 0 0 0;
  }

  /* Mobile: search is hidden until opened via the search icon */
  .header__button--searchToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header__searchRow.is-active {
    display: none;
  }
  .header__searchRow.is-active.is-open {
    display: block;
  }
  .header__buttons .header__button--account {
    display: none;
  }
}

@media (max-width: 600px) {
  .header__logo img {
    max-height: 18px;
  }
  .header__buttons {
    gap: 10px;
  }
  .header__button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* On very small screens, allow the CTA to wrap under the input */
  .header__search {
    flex-wrap: wrap;
  }
  .header__searchCta {
    display: none;
  }
}

/* ============================================================
   Campaign banner (Figma node-id: 680:6538)
   ============================================================ */

.nb-campaign-banner {
  background: var(--nb-campaign-banner-bg, #ff8000);
  color: var(--nb-campaign-banner-fg, #ffffff);
  height: 48px;
  width: 100%;
  display: block;
  position: relative; /* now lives inside the fixed header */
}

.nb-campaign-banner[hidden] {
  display: none !important;
}

/* Spacer below fixed header when banner is visible */
.nb-campaign-banner__spacer {
  height: 48px;
}

.nb-campaign-banner__spacer[hidden] {
  display: none !important;
}

.nb-campaign-banner__inner {
  position: relative;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.nb-campaign-banner__tap {
  display: none; /* enabled on mobile only */
}

.nb-campaign-banner__content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px; /* matches Figma spacing between text + button */
  padding: 0 72px; /* keep space for close button (right ~72px) */
}

.nb-campaign-banner__text {
  font-family:
    "DM Sans",
    "Roboto",
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.1224px;
  text-transform: uppercase;
  line-height: normal;
  text-align: center;
}

.nb-campaign-banner__cta {
  font-family:
    "DM Sans",
    "Roboto",
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 30px;
  padding: 6px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nb-campaign-banner__cta:hover {
  opacity: 0.92;
}

.nb-campaign-banner__close {
  position: absolute;
  right: 72px;
  top: 10px;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nb-campaign-banner__close:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .nb-campaign-banner__content {
    padding: 0 52px;
  }
  .nb-campaign-banner__close {
    right: 20px;
  }
}

@media (max-width: 600px) {
  /* Mobile: make the whole marquee area clickable (if link exists) */
  .nb-campaign-banner__tap {
    display: block;
    position: absolute;
    inset: 0;
    right: 48px; /* leave room for close button */
    z-index: 2;
  }
  .nb-campaign-banner__content {
    position: relative;
    z-index: 1;
  }
  .nb-campaign-banner__close {
    z-index: 3;
  }

  .nb-campaign-banner__content {
    padding: 0 44px 0 16px;
    justify-content: flex-start;
    gap: 12px;
    overflow: hidden; /* needed for marquee */
  }
  .nb-campaign-banner__text {
    font-size: 12px;
    letter-spacing: 0.9px;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: nb-campaign-marquee 12s linear infinite;
  }
  .nb-campaign-banner__cta {
    display: none; /* mobile: remove button */
  }
  .nb-campaign-banner__close {
    right: 12px;
  }
}

@keyframes nb-campaign-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-campaign-banner__text {
    animation: none !important;
    padding-left: 0;
    white-space: normal;
  }
}
