/* ===== Navbar Component ===== */
.cc_ybju7jv0_navbar .kombos-navbar {
  width: 100%;
  border-bottom: 1px solid var(--kombos-gray-200, #F1EBE5);
}

/* Pinned main menu.
   `position: fixed`, not `sticky`: on ikas every wrapper around a section is
   `display: contents`, so a sticky bar's containing block resolves to the
   page-body div — and the footer is that div's sibling. The bar would unpin
   and slide off exactly as the footer scrolls into view (measured on the live
   page). `fixed` has no containing block to run out of.
   `right: 0` (rather than `width: 100%`) keeps the bar clear of the scrollbar,
   and useScrollLock's `scrollbar-gutter: stable` keeps that edge steady while
   an overlay is open, so opening the cart does not shift the bar. */
.cc_ybju7jv0_navbar .kombos-navbar--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--kombos-z-header);
}

/* Stand-in for the bar's height now that it is out of flow. The calc() is what
   renders on the server and on the first client paint — announcement strip
   (2.25rem, pinned by .nm-announce's fixed line-height below) + logo box +
   1px hairline — and Navbar overwrites it with the measured height on mount. */
.cc_ybju7jv0_navbar .kombos-navbar__spacer {
  height: calc(var(--logo-h-mobile, 3rem) + 1.5rem + 1px);
  flex-shrink: 0;
}

.cc_ybju7jv0_navbar .kombos-navbar__spacer--announce {
  height: calc(var(--logo-h-mobile, 3rem) + 1.5rem + 2.25rem + 1px);
}

.cc_ybju7jv0_navbar .kombos-navbar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
  position: relative;
  justify-content: space-between;
  min-height: calc(var(--logo-h-mobile, 3rem) + 1.5rem);
}

/* Logo */
.cc_ybju7jv0_navbar .kombos-navbar__logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: var(--logo-h-mobile, 3rem);
  overflow: hidden;
}

.cc_ybju7jv0_navbar .kombos-navbar__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem 0;
}

/* Navigation */
.cc_ybju7jv0_navbar .kombos-navbar__nav {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* NavItem sub-component uses kombos-header__* classes — keep those styles here */
.cc_ybju7jv0_navbar .kombos-header__nav-item {
  position: relative;
}

.cc_ybju7jv0_navbar .kombos-header__nav-link {
  color: var(--kombos-gray-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.cc_ybju7jv0_navbar .kombos-header__nav-link:hover {
  opacity: 0.7;
}

.cc_ybju7jv0_navbar .kombos-header__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cc_ybju7jv0_navbar .kombos-header__nav-item:hover .kombos-header__chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.cc_ybju7jv0_navbar .kombos-header__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1.125rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--kombos-white, #FCF9F6);
  border: 1px solid var(--kombos-gray-100, #FAF5F0);
  border-radius: 6px;
  padding: 0.375rem 0;
  width: 13rem;
  box-shadow: 0 2px 12px 0.4px rgba(33, 49, 23, 0.06);
  z-index: var(--kombos-z-dropdown);
  flex-direction: column;
}

/* Invisible bridge: covers the 18px gap between nav link and dropdown */
.cc_ybju7jv0_navbar .kombos-header__dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: -0.75rem;
  right: -0.75rem;
  height: 1.125rem;
}

.cc_ybju7jv0_navbar .kombos-header__nav-item:hover > .kombos-header__dropdown {
  display: flex;
}

/* Nested dropdown (2nd level) */
.cc_ybju7jv0_navbar .kombos-header__dropdown--nested {
  top: -0.375rem;
  left: calc(100% + 0.75rem);
  transform: none;
}

/* Bridge: covers the 12px gap between 1st and 2nd level dropdowns */
.cc_ybju7jv0_navbar .kombos-header__dropdown--nested::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  bottom: -0.75rem;
  right: 100%;
  left: auto;
  width: 0.75rem;
  height: auto;
}

.cc_ybju7jv0_navbar .kombos-header__dropdown-item {
  position: relative;
}

.cc_ybju7jv0_navbar .kombos-header__dropdown-item:hover > .kombos-header__dropdown--nested {
  display: flex;
}

.cc_ybju7jv0_navbar .kombos-header__dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--kombos-gray-900);
  text-decoration: none;
  padding: 0.75rem 1rem;
  transition: background-color 0.15s ease;
}

.cc_ybju7jv0_navbar .kombos-header__dropdown-link:hover {
  background-color: var(--kombos-gray-50);
}

.cc_ybju7jv0_navbar .kombos-header__caret-right {
  flex-shrink: 0;
  color: var(--kombos-gray-900);
}

/* Action Icons */
.cc_ybju7jv0_navbar .kombos-navbar__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cc_ybju7jv0_navbar .kombos-navbar__icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  transition: opacity 0.2s ease;
  font-size: 1.25rem;
}

.cc_ybju7jv0_navbar .kombos-navbar__icon-btn:hover {
  opacity: 0.6;
}

