@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

:root{
    --orange: #fd7d14;
    --black: #131218;
    --light-color: #666;
    --box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
    --border: .2rem solid rgba(0,0,0,.1);
    --outline: .1rem solid rgba(0,0,0,.1);
    --outline-hover: .2rem solid var(--black);
    --white: #fff;
}

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    /* text-transform: capitalize; */
    transition: all .2s linear;
}

html{
    font-size: 62,5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body{
    background: #f1f2f3;
}

section{
    padding: 2rem 9%;
}

.heading{
    text-align: center;
    padding: 2rem 0;
    padding-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--black);
}

.heading span{
    background: var(--orange);
    color: var(--white);
    display: inline-block;
    padding: .5rem 3rem;
    clip-path: polygon(100% 0, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding: .6rem 2rem;
    font-size: 1.4rem;
    border-radius: .5rem;
    border: .15rem solid var(--black);
    color: var(--black);
    cursor: pointer;
    background: none;
}

.btn:hover {
    background: var(--orange);
    color: var(--white);
}

/* Menu */
.header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 9%;
    background: #003869;
    box-shadow: var(--box-shadow);
}

.header .logo{
    padding-top: 1.5rem;
}

.header .navbar{
    padding: 0 5rem;
}

.header .navbar .nav_links{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .navbar .nav_links .nav_item{
    list-style: none;
    display: inline-block;
}

.header .navbar .nav_links .nav_item a{
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.8rem;
    color: var(--white);
}

.header .navbar .nav_links .nav_item a:hover{
    color: var(--orange);
}

.header .icons a{
    color: var(--white);
    font-size: 1.5rem;
    margin-left: .8rem;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.header .icons a:hover{
    color: var(--orange);
}

#menu-btn{
    display: none;
}

.total-items-in-cart{
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .8rem;
    background: #ff0000;
    font-weight: 500;
}

.header .search-form.active{
    right: 2rem;
    transition: .4s linear;
}

.header .search-form{
    position: absolute;
    top: 110%; right: -110%;
    width: 35rem;
    height: 3.2rem;
    background: var(--white);
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.header .search-form input{
    height: 100%;
    width: 100%;
    background: none;
    text-transform: none;
    font-size: 1.3rem;
    color: var(--black);
    padding: 0 1.3rem;
}

.header .search-form label{
    font-size: 1.4rem;
    padding-right: 1.3rem;
    color: var(--black);
    cursor: pointer;
}

.header .shopping-cart{
    position: absolute;
    top: 110%; right: -110%;
    padding: 1.5rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    width: 30rem;
    background: var(--white);
}

.header .shopping-cart.active{
    right: 2rem;
    transition: .4s linear;
}

.header .shopping-cart .box{
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    margin: 1rem 0;
}

.header .shopping-cart .box img{
    height: 7rem;
}

.header .shopping-cart .box .fa-trash{
    font-size: 1.6rem;
    position: absolute;
    top:50%; right: 2rem;
    cursor: pointer;
    color: var(--light-color);
    transform: translateY(-50%);
}

.header .shopping-cart .box .fa-trash:hover{
    color: var(--orange);
}

.header .shopping-cart .box .content h3{
    color: var(--black);
    font-size: 1.5rem;
    padding-bottom: .3rem;
}

.header .shopping-cart .box .content span{
    color: var(--light-color);
    font-size: 1.3rem;
}

.header .shopping-cart .cart-items{
    max-height: calc(100vh - 350px);
    overflow: auto;
}

.header .shopping-cart .units{
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .shopping-cart .units .unit-btn{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgb(237, 230, 230);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;    
}

.header .shopping-cart .units .unit-btn:hover{
    background: var(--orange);
    color: var(--white);
}

.header .shopping-cart .units .unit-nr{
    margin-right: 10px;    
}

.header .shopping-cart .total-sum{
    font-size: 1.8rem;
    padding: 1rem 0;
    text-align: center;
    border-top: var(--border);
}

.header .shopping-cart .btn{
    display: block;
    text-align: center;
    color: var(--black);
}

.header .login-form{
    position: absolute;
    top: 110%; right: -110%;
    padding: 1rem 2rem 2rem 2rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    width: 20rem;
    background: var(--white);
    text-align: center;
}

.header .login-form.active{
    right: 2rem;
    transition: .4s linear;
}

.header .login-form .btn{
    width: 100%;
}

/* home */
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/online-shopping.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 12rem;
    padding-bottom: 40rem;
}

.home .content{
    text-align: center;
    width: 60rem;
}

.home .content h3{
    color: var(--black);
    font-size: 2.5rem;
    text-transform: none;    
}

.home .content h3 span{
    color: var(--orange);
    text-transform: none;  
}

.home .convent p{
    color: var(--light-color);
    font-size: 2rem;
    padding: 1rem 0;
    line-height: 2;
}

/* categories */
.categories .products-cat-slider{
    padding: 1rem;
}

.categories .products-cat-slider:first-child{
    margin-bottom: 2rem;
}

.categories .products-cat-slider .box{
    background: var(--white);
    border-radius: .5rem;
    text-align: center;
    padding: 3rem 2rem;
    outline-offset: -1rem;
    outline: var(--outline);
    box-shadow: var(--box-shadow);
    transition: .2s linear;
}

.categories .products-cat-slider .box:hover{
    outline: var(--outline-hover);
    outline-offset: 0rem;
}

.categories .products-cat-slider .box img{
    height: 15rem;
}

.categories .products-cat-slider .box h3{
    font-size: 1.7rem;
    color: var(--black);
    margin-top: .5rem;
}

/* online order */
.online-order{
    padding: 2rem 0;
}

.online-order img{
    width: 100%;
    height: auto;
}

/* food products */
.products .search-form{
    width: 35rem;
    height: 3.2rem;
    background: var(--white);
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    margin: auto;
    margin-bottom: 1%;
}

.products .search-form input{
    height: 100%;
    width: 100%;
    background: none;
    text-transform: none;
    font-size: 1.3rem;
    color: var(--black);
    padding: 0 1.3rem;
}

.products .search-form label{
    font-size: 1.4rem;
    padding-right: 1.3rem;
    color: var(--black);
    cursor: pointer;
}

.foods{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.foods:first-child{
    margin-bottom: 2rem;
}

.foods .food-wrapper .food-box{
    background: var(--white);
    border-radius: .5rem;
    text-align: center;
    padding: 3rem 6rem;
    outline-offset: -1rem;
    outline: var(--outline);
    box-shadow: var(--box-shadow);
    transition: .2s linear;
}

.foods .food-wrapper .food-box:hover{
	outline-offset: 0rem;
    outline: var(--outline-hover);
}

.foods .food-wrapper .food-box img{
    height: 15rem;
}

.foods .food-wrapper .food-box .title{
    font-size: 1.7rem;
    color: var(--black);
}

.foods .food-wrapper .food-box .price{
    font-size: 1.3rem;
    color: var(--light-color);
    padding: .5rem 0;
}

/* blogs */
.blogs .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.blogs .box-container .box{
    overflow: hidden;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    background: var(--white);
}

.blogs .box-container .box img{
    height: 25rem;
    width: 100%;
    object-fit: cover;
}

.blogs .box-container .box .content{
    padding: 2rem;
}

.blogs .box-container .box .content .icons{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: var(--border);
}

.blogs .box-container .box .content .icons a{
    color: var(--light-color);
    font-size: 1.3rem;
}

.blogs .box-container .box .content .icons a:hover{
    color: var(--black);
}

.blogs .box-container .box .content .icons a i{
    color: var(--orange);
    padding-right: .5rem;
}

.blogs .box-container .box .content h3{
    line-height: 1.8;
    color: var(--black);
    font-size: 1.7rem;
    padding: .5rem 0;
}

.blogs .box-container .box .content p{
    line-height: 1.8;
    color: var(--light-color);
    font-size: 1.3rem;
    padding: .5rem 0;
}

/* services */
.services .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.services .box-container .box{
    padding: 3rem 2rem;
    background: var(--white);
    outline: var(--outline);
    outline-offset: -1rem;
    text-align: center;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    transition: .2s linear;
}

.services .box-container .box:hover{
	outline-offset: 0rem;
    outline: var(--outline-hover);
}

.services .box-container .box img{
    height: 20rem;
    border: 1px solid #000;
}

.services .box-container .box h2{
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--black);
}

.services .box-container .box p{
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--light-color);
    padding: 1rem 0;
}

/* newsletter */
.newsletter .box-container{
    border-radius: .5rem;
    outline: var(--outline);
    outline-offset: -1rem;
    box-shadow: var(--box-shadow);
    transition: .2s linear;
    padding: 5% 5%;
    background: var(--white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.newsletter .box-container #email-text{
    font-size: 1.7rem;
    color: var(--black);
}

.newsletter .box-container #email-address{
    width: 90%;
    margin: 1rem 0;
    background: #eee;
    border-radius: .5rem;
    padding: .8rem 1rem;
    font-size: 1.3rem;
    color: var(--black);
    text-transform: none;
}

.newsletter .box-container #accept-text{
    font-size: 1.3rem;
    padding: .5rem 0;
    text-transform: none;
    color: var(--light-color);
}

