/*
 * StriveX header (homepage builder) — design: strivex_compact_3_row_header.html.
 * Every class is prefixed sxh- so the Shopwise theme's generic rules (.container, .dropdown,
 * .nav, .btn …) never apply. Builder overrides compile to `#sx-header [data-hp="<key>"]`; keep
 * selectors for builder-settable properties at or below (0,2,1).
 */

/* Shared page gutter: identical in the header, homepage, footer and category pages so all
   content lines up with the logo (values follow the header's breakpoints). */
:root {
    --hp-gutter: clamp(18px, 3.15vw, 58px);
}

@media (max-width: 1350px) {
    :root {
        --hp-gutter: 24px;
    }
}

@media (max-width: 690px) {
    :root {
        --hp-gutter: 14px;
    }
}

.sxh-root {
    display: contents;
    --sxh-line: #e9e9eb;
    --sxh-muted: #9396a0;
    --sxh-focus: #f98487;
}

.sxh,
.sxh-band {
    font-family: var(--hp-font-body, 'Poppins', Arial, sans-serif);
    font-size: 14px;
    line-height: 1.4;
    color: var(--hp-ink, #17191c);
}

.sxh *,
.sxh *::before,
.sxh *::after,
.sxh-band *,
.sxh-band *::before,
.sxh-band *::after {
    box-sizing: border-box;
}

.sxh {
    position: relative;
    z-index: 10000;
    display: block;
    width: 100%;
    background: #fff;
}

.sxh-wrap {
    width: min(100%, calc(var(--hp-container, 1440px) + 2 * var(--hp-gutter, 24px)));
    margin: 0 auto;
    padding-left: var(--hp-gutter, 24px);
    padding-right: var(--hp-gutter, 24px);
}

.sxh-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sxh .hp-icon,
.sxh-band .hp-icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.sxh a,
.sxh-band a {
    text-decoration: none;
}

.sxh a:focus-visible,
.sxh button:focus-visible,
.sxh input:focus-visible,
.sxh-band a:focus-visible,
.sxh-band button:focus-visible {
    outline: 3px solid var(--sxh-focus);
    outline-offset: 2px;
}

.sxh button,
.sxh-band button {
    cursor: pointer;
}

/* ------------------------------------------------------------------ top bar */
.sxh-top {
    height: 38px;
    background-color: #17181b;
    background-image: linear-gradient(110deg, #1c1d20, #141518);
    color: #e2e3e5;
    font-size: 12px;
}

.sxh-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.sxh-top__group {
    display: flex;
    align-items: center;
    gap: 25px;
    white-space: nowrap;
}

.sxh-top__link,
.sxh-top__link:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.sxh-top__link:hover {
    color: #fff;
}

.sxh-top__link .hp-icon {
    width: 16px;
    height: 16px;
    color: #c6cbd1;
}

.sxh-vbar {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.sxh-tp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
}

.sxh-tp:hover {
    color: #fff;
}

.sxh-tp__star {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    background: #00b67a;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
}

.sxh-tp strong {
    font-weight: 800;
    color: #fff;
}

.sxh-help {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sxh-help__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid #575a61;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--hp-font-heading, 'Roboto', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.sxh-help__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #08bf78;
    box-shadow: 0 0 0 3px rgba(8, 191, 120, 0.13);
}

.sxh-help__pm {
    display: inline-grid;
    transition: transform 0.3s ease;
}

.sxh-help__pm .hp-icon {
    width: 12px;
    height: 12px;
}

.sxh-help.is-expanded .sxh-help__pm,
.sxh-help:hover .sxh-help__pm,
.sxh-help:focus-within .sxh-help__pm {
    transform: rotate(45deg);
}

.sxh-help__hours {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transform: translateX(-4px);
    transition:
        max-width 0.32s ease,
        opacity 0.22s ease,
        transform 0.32s ease;
}

.sxh-help.is-expanded .sxh-help__hours,
.sxh-help:hover .sxh-help__hours,
.sxh-help:focus-within .sxh-help__hours {
    max-width: 360px;
    opacity: 1;
    transform: none;
}

.sxh-help__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    color: #cfcfcf;
    font-size: 11.5px;
    white-space: nowrap;
}

.sxh-help__chip b {
    margin-right: 5px;
    font-weight: 600;
    color: #fff;
}

/* ------------------------------------------------------------------ main row */
.sxh-main {
    height: 70px;
    border-bottom: 1px solid #f0f0f1;
    background-color: #fff;
}

.sxh-main__inner {
    display: flex;
    align-items: center;
    gap: clamp(9px, 1.1vw, 18px);
    height: 100%;
}

.sxh-brand {
    display: flex;
    flex: 0 0 clamp(150px, 12.5vw, 186px);
    align-items: center;
}

.sxh-brand img {
    display: block;
    width: 100%;
    max-width: 186px;
    height: auto;
}

.sxh-search {
    position: relative;
    flex: 0 1 clamp(225px, 19.5vw, 320px);
    min-width: 210px;
}

.sxh-search__form {
    display: flex;
    height: 39px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #ededee;
    border-radius: 6px;
    background: #f4f5f6;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.sxh-search__form:focus-within {
    border-color: #ee737b;
    box-shadow: 0 0 0 3px rgba(236, 16, 28, 0.075);
}

.sxh-search__form .sxh-search__icon {
    width: 17px;
    height: 17px;
    margin: auto 9px auto 12px;
    color: #32383d;
}

.sxh-search__input {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 12.5px;
    color: #161a1e;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.sxh-search__input::-webkit-search-cancel-button {
    display: none;
}

.sxh-search__input::placeholder {
    color: #8f949c;
}

.sxh .sxh-search__input:focus-visible {
    outline: none;
}

.sxh-search__submit {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--hp-brand, #ec101c);
    color: #fff;
    transition: background 0.2s;
}

.sxh-search__submit:hover {
    background: #c90012;
}

.sxh-search__submit .hp-icon {
    width: 18px;
    height: 18px;
}

.sxh-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    width: max(100%, 420px);
    max-width: calc(100vw - 28px);
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.sxh-search__label {
    padding: 10px 16px 4px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.sxh-search__list {
    max-height: 340px;
    margin: 0;
    padding: 0 0 6px;
    overflow-y: auto;
    list-style: none;
}

.sxh-search__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: #1f1f1f;
    transition: background 0.15s ease;
}

.sxh-search__list a:hover,
.sxh-search__list a:focus-visible {
    background: #faf7f7;
    color: #1f1f1f;
}

.sxh-search__list img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f2f2f2;
    object-fit: cover;
}

