@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;1,200&display=swap');

:root {
    --green: green;
    --black: #130f40;
    --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);
}



* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    /* text-transform: capitalize; first letter will be capital */


}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background: #eee;

}

/* code for banner   */

section{
    padding: 2rem 9%;
}


/* code for features  */
.heading{
    text-align: center;
    padding: 2rem 0;
    padding-bottom: 3rem;

    font-size: 3.5rem;
    color: var(--black);
}

.heading span{
    background: var(--green);
    color: #fff;
    display: inline-block;
    padding: .5rem 3rem;
    clip-path: polygon(100% 0, 93% 50% , 100% 99% ,0% 100% ,7% 50% ,0% 0%);
}
.btn {
    border: 2px solid --black;
    margin-top: 1rem;
    display: inline-block;
    padding: .8rem 3rem;
    font-size: 1.7rem;
    border-radius: .5rem;
    cursor: pointer;

}

.btn:hover {
    background: var(--green);
    color: #fff;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 9%;
    background: #fff;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.header .logo {
    font-size: 2.5rem;
    font-weight: bolder;

}

.header .logo i {
    color: var(--green);
}

.header .navbar a {
    font-size: 1.7rem;
    margin: 0 1rem;
    color: var(--black);
}

.header .navbar a:hover {
    color: rgb(106, 7, 227);
}

.header .icons div {
    height: 4.5rem;
    line-height: 4.5rem;
    width: 4.5rem;
    border-radius: .5rem;
    background: #eee;
    color: var(--black);
    font-size: 2rem;
    margin: .3rem;
    text-align: center;

}

.header .icons div:hover {
    background: var(--green);
    color: white;
    cursor: pointer;
}

#menu-btn {
    display: none;
}

.header .navbar.active {
    right: 2rem;
    transition: .4s linear;
}

.header .search-form {
    position: absolute;
    border: 1px solid;
    top: 110%;
    right: -150%;
    width: 50rem;
    height: 4.5rem;
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);

}

.header .search-form.active {
    right: 2rem;
    transition: .4s linear;
}

.header .search-form input {
    width: 100%;
    height: 100%;
    background: none;
    font-size: 1.rem;
    /* text-transform: none; */
    padding: 1.5rem;
}

.header .search-form label {
    font-size: 2.2rem;
    padding-right: 1.5rem;
    color: var(--black);
    cursor: pointer;
}

.header .search-form label:hover {
    color: var(--green);
}








.header .shopping-cart {
    position: absolute;
    top: 110%;
    right: -110%;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    width: 35rem;
    background: #fff;

}

.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: 10rem;
}

.header .shopping-cart .box .fa-trash {
    font-size: 2rem;
    position: absolute;
    top: 50%;
    right: 2rem;
    cursor: pointer;
    color: var(--Light-color);
    transform: translateY(-50%);
}

.header .shopping-cart .box .fa-trash:hover {
    color: var(--green);

}

.header .shopping-cart .box .content h3 {
    color: var(--black);
    font-size: 1.7rem;
    padding-bottom: 1rem;
}

.header .shopping-cart .box .content span {
    color: var(--Light-color);
    font-size: 1.6rem;
    /* padding-bottom: 1rem; */
}

.header .shopping-cart .box .content .quantity {
    padding-left: 1rem;
}

.header .shopping-cart .total {
    padding: 1rem 0;
    font-size: 2.5rem;
    color: var(--black);
    text-align: center;
}

.header .shopping-cart .btn {
    display: block;
    text-align: center;
    margin: 1rem 0;

}

.header .login-form {
    position: absolute;
    top: 110%;
    right: -110%;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    border-radius: .5rem;
    background: #fff;
    text-align: center;
    width: 35rem;

}

.header .login-form.active {
    right: 2rem;
    transition: .4s linear;
}

.header .login-form h3 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--black);


}

.header .login-form .box {
    margin: .7rem 0;
    border-radius: .5rem;
    padding: 1rem;
    font-size: 1.6rem;

    color: var(--black);
    width: 100%;
    text-transform: none;
    background: #eee;
}

.header .login-form p {
    font-size: 1.4rem;
    padding: .5rem 0;
    color: var(--Light-color);

}

.header .login-form p a {
    text-decoration: underline;
    color: var(--green);
}

/* section  */
.home{
display: flex;
justify-content: center;
background: url(../1658326507295grocery/image/banner-img.jpg) no-repeat;
background-position: center;
background-size: cover;
padding-top: 17rem;
padding-bottom: 15rem;
}

.home .content{
    text-align: center;
    width: 100rem;
}

.home .content h3{
    color: var(--black);
    font-size: 3rem;
}
.home .content h3 span{
    color: var(--green);
    /* font-size: 3rem; */
}
.home .content p{
    color: var(--Light-color);
    font-size: 1.7rem;
    padding: 1rem 0;
    line-height: 1.8;
}

/* code for features  */
.features .box-container{
display: grid;
grid-template-columns: repeat(auto-fit , minmax(30rem , 1fr));
gap: 1.5rem;
}
.features .box-container .box{
    border: 0px solid red;
    padding: 3rem 2rem;
    background: #fff;
    outline: var(--outline);
    outline-offset: -1rem;
    text-align: center;
    box-shadow: var(--box-shadow);

}

