.cart {
    max-width: 1386px;
    margin: 0 auto;
    padding: 0 40px 120px;
}

.cart-title {
    font-size: 36px;
    font-weight: 700;
    color: #C41F7B;
    text-align: center;
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 0;
    border-top: 2px solid var(--Primary-Pink, #C41F7B);
}

.cart-item:last-child {
    border-bottom: 2px solid #C41F7B;
}


.cart-item>* {
    flex: 1;
    min-width: 0;
    /* щоб контент не ламав макет */
}

.cart-item:last-child {
    border-bottom: 2px solid var(--Primary-Pink, #C41F7B);
}

.cart-item-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.cart-item img {
    width: 140px;
    height: 139px;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    font-family: Helvetica;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
    /* 30px */
}

.cart-item-price {
    font-family: Helvetica;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
    /* 30px */
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
}

.cart-item-quantity {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.quantity-minus {
    display: flex;
    align-items: center;
}

.quantity-minus,
.quantity-plus {
    background-color: inherit;
    color: #FFF;
    border: none;
    border-radius: 8px;
    padding: 20px 10px;
    font-size: 20px;
    cursor: pointer;
}

.quantity-value {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    width: 59px;
    height: 39px;
    padding: 4px 21px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    font-family: Helvetica;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;

}

.cart-item-remove {
    background-color: transparent;
    flex: 0.05;
    border: none;
    font-size: 20px;
    color: #C41F7B;
    cursor: pointer;
    transition: 0.3s;

    &:hover {
        transform: scale(1.1);
    }

    &:active {
        transform: scale(0.9);
    }
}

.cart-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

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

.cart-total {
    color: #000;
    font-family: Helvetica;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;

    & span {
        font-weight: 400;
    }
}

.checkout-btn,
.clear-cart-btn {
    background-color: #C41F7B;
    color: #FFF;
    padding: 18px 45px;
    border-radius: 15px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    font-family: Helvetica;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    transition: 0.3s;
    text-decoration: none;
}

.checkout-btn:hover,
.clear-cart-btn:hover {
    background-color: #E147A3 !important;
    transform: scale(1.1);
}

.quantity-minus svg path,
.quantity-plus svg path {
    transition: stroke 0.3s ease, transform 0.2s ease;
    transform-origin: center;
}

.quantity-minus:hover svg path,
.quantity-plus:hover svg path {
    transform: scale(1.1);
    border-radius: 50%;
}

.emptyBasket {
    color: var(--Button-Primary-Pink, #C41F7B);
    text-align: center;
    font-family: Helvetica;
    font-size: 80px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    /* 100px */
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    gap: 50px;
}

@media (max-width: 768px) {

    .basket-btns {
        gap: 15px;
        flex-direction: column;
    }

    .emptyBasket {
        font-size: 35px;
        line-height: 150%;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 100px 1fr auto;
        grid-template-rows: auto auto auto;
        column-gap: 12px;
        row-gap: 8px;
        padding: 12px 0;
        border-top: 2px solid #C41F7B;
        align-items: stretch;
    }

    .cart-item-info {
        display: contents;
    }

    .cart-item-info img {
        grid-column: 1;
        grid-row: 1 / -1;
        width: 100%;
        height: 100%;
        object-fit: none;
        border-radius: 15px;
    }

    .cart-item-details {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        align-self: start;
        font-family: "Open Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        padding-right: 20px;
    }

    .cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 4px;
        /* align-self: start; */
        align-self: center;
    }

    .cart-item-price {
        grid-column: 2;
        grid-row: 3;
        font-size: 20px;
        font-weight: 700;
        color: #000;
        align-self: start;
        text-align: start;
        font-family: Helvetica;
        font-size: 18px;
        font-style: normal;
        font-weight: 300;
        line-height: 125%;
        align-self: center;
    }

    .quantity-value {
        font-size: 17px;
        padding: 6px 11px;
    }

    .cart-item-remove {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: center;
        justify-self: center;
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        cursor: pointer;
        padding: 0;
        position: absolute;
        right: 16.5px;
        /* margin-top: 25px; */
    }

    .cart {
        padding: 0 16.5px 80px;
    }

    .cart-item-remove svg {
        width: 17px;
        height: 21px;
    }

    .cart-total {
        font-size: 18px;
    }

    .quantity-value {
        width: 32px;
    }

    .quantity-plus svg {
        width: 20px;
    }

    .quantity-minus,
    .quantity-plus {
        display: flex;
    }

    .cart-footer {
        width: 100%;
    }

    .cart-items {
        margin-bottom: 20px;
    }

    .checkout-btn,
    .clear-cart-btn {
        text-align: center;
        text-transform: uppercase;
        font-size: 16px;
    }
}