.sxh-search__body {
    flex: 1;
    min-width: 0;
}

.sxh-search__name {
    display: block;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sxh-search__name mark {
    padding: 0;
    background: transparent;
    color: var(--hp-brand, #f20519);
    font-weight: 600;
}

.sxh-search__cat {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: #767676;
}

.sxh-search__price {
    font-size: 14px;
    font-weight: 700;
    color: #d20416;
    white-space: nowrap;
}

.sxh-search__empty {
    margin: 0;
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.sxh-search__all {
    display: block;
    padding: 11px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fcfcfc;
    font-size: 13px;
    font-weight: 600;
    color: #d20416;
    text-align: center;
}

.sxh-search__all:hover {
    background: #f5f5f5;
    color: #d20416;
}

.sxh-portals {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(var(--sxh-portals, 4), minmax(0, 1fr));
    min-width: 0;
    height: 40px;
}

.sxh-portal {
    --sxh-tick: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 0 clamp(14px, 1.2vw, 20px) 0 clamp(6px, 0.8vw, 13px);
    color: var(--hp-ink, #17191c);
    outline: none;
}

.sxh-portal:hover,
.sxh-portal:focus-visible {
    color: var(--hp-ink, #17191c);
}

/* Straight separator between links, matching the category bar's dividers. */
.sxh-portal + .sxh-portal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 20px;
    background: #e9e9ed;
    transform: translateY(-50%);
}

/* Red underline that draws in from the left. */
.sxh-portal::after {
    content: '';
    position: absolute;
    left: clamp(6px, 0.8vw, 13px);
    right: clamp(14px, 1.2vw, 20px);
    bottom: -6px;
    height: 2px;
    background: var(--hp-brand, #ec101c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sxh-portal:hover::after,
.sxh-portal:focus-visible::after {
    transform: scaleX(1);
}

.sxh-portal:focus-visible {
    box-shadow: inset 0 0 0 2px var(--hp-brand, #ec101c);
    border-radius: 3px;
}

/* Number → icon roll. */
.sxh-portal__tick {
    display: block;
    flex: 0 0 var(--sxh-tick);
    width: var(--sxh-tick);
    height: var(--sxh-tick);
    overflow: hidden;
}

.sxh-portal__roll {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sxh-portal:hover .sxh-portal__roll,
.sxh-portal:focus-visible .sxh-portal__roll {
    transform: translateY(-50%);
}

.sxh-portal__n {
    display: grid;
    flex: none;
    width: var(--sxh-tick);
    height: var(--sxh-tick);
    place-items: center;
    font-family: var(--hp-font-heading, 'Roboto', sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--hp-brand, #ec101c);
}

/* Diagonal arrow that appears top-right. */
.sxh-portal__go {
    position: absolute;
    top: 0;
    right: 2px;
    width: 11px;
    height: 11px;
    fill: none;
    stroke: var(--hp-brand, #ec101c);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.2s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sxh-portal:hover .sxh-portal__go,
.sxh-portal:focus-visible .sxh-portal__go {
    opacity: 1;
    transform: none;
}

.sxh-portal:hover .sxh-portal__sub,
.sxh-portal:focus-visible .sxh-portal__sub {
    color: #4f5258;
}

.sxh-portal__ico {
    display: grid;
    flex: none;
    width: var(--sxh-tick);
    height: var(--sxh-tick);
    place-items: center;
    border-radius: 100%;
    background-color: #fff1f2;
    color: var(--hp-brand, #ec101c);
}

.sxh .sxh-portal__ico .hp-icon {
    width: 18px;
    height: 18px;
}

.sxh-portal__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    white-space: nowrap;
}

.sxh-portal__title {
    overflow: hidden;
    font-family: var(--hp-font-heading, 'Roboto', sans-serif);
    font-size: clamp(10px, 0.8vw, 13px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.005em;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.sxh-portal__sub {
    overflow: hidden;
    font-size: clamp(9px, 0.73vw, 11px);
    line-height: 1.1;
    color: var(--sxh-muted);
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.sxh-actions {
    display: flex;
    align-items: center;
    gap: clamp(9px, 1.1vw, 17px);
    height: 38px;
    margin-left: auto;
    padding-left: clamp(8px, 0.95vw, 15px);
    border-left: 1px solid var(--sxh-line);
}

.sxh-action {
    position: relative;
    display: grid;
    width: 28px;
    height: 36px;
    place-items: center;
    color: #181a1d;
    transition:
        color 0.2s,
        transform 0.2s,
        opacity 0.2s;
}

.sxh-action:hover {
    color: var(--hp-brand, #ec101c);
    transform: translateY(-1px);
}

.sxh .sxh-action .hp-icon {
    width: 23px;
    height: 23px;
}

.sxh-cart {
    display: inline-flex;
}

.sxh-cart.cart-disabled .sxh-cart__link {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.sxh .sxh-count {
    position: absolute;
    top: -1px;
    right: -8px;
    left: auto;
    display: grid;
    width: auto;
    min-width: 17px;
    height: 17px;
    margin: 0;
    padding: 0 3px;
    place-items: center;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background-color: #d20416;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: baseline;
}

/* ------------------------------------------------------------------ category band */
.sxh-band {
    position: relative;
    z-index: 9998;
    height: 51px;
    background-color: #fff;
    box-shadow: 0 10px 27px rgba(15, 20, 32, 0.075);
}

.sxh-band--sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.sxh-band__inner {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.sxh-shop {
    position: relative;
    display: flex;
    flex: 0 0 clamp(190px, 17vw, 260px);
}

.sxh-shop__btn {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    height: 100%;
    padding: 0 18px 0 clamp(16px, 2vw, 28px);
    border: 0;
    border-radius: 0;
    background-color: var(--hp-brand, #ec101c);
    color: #fff;
    font-family: var(--hp-font-heading, 'Roboto', sans-serif);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sxh-shop__btn::before {
    content: '';
    position: absolute;
    inset: 0 -19px 0 0;
    z-index: -1;
    border-radius: 0 2px 3px 0;
    background: inherit;
}

.sxh-shop__btn {
    cursor: default;
    user-select: none;
}

.sxh-links {
    flex: 1;
    min-width: 0;
    margin-left: 24px;
}

.sxh-links__list {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sxh-slot {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    list-style: none;
}

.sxh-slot:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1px;
    height: 20px;
    background: #e9e9ed;
}

.sxh-link {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--hp-ink, #17191c);
    font-family: var(--hp-font-heading, 'Roboto', sans-serif);
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.18s;
}

.sxh-slot--drop > .sxh-link:not(.sxh-link--btn) {
    padding-right: 2px;
}

.sxh-link:hover,
.sxh-link[aria-expanded='true'],
.sxh-slot.is-open > .sxh-link {
    color: var(--hp-brand, #ec101c);
}

.sxh-caret {
    display: grid;
    width: 26px;
    height: 100%;
    margin-right: 6px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--hp-brand, #ec101c);
}

.sxh-band .sxh-caret .hp-icon,
.sxh-band .sxh-chevron {
    width: 13px;
    height: 13px;
    color: var(--hp-brand, #ec101c);
    transition: transform 0.18s;
}

.sxh-caret[aria-expanded='true'] .hp-icon,
.sxh-link[aria-expanded='true'] .sxh-chevron {
    transform: rotate(180deg);
}

.sxh-drop {
    position: absolute;
    top: calc(100% - 4px);
    left: 6px;
    z-index: 30;
    min-width: 235px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border: 1px solid #ededf0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 15, 28, 0.16);
    text-align: left;
    animation: sxh-rise 0.16s ease-out;
}

.sxh-drop--end,
.sxh-slot:nth-last-child(-n + 2) > .sxh-drop {
    left: auto;
    right: 0;
}

@keyframes sxh-rise {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.sxh-drop__title {
    margin: 4px 6px 10px;
    font-family: var(--hp-font-heading, 'Roboto', sans-serif);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--hp-ink, #17191c);
}

.sxh-drop__list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sxh-drop__list li {
    list-style: none;
}

.sxh-drop__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px;
    border-radius: 5px;
    background: #f7f8f9;
    color: #23262a;
    font-size: 12.5px;
    line-height: 1.3;
    white-space: nowrap;
}

.sxh-drop__list a:hover,
.sxh-drop__list a:focus-visible {
    background: #fff0f1;
    color: #ca0613;
}

.sxh-band .sxh-drop__list .hp-icon {
    width: 12px;
    height: 12px;
}

.sxh-shop__panel {
    top: calc(100% + 6px);
    left: 0;
    width: 310px;
    padding: 16px;
}

/* ------------------------------------------------------------------ responsive (header.html) */
@media (max-width: 1350px) {

    .sxh-main__inner {
        gap: 8px;
    }

    .sxh-brand {
        flex-basis: 155px;
    }

    .sxh-search {
        flex-basis: 235px;
        min-width: 190px;
    }

    .sxh-portal {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .sxh-portal__ico {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .sxh .sxh-portal__ico .hp-icon {
        width: 16px;
        height: 16px;
    }

    .sxh-portal__title {
        font-size: 10.5px;
    }

    .sxh-portal__sub {
        font-size: 9px;
    }

    .sxh-actions {
        gap: 9px;
        padding-left: 8px;
    }

    .sxh .sxh-action .hp-icon {
        width: 21px;
        height: 21px;
    }

    .sxh-links {
        margin-left: 17px;
    }

    .sxh-link {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .sxh-caret {
        width: 20px;
        margin-right: 2px;
    }

    .sxh-shop {
        flex-basis: 200px;
    }
}

@media (max-width: 1080px) {
    .sxh-main {
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sxh-main__inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sxh-brand {
        flex: 0 0 165px;
    }

    .sxh-search {
        flex: 1 1 230px;
    }

    .sxh-actions {
        order: 2;
        border-left: 0;
    }

    .sxh-portals {
        order: 4;
        flex: 1 1 100%;
        height: 42px;
        padding-top: 7px;
        border-top: 1px solid var(--sxh-line);
    }

    .sxh-portal {
        justify-content: center;
    }

    .sxh-portal:first-child {
        border-left: 0;
    }

    .sxh-portal__title {
        font-size: 12px;
    }

    .sxh-portal__sub {
        font-size: 10px;
    }

    .sxh-links {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .sxh-links__list {
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
    }

    .sxh-slot {
        flex: 0 0 auto;
    }

    .sxh-link {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sxh-shop {
        flex: 0 0 205px;
    }

    /* The link row scrolls sideways here, so dropdowns are positioned against the viewport by
       header-v2.js instead of being clipped by the scroll container. */
    .sxh-links .sxh-drop {
        position: fixed;
        right: auto;
    }
}

@media (max-width: 690px) {

    .sxh-top {
        height: auto;
        min-height: 34px;
    }

    .sxh-top__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 14px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .sxh-top__group {
        gap: 12px;
    }

    .sxh-top__link {
        font-size: 10.5px;
    }

    .sxh-top__link .hp-icon {
        width: 14px;
        height: 14px;
    }

    .sxh-tp {
        font-size: 10.5px;
    }

    .sxh-tp__star {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .sxh-help__btn {
        height: 23px;
        font-size: 10px;
    }

    .sxh-help__hours {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        z-index: 80;
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        padding: 8px;
        border-radius: 4px;
        background: #131313;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
        visibility: hidden;
        transform: translateY(-4px);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0s linear 0.2s;
    }

    .sxh-help.is-expanded .sxh-help__hours,
    .sxh-help:hover .sxh-help__hours,
    .sxh-help:focus-within .sxh-help__hours {
        max-width: none;
        visibility: visible;
        transition-delay: 0s;
    }

    .sxh-main {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .sxh-main__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
    }

    .sxh-brand {
        grid-column: 1;
        grid-row: 1;
        width: 122px;
        max-width: 100%;
    }

    .sxh-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 14px;
        height: 36px;
        margin-left: 0;
        padding-left: 0;
    }

    .sxh-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    .sxh-search__form {
        height: 36px;
    }

    .sxh-search__input {
        font-size: 16px;
    }

    .sxh-search__submit {
        flex-basis: 36px;
        width: 36px;
    }

    .sxh-search__results {
        width: 100%;
    }

    .sxh-portals {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        margin: 0;
        padding: 6px 0 0;
    }

    .sxh-portal {
        justify-content: flex-start;
        gap: 7px;
        min-width: 0;
        min-height: 40px;
        padding: 6px 4px;
    }

    .sxh-portal:nth-child(odd) {
        border-left: 0;
    }

    .sxh-portal:nth-child(n + 3) {
        border-top: 1px solid var(--sxh-line);
    }

    .sxh-portal__ico {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
    }

    .sxh-portal__title {
        font-size: 10.5px;
    }

    .sxh-portal__sub {
        font-size: 9.5px;
    }

    .sxh-band {
        height: 44px;
    }

    .sxh-shop {
        flex: 0 0 159px;
    }

    .sxh-shop__btn {
        gap: 6px;
        padding-left: 10px;
        font-size: 12px;
    }

    .sxh-shop__btn::before {
        right: -12px;
    }

    .sxh-links {
        margin-left: 17px;
    }

    .sxh-link {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    .sxh-slot--drop > .sxh-link:not(.sxh-link--btn) {
        padding-right: 0;
    }

    .sxh-shop__panel {
        width: min(310px, calc(100vw - 28px));
    }
}

@media (max-width: 390px) {
    .sxh-top__group {
        gap: 7px;
    }

    .sxh-top__inner {
        gap: 4px 8px;
    }

    .sxh-top__link {
        font-size: 9.5px;
    }

    .sxh-portal {
        padding-left: 4px;
        padding-right: 4px;
    }

    .sxh-shop {
        flex-basis: 146px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sxh *,
    .sxh-band * {
        animation: none !important;
        transition: none !important;
    }
}

/* ------------------------------------------------------------------ portal ticks: responsive sizing */
@media (max-width: 1350px) {
    .sxh-portal {
        --sxh-tick: 27px;
    }
}

@media (max-width: 690px) {
    .sxh-portal {
        --sxh-tick: 26px;
    }

    .sxh-portal + .sxh-portal::before {
        display: none; /* 2×2 grid uses its straight borders instead */
    }

    .sxh-portal:nth-child(even) {
        border-left: 1px solid var(--sxh-line);
    }

    .sxh-portal::after {
        bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sxh-portal::after,
    .sxh-portal__roll,
    .sxh-portal__go,
    .sxh-portal__sub {
        transition: none;
    }
}

/* ==================================================================
   Refinements (2026-10-19): plain-text helpline (always open on desktop),
   expanding search icon, red category bar as in the redesign reference.
   ================================================================== */

/* ---- Helpline: no boxes; hours always visible on desktop */
.sxh-help__btn {
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    cursor: default;
}

.sxh-help__pm {
    display: none;
}

.sxh-help__hours,
.sxh-help.is-expanded .sxh-help__hours,
.sxh-help:hover .sxh-help__hours,
.sxh-help:focus-within .sxh-help__hours {
    gap: 0;
    max-width: none;
    overflow: visible;
    opacity: 1;
    transform: none;
}

.sxh-help__chip {
    padding: 0 0 0 10px;
    border: 0;
    border-radius: 0;
    background: none;
    color: #c9ccd1;
    font-size: 12px;
}

.sxh-help__chip + .sxh-help__chip::before {
    content: '·';
    margin-right: 10px;
    color: #6f7379;
}

/* ---- Search: icon in the actions that expands into the field over the logo row */
.sxh-main__inner {
    position: relative;
}

.sxh-search,
.sxh-search.is-open {
    position: static;
    flex: none;
    width: auto;
    min-width: 0;
}

.sxh-search__panel {
    position: absolute;
    top: 50%;
    left: calc(clamp(150px, 12.5vw, 186px) + 24px);
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
    background: #fff;
    transform: translateY(-50%);
    transform-origin: right center;
    animation: sxh-search-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sxh-search__panel[hidden] {
    display: none;
}

@keyframes sxh-search-in {
    from {
        opacity: 0;
        transform: translateY(-50%) scaleX(0.6);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
}

.sxh-search__panel .sxh-search__form {
    flex: 1;
    height: 44px;
}

.sxh-search__close {
    display: grid;
    flex: none;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #ededee;
    border-radius: 50%;
    background: #fff;
    color: var(--hp-ink, #17191c);
}

.sxh-search__close .hp-icon {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
}

.sxh-search__close:hover {
    border-color: var(--hp-brand, #ec101c);
    color: var(--hp-brand, #ec101c);
}

.sxh-search__panel .sxh-search__results {
    top: calc(100% + 8px);
    left: 6px;
    right: 50px;
    width: auto;
}

.sxh-search__toggle[aria-expanded='true'] {
    color: var(--hp-brand, #ec101c);
}

/* ---- Category bar: white bar; "Shop categories" is a red block running from the left screen
   edge to a straight right edge, label centred (supplied reference). */
.sxh-shop {
    flex: 0 0 clamp(230px, 20vw, 380px);
}

.sxh-shop__btn {
    justify-content: center;
    padding: 0 8px 0 0;
    background-color: var(--hp-brand, #e3262e);
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 900;
    letter-spacing: 0.01em;
}

/* Bleed the block to the left edge of the screen (the bar itself stays white). */
.sxh-shop__btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    z-index: -1;
    width: 100vw;
    background: inherit;
}

.sxh-shop__btn::before {
    inset: 0 -24px 0 0;
}

@media (max-width: 1080px) {
    .sxh-search__panel {
        top: 0;
        left: 0;
        height: 44px;
        transform: none;
        animation-name: sxh-search-in-flat;
    }

    @keyframes sxh-search-in-flat {
        from {
            opacity: 0;
            transform: scaleX(0.6);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* ---- Phones */
@media (max-width: 690px) {
    .sxh-help__btn {
        cursor: pointer;
    }

    .sxh-help__pm {
        display: inline-grid;
    }

    .sxh-help.is-expanded .sxh-help__pm {
        transform: rotate(45deg);
    }

    /* Only the script's open state controls the panel (hover/focus stuck it open on touch). */
    .sxh-help__hours,
    .sxh-help:hover .sxh-help__hours,
    .sxh-help:focus-within .sxh-help__hours {
        gap: 6px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
    }

    .sxh-help.is-expanded .sxh-help__hours {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }

    .sxh-help__chip {
        padding: 4px 2px;
    }

    .sxh-help__chip + .sxh-help__chip::before {
        content: none;
    }

    .sxh-search {
        grid-column: auto;
        grid-row: auto;
    }

    .sxh-search__panel {
        top: 0;
        height: 40px;
    }

    .sxh-search__panel .sxh-search__form {
        height: 40px;
    }

    .sxh-search__close {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sxh-search__panel {
        animation: none;
    }

    .sxh-slot::before {
        transition: none;
    }
}

.sxh-search__toggle {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 1080px) {
    .sxh-shop {
        flex-basis: 205px;
    }
}

@media (max-width: 690px) {
    .sxh-shop {
        flex-basis: 150px;
    }

    .sxh-shop__btn {
        font-size: 12px;
    }

    .sxh-shop__btn::before {
        right: -14px;
    }
}

/* Keep the first category link clear of the red block. */
.sxh-links {
    margin-left: 34px;
}

@media (max-width: 690px) {
    .sxh-links {
        margin-left: 22px;
    }
}

/* ==================================================================
   Refinements (2026-10-19, round 2)
   ================================================================== */

/* ---- Search panel stays inside the page gutter (its × no longer touches the screen edge). */
.sxh-search__panel {
    right: var(--hp-gutter, 24px);
}

@media (max-width: 1080px) {
    .sxh-search__panel {
        left: var(--hp-gutter, 24px);
        right: var(--hp-gutter, 24px);
    }
}

.sxh-search__panel .sxh-search__form,
.sxh-search__panel .sxh-search__input {
    min-width: 0;
}

/* ---- Portal links: natural width, compact spacing (desktop and tablet). */
@media (min-width: 691px) {
    .sxh-portals {
        display: flex;
        justify-content: center;
        gap: clamp(6px, 1.2vw, 22px);
    }

    .sxh-portal {
        flex: 0 0 auto;
        padding-left: clamp(8px, 0.9vw, 14px);
        padding-right: clamp(14px, 1.1vw, 18px);
    }
}

/* ---- "Shop categories": smaller block, label starts on the logo's edge. */
.sxh-shop {
    flex: 0 0 clamp(178px, 13vw, 230px);
}

.sxh-shop__btn {
    justify-content: flex-start;
    padding: 0;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .sxh-shop {
        flex-basis: 178px;
    }
}

/* ---- Phone category menu (hidden on larger screens). */
.sxh-mtoggle,
.sxh-mnav {
    display: none;
}

@media (max-width: 690px) {
    .sxh-shop,
    .sxh-links {
        display: none;
    }

    .sxh-band__inner {
        position: relative;
    }

    .sxh-mtoggle {
        position: relative;
        isolation: isolate;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        height: 100%;
        padding: 0 22px 0 0;
        border: 0;
        background: var(--hp-brand, #e3262e);
        color: #fff;
        font-family: var(--hp-font-heading, 'Roboto', sans-serif);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        cursor: pointer;
    }

    /* Same red block as desktop: bleeds to the left edge, straight right edge. */
    .sxh-mtoggle::before {
        content: '';
        position: absolute;
        inset: 0 -12px 0 0;
        z-index: -1;
        background: inherit;
    }

    .sxh-mtoggle::after {
        content: '';
        position: absolute;
        top: 0;
        right: 100%;
        bottom: 0;
        z-index: -1;
        width: 100vw;
        background: inherit;
    }

    .sxh-mtoggle__bars {
        display: grid;
        gap: 3px;
        width: 16px;
    }

    .sxh-mtoggle__bars span {
        display: block;
        height: 2px;
        background: #fff;
        transition: transform 0.2s, opacity 0.2s;
    }

    .sxh-mtoggle.is-open .sxh-mtoggle__bars span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .sxh-mtoggle.is-open .sxh-mtoggle__bars span:nth-child(2) {
        opacity: 0;
    }

    .sxh-mtoggle.is-open .sxh-mtoggle__bars span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .sxh-mtoggle:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -4px;
    }

    .sxh-mnav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
        display: block;
        max-height: calc(100dvh - 140px);
        margin: 0 var(--hp-gutter, 14px);
        padding: 8px 0 14px;
        overflow-y: auto;
        border: 1px solid #ededf0;
        border-top: 3px solid var(--hp-brand, #e3262e);
        border-radius: 0 0 10px 10px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(7, 15, 28, 0.18);
        animation: sxh-rise 0.16s ease-out;
    }

    .sxh-mnav[hidden] {
        display: none;
    }

    .sxh-mnav__list,
    .sxh-mnav__sub {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sxh-mnav__list > li + li {
        border-top: 1px solid #f0f0f2;
    }

    .sxh-band .sxh-mnav__cat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        font-family: var(--hp-font-heading, 'Roboto', sans-serif);
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--hp-ink, #17191c);
    }

    .sxh-band .sxh-mnav__cat .hp-icon {
        width: 14px;
        height: 14px;
        color: var(--hp-brand, #e3262e);
    }

    .sxh-mnav__sub {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 16px 12px;
    }

    .sxh-band .sxh-mnav__sub a {
        display: inline-block;
        padding: 6px 10px;
        border: 1px solid #e6e7ea;
        border-radius: 999px;
        font-size: 12px;
        color: #4f5258;
    }

    .sxh-band .sxh-mnav__sub a:hover {
        border-color: var(--hp-brand, #e3262e);
        color: var(--hp-brand, #e3262e);
    }

    .sxh-mnav__title {
        margin: 6px 16px 8px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f2;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #8a8d93;
    }

    /* ---- Top bar: two stacked rows whose dividers sit on the same centre line. */
    .sxh-top__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        row-gap: 4px;
    }

    .sxh-top__group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
        width: 100%;
    }

    .sxh-top__group > :first-child {
        justify-self: end;
    }

    .sxh-top__group > :last-child {
        justify-self: start;
    }

    /* ---- Helpline ×: reset when the panel closes (sticky hover/focus kept it rotated). */
    .sxh-help:hover .sxh-help__pm,
    .sxh-help:focus-within .sxh-help__pm {
        transform: none;
    }

    .sxh-help.is-expanded .sxh-help__pm {
        transform: rotate(45deg);
    }
}

/* ==================================================================
   Refinements (2026-10-19, round 3): compact search bar with category
   filter, accordion sub-categories in the phone menu.
   ================================================================== */

/* ---- Search: compact rounded bar anchored at the right of the logo row. */
.sxh-search__panel {
    left: auto;
    right: var(--hp-gutter, 24px);
    width: min(620px, calc(100% - 2 * var(--hp-gutter, 24px) - 200px));
    gap: 8px;
    padding-left: 0;
    background: transparent;
}

.sxh-search__panel .sxh-search__form {
    align-items: center;
    height: 48px;
    padding: 4px 4px 4px 4px;
    border: 1px solid #e3e4e7;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 18, 22, 0.1);
}

.sxh-search__panel .sxh-search__form:focus-within {
    border-color: var(--hp-brand, #ec101c);
    box-shadow: 0 12px 30px rgba(16, 18, 22, 0.1), 0 0 0 3px rgba(236, 16, 28, 0.1);
}

.sxh-search__catwrap {
    position: relative;
    display: flex;
    flex: none;
    height: 100%;
}

.sxh-search__catwrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--hp-brand, #ec101c);
    border-bottom: 2px solid var(--hp-brand, #ec101c);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.sxh-search__catsel {
    max-width: 150px;
    height: 100%;
    padding: 0 30px 0 16px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    font-family: var(--hp-font-body, 'Poppins', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hp-ink, #17191c);
    text-overflow: ellipsis;
    appearance: none;
    cursor: pointer;
}

.sxh-search__catsel:focus-visible {
    outline: 2px solid var(--hp-brand, #ec101c);
    outline-offset: 1px;
}

.sxh-search__panel .sxh-search__form .sxh-search__icon {
    display: none; /* the category pill + round button carry the meaning */
}

.sxh-search__panel .sxh-search__input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font-size: 14px;
}

.sxh-search__panel .sxh-search__submit {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--hp-brand, #ec101c);
}

.sxh-search__panel .sxh-search__submit:hover {
    background: #c90012;
}

.sxh-search__panel .sxh-search__submit .hp-icon {
    width: 18px;
    height: 18px;
}

.sxh-search__close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 18, 22, 0.08);
}

.sxh-search__panel .sxh-search__results {
    left: 0;
    right: 50px;
    border-radius: 14px;
}

@media (max-width: 1080px) {
    .sxh-search__panel {
        left: var(--hp-gutter, 24px);
        width: auto;
    }
}

@media (max-width: 690px) {
    .sxh-search__panel {
        top: 2px;
        height: 44px;
        gap: 6px;
    }

    .sxh-search__panel .sxh-search__form {
        height: 44px;
        padding: 3px;
    }

    .sxh-search__catsel {
        max-width: 96px;
        padding: 0 24px 0 12px;
        font-size: 12px;
    }

    .sxh-search__catwrap::after {
        right: 9px;
    }

    .sxh-search__panel .sxh-search__input {
        padding: 0 8px;
        font-size: 16px; /* no zoom on iOS */
    }

    .sxh-search__panel .sxh-search__submit {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .sxh-search__close {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .sxh-search__panel .sxh-search__results {
        right: 0;
    }

    /* ---- Phone menu: accordion rows */
    .sxh-mnav__row {
        display: flex;
        align-items: stretch;
    }

    .sxh-band .sxh-mnav__row .sxh-mnav__cat {
        flex: 1;
    }

    .sxh-mnav__expand,
    .sxh-mnav__go {
        display: grid;
        flex: 0 0 48px;
        place-items: center;
        padding: 0;
        border: 0;
        border-left: 1px solid #f0f0f2;
        background: none;
        color: var(--hp-brand, #e3262e);
        cursor: pointer;
    }

    .sxh-band .sxh-mnav__expand .hp-icon,
    .sxh-band .sxh-mnav__go .hp-icon {
        width: 15px;
        height: 15px;
        color: var(--hp-brand, #e3262e);
        transition: transform 0.2s;
    }

    .sxh-mnav__go {
        border-left: 0;
        cursor: default;
    }

    .sxh-mnav__expand[aria-expanded='true'] {
        background: #fff5f5;
    }

    .sxh-band .sxh-mnav__expand[aria-expanded='true'] .hp-icon {
        transform: rotate(180deg);
    }

    .sxh-mnav__sub[hidden] {
        display: none;
    }

    .sxh-mnav__list .sxh-mnav__sub {
        padding: 2px 16px 14px;
        background: #fffafa;
    }
}

/* Hide the account/cart icons (and the cart count badge) behind an open search bar. */
.sxh-actions:has(.sxh-search.is-open) > :not(.sxh-search) {
    visibility: hidden;
}

/* ==================================================================
   Search expands in place (desktop & tablet): the bar grows leftwards out of the
   icon inside the actions area, pushing the portal links left. Phones keep the
   full-row bar (rules above).
   ================================================================== */
@media (min-width: 691px) {
    .sxh-search {
        display: flex;
        align-items: center;
    }

    .sxh-search__panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        height: auto;
        padding: 0;
        transform: none;
        animation: none;
        background: transparent;
    }

    /* The form's width animates from 0; it clips while growing. */
    .sxh-search__panel .sxh-search__form {
        flex: none;
        width: 0;
        height: 44px;
        padding: 3px;
        overflow: hidden;
        opacity: 0;
        transition:
            width 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
            opacity 0.2s ease;
    }

    .sxh-search.is-open .sxh-search__panel .sxh-search__form {
        width: clamp(300px, 28vw, 480px);
        opacity: 1;
    }

    .sxh-search__close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        opacity: 0;
        transform: scale(0.6);
        transition: opacity 0.2s ease 0.1s, transform 0.25s ease 0.1s;
    }

    .sxh-search.is-open .sxh-search__close {
        opacity: 1;
        transform: none;
    }

    /* The icon turns into the bar while open. */
    .sxh-search.is-open .sxh-search__toggle {
        display: none;
    }

    .sxh-search__panel .sxh-search__results {
        top: calc(100% + 8px);
        left: 0;
        right: 46px;
        width: auto;
    }

    /* Icons stay visible beside the bar (only phones hide them). */
    .sxh-actions:has(.sxh-search.is-open) > :not(.sxh-search) {
        visibility: visible;
    }

    /* Let the portal links give way: they shrink (titles truncate) instead of overflowing. */
    .sxh-portals {
        min-width: 0;
        overflow: hidden;
    }

    .sxh-portal {
        flex: 0 1 auto;
        min-width: 0;
    }
}

@media (min-width: 691px) and (max-width: 1080px) {
    .sxh-search.is-open .sxh-search__panel .sxh-search__form {
        width: clamp(260px, 48vw, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sxh-search__panel .sxh-search__form,
    .sxh-search__close {
        transition: none;
    }
}

/* While the search is open the portal links go compact (title only) so they fit beside the bar
   instead of truncating. */
@media (min-width: 1081px) {
    .sxh-main:has(.sxh-search.is-open) .sxh-portal__tick,
    .sxh-main:has(.sxh-search.is-open) .sxh-portal__sub,
    .sxh-main:has(.sxh-search.is-open) .sxh-portal__go {
        display: none;
    }

    .sxh-main:has(.sxh-search.is-open) .sxh-portals {
        gap: 4px;
    }

    .sxh-main:has(.sxh-search.is-open) .sxh-portal {
        flex: 0 0 auto;
        padding-left: 10px;
        padding-right: 12px;
    }
}

/* Smooth collapse (no jump): the icon, the bar and the × change width together, so the row
   never gains or loses space abruptly while the bar opens or closes. */
@media (min-width: 691px) {
    .sxh-search .sxh-search__toggle {
        overflow: hidden;
        transition:
            width 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
            opacity 0.2s ease,
            color 0.2s;
    }

    .sxh-search.is-open .sxh-search__toggle {
        display: grid;
        width: 0;
        opacity: 0;
        pointer-events: none;
    }

    .sxh-search__panel {
        gap: 0;
    }

    .sxh-search__close {
        flex: none;
        width: 0;
        margin-left: 0;
        overflow: hidden;
        border-width: 0;
        transition:
            width 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
            margin-left 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
            opacity 0.2s ease,
            transform 0.25s ease;
    }

    .sxh-search.is-open .sxh-search__close {
        width: 38px;
        margin-left: 8px;
        border-width: 1px;
    }
}

/* Fully animated open/close: one easing for every moving part, the portal numbers/subtitles fold
   instead of popping, and the bar's padding/border collapse with its width. */
@media (min-width: 691px) {
    .sxh-search__panel .sxh-search__form {
        padding: 0;
        border-width: 0;
        transition:
            width 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            border-width 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease;
    }

    .sxh-search.is-open .sxh-search__panel .sxh-search__form {
        padding: 3px;
        border-width: 1px;
    }

    .sxh-search .sxh-search__toggle,
    .sxh-search__close {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 0.34s;
    }
}

@media (min-width: 1081px) {
    .sxh-portal__tick {
        transition:
            flex-basis 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            width 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            margin 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease;
    }

    .sxh-portal__sub {
        max-width: 200px;
        transition:
            max-width 0.34s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease;
    }

    .sxh-portal {
        transition: padding 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sxh-portals {
        transition: gap 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sxh-main:has(.sxh-search.is-open) .sxh-portal__tick {
        display: block;
        flex-basis: 0;
        width: 0;
        margin-right: -9px; /* cancels the flex gap so the title sits flush */
        opacity: 0;
    }

    .sxh-main:has(.sxh-search.is-open) .sxh-portal__sub {
        display: block;
        max-width: 0;
        opacity: 0;
    }
}

/* Phone menu: an expanded category's sub-categories sit in one row of plain links
   (divider-separated, scrolls sideways if needed) instead of wrapping chips. */
@media (max-width: 690px) {
    .sxh-mnav__list .sxh-mnav__sub {
        flex-wrap: nowrap;
        gap: 0;
        padding: 4px 16px 14px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sxh-mnav__list .sxh-mnav__sub::-webkit-scrollbar {
        display: none;
    }

    .sxh-mnav__list .sxh-mnav__sub li {
        flex: none;
    }

    .sxh-band .sxh-mnav__list .sxh-mnav__sub a {
        padding: 2px 12px;
        border: 0;
        border-radius: 0;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        color: #4f5258;
    }

    .sxh-mnav__list .sxh-mnav__sub li:first-child a {
        padding-left: 0;
    }

    .sxh-mnav__list .sxh-mnav__sub li + li a {
        border-left: 1px solid #e3e4e7;
    }

    .sxh-band .sxh-mnav__list .sxh-mnav__sub a:hover,
    .sxh-band .sxh-mnav__list .sxh-mnav__sub a:focus-visible {
        color: var(--hp-brand, #e3262e);
    }
}

@media (max-width: 690px) {
    .sxh-mnav__list .sxh-mnav__sub li + li a {
        border-left-color: #c9cbcf;
    }

    /* Fade the right edge so it's clear the row scrolls. */
    .sxh-mnav__list .sxh-mnav__sub {
        padding-right: 28px;
        -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
        mask-image: linear-gradient(90deg, #000 82%, transparent);
    }
}

@media (max-width: 690px) {
    .sxh-band .sxh-mnav__list .sxh-mnav__sub li + li a {
        border-left: 1px solid #c9cbcf;
    }
}

/* Phone menu: an expanded category (or "Explore more") lists its options in one indented
   column. Replaces the earlier single-row version. */
@media (max-width: 690px) {
    .sxh-mnav__list .sxh-mnav__sub {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0;
        padding: 0 0 8px;
        overflow: visible;
        background: #fffafa;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sxh-mnav__list .sxh-mnav__sub[hidden] {
        display: none;
    }

    .sxh-band .sxh-mnav__list .sxh-mnav__sub li + li a,
    .sxh-band .sxh-mnav__list .sxh-mnav__sub a {
        display: block;
        padding: 10px 16px 10px 30px;
        border: 0;
        border-left: 0;
        font-size: 13.5px;
        font-weight: 500;
        white-space: normal;
        color: #4f5258;
    }

    .sxh-mnav__list .sxh-mnav__sub li:first-child a {
        padding-left: 30px;
    }

    .sxh-band .sxh-mnav__list .sxh-mnav__sub a::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        margin: 0 10px 2px -14px;
        border-top: 1.5px solid var(--hp-brand, #e3262e);
        border-right: 1.5px solid var(--hp-brand, #e3262e);
        transform: rotate(45deg);
    }

    .sxh-band .sxh-mnav__list .sxh-mnav__sub a:hover,
    .sxh-band .sxh-mnav__list .sxh-mnav__sub a:focus-visible {
        background: #fff1f1;
        color: var(--hp-brand, #e3262e);
    }

    /* "Explore more" row label isn't a link. */
    .sxh-band span.sxh-mnav__cat {
        cursor: default;
    }
}