.features .box-container .box:hover{
    box-shadow: 1px 1px 10px 5px var(--green);
}
.features .box-container .box img{
    margin: 1rem 0;
    height: 15rem;

}
.features .box-container .box h3{
    font-size: 2.5rem;
    line-height: 1.5rem;
    color: var(--black);

}
.features .box-container .box p{
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: var(--Light-color);
    padding: 1rem 0;

}
/* code for products  */
.products .product-slider{
    padding: 1rem;
    /* width: 100%; */
}
.products .product-slider:first-child{
margin-right: 2rem;

}
.products .product-slider .box{
    background: #fff;
    border-radius: .5rem;
    text-align: center;
    padding: 3rem 2rem;
    outline-offset: -1rem;
    outline: var(--outline);
    box-shadow: var(--box-shadow);
    transition: .2s linear;

}

.products .product-slider .box:hover{
    box-shadow: 1px 1px 10px 5px var(--green);

}
.products .product-slider .box img{
    height: 20rem;
}
.products .product-slider .box  h1{

    font-size: 2.5rem;
    color: var(--black);
}
.products .product-slider .box  .price{

    font-size: 2rem;
    color: var(--Light-color);
    padding: .5rem 0;

}
.products .product-slider .box  .stars i{
 font-size: 1.7rem;
 color: orange;
 padding: .5rem 0;
}

/* code for categaries  */
.categories .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(27rem , 1fr));
    gap: 1.5rem;
    }
.categories .box-container .box{
    padding: 3rem 0;
    border-radius: .5rem;
    background: #fff;
    box-shadow: var(--box-shadow);
    outline-offset: -1rem;
    outline: var(--outline);
    text-align: center;

}
.categories .box-container .box:hover{
    box-shadow: 1px 1px 10px 5px var(--green);

}
.categories .box-container .box img{
    height: 20rem;
    margin: 1rem 0;

}
.categories .box-container .box h3{
    font-size: 2rem;
    line-height: 1.5;
    color: var(--black);
}
.categories .box-container .box p{
    font-size: 1.7rem;
    line-height: 1.5;
    color:var(--Light-color);
    padding: 1rem 0;
}


/* code for review   */
.review .review-slider{
    padding: 1rem;

}
.review .review-slider .box{
    background: #fff;
    border-radius: .5rem;
    text-align: center;
    padding: 3rem 2rem;
    outline-offset: -1rem;
    outline: var(--outline);
    box-shadow: var(--box-shadow);
    transition: .2s linear;

}
.review .review-slider .box:hover{
    box-shadow: 1px 1px 10px 5px var(--green);

}
.review .review-slider .box img{
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
}
.review .review-slider .box p{
    font-size: 1.7rem;
    line-height: 1.5;
    color:var(--Light-color);
    padding: 1rem 0;
}

.review .review-slider .box h3{
    font-size: 2.2rem;
    line-height: 1.5;
    color: var(--black);
}
.review .review-slider .box .stars i{
    color: orange;
    font-size: 2.2rem;
}



/* code for blog  */
.blogs .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(27rem , 1fr));
    gap: 1.5rem;
    }
.blogs .box-container .box{
    overflow: hidden;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    background: #fff;

}
.blogs .box-container .box img{
    height: 25rem;
    width: 100%;
    object-fit: cover;

}
.blogs .box-container .box .content{
    padding: 2rem;
    /* border: 2px solid; */
}

.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);
    padding-right: .5rem;

}
.blogs .box-container .box .content .icons a:hover{
    color: var(--black);
}
.blogs .box-container .box .content h3{
    line-height: 1.7;
    color: var(--black);
    font-size: 1.5rem;
    padding:.5rem 0 ;
}

.blogs .box-container .box .content p{
    color: var(--Light-color);
    font-size:1.5rem ;
    padding: .5rem 0;
    line-height: 1.8;
}

/* code for footer  */
.footer{
    background: #fff;
}
.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(27rem , 1fr));
    gap: 1.5rem;
    }
    .footer .box-container .box h3{
        font-size: 2.5rem;
        color: var(--black);
        padding: 1rem 0;

    }
    .footer .box-container .box h3 i{
        color: var(--green);
    }
    .footer .box-container .box .links{
        display: block;
    
        font-size: 1.5rem;
        color: var(--Light-color);
        padding: 1rem 0;

    }
    .footer .box-container .box .links i{
        color: var(--green);
        padding: .5rem;
    }
    .footer .box-container .box .links:hover i{
        padding-right: 2rem;
    }

    .footer .box-container .box p{
        /* display: block; */
    line-height: 1.8;
        font-size: 1.5rem;
        color: var(--Light-color);
        padding: 1rem 0;

    }
    .footer .box-container .box .share a{

        height: 4rem;
        width: 4rem;
        line-height: 4rem;
        border-radius: .5rem;
        font-size: 2rem;
        margin-left: .2rem;
        color: var(--black);
background: #eee;
text-align: center;
    }
    .footer .box-container .box .share a:hover{
        background: var(--green);
        color: #fff;
    }
    .footer .box-container .box .email{
        margin: .7rem 0;
        padding: 1rem;
        border-radius: .5rem;
        background: #eee;
        font-size: 1.6rem;
        width: 100%;
        color: var(--black);
        text-decoration: none;
    }

    .footer .box-container .box .payment{
        margin-top: 2rem;
        height: 3rem;
    }
.footer .credit{
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    padding-top: 2.5rem;
    font-size: 2rem;
    width: 100%;
    height: 100%;
    color: var(--black);
    border-top: var(--border);
    justify-content: center;
}
.footer .credit span{
    color: var(--green);

}

/* 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: #fff;


    }

    .header .navbar a {
        font-size: 2rem;
        margin: 2rem 2.5rem;
        display: block;

    }


}



@media (max-width:450px) {
    html {
        font-size: 50%;

    }
    .heading {
        font-size: 2.5rem;
    }
    .footer{
        text-align: center;
    }
}