.all_product_categories {
    padding: 178px 0 120px;
}

.bread_crumbs {
    margin-bottom: 48px;
}

.all_product_filter_cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    margin: 48px 0;
}

.product_filter_card {
    border: 0.5px solid #cacaca;
    border-radius: 4px;
    padding: 24px 51px 21px 30px;
    min-height: 126px;
    cursor: pointer;
}

.title_product_filter_card {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.filters {
    display: flex;
    justify-content: space-between;
    padding: 22px 56px 22px 30px;
    background: #f8f8f8;
    margin-bottom: 48px;
}

.filter_in_stock label {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

.open_all_filters {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter_in_stock input,
.filter_in_stock label {
    cursor: pointer;
}

.open_all_filters p {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
}

.all_product_cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.product_card {
    padding: 24px;
    border: 1px solid #cacaca;
    border-radius: 4px;
    transition: 0.3s;
    position: relative;
}

.product_card_picture {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
    min-height: 100px;
}

.product_card_icon {
    padding: 5px;
    border: 0.5px solid #cacaca;
    border-radius: 3px;
    transition: 0.3s;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
}

.product_card_icon_catalog {
    display: none;
    position: absolute;
    top: 40px;
    right: 24px;
}

.product_card_icon_favorites {
    top: 80px;
    border: 0.5px solid #cacaca;
}

.product_card:hover .product_card_icon_catalog {
    display: block;
}

.product_card_icon:hover {
    background: #ffb630;
    border: 0.5px solid #ffb630;
}

.product_card_icon:hover img {
    filter: grayscale(1) brightness(1000%);
}

.product_card_firm {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #787878;
}

.product_card_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000;
    margin: 36px 0 12px;
    cursor: pointer;
}

.product_card_short_information {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 24px;
}

.product_card_availability {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #48720e;
}

.product_card_article {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #787878;
}

.product_card_sum {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: #333;
}

.adding_product {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    border-top: 1px solid #cacaca;
}

.adding_product_count {
    background: #f8f8f8;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    color: #787878;
    gap: 20px;
}

.adding_product_count img {
    width: 12px;
    height: 12px;
}

.adding_product_basket {
    background: #ffb630;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
    width: 50%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.adding_product div {
    width: 50%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.product_card:hover .adding_product {
    display: flex;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
    gap: 16px;
}

.pagination a {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color: #333;
    border-radius: 2px;
    padding: 10px;
    width: 36px;
    height: 36px;
}

.pagination a.active {
    background: #ffb630;
}

/*БЛОК С ФИЛЬТРАМИ*/

.filter_block {
    position: fixed;
    left: -455px; /* Сначала скрываем меню за пределами экрана */
    /* top: var(--header-height); Используем переменную для высоты шапки */
    /*height: calc(100vh - var(--header-height)); Высота меню */
    top: 0;
    height: 100vh;
    width: 455px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease; /* Плавный переход */
    z-index: 10000;
    padding: 60px 32px;
}

.filter_block.active {
    transform: translateX(455px); /* Двигаем меню в область видимости */
}

.overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* Начальное значение с нулевой непрозрачностью */
    z-index: 99;
    transition: 0.3s; /* Плавные переходы */
    opacity: 0; /* Начальная непрозрачность */
    visibility: hidden; /* Элемент невидим */
}

.overlay2.active {
    background: rgba(0, 0, 0, 0.5); /* Устанавливаем затемнение */
    opacity: 1; /* Полная непрозрачность */
    visibility: visible; /* Делает элемент видимым */
}

.search {
    display: flex;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 48px;
}

.search-field {
    border: 1px solid #cacaca;
    padding: 15px 12px;
    width: 100%;
}

.search-field input {
    border: none;
    width: 100%;
}

.search-icon {
    padding: 11px 14px;
    background: #ffb630;
}

.filter_block_item {
    padding: 13px 0;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #161616;
    border-bottom: 1px solid #c2c2c2;
}

.filter_block_item summary {
    display: flex;
    justify-content: space-between;
}

.filter_block_item[open] .filter_block_item_arrow {
    transform: rotate(180deg);
}

.filter_block_item[open] {
    border-bottom: none;
}

.filter_block_item[open] summary {
    padding-bottom: 13px;
    border-bottom: 1px solid #c2c2c2;
}

.filter_block_item_content {
    padding: 12px 0 4px;
}

.custom-checkbox {
    display: none;
}

.custom-checkbox + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.custom-checkbox + label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #cacaca;
    border-radius: 4px;
    margin-right: 12px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

/* стили при наведении курсора на checkbox */
.custom-checkbox:not(:disabled):not(:checked) + label:hover::before {
    border-color: #9c9c9c;
}

/* стили для чекбокса, находящегося в состоянии checked */
.custom-checkbox:checked + label::before {
    background-image: url("../img/header/checkbox.png");
    background-size: auto;
}

.filter_block_item_content_oil_type {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.filter_block_button {
    display: flex;
    gap: 9px;
    margin-top: 90px;
}

.filter_block_button .button {
    height: auto;
    width: 100%;
    padding: 15px 0;
    color: #333;
}

.yellow_button {
    background: #ffb630;
}

.yellow_button:hover {
    background: #fff;
    border: 1px solid #333;
}

.white_button {
    border: 1px solid #333;
}

.white_button:hover {
    border: 1px solid #ffb630;
}

/*АДАПТИВ*/

@media screen and (max-width: 1250px) {
    .all_product_filter_cards {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .all_product_cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 950px) {
    .all_product_filter_cards {
        grid-template-columns: 1fr 1fr;
    }

    .product_filter_card {
        padding: 10px;
        min-height: 70px;
        margin: 5px;
    }

    .all_product_cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 650px) {
    .all_product_filter_cards {
        grid-template-columns: 1fr;
    }

    .product_filter_card {
        margin: 0 0 5px 0;
        min-height: auto;
    }

    .all_product_cards {
        grid-template-columns: 1fr;
    }
}