.cc_ybju7jv0_navbar .kombos-navbar__badge {
  position: absolute;
  top: -0.375rem;
  right: -0.5rem;
  background: var(--kombos-badge-bg);
  color: var(--kombos-white, #FCF9F6);
  font-size: 0.625rem;
  font-weight: 600;
  min-width: 1.125rem;
  height: 1.125rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

/* Hamburger (mobile only — visible by default) */
.cc_ybju7jv0_navbar .kombos-navbar__hamburger {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  color: var(--kombos-gray-900);
  transition: opacity 0.2s ease;
  font-size: 1.375rem;
}

.cc_ybju7jv0_navbar .kombos-navbar__hamburger:hover {
  opacity: 0.6;
}

/* ===== Responsive — Desktop ===== */
@media (min-width: 1024px) {
  .cc_ybju7jv0_navbar .kombos-navbar__inner {
    gap: 2rem;
    position: static;
    justify-content: initial;
    min-height: calc(var(--logo-h-desktop, 3.75rem) + 1.5rem);
  }

  .cc_ybju7jv0_navbar .kombos-navbar__hamburger {
    display: none;
  }

  .cc_ybju7jv0_navbar .kombos-navbar__nav {
    display: flex;
  }

  .cc_ybju7jv0_navbar .kombos-navbar__nav--no-logo {
    justify-content: flex-start;
  }

  .cc_ybju7jv0_navbar .kombos-navbar__logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    height: var(--logo-h-desktop, 3.75rem);
  }

  .cc_ybju7jv0_navbar .kombos-navbar__actions {
    gap: 1.25rem;
  }

  .cc_ybju7jv0_navbar .kombos-navbar__spacer {
    height: calc(var(--logo-h-desktop, 3.75rem) + 1.5rem + 1px);
  }

  .cc_ybju7jv0_navbar .kombos-navbar__spacer--announce {
    height: calc(var(--logo-h-desktop, 3.75rem) + 1.5rem + 2.25rem + 1px);
  }
}


/* --- Nomelly: inline wordmark fallback ------------------------------------ */
.cc_ybju7jv0_navbar .kombos-navbar__logo-img.nm-wordmark {
  color: var(--nm-olive, #314326);
  height: var(--logo-h-desktop, 60px);
  width: auto;
  display: block;
  padding: 10px 0; /* the raw wordmark has no internal padding; keep it airy */
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .cc_ybju7jv0_navbar .kombos-navbar__logo-img.nm-wordmark {
    height: var(--logo-h-mobile, 48px);
    padding: 8px 0;
  }
}


/* ===== Nomelly — brand green in the header ===== */

/* announcement strip: carries the shipping promise on every page, not just home */
/* line-height is pinned so the strip is exactly 2.25rem tall — the navbar
   spacer's pre-hydration calc() depends on that number. */
.cc_ybju7jv0_navbar .nm-announce {
  background: var(--nm-olive);
  color: var(--kombos-white, #FCF9F6);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
}

/* nav links: soft pill on hover, olive underline on the current page */
.cc_ybju7jv0_navbar .kombos-header__nav-link {
  position: relative;
  padding: 0.375rem 0.6875rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cc_ybju7jv0_navbar .kombos-header__nav-link:hover {
  background-color: var(--nm-olive-soft);
  color: var(--nm-olive) !important;
  opacity: 1;
}

.cc_ybju7jv0_navbar .kombos-header__nav-link--active::after {
  content: "";
  position: absolute;
  left: 0.6875rem;
  right: 0.6875rem;
  bottom: -0.125rem;
  height: 2px;
  border-radius: 1px;
  background: var(--nm-olive);
}

/* the pill would sit awkwardly under the underline, so the current page keeps
   the underline alone and only shifts tone on hover */
.cc_ybju7jv0_navbar .kombos-header__nav-link--active:hover {
  background-color: transparent;
}

/* icons and cart count pick up the brand colour */
.cc_ybju7jv0_navbar .kombos-navbar__icon-btn {
  color: var(--nm-olive);
}

.cc_ybju7jv0_navbar .kombos-navbar__badge {
  background: var(--nm-olive);
}

/* dropdown rows echo the same soft green rather than neutral grey */
.cc_ybju7jv0_navbar .kombos-header__dropdown-link:hover {
  background-color: var(--nm-olive-soft);
  color: var(--nm-olive);
}


/* ===== nm-touch-zone ========================================================
   Every header control is a 24px target. The glyph keeps its box and an
   invisible pseudo-element carries the hit area, so nothing reflows and the
   cart badge keeps its anchor. 36px wide on the icon row so adjacent zones
   tile without overlapping the 12px gap; the hamburger stands alone and can
   take the full 44.
   ========================================================================== */
.cc_ybju7jv0_navbar .kombos-navbar__hamburger { position: relative; }

.cc_ybju7jv0_navbar .kombos-navbar__icon-btn::after, .cc_ybju7jv0_navbar .kombos-navbar__hamburger::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.25rem;
  height: 2.75rem;
}

.cc_ybju7jv0_navbar .kombos-navbar__hamburger::after { width: 2.75rem; }

@media (min-width: 1024px) {
  .cc_ybju7jv0_navbar .kombos-navbar__icon-btn::after { width: 2.75rem; }
}
