/* Shared public storefront navigation. */
.sf-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid #e1e1ea;
    background: #fff;
    font-family: var(--sf-primary-font, var(--cnvs-primary-font, system-ui, Arial, sans-serif));
}

.sf-header.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
}

/* The shared header also runs on public pages with older Bootstrap styles. */
.sf-header.navbar {
    padding-right: 0;
    padding-left: 0;
}

.sf-header.navbar .container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

@media (min-width: 576px) { .sf-header.navbar .container { max-width: 540px; } }
@media (min-width: 768px) { .sf-header.navbar .container { max-width: 720px; } }
@media (min-width: 992px) { .sf-header.navbar .container { max-width: 960px; } }
@media (min-width: 1200px) { .sf-header.navbar .container { max-width: 1140px; } }
@media (min-width: 1400px) { .sf-header.navbar .container { max-width: 1320px; } }

.sf-header.navbar button {
    font-family: var(--sf-primary-font, var(--cnvs-primary-font, system-ui, Arial, sans-serif)) !important;
}

.sf-header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 0.35rem;
    column-gap: 0.5rem;
    row-gap: 0;
}

.sf-header .navbar-brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
}

.sf-header .navbar-brand > a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.sf-header .sf-logo-img {
    width: auto;
    height: 50px;
    max-width: min(52vw, 260px);
    border-radius: 0.35rem;
    object-fit: contain;
}

.sf-header-controls {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-width: 0;
    margin-left: auto;
}

.sf-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Labeled disclosures inherit the same link styles as the rest of their row. */
.sf-header-menu-toggle {
    appearance: none; display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; gap: .55rem; min-width: 2.25rem; min-height: 2.25rem;
    padding: .45rem .55rem; border: 0; border-radius: 999px;
    background: transparent; color: #000; font: inherit; cursor: pointer;
}
.sf-header-menu-toggle--label { min-height: 0; }

.sf-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.sf-nav-link i {
    color: inherit;
}

.sf-nav-link:hover,
.sf-nav-link:focus {
    color: var(--sf-primary, #0d6efd);
    text-decoration: none;
    outline: none;
}

.sf-header-collapse-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
}

.sf-header-category-row {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding: 0.12rem 0 0;
    border-top: 0;
    background: #fff;
}

.sf-header-category-row .container {
    display: block;
    width: 100%;
}

.sf-header-category-links {
    display: flex;
    align-items: stretch;
    justify-content: center;
    justify-content: safe center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.3rem;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sf-header-category-links::-webkit-scrollbar {
    display: none;
}

.sf-header-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    min-width: max-content;
    max-width: none;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    overflow: visible;
    text-align: center;
    text-decoration: none;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
}

.sf-header-category-link:hover,
.sf-header-category-link:focus {
    background: var(--sf-primary-soft-bg, rgba(13, 110, 253, 0.08));
    color: var(--sf-primary, #0d6efd);
    text-decoration: none;
    outline: none;
}

.sf-header-category-link.is-active,
.sf-header-category-link[aria-current="page"] {
    background: var(--sf-primary-soft-bg, rgba(13, 110, 253, 0.08));
    color: var(--sf-primary, #0d6efd);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .sf-header-category-links {
        gap: 0.22rem;
    }

    .sf-header-category-link {
        padding-right: 0.56rem;
        padding-left: 0.56rem;
    }
}

.sf-header-category-links--mobile {
    display: none;
}

.sf-navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    min-width: 2.375rem;
    height: 2.375rem;
    min-height: 2.375rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    line-height: 1;
}

.sf-navbar-toggler i {
    margin: 0;
    font-size: 1rem;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
}

.sf-navbar-toggler.is-open i {
    transform: rotate(90deg) scale(1.06);
}

.sf-navbar-toggler:hover,
.sf-navbar-toggler:focus {
    border-color: transparent;
    color: var(--sf-primary, #0d6efd);
    box-shadow: none;
    outline: none;
}

.sf-navbar-toggler:focus-visible {
    outline: 2px solid var(--sf-primary, #0d6efd);
    outline-offset: 3px;
}

.sf-nav-links--collapse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
}

.sf-header-actions {
    --sf-header-action-height: 2.375rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    margin-left: 0;
}

.sf-header-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--sf-header-action-height);
    min-height: var(--sf-header-action-height);
    border-radius: 0.6rem !important;
    font-family: var(--sf-primary-font, var(--cnvs-primary-font, system-ui, Arial, sans-serif));
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

