.img {
    width: 256px;
    border-left: 1px solid var(--border-cl);
    padding: 32px;
}

.img img {
    width: 100%;
}

.product {
    display: flex;
    gap: 32px;
    align-items: center;
}

.about {
    flex-grow: 1;
}

.name {
    font-size: 24px;
    font-weight: bold;
}

.description {
    max-width: 800px;
    color: var(--sub-font-cl);
}

.price {
    font-size: 32px;
    color: green;
    font-weight: bold;
}

.counter-cnt {
    width: 120px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-cl);
    display: flex;
}

.counter-cnt button {
    width: 40px;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    fill: var(--font-cl);
}

#add-btn {
    border-left: 1px solid var(--border-cl);
}

#remove-btn {
    border-right: 1px solid var(--border-cl);
}

.counter-cnt .quantity {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products li {
    margin-top: 32px;
}

.products {
    border-bottom: 1px solid var(--border-cl);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    font-size: 32px;
    font-weight: bold;
}

.buynow-btn {
    display: block;
    margin: 16px auto 0 0;
    background-color: var(--main-cl);
    font-size: 18px;
    color: var(--font-cl);
    border-radius: 8px;
    padding-inline:  16px;
    height: 48px;
}

.delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    fill: #fff;
    background-color: red;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.order-confirm {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #1DC15C;
    border-radius: 12px;
    background-color: rgb(29, 193, 92, .1);
}

.order-confirm p {
    color: #1DC15C;
}

.order-confirm button {
    width: 128px;
    height: 48px;
    border-radius: 8px;
}

.confirm {
    background-color: #1DC15C;
}

.cancel {
    background-color: #ff0000;
}

.order-confirm .btns-cnt {
    display: flex;
    align-items: center;
    gap: 16px;
}

.empty-cart-cnt {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-cnt p {
    font-size: 24px;
}

.counter-cnt .quantity {
    background-color: var(--background-primary);
    text-align: center;
    color: var(--font-cl);
}

.alert {
    background-color: #ff0000;
    text-align: center;
    padding: 16px;
}

.order-query {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ff0000;
    border-radius: 12px;
    background-color: rgb(255, 0, 0, .1);
}

.order-query p,
.order-query a {
    color: #ff0000;
    font-size: 16px;
}

.order-query a {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    main {
        padding: 16px;
    }
    .img {
        border: none;
    }
    .product {
        flex-direction: column;
        gap: 8px;
        border: 1px solid var(--border-cl);
        border-radius: 16px;
        padding: 16px;
    }   

    .controls {
        width: 100%;
        justify-content: space-between;
    }

    .about {
        font-size: 14px;
    }
}