.catalog-elements.ajax-container {
    padding-top: 0;
}

.catalog-actions {
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
    gap: 15px;
}

.catalog-action-btn {
    box-shadow: 0px 3px 4px 0px #0000001F;
    border-radius: var(--radius);
    background-color: var(--white);
    padding: 6px 12px;
    position: relative;
    border: 1px solid transparent;
    transition: var(--transition);
}

.mobile-scroll .catalog-action-btn {
    position: initial;
}

.sort-action-btn {
    min-width: 200px;
}

.catalog-action-btn.active {
    border-color: var(--light-grey);
}

.catalog-action-values {
    display: none;
    position: absolute;
    left: 0;
    top: 45px;
    width: 100%;
    padding: 4px;
    background-color: var(--white);
    color: var(--grey);
    border-radius: var(--radius);
    z-index: 25;
    box-shadow: 0px 3px 4px 0px #0000001F;
    font-weight: 500;
}

.catalog-action-values div {
    display: flex;
    flex-direction: column;
}

.catalog-action-values hr {
    background-color: #D9D9D9;
    width: calc(100% - 20px);
    margin-left: 8px;
}

.catalog-action-values div span {
    padding: 6px 4px 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.catalog-action-values div span svg {
    display: none;
    height: 15px;
}

.catalog-action-values div span.active {
    color: var(--black);
}

.catalog-action-values div span.active svg {
    color: var(--grey);
    display: inline-flex;
}

.catalog-action-values div span:hover {
    color: var(--black);
    background-color: var(--bg-light-grey);
}

.catalog-action-val {
    cursor: pointer;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: space-between;
}

.catalog-action-val svg {
    height: 15px;
    width: 17px;
    color: var(--grey);
}

.asc.sort-order {
    transform: rotate(180deg);
}

.catalog-action-val .arrow {
    height: 12px;
    transform: rotate(270deg);
    transition: var(--transition);
}

.catalog-action-btn.active .catalog-action-val .arrow {
    transform: rotate(90deg);
}

.catalog-action-val span {
    font-weight: 500;
    color: var(--black);
}

.catalog-action-val:hover {
    opacity: 0.56;
}

.remove-link {
    display: flex;
    gap: 5px;
    align-items: center;
    color: var(--grey);
    margin-left: auto;
}

.remove-link svg {
    height: 12px;
    width: 12px;
}

.view-btn {
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-grey);
    margin-left: auto;
}

.view-btn svg {
    cursor: pointer;
    height: 16px;
    width: 17px;
}

.view-btn svg:hover, .view-btn svg.active {
    color: var(--black);
}

.view-btn svg:first-child {
    border-right: 1px solid var(--light-grey);
    padding-right: 10px;
}

.catalog-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.catalog-elements .catalog-element {
    width: calc(33% - 13px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 8px;
    transition: var(--transition);
}

.catalog-elements .catalog-element:hover {
    box-shadow: var(--hoverShadow);
}

.catalog-elements .catalog-element:hover .catalog-element-name,
.catalog-elements .catalog-element:hover .catalog-element-price {
    transition: var(--transition);
    color: var(--orange);
}

.catalog-element-img {
    background-color: var(--bg-light-grey);
    border-radius: var(--radius);
    position: relative;
}

.catalog-element-img img {
    margin: 0 auto;
    display: block;
    height: 220px;
    object-fit: contain;
}

.catalog-element-tags {
    position: absolute;
    left: 5px;
    top: 5px;
    display: flex;
    align-items: center;
    z-index: 21;
    height: auto !important;
}

.catalog-element-tag {
    color: var(--white);
    font-size: 12px;
    line-height: 16px;
    padding: 2px 6px;
    border: 1px solid var(--white);
    border-radius: var(--radius);
    background-color: var(--grey);
    margin-left: -5px;
}

.catalog-element-tag.hit {
    background-color: #F3BC2D;
}

.catalog-element-tag.new {
    background-color: #27C870;
}

.catalog-element-tag.sale {
    background-color: #F86E21;
}

.catalog-element-tag:first-child {
    margin-left: 0;
    border-color: transparent;
}

.catalog-element-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 12px;
    justify-content: stretch;
    height: 100%;
}

.catalog-element-price {
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    color: var(--black);
}

.catalog-element-price span {
    font-weight: 400;
    font-size: 16px;
    color: var(--grey);
    position: relative;
}

.catalog-element-price span:after {
    content: "";
    border-bottom: 2px solid var(--orange);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
}

.catalog-element-name {
    font-size: 16px;
    line-height: 20px;
    color: var(--black);
}

.catalog-element-quantity {
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 5px;
}