/* Keep page-wide CTA borders, hover movement and focus styles out of the header. */
.sf-header.navbar .sf-header-actions .btn,
.sf-header.navbar .sf-header-actions .btn:is(:hover, :focus, :active) {
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 0.6rem !important;
    background-image: none !important;
    font-family: var(--sf-primary-font, var(--cnvs-primary-font, system-ui, Arial, sans-serif)) !important;
    box-shadow: var(--sf-header-action-shadow, 0 0 0 0 transparent) !important;
    transform: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.sf-header.navbar .sf-header-actions .btn-primary,
.sf-header.navbar .sf-header-actions .btn-primary:focus {
    --sf-header-action-shadow: 0 0.35rem 0.9rem var(--sf-primary-shadow, rgba(13, 110, 253, 0.25));
    border-color: var(--sf-primary, #0d6efd) !important;
    background-color: var(--sf-primary, #0d6efd) !important;
    color: var(--sf-primary-contrast, #fff) !important;
}

.sf-header.navbar .sf-header-actions .btn-primary:hover,
.sf-header.navbar .sf-header-actions .btn-primary:active {
    border-color: var(--sf-primary-hover, var(--sf-primary, #0d6efd)) !important;
    background-color: var(--sf-primary-hover, var(--sf-primary, #0d6efd)) !important;
    color: var(--sf-primary-contrast, #fff) !important;
}

.sf-header.navbar .sf-header-actions .btn-outline-primary,
.sf-header.navbar .sf-header-actions .btn-outline-primary:focus {
    border-color: var(--sf-primary, #0d6efd) !important;
    background-color: transparent !important;
    color: var(--sf-primary, #0d6efd) !important;
}

.sf-header.navbar .sf-header-actions .btn-outline-primary:hover,
.sf-header.navbar .sf-header-actions .btn-outline-primary:active {
    border-color: var(--sf-primary, #0d6efd) !important;
    background-color: var(--sf-primary-soft-bg, rgba(13, 110, 253, 0.08)) !important;
    color: var(--sf-primary, #0d6efd) !important;
}

.sf-header.navbar .sf-header-actions .btn:focus-visible {
    outline: 2px solid var(--sf-primary, #0d6efd);
    outline-offset: 3px;
}

.sf-account-icon-btn {
    width: var(--sf-header-action-height);
    min-width: var(--sf-header-action-height);
    padding: 0;
}

.sf-account-icon-btn i {
    margin: 0;
}

.sf-cart-btn--header {
    position: relative;
    gap: 0.38rem;
    flex: 0 0 auto;
    padding-right: clamp(0.55rem, 1.8vw, 0.78rem);
    padding-left: clamp(0.55rem, 1.8vw, 0.78rem);
}

.sf-cart-btn--header .fa-cart-shopping {
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.sf-cart-label {
    line-height: 1;
}

.sf-header .sf-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.34rem;
    padding-top: 0.08rem;
    border-radius: 999px;
    background: #212529 !important;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sf-header--inline-actions > .container {
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.sf-header--inline-actions .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-header--inline-actions .sf-header-actions--inline {
    flex: 0 1 auto;
    width: auto;
    margin-top: 0;
    margin-left: auto;
}

.sf-header--inline-actions .sf-header-actions--inline .btn:not(.sf-account-icon-btn) {
    padding-right: clamp(0.45rem, 2vw, 0.75rem);
    padding-left: clamp(0.45rem, 2vw, 0.75rem);
    font-size: clamp(0.78rem, 2.8vw, 0.95rem);
}

.sf-pickup-header-tab {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1029;
    height: 0;
    pointer-events: none;
}

.sf-header.sf-header--has-pickup-tab {
    --sf-pickup-tab-clearance: 2.35rem;
    margin-bottom: var(--sf-pickup-tab-clearance);
}

.sf-pickup-header-tab .container {
    display: flex;
    align-items: flex-start;
    height: 0;
    pointer-events: none;
}

.sf-pickup-location-hanger {
    display: inline-flex;
    align-items: center;
    max-width: min(440px, calc(100vw - 2rem));
    padding: 0.42rem 0.72rem 0.5rem;
    border: 1px solid #d9dde3;
    border-top: 0;
    border-radius: 0 0 0.55rem 0.55rem;
    appearance: none;
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    gap: 0.55rem;
    font: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.sf-pickup-location-hanger:hover,
.sf-pickup-location-hanger:focus {
    border-color: #c7ccd4;
    background: #fff;
    color: #111827;
}

.sf-pickup-location-hanger > i {
    color: var(--sf-primary, #0d6efd);
}

.sf-pickup-location-hanger:hover > i,
.sf-pickup-location-hanger:focus > i,
.sf-pickup-location-hanger:hover .sf-pickup-header-info,
.sf-pickup-location-hanger:focus .sf-pickup-header-info {
    color: var(--sf-primary, #0d6efd);
}

.sf-pickup-location-hanger:focus-visible {
    outline: 2px solid var(--sf-primary, #0d6efd);
    outline-offset: 2px;
}

.sf-pickup-hanger-copy {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.sf-pickup-hanger-copy span {
    color: #6b7280;
    font-size: 0.7rem;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.sf-pickup-hanger-copy strong {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
    font-size: 0.88rem;
    gap: 0.25rem;
    white-space: nowrap;
}

.sf-pickup-location-prefix {
    flex: 0 0 auto;
}

.sf-pickup-hanger-copy strong [data-sf-header-pickup-location-name] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-pickup-header-info {
    flex: 0 0 auto;
    color: var(--sf-primary, #0d6efd);
    line-height: 1;
}

@media (min-width: 992px) {
    .sf-header .navbar-collapse {
        order: 2;
        display: flex !important;
        flex: 0 1 auto;
        flex-basis: auto;
        width: auto;
        min-width: 0;
        margin-left: auto;
        justify-content: flex-end;
    }

    .sf-header-collapse-inner {
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 1rem;
        justify-content: flex-end;
        margin-left: auto;
        padding-top: 0 !important;
    }

    .sf-header-controls {
        order: 3;
        margin-left: 0.35rem;
    }

    .sf-header:not(.sf-header--inline-actions) .navbar-brand {
        flex: 0 1 auto;
    }

    .sf-nav-links--collapse {
        flex-direction: row;
        align-items: center;
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .sf-header .navbar-collapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.15rem;
        padding-top: 0.15rem;
        border-top: 0;
    }

    .sf-header .navbar-collapse.show {
        display: block;
    }

    .sf-header-controls {
        gap: clamp(0.25rem, 1.35vw, 0.45rem);
    }

    .sf-nav-links:not(.sf-nav-links--collapse) {
        display: none;
    }

    .sf-nav-links--collapse {
        gap: 0;
    }

    .sf-header-category-row {
        display: none;
    }

    .sf-header-category-links--mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        gap: 0;
        margin-top: 0.25rem;
        padding-top: 0.35rem;
        padding-inline-start: 1rem;
        border-top: 0;
        overflow: visible;
    }

    .sf-nav-links--collapse .sf-nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0.65rem 0;
        border: 0;
        border-radius: 0;
    }

    .sf-header-category-links--mobile .sf-header-category-link {
        justify-content: flex-start;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        padding: 0.65rem 0;
        border-radius: 0;
        text-align: left;
    }

    .sf-nav-links--collapse .sf-nav-link:hover,
    .sf-nav-links--collapse .sf-nav-link:focus,
    .sf-header-category-links--mobile .sf-header-category-link:hover,
    .sf-header-category-links--mobile .sf-header-category-link:focus,
    .sf-header-category-links--mobile .sf-header-category-link.is-active,
    .sf-header-category-links--mobile .sf-header-category-link[aria-current="page"] {
        background: transparent;
        color: var(--sf-primary, #0d6efd);
    }

    .sf-header-controls .sf-cart-btn--header {
        width: auto;
        min-width: var(--sf-header-action-height);
        padding: 0 0.42rem;
        gap: 0.3rem;
    }

    .sf-header-controls .sf-cart-label {
        display: none;
    }

    .sf-header-controls .fa-cart-shopping {
        margin-right: 0 !important;
    }

    .sf-header-controls .sf-cart-btn--header .sf-cart-badge {
        position: static;
        top: auto;
        right: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 0.34rem;
        padding-top: 0.08rem;
        border-radius: 999px;
        background: #212529 !important;
        color: #ffffff !important;
        font-size: 0.68rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        line-height: 1;
    }
}

@media (max-width: 575.98px) {
    .sf-header.sf-header--has-pickup-tab {
        --sf-pickup-tab-clearance: 2.55rem;
    }

    .sf-pickup-location-hanger {
        max-width: calc(100vw - 1rem);
        padding-right: 0.6rem;
        padding-left: 0.6rem;
    }
}

@media (max-width: 380px) {
    .sf-header--inline-actions .sf-header-actions--inline .sf-cart-label {
        display: none;
    }

    .sf-header--inline-actions .sf-header-actions--inline .fa-cart-shopping {
        margin-right: 0 !important;
    }
}

@media (max-width: 360px) {
    .sf-header .sf-logo-img {
        max-width: 38vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-navbar-toggler i {
        transition: none;
    }

    .sf-header.navbar .sf-header-actions .btn,
    .sf-header.navbar .sf-header-actions .btn:is(:hover, :focus, :active) {
        transition: none !important;
    }
}

/* One-level disclosure navigation; flat category strips keep their scrolling. */
.sf-header-menu-item { position: relative; min-width: 0; }
.sf-header-menu-heading { display: flex; align-items: center; min-width: 0; }
.sf-header-menu-heading > a { min-width: 0; }
.sf-nav-links--collapse .sf-header-menu-heading > .sf-header-menu-toggle--label { justify-content: flex-start; gap: .25rem; }
.sf-header-menu-chevron { width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: 0 0 auto; }
.sf-header-menu-toggle[aria-expanded="true"] .sf-header-menu-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.sf-header-menu-toggle:hover,.sf-header-menu-toggle:focus-visible,
.sf-header-category-links .sf-header-menu-item.is-active > .sf-header-menu-heading > a,
.sf-header-category-links .sf-header-menu-item.is-active > .sf-header-menu-heading > button {
    color: var(--sf-primary,#0d6efd);
}
.sf-header-menu-toggle:focus-visible,
.sf-header-menu-heading > a:focus-visible,
.sf-header-submenu-link:focus-visible {
    outline: 2px solid var(--sf-primary,#0d6efd); outline-offset: 2px;
}
.sf-header-menu-panel {
    position: absolute; top: 100%; left: 0; z-index: 1040; box-sizing: border-box;
    width: min(19rem,calc(100vw - 24px)); max-width: calc(100vw - 24px);
    padding: .6rem; border: 1px solid var(--sf-primary-soft-border,#dfe3eb); border-top: 0; border-radius: 0 0 .65rem .65rem;
    background: #fff; color: #172033; box-shadow: 0 .6rem 1.5rem rgba(15,23,42,.17);
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.sf-header-menu-panel[hidden] { display: none !important; }
.sf-header-submenu-list { display: grid; grid-template-columns: minmax(0,1fr); gap: .2rem; list-style: none; margin: 0; padding: 0; }
.sf-header-submenu-list > li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.sf-header-submenu-link {
    display: flex; align-items: center; gap: .4rem; width: 100%; min-height: 2.65rem;
    padding: .65rem .8rem; border-radius: 999px; color: inherit; font-size: .9rem; font-weight: 600;
    line-height: 1.35; letter-spacing: 0; text-transform: none; text-decoration: none;
    white-space: normal; overflow-wrap: anywhere;
}
.sf-header-submenu-link:hover,.sf-header-submenu-link:focus,.sf-header-submenu-link.is-active {
    background: var(--sf-primary-soft-bg,rgba(13,110,253,.08)); color: var(--sf-primary,#0d6efd); text-decoration: none;
}
.sf-header-menu-panel--mega { width: min(48rem,calc(100vw - 24px)); max-width: none; padding: .8rem; }
.sf-header-menu-panel--mega .sf-header-submenu-list { grid-template-columns: repeat(auto-fit,minmax(11rem,1fr)); gap: .35rem .8rem; }
.sf-header-menu-panel--mega .sf-header-submenu-list--columns {
    display: flex; flex-wrap: wrap; gap: 0; --bs-gutter-x: .8rem; --bs-gutter-y: .35rem;
}
.sf-header-submenu-list--columns > li {
    box-sizing: border-box; flex: 0 0 auto; width: 100%; max-width: 100%; padding: .175rem .4rem;
}
.sf-header-mega-columns {
    display: flex; flex-wrap: wrap; margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0;
}
.sf-header-mega-columns > .col {
    box-sizing: border-box; flex: 0 0 auto; min-width: 0; width: 100%; max-width: 100%; padding: .175rem .4rem;
}
.sf-header-mega-columns .sf-header-submenu-list { grid-template-columns: minmax(0,1fr); }
@media(min-width:992px) {
    .sf-header-menu-panel--mega .sf-header-submenu-link { justify-content: center; text-align: center; }
    .sf-header-submenu-list--columns > li { width: calc(100% / var(--sf-menu-columns,1)); }
    .sf-header-mega-columns > .col { width: calc(100% / var(--sf-menu-columns,1)); }
    .sf-header-category-links--menus { flex-wrap: wrap; overflow: visible; }
    .sf-header-category-links--menus > .sf-header-menu-item { display: flex; flex-direction: column; flex: 1 0 auto; }
    .sf-header-category-links--menus .sf-header-menu-heading { flex: 1 0 auto; justify-content: center; border-radius: 999px; }
    /* Paint one pill across the whole category slot, including split controls. */
    .sf-header-category-links--menus .sf-header-menu-heading:hover,
    .sf-header-category-links--menus .sf-header-menu-heading:focus-within,
    .sf-header-category-links--menus .sf-header-menu-item.is-active > .sf-header-menu-heading {
        background: var(--sf-primary-soft-bg,rgba(13,110,253,.08));
    }
    .sf-header-category-links--menus .sf-header-menu-heading > :is(a,button) { background: transparent; }
    .sf-header-category-links--menus .sf-header-menu-heading:is(:hover,:focus-within) > :is(a,button) { color: var(--sf-primary,#0d6efd); }
    .sf-header-category-links--menus .sf-header-menu-heading > .sf-header-category-link { flex: 0 1 auto; }
    .sf-header-category-links--menus .sf-header-menu-heading > .sf-header-menu-toggle--label { flex: 1 1 auto; align-self: stretch; }
    /* The separate disclosure already supplies space after a linked label. */
    .sf-header-category-links--menus .sf-header-menu-heading > a.sf-header-category-link { padding-inline-end: .25rem; }
}
@media(max-width:991.98px) {
    .sf-nav-links--collapse > .sf-header-menu-item,
    .sf-header-category-links--mobile > .sf-header-menu-item { width: 100%; }
    .sf-header-menu-heading > a { flex: 1 1 auto; }
    .sf-header-category-links--mobile .sf-header-menu-heading > .sf-header-category-link { flex: 1 1 auto; width: auto; white-space: normal; overflow-wrap: anywhere; }
    .sf-header-menu-heading > .sf-header-menu-toggle:not(.sf-header-menu-toggle--label) { width: 2.75rem; min-height: 2.75rem; }
    .sf-header-menu-heading > .sf-header-menu-toggle--label { flex: 1 1 auto; justify-content: space-between; width: 100%; }
    /* Keep category chevrons beside their labels, with full-size touch targets. */
    .sf-header-category-links--mobile .sf-header-menu-heading > .sf-header-menu-toggle--label {
        min-height: 2.75rem; justify-content: flex-start; gap: .25rem; padding-inline-end: 0;
    }
    .sf-header-category-links--mobile .sf-header-menu-heading > a.sf-header-category-link {
        flex: 0 1 auto; min-height: 2.75rem;
    }
    .sf-header-category-links--mobile .sf-header-menu-heading > .sf-header-menu-toggle:not(.sf-header-menu-toggle--label) {
        justify-content: flex-start; padding-inline-start: .25rem;
    }
    .sf-header-menu-panel,.sf-header-menu-panel--mega {
        position: static; width: 100%; max-width: 100%; max-height: min(52vh,28rem);
        padding: .15rem 0 .35rem .75rem; margin-bottom: .4rem;
        border: 0; border-radius: 0; background: transparent; box-shadow: none;
    }
    .sf-header-menu-panel--mega .sf-header-submenu-list { grid-template-columns: minmax(0,1fr); }
    .sf-header-submenu-list--columns > li { padding-left: 0; padding-right: 0; }
    .sf-header-mega-columns > .col { padding-left: 0; padding-right: 0; }
    .sf-header-mega-columns > .sf-header-mega-column--empty { display: none; }
}

/* Keep long category menu headings within their row. */
@media(min-width:992px){
  .sf-header-category-links--menus .sf-header-menu-item{max-width:100%;min-width:0}
  .sf-header-category-links--menus .sf-header-menu-heading>.sf-header-category-link{white-space:normal;min-width:0;overflow-wrap:anywhere}
}
