.cart.wrapper {
    display: flex;
    margin-top: 100px;
    min-height: 100vh;
}

.product {
    height: fit-content;
    display: flex;
    background: #fff;
    border-radius: var(--main-radius);
    margin-right: 13px;
    margin-bottom: 13px;
}

.products {
    width: 70%;
}

.products .before-sale {
    text-align: end;
    font-size: 15px;

    margin-bottom: -3px;
}

.checkbox {
    width: 18px;
    height: 18px;
}

.left {
    max-width: 300px;
    height: 100%;
}

.slider {
    width: 274px;
}

.slider img {
    max-height: 205px;
    object-fit: cover; /* Do not scale the image */
    object-position: center; /* Center the image within the element */
    aspect-ratio: 4 / 3;
}

.itc-slider-item {
    height: 205px;
}

.right {
    margin: 20px;
    width: 100%;
}

.itc-slider-wrapper {
    border-radius: var(--main-radius);
}

.buy {
    width: 180px;
    background: var(--black);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    border-radius: 15px;
    font-family: Nequn;
    font-weight: 400;
    font-size: 24px;
    line-height: 90%;
    letter-spacing: 0.05em;
}

.change-count {
    justify-content: flex-end;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.to-cart-box {
    margin-bottom: 13px;
}

.cost {
    font-weight: 400;
    font-size: 24px;
    line-height: 125%;
    letter-spacing: 0.05em;
    color: #000;
}

.product-name {
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    color: #000;
}

.one-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 10px;
}

.two-row {
    display: flex;
    justify-content: space-between;
    height: calc(100% - 44px);
}

.two-row .description {
    max-width: 50%;
    font-weight: 300;
    font-size: 22px;
    line-height: 136%;
    letter-spacing: 0.05em;
}

.checkbox {
    position: absolute;
    z-index: 2;
    margin-left: 22px;
    margin-top: 22px;
}

.main-info {
    min-width: 340px;
    width: 650px;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: var(--main-radius);
    min-height: 150px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.main-info-wrapper {
    margin-top: 22px;
    margin-bottom: 22px;
    width: 93%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.main-info h5 {
    font-weight: 500;
    font-size: 28px;
    line-height: 107%;
}

.main-info .row-one {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-info .cost {
    font-weight: 600;
    font-size: 32px;
    line-height: 94%;
    letter-spacing: 0.05em;
}

.main-info .to-buy {
    width: 316px;
    background: var(--accent);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    border-radius: 15px;
    font-family: Nequn;
    font-weight: 400;
    font-size: 28px;
    line-height: 90%;
    letter-spacing: 0.05em;
}

.main-info .before-sale {
    text-align: end;
}

.one-photo {
    max-height: 205px;
    height: 205px;
    object-fit: cover; /* Do not scale the image */
    object-position: center; /* Center the image within the element */
    width: 266.66px;
    aspect-ratio: 4 / 3;
    border-radius: var(--main-radius); 
    margin-bottom: -5px;
}

.delete {
    font-size: 16px;
    color: #a6a6a6;
    margin-top: 30px;
    margin-left: 10px;
    text-decoration: underline;
    cursor: pointer;
}

.wholesale_info {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    background: #fff;
    margin-bottom: 13px;
    padding: 20px;
    border-radius: var(--main-radius);
    margin-right: 13px;

}

.wholesale_info p {
    margin-bottom: 10px;
}

.contact-phone-number h5 {
    font-weight: 400;
    font-size: 24px;
    line-height: 125%;
    letter-spacing: 0.05em;
}

.contact-phone-number > * > div {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
}


@media (max-width: 1440px) {
    .main-info {
        width: 35vw;
    }

    .slider {
        width: 274px;
    }

    .slider img {
        max-height: 205px;
    }
    
    .itc-slider-item {
        height: 205px;
    }
}

@media(max-width: 1330px) {
    .two-row .description  {
        max-width: 90%;
    }
}

@media (max-width: 1260px) {
    .two-row .description {
        display: none;
    }
    
    .two-row {
        justify-content: flex-end;
        height: fit-content;
    }

    .right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .buttons {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 1140px) {
    .one-row {
        flex-direction: column;
        align-items: start;
    }
    .buttons {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .buttons .to-cart-box {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .products .before-sale {
        text-align: start;
    }

    .right {
        margin: 10px
    }

    .slider {
        width: 290px;
    }

    .slider img, .one-photo {
        height: 215px;
        max-height: 215px;
        width: 286px;
    }

    .itc-slider-item {
        height: 215px;
    }

    .main-info {
        min-width: 250px;
        width: 30vw;
    }

    .main-info .buttons {
        align-items: flex-end;
        margin-top: 10px;
    }

    .main-info .cost {
        font-size: 26px;
    }

    .buttons .to-buy {
        width: 167px;
        padding: 10px;
        height: 65px;
    }
}

@media (max-width: 880px) {
    .product {
        margin-right: 0;
    }
    .main-info {
        position: fixed;
        z-index: 3;
        min-width: 250px;
        width: 100vw;
        bottom: 0;
        left: 0;
        min-height: 100px;
        border-radius: 0;
        top: auto;
    }
    .main-info-wrapper {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .buttons .to-buy {
        padding: 0;
        height: 43px;
        width: 100%;
        max-width: 395px;
    }

    .products, .product {
        width: 100%;
    }
    footer {
        margin-bottom: 100px;
    }
}

@media(max-width: 600px) {
    .product {
        flex-direction: column;
    }
    /* .buttons {
        align-items: center;
    } */
    .slider {
        width: 100%;
    }
    .itc-slider-items {
        width: 100%;
    }
    .itc-slider-item {
        height: auto;
    }
    .slider img, .one-photo {
        width: 100%;
        max-height: none;
        height: auto;
    }
    .left {
        max-width: none;
        width: 100%
    }
    .right .buttons {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    .right .buttons .buy {
        margin-left: 10px;
    }
    .right {
        margin: 22px;
    }

    .wholesale_info {
        font-size: 17px;
    }
    .contact-phone-number h5 {
        font-size: 20px;
    }
    
    .contact-phone-number > * > div {
        font-size: 18px;
    }
}

@media (max-width: 460px) {
    .right .buttons {
        width: 100%;
        flex-direction: column;
        align-items: flex-start
    }
    .right .buttons .buy {
        margin-left: 0px;
    }
    .right {
        margin: 22px;
    }
}