.newsletter .box-container .btn{
    margin-top: 5%;
    margin-left: 10%;
}

.newsletter .box-container .benefits{
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter .box-container .benefits .benefit-text h2{
    font-size: 2.5rem;
    padding-bottom: .6rem;
    text-decoration: underline;
} 

.newsletter .box-container .benefits .benefit-text p{
    font-size: 1.3rem;
    line-height: 2.2rem;
}

.newsletter .box-container .benefits .benefit-text p a{
    color: #008000;
}

/* Footer */
.footer{
    background-color: rgb(237, 230, 230);
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.footer .box-container .box h3{
    font-size: 1.7rem;
    color: var(--black);
    padding: 1rem 0;
}

.footer .box-container .box p{
    line-height: 1.6;
    font-size: 1.3rem;
    color: var(--light-color);
    padding: 1rem 0;
}

.footer .box-container .box .share a{
    line-height: 4rem;
    font-size: 2rem;
    color: var(--black);
    margin-left: 1.5rem;
    text-align: center;
}

.footer .box-container .box .share a:hover{
    color: var(--orange);
}

.footer .box-container .box .links{
    display: block;
    font-size: 1.3rem;
    color: var(--light-color);
    padding: 1rem 0;
}

.footer .box-container .box .links i{
    color: var(--orange);
    padding-right: .5rem;
}

.footer .box-container .box .links:hover{
    color: var(--orange);
}

/* newsletter confirmation */
.confirmation .overlay{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: none;
}

.confirmation .content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 58%;
    background: #f1f2f3;
    padding: 4rem 5rem;
    border-radius: .5rem;
    z-index: 2;
    text-align: center;
    box-sizing: border-box;
}

.confirmation .content h2{
    font-size: 2rem;
    color: var(--black);
}

.confirmation .content p{
    font-size: 1.3rem;
    color: var(--black);
    line-height: 1.6;
    padding: .5rem 0;
}

.confirmation .content p span{
    font-weight: bold;
    text-decoration: underline;
}

.confirmation.active .overlay {
    display: block;
}

.confirmation.active .content {
    /* transition: all 300ms ease-in-out; */
    transform: translate(-50%, -50%) scale(1);
}

/* media queries */
@media (max-width:991px) {
    html{
        font-size: 55%;
    }

    .header{
        padding: 2rem;
    }

    section{
        padding: 2rem;
    }
}

@media (max-width:768px){
    #menu-btn{
        display: inline-block;
    }

    .header .search-form{
        width: 90%;
    }

    .header .navbar{
        position: absolute;
        top: 110%; right: -110%;
        width: 30rem;
        box-shadow: var(--box-shadow);
        border-radius: .5rem;
        background: var(--white);
    }
    
    .header .navbar.active{
        right: 2rem;
        transition: .4s linear;
    }

    .header .navbar .nav_links .nav_item a{
        font-size: 2rem;
        margin: 2rem .5rem;
        display: block;
        color: var(--black);
    }

    .header .navbar .nav_links{
        display: grid;
    }

    .total-items-in-cart{
        width: 12px;
        height: 12px;
    }

    .header .shopping-cart .units .unit-btn{
        width: 12px;
        height: 12px;
    }

    .newsletter .box-container .benefits{
        display: block;
    }

    .confirmation{
        width: 95%;
    }

    .confirmation h2{
        font-size: 2.2rem;
    }
    
    .confirmation p{
        font-size: 1.6rem;
    }
}

@media (max-width:450px) {
    html{
        font-size: 50%;
    }

    .heading{
        font-size: 2.5rem;
    }

    .footer{
        text-align: center;
    }
}