/**
 * Gymarket independent header v3.9.
 * Scope: body.gmf-site-header + #gm-site-header only. Owned by Gymarket Foundation.
 * No front-end JavaScript is required.
 */

body.gmf-site-header {
    --gmh-bg: var(--gm-brand-navy, #052441);
    --gmh-bg-soft: var(--gm-brand-navy-soft, #0b3153);
    --gmh-blue: var(--gm-brand-blue, #4482ad);
    --gmh-blue-hover: var(--gm-brand-blue-hover, #39769f);
    --gmh-green: var(--gm-brand-green, #18c83e);
    --gmh-green-hover: var(--gm-brand-green-hover, #12b737);
    --gmh-white: #fff;
    --gmh-text: #102a40;
    --gmh-muted: #66798a;
    --gmh-line: #e3e9ee;
    --gmh-focus: #83d2ff;
}

/* The independent header replaces every WoodMart normal/sticky header only when enabled. */
body.gmf-site-header .whb-header,
body.gmf-site-header .whb-main-header,
body.gmf-site-header .whb-sticky-header,
body.gmf-site-header .whb-clone,
body.gmf-site-header .whb-placeholder,
body.gmf-site-header .wd-header-sticky,
body.gmf-site-header [class*="whb-sticky-row"] {
    display: none !important;
}

body.gmf-site-header #gm-site-header,
body.gmf-site-header #gm-site-header * {
    box-sizing: border-box;
}

body.gmf-site-header #gm-site-header {
    position: relative;
    z-index: 900;
    width: 100%;
    color: var(--gmh-white);
    background: var(--gmh-bg);
    border: 0;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 8px 24px rgba(3, 22, 40, .24);
    isolation: isolate;
}

.gmh__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, .95vw, 18px);
    width: 100%;
    max-width: 1920px;
    min-height: 102px;
    margin: 0 auto;
    padding: 0 clamp(14px, 2.2vw, 46px);
}

.gmh a,
.gmh summary,
.gmh button,
.gmh input {
    font: inherit;
}

.gmh a {
    text-decoration: none;
}

.gmh svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gmh summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.gmh summary::-webkit-details-marker {
    display: none;
}

.gmh :is(a, summary, button):focus-visible {
    outline: 3px solid var(--gmh-focus) !important;
    outline-offset: 3px;
}

/* The search field uses one crisp outer shell. The inset hairline is painted
 * by the form itself, while the submit button reaches the shell edge and hides
 * the line beneath its blue surface. This avoids double/pixelated borders. */
.gmh-search:focus-within,
.gmh-mobile-search:focus-within {
    box-shadow:
        inset 0 0 0 1px var(--gmh-focus),
        0 0 0 3px rgba(131, 210, 255, .22);
}

/* Logo: the source image can be large; this frame always constrains its rendered size. */
.gmh-logo {
    display: flex;
    flex: 0 1 clamp(118px, 8.4vw, 150px);
    align-items: center;
    justify-content: center;
    width: clamp(118px, 8.4vw, 150px);
    height: clamp(48px, 3.5vw, 62px);
    overflow: hidden;
}

.gmh-logo__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* One-border product search; inputs never add a second line or shadow. */
.gmh-search,
.gmh-mobile-search {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 56px;
    overflow: hidden;
    direction: rtl;
    background: rgba(255, 255, 255, .035);
    border: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .54);
    background-clip: padding-box;
    isolation: isolate;
    backface-visibility: hidden;
    transition: box-shadow .16s ease;
}

.gmh-search {
    flex: 1 1 clamp(250px, 22vw, 360px);
    max-width: 430px;
}

.gmh-search input,
.gmh-mobile-search input {
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 20px !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    appearance: none;
}

.gmh-search input::placeholder,
.gmh-mobile-search input::placeholder {
    color: rgba(255, 255, 255, .65);
    opacity: 1;
}

.gmh-search button,
.gmh-mobile-search button {
    display: grid;
    flex: 0 0 54px;
    place-items: center;
    width: 54px;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    background: var(--gmh-blue);
    border: 0;
    border-radius: 16px 0 0 16px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .16s ease;
}

.gmh-search button:hover,
.gmh-mobile-search button:hover {
    background: var(--gmh-blue-hover);
}

/* Category button and full taxonomy/menu panel. */
.gmh-categories {
    position: relative;
    flex: 0 1 clamp(206px, 14vw, 252px);
}

.gmh-categories > summary {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    color: #fff;
    background: var(--gmh-blue);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 16px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .13);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .16s ease;
}

.gmh-categories > summary:hover,
.gmh-categories[open] > summary {
    background: var(--gmh-blue-hover);
}

.gmh-summary__icon,
.gmh-summary__chevron {
    display: grid;
    place-items: center;
}

.gmh-summary__chevron {
    transition: transform .16s ease;
}

.gmh-categories[open] .gmh-summary__chevron {
    transform: rotate(180deg);
}

.gmh-categories__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: min(72vh, 650px);
    overflow: auto;
    padding: 10px;
    color: var(--gmh-text);
    background: #fff;
    border: 1px solid var(--gmh-line);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(5, 25, 43, .22);
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}

