:root {
    --sbu-navy: #071c4d;
    --sbu-blue: #063ebc;
    --sbu-cyan: #09a8df;
    --sbu-purple: #7f24d9;
    --sbu-pink: #cf05bd;
    --sbu-red: #e3131b;
    --sbu-green: #12a33a;
    --sbu-border: #dbe3f0;
    --sbu-muted: #6f7b96;
    --sbu-gradient: linear-gradient(100deg, #09a8df, #7f24d9, #cf05bd);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.demo-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 18px;
    background: #fff;
    border-bottom: 1px solid #e7ebf2;
}

.demo-logo {
    margin: 0;
    color: var(--sbu-navy);
    font-size: 27px;
    font-weight: 800;
}

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

.demo-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sbu-navy);
}

.demo-icon-button {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--sbu-navy);
    background: transparent;
    border: 0;
    border-radius: 50%;
    place-items: center;
}

.sbu-icon {
        display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: rgb(72 72 72);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-cart-count {
    position: absolute;
    top: -1px;
    right: -1px;
    display: grid;
    width: 17px;
    height: 17px;
    color: #fff;
    background: var(--sbu-blue);
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    place-items: center;
}

.demo-main {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 26px 18px 80px;
}

.demo-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.demo-heading h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 4vw, 36px);
}

.demo-heading p {
    margin: 5px 0 0;
    color: #6b7280;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.demo-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 17px;
    box-shadow: 0 8px 28px rgba(10, 28, 68, 0.06);
}

.demo-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.demo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f4f4f4;
}

.demo-card-content {
    padding: 13px;
}

.demo-card h2 {
    display: -webkit-box;
    margin: 0 0 9px;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.demo-card-price {
    display: flex;
    align-items: center;
    gap: 9px;
}

.demo-card-price strong {
    color: var(--sbu-red);
    font-size: 18px;
}

.demo-card-price del {
    color: #8a93a6;
    font-size: 13px;
}

.desktop-note {
    display: none;
    padding: 12px 18px;
    color: #fff;
    background: var(--sbu-navy);
    text-align: center;
}

/* Page overlay */
.sbu-qv-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(7, 18, 43, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sbu-qv-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Mobile bottom drawer */
.sbu-qv-drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 96dvh;
    overflow: hidden;
    color: #111827;
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -14px 45px rgba(4, 18, 55, 0.22);
    transform: translateY(105%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sbu-qv-drawer.is-open {
    transform: translateY(0);
}

.sbu-qv-handle {
    flex: 0 0 auto;
    width: 52px;
    height: 5px;
    margin: 9px auto 2px;
    background: #c5ccda;
    border-radius: 20px;
}

.sbu-qv-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 8px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
}

.sbu-qv-header h2 {
    margin: 0;
    color: var(--sbu-navy);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.sbu-qv-close,
.sbu-qv-wishlist,
.sbu-qv-arrow {
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
}

.sbu-qv-close {
    width: 36px;
    height: 36px;
    color: #1b2942;
    background: #f0f2f7;
}

.sbu-qv-close .sbu-icon {
    width: 19px;
    height: 19px;
    stroke-width: 1.7;
}

.sbu-qv-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 14px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-anchor: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

/* Working 8-image slider */
.sbu-qv-slider {
    position: relative;
    overflow: hidden;
    background: #f6f4f1;
    border-radius: 16px;
    touch-action: pan-y;
}

.sbu-qv-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.sbu-qv-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.sbu-qv-slide img {
    display: block;
    width: 100%;
    height: clamp(220px, 61vw, 310px);
    object-fit: initial;
    user-select: none;
    -webkit-user-drag: none;
}

.sbu-qv-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    min-width: 48px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
    border-radius: 20px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.sbu-qv-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    color: var(--sbu-blue);
    background: #fff;
    box-shadow: 0 4px 14px rgba(4, 28, 82, 0.16);
}

.sbu-qv-wishlist .sbu-icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}

.sbu-qv-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 36px;
    color: var(--sbu-navy);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 12px rgba(7, 28, 73, 0.16);
    transform: translateY(-50%);
}

