
        /* Import Quicksand Font */
        @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap');

        /* Override all Bootstrap default fonts */
        * {
            font-family: 'Quicksand', sans-serif !important;
        }

        /* page_title (the main H5 heading at top) */
        h5 {
            font-family: 'Quicksand', sans-serif !important;
            font-weight: 500 !important;
            font-size: 24px !important;
            line-height: 36px !important;
            letter-spacing: 0px !important;
        }

        /* product.category text (small uppercase category/subcategory) */
        .card-body p.small.text-uppercase {
            font-family: 'Quicksand', sans-serif !important;
            font-weight: 400 !important;
            font-size: 14px !important;
            line-height: 16px !important;
            letter-spacing: 0.3px !important;
            text-transform: uppercase !important;
        }

        /* product.product_name */
        .card-title {
            font-family: 'Quicksand', sans-serif !important;
            font-weight: 600 !important;
            font-size: 16px !important;
            line-height: 24px !important;
            letter-spacing: 0px !important;
        }

        /* product.sale_price */
        .card-body span.fw-bold {
            font-family: 'Quicksand', sans-serif !important;
            font-weight: 400 !important;
            font-size: 16px !important;
            line-height: 24px !important;
            letter-spacing: 0px !important;
        }

        /* product.unit_price */
        .card-body span.text-decoration-line-through {
            font-family: 'Quicksand', sans-serif !important;
            font-weight: 400 !important;
            font-size: 16px !important;
            line-height: 20px !important;
            letter-spacing: 0px !important;
            text-decoration: line-through !important;
        }

       
        /* Main container for the pagination block */
        .pagination {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 33.8px 0 0 0;
            gap: 16px;
            width: 100%;
            height: 113px;
            border-top: 1.818px solid #D1D5DC;
            border-radius: 10px;
            box-sizing: border-box;
        }

        /* Row that holds the buttons */
        .pagination-row {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            height: 43.62px;
            width: 100%;
            gap: 0.5rem;
        }

        /* Base class for all buttons (arrows and numbers) */
        .page-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            font-family: 'Quicksand', sans-serif;
            box-sizing: border-box;
        }

        /* Style for the Previous/Next arrow buttons */
        .page-btn--arrow {
            width: 51.62px;
            height: 35.62px;
            border: 1.818px solid #D1D5DC;
            background: #FFFFFF;
        }

        /* Style for the number buttons */
        .page-btn--number {
            width: 44.5px;
            height: 43.62px;
            border: 1.818px solid #D1D5DC;
            font-size: 16px;
            font-weight: 400;
            line-height: 24px;
            color: #101828;
        }

        /* Modifier for the ACTIVE number button */
        .page-btn--number.active {
            width: 41.55px;
            background: #0B33EF;
            border-color: #0B33EF;
            color: #FFFFFF;
        }

        /* Modifier for DISABLED buttons */
        .page-btn.disabled {
            pointer-events: none;
        }

        /* Make the disabled arrow's icon gray */
        .page-btn.disabled .arrow-icon {
            stroke: #99A1AF;
        }

        body {
            font-family: 'Quicksand', sans-serif;
        }

        /* --- OFFCANVAS LAYOUT & RESPONSIVENESS --- */
        .custom-offcanvas {
            width: 433px !important;
            border: none;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        @media (max-width: 576px) {
            .custom-offcanvas {
                width: 100% !important;
            }
        }

        .offcanvas-body {
            padding: 0 !important;
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
            background-color: #fff;
            overflow: hidden;
        }

        #filterForm {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
        }

        /* 1. Fixed Header */
        .filter-header {
            height: 62px;
            background-color: #0B33EF;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            color: #FFFFFF;
            flex-shrink: 0;
        }

        .filter-header h2 {
            font-family: 'Quicksand';
            font-weight: 500;
            font-size: 20px;
            margin: 0;
        }

        .close-btn {
            background: transparent;
            border: none;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
        }

        /* 2. Scrollable Middle Section (SCROLLBAR HIDDEN) */
        .accordion-scroll-area {
            flex-grow: 1;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 24px 16px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            background: #FFFFFF;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .accordion-scroll-area::-webkit-scrollbar {
            display: none;
        }

        /* Accordion Item Styles */
        .custom-accordion-item {
            background: #FFFFFF;
            border: 2px solid #D1D5DC;
            border-radius: 0px;
            width: 100%;
        }

        .custom-accordion-btn {
            width: 100%;
            height: 56px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            background: #fff;
            border: none;
            border-radius: 0px;
            font-family: 'Quicksand';
            font-weight: 400;
            font-size: 16px;
            color: #101828;
            text-transform: uppercase;
            cursor: pointer;
        }

        .custom-accordion-btn:focus {
            outline: none;
        }

        .custom-accordion-btn .bi-chevron-down {
            transition: transform 0.2s ease;
            color: #0A0A0A;
        }

        .custom-accordion-btn[aria-expanded="true"] .bi-chevron-down {
            transform: rotate(180deg);
        }

        .custom-accordion-collapse {
            border-top: 2px solid #D1D5DC;
        }

        .custom-accordion-body {
            padding: 16px;
        }

        /* 3. Fixed Footer */
        .filter-footer {
            background: #FFFFFF;
            border-top: 2px solid #D1D5DC;
            padding: 18px 16px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn-clear {
            min-width: 88px;
            height: 52px;
            padding: 0 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #D1D5DC;
            background: #FFFFFF;
            border-radius: 0px;
            color: #101828;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-clear:hover {
            border-color: #0B33EF;
            color: #0B33EF;
        }

        .btn-apply {
            width: 100%;
            flex: 1;
            height: 52px;
            background-color: #0B33EF;
            border: 2px solid #0B33EF;
            border-radius: 0px;
            color: #FFFFFF;
            font-size: 16px;
            text-transform: uppercase;
            cursor: pointer;
        }

        .btn-apply:hover {
            background-color: #0928c0;
        }

        /* --- SLIDER CSS --- */
        .price-labels {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: #4A5565;
            margin-bottom: 12px;
        }

        .range-slider {
            position: relative;
            height: 14px;
        }

        .range-slider input[type="range"]::-webkit-slider-thumb {
            height: 22.35px;
            width: 22.35px;
            border-radius: 50%;
            background: #FFFFFF;
            border: 1.5px solid #0B33EF;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
            cursor: pointer;
            pointer-events: all;
            -webkit-appearance: none;
            margin-top: -4.16px;
        }

        .range-slider input[type="range"]::-moz-range-thumb {
            height: 22.35px;
            width: 22.35px;
            border-radius: 50%;
            background: #FFFFFF;
            border: 1.5px solid #0B33EF;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
            cursor: pointer;
            pointer-events: all;
            border: none;
        }

        .slider-track {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 14.02px;
            background: #606060;
            border-radius: 10px;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .slider-fill {
            position: absolute;
            top: 50%;
            left: 10%;
            right: 25%;
            height: 14.02px;
            background: #0B33EF;
            border-radius: 10px;
            transform: translateY(-50%);
            pointer-events: none;
            transition: all 0.2s ease;
            z-index: 50;
        }

        .thumb {
            position: absolute;
            top: 50%;
            width: 22.35px;
            height: 22.35px;
            background: #FFFFFF;
            border: 1.5px solid #0B33EF;
            border-radius: 50%;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
            transform: translate(-50%, -50%);
            pointer-events: auto !important;
            cursor: pointer;
            z-index: 100;
            transition: left 0.1s ease;
        }

        .thumb-left {
            left: 10%;
        }

        .thumb-right {
            left: 75%;
        }

        /* Remove default Firefox focus outline */
        .form-range:focus::-moz-range-thumb {
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        }

        .form-range:focus {
            outline: none;
        }

        /* Filter Items */
        .price-buttons-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .price-tag-btn {
            height: 32px;
            background: white;
            border: 2px solid #D1D5DC;
            font-size: 12px;
            color: #0A0A0A;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .price-tag-btn:hover {
            border-color: #0B33EF;
            color: #0B33EF;
        }

        .filter-option-row {
            display: flex;
            align-items: center;
            height: 36px;
        }

        .filter-check-input {
            appearance: none;
            width: 16px;
            height: 16px;
            background: #5A5A5A;
            border-radius: 3px;
            cursor: pointer;
            margin-right: 8px;
            position: relative;
        }

        .filter-check-input:checked {
            background: #0B33EF;
        }

        .filter-check-input:checked::after {
            content: '✓';
            color: white;
            font-size: 12px;
            position: absolute;
            top: -2px;
            left: 3px;
        }

        .filter-check-label {
            font-size: 14px;
            color: #364153;
            cursor: pointer;
        }

        /* Position the invisible inputs over the custom slider */
        .range-slider input[type="range"].range-input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            -webkit-appearance: none;
            appearance: none;
            z-index: 20;
            background: none;
            margin: 0;
        }

        /* Enable pointer events specifically for the thumb of the input */
        .range-slider input[type="range"].range-input::-webkit-slider-thumb {
            pointer-events: auto;
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: transparent;
            cursor: pointer;
        }

        /* Firefox support */
        .range-slider input[type="range"].range-input::-moz-range-thumb {
            pointer-events: auto;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 50%;
            background: transparent;
            cursor: pointer;
        }

        /* =========================================
        MOBILE VIEW MARGIN CONTROLS
        ========================================= */

        /* 1. Very Tiny Phones (≤ 320px) */
        @media (max-width: 320.98px) {
            .mobile_view {
                margin-top: 117px !important;
            }
        }

        /* 2. All Phones (321px — 575px) */
        @media (min-width: 321px) and (max-width: 575.98px) {
            .mobile_view {
                margin-top: 115px !important;
            }
        }

        /* 3. Small Tablets / Landscape Phones (576px — 749px) */
        @media (min-width: 576px) and (max-width: 749.98px) {
            .mobile_view {
                margin-top: 115px !important;
            }
        }

        /* 4. The "Problem Range" Fix (750px — 900px) */
        @media (min-width: 750px) and (max-width: 900.98px) {
            .mobile_view {
                margin-top: 110px !important;
            }
        }

        /* 5. Medium Devices / Portrait Tablets (901px — 991px) */
        @media (min-width: 901px) and (max-width: 991.98px) {
            .mobile_view {
                margin-top: 105px !important;
            }
        }

        /* 6. Desktops & Laptops (992px — 1399px) */
        @media (min-width: 992px) and (max-width: 1399.98px) {
            .mobile_view {
                margin-top: 66px !important;
            }
        }

        /* 7. Large Screens (1400px — 1919px) */
        @media (min-width: 1400px) and (max-width: 1919.98px) {
            .mobile_view {
                margin-top: 60px !important;
            }
        }

        /* 8. 2K / 4K Screens (≥ 1920px) */
        @media (min-width: 1920px) {
            .mobile_view {
                margin-top: 50px !important;
            }
        }