/* Keep wheel, trackpad and touch scrolling, but remove the native heavy scrollbar. */
.gmh-categories__panel::-webkit-scrollbar,
.gmh-mobile-categories > div::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.gmh-panel__title {
    padding: 10px 12px 13px;
    color: var(--gmh-muted);
    border-bottom: 1px solid var(--gmh-line);
    font-size: 12px;
    font-weight: 800;
}

.gmh-category-list,
.gmh-category-list ul,
.gmh-main-menu,
.gmh-main-menu ul,
.gmh-mobile-links,
.gmh-mobile-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gmh-category-list > li + li {
    border-top: 1px solid #eef2f5;
}

.gmh-category-list li {
    position: relative;
    margin: 0;
}

.gmh-category-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--gmh-text);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    transition: color .14s ease, background-color .14s ease;
}

.gmh-category-list a:hover {
    color: #174f77;
    background: #eef6fb;
}

.gmh-category-list .sub-menu {
    margin: 0 16px 8px 0;
    padding: 2px 10px 4px 0;
    border-right: 2px solid #dceaf3;
}

.gmh-category-list .sub-menu a {
    min-height: 36px;
    padding-block: 6px;
    color: #385065;
    font-size: 13px;
    font-weight: 600;
}

.gmh-category-list .sub-menu .sub-menu {
    margin-right: 10px;
}

/* Main desktop menu: always one line; submenu only drops down, never wraps the header. */
.gmh-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.gmh-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, .95vw, 18px);
    white-space: nowrap;
}

.gmh-main-menu > li {
    position: relative;
    margin: 0;
}

.gmh-main-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 3px;
    color: rgba(255, 255, 255, .93);
    border-radius: 10px;
    font-size: clamp(13px, .92vw, 15px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: color .14s ease, background-color .14s ease;
}

.gmh-main-menu > li > a:hover,
.gmh-main-menu > .current-menu-item > a,
.gmh-main-menu > .current-menu-ancestor > a {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.gmh-main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    display: none;
    width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--gmh-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(5, 25, 43, .2);
}

.gmh-main-menu li:hover > .sub-menu,
.gmh-main-menu li:focus-within > .sub-menu {
    display: block;
}

.gmh-main-menu .sub-menu a {
    display: block;
    padding: 10px;
    color: var(--gmh-text);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    white-space: normal;
}

.gmh-main-menu .sub-menu a:hover {
    background: #eef6fb;
}

/* New dedicated tracking control. */
.gmh-track {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, .55vw, 9px);
    min-width: clamp(124px, 9vw, 154px);
    min-height: 52px;
    padding: 0 clamp(11px, .9vw, 17px);
    color: #fff;
    background: var(--gmh-green);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    box-shadow: 0 9px 22px rgba(13, 165, 51, .2);
    font-size: clamp(12px, .88vw, 14px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: transform .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.gmh-track:hover {
    color: #fff;
    background: var(--gmh-green-hover);
    box-shadow: 0 11px 26px rgba(13, 165, 51, .27);
    transform: translateY(-1px);
}

.gmh-track__icon {
    display: grid;
    place-items: center;
}

.gmh-track__mobile {
    display: none;
}

.gmf-theme-switch.gmh-theme-switch--desktop {
    --gmf-theme-switch-width: 66px;
    --gmf-theme-switch-height: 36px;
}

.gmh-theme-switch--desktop .gmf-theme-switch__label {
    display: none;
}

.gmh-theme-switch--desktop .gmf-theme-switch__control::after {
    inset: 1px 7px auto 7px;
    height: 44%;
}

.gmh-theme-switch--desktop .gmf-theme-switch__knob {
    top: 2px;
    left: calc(100% - 34px);
    width: 30px;
    height: 30px;
}

.gmh-theme-switch--desktop .gmf-theme-switch__icon svg {
    width: 18px;
    height: 18px;
}

html[data-gmf-theme="dark"] .gmh-theme-switch--desktop .gmf-theme-switch__knob {
    left: 2px;
}

/* Account and cart. */
.gmh-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(2px, .3vw, 6px);
}

.gmh-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 5px 7px;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: background-color .14s ease, border-color .14s ease;
}

.gmh-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .08);
}

.gmh-action__icon {
    position: relative;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
}

.gmh-action__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
    white-space: nowrap;
}

.gmh-action__text strong {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.gmh-action__text small {
    max-width: 110px;
    overflow: hidden;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    text-overflow: ellipsis;
}

.gmh-cart__count {
    position: absolute;
    top: -1px;
    right: -2px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    color: #092039;
    background: #9cdc38;
    border: 2px solid var(--gmh-bg);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

/* Tablet/mobile menu. */
.gmh-mobile-menu {
    position: relative;
    display: none;
    flex: 0 0 auto;
}

.gmh-mobile-menu > summary {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
}

.gmh-mobile-menu[open] > summary {
    background: rgba(255, 255, 255, .12);
}

.gmh-mobile-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 13px;
    color: var(--gmh-text);
    background: #fff;
    border: 1px solid var(--gmh-line);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(5, 25, 43, .26);
    overscroll-behavior: contain;
}

.gmh-mobile-track-row {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 10px;
    padding: 8px 11px;
    color: #0d6b34;
    background: #effbf3;
    border: 1px solid #cdeed8;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 850;
}

.gmh-mobile-track-row:hover {
    color: #075126;
    background: #e6f8ec;
}

.gmh-mobile-track-row__icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #0c8c43;
}

