.cart__empty {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.cart__empty .section__wrapper {
    width: 100%;
    flex-shrink: 0;
}

.cart__empty-descr {
    flex: 1;
}

.cart__empty-descr h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0a3426;
    margin-top: 0;
    overflow-wrap: break-word;
}

.cart__empty-descr-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.cart__links {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 280px
}

.cart__links-cat,
.cart__links-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .1s ease;
    padding: 17px 56px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    transition: all .3s ease-in
}

.cart__links-cat:hover,
.cart__links-main:hover {
    background-color: #a0c530
}

.cart__links-cat {
    background-color: #c9ed5f
}

.cart__links-main {
    background-color: #0a3426;
    color: #c9ed5f
}

.cart__links-main:hover {
    color: #020d09
}

.cart__full {
    display: grid;
    gap: 60px;
    grid-template-areas: "title title" "products form";
    grid-template-columns: auto 390px;
    padding-bottom: 60px
}

.cart__full .section__wrapper {
    display: flex;
    flex-direction: column;
    grid-area: title
}

.cart__form {
    width: 390px;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    border-radius: 10px;
    background-color: #e6ebe5;
    flex-shrink: 0;
    grid-area: form
}

.cart__form>p {
    margin-top: 10px
}

.cart__form-title {
    font-size: 20px;
    font-weight: 700
}

.cart__form form {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 14px
}

.cart__form form .form-group input[type=text],
.cart__form form .form-group input[type=tel],
.cart__form form .form-group input[type=email],
.cart__form form .form-group textarea {
    padding: 11px 10px;
    border: none;
    outline: none;
    border-radius: 5px;
    width: 100%;
}

.cart__form form .form-group input[type=text]::placeholder,
.cart__form form .form-group input[type=tel]::placeholder,
.cart__form form .form-group input[type=email]::placeholder,
.cart__form form .form-group textarea::placeholder {
    color: #9499a5;
    font-size: 16px
}

.cart__form form .form-group textarea {
    resize: none
}

.cart__form .form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .1s ease;
    font-size: 20px;
    font-weight: 700;
    max-width: 100%;
    border-radius: 30px;
    background-color: #c9ed5f
}

.cart__form .form__submit:hover {
    background: #518048;
    border-color: #518048;
    box-shadow: 0 1px 8px rgba(12, 6, 5, .3);
    text-shadow: 0 0 .8px currentColor;
    color: #fff
}

.cart__form .form__submit:disabled {
    background-color: gray;
    color: #fff;
    border: none;
    cursor: not-allowed
}

.cart__form .form__submit,
.cart__form .form__agree {
    margin-right: 0
}

.cart__form .form__note {
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #0c0605;
    color: #9499a5
}

.cart__products {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    grid-area: products
}

.cart__products-title {
    display: grid;
    width: 100%;
    grid-template-columns: 80px 3fr 1fr 24px;
    gap: 20px;
    padding: 5px 20px
}

.cart__products-title .title {
    grid-column: 1/3;
    margin-left: -15px
}

.cart__products-title .sum {
    grid-column: 3/4
}

.cart__item {
    display: grid;
    width: 100%;
    grid-template-areas: "image name controls del";
    grid-template-columns: 80px 3fr 1fr 24px;
    align-items: center;
    border: 1px solid #dfe4f3;
    padding: 20px;
    gap: 20px;
    border-radius: 4px
}

.cart__item-img {
    grid-area: image;
    width: 80px;
    height: 80px;
    border-radius: 2px
}

.cart__item-img img {
    object-fit: cover;
    width: 100%
}

.cart__item-name {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.cart__item-name span {
    font-size: 12px;
    color: #9499a5
}

.cart__item-controls {
    grid-area: controls;
    display: flex;
    flex-direction: row;
    height: 30px
}

.cart__item-controls button,
.cart__item-controls input {
    width: 30px;
    height: 100%;
    text-align: center;
    border: 1px solid #e6ebe5;
    background-color: #e6ebe5;
    cursor: pointer;
    outline: none
}

.cart__item-controls button.minus {
    border-radius: 5px 0 0 5px;
    border-right: 1px solid #f5f5f5
}

.cart__item-controls button.plus {
    border-radius: 0 5px 5px 0;
    border-left: 1px solid #f5f5f5
}

.cart__item-del {
    grid-area: del;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    outline: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center
}

.cart__item-del img {
    width: 100%;
    height: 100%
}

@media screen and (max-width: 992px) {
    .cart__products-title {
        display: none
    }
    .cart__full {
        gap: 16px;
        grid-template-columns: auto 350px
    }
    .cart__form {
        width: 100%
    }
    .cart__item {
        grid-template-columns: 125px 1fr 25px;
        grid-template-areas: "image name  del" ". controls  .";
        padding: 18px;
        gap: 8px
    }
    .cart__item-del {
        justify-self: flex-end
    }
    .cart__item-controls {
        width: 100%;
        margin-left: -25px
    }
    .cart__item-controls input {
        width: 50px
    }
    .cart__item-name {
        align-self: start;
        max-width: 100%;
        height: 100%;
        white-space: initial;
        margin-left: -25px
    }
    .cart__item-del {
        align-self: start;
        justify-self: flex-end
    }
}

@media screen and (max-width: 768px) {
    .cart__full {
        grid-template-columns: auto 300px
    }
}

@media screen and (max-width: 692px) {
    .cart__full {
        display: flex;
        flex-direction: column
    }
    .cart__form {
        width: 100%
    }
}


@media screen and (max-width: 768px) {
    .cart__empty {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    
    .cart__empty .section__wrapper {
        width: 100%;
    }
    
    .cart__empty-descr {
        width: 100%;
        min-width: 0;
        overflow: visible; 
    }
        .cart__links {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-top: 40px;
        margin-bottom: 60px;
    }
    
}


@media screen and (max-width: 480px) {
    .cart__empty {
        gap: 20px;
        margin-top: 25px;
    }
    
    .cart__empty-descr h1 {
        font-size: 20px;
        font-size: clamp(18px, 5vw, 22px);
    }
    
    .cart__empty-descr-text {
        font-size: 14px;
        font-size: clamp(14px, 4vw, 16px);
    }
}