.header_cart{
    display: flex;
    justify-content: space-between;
    padding: 0 4vw;
}
/* ===== CART ITEM ===== */

.my-cart-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #E0E4E8;
    position: relative;
}

.my-cart-thumb img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 6px;
}

.my-cart-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.my-cart-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    text-decoration: none;
}

.my-cart-name:hover {
    text-decoration: underline;
}

.my-cart-price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.my-cart-qty input.qty {
    width: 60px !important;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    text-align: center;
}

.my-cart-remove {
    font-size: 20px;
    color: #666;
    text-decoration: none;
    padding: 5px;
}

.my-cart-remove:hover {
    color: #000;
}
.my-cart-thumb img{
    max-height: 120px !important;
    height: 100% !important;
}
.my-cart-items{
    width: 30% ;
}
@media (max-width: 600px) {


    .my-cart-remove {
        top: 10px;
        right: 10px;
    }
}
.my-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    overflow: hidden;
    height: 42px;
    width: 120px;
}

.my-qty-btn {
    width: 40px;
    text-align: center;
    font-size: 20px;
    color: #555;
    background: #fff;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.my-qty-btn:hover {
    background: #F3F4F6;
}

.my-qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    outline: none;
    -moz-appearance: textfield;
}

.my-qty-input::-webkit-outer-spin-button,
.my-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty_block{
    display: flex;
    align-items: center;
}
.remove_block{
    display: flex;
    align-items: center;
}

.my-cart-summary {
    border: 1px solid #D6DFE6;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    width: 100%;
}

.free-shipping-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.free-progress {
    width: 100%;
    height: 6px;
    background: #E8ECF1;
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
}

.free-progress-fill {
    height: 100%;
    background: #AFC4DA;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #B5C9DF;
    padding: 18px 0;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    background: #a2bad0;
}

.shipping-note {
    text-align: center;
    font-size: 14px;
    color: #7A8895;
    margin-bottom: 25px;
}

.coupon-form {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #BCC5CE;
    padding-bottom: 5px;
}

.coupon-form input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 16px;
    padding: 5px;
}

.apply-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #98A4B2;
    font-weight: 500;
    cursor: pointer;
}
.block_cart{
    display: flex;
    justify-content: center;
}
@media (max-width: 700px) {
    .my-cart-items{
        width: auto;
    }
    .block_cart{
        display: block;

    }
}
@media (max-width: 600px) {

    .my-cart-item {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        overflow: hidden;
        box-sizing: border-box;
        padding: 10px 0;
    }

    .my-cart-thumb {
        flex: 0 0 80px; /* фиксированная ширина миниатюры */
    }

    .my-cart-thumb img {
        width: 80px !important;
        height: 80px !important;
        object-fit: contain;
        display: block;
    }

    .my-cart-info {
        flex: 1 1 auto;
        min-width: 0; /* важно! предотвращает выход за экран */
    }

    .qty_block {
        flex: 0 0 80px;
    }

    .remove_block {
        flex: 0 0 24px;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }

}