.gmh-mobile-track-row__icon svg {
    width: 22px;
    height: 22px;
}

.gmh-mobile-account-row {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 10px;
    padding: 8px 11px;
    color: var(--gmh-text);
    background: #f7fafc;
    border: 1px solid #dce6ed;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 850;
}

.gmh-mobile-account-row:hover {
    color: #174f77;
    background: #eef6fb;
}

.gmh-mobile-account-row__icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #174f77;
}

.gmh-mobile-account-row__icon svg {
    width: 22px;
    height: 22px;
}

.gmh-mobile-search {
    width: 100%;
    height: 50px;
    margin-bottom: 12px;
    background: #f5f8fa;
    box-shadow: inset 0 0 0 1px #cfdae2;
}

.gmh-mobile-search input {
    color: var(--gmh-text) !important;
}

.gmh-mobile-search input::placeholder {
    color: #718292;
}

.gmh-mobile-search button {
    width: 48px;
    height: 100%;
    flex-basis: 48px;
    border-radius: 12px 0 0 12px;
}

.gmh-mobile-links > li {
    margin: 0;
    border-bottom: 1px solid #edf1f4;
}

.gmh-mobile-links > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--gmh-text);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.gmh-mobile-links a:hover {
    color: #174f77;
    background: #eef6fb;
}

.gmh-mobile-links .sub-menu {
    padding: 0 13px 7px 0;
}

.gmh-mobile-links .sub-menu a {
    display: block;
    padding: 7px 10px;
    color: #425b6f;
    font-size: 13px;
    font-weight: 600;
}

.gmh-mobile-categories {
    margin-top: 10px;
    border: 1px solid #dce5eb;
    border-radius: 12px;
    overflow: hidden;
}

.gmh-mobile-categories > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 12px;
    color: #fff;
    background: var(--gmh-blue);
    font-size: 14px;
    font-weight: 900;
}

.gmh-mobile-categories > summary svg {
    width: 20px;
    height: 20px;
    transition: transform .16s ease;
}

.gmh-mobile-categories[open] > summary svg {
    transform: rotate(180deg);
}

.gmh-mobile-categories > div {
    max-height: 48vh;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 7px;
    background: #fff;
}

@media (max-width: 1600px) {
    .gmh__inner {
        gap: 11px;
        padding-inline: 26px;
    }

    .gmh-logo {
        flex-basis: 126px;
        width: 126px;
        height: 52px;
    }

    .gmh-categories {
        flex-basis: 220px;
    }

    .gmh-categories > summary {
        padding-inline: 13px;
        font-size: 14px;
    }

    .gmh-search {
        flex-basis: 280px;
        max-width: 350px;
    }

    .gmh-main-menu {
        gap: 11px;
    }

    .gmh-main-menu > li > a {
        font-size: 14px;
    }

    .gmh-action__text {
        display: none;
    }
}

@media (max-width: 1480px) {
    .gmh__inner {
        gap: 9px;
        padding-inline: 20px;
    }

    .gmh-logo {
        flex-basis: 118px;
        width: 118px;
        height: 48px;
    }

    .gmh-categories {
        flex-basis: 206px;
    }

    .gmh-search {
        flex-basis: 250px;
        max-width: 315px;
    }

    .gmh-main-menu {
        gap: 8px;
    }

    .gmh-main-menu > li > a {
        font-size: 13px;
    }

    .gmf-theme-switch.gmh-theme-switch--desktop {
        --gmf-theme-switch-width: 62px;
        --gmf-theme-switch-height: 34px;
    }

    .gmh-theme-switch--desktop .gmf-theme-switch__knob {
        width: 28px;
        height: 28px;
        left: calc(100% - 31px);
    }

    html[data-gmf-theme="dark"] .gmh-theme-switch--desktop .gmf-theme-switch__knob {
        left: 2px;
    }

    .gmh-track {
        min-width: 112px;
        padding-inline: 10px;
    }

    .gmh-track__desktop {
        display: none;
    }

    .gmh-track__mobile {
        display: inline;
    }
}

@media (max-width: 1320px) {
    .gmh__inner {
        min-height: 94px;
        padding-inline: 20px;
    }

    .gmh-logo {
        flex-basis: 116px;
        width: 116px;
        height: 48px;
    }

    .gmh-categories {
        flex-basis: 205px;
    }

    .gmh-search {
        max-width: 310px;
    }

    .gmh-track {
        min-width: 106px;
        padding-inline: 9px;
    }

    .gmh-track__desktop {
        display: none;
    }

    .gmh-track__mobile {
        display: inline;
    }

    .gmh-main-menu {
        gap: 9px;
    }

    .gmh-main-menu > li > a {
        font-size: 13px;
    }
}

