.site-header {
  box-sizing: content-box;
  display: block;
  width: auto;
  padding: 0;
  color: rgba(var(--color-text));
  background-color: #fff;
  border-bottom: 1px solid rgb(226, 222, 215);
}

a.site-header__link:hover,
a.site-header__link.is-active {
  background: rgb(20, 20, 20);
  color: #fff !important;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  justify-content: space-between;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__logo img {
  display: block;
  width: 50px;
  height: 30px;
  object-fit: contain;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
}

.site-header__link {
  display: block;
  padding: 8px 14px;
  border-radius: 22px;
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.35s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header__link:hover,
.site-header__link.is-active {
  background: rgb(20, 20, 20);
  color: rgb(255, 255, 255);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.site-header__account,
.site-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-header__account-icon,
.site-header__cart-icon {
  flex: 0 0 auto;
}

.site-header__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgb(226, 249, 161);
  color: rgb(0, 0, 0);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 17px;
}

.site-header__cart-count[hidden] {
  display: none;
}

.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  color: rgb(20, 20, 20);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.site-header__burger-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}

.site-header__burger-lines span {
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header__burger-lines span:nth-child(1) { top: 0; }
.site-header__burger-lines span:nth-child(2) { top: 6px; width: 64%; }
.site-header__burger-lines span:nth-child(3) { top: 12px; }

.site-header__burger:hover .site-header__burger-lines span:nth-child(2) {
  width: 100%;
}


/* Desktop: the menu wrappers vanish from layout, so the nav stays a flex item of the header row. */
.site-header__menu,
.site-header__menu-panel {
  display: contents;
}

.site-header__menu-top,
.site-header__menu-foot {
  display: none;
}

html.site-menu-open {
  overflow: hidden;
}

@media (max-width: 959px) {
  .site-header__inner {
    padding: 0 24px;
    gap: 16px;
    justify-content: flex-start;
  }
  .site-header__logo {
    order: 0;
    margin-inline: 0;
    margin-right: auto;
  }
  .site-header__actions {
    order: 1;
  }
  .site-header__burger {
    display: flex;
    order: 2;
  }
  .site-header__account span {
    display: none;
  }

  /* Full-screen menu: the panel fades in, then the links rise a few pixels in sequence. */
  .site-header__menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.3s;
  }
  .site-header__menu.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header__menu-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top);
    color: rgb(255, 255, 255);
    background: rgb(62, 70, 55);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .site-header__menu.is-open .site-header__menu-panel {
    opacity: 1;
    transition-duration: 0.3s;
  }

  .site-header__menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    height: 64px;
    padding: 0 16px 0 24px;
  }
  .site-header__menu-logo img {
    display: block;
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .site-header__menu-close {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: rgb(20, 20, 20);
    background: rgb(226, 249, 161);
    cursor: pointer;
  }
  .site-header__menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .site-header__menu-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .site-header__menu-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

  .site-header__menu .site-header__nav {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0;
    padding: 16px 24px 0;
    counter-reset: site-menu;
  }
  .site-header__menu .site-header__nav a.site-header__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    padding: 15px 0;
    border-bottom: 1px solid rgb(90, 97, 80);
    border-radius: 0;
    background: none;
    color: rgb(255, 255, 255) !important;
    font-family: "Archivo Black", Archivo, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    counter-increment: site-menu;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.25s ease;
  }
  .site-header__menu .site-header__nav a.site-header__link::before {
    content: counter(site-menu, decimal-leading-zero);
    min-width: 18px;
    font-family: Archivo, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgb(226, 249, 161);
  }
  .site-header__menu .site-header__nav a.site-header__link::after {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-left: auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .site-header__menu .site-header__nav a.site-header__link:hover,
  .site-header__menu .site-header__nav a.site-header__link:active,
  .site-header__menu .site-header__nav a.site-header__link.is-active {
    background: none;
    color: rgb(226, 249, 161) !important;
  }
  .site-header__menu .site-header__nav a.site-header__link:hover::after,
  .site-header__menu .site-header__nav a.site-header__link:active::after,
  .site-header__menu .site-header__nav a.site-header__link.is-active::after {
    opacity: 1;
    transform: translateX(3px);
  }
  .site-header__menu.is-open .site-header__nav a.site-header__link {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.4s ease calc(0.08s + var(--i, 0) * 0.04s),
      transform 0.4s ease calc(0.08s + var(--i, 0) * 0.04s),
      color 0.25s ease;
  }

  .site-header__menu-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 32px 24px calc(24px + env(safe-area-inset-bottom));
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .site-header__menu.is-open .site-header__menu-foot {
    opacity: 1;
    transition: opacity 0.4s ease 0.25s;
  }
  /* The base `a:not(.button)` rule paints every link in the dark link colour, so these set theirs explicitly. */
  .site-header__menu a.site-header__menu-cta,
  .site-header__menu a.site-header__menu-cta:hover {
    color: rgb(20, 20, 20) !important;
  }
  .site-header__menu a.site-header__menu-action,
  .site-header__menu a.site-header__menu-action:hover {
    color: rgb(255, 255, 255) !important;
  }
  .site-header__menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 20px;
    background: rgb(226, 249, 161);
    font-family: Archivo, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .site-header__menu-cta svg {
    transition: transform 0.25s ease;
  }
  .site-header__menu-cta:hover svg,
  .site-header__menu-cta:active svg {
    transform: translateX(3px);
  }
  .site-header__menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .site-header__menu-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid rgb(122, 130, 111);
    color: rgb(255, 255, 255);
    background: transparent;
    font-family: Archivo, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
  }
  .site-header__menu-action:hover,
  .site-header__menu-action:active {
    border-color: rgb(226, 249, 161);
    background: rgba(226, 249, 161, 0.08);
  }
  .site-header__menu-note {
    margin: 4px 0 0;
    font-family: Archivo, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    color: rgb(199, 204, 192);
  }
}

@media (max-width: 959px) and (prefers-reduced-motion: reduce) {
  .site-header__menu .site-header__nav a.site-header__link {
    transform: none !important;
    transition: opacity 0.2s ease !important;
  }
}
