:root {
    --sl-header-text: #111827;
    --sl-header-muted: #667085;
    --sl-header-line: #e5e7eb;
    --sl-header-bg: rgba(255, 255, 255, 0.96);
    --sl-header-danger: #dc2626;
    --sl-header-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.sl-online-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--sl-header-bg);
    border-bottom: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sl-online-header-inner {
    width: min(100%, 1260px);
    min-height: 96px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 88px minmax(260px, 780px) 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.sl-header-logo-link {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    outline: none;
}

.sl-header-logo-link:focus-visible,
.sl-header-cart:focus-visible,
.sl-header-search-submit:focus-visible,
.sl-header-scan:focus-visible,
.sl-header-search-input:focus-visible {
    outline: 3px solid rgba(15, 23, 42, 0.12);
    outline-offset: 2px;
}

.sl-header-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 999px;
    filter: drop-shadow(0 8px 16px rgba(17, 24, 39, 0.08));
}

.sl-header-search {
    position: relative;
    width: min(100%, 780px);
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    padding-inline-start: 18px;
    border: 1px solid rgba(209, 213, 219, 0.88);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 22px rgba(15, 23, 42, 0.055);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.sl-header-search:focus-within {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.28);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.055), 0 12px 30px rgba(15, 23, 42, 0.09);
}

.sl-header-search-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sl-header-text);
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
}

.sl-header-search-input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.sl-header-search-input::-webkit-search-decoration,
.sl-header-search-input::-webkit-search-cancel-button,
.sl-header-search-input::-webkit-search-results-button,
.sl-header-search-input::-webkit-search-results-decoration {
    appearance: none;
    -webkit-appearance: none;
}

