@tailwind base;
@tailwind components;
@tailwind utilities;


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li {
    list-style: none;
}
.login , .register {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
}
.container {
    padding: 0 50px;
    margin: 0 auto;
}
header {
    height: fit-content;
    box-shadow: 0 0 13px 0 #a4a4a4;
    margin-bottom: 50px;
    padding: 10px 0;
}
header .container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    height: fit-content;

}

header .container .user {
    display: flex;
    gap: 20px;
}
header .user button,
.login button,
.register button,
.addToCar,
.removeProduct {
    color: white;
    background-color: rgb(0, 208, 188);
    padding: 5px 10px;
    border-radius: 5px;
}



.login , .register {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.login .form ,
.register .form {
    width: 500px;
    height: 300px;
    position: relative;
}
.login .form input,
.register .form input {
    display: block;
    border: 1px solid rgb(174, 174, 174);
    width: 100%;
    padding: 5px 10px;
}
.login .form button ,
.register .form button ,
.addToCar,
.removeProduct{
    display: flex;
    margin: 25px auto;
}


.alertPass {
    position: absolute;
    width: fit-content;
    padding: 5px 10px;
    color: red;
    top: 135px;
    left: 0;
}

#UserName {
    font-size: 20px;
    align-self: center;
}
#userImage {
    width: 60px;
    height: 50px;
    border-radius: 9999px;
    align-self: center;
}
#nameAlert,
#EmailAlert,
#PassAlert,
#LPassAlert {
    color: red;
}


.productBox {
    max-height: 450px;
    box-shadow: 0 0 13px 0 #a4a4a4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
}
.productBox:hover {
    transform: scale(1.05);
}
.price {
    font-size: 20px;
}
.productImage {

    height: 200px;
}
button {
    transition: 0.3s;
}
button:hover {
    background-color: rgb(0, 183, 164);
}
button:active {
    transform: scale(0.95);
}
a {
    transition: 0.3s;
}
a:hover {
    background-color: rgb(0, 183, 164);
}
a:active {
    transform: scale(0.95);
}

.cartBtn {
    align-self: center;
    font-size: 20px;
    color: white;
    background-color: rgb(0, 208, 188);
    padding: 5px 10px;
    border-radius: 5px;
}
.cart .productName {
    width: 370px;
}
.productInCart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 100%;
    padding: 5px 15px;
    gap: 40px;
    box-shadow: 0 0 13px 0 #a4a4a4;
    transition: 0.3s;
}
.productInCart:hover {
    transform: scale(1.05);
}
.productInCartImage {
    width: 100px;
}

@media(width < 640px) {
    .productInCart {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
    }
    header .container {
        padding: 0 20px;
    }

}
@media(width < 680px) {
    .productInCart {
        gap: 15px;
    }
    .form {
        width: 100% !important;
    }
    
}
@media(width < 450px) {
    .totalPriceSection {
        margin: 0 auto;
    }
    .productInCart {
        max-width: 90%;
        margin: 0 auto;
    }
    .cart .productName {
        width: 100%;

    }
    .cart .container {
        padding: 20px;
    }
    #UserName {
        font-size: 16px;
    }
    header .container .user {
        gap: 10px;
    }
    header .container {
        width: 100%;
        margin: 0;
    }
    header {
        width: 100%;
    }
    
}
@media(width < 420px) {
    header .container .user {
        width: 100%;
        justify-content: space-between;
    }
}
@media (width <400px) {
    .cartBtn,
    #LogOut {
        font-size: 16px ;
    }

}

.Alert {
    background-color: white;
    font-size: 20px;
    padding: 10px;
    box-shadow: 0 0 13px 0 #a4a4a4;
    position: relative;
    top: 20px;

}
.Alert::before {
    content: "";
    height: 100%;
    width: 5px;
    background-color: rgb(3, 209, 3);
    position: absolute;
    left: 0;
    margin-bottom: 10px;
}
.cartCount {
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    border-radius: 9999px;
    background-color: red;
    top: -5px;
    right: -5px;
}