.pagination-area .page-link,
.pagination-area .page-item:first-child .page-link,
.pagination-area .page-item:last-child .page-link {
  border-radius: 6px !important;
}

#loading i {
  display: inline-block;   /* important */
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
[data-catalogue-filters] #mobile-filter-form {
    display: flex;
    gap: 10px;
}
[data-catalogue-filters] #mobile-filter-form .form-col {
    flex: 1;
    min-width: 0;
}
[data-catalogue-filters] #mobile-filter-form select,
[data-catalogue-filters] #mobile-filter-form .choices__inner {
    height: 42px !important;
    /* width: 100%; */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
}
[data-catalogue-filters] .multiselect-options input{
    width:unset !important;
    height:unset !important;
}
[data-catalogue-filters] .multiselect-options {
    overflow: auto;
    min-height: 42px;
    padding: 4px 8px;
}
[data-catalogue-filters] .choices__input{
    background-color: transparent !important;
    width: 100% !important;
}
[data-catalogue-filters] .choices__input:focus{
    border:none
}

/* Custom Multi-select Styles */
[data-catalogue-filters] .custom-multiselect {
    position: relative;
    width: 100%;
}

[data-catalogue-filters] .multiselect-selected {
    /* height: 42px; */
    background-color: #fff;
    /* border: 1px solid #ccc; */
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.2;
}

[data-catalogue-filters] .multiselect-selected .selected-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

[data-catalogue-filters] .multiselect-arrow {
    margin-left: 8px;
    font-size: 12px;
    color: #666;
}

[data-catalogue-filters] .multiselect-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-catalogue-filters] .multiselect-options.show {
    display: block !important;
}

[data-catalogue-filters] .multiselect-options dd{
    display: flex;
    align-items: center;
    padding: 8px 0px;
    cursor: pointer;
    font-size: 14px;
    gap: 4px;
}
[data-catalogue-filters] .multiselect-options dt{
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

[data-catalogue-filters] .multiselect-option:last-child {
    border-bottom: none;
}

[data-catalogue-filters] .multiselect-option:hover {
    background-color: #f8f9fa;
}

[data-catalogue-filters] .multiselect-options input[type="checkbox"] {
    margin-right: 2px;
    width: 16px !important;
    height: 16px !important;
}

[data-catalogue-filters] .multiselect-option span {
    flex: 1;
}

/* Hide on desktop */
@media (min-width: 1200px) {
    [data-catalogue-filters] .custom-multiselect {
        display: none;
    }
}
 @media (max-width: 1199px) {
        [data-catalogue-filters] .toggle-arrow-main {
            transition: transform 0.3s ease;
        }
        [data-catalogue-filters] .mobile-category-tree.active .toggle-arrow-main {
            transform: rotate(180deg);
        }
        [data-catalogue-filters] .category-tree-content {
            margin-top: 10px;
        }
        [data-catalogue-filters] .mobile-category-tree {
            background: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }
        [data-catalogue-filters] .mobile-category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        [data-catalogue-filters] .mobile-category-list li {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        [data-catalogue-filters] .mobile-category-list li:last-child {
            border-bottom: none;
        }
        [data-catalogue-filters] .mobile-category-list .category-link {
            color: #333;
            text-decoration: none;
            /* flex-grow: 1; */
            padding: 6px 0;
            display: block;
        }
        [data-catalogue-filters] .mobile-category-list .toggle-arrow {
            cursor: pointer;
            font-size: 14px;
            transition: transform 0.3s ease;
            padding: 6px;
            flex-grow: 1;
            display: flex;
            justify-content: flex-end;
        }
        [data-catalogue-filters] .mobile-category-list .menu-item-has-children.active > .toggle-arrow {
            transform: rotate(180deg);
        }
        [data-catalogue-filters] .mobile-category-list .dropdown,
        [data-catalogue-filters] .mobile-category-list .submenu {
            display: none;
            margin-top: 5px;
            padding-left: 20px;
            list-style: none;
        }
        [data-catalogue-filters] .mobile-category-list .menu-item-has-children.active > .dropdown,
        [data-catalogue-filters] .mobile-category-list .dropdown .menu-item-has-children.active > .submenu {
            display: block;
        }
        [data-catalogue-filters] .multiselect-options {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ccc;
            border-radius: 4px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 1050 !important;
            margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none !important; /* Default hidden */
        }
        [data-catalogue-filters] .multiselect-options.show {
            display: block !important;
            width:93vw !important;
        }
        /* Price Range Dropdown */
        [data-catalogue-filters] .custom-multiselect .multiselect-options {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ccc;
            border-radius: 4px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 1050 !important;
            margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none !important;
        }
        [data-catalogue-filters] .custom-multiselect .multiselect-options.show {
            display: block !important;
        }
        /* Categories Dropdown */
        [data-catalogue-filters] #categories-popup {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: white;
            border: 1px solid #ccc;
            border-radius: 4px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1050 !important;
            margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none !important;
        }
        [data-catalogue-filters] #categories-popup.show {
            display: block !important;
        }
        [data-catalogue-filters] .category_filter, [data-catalogue-filters] .price_filter {
            border: 1px solid #ececec;
            box-shadow: 2px 2px 15px rgba(0,0,0,0.05);
            border-radius: 6px;
            background: #fff;
        }
        /* Price Range Dropdown */
        [data-catalogue-filters] #multiselect-options {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100% !important;
            background: white;
            border: 1px solid #ccc;
            border-radius: 6px;
            max-height: 280px;
            overflow-y: auto;
            z-index: 1050 !important;
            margin-top: 4px;
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
            display: none !important;
        }
        [data-catalogue-filters] #multiselect-options.show {
            display: block !important;
        }
        /* Categories Popup */
        [data-catalogue-filters] #categories-popup {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: white;
            border: 1px solid #ccc;
            border-radius: 6px;
            max-height: 320px;
            overflow-y: auto;
            z-index: 1050 !important;
            margin-top: 4px;
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
            display: none !important;
        }
        [data-catalogue-filters] #categories-popup.show {
            display: block !important;
        }
        /* Inner toggles */
        [data-catalogue-filters] .mobile-category-list .toggle-arrow {
            cursor: pointer;
            font-size: 14px;
            transition: transform 0.3s ease;
            flex-grow: 1;
            display: flex;
            justify-content: flex-end;
        }
        [data-catalogue-filters] .mobile-category-list .menu-item-has-children.active > .toggle-arrow {
            transform: rotate(180deg);
        }
        [data-catalogue-filters] .mobile-category-list .dropdown,
        [data-catalogue-filters] .mobile-category-list .submenu {
            display: none;
            padding-left: 20px;
            list-style: none;
            margin: 5px 0;
        }
        [data-catalogue-filters] .mobile-category-list .menu-item-has-children.active > .dropdown,
        [data-catalogue-filters] .mobile-category-list .dropdown .menu-item-has-children.active > .submenu {
            display: block !important;
        }
    }

