/*
 * Kik Header (sections/kik-header.liquid).
 * Values come from the sealed Figma frames "Navigation Bar - Desktop" (11611:3910, 1600 x 66)
 * and "Navigation Bar - Mobile" (11675:4140, 414 x 66). The desktop layout starts at 1024px:
 * logo (204) + nav (496) + search (152) + gap (24) + icons (106) does not fit narrower.
 * Figma colours/fonts differ from the theme's current --kik-* inventory, so they are
 * scoped here as private custom properties rather than new shared tokens.
 */
.kik-hdr {
  --kik-hdr-text: #1e1e1e;
  --kik-hdr-bg: #ffffff;
  --kik-hdr-surface: #f5f5f5;
  --kik-hdr-placeholder: #afafaf;
  --kik-hdr-accent: #cad66a;
  --kik-hdr-font: "Inter", var(--kik-font-family-sans, "Helvetica Neue", Arial, sans-serif);
  display: block;
  position: relative;
  background: var(--kik-hdr-bg);
  color: var(--kik-hdr-text);
  font-family: var(--kik-hdr-font);
  line-height: 1.6;
}

.kik-hdr *,
.kik-hdr *::before,
.kik-hdr *::after {
  box-sizing: border-box;
}

.kik-hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13.992px;
  width: 100%;
  max-width: 1600px;
  min-height: 66px;
  margin: 0 auto;
  padding: 0 16px;
}

.kik-hdr__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.kik-hdr__logo-link {
  display: block;
  line-height: 0;
}

.kik-hdr img.kik-hdr__logo {
  display: block;
  width: 170px;
  max-width: none;
  height: 20px;
  object-fit: cover;
}

.kik-hdr__logo-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Desktop navigation */
.kik-hdr__nav {
  display: none;
}

.kik-hdr__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kik-hdr__item {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
}

.kik-hdr a.kik-hdr__link {
  display: block;
  padding-bottom: 3px;
  color: var(--kik-hdr-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none;
}

.kik-hdr a.kik-hdr__link:hover,
.kik-hdr a.kik-hdr__link:focus-visible,
.kik-hdr a.kik-hdr__link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kik-hdr__sub {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 20;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  background: var(--kik-hdr-bg);
  box-shadow: 0 8px 24px rgba(30, 30, 30, 0.12);
}

.kik-hdr__item:hover > .kik-hdr__sub,
.kik-hdr__item:focus-within > .kik-hdr__sub {
  display: block;
}

.kik-hdr a.kik-hdr__sub-link {
  display: block;
  padding: 6px 0;
  color: var(--kik-hdr-text);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
}

.kik-hdr a.kik-hdr__sub-link:hover,
.kik-hdr a.kik-hdr__sub-link:focus-visible {
  text-decoration: underline;
}

/* Actions */
.kik-hdr__actions {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.kik-hdr__search {
  display: none;
  align-items: center;
  gap: 8px;
  width: 152px;
  height: 35px;
  margin: 0;
  padding: 8px;
  background: var(--kik-hdr-surface);
}

.kik-hdr img.kik-hdr__search-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.kik-hdr input.kik-hdr__search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 19px;
  margin: 0;
  padding: 0;
  border: 0;
  outline-offset: 2px;
  background: transparent;
  color: var(--kik-hdr-text);
  font-family: var(--kik-hdr-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-appearance: none;
  appearance: none;
}

.kik-hdr input.kik-hdr__search-input::placeholder {
  color: var(--kik-hdr-placeholder);
  opacity: 1;
}

.kik-hdr input.kik-hdr__search-input::-webkit-search-decoration,
.kik-hdr input.kik-hdr__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.kik-hdr__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kik-hdr a.kik-hdr__icon {
  position: relative;
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  color: var(--kik-hdr-text);
  text-decoration: none;
}

.kik-hdr .kik-hdr__glyph {
  display: block;
  width: 24px;
  height: 24px;
}

/* icon/user artwork sits at inset 8.33% 13.99% 12.5% 12.5% of its 24px box */
.kik-hdr .kik-hdr__glyph--user {
  position: relative;
}

.kik-hdr .kik-hdr__glyph--user img {
  position: absolute;
  top: 8.33%;
  right: 13.99%;
  bottom: 12.5%;
  left: 12.5%;
  width: auto;
  max-width: none;
  height: auto;
}

.kik-hdr .kik-hdr__ico--d {
  display: none;
}

.kik-hdr .kik-hdr__ico--m {
  display: block;
}

.kik-hdr__app {
  display: flex;
  align-items: center;
}

/* Cart count: theme.js replaces #cart-icon-bubble innerHTML with the theme's
   cart-icon-bubble Section markup, so the id-scoped rules beat its utility classes. */
.kik-hdr #cart-icon-bubble {
  position: absolute;
  top: -3.99px;
  right: -3.98px;
  width: 15.99px;
  height: 15.99px;
  pointer-events: none;
}

.kik-hdr #cart-icon-bubble .count_item {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15.99px;
  height: 15.99px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  background: var(--kik-hdr-accent);
  color: var(--kik-hdr-text);
  font-family: "Hanken Grotesk", var(--kik-hdr-font);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.kik-hdr #cart-icon-bubble .count_item.hidden {
  display: none;
}

