.popup-cart {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 100%;
    max-width: 600px;
    border-radius: 20px 0px 0px 20px;
    background: var(--color-gray-10);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 99;
}
.popup-cart.active,
.popup-cart.show {
    right: 0;
}
.popup-cart_container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: var(--color-black);
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.popup-cart_top {
    display: flex;
    flex-direction: column;
    padding: 32px 40px 12px 40px;
    gap: 16px;
}

.popup-cart_heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.popup-cart_title {
    display: flex;
    margin-bottom: 0;
    gap: 12px;
}
.popup-cart_close {
    padding: 12px;
    cursor: pointer;
}
.popup-cart_close svg {

}

.popup-cart_progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.popup-cart_progress-title span {
    padding: 0 8px;
}
.popup-cart_progress-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--color-gray-20);
}
.popup-cart_progress-line-inner {
    height: 2px;
    background: var(--color-black-90);
}

.popup-cart_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 40px 12px 40px;
    overflow: auto;
}
.popup-cart_products {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 40px 0;
}

.popup-cart_product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-black-90);
    gap: 0 24px;
}
.popup-cart_product-img {
    max-width: 116px;
    max-height: 116px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-70);
    background: var(--color-black-90);
    overflow: hidden;
}
.popup-cart_product-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-cart_product-not-avalible {
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--color-gray-30);
    color: var(--color-black);
    font-size: 10px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.popup-cart_product-data {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 144px);
    gap: 12px;
}
.popup-cart_product-data_left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.popup-cart_product-name {
    margin-bottom: 12px;
    color: var(--color-black) !important;
}
.popup-cart_product-weight {
    margin-bottom: 12px;
    color: var(--color-gray-50);
}

.popup-cart_product-options {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: 8px;
    gap: 4px;
}
.popup-cart_product-option {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
}
.popup-cart_product-option span {
    display: inline-block;
    color: var(--color-gray-50);
}

.popup-cart_product-price {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    white-space: nowrap;
}

.popup-cart_product-quantity-block {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--color-gray-30);
    gap: 4px;
}
.popup-cart_product-quantity {
    min-width: 32px;
    color: var(--color-gray-40);
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
    user-select: none;
}
.popup-cart_product-minus,
.popup-cart_product-plus {
    padding: 12.5px;
    cursor: pointer;
    border: none !important;
    background: none !important;
}
.popup-cart_product-minus svg,
.popup-cart_product-plus svg {
    width: 15px;
    height: 15px;
    display: block;
}
.popup-cart_product-remove {
    margin-left: auto;
    color: var(--Neutral-100, #030303);
    text-align: center;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.popup-cart_product-info {
    margin-top: 8px;
    padding: 12px;
    border-radius: 8px;
    background: var(--color-gray-0, #FCFCFC);
    box-shadow: 0 8px 30px 0 rgba(3, 3, 3, 0.03);
    color: var(--color-black-90);
    user-select: none;
}

.popup-cart_product.not-avalible {
    color: var(--color-gray-50);
}

.popup-cart_product-min {
    width: 100%;
}
.popup-cart_product-min .popup-cart_product-img {
    max-width: 60px;
    max-height: 60px;
}
.popup-cart_product-min {
    padding: 8px 0;
    border-top: 1px solid var(--color-gray-30);
}
.popup-cart_product-min:last-child {
    padding-bottom: 0px;
}
.popup-cart_product-min .popup-cart_product-data {
    width: calc(100% - 84px);
}

.popup-cart_constructor-products {
    width: 100%;
}
.popup-cart_product-data + .popup-cart_constructor-products {
    margin-top: 8px;
}
.popup-cart_product-min .popup-cart_product-price {
    justify-content: flex-start;
    gap: 8px;
}

.popup-cart_product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    text-transform: uppercase;
    border-top: 1px solid var(--color-gray-30);
    letter-spacing: 1.12px;
}
.popup-cart_product-bottom-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
}
.popup-cart_product-bottom-btn span:first-child {
    display: none;
}
.popup-cart_product-bottom-btn svg {
    display: block;
}

.popup-cart_product-bottom.active .popup-cart_product-bottom-btn span:first-child {
    display: flex;
}
.popup-cart_product-bottom.active .popup-cart_product-bottom-btn span:nth-child(2) {
    display: none;
}
.popup-cart_product-bottom.active .popup-cart_product-bottom-btn svg {
    transform: rotate(180deg);
}

/* Related */
.popup-cart_related {
    display: flex;
    flex-direction: column;
    width: calc(100% + 80px);
    margin: 0 -40px;
    padding: 16px 40px;
    border-radius: 20px;
    background: var(--color-gray-20);
}

.popup-cart_related-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-black-90);
}
.popup-cart_related-title {

}
.popup-cart_related-nav {
    position: relative;
    display: flex;
    gap: 16px;
}
.popup-cart_related-nav .slide-prev_btn,
.popup-cart_related-nav .slide-next_btn {
    position: relative;
    display: flex;
    top: 0;
    left: auto;
    right: auto;
    transform: none !important;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 100px;
    border: 1px solid var(--color-white);
    background: var(--color-white);
}

