/* Keep the desktop navigation on one line, down to its 992px breakpoint. */
@media (min-width: 992px) {
  [data-storefront-header] > .container-xxl { flex-wrap: nowrap; gap: clamp(10px, 1.1vw, 18px); }
  [data-storefront-header] .navbar-brand--twocomms {
    flex: 0 0 auto;
    gap: clamp(6px, .65vw, 10px) !important;
    margin-right: 0;
    font-size: clamp(17px, 1.52vw, 20px) !important;
    white-space: nowrap;
  }
  [data-storefront-header] .navbar-brand img { width: clamp(22px, 2vw, 28px); height: clamp(22px, 2vw, 28px); }
  [data-storefront-header] #navMain { flex-wrap: nowrap; gap: clamp(8px, .8vw, 14px); min-width: 0; }
  [data-storefront-header] .navbar-nav { flex: 1 0 auto; flex-wrap: nowrap; align-items: center; }
  [data-storefront-header] .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px clamp(4px, .5vw, 10px) !important;
    font-size: clamp(12.5px, .96vw, 14px) !important;
    line-height: 1.25;
    white-space: nowrap;
  }
  [data-storefront-header] .site-header-search { flex: 0 1 150px; width: clamp(84px, 10vw, 150px); min-width: 84px; margin-right: 0 !important; }
  [data-storefront-header] .site-header-search .form-control { width: 100%; min-width: 0; height: 36px !important; font-size: clamp(12.5px, .96vw, 14px) !important; }
  [data-storefront-header] .site-header-actions { flex: 0 0 auto; gap: clamp(8px, .8vw, 12px); }
  [data-storefront-header] .site-header-customizer {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    margin-right: 0 !important;
    padding: 10px clamp(10px, 1vw, 15px) !important;
    border-radius: 12px;
    font-size: clamp(12.5px, .96vw, 14px) !important;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
  }
  [data-storefront-header] .site-header-customizer svg { flex: 0 0 auto; width: 17px; height: 17px; }
  [data-storefront-header] .user-profile-container { flex: 0 0 auto; margin-left: 0 !important; }
  [data-storefront-header] :is(.favorites-btn, .cart-btn, .user-avatar-btn, .avatar-wrapper, .favorites-icon-wrapper, .cart-icon-wrapper) { width: clamp(34px, 2.8vw, 40px); height: clamp(34px, 2.8vw, 40px); }
  [data-storefront-header] :is(.favorites-btn, .cart-btn, .user-avatar-btn) { min-width: 0; padding: 0; }
  [data-storefront-header] .avatar-image { width: 100%; height: 100%; }
  [data-storefront-header] .site-header-customizer:focus-visible { outline: 2px solid #e0ccff; outline-offset: 4px; }
}
/* The categories sit in the bar itself (CRO plan Э9.2, B-15), a thin rule after «Каталог» groups them; below 1200 px
   «Співпраця» (also in the footer) gives them the room. */
@media (min-width: 992px) {
  [data-storefront-header] .nav-item--category-first { margin-left: 6px; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .14); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  [data-storefront-header] .nav-item--wide-only { display: none; }
}
@media (min-width: 992px) and (max-width: 1040px) {
  [data-storefront-header] .navbar-brand--twocomms { font-size: 16px !important; }
  [data-storefront-header] #navMain { gap: 6px; }
  [data-storefront-header] .navbar-nav .nav-link { padding-inline: 4px !important; }
  [data-storefront-header] .site-header-actions { gap: 6px; }
  [data-storefront-header] .site-header-customizer { gap: 5px; }
}

/* CRO plan Э7.4: the guest mini-profile — Google (dark theme of the Google button) and Telegram first, the login and
   password as a link; the note under them wraps instead of running off the panel. */
.mpx .mpx-auth__btn--google { justify-content: center; min-height: 48px; border-color: #8e918f; background: #131314; color: #e3e3e3; }
.mpx .mpx-auth__btn--telegram { justify-content: center; min-height: 48px; border-color: #2aabee; background: #2aabee; color: #04141d; }
.mpx .mpx-auth__btn--telegram svg { color: #04141d; }
.mpx .mpx-auth__link { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #cdd3df; font-size: .875rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(205, 211, 223, .4); text-underline-offset: 4px; animation: mpx-item-in .32s cubic-bezier(.22, .61, .36, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
/* `.user-panel * { white-space: nowrap !important }` (styles.purged.css) cut the note at the panel's edge. */
.user-panel .mpx-note { white-space: normal !important; overflow-wrap: break-word !important; }
@media (hover: hover) {
  .mpx .mpx-auth__btn--google:hover { background: #1f1f20; }
  .mpx .mpx-auth__btn--telegram:hover { background: #46b7f1; }
  .mpx .mpx-auth__link:hover { color: #fff; }
}
.mpx .mpx-auth__btn--google:focus-visible, .mpx .mpx-auth__btn--telegram:focus-visible, .mpx .mpx-auth__link:focus-visible { outline: 2px solid #f6dca4; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mpx .mpx-auth__link { animation: none; } }
