@media screen and (min-width: 992px) {
    .menu-wrapper.new {
        position: fixed;
        top: 120px;
    }
}
table {
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}
.cart-container{
    h2{
        margin: 0;
    }
}
.main-delivery {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    > img {
        width: 100%;
    }

    > p {
        padding-top: 30px;
        border-top: 2px solid lightgrey;
        white-space: normal;
    }
}

.footer__container {
    display: flex;
    justify-content: space-between;
}

.footer__description {
    margin-top: 30px;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
}

.header-block__wrapper {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 9999;
}

.header-block {
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
}

.category_icons{
    margin-top: 120px;
    display: flex;
    align-items: center;
}

#category-icons-carousel {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;
}

.category_blocks_1{
    flex: 0 0 135px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-header__buttons {
    display: flex;
    gap: 10px;
}
.category-switcher__btn {
    border: 2px solid #00869b;
    border-radius: 5px;
    background-color: white;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
    transition: all 0.4s ease-in-out;
}
#category-switch-button-block {
    background-image: url(../../assets/image/icons/blocks.svg);
    transition: all 0.4s ease-in-out;
}
#category-switch-button-block.active {
    background-image: url(../../assets/image/icons/blocks-white.svg);
    background-color: #00869b;
    transition: all 0.4s ease-in-out;
}
#category-switch-button-line {
    background-image: url(../../assets/image/icons/lines.svg);
    transition: all 0.4s ease-in-out;
}
#category-switch-button-line.active {
    background-image: url(../../assets/image/icons/lines-white.svg);
    background-color: #00869b;
    transition: all 0.4s ease-in-out;
}
.category__catalog_wrapper {
    .uni-item {
        display: grid;
        grid-template-rows: 24rem 1fr;
    }
    .product-thumb__image {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
.category__catalog_wrapper.lines {
    display: flex;
    flex-direction: column;

    .uni-module__item {
        width: 100% !important;

        .uni-item {
            display: flex;
            flex-direction: row;
            gap: 30px;

            .product-thumb__image a:before {
                background: none;
            }

            .product-thumb__image {
                padding: 0;
                margin: 0;
            }

            .product-thumb__image img {
                width: 150px;
            }

            .add_to_cart {
                max-width: 250px;
            }

            .product-thumb__caption {
                display: grid;
                grid-auto-flow: column;
                grid-template-columns: 2fr 1fr;
                grid-template-rows: repeat(3, max-content);
                height: max-content;
                margin: auto;

                .product-thumb__name {
                    padding: 0;
                    font-size: 1.4em;
                }
            }
        }
    }
}

.subcategory-carousel {
    display: flex;
    gap: 2rem;
    margin-top: 15px;
}
.subcategory-carousel__btn {
    flex-shrink: 0;
    border: 2px solid #e5e5e5;
    width: 4rem;
    border-radius: 1rem;
    color: #e5e5e5;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.subcategory-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: column;
    gap: 2rem;
    width: 100%;
    overflow: hidden;
}
.subcategory-list__item {
    position: relative;
    border-radius: 1rem;

    > a {
        display: grid;
        grid-template-columns: 6rem auto;
        align-items: center;
        gap: 1rem;
        border: 2px solid #e5e5e5;
        width: 100%;
        height: 100%;
        border-radius: 1rem;
        padding: 0.8rem;
        color: #515151;
    }
}
.subcategory-list__item_image {
    max-width: 200px;
}
.product-detail__add_to_cart {
    align-items: center;
    gap: 10px;
}
.footer__column-li {
    > span {
        color: #eeeeee;
        font-size: 0.95em;
        font-weight: 500;
        cursor: auto;
    }
    > span:hover {
        color: #eeeeee;
    }
}
.cart-container {
    .cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;

        button {
            background-color: white;
            border: 2px solid #f00000;
            color: #f00000;
            border-radius: 5px;
            padding-left: 30px;
            height: 40px;
            background-image: url(../../assets/image/icons/garbage-red.svg);
            background-repeat: no-repeat;
            background-size: 20px;
            background-position: 5px center;
            transition: all 0.4s ease-in-out;
        }
    }
    .cart-main-content {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;

        #cart-total {
            display: flex;
            flex-direction: column;
            background-color: #fbfbfb;
            border-radius: 1rem;
            box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
            padding: 3rem;
            align-items: center;
            gap: 15px;
            height: max-content;

            span {
                font-weight: 700;
                font-size: 1.8rem;
            }

            #cart-order-button {
                background-color: #00869b;
                text-decoration: none;
                color: white;
                border: 1px solid #00869b;
                border-radius: 5px;
                padding: 10px 25px;
                font-size: 1.5rem;
            }
            #cart-order-button.disabled {
                background-color: lightgrey;
                border-color: lightgray;
            }
        }
    }
}