[data-catalogue-filters] .multiselect-selected,
[data-catalogue-filters] .toggle-arrow {
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

[data-catalogue-filters] :is(button, a, input):focus-visible {
    outline: 3px solid #f5c542;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px rgba(16, 137, 16, 0.25);
}

[data-catalogue-filters] .mobile-category-list .menu-item-has-children.active > .d-flex > .toggle-arrow {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    [data-catalogue-filters] .category_filter,
    [data-catalogue-filters] .price_filter {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    [data-catalogue-filters] .multiselect-selected {
        min-height: 36px;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        color: #111827;
        font-size: 14px;
        font-weight: 500;
    }

    [data-catalogue-filters] .multiselect-arrow {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
        margin-left: 8px;
        color: #64748b;
        font-size: 0;
        position: relative;
    }

    [data-catalogue-filters] .multiselect-arrow::before,
    [data-catalogue-filters] #categories-popup .toggle-arrow::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
    }

    [data-catalogue-filters] #categories-popup {
        left: 0;
        width: calc(200% + 0.25rem) !important;
        max-width: calc(100vw - 24px);
        max-height: 320px;
        padding: 22px 24px 0;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
        overflow-y: auto;
        overflow-x: hidden;
    }

    [data-catalogue-filters] #categories-popup #mobile-category-list-root,
    [data-catalogue-filters] #categories-popup .mobile-category-list {
        margin: 0;
        padding: 0 !important;
        list-style: none;
    }

    [data-catalogue-filters] #categories-popup .mobile-category-list li {
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
        background: transparent;
    }

    [data-catalogue-filters] #categories-popup .mobile-category-list .d-flex {
        min-height: 52px;
        align-items: center !important;
        gap: 12px;
    }

    [data-catalogue-filters] #categories-popup .mobile-category-list .dropdown,
    [data-catalogue-filters] #categories-popup .mobile-category-list .submenu {
        margin: 0 !important;
        padding-left: 44px !important;
        list-style: none;
    }

    [data-catalogue-filters] #categories-popup .mobile-category-list > li > .d-flex,
    [data-catalogue-filters] #categories-popup .mobile-category-list .dropdown > li > .d-flex,
    [data-catalogue-filters] #categories-popup .mobile-category-list .submenu > li > .d-flex {
        border-bottom: 1px solid #e5e7eb;
    }

    [data-catalogue-filters] #categories-popup .mobile-category-list .category-link {
        min-width: 0;
        flex: 1;
        padding: 0;
        color: #111827;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.35;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    [data-catalogue-filters] #categories-popup .mobile-category-list .category-link strong {
        font-weight: 700;
    }

    [data-catalogue-filters] #categories-popup .toggle-arrow {
        width: 24px !important;
        height: 24px;
        flex: 0 0 24px;
        margin-left: auto !important;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111827;
        font-size: 0;
        line-height: 1;
        background: transparent;
        border: 0;
        transform: none !important;
    }

    [data-catalogue-filters] #multiselect-options dd {
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    [data-catalogue-filters] #multiselect-options dd label {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
