:root {
  --brand-ink: #0b2145;
  --brand-blue: #064895;
  --brand-red: #d91430;
  --brand-line: #d5dfee;
  --brand-muted: #475a77;
  --store-tools-height: 68px;
}

html:has(.store-header) { scrollbar-gutter: stable; scroll-padding-top: calc(var(--site-header-height, 117px) + 10px); }

.icon-library { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.icon {
  width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.header-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.store-header {
  --store-tools-height: 66px;
  position: sticky; top: 0; z-index: 6; flex: none;
  background: #fff; border-bottom: 1px solid #e5edf7;
  color: var(--brand-ink); font: 16px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.store-header button:disabled { cursor: default; }
.store-header :focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.store-header .wrap:is(.service-inner, .header-inner) { width: min(calc(100% - 36px), 1360px); margin-inline: auto; }
.service-bar { font-size: .76rem; font-weight: 640; border-bottom: 1px solid #e6edf6; background: #f8fafd; }
.service-inner, .service-nav { display: flex; align-items: center; }
.service-inner { justify-content: flex-end; min-height: 46px; padding-block: 5px; }
.service-nav { gap: clamp(8px, 1.5vw, 20px); white-space: nowrap; }
.service-nav a { color: var(--brand-ink); }
.service-nav > a, .service-menu summary {
  display: flex; align-items: center; min-height: 25px; padding: 2px 3px;
  border-radius: 4px;
}
.service-nav > a:hover, .service-menu summary:hover, .service-menu[open] summary { background: #e6effb; color: var(--brand-blue); text-decoration: none; }
.service-nav a[aria-current="page"], .service-menu:has(a[aria-current="page"]) summary { color: var(--brand-blue); }
.service-menu { position: relative; }
.service-menu summary {
  gap: 7px; list-style: none; cursor: pointer;
}
.service-menu summary::-webkit-details-marker { display: none; }
.service-menu-links {
  position: absolute; z-index: 3; inset: 100% auto auto 0; min-width: 188px; padding: 6px;
  border: 1px solid var(--brand-line); border-radius: 9px; background: #fff;
  box-shadow: 0 8px 22px #0b214525;
}
.service-menu-links a { display: block; padding: 9px 12px; border-radius: 5px; font-size: .86rem; }
.service-menu-links a:is(:hover, :focus-visible, [aria-current="page"]) { background: #edf4fc; text-decoration: none; }
.header-utilities {
  --header-utilities-gap: clamp(10px, 1.4vw, 20px);
  --header-search-min: min(176px, 45%);
  display: flex; align-items: center; gap: var(--header-utilities-gap); min-width: 0;
}
.header-profile {
  flex: 0 1 auto; min-width: 0; text-align: end;
  max-width: min(520px, calc(100% - var(--header-search-min) - var(--header-utilities-gap)));
}
.header-customer-summary { display: grid; gap: 2px; }
.header-customer {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  min-width: 0; overflow: hidden; overflow-wrap: anywhere; font-size: .9rem; font-weight: 710; line-height: 1.2;
}
.header-balance { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; font-size: .77rem; }
.header-balance > span { color: var(--brand-muted); font-weight: 600; }
.header-balance strong { padding: 1px 5px; border-radius: 5px; background: #e9eff7; font-size: .85rem; font-variant-numeric: tabular-nums; }
.header-balance .balance-positive { color: #176144; background: #e7f5ed; }
.header-balance .balance-negative { color: #aa1836; background: #fcecf0; }
.header-credit { position: relative; }
.header-credit summary { position: relative; padding: 3px 18px 3px 6px; border-radius: 6px; list-style: none; cursor: pointer; }
.header-credit summary::-webkit-details-marker { display: none; }
.header-credit summary:hover, .header-credit[open] summary { background: #f0f5fb; }
.header-credit summary::after {
  content: ""; position: absolute; inset: calc(50% - 4px) 4px auto auto;
  width: 6px; height: 6px; border: solid var(--brand-muted); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.header-credit[open] summary::after { transform: translateY(3px) rotate(225deg); }
.header-credit-facts {
  position: absolute; z-index: 4; inset: calc(100% + 6px) 0 auto auto;
  width: min(315px, 72vw); margin: 0; padding: 6px 12px; border: 1px solid var(--brand-line);
  border-radius: 9px; background: #fff; box-shadow: 0 8px 22px #0b214525; font-size: .86rem;
}
.header-credit-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-block: 8px; }
.header-credit-facts > div + div { border-top: 1px solid #e7eef6; }
.header-credit-facts dt { color: var(--brand-muted); text-align: start; }
.header-credit-facts dd { margin: 0; text-align: end; font-weight: 700; white-space: nowrap; }
.header-login { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 36px; padding-inline: 14px; border: 1px solid #ccdcec; border-radius: 8px; color: var(--brand-blue); background: #f5f9ff; font-size: .88rem; font-weight: 700; }
.header-login:hover { background: #e9f2fd; text-decoration: none; }
.header-inner {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(12px, 2.2vw, 24px); min-height: var(--store-tools-height); padding: 2px 0;
}
.wordmark img { display: block; max-width: 100%; width: clamp(140px, 16vw, 215px); height: auto; }
.header-inner .wordmark img { width: clamp(142px, 20vw, 211px); }
.header-button {
  border: 0; border-radius: 8px; min-height: 40px; padding: 0 14px; white-space: nowrap;
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  font-weight: 700; color: #fff; background: var(--brand-blue);
}
.header-button:hover { filter: brightness(.93); text-decoration: none; }
.catalog-link { min-height: 36px; background: linear-gradient(160deg, #095aac, #00407e); font-size: .88rem; }
.article-search { flex: 1 1 0; min-width: var(--header-search-min); }
.search-field {
  position: relative; min-width: 0; display: flex; align-items: center; height: 36px;
  border: 1px solid #9aaac0; border-radius: 8px; background: #f7f9fc; gap: 5px;
  padding: 0 8px;
}
.search-field:focus-within { border-color: #9ab7db; background: #fff; }
.store-header .search-field input {
  display: block; width: 100%; min-width: 0; padding: 0; height: 100%;
  border: 0; background: transparent; color: var(--brand-ink); outline: 0; font-size: .86rem;
}
.search-field input::placeholder { color: var(--brand-muted); }
.find-button {
  display: grid; flex: none; place-items: center; width: 30px; height: 29px; padding: 0; order: -1;
  border: 0; border-radius: 6px; background: transparent; color: var(--brand-ink); cursor: pointer;
}
.find-button:hover { background: #fcebf0; }
.find-button .icon { font-size: 1.06rem; }
.account-actions { display: flex; align-items: center; gap: clamp(11px, 2.15vw, 24px); padding-inline: 8px 7px; }
.account-actions :is(.account-cart, .account-preview-link) {
  background: none; border: 0; padding: 3px; display: grid; place-items: center;
  color: var(--brand-muted); font-weight: 650; font-size: .74rem;
}
.account-actions :is(.account-cart, .account-preview-link) > span:not(.cart-count) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.account-actions .icon { font-size: 1.34rem; color: var(--brand-ink); }
.account-actions :is(.account-cart, .account-preview-link) { width: 37px; height: 37px; border-radius: 8px; }
.account-actions :is(.account-cart, .account-preview-link):hover { background: #eaf2fc; text-decoration: none; }
.account-cart { position: relative; }
.cart-count {
  position: absolute; top: 0; right: -7px; min-width: 17px; height: 17px;
  padding-inline: 3px; border-radius: 20px; background: var(--brand-red); color: #fff;
  font-size: 11px; line-height: 17px; font-weight: 750; text-align: center;
}
.cart-feedback { position: fixed; inset: auto 16px 16px auto; z-index: 10; display: grid; gap: 4px; max-width: calc(100% - 32px); padding: 11px 14px; border: 1px solid var(--brand-line); border-radius: 8px; background: #fff; color: var(--brand-ink); box-shadow: 0 4px 18px #15385633; }
.cart-feedback a { font-weight: 700; }

.suggestions {
  position: absolute; z-index: 1; width: 100%; top: 100%; left: 0; margin-top: 4px;
  padding: 5px; border-radius: 7px; background: #fff; box-shadow: 0 10px 28px #2638542b;
  border: 1px solid var(--brand-line); overflow: auto; max-height: 350px;
}
.suggestion { display: block; padding: 9px 11px; border-radius: 5px; color: inherit; overflow-wrap: anywhere; }
.suggestion:hover, .suggestion:focus-visible { background: #edf5ff; text-decoration: none; }
.suggestion small { color: var(--brand-muted); display: block; margin-top: 4px; }
.suggestions > p { margin: 9px; color: var(--brand-muted); font-size: 13px; }

@media (max-width: 960px) {
  .catalog-link { padding-inline: 10px; }
}

@media (max-width: 840px) {
  .store-header { --store-tools-height: 48px; --store-brand-height: 49px; }
  .store-header .wrap:is(.service-inner, .header-inner) { width: calc(100% - 24px); }
  .service-nav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .header-inner {
    --store-catalog-width: 158px;
    grid-template-columns: minmax(0, 1fr) var(--store-catalog-width); grid-template-rows: var(--store-brand-height) minmax(var(--store-tools-height), auto);
    gap: 0 8px; padding: 0;
  }
  .header-inner .wordmark { grid-column: 1; grid-row: 1; }
  .header-inner .wordmark img { width: 132px; }
  .account-actions { grid-column: 1 / -1; grid-row: 1; justify-self: end; }
  .header-utilities { --header-utilities-gap: 8px; --header-search-min: min(120px, 45%); grid-column: 1; grid-row: 2; padding-block: 3px; }
  .catalog-link { grid-column: 2; grid-row: 2; justify-self: end; width: var(--store-catalog-width); }
}

@media (max-width: 600px) {
  .header-customer, .header-balance strong { font-size: .81rem; }
  .header-balance { gap: 3px; font-size: .71rem; }
  .service-nav { gap: 4px 8px; }
  .header-inner { --store-catalog-width: 40px; }
  .catalog-link { padding: 0; }
  .catalog-link span { display: none; }
}

@media (max-width: 380px) {
  .service-nav { gap: 3px; font-size: .68rem; }
  .service-nav > a, .service-menu summary { padding-inline: 4px; }
  .header-balance > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