@media (max-width: 1250px) and (min-width: 1101px) {
    .gmh__inner {
        gap: 7px;
        padding-inline: 14px;
    }

    .gmh-logo {
        flex-basis: 104px;
        width: 104px;
        height: 44px;
    }

    .gmh-categories {
        flex-basis: 188px;
    }

    .gmh-categories > summary {
        grid-template-columns: 24px minmax(0, 1fr) 18px;
        gap: 7px;
        min-height: 50px;
        padding-inline: 10px;
        font-size: 12.5px;
    }

    .gmh-search {
        flex-basis: 230px;
        max-width: 280px;
        height: 50px;
    }

    .gmh-search button {
        flex-basis: 48px;
        width: 48px;
    }

    .gmh-main-menu {
        gap: 6px;
    }

    .gmh-main-menu > li > a {
        min-height: 40px;
        font-size: 12.25px;
        padding-inline: 2px;
    }

    .gmh-track {
        min-width: 96px;
        min-height: 46px;
        padding-inline: 8px;
        font-size: 11.5px;
    }

    .gmf-theme-switch.gmh-theme-switch--desktop {
        --gmf-theme-switch-width: 58px;
        --gmf-theme-switch-height: 34px;
    }

    .gmh-action {
        min-height: 42px;
        padding-inline: 3px;
    }

    .gmh-action__icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 1100px) {
    body.gmf-site-header #gm-site-header {
        border-radius: 0 0 24px 24px;
    }

    .gmh__inner {
        min-height: 86px;
    }

    .gmh-categories,
    .gmh-nav {
        display: none;
    }

    /* From the first hamburger breakpoint onward there must be only one
     * appearance control: the one inside the hamburger panel. */
    .gmh-theme-switch--desktop {
        display: none !important;
    }

    .gmh-search {
        flex: 1 1 320px;
        max-width: none;
    }

    /* Search/account stay in the main row while there is enough room. Their
     * panel equivalents remain hidden to avoid duplicate controls. */
    .gmh-mobile-search,
    .gmh-mobile-account-row {
        display: none;
    }

    .gmh-track,
    .gmh-actions,
    .gmh-mobile-menu,
    .gmh-logo {
        flex-shrink: 0;
    }

    .gmh-mobile-menu {
        display: block;
    }
}

@media (max-width: 420px) {
    /* On genuinely narrow widths, move account into the hamburger panel. */
    .gmh-account {
        display: none !important;
    }

    .gmh-mobile-account-row {
        display: flex;
    }
}

@media (max-width: 767px) {
    .gmh-mobile-search {
        display: flex;
    }

    body.gmf-site-header #gm-site-header {
        border-radius: 0 0 20px 20px;
        box-shadow: 0 7px 20px rgba(3, 22, 40, .22);
    }

    .gmh__inner {
        min-height: 76px;
        gap: 8px;
        padding-inline: 12px;
    }

    .gmh-logo {
        order: 2;
        flex: 0 1 126px;
        width: 126px;
        height: 46px;
    }

    .gmh-search {
        display: none;
    }

    .gmh-track {
        order: 3;
        min-width: 106px;
        min-height: 42px;
        padding: 0 11px;
        border-radius: 12px;
        font-size: 12px;
        box-shadow: 0 7px 17px rgba(13, 165, 51, .18);
    }

    .gmh-track__desktop {
        display: none;
    }

    .gmh-track__mobile {
        display: inline;
    }

    .gmh-track__icon svg {
        width: 21px;
        height: 21px;
    }

    .gmh-actions {
        order: 4;
        margin-right: auto;
    }

    .gmh-action {
        min-height: 42px;
        padding: 1px;
    }

    .gmh-action__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .gmh-mobile-menu {
        order: 1;
    }

    .gmh-mobile-menu > summary {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .gmh-mobile-menu__panel {
        position: fixed;
        top: calc(var(--gmh-sticky-top) + var(--gmh-mobile-panel-offset));
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - var(--gmh-sticky-top) - var(--gmh-mobile-panel-offset) - 10px);
    }
}

@media (max-width: 420px) {
    .gmh__inner {
        gap: 6px;
        padding-inline: 9px;
    }

    .gmh-logo {
        flex-basis: 108px;
        width: 108px;
        height: 42px;
    }

    .gmh-track {
        min-width: 94px;
        padding-inline: 9px;
    }

    .gmh-mobile-menu__panel {
        right: 7px;
        left: 7px;
    }
}

