@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: "Google Sans", san serif;
    box-sizing: border-box;
}

body{
    background-color: #ccc;
}

.header{
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ff742b;
    color: #fff; 
    z-index: 1;
}

.header img{
    width: 30px;
}

.dropdown{
    display: block;
    position: relative;
}

.container{
    padding: 100px 10px 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    overflow-x: clip;    
} 

.product-items{
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all .45s ease;
} 

.product-items img{
    width: 30px;
    margin-bottom: 5px;
}

.product-items h4{
    font-size: 0.93rem;
    text-align: center;
    margin-bottom: 5px;
}

.product-items p{
    font-size: 0.93rem;
    text-align: center;
}

.product-items button{
    position: absolute;
    left: 10px;
    top: 50%;
    background-color: #ff742b;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 6px;
    opacity: 0;
    cursor: pointer;
}

.product-items:hover button{
    transition: 0.1s;
    opacity: 1;
    transform: translateY(-50%);
}

.list-cart{
    display: none;
    background-color: #2a2a2a;
    width: 200px;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 5px;
    margin-top: 40px;
    margin-right: -18px;
    z-index: 1;
}

.list-cart h3{
    color: #ff742b;
    font-weight: 700;
    margin-top: 5px;
    padding-left: 5px;
    
}

.items{
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    color: #fff;
}

.items h4{
    font-size: 14px;
}

.items-btn{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    text-align: center;
}

.items-btn button{
    height: 15px;
    width: 14px;

}

.checkout{
    background-color: #ff742b;
    margin-top: 50px;
    padding: 5px 0;
    text-align: center;
}

.checkout a{
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    
}

.dropdown:hover .list-cart{
    display: block;
}

.checkout-container1{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-container2{
    width: 300px;
    background-color: #ff742b;
    border-radius: 9px;
}

.checkout-form{
   margin:15px;
   padding:15px 5px;
   border-bottom: 2px solid white;
}

label{
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
}

input{
    border: none;
    border-radius: 18px;
    width: 90%;
    padding: 7px 10px;
    margin-bottom: 10px;  
    outline: none;  
    font-size: 16px;
    
}

#submit{
    font-size: 17px;
    font-weight: 500;
    margin: 20px 0;
}

.checkout-qty{
    color: #fff;
    font-size: 1rem;
    padding: 0px 20px 15px;
}

.checkout-qty p{
    margin-bottom: 5px;
}

.checkout-container2 .keep-shopping{
    text-align: right;
    padding: 0 18px 20px;
}

.checkout-container2 a{
    text-decoration: none;
    color: #fff;
}


@media (min-width: 600px){

    .container{
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .product-items{
        padding: 10px;
    }

    .product-items img{
        width: 50px;
    }

    .product-items h4,
    .product-items p{
        font-size: 1rem;
    }

    .list-cart{
        width: 250px;
    }
}

@media (min-width: 1020px){

    .header{
        padding: 0 50px;
        height: 70px;
    }

    .header h2{
        font-size: 1.5rem;
    }

    .header img{
        width: 45px;
    }

    .container{
        padding: 120px 10%;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .product-items{
        height: 180px;
        padding: 15px;
    }

    .product-items img{
        width: 70px;
    }

    .product-items button{
        padding: 10px;
        font-size: 14px;
    }

    .list-cart{
        position: absolute;
        width: 300px;
        top: 18px;
        margin-right: -50px;
    }
    
    .checkout-container2{
        width: 400px;
    }
    
    .checkout-form label, .checkout-qty p, .keep-shopping{
        font-size: 1.2rem;
    }
}