.kik-hdr button.kik-hdr__burger {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.kik-hdr button.kik-hdr__burger img {
  width: 24px;
  height: 24px;
}

/* Mobile drawer (no open-state frame was supplied; see the component handoff) */
.kik-hdr__drawer {
  position: fixed;
  inset: 0;
  z-index: 75;
}

.kik-hdr__drawer[hidden] {
  display: none;
}

.kik-hdr__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.4);
}

.kik-hdr__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(360px, 85vw);
  overflow-y: auto;
  padding: 0 16px 24px;
  background: var(--kik-hdr-bg);
  outline: none;
}

.kik-hdr__panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 66px;
}

.kik-hdr button.kik-hdr__close {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.kik-hdr button.kik-hdr__close::before,
.kik-hdr button.kik-hdr__close::after {
  content: "";
  position: absolute;
  top: 11.5px;
  left: 3px;
  width: 18px;
  height: 1px;
  background: var(--kik-hdr-text);
}

.kik-hdr button.kik-hdr__close::before {
  transform: rotate(45deg);
}

.kik-hdr button.kik-hdr__close::after {
  transform: rotate(-45deg);
}

.kik-hdr__drawer-menu,
.kik-hdr__drawer-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kik-hdr__drawer-item {
  border-bottom: 1px solid var(--kik-hdr-surface);
}

.kik-hdr .kik-hdr__drawer-link {
  display: block;
  padding: 16px 0;
  color: var(--kik-hdr-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.kik-hdr .kik-hdr__drawer-sub {
  padding: 0 0 12px 16px;
}

.kik-hdr .kik-hdr__drawer-sublink {
  display: block;
  padding: 8px 0;
  color: var(--kik-hdr-text);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.kik-hdr summary {
  list-style: none;
}

.kik-hdr summary::-webkit-details-marker {
  display: none;
}

.kik-hdr__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.kik-hdr-locked {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .kik-hdr__bar {
    gap: 0;
    padding: 0 24px;
  }

  .kik-hdr__brand {
    flex: 1 1 0;
  }

  .kik-hdr img.kik-hdr__logo {
    width: 204px;
    height: 24px;
  }

  .kik-hdr__nav {
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    align-items: center;
  }

  /* 34px at the 1600px source canvas, narrowing so the row still fits at 1024px */
  .kik-hdr__menu {
    gap: clamp(20px, 2.125vw, 34px);
  }

  .kik-hdr__actions {
    gap: 24px;
  }

  .kik-hdr__search {
    display: flex;
  }

  .kik-hdr__icons {
    gap: 8px;
  }

  .kik-hdr a.kik-hdr__icon--search-mobile,
  .kik-hdr button.kik-hdr__burger {
    display: none;
  }

  .kik-hdr .kik-hdr__ico--d {
    display: block;
  }

  .kik-hdr .kik-hdr__ico--m {
    display: none;
  }

  .kik-hdr__drawer {
    display: none;
  }
}
