/* page Checkout */
body {
    background-color: #f9f9f9;
}
.btn4 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 60px;
    border-radius: 30px;
    font-size: 20px;
    margin-top: 3vh;
    background-color: orangered;
    text-decoration: none;
    color:#fff
}
.btn4:hover {
    background-color: rgb(83, 71, 67);
    width: 250px;
    height: 60px;
    border-radius: 30px;
    font-size: 20px;
    color: #fff;
}
.checkoutLayout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 50px;
    padding: 20px;
}
.checkoutLayout .list .item {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust the gap between elements as needed */
    border: 1px solid #ddd; /* Add border for better visibility */
    padding: 10px;
    box-sizing: border-box; /* Include padding in the total width */
}
.checkoutLayout .right {
    background-color: orangered;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
}
.checkoutLayout .list img {
    height: 70px;
}
.checkoutLayout .right .form {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    border-bottom: 1px solid #7a7fe2;
    padding-bottom:20px ;
}
.checkoutLayout .form .group:nth-child(-n+3){
    grid-column-start: 1;
    grid-column-end: 3;
}
.checkoutLayout .form input,
.checkoutLayout .form select {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    border-radius: 20px;
    margin-top: 10px;
    border: none;
    background-color: rgb(255, 156, 120);
    color: #fff;
}
.checkoutLayout .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.checkoutLayout .row div:nth-child(2){
    font-weight: bold;
    font-size: x-large;
}
.buttonCheckout {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: bold;
    color: #fff;
    background-color: #4a4a4a;
}
.returnCart h1 {
    border-top: 1px solid #eee;
    padding: 20px 0;
}
.returnCart .list .item img {
    height: 80px;
}
.returnCart .item {
    display: grid;
    grid-template-columns: 80px 1fr 50px 80px;
    align-items: center;
    gap: 20px;
    margin-bottom:30px;
    padding: 0 10px;
    box-shadow: 0 10px 20px #555;
    border-radius: 20px;
}
.returnCart .item .name ,
.returnCart .item .returnPrice {
    font-size: x-large;
    font-weight: bold;
}
.listProduct {
    grid-template-columns: 1fr; 
    
}

/* responsiveness*/


.listProduct {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Styles for screens smaller than 768 pixels */
@media screen and (max-width: 768px) {
    body {
        padding: 20px; 
        margin: 0; 
    }

    .cart {
        right: 0; 
        width: 100%;
    }

    .checkoutLayout {
        grid-template-columns: 1fr; 
        max-width: 100%; 
        margin: 0; 
    }

    .checkoutLayout .right {
        margin-top: 20px; 
        padding: 20px; 
    }
}





/* MAIN */


.listProduct {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
}

/* Styles for screens between 320px and 480px */
@media screen and (min-width: 320px) and (max-width: 480px) {
    body {
        padding: 20px; 
    }

    .cart {
        right: 0; 
        width: 100%;
    }

    .checkoutLayout {
        grid-template-columns: 1fr; 
        max-width: 100%; 
    }

    .checkoutLayout .right {
        margin-top: 20px; 
        margin-left: 10px; 
        padding: 20px; 
    }

    .listProduct {
        grid-template-columns: 1fr; 
    }
}


.listProduct {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
}

/* Styles for screens between 320px and 480px */
@media screen and (min-width: 320px) and (max-width: 480px) {
    body {
        padding: 20px; 
    }

    .cart {
        right: 0; 
        width: 100%;
    }

    .checkoutLayout {
        grid-template-columns: 1fr; 
        max-width: 100%; 
    }

    .checkoutLayout .right {
        margin-top: 20px; 
        margin-left: 10px; 
        padding: 20px; 
        width: 95%;
        margin-left: -30px;
       
    }

    .listProduct {
        grid-template-columns: 1fr; 
    }
    .checkoutLayout .returnCart {
        margin-left: -30px;
    }

}