.cart-items__list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    list-style-type: none;
    gap: 15px;

    li {
        display: grid;
        grid-template-columns: 100px 1fr max-content 1fr 4rem;
        align-items: center;
        gap: 50px;
        padding: 15px 0;
        background-color: #fbfbfb;
        border-radius: 1rem;
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
        padding: 3rem;
        text-align: center;

        .cart_item_name {
            font-weight: 700;
        }

        .cart_prices {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #00869b;
            font-weight: 700;
        }

        .cart_qua_buttons {
            display: flex;
            gap: 10px;
            align-items: center;
            border: 2px solid #00869b;
            border-radius: 5px;
            button {
                background-color: white;
                border: none;
                font-size: 24px;
            }
            button:hover {
                color: #00869b;
                transition: all 0.4s ease-in-out;
            }
            span {
                font-weight: 700;
            }
        }

        .remove-item {
            background-color: white;
            border: 2px solid lightgray;
            border-radius: 5px;
            width: 40px;
            height: 40px;
            background-image: url(../../assets/image/icons/garbage-grey.svg);
            background-repeat: no-repeat;
            background-size: 20px;
            background-position: center;
            transition: all 0.4s ease-in-out;
        }

        .remove-item:hover {
            background-image: url(../../assets/image/icons/garbage-red.svg);
            border: 2px solid #f00000;
            transition: all 0.4s ease-in-out;
        }
    }
}

.product-detail__container {
    display: flex;
    gap: 30px;
    padding: 4rem 4rem 6rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}
.product-detail__desc {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    padding-top: 30px;
    gap: 30px;
    border-top: 1px solid #eee;
}
.product-detail__desc_btn {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#product-detail-desc {
    padding: 4rem 4rem 6rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}
.product-detail__char_table {
    padding: 4rem 4rem 6rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    width: 100%;
}
#product-detail-desc-btn.active {
    background-color: #cc7a00;
}
.product-thumb__add-to-cart.active {
    background-color: #cc7a00;
}
.product-detail__table_container {
    display: grid;
    grid-auto-flow: row;
    overflow: hidden;
    transition: max-height 0.3s ease;

    .product-detail__table_row {
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .hidden {
        display: none;
    }
}
.product-detail__table_row {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 2rem;
}
#toggle-characteristics {
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    margin-top: 10px;
}
.product-detail__table_row:nth-child(odd) {
    background-color: #f3f3f3;
}
.product_images__container {
    display: flex;
    gap: 30px;
}
.product-detail__delivery_info {
    margin-top: 30px;
    ul {
        padding: 10px 15px;
        margin: 0;
        border: 2px solid #00869b;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        gap: 15px;

        li {
            display: flex;
            justify-content: space-between;
            font-weight: 700;
        }
    }
}
.product_images__list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    max-height: 350px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 10px;

    .product_images__item {
        box-sizing: border-box;
        border: 1px solid transparent;
        width: 75px;
        height: 75px;
        display: flex;
        justify-content: center;
        align-items: center;

        > img {
            max-width: 75px;
            max-height: 75px;
        }
    }
    .product_images__item.active {
        border: 1px solid lightgray;
        border-radius: 5px;
    }
}
.product_images__list::-webkit-scrollbar {
    width: 0;
}

.order-main-content {
    display: flex;
    gap: 30px;
}

#order-total {
    display: flex;
    flex-direction: column;
    background-color: #fbfbfb;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    padding: 3rem;
    align-items: center;
    gap: 15px;
    height: max-content;

    span {
        font-weight: 700;
        font-size: 1.8rem;
    }

    button {
        background-color: #00869b;
        text-decoration: none;
        color: white;
        border: 1px solid #00869b;
        border-radius: 5px;
        padding: 10px 25px;
        font-size: 1.5rem;
    }
}

.order-check__list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 30px;

    .cart-item {
        justify-content: center;
    }

    > li {
        display: flex;
        flex-direction: column;
        background-color: #fbfbfb;
        border-radius: 1rem;
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
        padding: 3rem;
        gap: 15px;
        height: max-content;
        > h3 {
            padding: 10px;
            border-bottom: 2px solid lightgray;
        }
    }
}

