:root {
    --sbu-navy: #08182f;
    --sbu-blue: #08a5dd;
    --sbu-purple: #6e3fc8;
    --sbu-pink: #c20aa8;
    --sbu-red: #bf0f1b;
    --sbu-green: #07934a;
    --sbu-muted: #7d8492;
    --sbu-border: #dfe3eb;
    --sbu-soft: #f5f7fb;
    --sbu-gradient: linear-gradient(105deg, var(--sbu-blue) 0%, var(--sbu-purple) 58%, var(--sbu-pink) 100%);
}


button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.sbu-mobile-offers-demo {
    display: none;
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    .sbu-fbt-wrap {
        display: none;
    }

    body.sbu-sheet-open {
        overflow: hidden;
    }

    .sbu-mobile-offers-demo {
        display: block;
        min-height: 100vh;
        padding: 18px 16px 156px;
        background: linear-gradient(180deg, #ffffff 0%, #f2f4f8 100%);
    }

    .sbu-demo-logo {
        margin: 4px 0 22px;
        font-size: 26px;
        font-weight: 600;
        letter-spacing: -.7px;
    }

    .sbu-demo-logo span {
        color: var(--sbu-purple);
    }

    .sbu-demo-product {
        overflow: hidden;
        border: 1px solid var(--sbu-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 32px rgba(8, 24, 47, .08);
    }

    .sbu-demo-product img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / .82;
        object-fit: cover;
        background: #eee9df;
    }

    .sbu-demo-copy {
        padding: 18px;
    }

    .sbu-demo-copy h1 {
        margin: 0 0 7px;
        font-size: 24px;
        line-height: 1.15;
        font-weight: 500;
    }

    .sbu-demo-copy p {
        margin: 0;
        color: #6d7586;
        font-size: 15px;
    }

    .sbu-demo-price {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 14px;
    }

    .sbu-demo-price strong {
        color: var(--sbu-red);
        font-size: 25px;
        font-weight: 600;
    }

    .sbu-demo-price del {
        color: #8f96a4;
        font-size: 17px;
    }

    /* Dark page overlay */
    .sbu-offers-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        border: 0;
        padding: 0;
        background: rgba(4, 12, 27, .62);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.sbu-sheet-open .sbu-offers-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Filter-style drawer */
    .sbu-offers-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 64px);
        /* Existing 58px website nav + compact offer switcher ke liye space */
        padding: 10px 14px 90px;
        border-radius: 14px 14px 0 0;
        background: #fff;
        box-shadow: 0 -16px 50px rgba(8, 24, 47, .2);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform .32s cubic-bezier(.22, .8, .25, 1), visibility .32s ease;
    }

    body.sbu-sheet-open .sbu-offers-sheet {
        transform: translateY(0);
        visibility: visible;
    }

    .sbu-sheet-handle {
        flex: 0 0 auto;
        width: 48px;
        height: 4px;
        margin: 0 auto 9px;
        border-radius: 10px;
        background: #c7cbd5;
    }

    .sbu-sheet-head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 34px;
        margin-bottom: 9px;
    }

    .sbu-sheet-title {
        margin: 0;
        color: #000;
        font-size: 20px;
        font-weight: 500;
    }

    .sbu-view-all {
        margin-left: auto;
        border: 0;
        padding: 5px;
        color: #0878cf;
        background: transparent;
        font-size: 14px;
        font-weight: 500;
    }

    .sbu-sheet-close {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid var(--sbu-border);
        border-radius: 50px;
        color: var(--sbu-navy);
        background: #fff;
    }

    .sbu-sheet-close svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.4;
        stroke-linecap: round;
    }

    .sbu-panel {
        display: none;
        min-height: 0;
        overflow: hidden;
    }

    .sbu-panel.is-active {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        animation: sbuPanelIn .2s ease;
    }

    @keyframes sbuPanelIn {
        from { opacity: 0; transform: translateY(7px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Category tabs used in Combo and FBT */
    .sbu-category-tabs {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        margin: 1px 0 12px;
        padding: 2px 1px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sbu-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .sbu-category-tab {
        flex: 0 0 auto;
        min-height: 30px;
        border: 1px solid #d9dde6;
        border-radius: 23px;
        padding: 4px 16px;
        color: #222b3a;
        background: #fff;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 500;
        transition: .2s ease;
    }

    .sbu-category-tab.is-active {
        border-color: transparent;
        color: #fff;
        background: var(--sbu-gradient);
    }
    .sbu-bundle-card {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--sbu-border);
        border-radius: 15px;
        scrollbar-width: thin;
        scrollbar-color: #bdc2ce transparent;
    }

    .sbu-bundle-card[hidden] {
        display: none;
    }

    .sbu-bundle-product {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) 26px;
        align-items: center;
        gap: 12px;
        padding: 6px;
        border-bottom: 1px solid #e5e8ee;
        background: #fff;
    }

    .sbu-bundle-product:last-child {
        border-bottom: 0;
    }

    /* Combo products ke beech plus connector */
    .sbu-combo-plus {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0px 12px;
        background: #fff;
        margin: 4px 0px;
    }

    .sbu-combo-plus::before,
    .sbu-combo-plus::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #dfe3eb;
    }

    .sbu-combo-plus span {
        display: grid;
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        place-items: center;
        border: 1px solid #d7dce6;
        border-radius: 50%;
        color: #7f8797;
        background: #fff;
        font-size: 28px;
        line-height: 33px;
        font-weight: 400;
    }

    .sbu-bundle-product img {
        display: block;
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
        background: #eee9df;
    }
    .sbu-product-check input:not(:checked) + span {
        border: 1px solid #ccc !important;
        background: #fff !important;
        box-shadow: none;
    }
    .sbu-this-item {
        display: block;
        margin-bottom: 2px;
        color: #000;
        font-size: 13px;
        font-weight: 500;
    }

    .sbu-bundle-name {
        display: -webkit-box;
        margin: 0 0 0px;
        overflow: hidden;
        color: #000;
        font-size: 14px;
        font-weight: 400;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .sbu-price-row {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .sbu-price-row del {
        color: #9aa0ad;
        font-size: 16px;
        font-weight: 500;
    }

    .sbu-price-row strong {
        color: var(--sbu-red);
        font-size: 16px;
        font-weight: 600;
    }

    .sbu-product-check {
        position: relative;
        width: 20px;
        height: 20px;
    }

    .sbu-product-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .sbu-product-check span {
        display: block;
        width: 20px;
        height: 20px;
        border-radius: 2px;
        background: #fff;
    }

    .sbu-product-check input:checked + span {
        border-color: transparent;
        background: var(--sbu-gradient);
    }

    .sbu-product-check input:checked + span::after {
        content: "";
        position: absolute;
        left: 7px;
        top: 2px;
        width: 7px;
        height: 12px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .sbu-bundle-summary {
        flex: 0 0 auto;
        margin-top: 10px;
        padding: 0 2px;
    }

    .sbu-summary-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 13px;
        margin-bottom: 6px;
        color: #000;
        font-size: 16px;
    }

    .sbu-summary-line strong {
        color: var(--sbu-navy);
        font-size: 16px;
        font-weight: 600;
    }

    .sbu-summary-line.sbu-saving,
    .sbu-summary-line.sbu-saving strong {
        color: var(--sbu-green);
    }

    .sbu-primary-button {
        width: 100%;
        min-height: 40px;
        margin-top: 0px;
        border: 0;
        border-radius: 50px;
        color: #fff;
        background: var(--sbu-gradient);
        font-size: 15px;
        font-weight: 500;
    }

    .sbu-primary-button:disabled {
        color: #979daa;
        background: #f0f1f4;
        box-shadow: none;
        cursor: not-allowed;
    }

    /* Trending cards: 4 visible, more scroll vertically */
    .sbu-trending-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding: 1px 4px 24px 1px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scroll-padding-bottom: 24px;
        scrollbar-width: thin;
        scrollbar-color: #bdc2ce transparent;
    }

    .sbu-trending-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sbu-trending-grid::after {
        content: "";
        grid-column: 1 / -1;
        height: 1px;
    }

    .sbu-trending-card {
        overflow: hidden;
        border: 1px solid var(--sbu-border);
        border-radius: 10px;
        background: #fff;
    }

    .sbu-trending-media {
        position: relative;
        margin: 5px 5px 0;
    }

    .sbu-trending-media img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / .88;
        border-radius: 10px;
        object-fit: cover;
        background: #eee9df;
    }

    .sbu-trending-badge {
        position: absolute;
        left: 1px;
        top: -1px;
        border-radius: 18px;
        padding: 4px 8px;
        color: #fff;
        background: var(--sbu-gradient);
        font-size: 9px;
        font-weight: 500;
        letter-spacing: .3px;
    }

    .sbu-wishlist {
        position: absolute;
        right: 1px;
        top: 1px;
        display: grid;
        width: 26px;
        height: 26px;
        place-items: center;
        border: 0;
        border-radius: 50%;
        color: var(--sbu-navy);
        background: #fff;
        box-shadow: 0 3px 10px rgba(8, 24, 47, .12);
    }

    .sbu-wishlist svg {
        width: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .sbu-trending-body {
        padding: 9px 8px 8px;
    }

    .sbu-trending-name {
        display: -webkit-box;
        min-height: 34px;
        margin: 0 0 7px;
        overflow: hidden;
        color: #000;
        font-size: 14px;
        line-height: 1.35;
        font-weight: 500;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }
.sbu-trending-name a {
    color: #000;
}
    .sbu-trending-price {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 8px;
    }

    .sbu-trending-price del {
        color: #9aa0ad;
        font-size: 16px;
    }

    .sbu-trending-price strong {
        color: var(--sbu-red);
        font-size: 17px;
        font-weight: 600;
    }

    .sbu-card-cart {
        width: 65%;
        min-height: 31px;
        border: 0;
        border-radius: 50px !important;
        color: #fff;
        background: var(--sbu-gradient) !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Persistent three-button selector */
    .sbu-offer-switcher {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-height: 40px;
    padding: 5px;

    border: 1px solid #dfe3eb;
    border-radius: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -4px 22px rgba(8, 24, 47, .12);
    backdrop-filter: blur(12px);
}

.sbu-offer-switch {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;

    align-items: center;
    justify-content: center;

    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 50px;

    color: var(--sbu-navy);
    background: transparent;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;

    transition: .2s ease;

}

.sbu-offer-switch {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    align-items: center;
    justify-content: center;

    padding: 6px 14px;
    border: 0;
    border-radius: 50px;

    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;

    /* SpacesByU Logo Colors - Less Bright */
    background: linear-gradient(
        120deg,
        #0785b8,
        #176da5,
        #3454a2,
        #563a94,
        #762b82,
        #92256f,
        #762b82,
        #563a94,
        #3454a2,
        #0785b8
    );

    background-size: 300% 300%;
    animation: sbuGradientMove 6s ease infinite;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}

@keyframes sbuGradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


    @media (max-width: 374px) {
        .sbu-offer-switcher {
            grid-template-columns: .9fr 1.45fr 1fr;
        }

        .sbu-offer-switch {
            padding-inline: 3px;
            font-size: 12px;
        }

        .sbu-bundle-product {
            grid-template-columns: 76px minmax(0, 1fr) 26px;
            gap: 9px;
            padding: 10px;
        }

        .sbu-bundle-product img {
            width: 72px;
            height: 72px;
        }
    }

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


@media (max-width: 360px) {
    .sbu-offer-switcher {
        grid-template-columns: 0.9fr 1.55fr 1.1fr;x;
        padding: 7px;
    }
    .sbu-offer-switch {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .sbu-offers-overlay,
    .sbu-offers-sheet,
    .sbu-offer-switcher {
        display: none !important;
    }
}