.action-page-cat-filter {
    margin-bottom: 30px;
}

.category-dropdown {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
}

.category-dropdown__title {
    display: flex;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 16px;
    justify-content: space-between;
    align-items: center;
}

.category-dropdown__arrow {
    transition: transform 0.3s ease;
}

.category-dropdown__list {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
}

.category-dropdown__list.open {
    display: flex;
}

.category-link {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.category-link:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    text-decoration: none;
}

.category-link.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}


/* Мобильные устройства (до 992px) */

@media (max-width: 992px) {
    .category-dropdown__list {
        flex-direction: column;
        gap: 8px;
        padding: 10px 20px 20px 20px;
    }
    .category-link {
        display: block;
        width: 100%;
        text-align: left;
    }
}

.action-page-wrapper {
    display: flex;
    justify-content: space-between;
}

.action-page-cat-filter {
    min-width: 300px;
    margin-right: 20px;
    width: 300px;
}

.action-page-items-wrapper {
    width: calc(100% - 320px - 20px);
}

div#category-toggle {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 0px;
}

div#category-list {
    padding: 0px;
    background: #fff;
    border: none;
    gap: 0px;
}

div#category-list a.category-link {
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 0px;
}

div#category-list a.category-link.active {
    color: #12b2e7;
    background: #fff;
    font-weight: 600;
}

div#category-list a.category-link:not(:last-child) {
    border-bottom: 1px solid #eee;
}

div#category-list a.category-link:hover {
    background: #fff;
    color: #12b2e7;
}

body #action_page .catalog_block.items .item_block.item {
    width: calc(25% - 30px) !important;
}

div#category-list.open {
    display: flex !important;
}

div#category-list:not(.open) {
    display: none !important;
}

svg.category-dropdown__arrow.open {
    transform: rotate(180deg);
}

@media (max-width: 1500px) {
    body #action_page .catalog_block.items .item_block.item {
        width: calc(33% - 30px) !important;
    }
}

@media (max-width: 1200px) {
    .action-page-cat-filter {
        min-width: 200px;
        margin-right: 20px;
        width: 200px;
    }
    .action-page-items-wrapper {
        width: calc(100% - 220px - 20px);
    }
    body #action_page .catalog_block.items .item_block.item {
        width: calc(33% - 30px) !important;
    }
}

@media (max-width: 992px) {
    .action-page-wrapper {
        flex-direction: column;
    }
    .action-page-items-wrapper {
        width: calc(100%);
    }
    body #action_page .catalog_block.items .item_block.item {
        width: calc(25% - 30px) !important;
    }
    .action-page-cat-filter {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .action-page-wrapper {
        flex-direction: column;
    }
    .action-page-items-wrapper {
        width: calc(100%);
    }
    body #action_page .catalog_block.items .item_block.item {
        width: calc(33% - 15px) !important;
    }
    .action-page-cat-filter {
        width: 100%;
    }
    div#category-list.open {
        display: flex !important;
    }
    div#category-list:not(.open) {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .action-page-wrapper {
        flex-direction: column;
    }
    .action-page-items-wrapper {
        width: calc(100%);
    }
    body #action_page .catalog_block.items .item_block.item {
        width: calc(50% - 20px) !important;
    }
    .action-page-cat-filter {
        width: 100%;
    }
    div#category-list.open {
        display: flex !important;
    }
    div#category-list:not(.open) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #main .catalog_item .footer_button {
        border-radius: 0px 0px 10px 10px;
        overflow: hidden;
    }
    body .catalog_block.items .item_block.item .inner_wrap {
        overflow: hidden;
    }
    body .catalog_block .catalog_item_wrapp {
        border: 1px solid #eee;
        border-radius: 20px;
        overflow: hidden;
    }
    body .catalog_block.items .item_block.item .inner_wrap {
        border: none !important;
    }
}

@media (max-width: 374.98px) {
    body #action_page .catalog_block.items .item_block.item {
        width: calc(100%) !important;
        margin: 0px 8px 16px;
        overflow: hidden;
        border-radius: 10px;
    }
}