.store-header { background: #fff; border-bottom: 1px solid var(--line); }
.store-header :is(.topbar, .mainbar, .site-search-row) {
  width: min(1440px, calc(100% - 48px)); margin-inline: auto;
}
.store-header .topbar {
  padding: 0; color: var(--ink); background: #fff; min-height: 46px;
  border-bottom: 1px solid var(--line);
}
.header-region, .header-email { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.header-region .icon { width: 16px; height: 16px; }
.header-email { color: #465e78; }
.store-header .toplinks { font-size: .875rem; }
.store-header .toplinks a:nth-child(n) { display: block; white-space: nowrap; }
.store-header .mainbar { display: flex; justify-content: space-between; min-height: 84px; padding: 10px 0; gap: 20px; }
.header-brand, .header-tools { display: flex; align-items: center; gap: 14px; }
.header-brand { flex: none; }
.store-header .brand { flex: none; min-height: 0; height: 62px; }
.store-header .brand img { width: 58px; height: 62px; }
.store-header .brand-caption { display: block; font-size: .875rem; color: #4f6073; }
.store-header .header-contacts { display: flex; align-items: center; gap: 18px; }
.store-header .header-contact-links { display: grid; grid-template-columns: auto; gap: 2px; }
.store-header .header-contact-links .header-phone { font-size: 1.125rem; line-height: 1.2; }
.store-header .header-hours { display: flex; grid-column: auto; align-items: baseline; gap: 5px; min-height: 0; padding: 0; border: 0; color: #4f6073; }
.store-header .header-hours strong { font-size: 1rem; font-weight: 600; line-height: 1.2; }
.store-header .header-callback { min-height: 44px; }
.store-header .header-callback .icon { display: none; }
.header-shopping { display: flex; gap: 4px; align-items: center; }
.header-shopping a { display: grid; place-items: center; align-content: center; position: relative; gap: 3px; min-width: 44px; min-height: 44px; padding-inline: 6px; font-size: .8125rem; border-radius: 6px; }
.header-shopping a:hover, .header-email:hover { color: var(--action); }
.header-shopping a:hover { background: #f1f5f8; }
.header-shopping b, .header-mini-cart b { position: absolute; top: -4px; right: 2px; border-radius: 8px; min-width: 15px; text-align: center; font-size: .75rem; color: #fff; background: var(--action); }
.header-shopping b:empty, .header-mini-cart b:empty { display: none; }
.header-mini-cart, .store-header .header-mobile-callback { display: none; }
.store-header .header-cart { gap: 8px; min-height: 48px; padding: 5px 9px; border-color: #c9deef; border-radius: 6px; background: #f3f8fc; white-space: nowrap; }
.store-header .header-cart:hover { border-color: #88b7df; background: #eaf3fc; }
.header-cart > .icon { color: var(--action); }
.header-cart-summary { display: grid; gap: 2px; min-width: 64px; font-size: .875rem; line-height: 1.1; }
.header-cart-summary > span { color: #465e78; font-variant-numeric: tabular-nums; }
.header-cart-count { display: grid; place-items: center; position: relative; min-width: 22px; min-height: 22px; padding-inline: 4px; border-radius: 6px; background: #e0edf8; color: #244b71; font-size: .75rem; font-variant-numeric: tabular-nums; }
.header-cart-count-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.store-header .site-search-row { display: flex; align-items: stretch; gap: 14px; padding: 8px 0 16px; border: 0; }
.store-header .header-desktop-catalog { flex: 0 0 166px; border-radius: 6px; }
.store-header .site-search-row .search-form { align-items: stretch; width: auto; flex: 1; }
.store-header .search-form .icon-button { height: auto; }
.store-header .search-form :focus-visible { outline-offset: -3px; }

/* Keep dialogs out of document flow even without the browser's dialog stylesheet. */
dialog:not([open]) { display: none; }
:where(dialog[open]) {
  position: fixed; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%, -50%);
  max-width: calc(100% - 32px); max-height: calc(100% - 32px);
  overflow: auto; overscroll-behavior: contain; z-index: 100; background-color: #fff;
}
/* Obscura needs separate paint layers for content behind a modal. */
:where(body, body *):has(dialog[open]) > :not(dialog, :has(dialog[open]), script, style) { opacity: .999; }

.callback-dialog { width: min(500px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 14px 48px #17203438; }
.callback-dialog::backdrop { background: #1423339e; }
.callback-inner { position: relative; padding: 24px; }
.callback-inner h2 { padding-right: 46px; margin: 0 0 20px; }
.callback-close { position: absolute; inset: 12px 12px auto auto; color: var(--action); }
.callback-form:not([hidden]) { display: grid; gap: 14px; }
.callback-form > label { display: grid; gap: 6px; }
.callback-form > label input { min-height: 44px; }
.callback-form .consent { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; line-height: 1.45; }
.callback-form .consent input { flex: none; width: 18px; height: 18px; }
.callback-form .consent label { min-width: 0; }
.callback-result { margin: 0; color: #854229; }
.callback-result:empty { display: none; }

@media (max-width: 1180px) { .header-region { display: none; } }
@media (max-width: 1060px) {
  .store-header .brand-caption { display: none; }
  .store-header .mainbar, .store-header .header-contacts, .header-tools { gap: 10px; }
}
@media (max-width: 850px) { .header-shopping a > span { display: none; } }
@media (min-width: 651px) and (max-width: 750px) {
  .store-header .toplinks { column-gap: 12px; }
  .store-header .header-callback { width: 44px; padding-inline: 0; }
  .store-header .header-callback .icon { display: block; }
  .store-header .header-callback span { display: none; }
  .store-header .header-hours small { display: none; }
}
@media (max-width: 650px) {
  .store-header :is(.mainbar, .site-search-row) { width: calc(100% - 28px); }
  .store-header .topbar, .store-header .header-desktop-catalog { display: none; }
  .store-header .mainbar { min-height: 70px; gap: 8px; padding: 7px 0; }
  .store-header .brand, .store-header .brand img { height: 43px; }
  .store-header .header-contacts { margin-left: auto; }
  .store-header .header-contact-links { justify-items: end; }
  .store-header .header-contact-links .header-phone, .store-header .header-hours strong { font-size: 1rem; font-weight: 700; white-space: nowrap; }
  .store-header .header-hours small, .store-header .header-callback { display: none; }
  .header-tools, .header-shopping { gap: 2px; }
  .header-shopping a, .header-mini-cart { display: grid; position: relative; place-items: center; min-width: 36px; min-height: 44px; color: var(--action); }
  .header-mini-cart { background: #f1f5f8; border-radius: 8px; min-width: 40px; }
  .store-header .site-search-row { gap: 8px; padding-bottom: 12px; }
  .store-header .site-search-row .mobile-menu, .store-header .header-mobile-callback { display: inline-flex; flex: 0 0 44px; min-height: 43px; }
  .store-header .mobile-menu { background: var(--blue); color: #fff; }
  .store-header .header-mobile-callback { border-color: #9dbfd8; color: var(--action); }
}
@media (max-width: 650px) and (max-height: 600px) {
  body:has(.pdp) .store-header .mainbar { min-height: 59px; padding-block: 5px; }
  body:has(.pdp) .store-header .site-search-row { padding-block: 3px 6px; }
}
@media (max-width: 360px) {
  .store-header .mainbar { gap: 4px; }
  .store-header .brand img { width: 44px; }
  .header-shopping a { min-width: 33px; }
  .header-mini-cart { min-width: 36px; }
}
