/* Shared public storefront navigation. */
.sf-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid #e1e1ea;
    background: #fff;
}

.sf-header > .container {
    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: 42px;
    max-width: min(46vw, 220px);
    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;
}

.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.9rem;
    font-weight: 600;
    line-height: 1;
}

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

.sf-nav-link:hover,
.sf-nav-link:focus {
    color: var(--sf-primary);
    text-decoration: none;
    outline: 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);
    box-shadow: none;
    outline: none;
}

.sf-navbar-toggler:focus-visible {
    outline: 2px solid var(--sf-primary);
    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);
    white-space: nowrap;
}

.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 {
    flex: 0 0 auto;
}

.sf-header .sf-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.7rem;
}

.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-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:focus-visible {
    outline: 2px solid var(--sf-primary);
    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 {
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-pickup-header-info {
    flex: 0 0 auto;
    color: #111827;
    line-height: 1;
}

@media (min-width: 992px) {
    #sfNavCollapse {
        order: 2;
    }

    .sf-header-controls {
        order: 3;
    }

    .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;
    }
}

@media (max-width: 991.98px) {
    #sfNavCollapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.15rem;
        padding-top: 0.15rem;
        border-top: 0;
    }

    .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-nav-links--collapse .sf-nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0.65rem 0;
        border: 0;
        border-radius: 0;
    }

    .sf-nav-links--collapse .sf-nav-link:hover,
    .sf-nav-links--collapse .sf-nav-link:focus {
        background: transparent;
        color: var(--sf-primary);
    }

    .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.2rem;
        height: 1.2rem;
        padding: 0 0.32rem;
        font-variant-numeric: tabular-nums;
        line-height: 1;
    }
}

@media (max-width: 575.98px) {
    .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;
    }
}