.sl-header-search-submit,
.sl-header-scan,
.sl-header-cart {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sl-header-search-submit {
    min-width: 72px;
    padding: 0 18px;
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

.sl-header-scan,
.sl-header-cart {
    width: 46px;
    min-width: 46px;
    border-radius: 999px;
}

.sl-header-search-submit:hover,
.sl-header-scan:hover,
.sl-header-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.sl-header-search-submit:disabled,
.sl-header-scan:disabled,
.sl-header-cart[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.sl-header-scan svg,
.sl-header-cart svg {
    width: 21px;
    height: 21px;
}

.sl-header-cart {
    position: relative;
    text-decoration: none;
}

.sl-header-cart-count {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: var(--sl-header-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.sl-header-suggestions.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 1200;
    max-height: 420px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--sl-header-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
}

body .home-mobile-search-card {
    display: none !important;
}

.cart-page-heading,
.checkout-page-heading {
    width: min(100%, 1140px);
    margin: 20px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cart-page-heading h1,
.checkout-page-heading h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.25;
}

.cart-page-heading p,
.checkout-page-heading p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.cart-page-heading-badge {
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-weight: 950;
}

.opb-public-body .sl-online-header {
    position: sticky;
}

@media print {
    .sl-online-header.no-print,
    .sl-online-header {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .sl-online-header-inner {
        min-height: 72px;
        grid-template-columns: 62px minmax(0, 1fr) 42px;
        gap: 10px;
        padding: 8px 10px;
    }

    .sl-header-logo-link {
        width: 62px;
        height: 62px;
    }

    .sl-header-logo {
        width: 60px;
        height: 60px;
    }

    .sl-header-search {
        height: 46px;
        gap: 6px;
        padding: 5px;
        padding-inline-start: 12px;
        border-radius: 16px;
    }

    .sl-header-search-input {
        font-size: 12.5px;
        font-weight: 850;
    }

    .sl-header-search-submit,
    .sl-header-scan,
    .sl-header-cart {
        height: 38px;
    }

    .sl-header-search-submit {
        min-width: 50px;
        padding: 0 11px;
        font-size: 12px;
        border-radius: 13px;
    }

    .sl-header-scan,
    .sl-header-cart {
        width: 40px;
        min-width: 40px;
    }

    .sl-header-cart-count {
        top: -6px;
        left: -6px;
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .cart-page-heading,
    .checkout-page-heading {
        margin-top: 14px;
        padding: 0 14px;
    }

    .cart-page-heading h1,
    .checkout-page-heading h1 {
        font-size: 20px;
    }
}

@media (max-width: 390px) {
    .sl-online-header-inner {
        min-height: 66px;
        grid-template-columns: 56px minmax(0, 1fr) 38px;
        gap: 7px;
    }

    .sl-header-logo-link,
    .sl-header-logo {
        width: 54px;
        height: 54px;
    }

    .sl-header-search {
        padding-inline-start: 9px;
    }

    .sl-header-search-input {
        font-size: 11.5px;
    }

    .sl-header-search-submit {
        min-width: 42px;
        padding: 0 9px;
        font-size: 11px;
    }

    .sl-header-scan,
    .sl-header-cart {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }
}

/* 20260709 mobile storefront polish: clean one-line header without duplicate cart on mobile */
@media (max-width: 760px) {
    .sl-online-header {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(229, 231, 235, 0.86);
        box-shadow: 0 8px 24px rgba(17, 24, 39, 0.055);
    }

    .sl-online-header-inner {
        width: 100%;
        min-height: 78px;
        grid-template-columns: 64px minmax(0, 1fr);
        justify-content: stretch;
        gap: 10px;
        padding: 8px 12px;
    }

    .sl-header-cart {
        display: none !important;
    }

    .sl-header-logo-link {
        width: 64px;
        height: 64px;
    }

    .sl-header-logo {
        width: 62px;
        height: 62px;
        filter: drop-shadow(0 5px 10px rgba(17, 24, 39, 0.07));
    }

    .sl-header-search {
        width: 100%;
        min-width: 0;
        height: 50px;
        gap: 7px;
        padding: 5px;
        padding-inline-start: 14px;
        border-radius: 18px;
        background: #ffffff;
        border-color: rgba(209, 213, 219, 0.92);
        box-shadow: 0 8px 20px rgba(17, 24, 39, 0.055);
    }

    .sl-header-search:focus-within {
        border-color: rgba(17, 24, 39, 0.30);
        box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.055), 0 12px 26px rgba(17, 24, 39, 0.08);
    }

    .sl-header-search-input {
        text-align: right;
        font-size: 13.5px;
        font-weight: 900;
        line-height: 1.2;
    }

    .sl-header-search-input::placeholder {
        color: #6b7280;
        font-weight: 850;
    }

    .sl-header-search-submit,
    .sl-header-scan {
        height: 40px;
        min-width: 58px;
        border-radius: 15px;
        box-shadow: 0 9px 18px rgba(17, 24, 39, 0.16);
    }

    .sl-header-search-submit {
        padding: 0 14px;
        font-size: 13px;
    }

    .sl-header-scan {
        width: 42px;
        min-width: 42px;
    }

    .sl-header-suggestions.search-suggestions {
        top: calc(100% + 7px);
        border-radius: 20px;
        max-height: min(64vh, 420px);
    }
}

@media (max-width: 390px) {
    .sl-online-header-inner {
        min-height: 72px;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
        padding-inline: 10px;
    }

    .sl-header-logo-link,
    .sl-header-logo {
        width: 56px;
        height: 56px;
    }

    .sl-header-search {
        height: 48px;
        padding-inline-start: 11px;
        border-radius: 17px;
    }

    .sl-header-search-input {
        font-size: 12.5px;
    }

    .sl-header-search-submit {
        min-width: 52px;
        padding: 0 11px;
        font-size: 12px;
    }
}


/* 20260709 mobile audit: compact header, search-first layout */
.sl-header-search-submit svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .sl-online-header {
        background: rgba(255, 255, 255, 0.985);
        border-bottom: 1px solid rgba(229, 231, 235, 0.78);
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
    }

    .sl-online-header-inner {
        width: 100%;
        min-height: 64px;
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        padding: 7px 10px;
    }

    .sl-header-cart {
        display: none !important;
    }

    .sl-header-logo-link {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 999px;
    }

    .sl-header-logo {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        object-fit: contain;
        filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.055));
    }

    .sl-header-search {
        width: 100%;
        min-width: 0;
        height: 44px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38px;
        align-items: center;
        gap: 6px;
        padding: 4px;
        padding-inline-start: 12px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
    }

    .sl-header-search:focus-within {
        border-color: rgba(15, 23, 42, 0.32);
        box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.055), 0 8px 22px rgba(15, 23, 42, 0.065);
        transform: none;
    }

    .sl-header-search-input {
        min-width: 0;
        height: 100%;
        padding: 0;
        text-align: right;
        color: #0f172a;
        font-size: 14px;
        font-weight: 850;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sl-header-search-input::placeholder {
        color: #7c8493;
        font-size: 14px;
        font-weight: 800;
        opacity: 1;
    }

    .sl-header-search-submit,
    .sl-header-scan {
        width: 38px;
        min-width: 38px;
        height: 36px;
        padding: 0;
        border-radius: 13px;
        background: #0f172a;
        border-color: #0f172a;
        color: #ffffff;
        box-shadow: 0 7px 14px rgba(15, 23, 42, 0.14);
    }

    .sl-header-search-submit span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .sl-header-search-submit svg,
    .sl-header-scan svg {
        width: 18px;
        height: 18px;
    }

    .sl-header-suggestions.search-suggestions {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        max-height: min(58vh, 360px);
        padding: 7px;
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    }
}

@media (max-width: 390px) {
    .sl-online-header-inner {
        min-height: 60px;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 7px;
        padding: 6px 8px;
    }

    .sl-header-logo-link,
    .sl-header-logo {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .sl-header-search {
        height: 42px;
        grid-template-columns: minmax(0, 1fr) 36px;
        gap: 5px;
        padding: 3px;
        padding-inline-start: 10px;
        border-radius: 15px;
    }

    .sl-header-search-submit,
    .sl-header-scan {
        width: 36px;
        min-width: 36px;
        height: 34px;
        border-radius: 12px;
    }

    .sl-header-search-input,
    .sl-header-search-input::placeholder {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .sl-online-header-inner {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 6px;
        padding-inline: 7px;
    }

    .sl-header-logo-link,
    .sl-header-logo {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .sl-header-search-input,
    .sl-header-search-input::placeholder {
        font-size: 12.5px;
    }
}