@media (max-width: 350px) {
    .gmh-logo {
        flex-basis: 96px;
        width: 96px;
        height: 38px;
    }

    .gmh-track {
        min-width: 42px;
        width: 42px;
        padding: 0;
    }

    .gmh-track__mobile {
        display: none;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gmh *,
    .gmh *::before,
    .gmh *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --------------------------------------------------------------------------
 * Sticky compact state v3.2
 * Full-size at the top; shorter and quieter after scrolling. All actions stay.
 * -------------------------------------------------------------------------- */
body.gmf-site-header #gm-site-header {
    --gmh-sticky-top: 0px;
    --gmh-compact-trigger: 68px;
    --gmh-mobile-panel-offset: 86px;
    position: sticky;
    top: var(--gmh-sticky-top);
    z-index: 990;
    transition: border-radius .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.admin-bar.gmf-site-header #gm-site-header {
    --gmh-sticky-top: 32px;
}

.gmh__inner,
.gmh-logo,
.gmh-categories,
.gmh-categories > summary,
.gmh-search,
.gmh-search button,
.gmh-main-menu,
.gmh-main-menu > li > a,
.gmh-track,
.gmh-action,
.gmh-action__icon,
.gmh-mobile-menu > summary {
    transition-property: min-height, height, width, flex-basis, max-width, padding, gap, border-radius, font-size, background-color, box-shadow, transform;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.2, .7, .2, 1);
}