.catalog-element-quantity .quantity {
    color: var(--black);
}

.catalog-element-props {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 168px;
    overflow: auto;
    margin-top: auto;
    padding-right: 5px;
    margin-right: -5px;
}

.catalog-element-props::-webkit-scrollbar {
    width: 3px;
}

.catalog-element-props::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-element-props::-webkit-scrollbar-thumb {
    background-color: var(--light-grey);
    border-radius: var(--radius);
    border: none;
}

.catalog-prop {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 18px;
    color: var(--grey);
}

.prop-val {
    margin-left: auto;
    color: var(--black);
    text-align: right;
}

.catalog-element-btns {
    padding-bottom: 16px;
    display: flex;
    gap: 4px;
}

.catalog-element-btns span {
    width: 100%;
}

.catalog-element-btns .button-grey {
    width: min-content;
    margin: 0;

}

.catalog-element-btns .button-grey.active {
    background-color: var(--white);
    border: 1px solid var(--light-grey);
}

.catalog-element-photos div {
    line-height: 0;
}

.catalog-element-photos .slick-dots {
    position: absolute;
    width: 100%;
    bottom: 5px;
}

.catalog-element-photos .slick-dots hr {
    height: 2px;
}

.update-element {
    width: 100%;
    display: flex;
    gap: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--light-grey);
    color: var(--grey);
}

.update-element > span {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    cursor: pointer;
}

.update-element > span:hover {
    color: var(--orange);
}

.update-element > input {
    background-color: transparent;
    margin: 0;
    text-align: center;
    border: none !important;
    width: 50%;
    padding: 0;
}

.catalog-elements .catalog-element.list {
    width: 100%;
    flex-direction: row;
    gap: 20px;
    max-height: 230px;
}

.list .catalog-element-img {
    width: 336px;
}

.list .catalog-element-img div, .list .catalog-element-img img {
    height: 100%;
}

.list .catalog-element-name {
    padding: 8px 0 16px 0;
}

.list .catalog-element-props {
    gap: 8px;
    height: auto;
    padding-right: 10px;
}

.list .catalog-element-btns {
    margin-top: auto;
    padding-bottom: 0;
}

.list .catalog-element-info-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.list .catalog-element-btns-block {
    min-width: 250px;
    width: 250px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

.mobile-scroll {
    position: relative;
}

.mobile-scroll .catalog-action-values {
    width: max-content;
    min-width: 200px;
    left: auto;
}

@media (max-width: 991px) {
    .view-btn {
        display: none;
    }

    .mobile-scroll .catalog-actions {
        overflow: auto;
        padding-bottom: 5px;
    }

    .mobile-scroll .catalog-actions::-webkit-scrollbar {
        height: 2px;
    }

    .mobile-scroll .catalog-actions::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-scroll .catalog-actions::-webkit-scrollbar-thumb {
        background-color: var(--light-grey);
        border-radius: var(--radius);
        border: none;
    }

    .catalog-elements .catalog-element {
        width: calc(50% - 18px);
    }

    .catalog-elements .catalog-element.list {
        flex-wrap: wrap;
        max-height: max-content;
        gap: 10px;
    }

    .list .catalog-element-info-block {
        order: 3;
        width: 100%;
        max-height: 250px;
    }

    .list .catalog-element-btns-block {
        flex-grow: 1;
        width: auto;
    }

    .list .catalog-element-name {
        padding-top: 0;
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .catalog-elements .catalog-element {
        width: 100%;
    }

    .list.catalog-element > div {
        width: 100%;
    }

    .list .catalog-element-info-block {
        order: 2;
    }

    .list .catalog-element-btns-block {
        order: 3;
        gap: 5px;
    }
}

.article-element {
    background-color: #DDE6E7;
}

.article-element img {
    height: 227px;
    object-fit: cover;
}

.article-element:not(.list) .article-info .article-info-block {
    margin-top: auto;
    margin-bottom: 16px;
    height: 46px;
}

.article-element.list .catalog-element-photos {
    min-width: 336px;
}

.article-element.list img {
    height: auto;
}

.article-element-name {
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: var(--black);
}

.article-element:hover .article-element-name {
    color: var(--orange);
}

.article-element .catalog-element-block {
    max-height: 292px;
}

.article-element-text {
    overflow-y: auto;
}

.article-element-text::-webkit-scrollbar {
    width: 3px;
}

.article-element-text::-webkit-scrollbar-track {
    background: transparent;
}

.article-element-text::-webkit-scrollbar-thumb {
    background-color: var(--light-grey);
    border-radius: var(--radius);
    border: none;
}

.article-block-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-block-list .article-info {
    margin-top: auto;
}