.category-product-list > .thumb-wrapper {
    width: calc(33% - 0.8rem) !important;
    margin-bottom: 1.5rem;
}

.category-product-list-item {
    width: calc(33% - 0.8rem);
}

@media screen and (max-width: 1320px) {
    .category-product-list > .thumb-wrapper {
        width: calc(33% - 0.9rem) !important;
        margin-bottom: 1.5rem;
    }

    .category-product-list-item {
        width: calc(33% - 0.9rem);
    }
}

@media screen and (max-width: 1150px) {
    .category-product-list > .thumb-wrapper {
        width: calc(50% - 0.9rem) !important;
        margin-bottom: 1.5rem;
    }

    .category-product-list-item {
        width: calc(50% - 0.9rem);
    }
}

@media screen and (max-width: 1024px) {
    .category-product-list {
        gap: 1rem !important;
    }

    .modal-overlay-categories, .modal-overlay-filter {
        display: none;
        position: fixed; /* Modal needs to be fixed position */
        top: 0;
        left: 0;
        width: 100vw;    /* Full width */
        height: 100vh;   /* Full height */
        background: rgba(0,0,0,0.5); /* Semi-transparent background */
        z-index: 1000;  /* High z-index to overlay on top of other elements on the page */
    }

    #pintaajaxfilter {
        opacity: 1 !important;
    }

    #pintaajaxfilter_form, .category-list {
        margin-top: unset !important;
        position: absolute;
        top: 0;
        left: 0;
        /* Minus (-) half the width and height to center */
        /* Specify a width and a height */
        width: 100vw;
        height: 100vh;
        background: white; /* Change the background color as needed */
        overflow: auto;
    }

    .category-filter-title-cross {
        display: block !important;
    }

    #column-left {
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        display: block !important;
    }

    .category-sub-chips-container {
        display: none !important;
    }

    .category-mobile-buttons {
        margin-bottom: 1rem;
        display: flex !important;
        gap: 1rem;
    }

    .category-product-list > .thumb-wrapper {
        width: calc(33.3% - 1rem) !important;
        margin-bottom: 1.5rem;
    }

    .category-product-list-item {
        width: calc(33.3% - 1rem);
    }
}

@media screen and (max-width: 850px) {
    .category-product-list > .thumb-wrapper {
        width: calc(50% - 0.9rem) !important;
        margin-bottom: 1.5rem;
    }

    .category-product-list-item {
        width: calc(50% - 0.9rem);
    }
}

@media screen and (max-width: 700px) {
    .category-product-list > .thumb-wrapper {
        width: calc(50% - 0.25rem) !important;
        margin-bottom: 0;
    }

    .category-mobile-buttons {
        margin-bottom: 0.5rem !important;
    }

    .category-product-list-item {
        width: calc(50% - 0.25rem);
    }

    .category-header-container {
        flex-direction: column !important;
    }

    .category-header-right {
        justify-content: space-between !important;
        margin-bottom: 1.5rem !important;
    }

    .category-product-total {
        font-size: 0.875rem;
        font-weight: 700;
    }

    #input-limit {
        display: none !important;
    }

    .category-product-list {
        gap: 0.5rem !important;
    }
}

.category-header-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.category-header-left {
    display: flex;
    flex-direction: column;
}

.category-header-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.category-product-total {
    font-weight: 700;
}

.category-select {
    color: var(--primary-black);
    font-size: 0.875rem;
    border: none;
    background: var(--w);
    padding: 1rem 0.75rem;
    border-radius: 0.25rem;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.category-select:focus {
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.category-price-field {
    background: var(--g-5);
    border-radius: 0.25rem;
    padding: 0.625rem 0.5rem 0.625rem 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 3rem;
    position: relative;
}

.category-price-field-min-label {
    margin-bottom: unset !important;
    color: var(--g-1);
    text-align: left;
    font-size: var(--h5-14-font-size);
    font-weight: var(--h5-14-font-weight);
    position: relative;
}

.category-price-field-value {
    color: var(--primary-black);
    background: var(--g-5);
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
}

.category-price-field-value:focus-visible {
    box-shadow: none !important;
}

.category-price-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem !important;
}

.category-price-title {
    color: var(--primary-black);
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    margin-bottom: 1rem !important;
}

.title h4 {
    margin: 0 0 2rem !important;
    color: var(--primary-black);
    text-align: left;
    font-size: 1rem !important;
    font-weight: 400 !important;
    position: relative;
}

.title h3 {
    color: var(--primary-black);
    text-align: left;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    position: relative;
    margin: 1rem 0;
}

.category-attr-title h5 {
    color: var(--primary-black) !important;
    text-align: left;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    position: relative;
}

.category-attr-title {
    margin: 1rem 0 !important;
}

#category-filter-search-title {
    color: var(--primary-black) !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
}

