.product_image {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.content_wrapper {
    padding: 1rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category_small_name {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-5);
}

.products_wrapper {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.category_name {
    font-family: font-reg, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-color-2);
}

.sorting_btn {
    background-color: unset;
    border: none;
    cursor: pointer;
}

.sorting_params {
    display: flex;
    gap: 1rem;
}

.product {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 1rem;
    max-height: 18.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgb(223, 223, 225);
    transition: box-shadow .2s ease-in-out, border-bottom .2s ease-in-out;
}

.product:hover {
    z-index: 1;
    box-shadow: rgba(30, 31, 33, 0.12) 0 5px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.product_image_container {
    width: 100%;
    padding: 0 2rem;
}

.product_text_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.products_container {
    display: flex;
}

.products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.product_price_and_buy_button {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
}

.product_title {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: fill .2s, color .2s;
}

.product_description_unit {
    font-size: 16px;
    color: var(--text-6);
    font-weight: 400;
}

.product_price {
    font-size: 28px;
    font-family: font-reg, sans-serif;
    font-weight: 600;
    color: var(--text-4);
}

.product_buy_btn {
    border: none;
    background-color: var(--text-primary);
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    padding: 0.5rem 0;
    width: 100%;
    border-radius: 8px;
    max-width: 250px;
    cursor: pointer;
}

.filters_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 331px;
    min-width: 15rem;
    background-color: #f4f4f4;
    padding: 2rem 2rem;
}

.filters_title {
    font-family: 'citilink-reg', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 0.5rem;
}

.filter_header {font-family: 'citilink-reg', sans-serif;font-weight: 500;font-size: 16px;line-height: 16px;}

.price_inputs {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.price_input {
    border-radius: 4px;
    width: 100%;
    padding: 0.3rem 0.5rem;
    border: none;
}

.price_input:focus-visible {
    outline: none;
}

.price_input_container {
    width: 100%;
}

.price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main_checkbox_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main_checkboxes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gray_text {
    color: var(--text-5);
}

.font-thin {
    font-weight: 500;
    font-family: font, sans-serif;
}

.products_inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.show_more_params,
.show_less_params  {
    border: none;
    background-color: unset;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.3rem;
    transition: fill .2s, color .2s;
}

.pagination_next_wrapper {
    display: flex;
    align-items: center;
}

.pagination_next_img_wrapper {
    padding-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination_next_img {
    object-fit: cover;
    width: 1rem;
    height: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: fit-content;
}

.pagination_pages_wrapper {
    display: flex;
    gap: 0.75rem;
}

.pagination_pages {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    transition: background-color .1s ease-in-out, color .1s ease-in-out;
}

.sort_wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pagination_selected {
    background-color: rgb(245, 245, 246);
}

.pagination_pages:hover {
    background-color: rgb(255 238 224);
    color: rgb(254, 114, 0);
}

.pagination_pred_wrapper {
    display: flex;
    align-items: center;
}

.pagination_nav {
    display: flex;
    padding: 0.3rem 0.75rem;
    background-color: transparent;
    transition: background-color .1s ease-in-out, color .1s ease-in-out, fill .1s ease-in-out;
    border-radius: 25px;
}

.pagination_nav:hover {
    background-color: rgb(255 238 224);
    color: rgb(254, 114, 0);
    fill: rgb(254, 114, 0);
}

.pagination_prev_img_wrapper {
    padding-bottom: 3px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pagination_pred_wrapper svg {
    object-fit: cover;
    width: 1rem;
    height: 1rem;
    transform: scaleX(-1);
}

@media screen and (min-width: 1200px) {
    .product {
        height: 20rem;
    }
}

.active {
    font-family: font-reg, sans-serif;
    font-weight: 600;
}

.product_description {
    overflow: hidden;
    position: relative;
}

.product_description_after::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px; /* Высота области размытия */
    background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
    );
    pointer-events: none; /* Чтобы клики проходили сквозь этот элемент */
}

.params_buttons_container {
    margin-top: 0.5rem;
    /* Фиксирует кнопки внизу */
    align-self: flex-end;
    width: 100%;
    text-align: left;
}

.black_hover {
    color: var(--text-5);
    font-weight: 400;
    transition: color .2s ease-in-out;
}

.black_hover:hover {
    color: var(--text-primary);
    transition: color .2s ease-in-out;
}

.square_checkbox {
    cursor: pointer;
    appearance: none;
    position: relative;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 1.5px solid rgb(205 205 205);
    border-radius: 3px;
}

.checkboxes_container {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.square_checkbox::after {
    content: "\2714";
    position: absolute;
    top: -2px;
    left: 1px;
    width: 0;
    color: #fff;
    fill: #fff;
    height: 0;
    font-size: 13px;
    overflow: hidden;
}

.square_checkbox:checked::after {
    width: 16px;
    height: 16px;
}

.square_checkbox:checked {
    border: 1.5px solid var(--text-primary);
    background-color: var(--text-primary);
}

.filter_title_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filters_clear {
    font-family: 'font', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 18px;
    font-weight: 400;
    border: none;
    background: unset;
    cursor: pointer;
}

.filters_clear:hover {
    font-weight: 500;
    font-family: 'citilink-reg', sans-serif;
}

.checkbox_description {
    font-size: 16px;
}

.popup-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product_title:hover {
    fill: var(--text-primary);
    color: var(--text-primary);
    transition: fill .2s, color .2s;
}

.show_more_params:hover,
.show_less_params:hover {
    color: var(--text-primary);
    fill: var(--text-primary);
    transition: fill .2s, color .2s;
}

.mobile_sorting {
    display: none;
}

.search_placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 600px;
    margin-top: 24px;
}

.search_box {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: stretch;
    margin-top: 8px;
}

.search_button {
    padding: 8px 18px;
    border: none;
    background-color: var(--text-primary);
    color: #fff;
    font-size: 18px;
    font-family: 'citilink-reg', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
}

.search_box label {
    width: 100%;
    display: flex;
}

.search_input {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: flex;
    border: 1px solid var(--text-3);
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 18px;
    font-family: font, sans-serif;
    font-weight: 500;
}

.search_title {
    font-family: citilink-reg, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #000;
}

.search_subtitle {
    font-family: font, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-5);
}

@media (max-width: 900px) {
    .product_buy_btn {
        max-width: 250px;
    }

    .sorting_params {
        display: none;
    }

    .content_wrapper {
        padding: 24px 32px 0;
    }

    .category_small_name {
        color: rgb(93, 93, 100);
        cursor: pointer;
        letter-spacing: 0.02em;
        font-size: 20px;
        line-height: 18px;
    }

    .category_name {
        display: flex;
        font-weight: 500;
        color: rgb(21, 21, 40);
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 36px;
        line-height: 30px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        margin-top: 4px;
        padding-bottom: 16px;
        border-bottom: none;
    }

    .products_wrapper {
        gap: 0;
        width: 100%;
    }

    .font-thin {
        font-weight: 400;
        user-select: text;
        color: rgb(179, 179, 183);
        flex-shrink: 0;
        font-size: 28px;
        line-height: 36px;
    }

    .products_container {
    }

    .product {
        display: grid;
        grid-template-columns: 222px 1fr;
        grid-template-areas:
            "image description"
            "null buy";
        max-height: unset;
        grid-row-gap: 24px;
        padding: 16px 16px;
    }

    .product_image_container {
        grid-area: image;
        padding: 0;
    }

    .product_title {
        grid-area: header;
        font-size: 23px;
        font-family: 'citilink-reg', sans-serif;
        color: var(--text-secondary);
    }

    .product_text_container {
        grid-area: description;
    }

    .product_price_and_buy_button {
        grid-area: buy;
        width: 100%;
    }

    .filters_container {
        display: none;
    }

    .mobile_sorting_button svg {
        width: 20px;
        height: 20px;
        position: relative;
        bottom: -1px;
        fill: var(--text-primary);
    }

    .mobile_sorting {
        display: flex;
        border-bottom: 1px solid var(--bg-color-2);
        padding: 0 0 24px;
        width: 100%;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        position: relative;
    }

    .mobile_sorting_button {
        border: none;
        background: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 2px;
        font-size: 20px;
    }

    .mobile_sorting_menu {
        display: none;
        flex-direction: column;
        position: absolute;
        align-items: flex-start;
        left: 0;
        top: 31px;
        z-index: 4;
        overflow: hidden auto;
        box-shadow: rgba(30, 31, 33, 0.12) 0 5px 25px;
        background-color: rgb(255, 255, 255);
        color: rgb(21, 21, 40);
        transform: scale(0.8);
        opacity: 0;
        transition: transform .2s, opacity .2s;
    }

    .sorting_btn {
        padding: 10px 15px;
    }

    .mobile_sorting_menu.active {
        display: flex;
        transform: none;
        opacity: 100%;
        transition: transform .2s, opacity .2s;
    }

    .pagination {
        gap: 8px;
    }

    .pagination_pages_wrapper {
        gap: 8px;
    }

    .pagination_nav {
        font-size: 0;
        background-color: rgb(245, 245, 246);
        width: 30px;
        height: 30px;
        align-items: center;
        padding: 0;
        justify-content: center;
    }

    .pagination_nav_next {
        padding-right: 4px;
    }

    .pagination_nav_prev {
        padding-left: 4px;
    }

    .product_description_unit {
        font-size: 20px;
    }

    .show_more_params, .show_less_params {
        font-size: 20px;
    }

    .search_placeholder {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: 0;
    }

    .search_box {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        align-items: stretch;
        margin-top: 8px;
    }

    .search_button {
        padding: 8px 18px;
        border: none;
        background-color: var(--text-primary);
        color: #fff;
        font-size: 20px;
        font-family: 'citilink-reg', sans-serif;
        font-weight: 500;
        border-radius: 6px;
    }

    .search_box label {
        width: 100%;
        display: flex;
    }

    .search_input {
        width: 100%;
        height: 100%;
        border-radius: 6px;
        display: flex;
        border: 1px solid var(--text-3);
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        font-size: 20px;
        font-family: font, sans-serif;
        font-weight: 500;
    }

    .search_title {
        font-family: citilink-reg, sans-serif;
        font-size: 32px;
        font-weight: 500;
        color: #000;
    }

    .search_subtitle {
        font-family: font, sans-serif;
        font-size: 20px;
        font-weight: 500;
        color: var(--text-5);
    }
}

@media (max-width: 757px) {
    .product_buy_btn {
        max-width: unset;
    }

    .sorting_params {
        display: none;
    }

    .content_wrapper {
        padding: 24px 12px 0;
    }

    .category_small_name {
        color: rgb(93, 93, 100);
        cursor: pointer;
        letter-spacing: 0.02em;
        font-size: 14px;
        line-height: 18px;
    }

    .category_name {
        display: flex;
        font-weight: 500;
        color: rgb(21, 21, 40);
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 24px;
        line-height: 30px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        margin-top: 4px;
        padding-bottom: 16px;
        border-bottom: none;
    }

    .products_wrapper {
        gap: 0;
    }

    .font-thin {
        font-weight: 400;
        user-select: text;
        color: rgb(179, 179, 183);
        flex-shrink: 0;
        font-size: 20px;
        line-height: 25px;
    }

    .products_container {
    }
    
    .product {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "image description"
            "null buy";
        max-height: unset;
        grid-row-gap: 24px;
        padding: 16px 4px;
    }

    .product_image_container {
        grid-area: image;
        padding: 0;
    }

    .product_title {
        grid-area: header;
        font-size: 18px;
    }

    .product_text_container {
        grid-area: description;
    }

    .product_price_and_buy_button {
        grid-area: buy;
        width: 100%;
    }

    .filters_container {
        display: none;
    }

    .mobile_sorting_button svg {
        width: 20px;
        height: 20px;
        position: relative;
        bottom: -1px;
        fill: var(--text-primary);
    }

    .mobile_sorting {
        display: flex;
        border-bottom: 1px solid var(--bg-color-2);
        padding: 0 0 24px;
        width: 100%;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        position: relative;
    }

    .mobile_sorting_button {
        border: none;
        background: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 2px;
        font-size: 16px;
    }

    .mobile_sorting_menu {
        display: none;
        flex-direction: column;
        position: absolute;
        align-items: flex-start;
        left: 0;
        top: 31px;
        z-index: 4;
        overflow: hidden auto;
        box-shadow: rgba(30, 31, 33, 0.12) 0 5px 25px;
        background-color: rgb(255, 255, 255);
        color: rgb(21, 21, 40);
        transform: scale(0.8);
        opacity: 0;
        transition: transform .2s, opacity .2s;
    }

    .product_description_unit {
        font-size: 16px;
    }

    .show_more_params, .show_less_params {
        font-size: 16px;
    }

    .sorting_btn {
        padding: 10px 15px;
    }

    .mobile_sorting_menu.active {
        display: flex;
        transform: none;
        opacity: 100%;
        transition: transform .2s, opacity .2s;
    }

    .pagination {
        gap: 8px;
    }

    .pagination_pages_wrapper {
        gap: 8px;
    }

    .pagination_nav {
        font-size: 0;
        background-color: rgb(245, 245, 246);
        width: 30px;
        height: 30px;
        align-items: center;
        padding: 0;
        justify-content: center;
    }

    .pagination_nav_next {
        padding-right: 4px;
    }

    .pagination_nav_prev {
        padding-left: 4px;
    }

    .search_placeholder {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: 0;
    }

    .search_box {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        align-items: stretch;
        margin-top: 8px;
    }

    .search_button {
        padding: 8px 18px;
        border: none;
        background-color: var(--text-primary);
        color: #fff;
        font-size: 18px;
        font-family: 'citilink-reg', sans-serif;
        font-weight: 500;
        border-radius: 6px;
    }

    .search_box label {
        width: 100%;
        display: flex;
    }

    .search_input {
        width: 100%;
        height: 100%;
        border-radius: 6px;
        display: flex;
        border: 1px solid var(--text-3);
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        font-size: 18px;
        font-family: font, sans-serif;
        font-weight: 500;
    }

    .search_title {
        font-family: citilink-reg, sans-serif;
        font-size: 24px;
        font-weight: 500;
        color: #000;
    }

    .search_subtitle {
        font-family: font, sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-5);
    }
}