.popup-cart_related-slider {

}

.popup-cart_related-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
}
.popup-cart_related-item_img {
    margin-right: 24px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-70);
    background: var(--color-black-90);
    overflow: hidden;
}
.popup-cart_related-item_img img {
    display: block;
    width: 100%;
    max-width: 80px;
}

.popup-cart_related-item_data {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-right: 18px;
    height: 80px;
}
.popup-cart_related-item_title {
    margin-bottom: 8px;
}
.popup-cart_related-item_weight {
    color: var(--color-gray-60);
}
.popup-cart_related-item_price {
    margin-top: auto;
}
.popup-cart_related-item_btn {
    margin-left: auto;
}
.popup-cart_related-item_btn svg {
    display: none;
}

.popup-cart_related-progress {
    margin-top: 24px;
    background: var(--color-gray-40);
}
.popup-cart_related-progress .slider-progress_fill {
    background: var(--color-gray-70);
}

.popup-cart_products ~ .popup-cart_related {
    margin-top: 40px;
}

.popup-cart_footer {
    padding: 24px 40px 40px 40px;
    border-radius: 32px 32px 0 0;
    background: var(--color-gray-0);
}
.popup-cart_totals {
    margin-bottom: 12px;
    user-select: none;
}
.popup-cart_totals_item {
    display: flex;
    justify-content: space-between;
}
.popup-cart_footer .btn {
    width: 100%;
}

.popup-cart_empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.popup-cart_empty .h5 {
    margin-bottom: 32px;
}
.popup-cart_empty .btn {
    border: 1px solid var(--color-black) !important;
}

@media (max-width: 992px) {
    .popup-cart_top {
        padding: 24px 16px 8px 16px;
        gap: 12px;
    }
    .popup-cart_content {
        padding: 12px 16px;
    }

    .popup-cart_product {
        gap: 0 16px;
    }
    .popup-cart_product-img {
        max-width: 90px;
        max-height: 90px;
    }
    .popup-cart_product-data {
        width: calc(100% - 106px);
    }
    .popup-cart_product-name {
        font-size: 16px;
        font-weight: 400;
        line-height: 22px;
    }
    .popup-cart_product-price {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
    }

    /* Related */
    .popup-cart_related {
        width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 16px 16px;
    }
    .popup-cart_related-item_img {
        margin-right: 16px;
    }

    .popup-cart_related-item_title {
        margin-bottom: 2px;
    }

    .popup-cart_related-item_btn {
        padding: 12px;
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
    .popup-cart_related-item_btn span {
        display: none;
    }
    .popup-cart_related-item_btn svg {
        display: block;
    }

    .popup-cart_footer {
        padding: 24px 16px 40px 16px;
    }
    .popup-cart_footer .subtitle-4 {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
    }
    .popup-cart_footer .subtitle-2 {
        font-size: 24px;
        font-weight: 500;
        line-height: 32px; /* 133.333% */
    }
}