.category-hr {
    background: var(--g-5);
    align-self: stretch;
    flex-shrink: 0;
    height: 0.0625rem;
    position: relative;
}

.category-filter-title {
    color: var(--primary-black);
    text-align: left;
    font-size: 1.125rem;
    font-weight: 400;
    position: relative;
}

.ajax-filter div.multi-range input[type="range"]::-moz-range-thumb {
    background-color: var(--w) !important;
    box-shadow: var(--card-elevation-box-shadow) !important;
}

.ajax-filter div.multi-range hr {
    background-color: var(--accent-blue);
    height: 0.25rem;
    margin: unset !important;
}

.category-filter-chip-container {

}

.category-filter-chip {
    position: relative !important;
    height: unset !important;
    width: unset !important;
    display: flex !important;
    padding: 0.5rem !important;
}

.category-filter-chip-container input {
    width: 100% !important;
    height: 100% !important;
}

.category-filter-chip-container .category-filter-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
}

.ajax-filter--blue .list-group-item input[type="checkbox"]:checked + span {
    color: var(--w);
}

.ajax-filter--blue .list-group-item input[type="checkbox"]:checked + span > .category-filter-chip-cross {
    display: block !important;
    width: 1rem;
    height: 1rem;
    margin: 0 !important;
}

.category-filter-chip-cross {
    display: none;
    background: url("/extension/pintaajaxfilter/catalog/view/image/cross.svg") center;
}

.category-filter-chip-text {
    margin: unset !important;
}

.ajax-filter .list-group-item label {
    padding: 0;
}

.ajax-filter .list-group-item div {
    margin: 0;
}

.category-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-sub-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-sub-chip {
    max-width: calc(20% - 0.5rem);
    background: var(--w);
    min-width: 170px;
}

.category-sub-chip:hover {
    box-shadow: var(--card-elevation-box-shadow);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.category-sub-chip:hover > a {
    color: var(--accent-blue);
}

.category-sub-chip > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: var(--primary-black);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem;
}

.category-filter-title-container {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.category-list-title {
    color: var(--primary-black);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.category-filter-title-cross {
    cursor: pointer;
    display: none;
}

.category-list {
    margin-top: 1.5rem;
    background: var(--w);
    border-radius: 0.25rem;
    padding: 1.5rem;
    gap: 0.5rem;
}

.category-list-item {

}

.category-list-item-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--g-6);
}

.category-list-item-header:hover > .category-list-item-name {
    color: var(--accent-blue);
}

.category-list-item-name {
    color: var(--primary-black);
    font-size: 0.875rem;
    font-weight: 400;
}

.category-list-item-arrow {
    color: var(--primary-black);
}

.category-list-item-children-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding-left: 1rem;
}

.category-list-item-children-container > a {
    color: var(--primary-black);
    font-size: 0.875rem;
    font-weight: 400;
}

.category-list-item-children-container > a:hover {
    color: var(--accent-blue);
}


.category-product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.category-mobile-buttons {
    display: none;
}

.category-mobile-button {
    cursor: pointer;
    background: var(--w);
    border-radius: 0.25rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
}

.category-mobile-filter-icon {
    color: var(--primary-black);
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    overflow: hidden;
}

.category-mobile-filter-text {
    color: var(--primary-black);
    text-align: left;
    font-size: var(--h5-14-font-size);
    font-weight: var(--h5-14-font-weight);
    position: relative;
}

.category-mobile-filter-badge {
    display: none;
    color: var(--g-1);
    text-align: left;
    font-size: var(--h5-14-font-size, 0.875rem);
    font-weight: var(--h5-14-font-weight, 400);
    position: relative;
}

.category-mobile-category-button-text {
    color: var(--primary-black);
    text-align: left;
    font-size: var(--h5-14-font-size, 0.875rem);
    font-weight: var(--h5-14-font-weight, 400);
    position: relative;
}

.page-item {
    color: var(--primary-black);
}

.category-pagination-item-active > span {
    background: var(--accent-blue) !important;
    border: 2px solid var(--accent-blue) !important;
    color: var(--w) !important;
}

.category-pagination-item:hover > a {
    color: var(--accent-blue) !important;
    border: 2px solid var(--accent-blue) !important;
    background: var(--w) !important;
}

.category-pagination-item > a {
    border: 2px solid var(--w) !important;
    color: var(--primary-black) !important;
}

.category-pagination-container ul {
    margin-bottom: 2rem;
}
