@import "./_Font.css";
@import "./_utlils.css";
@import "./mobile.css";

*{
    margin: 0px;
    padding: 0pc;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: inherit;
}
html{
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.hero-section{
    width: 100vw;
    height: 80vh;
    background: linear-gradient(
            45deg,
            rgba(0,0,0, 0.60),
            rgba(0, 0, 0, 0.60)
    ),
    url("https://dl.updltel.ir/a9485312810");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1rem 2rem 10rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-position: center;
}
#header{
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
}
.header__login-button{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.80rem;
    background-color: #f3f3f3;
    padding: 0.5rem ;
    border-radius: 0.5rem;
    transition: all .5s ease-in-out;
}
.header__login-button:hover{
    background-color: #f8f8f8;
    transition: all 0.5s ease-in-out;
    border: black solid 0.50px;
}
.header__login-button image{
    width: 1rem;
    height: 1rem;

}
#cart{
    position: relative;
}
#cart img{
    width: 2rem;
    height: 2rem;
}
#cart_badge{
    background-color: #000;
    width: 1rem;
    height: 1rem;
    font-size: 0.8rem;
    border-radius: 50%;
    color: #ffffff;
    text-align: center;
    position: absolute;
    right: -1rem;
    top: -0.5rem;
}
#logout-button{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.80rem;
    background-color: #ff6e6e;
    padding: 0.5rem ;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}
#logout-button:hover{
    background-color: #fa1b1b;
    color: #ffffff;
}
#logout-button img{
    width: 0.80rem;
    height: 0.80rem;
}
.hero-section-content{
    color: white;
}
.see-products-arrow{
    width: 5rem;
    height: 5rem;
    animation: sliding 1s ease-in-out infinite alternate;
    background-color: #000;
    background: none;
    

}
@keyframes sliding{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-10px);
    }
}
.text-left{
    text-align: left;
}
.product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(20rem, 1fr));
    gap: 1rem;
}
.product-grid-item{
    display: flex;
    flex-direction: column;
    border: 1px solid #939393;
    border-radius: 0.5rem;
    transition: all .5s ease-in-out;
}
.product-grid-item:hover{
    border: 1px solid #000000;
}
.product-grid-item img{
    border-radius: 0.5rem;
}
.product-to-cart-section button{
    border: none;
    width: 100%;
    outline: none;
    padding: 0.5rem ;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: all .5s ease-in-out;
    color: white;
    background-color: black;

}
.product-to-cart-section:hover button{
    background-color: #ffffff;
    color: black;
}
.footer{
    background: linear-gradient(
        45deg,
        rgb(0,0,0),
        rgba(0,0,0, 0.80)
    );
    width: 100vw;
    color: #ffffff;
}
.up-arrow{
    background-color: #ffffff;
    margin: 2rem;
    border-radius: 2rem;
    animation: sliding 1s ease-in-out infinite alternate;
    width: 2rem;
    height: 2rem;
}
.up-arrow img{
    width: 100%;
    height: 100%;
}