/* Shared header geometry, including desktop, compact desktop, and mobile. */
.site-header { --header-pad: 50px; }
.header-main {
  display: grid;
  grid-template-columns: 180px minmax(220px, 500px) max-content;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  max-width: 1400px;
  min-height: 104px;
  margin: 0 auto;
  padding: 22px var(--header-pad);
  position: relative;
}
.header-main > .wordmark {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  line-height: 1;
}
.header-main > .wordmark img { display: block; width: 180px; height: 45px; }
.header-main > .desktop-search { min-width: 0; width: 100%; }
.header-main > .desktop-search .search-form {
  width: 100%;
  height: 44px;
  border: 1px solid #dfdfdf;
  background: #fafafa;
  padding: 0 6px 0 12px;
}
.header-main .search-form input { height: 42px; padding: 0; font-size: 13px; }
.header-main .search-form button { display: flex; padding: 10px; }
.header-main .header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin: 0;
}
.header-main .header-currency {
  display: flex;
  align-items: center;
  padding-right: 20px;
  border-right: 1px solid #dedede;
  color: #666;
  font-size: 11px;
  line-height: 24px;
}
.header-main .account-link,
.header-main .cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  color: #222;
  font-size: 12px;
  white-space: nowrap;
}
.header-main .account-link svg,
.header-main .cart-link svg { display: block; width: 22px; height: 22px; }
.header-main .account-label,
.header-main .cart-label { display: inline; }
.header-main .cart-count {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 3px;
  font-size: 9px;
  line-height: 1;
}
.site-nav .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--header-pad);
  justify-content: flex-start;
  gap: 30px;
}
.site-nav .nav-item > a { font-size: 13px; }
.site-nav .subnav.mega-menu {
  left: max(var(--header-pad), calc((100% - 1400px) / 2 + var(--header-pad)));
  right: max(var(--header-pad), calc((100% - 1400px) / 2 + var(--header-pad)));
}
@media (min-width: 761px) and (max-width: 1200px) {
  .site-header { --header-pad: 28px; }
  .header-main { grid-template-columns: 160px minmax(180px, 420px) max-content; gap: 24px; }
  .header-main > .wordmark img { width: 160px; height: 40px; }
  .header-main .header-tools { gap: 16px; }
  .header-main .header-currency { padding-right: 16px; }
  .site-nav .nav-inner { gap: 22px; }
  .site-nav .nav-item > a { font-size: 11px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .header-main { grid-template-columns: 150px minmax(180px, 1fr) max-content; gap: 28px; }
  .header-main > .wordmark img { width: 150px; height: 38px; }
  .header-main .account-label,
  .header-main .cart-label { display: none; }
  .header-main .account-link { min-width: 24px; }
  .header-main .header-tools { gap: 14px; }
  .site-nav .nav-inner { gap: 18px; }
}
@media (max-width: 760px) {
  .header-main {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0;
    min-height: 76px;
    padding: 14px 18px;
  }
  .header-main .mobile-menu-button { display: flex; padding: 7px; justify-self: start; }
  .header-main > .wordmark { left: auto; justify-self: center; }
  .header-main > .wordmark img { width: 140px; height: 35px; }
  .header-main > .desktop-search,
  .header-main .header-currency,
  .header-main .account-link,
  .header-main .cart-label { display: none !important; }
  .header-main .header-tools { gap: 0; justify-self: end; }
  .header-main .cart-link { position: relative; width: 38px; min-height: 40px; }
  .header-main .cart-count { position: absolute; top: 0; right: -1px; min-width: 14px; height: 14px; font-size: 8px; }
}
