@media (max-width: 63.99rem) {
  .sf-header {
    border-bottom: 1px solid var(--color-shell-nav-border);
    box-shadow: 0 2px 10px var(--color-shell-header-shadow);
  }

  .sf-header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: var(--touch-target-min);
    gap: 0.25rem;
    padding-block: 0.5rem;
  }

  .sf-shell-head .sf-header__bar {
    padding-inline: clamp(0.35rem, 1.5vw, 0.65rem);
  }

  .sf-header__primary {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
  }

  .sf-header__menu-toggle {
    min-width: 2.4rem;
    min-height: var(--touch-target-min);
  }

  .sf-header__search-toggle {
    min-width: 2.4rem;
    min-height: var(--touch-target-min);
  }

  .sf-brand {
    align-items: center;
    min-width: 0;
    width: min(10.5rem, calc(100% - 9.5rem));
    max-width: none;
    overflow: visible;
  }

  .sf-brand__nav-logo {
    width: 100%;
    max-height: 2.6rem;
  }

  .sf-brand__wordmark {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    line-height: 1;
  }

  .sf-header__actions {
    grid-column: 3;
    justify-self: end;
    gap: 0.1rem;
    min-width: 0;
  }

  .sf-header__actions > .sf-currency-selector {
    display: none;
  }

  .sf-icon-button,
  .sf-account-link,
  .sf-account-trigger,
  .sf-account-trigger__login-link,
  .sf-cart-link {
    min-width: 2.4rem;
    min-height: var(--touch-target-min);
  }

  .sf-header__action-control,
  .sf-account-trigger,
  .sf-account-trigger__login-link,
  .sf-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sf-account-trigger,
  .sf-account-trigger__login-link,
  .sf-cart-link {
    padding: 0;
  }

  .sf-account-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sf-account-trigger,
  .sf-account-trigger__login-link {
    gap: 0;
    border-radius: var(--radius-sm);
    background: transparent;
  }

  .sf-header__icon-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
  }

  .sf-header__icon-box i {
    font-size: 1.3rem;
    line-height: 1;
  }

  .sf-account-trigger .sf-header__icon-box,
  .sf-account-trigger__login-link .sf-header__icon-box {
    display: inline-flex;
  }

  .sf-account-link__label {
    display: none;
  }

  .sf-cart-link {
    position: relative;
  }

  .sf-cart-link .sf-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-shell-nav-fg);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
  }

  .sf-mobile-search {
    border-top: 1px solid var(--color-shell-nav-border);
  }

}

@media (max-width: 22rem) {
  .sf-brand__wordmark {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .sf-brand {
    justify-content: center;
    text-align: center;
  }

  .sf-header__actions {
    justify-self: end;
  }
}

@media (min-width: 481px) {
  [data-nav-brand-name] {
    display: inline-block;
  }
}

.sf-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 105;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: 999px;
  border: 1px solid var(--color-shell-nav-border);
  background: var(--color-shell-nav-bg);
  color: var(--color-shell-nav-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  padding: 0;
}

.sf-back-to-top i {
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
}

.sf-back-to-top:hover,
.sf-back-to-top:focus-visible {
  background: var(--color-shell-nav-control-bg-hover);
  color: var(--color-black);
  outline: none;
}

.sf-back-to-top[hidden] {
  display: none;
}
