.categoryProductsCustomStyle {
    display: flex;
    justify-content: center;
    padding: var(--spacing-md) 0;
}
.filter-container {
    background-color: white;
    border-radius: 1rem;
    border: 1px solid #e0e0e0;
    padding: 1.25rem;
    width: 100%;
    height: fit-content;
    position: sticky;
    top: 1.25rem;
}
.products-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.25rem;
}
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #e9ecef;
}
.filter-title {
    font-weight: bold;
    font-size: 1.125rem;
    color: #343a40;
}
.clear-filters {
    color: #dc3545 !important;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}
.clear-filters-overlay {
    color: #dc3545 !important;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}
.filter-section {
    margin-bottom: 1.5625rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.9375rem;
}
.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.9375rem;
}
.filter-section-title {
    font-weight: bold;
    color: #495057;
    margin: 0;
    font-size: 1rem;
    padding: 0;
}
.section-content {
    display: none;
}
.section-content.active {
    display: block;
}
.brand-search {
    position: relative;
    margin-bottom: 0.9375rem;
}
.brand-search input {
    padding-left: 2.5rem;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
.brand-list {
    max-height: 12.5rem;
    overflow-y: auto;
    margin-bottom: 0.9375rem;
}
.brand-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.625rem;
    padding: 0.5rem 0;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.brand-item:hover {
    background-color: #f8f9fa;
}
.brand-checkbox {
    margin-left: 0.625rem;
    display: none;
}
.brand-checkbox:checked + .custom-checkbox {
    background-color: #43A048;
    border-color: #43A048;
}
.brand-checkbox:checked + .custom-checkbox::after {
    content: "✓";
    color: white;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
}
.custom-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ced4da;
    border-radius: 0.25rem;
    margin-left: 0.625rem;
    position: relative;
    flex-shrink: 0;
}
.form-check-label {
    cursor: pointer;
    user-select: none;
}
.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}
.price-input {
    position: relative;
    width: 100%;
}
.price-input input {
    padding-right: 3.5rem;
    padding-left: 3.5rem;
    text-align: center;
    direction: rtl;
}
.price-prefix {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.875rem;
}
.price-suffix {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.875rem;
}
.slider-container {
    margin: 1.25rem 0;
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    padding: 1px 0;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    margin: 0;
    z-index: 3;
    top: 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #43A048;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 4;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

.range-slider:hover::-webkit-slider-thumb {
    transform: scale(1.15);
    background: #388E3C;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--base-color);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 4;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-track {
    position: absolute;
    height: 100%;
    background: var(--base-color);
    border-radius: 3px;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    right: auto;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9375rem;
}
.toggle-label {
    font-weight: 500;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 3.125rem;
    height: 1.5rem;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E8E8E8;
    transition: .4s;
    border-radius: 1.5rem;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.125rem;
    width: 1.125rem;
    right: 0.1875rem;
    bottom: 0.1875rem;
    background-color: #999999;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #E8E8E8;
}
input:checked + .toggle-slider:before {
    background-color: #43A048;
    transform: translateX(-1.625rem);
}
.collapse-icon {
    transition: transform 0.3s;
}
.collapsed .collapse-icon {
    transform: rotate(180deg);
}
.loading {
    opacity: 0.6;
    pointer-events: none;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.categoryProductsTitleContent {
    background-color: #3A3A3A14;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    height: 6.25rem;
    align-items: center;
}
.categoryProductsTitle {
    max-width: 82.063rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
}
.categoryFilterGroup {
    display: flex;
    justify-content: start;
    gap: 1rem;
    margin: 1rem 0;
}
.filterTitle {
    font-weight: var(--font-weight-normal);
    font-size: 1.125rem;
    line-height: 32px;
    text-align: right;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sortButtons {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.sortButtons a{
    font-weight: var(--font-weight-normal);
    font-size: 0.875rem;
    line-height: 1.625rem;
    text-align: right;
    text-decoration: none;
    color: #999999;
}
.sortButtons a.active{
    color: var(--base-color);
}
.categoryFiltersBtnForMobile {
    display: flex;
    justify-content: start;
    gap: 1rem;
    margin: 1rem 0 !important;
    padding: 0 var(--spacing-md);
}
.categoryFilterGroupBtnForMobile {
    height: 2.5rem;
    opacity: 1;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
    background: white;
    border: 0.0625rem solid #E8E8E8;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    line-height: 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.categoryFilterGroupBtnForMobile img {
    display: block;
}

.categoryFilterGroupBtnForMobile:hover {
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.2);
}

.categoryFilterGroupOverlayForMobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0.1rem);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categoryFilterGroupContainerForMobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: fit-content;
    background: white;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    box-shadow: 0 -0.3125rem 1.5625rem rgba(0, 0, 0, 0.2);
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    padding: 2.25rem;
}

.categoryFilterGroupHeaderForMobile {
    height: 2rem;
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    display: flex;
    justify-content: space-between;
    text-align: center;
    opacity: 1;
    align-items: center;
}

.categoryFilterGroupContentForMobile {
    padding: 1.25rem 0;
}

.categoryFilterGroupCloseForMobile {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-800);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categoryFilterGroupCloseForMobile:hover {
    background: rgba(255, 255, 255, 0.5);
}

.categoryFilterGroupOverlayForMobile.active {
    display: block;
    opacity: 1;
}

.categoryFilterGroupContainerForMobile.active {
    transform: translateY(0);
}
.categoryProductsCustomStyleMobile {
    max-width: 82.063rem;
}
.noProductCountOnCategoryPage {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 1.5rem;
    color: var(--danger-color);
    align-items: center;
    padding: 4rem 0 3rem 0;
}
/* =================================================================
   1. PAGINATE
   ================================================================= */


.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.pagination-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background-color: white;
    border: 0.0625rem solid #DFDFE2;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.pagination-circle:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

.pagination-circle.active {
    border-color: var(--base-color);
    border-width: 0.125rem;
    color: var(--base-color);
    transform: scale(1.1);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background-color: white;
    border: 0.0625rem solid #DFDFE2;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.pagination-btn.active {
    border-color: var(--base-color);
    color: var(--base-color);
}

.pagination-btn:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.pagination-extreme {
    font-weight: bold;
}

.page-indicator {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

#pages-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

@media (max-width: 62rem) {
    .categoryFilterGroup , .filter-container , .products{
        display: none;
    }
    .categoryFilterGroupBtnForMobile {
        display: flex !important;
    }
    .categoryProductsCustomStyle {
        padding: 2rem 0 !important;
        margin: 0 !important;
    }

    .sortButtons {
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
        align-items: start;
        padding: 0;
    }
    .sortButtons a{
        width: 100%;
        color: #999999;
    }
    .sortButtons .sort-btn {
        padding-bottom: 1rem;
        text-decoration: none;
    }

    .sortButtons .sort-btn:not(:last-child) {
        border-bottom: 1px solid #E8E8E8;
    }
    .categoryProductsCustomStyleMobile {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .productsMobileMode a {
        margin: 0 !important;
        padding: 0 !important;
    }
}
@media (max-width: 82.063rem) {
    .categoryProductsTitleContent, .categoryProductsCustomStyle, .categoryProductsCustomStyleMobile {
        padding: var(--spacing-md);
    }
}
@media (max-width: 48rem) {
    .noProductCountOnCategoryPage {
        padding: 1.5rem 0 0.5rem 0;
    }
    .categoryProductsTitleContent {
        height: 4.25rem;
    }
}

