body {
    /* font-family: monospace; */
    overflow-x: hidden;
    font-synthesis: 15px;
}

a {
    text-decoration: none;
}

.container {
    width: 1200px;
    margin: auto;
    max-width: 90%;
    transition: transform 1s;
}

header img {
    width: 60px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .iconCart {
    position: relative;
    z-index: 1;
}

header .totalQuantity {
    position: absolute;
    top: 0;
    right: 0;
    font-size: x-large;
    background-color: #b31010;
    width: 40px;
    height: 40px;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transform: translateX(20px);
}

.listProduct {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.listProduct .item img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.listProduct .item {
    position: relative;
}

.listProduct .item h2 {
    font-weight: 700;
    font-size: x-large;
}

.listProduct .item .price {
    font-size: x-large;
}

.listProduct .item button {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #e6572c;
    color: #fff;
    width: 50%;
    border: none;
    padding: 20px 30px;
    box-shadow: 0 10px 50px #000;
    cursor: pointer;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

.listProduct .item:hover button {
    transition: 0.5s;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart {
    color: #fff;
    position: fixed;
    width: 400px;
    max-width: 80vw;
    height: 100vh;
    background-color: #0E0F11;
    top: 0px;
    right: -100%;
    display: grid;
    grid-template-rows: 50px 1fr 50px;
    gap: 20px;
    transition: right 1s;
}

.cart .buttons .checkout {
    background-color: #E8BC0E;
    color: #000;
}

.cart h2 {
    color: #E8BC0E;
    padding: 20px;
    height: 30px;
    margin: 0;
}


.cart .listCart .item {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;

}

.cart .listCart img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.cart .listCart .item .name {
    font-weight: bold;
}

.cart .listCart .item .quantity {
    display: flex;
    justify-content: end;
    align-items: center;
}
.quantity{
    text-align: center;
    border: 1px solid;
    border-radius: 2px;
}
.cart .listCart .item .quantity span {
    display: block;
    width: 50px;
    text-align: center;
}

.cart .listCart {
    padding: 20px;
    overflow: auto;
}

.cart .listCart::-webkit-scrollbar {
    width: 0;
}

.cart .buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}

.cart .buttons div {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

.cart .buttons a {
    color: #fff;
    text-decoration: none;
}

.checkoutLayout {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    /* padding: 20px; */
    margin-bottom: 20px;
}

.right {
    background-color: #5358B3;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    margin: 0;
    /* min-width: -webkit-fill-available; */
    min-width: 266px;
}

.right .form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    border-bottom: 1px solid #7a7fe2;
    padding-bottom: 20px;
}

.form h1,
.form .group:nth-child(-n+3) {
    grid-column-start: 1;
    grid-column-end: 3;
}

.form input,
.form select {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    border-radius: 20px;
    margin-top: 10px;
    border: none;
    background-color: #6a6fc9;
    color: #fff;
    outline: none;
}

.right .return .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.right .return .row div:nth-child(2) {
    font-weight: bold;
    font-size: x-large;
}

.buttonCheckout {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    background-color: #49D8B9;
    margin-top: 20px;
    font-weight: bold;
    color: #fff;


}

#returnCart h1 {
    border-top: 1px solid #eee;
    padding: 20px 0;
}

#returnCart .list .item img {
    height: 80px;
}
.plus{
    border-left: 1px solid;
    margin-left: 5px;
    padding-left: 6px;
}
i:hover{
    cursor: pointer;
}
.minus{
    border-right: 1px solid;
    /* margin-top: 5px; */
    margin-right: 5px;
    padding-right: 6px;
}
#returnCart .list .item {
    display: grid;
    grid-template-columns: 80px 1fr 71px 80px;
    align-items: center;
    gap: 20px;
    /* margin-bottom: 30px; */
    padding: 0 10px;
    box-shadow: 0 10px 20px #5555;
    border-radius: 20px;
    margin-right: 20px;
}

#returnCart .list .item .name,
#returnCart .list .item .returnPrice {
    font-size: 12px;
    font-weight: bold;
}

#modal {
    display:none;
    position: absolute;
    /* left: 32%; */
    border-radius: 5px;
    margin: 0 auto;
    background: white;
    top: 223px;
    /* min-width: 217px; */
    right: 138px;
    left: 144px;
    width: 300px;
    margin-top: -20px;
    /* transform: scale(0.9); */
    transform: translate(-2%, 11%) scale(1.3);
    transition: transform 0.4s, top 1s;
    visibility: hidden;
    /* display: none; */
}

.open_model {
    /* display: block; */
    visibility: visible;
    transform: translate(-5%, -45%)scale(1);
    top: 39%;
    display: block
}

#ok {
    width: 69%;
    color: white;
    background: #6ac445;
    border: navajowhite;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    margin: 0px auto 16px auto;
    padding: 7px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.check {
    text-align: center;
    font-size: 41px;
    background: #6ac445;
    color: white;
    padding: 12px;
    border-radius: 50%;
}
@media screen and (min-width:600px) {
    .open_model{
        transform: translate(-5%, -45%)scale(1.1);
        top: 56%;
    /* left: 25%; */
    }
    .modal{
        width: 321px;
    }
}
@media screen and (max-width:600px) {
    .open_model{
        top: 56%;
    left: 24%;
    }
    
}
@media screen and (min-width : 1024px) {
    #returnCart{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        /* background: aqua; */
        padding: 38px;
        /* box-shadow: 0 10px 20px #5555; */
        border-radius: 33px;
    }
        .checkoutLayout{
         margin-bottom: 10px;
         height: fit-content;
    }
}