/* Keep the existing mobile glyphs and layout. */
.sf-header__desktop-icon { display: none; }
.sf-header-search { display: none; }
.sf-header__collections,
.sf-header .sf-header__search-toggle--desktop { display: none; }

@media (min-width: 64rem) {
  .sf-header-search {
    position: relative;
    display: block;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    z-index: 3;
  }

  .sf-header-search .sf-header-search__form {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-shell-nav-border);
    border-radius: 999px;
    background: var(--color-shell-nav-bg);
    box-shadow: 0 4px 18px rgba(35, 22, 15, .12);
    visibility: hidden;
    opacity: 0;
    transition: width 240ms ease, opacity 160ms ease, visibility 240ms;
  }

  .sf-header-search.is-open .sf-header-search__form {
    width: clamp(12rem, 22vw, 17rem);
    visibility: visible;
    opacity: 1;
  }

  .sf-header-search .sf-header-search__input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 2.75rem 0 1rem;
    border: 0;
    border-radius: inherit;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--color-shell-nav-fg);
    font: inherit;
    font-size: .8125rem;
    opacity: 0;
    transition: opacity 120ms ease;
  }

  .sf-header-search.is-open .sf-header-search__input { opacity: 1; }
  .sf-header-search__input::placeholder { color: var(--color-shell-nav-fg); opacity: .7; }
  .sf-header-search__form:focus-within { outline: 1px solid var(--color-shell-nav-fg); outline-offset: 2px; }
  .sf-header-search > button { position: relative; z-index: 1; }
  .sf-header-search .sf-search-suggestions { top: calc(100% + .5rem); border-radius: 1rem; }

  .sf-header .sf-header__search-toggle.sf-header__search-toggle--mobile { display: none; }

  .sf-header__collections {
    position: relative;
    display: flex;
    align-items: center;
    gap: .125rem;
    height: auto;
    padding: 0 0 0 .5rem;
    line-height: normal;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sf-header__collections::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1rem;
    background: rgba(245, 237, 228, .25);
    transform: translateY(-50%);
  }

  .sf-header__collection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding-inline: clamp(.5rem, .8vw, .875rem);
    border-radius: 999px;
    color: var(--color-shell-nav-fg);
    font-size: clamp(.6875rem, .85vw, .75rem);
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms ease;
  }

  .sf-header__collection:hover {
    color: var(--color-shell-nav-fg);
    background: rgba(245, 237, 228, .07);
  }

  .sf-header__collection:focus-visible {
    outline: 2px solid var(--color-shell-nav-fg);
    outline-offset: 2px;
  }
  .sf-shell-head .sf-header__bar {
    min-height: var(--header-height);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1.5rem;
  }

  .sf-header .sf-header__primary,
  .sf-header .sf-header__actions {
    gap: .5rem;
    min-width: 0;
  }

  .sf-header .sf-header__brand {
    width: clamp(10rem, 13vw, 11.5rem);
  }

  .sf-header .sf-brand__nav-logo { max-height: 2.5rem; }

  .sf-header :is(.sf-header__menu-toggle, .sf-header__search-toggle, .sf-account-trigger, .sf-account-trigger__login-link, .sf-cart-link) {
    display: inline-flex;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--color-shell-nav-fg);
    line-height: 1;
    box-shadow: none;
    transition: background 160ms ease, border-color 160ms ease;
  }

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

  .sf-header .sf-header__icon-box > .material-icons { display: none; }

  .sf-header .sf-header__desktop-icon,
  .sf-header .sf-account-trigger__state-icon {
    display: block;
    flex: 0 0 1.375rem;
    width: 1.375rem;
    height: 1.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sf-header .sf-header__actions > .sf-currency-selector {
    padding-right: .75rem;
    margin-right: .25rem;
  }

  .sf-header .sf-header__actions > .sf-currency-selector::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 1.25rem;
    background: var(--color-shell-nav-border);
    transform: translateY(-50%);
  }

  .sf-header .sf-currency-selector__trigger,
  .sf-header .sf-currency-selector__select {
    min-height: 2.75rem;
    height: 2.75rem;
    padding-inline: .625rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
  }

  .sf-header :is(.sf-header__menu-toggle, .sf-header__search-toggle, .sf-account-trigger, .sf-account-trigger__login-link, .sf-cart-link, .sf-currency-selector__trigger):hover,
  .sf-header :is(.sf-account-trigger, .sf-header__menu-toggle, .sf-header__search-toggle, .sf-currency-selector__trigger)[aria-expanded="true"] {
    background: var(--color-shell-nav-control-bg-hover);
    border-color: var(--color-shell-nav-border);
  }

  .sf-header :is(.sf-header__menu-toggle, .sf-header__search-toggle, .sf-account-trigger, .sf-account-trigger__login-link, .sf-cart-link, .sf-currency-selector__trigger, .sf-currency-selector__select):focus-visible {
    outline: 2px solid var(--color-shell-nav-fg);
    outline-offset: 3px;
    background: var(--color-shell-nav-control-bg);
  }

  .sf-header .sf-cart-link .sf-badge {
    top: -.375rem;
    right: -.5rem;
    min-width: 1rem;
    height: 1rem;
    padding-inline: .1875rem;
    border-radius: 999px;
    background: var(--color-shell-nav-fg);
    color: var(--color-shell-nav-bg);
    font-size: .625rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .sf-header-search .sf-header-search__form,
    .sf-header-search .sf-header-search__input { transition: none; }
    .sf-header :is(button, a) { transition: none; }
  }
}