.sbu-qv-arrow .sbu-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.sbu-qv-prev {
    left: 9px;
}

.sbu-qv-next {
    right: 9px;
}

.sbu-qv-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 2px 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.sbu-qv-thumbs::-webkit-scrollbar {
    display: none;
}

.sbu-qv-thumb {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8e0ed;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sbu-qv-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
}

.sbu-qv-thumb.is-active {
    border-color: var(--sbu-blue);
    transform: translateY(-1px);
}

.sbu-qv-summary h3 {
    margin: 0;
    color: var(--sbu-navy);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 500;
}

.sbu-qv-subtitle {
    margin: 5px 0 7px;
    color: var(--sbu-muted);
    font-size: 14px;
    line-height: 1.45;
}

.sbu-qv-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sbu-qv-rating span {
    color: #f2a900;
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 1;
}

.sbu-qv-rating small {
    color: #8791a8;
    font-size: 13px;
}

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

.sbu-qv-price-row strong {
    color: var(--sbu-red);
    font-size: 22px;
    line-height: 1;
}

.sbu-qv-price-row del {
        color: #81899b;
    font-size: 22px;
    font-weight: 400;
}

.sbu-qv-discount {
    padding: 5px 10px;
    color: #fff;
    background: var(--sbu-green);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.sbu-qv-saving {
    display: inline-block;
    margin: 9px 0 12px;
    padding: 5px 10px;
    color: #087c29;
    background: #f2fff5;
    border: 1px dashed #42be63;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.sbu-qv-pincode {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 9px;
}

.sbu-qv-pincode input,
.sbu-qv-pincode button {
    width: 100%;
    height: 38px;
    border-radius: 22px;
}

.sbu-qv-pincode input {
    padding: 0 16px;
    color: #111;
    background: #fff;
    border: 1px solid var(--sbu-border);
    outline: none;
}

.sbu-qv-pincode input:focus {
    border-color: var(--sbu-blue);
    box-shadow: 0 0 0 3px rgba(6, 62, 188, 0.08);
}

.sbu-qv-pincode button,
.sbu-qv-buy {
    color: #fff;
    background: linear-gradient(90deg, #0b9ad1, #7c3c8c);
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.sbu-qv-pincode button {
    padding: 0 14px;
    font-size: 14px;
}


.sbu-qv-highlights h3,
.sbu-qv-information h3 {
    margin: 0;
    color: #000;
    font-weight: 500;
}

.sbu-qv-highlights {
    position: relative;
    margin-top: 20px;
    padding: 16px;
    overflow: hidden;
    background: linear-gradient(115deg, #f8fbff, #f4f6fb);
    border: 1px solid #d8e1ef;
    border-radius: 14px;
}

.sbu-qv-highlights::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--sbu-gradient);
}

.sbu-qv-highlights h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.sbu-qv-highlights ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sbu-qv-highlights li {
    position: relative;
    padding-left: 16px;
    color: #2e2f31;
    font-size: 14px;
    line-height: 1.45;
}

.sbu-qv-highlights li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 5px;
    height: 5px;
    background: #393a3b;
    border-radius: 50%;
}

.sbu-qv-information {
    margin-top: 18px;
}

.sbu-qv-information h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.sbu-qv-tabs {
    display: flex;
    gap: 8px;
    padding: 2px 4px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    position: relative;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overflow-anchor: none;
    scrollbar-width: none;
}

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

.sbu-qv-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #cfdaed;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.sbu-qv-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--sbu-gradient);
    background: linear-gradient(90deg, #0b9ad1, #7c3c8c);
}


/* Size each tab to its content; only long panels need inner scrolling. */
.sbu-qv-panels {
    height: auto;
    min-height: 0;
    margin-top: 6px;
    overflow: hidden;
    overflow-anchor: none;
}

.sbu-qv-panel {
    height: auto;
    max-height: 240px;
    max-height: min(320px, 40svh);
    min-height: 0;
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #aeb8ca transparent;
    -webkit-overflow-scrolling: touch;
    overflow-wrap: anywhere;
    padding: 14px;
    color: #252627;
    background: #f8faff;
    border: 1px solid var(--sbu-border);
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.55;
    animation: sbuPanelFade 0.18s ease-out;
}

.sbu-qv-panel[hidden] {
    display: none;
}

.sbu-qv-panel p,
.sbu-qv-panel ul {
    margin: 0;
}

.sbu-qv-panel ul {
    padding-left: 18px;
}

.sbu-qv-specs {
    margin: 0;
}

.sbu-qv-specs > div {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: 10px;
    padding: 7px 2px;
    border-bottom: 1px solid #e4e9f3;
}

.sbu-qv-specs > div:last-child {
    border-bottom: 0;
}

.sbu-qv-specs dt,
.sbu-qv-specs dd {
    margin: 0;
    font-weight: 500;
}

.sbu-qv-specs dt {
    color: #303132;
}
.sbu-qv-panel ul li {
    list-style: circle;
    line-height: 28px;
}
.sbu-qv-specs dd {
    color: #5d5f62;
    font-weight: 400;
}

.sbu-qv-sku {
    margin: 13px 0 2px;
    color: #121313;
    font-size: 13px;
}
.sbu-qv-sku strong {
    color: #000;
}
.sbu-qv-actions {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) minmax(0, 1fr);
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e6ebf3;
    box-shadow: 0 -6px 20px rgba(9, 30, 72, 0.08);
}