.order-check__delivery_buttons {
    display: flex;
    gap: 30px;
    > .delivery-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        border: 1px solid #00869b;
        background-color: white;
        color: #00869b;
        font-weight: 700;
        border-radius: 5px;
        padding: 10px 15px;
        transition: all 0.4s ease-in-out;
        cursor: pointer;

        span {
            width: max-content;
        }
    }
    > .delivery-option.active,
    .delivery-option:hover {
        background-color: #00869b;
        color: white;
        transition: all 0.4s ease-in-out;
    }
}

.order-check__form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    textarea {
        resize: none;
        grid-column-start: 1;
        grid-column-end: 4;
        height: 100px;
    }

    input,
    textarea {
        font-weight: 600;
        font-size: 1.5rem;
        line-height: 2rem;
        transition: 0.3s ease;
        padding: 1rem 2rem;
        border: 0.2rem solid #e5e5e5;
        border-radius: 0.5rem;
        outline-color: #00869b;
    }
}

.order-total-check {
    padding: 0;
    margin: 0;
    list-style-type: none;
    padding-bottom: 15px;
    border-bottom: 1px solid lightgray;
    display: flex;
    flex-direction: column;
    gap: 15px;

    > li {
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }
}

.home-page {
    height: 100%;
    .pagination {
        align-items: center;
        border-radius: 1rem;
        padding: 3rem;
        li {
            a {
                transition: all 0.4s ease-in-out;
                margin: 0;
                font-weight: 700;
                background-color: #fbfbfb;
                padding: 2rem;
                border-radius: 0;
                border-bottom: 2px solid transparent;
            }

            a:hover,
            a.active {
                border-bottom: 2px solid #00869b;
                transition: all 0.4s ease-in-out;
            }
        }
    }
}

.category-container,
.about-container,
.delivery-container,
.payment-container,
.contacts-container {
    background-color: #fbfbfb;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    padding: 3rem;
    min-height: 90%;
}

.payment-container,
.delivery-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    ul li::before {
        content: "—";
        color: #00869b;
        font-weight: 700;
        margin-right: 10px;
    }
}

.payment-container {
    th {
        padding: 10px 15px;
    }
    table tr td {
        width: 50%;
        padding: 10px 15px;
    }
}

.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.delivery-container,
.contacts-container {
    .btn {
        font-weight: 600;
        font-size: 1.5rem;
        line-height: 2rem;
        transition: 0.3s ease;
        padding: 1rem 2rem;
        border: 0.2rem solid #00869b;
        border-radius: 0.5rem;
        background-color: #00869b;
        color: white;
        height: auto;
        margin-top: 30px;
    }
}

