/* ================= SIDEBAR FINAL ================= */

/* ---------- DESKTOP : STICKY SIDEBAR ---------- */
@media (min-width: 992px) {

    /* Sticky breaks if row hides overflow */
    .row {
        overflow: visible !important;
    }

    .sidebar-wrapper {
        position: relative;
        align-self: flex-start;
    }

    .sidebardiv {
        position: sticky;
        top: 110px;               /* navbar height */
        z-index: 100;
        margin-left: 25px;
    }
}


/* ---------- MOBILE : SLIDE-IN SIDEBAR ---------- */
@media (max-width: 991px) {

    .sidebar-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        z-index: 1050;
        transition: right 0.35s ease;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }

    .sidebar-wrapper.active {
        right: 0;
    }

    .sidebardiv {
        position: static;       /* IMPORTANT */
        height: 100%;
        margin-left: 0;
        border-radius: 0;
    }

    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
.product-scroll-wrapper {
    max-height: 600px;          /* 2 rows ki height */
    overflow-y: auto;           /* vertical scroll */
    padding-right: 10px;
}

/* Smooth scroll */
.product-scroll-wrapper {
    scroll-behavior: smooth;
}
.product-scroll-wrapper::-webkit-scrollbar {
    width: 10px;
}

.product-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c2c2c2;
    border-radius: 10px;
}