.sbu-qv-actions > button {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border-radius: 23px;
    font-size: 15px;
    font-weight: 500;
}

.sbu-qv-quantity {
    display: grid;
    grid-template-columns: 30px minmax(28px, 1fr) 30px;
    align-items: center;
    width: 100%;
    height: 36px;
    overflow: hidden;
    color: var(--sbu-blue);
    background: #fff;
    border: 1px solid #cbd6e8;
    border-radius: 23px;
}

.sbu-qv-quantity button {
    display: grid;
    width: 30px;
    height: 100%;
    padding: 0;
    color: #141516;
    background: transparent;
    border: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    place-items: center;
    line-height: 40px;
}

.sbu-qv-quantity button:disabled {
    color: #aeb8ca;
    cursor: not-allowed;
}

.sbu-qv-quantity input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    color: #27282a;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.sbu-qv-quantity input::-webkit-inner-spin-button,
.sbu-qv-quantity input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.sbu-qv-cart {
    color: #222426;
    background: #fff;
    border: 1.5px solid #cbd6e8;
    cursor: pointer;
}

.sbu-qv-buy {
    border: 0;
}



@media (min-width: 768px) {
    .sbu-qv-overlay,
    .sbu-qv-drawer {
        display: none;
    }

    .desktop-note {
        display: block;
    }
}

@media (max-width: 767px) {
    .demo-main {
        padding: 20px 14px 75px;
    }

    .demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .demo-card-content {
        padding: 10px;
    }

    .demo-card h2 {
        font-size: 13px;
    }

    .demo-card-price strong {
        font-size: 16px;
    }
}

@media (max-width: 370px) {
    .sbu-qv-scroll {
        padding-right: 12px;
        padding-left: 12px;
    }

    .sbu-qv-actions {
        grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
        padding-right: 8px;
        padding-left: 8px;
    }

    .sbu-qv-actions button {
        font-size: 12px;
    }
}
.sbu-product-image-wrap {
    position: relative;
}

/* Desktop hidden */
.sbu-quick-view-trigger {
    display: none;
}

@media (max-width: 767px) {

    .sbu-quick-view-trigger {
        position: absolute;
        top: 55px;
        right: 16px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #111;
        font-size: 15px;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
        cursor: pointer;
    }

    .sbu-quick-view-trigger i {
        margin: 0;
        padding: 0;
        line-height: 1;
        pointer-events: none;
    }
}

/* Fade only: tab content must not slide vertically. */
@keyframes sbuPanelFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sbu-qv-tab:focus-visible,
.sbu-qv-panel:focus-visible {
    outline: 2px solid #063ebc;
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .sbu-qv-tabs { scroll-behavior: auto; }
    .sbu-qv-panel { animation: none; }
}