.owl-carousel .owl-stage {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contacts-list {
    list-style-type: none;
    margin: 0;
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: 3fr 3fr 3fr 3fr;
    gap: 0 1rem;
    padding: 2rem;
    border: 0.2rem solid #e5e5e5;
    border-radius: 0.5rem;
    font-weight: 600;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #515151;
    margin-top: 2rem;

    li {
        display: flex;
        flex-direction: column;
        gap: 10px;

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

@media screen and (min-width: 992px) {
    .menu1.new .menu__level-1-li {
        position: static;
    }
}

.header-search__btn1 {
    color: #888888;
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 1px;
    height: calc(100% - 2px);
    width: 40px;
    background: none;
    border: none;
    transform: translate(0, -50%);
    transition: all ease-in-out 0.15s;
}

.live-search__ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    position: absolute;
    top: 34px;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 999;
    border-radius: 5px;

    .live-search__ul_item {
        padding: 10px 5px;
        border-radius: 5px;
        transition: all 0.4s ease-in-out;

        a {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .live-search__item-image {
            width: 40px;
            height: 40px;
        }
    }
    .live-search__ul_item:hover {
        background-color: #e5e5e5;
        transition: all 0.4s ease-in-out;
    }
    .live-search__ul_item:not(:last-child) {
        border-bottom: 1px solid lightgray;
    }
}

.product_img_card_container {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        max-height: 200px;
        max-width: 100%;
    }
}

.product_detail_image_container {
    height: 350px;
    width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        max-height: 350px;
        max-width: 350px;
    }
}
.mobile_menu_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.burger_button {
    background-image: url(../image/icons/burger.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px;
    background-color: transparent;
    border: none;
    height: 35px;
    width: 35px;
    align-self: center;
    order: 5;
    margin-left: 15px;
    cursor: pointer;
}
.close_button {
    background-image: url(../image/icons/close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px;
    background-color: transparent;
    border: none;
    height: 35px;
    width: 35px;
    align-self: center;
    order: 5;
    margin-left: 15px;
    cursor: pointer;
}

.mobile_menu {
    left: -100vw;
    position: fixed;
    min-height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    background-color: white;
    z-index: 9999;
    padding: 28px;
    transition: all 0.4s ease-in-out;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;

    nav {
        margin-top: 30px;
    }
    .menu__level-1-a {
        padding: 0;
    }
}
.mobile_menu.active {
    left: 0;
    transition: all 0.4s ease-in-out;
}

.mobile_category_menu {
    display: none;
    .menu__level-3:not(.in) {
        display: none;
        height: auto !important;
    }
    .collapse.in {
        display: block !important;
    }
    .menu__level-2-ul {
        width: 100% !important;
        padding-left: 15px;
    }
    .menu__level-3 {
        padding-left: 15px;
    }
}
.mobile_category_menu.active {
    display: block;
}

.mobile_menu_ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.menu__catalog_open {
    position: relative;
}
.mobile_menu__info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.mobile_menu_search {
    .header-block__item {
        display: flex !important;
        padding: 0;
    }
    margin-top: 30px;
}
.footer__container {
    ul {
        padding: 0;
    }
}

@media screen and (max-width: 992px) {
    .cart-items__list {
        & li {
            gap: 30px;
        }
    }
}

@media screen and (max-width: 1200px) {
    table {
        font-size: 1rem;
    }
    .header-logo {
        max-width: 220px;
    }
    .order-main-content,
    .cart-main-content {
        flex-direction: column;
    }
    .cart-container {
        .cart-main-content {
            #cart-total {
                margin-top: 30px;
                > span {
                    display: flex;
                    justify-content: space-between;
                    width: 100%;
                }
            }
        }
    }
    #order-total {
        ul {
            width: 100%;
        }
        > span {
            width: 100%;
            display: flex;
            justify-content: space-between;
        }
    }
    .footer__container {
        flex-wrap: wrap;
    }
    .footer__column:not(:first-child) {
        padding-top: 0 !important;
    }
}
.input_container {
    position: relative;
    input,
    span {
        width: 100%;
    }
    .tooltip {
        position: absolute;
        top: 105%;
        left: 0;
        background-color: white;
        color: red;
        padding: 5px;
        font-size: 12px;
        border-radius: 5px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        white-space: nowrap;
    }

    input:focus + .tooltip {
        opacity: 1;
        visibility: visible;
    }
}
@media screen and (max-width: 992px) {
    .subcategory-list {
        overflow: scroll;
    }
    .subcategory-list::-webkit-scrollbar {
        width: 0;
    }
    .subcategory-carousel__btn {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .product_detail_image_container {
        height: 150px;
        width: 150px;
    }
    .product_detail_image_container {
        img {
            max-height: 150px;
            max-width: 150px;
        }
    }
    .product_images__list {
        .product_images__item {
            > img {
                max-width: 50px;
                max-height: 50px;
            }
        }
    }
    .product_images__list {
        .product_images__item {
            width: 50px;
            height: 50px;
        }
    }
    .product-detail__container {
        flex-direction: column;
    }
    .product-detail__delivery_info {
        ul {
            font-size: 1rem;
        }
    }
    .product-thumb__price {
        font-size: 1.5rem;
    }
    .category-container,
    .about-container,
    .delivery-container,
    .payment-container,
    .contacts-container {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    .order-check__delivery_buttons {
        flex-direction: column;
        gap: 15px;
    }
    .order-check__form {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .contacts-list {
        font-size: 1rem;
    }
    .cart-item,
    .cart-items__list {
        li {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 30px;
            > img {
                order: 1;
            }
            > a,
            > span {
                order: 3;
            }
            > .cart_qua_buttons {
                order: 4;
            }
            > .cart_prices {
                order: 5;
            }
            > .remove-item {
                order: 2;
            }
        }
    }
}
@media screen and (max-width: 768px) {
        .cart_item_name{
            width: 100%;
        }
        .clear-cart{
            font-size: 1rem;
        }
}
.category-desc-container ul li a {
    color: #00869b;
}
.category-desc-container ul li a:hover {
   opacity: .7;
}