body.gmf-site-header #gm-site-header.gmh--compact {
    border-radius: 0 0 18px 18px;
    box-shadow: 0 9px 26px rgba(3, 22, 40, .3);
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
    min-height: 72px;
    gap: clamp(8px, .85vw, 16px);
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
    flex-basis: 112px;
    width: 112px;
    height: 42px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-categories {
    flex-basis: 220px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-categories > summary {
    min-height: 44px;
    padding-inline: 13px;
    border-radius: 13px;
    font-size: 14px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
    height: 44px;
    max-width: 390px;
    border-radius: 14px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-search input {
    padding-inline: 16px !important;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-search button {
    flex-basis: 44px;
    width: 44px;
    height: 100%;
    border-radius: 13px 0 0 13px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-search button svg {
    width: 21px;
    height: 21px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-main-menu {
    gap: clamp(9px, .9vw, 17px);
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-main-menu > li > a {
    min-height: 38px;
    font-size: 14px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
    min-width: 142px;
    min-height: 42px;
    padding-inline: 14px;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(13, 165, 51, .18);
    font-size: 13px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-track__icon svg {
    width: 21px;
    height: 21px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-action {
    min-height: 40px;
    padding-block: 2px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-action__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-action__icon svg {
    width: 22px;
    height: 22px;
}

body.gmf-site-header #gm-site-header.gmh--compact .gmh-action__text {
    display: none;
}

@media (max-width: 1600px) {
    body.gmf-site-header #gm-site-header {
        --gmh-compact-trigger: 62px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        flex-basis: 104px;
        width: 104px;
        height: 38px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-categories {
        flex-basis: 205px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
        max-width: 340px;
    }
}

@media (max-width: 1320px) {
    body.gmf-site-header #gm-site-header {
        --gmh-compact-trigger: 56px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        min-height: 66px;
        padding-inline: 18px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        flex-basis: 96px;
        width: 96px;
        height: 36px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-categories {
        flex-basis: 192px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
        max-width: 285px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
        min-width: 126px;
        padding-inline: 11px;
    }
}

@media (max-width: 1100px) {
    body.gmf-site-header #gm-site-header {
        --gmh-compact-trigger: 50px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        min-height: 64px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
        max-width: none;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-menu > summary {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar.gmf-site-header #gm-site-header {
        --gmh-sticky-top: 46px;
    }
}

@media (max-width: 420px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-account {
        display: none !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-account-row {
        display: flex;
    }
}

@media (max-width: 767px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-search {
        display: flex;
    }

    body.gmf-site-header #gm-site-header {
        --gmh-compact-trigger: 42px;
        --gmh-mobile-panel-offset: 86px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact {
        --gmh-mobile-panel-offset: 68px;
        border-radius: 0 0 15px 15px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        min-height: 60px;
        gap: 7px;
        padding-inline: 10px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        flex-basis: 104px;
        width: 104px;
        height: 36px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
        min-width: 94px;
        min-height: 38px;
        padding-inline: 9px;
        border-radius: 11px;
        font-size: 11px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track__icon svg {
        width: 19px;
        height: 19px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-action {
        min-height: 38px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-action__icon,
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-menu > summary {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .gmh-mobile-menu__panel {
        top: calc(var(--gmh-sticky-top) + var(--gmh-mobile-panel-offset));
        max-height: calc(100vh - var(--gmh-sticky-top) - var(--gmh-mobile-panel-offset) - 10px);
    }
}

@media (max-width: 420px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        gap: 5px;
        padding-inline: 8px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        flex-basis: 92px;
        width: 92px;
        height: 34px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
        min-width: 84px;
        padding-inline: 7px;
    }
}

@media (max-width: 350px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        flex-basis: 84px;
        width: 84px;
        height: 32px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
        min-width: 38px;
        width: 38px;
        padding: 0;
    }
}

/* --------------------------------------------------------------------------
 * Header catalog tabs: categories + brands (v3.4)
 * -------------------------------------------------------------------------- */
.gmh [hidden] {
    display: none !important;
}

.gmh-panel-tabs {
    position: sticky;
    top: -10px;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: -2px -2px 9px;
    padding: 6px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #e5ebef;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(6, 35, 59, .06);
    backdrop-filter: blur(8px);
}

.gmh-panel-tabs button {
    min-height: 38px;
    margin: 0;
    padding: 0 10px;
    color: #587083;
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: color .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.gmh-panel-tabs button:hover {
    color: #174f77;
    background: #eef6fb;
}

.gmh-panel-tabs button.is-active {
    color: #fff;
    background: var(--gmh-blue);
    box-shadow: 0 5px 12px rgba(49, 110, 151, .2);
}

.gmh-panel-view {
    min-width: 0;
}

.gmh-brand-search {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 2px 0 9px;
    overflow: hidden;
    color: #5d7486;
    background: #f5f8fa;
    border: 1px solid #dfe8ee;
    border-radius: 11px;
}

.gmh-brand-search > span {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 100%;
    place-items: center;
}

.gmh-brand-search svg {
    width: 19px;
    height: 19px;
}

.gmh-brand-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 0 0 12px !important;
    color: var(--gmh-text) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 12px;
}

.gmh-brand-search:focus-within {
    border-color: #7ebadd;
    box-shadow: 0 0 0 3px rgba(68, 130, 173, .12);
}

.gmh-brand-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gmh-brand-list li {
    min-width: 0;
    margin: 0;
}

.gmh-brand-list a {
    display: flex;
    min-height: 48px;
    padding: 7px 10px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--gmh-text);
    background: #f8fafb;
    border: 1px solid #edf2f5;
    border-radius: 11px;
    line-height: 1.4;
    transition: color .14s ease, background-color .14s ease, border-color .14s ease, transform .14s ease;
}

.gmh-brand-list a:hover {
    color: #fff;
    background: var(--gmh-blue);
    border-color: var(--gmh-blue);
    transform: translateY(-1px);
}

.gmh-brand-list a span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmh-brand-list a small {
    flex: 0 0 auto;
    color: #6d8191;
    font-size: 9px;
    white-space: nowrap;
}

.gmh-brand-list a:hover small {
    color: rgba(255, 255, 255, .78);
}

.gmh-brand-empty {
    margin: 15px 0 6px;
    color: #7a8b98;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 420px) {
    .gmh-brand-list {
        grid-template-columns: 1fr;
    }
}

/* Vira Amazing Offers is a consumer of the Foundation shell, not an owner of it.
 * Keep header geometry under Foundation even on that public landing page. */
body.vira-amazing-offers-public-page.gmf-site-header #gm-site-header {
    position: sticky !important;
    top: var(--gmh-sticky-top, 0px) !important;
}

/* --------------------------------------------------------------------------
 * 0.4.43 — zoom/reflow hardening.
 * Browser zoom reduces the CSS viewport. These rules deliberately make the
 * header reflow in stages instead of allowing controls to collide.
 * -------------------------------------------------------------------------- */
@media (max-width: 620px) {
    .gmh__inner {
        min-height: 70px;
        gap: 6px;
        padding-inline: 9px;
    }

    .gmh-logo {
        flex-basis: 96px;
        width: 96px;
        height: 38px;
    }

    .gmh-track {
        min-width: 82px;
        min-height: 40px;
        padding-inline: 8px;
        gap: 6px;
        border-radius: 11px;
        font-size: 11px;
    }

    .gmh-track__icon svg {
        width: 19px;
        height: 19px;
    }

    .gmh-action {
        min-height: 40px;
        padding: 0;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .gmh-action__icon svg,
    .gmh-mobile-menu > summary svg {
        width: 21px;
        height: 21px;
    }

    .gmh-mobile-menu__panel {
        right: 6px;
        left: 6px;
        width: auto;
        padding: 10px;
        border-radius: 16px;
    }

    .gmh-mobile-search {
        height: 44px;
        margin-bottom: 9px;
        border-radius: 13px;
    }

    .gmh-mobile-search button {
        flex-basis: 43px;
        width: 43px;
    }

    .gmh-mobile-links > li > a {
        min-height: 40px;
        padding-block: 7px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gmh__inner {
        min-height: 64px;
        gap: 5px;
        padding-inline: 7px;
    }

    .gmh-logo {
        flex-basis: 88px;
        width: 88px;
        height: 34px;
    }

    .gmh-track {
        min-width: 40px;
        width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 11px;
    }

    .gmh-track__mobile,
    .gmh-track__desktop {
        display: none;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
    }

    .gmh-cart__count {
        top: -2px;
        right: -3px;
        min-width: 17px;
        height: 17px;
        font-size: 8px;
    }

    .gmh-mobile-menu__panel {
        right: 4px;
        left: 4px;
        padding: 8px;
        border-radius: 14px;
    }

    .gmh-mobile-categories > summary {
        min-height: 42px;
        font-size: 13px;
    }
}

@media (max-width: 340px) {
    body.gmf-site-header #gm-site-header {
        border-radius: 0 0 13px 13px;
    }

    .gmh__inner {
        min-height: 58px;
        gap: 4px;
        padding-inline: 5px;
    }

    .gmh-logo {
        flex-basis: 76px;
        width: 76px;
        height: 30px;
    }

    .gmh-track {
        min-width: 36px;
        width: 36px;
        min-height: 36px;
        height: 36px;
    }

    .gmh-track__icon svg,
    .gmh-action__icon svg,
    .gmh-mobile-menu > summary svg {
        width: 19px;
        height: 19px;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
    }

    .gmh-mobile-menu__panel {
        top: calc(var(--gmh-sticky-top) + var(--gmh-mobile-panel-offset));
        right: 3px;
        left: 3px;
        max-height: calc(100vh - var(--gmh-sticky-top) - var(--gmh-mobile-panel-offset) - 5px);
        padding: 7px;
    }

    .gmh-mobile-search {
        height: 40px;
    }

    .gmh-mobile-search input {
        padding-inline: 11px !important;
        font-size: 12px !important;
    }

    .gmh-mobile-search button {
        flex-basis: 39px;
        width: 39px;
    }
}

/* Keep the compact state equally safe at extreme zoom. */
@media (max-width: 620px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        min-height: 58px;
        gap: 5px;
        padding-inline: 7px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        flex-basis: 86px;
        width: 86px;
        height: 31px;
    }
}

@media (max-width: 480px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
        min-width: 36px;
        width: 36px;
        min-height: 36px;
        height: 36px;
        padding: 0;
    }
}


/* --------------------------------------------------------------------------
 * 0.4.47 — authoritative zoom/control handoff.
 * These rules intentionally come last so older progressive media rules cannot
 * hide controls earlier than the tested Gymarket zoom breakpoints.
 * -------------------------------------------------------------------------- */

/* Account remains a primary header action at every practical viewport. */
.gmh-account {
    display: flex !important;
}
.gmh-mobile-account-row {
    display: none !important;
}

/* The hamburger owns theme mode only after the hamburger breakpoint. */
@media (min-width: 1101px) {
    .gmh-theme-switch--desktop {
        display: inline-flex !important;
    }
}

/* At browser zoom / tablet widths keep product search visible, but move it to
 * a clean second row instead of duplicating it inside the hamburger. */
@media (max-width: 767px) {
    body.gmf-site-header #gm-site-header {
        --gmh-mobile-panel-offset: 128px;
    }

    .gmh__inner {
        flex-wrap: wrap;
        align-content: center;
        row-gap: 7px;
        padding-top: 7px;
        padding-bottom: 8px;
    }

    .gmh-search {
        display: flex !important;
        order: 5;
        flex: 1 0 100% !important;
        width: 100%;
        max-width: none !important;
        height: 44px;
        margin: 0;
        border-radius: 13px;
    }

    .gmh-search input {
        padding-inline: 15px !important;
        font-size: 13px !important;
    }

    .gmh-search button {
        flex-basis: 44px;
        width: 44px;
        border-radius: 12px 0 0 12px;
    }

    .gmh-search button svg {
        width: 20px;
        height: 20px;
    }

    .gmh-mobile-search {
        display: none !important;
    }

    .gmh-account {
        display: flex !important;
    }

    .gmh-mobile-account-row {
        display: none !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact {
        --gmh-mobile-panel-offset: 112px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
        display: flex !important;
        order: 5;
        flex: 1 0 100% !important;
        width: 100%;
        max-width: none !important;
        height: 40px;
    }
}

/* Around the observed 300% zoom range, preserve search + account/cart in the
 * header and hand tracking to hamburger to free the first row. */
@media (max-width: 620px) {
    .gmh-track {
        display: none !important;
    }

    .gmh-mobile-track-row {
        display: flex !important;
    }

    .gmh-account {
        display: flex !important;
    }

    .gmh-mobile-account-row,
    .gmh-mobile-search {
        display: none !important;
    }

    .gmh-logo {
        flex: 0 1 98px;
        width: 98px;
        height: 38px;
    }

    .gmh-actions {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    body.gmf-site-header #gm-site-header {
        --gmh-mobile-panel-offset: 118px;
    }

    .gmh__inner {
        min-height: 0;
        padding: 6px 7px 7px;
    }

    .gmh-logo {
        flex-basis: 88px;
        width: 88px;
        height: 34px;
    }

    .gmh-search {
        height: 40px;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact {
        --gmh-mobile-panel-offset: 104px;
    }
}

@media (max-width: 340px) {
    body.gmf-site-header #gm-site-header {
        --gmh-mobile-panel-offset: 108px;
    }

    .gmh-search {
        height: 38px;
    }

    .gmh-logo {
        flex-basis: 78px;
        width: 78px;
        height: 30px;
    }
}


/* --------------------------------------------------------------------------
 * 0.4.48 — keep search in the primary header row at high zoom.
 * The 0.4.47 second-row handoff is intentionally overridden here. At narrow
 * CSS viewports the row compresses progressively; tracking alone moves into
 * the hamburger at the ~300% zoom range to preserve search + account/cart.
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    body.gmf-site-header #gm-site-header {
        --gmh-mobile-panel-offset: 82px;
    }

    .gmh__inner {
        flex-wrap: nowrap !important;
        align-content: center;
        justify-content: center;
        min-height: 76px;
        gap: clamp(4px, 1vw, 8px);
        padding: 0 clamp(7px, 1.4vw, 12px) !important;
    }

    .gmh-mobile-menu {
        order: 1;
        flex: 0 0 auto;
    }

    .gmh-logo {
        order: 2;
        flex: 0 1 96px;
        width: 96px;
        height: 38px;
        min-width: 74px;
    }

    .gmh-search {
        display: flex !important;
        order: 3;
        flex: 1 1 190px !important;
        min-width: 110px;
        width: auto !important;
        max-width: none !important;
        height: 44px;
        margin: 0;
        border-radius: 13px;
    }

    .gmh-search input {
        min-width: 0;
        padding-inline: clamp(8px, 1.6vw, 15px) !important;
        font-size: clamp(11px, 1.7vw, 13px) !important;
    }

    .gmh-search button {
        flex: 0 0 42px;
        width: 42px;
        border-radius: 12px 0 0 12px;
    }

    .gmh-search button svg {
        width: 20px;
        height: 20px;
    }

    .gmh-track {
        order: 4;
        flex: 0 0 auto;
        min-width: 78px;
        min-height: 42px;
        padding-inline: 8px;
        margin-inline: 0;
    }

    .gmh-actions {
        order: 5;
        flex: 0 0 auto;
        margin-right: 0;
        gap: 1px;
    }

    .gmh-action {
        min-height: 40px;
        padding: 0;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .gmh-mobile-search {
        display: none !important;
    }

    .gmh-account {
        display: flex !important;
    }

    .gmh-mobile-account-row {
        display: none !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact {
        --gmh-mobile-panel-offset: 70px;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        flex-wrap: nowrap !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
        display: flex !important;
        order: 3;
        flex: 1 1 180px !important;
        min-width: 105px;
        width: auto !important;
        height: 40px;
    }
}

@media (max-width: 620px) {
    /* At the observed ~300% zoom range, tracking is the only primary control
     * handed to the hamburger. Search stays in the original header row. */
    .gmh-track {
        display: none !important;
    }

    .gmh-mobile-track-row {
        display: flex !important;
    }

    .gmh-logo {
        flex-basis: 88px;
        width: 88px;
        min-width: 68px;
        height: 34px;
    }

    .gmh-search {
        flex: 1 1 175px !important;
        min-width: 100px;
        height: 42px;
    }

    .gmh-search button {
        flex-basis: 40px;
        width: 40px;
    }
}

@media (max-width: 480px) {
    body.gmf-site-header #gm-site-header {
        --gmh-mobile-panel-offset: 70px;
    }

    .gmh__inner {
        min-height: 64px;
        gap: 3px;
        padding-inline: 5px !important;
    }

    .gmh-logo {
        flex-basis: 76px;
        width: 76px;
        min-width: 60px;
        height: 30px;
    }

    .gmh-search {
        flex-basis: 150px !important;
        min-width: 86px;
        height: 38px;
    }

    .gmh-search input {
        padding-inline: 7px !important;
        font-size: 11px !important;
    }

    .gmh-search button {
        flex-basis: 36px;
        width: 36px;
    }

    .gmh-action__icon,
    .gmh-mobile-menu > summary {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}


/* Around the observed 400%+ browser zoom range, keep the primary header row
 * clean: search moves into the hamburger panel and the logo stays visually centered. */
@media (max-width: 480px) {
    .gmh-search {
        display: none !important;
    }

    .gmh-mobile-search {
        display: flex !important;
    }

    .gmh-track {
        display: none !important;
    }

    .gmh-mobile-track-row {
        display: flex !important;
    }

    .gmh-account {
        display: flex !important;
    }

    .gmh-mobile-account-row {
        display: none !important;
    }

    .gmh__inner {
        position: relative;
        justify-content: space-between;
        min-height: 72px;
        padding-inline: 8px !important;
    }

    .gmh-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        margin: 0;
        flex: 0 0 auto !important;
        width: 92px;
        min-width: 92px;
        height: 36px;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: auto;
    }

    .gmh-actions,
    .gmh-mobile-menu {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-search {
        display: none !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-search {
        display: flex !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-track {
        display: none !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-track-row {
        display: flex !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-account {
        display: flex !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-account-row {
        display: none !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh__inner {
        position: relative;
        justify-content: space-between;
        min-height: 58px;
        padding-inline: 8px !important;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        margin: 0;
        flex: 0 0 auto !important;
        width: 82px;
        min-width: 82px;
        height: 32px;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: auto;
    }

    body.gmf-site-header #gm-site-header.gmh--compact .gmh-actions,
    body.gmf-site-header #gm-site-header.gmh--compact .gmh-mobile-menu {
        position: relative;
        z-index: 2;
    }
}
