/* Header-only art direction. Keep these tokens inside the storefront header. */
.sv-topline,
.sv-header {
  --paper: #f7f4ef;
  --ink: #121212;
  --wine: #861035;
  --wine-deep: #861035;
  --cherry: #861035;
  --gold: #861035;
  --line: rgba(18, 18, 18, .16);
  --surface-1: #eee7e4;
}

.sv-topline {
  min-height: 28px;
  padding: 0 var(--space);
  gap: 24px;
  background: var(--wine);
  color: var(--paper);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .06em;
}
.sv-topline .sv-ticker { direction: inherit; }
.sv-topline .sv-ticker-label { display: block; color: var(--paper); font-size: 9px; }
.sv-topline .sv-topline-track-btn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 0;
  border: 0;
  color: var(--paper);
  font-size: 10px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sv-topline .sv-topline-track-btn:focus-visible { outline-color: var(--paper); outline-offset: -2px; }

.sv-header { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.sv-header.is-scrolled { box-shadow: 0 6px 18px rgba(18, 18, 18, .06); }
.sv-header .sv-header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 420px) auto;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px var(--space);
  gap: clamp(20px, 3vw, 48px);
}
.sv-header .sv-menu-trigger { display: none; }
.sv-header .sv-logo { width: 100%; min-width: 0; }
.sv-header .sv-logo img { width: 100%; height: auto; }
.sv-header .sv-header-search-wrap { display: block; width: 100%; min-width: 0; max-width: none; }
.sv-header .sv-header-search {
  height: 42px;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.sv-header .sv-header-search:focus-within { outline: 2px solid var(--wine); outline-offset: 3px; }
.sv-header .sv-header-search input { color: var(--ink); }
.sv-header .sv-header-search input::placeholder { color: #62565b; opacity: 1; }
.sv-header .sv-header-search button { width: 44px; min-width: 44px; color: var(--ink); }
.sv-header .sv-header-search button:hover { color: var(--wine); }
.sv-header .sv-actions { gap: 4px; }
.sv-header .sv-actions > [data-sv-open="sv-search"] { display: none; }
.sv-header .sv-language { gap: 0; padding-inline: 0 8px; font-size: 11px; }
.sv-header .sv-language a { min-width: 32px; padding-inline: 4px; }
.sv-header .sv-icon { color: var(--ink); }
.sv-header .sv-icon:hover { color: var(--wine); }
.sv-header .sv-count,
.sv-header .sv-wish-count { background: var(--wine); color: var(--paper); }

.sv-header .sv-nav {
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space);
  gap: clamp(8px, 2vw, 28px);
  border-top: 0;
  background: var(--paper);
}
.sv-header .sv-nav > a,
.sv-header .sv-nav > button {
  position: relative;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
}
.sv-header .sv-nav > :is(a, button)::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 0;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.sv-header .sv-nav > :is(a:hover, button:hover, button[aria-expanded="true"]) {
  background: transparent;
  color: var(--wine);
}
.sv-header .sv-nav > :is(a:hover, a:focus-visible, button:hover, button:focus-visible, button[aria-expanded="true"])::after { transform: scaleX(1); }
.sv-header .sv-nav > .sv-nav-highlight { color: var(--wine); }
.sv-header .sv-nav > button > span { font-size: 12px; transition: transform 160ms ease; }
.sv-header .sv-nav > button[aria-expanded="true"] > span { transform: rotate(180deg); }
.sv-header .sv-nav > :is(a, button):focus-visible { outline-offset: -4px; }
[dir="rtl"] .sv-header .sv-nav > :is(a, button) { font-size: 13px; letter-spacing: 0; }

.sv-header .sv-mega-strip { background: var(--paper); border-color: var(--line); box-shadow: 0 18px 30px rgba(18, 18, 18, .1); }
.sv-header .sv-mega-col-title { color: var(--wine); }
.sv-header .sv-mega-links a { background: transparent; border-bottom: 1px solid var(--line); }
.sv-header .sv-mega-links a:is(:hover, :focus-visible) { background: var(--wine); color: var(--paper); }
.sv-header .sv-mega-links a:is(:hover, :focus-visible) small { color: var(--paper); }
.sv-header .sv-mega-feature-copy span { color: var(--paper); }

@media (max-width: 820px) {
  .sv-topline { min-height: 26px; justify-content: center; padding-inline: 12px; font-size: 9px; letter-spacing: .03em; }
  .sv-topline .sv-ticker-label,
  .sv-topline .sv-topline-track-btn { display: none; }
  .sv-header .sv-header-inner {
    grid-template-columns: 44px minmax(0, 1fr) 88px;
    min-height: 64px;
    padding: 8px 12px;
    gap: 8px;
  }
  .sv-header .sv-menu-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; }
  .sv-header .sv-logo { width: min(100%, 176px); justify-self: center; }
  .sv-header .sv-header-search-wrap,
  .sv-header .sv-actions .sv-language,
  .sv-header .sv-actions .sv-account,
  .sv-header .sv-actions .sv-wish-trigger,
  .sv-header .sv-nav,
  .sv-header .sv-mega-strip { display: none; }
  .sv-header .sv-actions { gap: 0; }
  .sv-header .sv-actions > [data-sv-open="sv-search"] { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-header .sv-nav > :is(a, button)::after,
  .sv-header .sv-nav > button > span { transition: none; }
}
