:root {
    --orange: #ff7800;
    --black: #130f40;
    --light-color: #666;
    --box-shadow: 0.5rem 1.5rem rgba(0, 0, 0, .1);
    --border: .1rem solid rgba(0, 0, 0, .1);
    --outline: 1rem solid rgba(0, 0, 0, .1);
    --outline-hover: 1rem solid var(--black);


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

body {
    background-color: #eee;
}

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

/* ======== global classes========= */
section{
    padding: 2rem 10%;
}
.heading{
    padding: 2rem 0;
    text-align: center;
    font-size: 3.5rem;
    padding-bottom: 3rem;
    color: var(--black);
}
.heading span{
    background: var(--orange);
    color: #fff;
    padding: .5rem 3rem ;
    display: inline-block;
    clip-path: polygon(100% 0%, 93% 50%, 100% 99%, 0% 100% , 7% 50% , 0% 0% );
}

.btn {
    margin-top: 1rem;
    display: inline-block;
    padding: .8rem 3rem;
    font-size: 1.7rem;
    border-radius: .5rem;
    border: .2rem solid var(--black);
    cursor: pointer;
    background: none;

}

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

/* header section  */
.header {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 10%;
    background: #fff;
    width: 100%;
    height: 60px;
    max-height: 60px;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.logo {
    font-size: 2.5rem;
    font-weight: bolder;
    color: var(--black);
}

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

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

.nav a:hover {
    color: var(--orange);
}

/* ========== menu bar */
.header .icons div {
    width: 3.5rem;
    height: 4.5rem;
    background: #eee;
    text-align: center;
    line-height: 4.5rem;
    font-size: 2rem;
    margin-right: .3rem;
    border-radius: .5rem;
    margin-left: .3rem;
    cursor: pointer;
}

.header .icons div:hover {
    background: var(--orange);
    color: #fff;
}

#menu-btn {
    display: none;
}

/* ============ serach box */

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

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

.search-form input {
    width: 100%;
    height: 100%;
    background: none;
    text-transform: none;
    font-size: 1.6rem;
    color: var(--black);
    padding: 0 1.5rem;

}

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

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

/* ============ shopping cart  */
.shopping-cart {
    position: absolute;
    top: 110%;
    right: -100%;
    padding: 1rem;
    border-radius: .5rem;
    width: 35rem;
    background-color: #fff;
    text-align: center;
}

.shopping-cart.active {
    right: 2rem;
    transition: .5s ease-in-out;
}

.shopping-cart .box {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    margin: 1rem 0;
}

.shopping-cart .box img {
    width: 10rem;
    height: 10rem;
}

.shopping-cart .box i {
    position: absolute;
    top: 40%;
    right: 0;
    font-size: 2rem;
    color: var(--light-color);
    cursor: pointer;
    transform: translateY(-50%);
}

.shopping-cart .box i:hover {
    color: var(--orange);
}

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

.shopping-cart .box span {
    color: var(--light-color);
    font-size: 1rem;
}

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

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

.shopping-cart .btn.checkout {
    display: block;
    margin: 1rem;
}


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

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

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

.header .login-form .box {
    margin: .7rem 0;
    background: #eee;
    border-radius: .5rem;
    padding: 1rem;
    font-size: 1.6rem;
    color: var(--black);
    text-transform: none;
}

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

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


/* ============== Home section ============ */
.home{
    background: url('../imgs/home-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 17rem;
    padding-bottom: 10rem;
}
.home .content{
    width: 60rem;
    text-align: center;
}
.home .content h3{
    font-size: 3rem;
    color: var(--black);
}
.home .content span{
    color: var(--orange);
}
.home .content p{
    font-size: 1.5rem;
    color: var(--light-color);
    line-height: 25px;
}
/* ========== section features  */
.features .box-container{
    display: grid;
    grid-template-columns: repeat( auto-fit , minmax(30rem , 1fr));
    grid-gap: 1.5rem;
}
.features .box-container .box{
padding: 3rem 2rem;
background: #fff;
outline: var(--outline);
outline-offset: -1rem;
text-align: center;
}
.features .box-container .box img{
    height: 10rem;
    margin: 1rem 0;

}
.features .box-container .box:hover{
    outline: var(--outline-hover);
    outline-offset: 0rem;
}

.features .box-container .box h3{
font-size: 2.5rem;
line-height: 1.8;
color: var(--light-color);
}
.features .box-container .box p{
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--light-color);
    padding: 1rem 0;
    }
    
/* ============= section products ============= */
.products .product-slider{
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat( auto-fit , minmax(30rem , 1fr));
    grid-gap: 10px;
}
.swiper-wrapper{
    /* display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; */

  display: grid;
  grid-template-columns: repeat( auto-fit , minmax(28rem , 1fr));
  grid-gap: 10px;
}
.products .product-slider:first-child{
margin-bottom: 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{
    outline-offset: 0rem;
    outline: var(--outline-hover);
}
.products .product-slider .box  img{
    height: 15rem;
    width: 100%;
}
.products .product-slider .box h3{
    font-size: 2rem;
    color: var(--black);
}
.products .product-slider .box .price{
color: var(--light-color);
font-size: 2rem;
padding: .5rem 0;
}

/* ========== categories ========== */
.categories .box-container{
    display: grid;
    grid-template-columns: repeat( auto-fit , minmax(20rem , 1fr));
    grid-gap: 1.5rem;
}
.categories .box-container .box{
padding: 3rem 2rem ;
border-radius: .5rem;
background: #fff;
outline: var(--outline);
outline-offset: -1rem;
text-align: center;
}
.categories .box-container .box:hover{
    outline: var(--outline-hover);
    outline-style: 0rem;
}
.categories .box-container .box img{
height: 15rem;
margin: 1rem 0;
width: 100%;
}
.categories .box-container .box  h3{
    color: var(--black);
    font-size: 2rem;
    line-height: 1.8;
}
.categories .box-container .box p{
    color: var(--light-color);
    font-size: 1.5rem;
    line-height: 1.8;
}


/* ====== section 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{
        outline: var(--outline-hover);
        outline-offset: 0rem;
    }
    .review .review-slider .box img{
    width: 10rem;
    height:10rem;
    border-radius: 50%;
    }
    .review .review-slider .box p{
        padding: 1rem 0;
        line-height: 1.8;
        color: var(--light-color);
        font-size: 1.5rem;
    }
    .review .review-slider .box h3 {
    padding: 1rem 0;
    color: var(--black);
    font-size:2.2rem;
    }
    .review .review-slider .box i{
        color: var(--orange);
        font-size: 1.5rem;
    }
    
    
/* =============== blog section ========== */
.blog .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(26rem , 1fr));
}

.blog .box-container .box{
    overflow: hidden;
    border-radius: .5rem;
    outline: var(--outline);
    background-color: #fff;
    margin: 0 1rem;
    outline-offset: -1rem;
}
.blog .box-container .box:hover{
    outline: var(--outline-hover);
}

.blog .box-container .box img{
width: 100%;
object-fit: contain;
height: 20rem;
}

.blog .box-container .box .content{
    padding: 2rem;
}

.blog .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);
}
.blog .box-container .box .content .icons a{
    color: var(--light-color);
    font-size: 1.5rem;
}
.blog .box-container .box .content .icons a:hover{
    color: var(--black);
}
.blog .box-container .box .content .icons a i{
    color:var(--orange);
    font-size: 1.5rem;
}

.blog .box-container .box .content h3{
    line-height: 1.8;
    color:var(--black);
    font-size: 2.2rem;
    padding: .5rem 0 ;
}

/* ===== footer =========== */
.footer{
    background: #fff;
}
.footer  .box-container{
display: grid;
grid-template-columns: repeat(auto-fit , minmax(25rem , 1fr));
gap: 1.5rem;
}
.footer  .box-container .box .share a{
    display: inline-block;
    font-size: 2.5rem;
    padding: 1rem 1rem;
    border-radius: .5rem;
    background: #eee;
   margin-right: .5rem;
}
.footer  .box-container .box  .share a:hover{
    background: var(--orange);
    color: #fff;
}
.footer  .box-container .box h3{
  color: var(--black);
  font-size: 2.5rem;
  padding: 1rem 0;
}
.footer  .box-container .box h3 i{
    color: var(--orange);
}
.footer  .box-container .box .email{
    margin: .7rem 0;
    padding: 1rem;
    border-radius: .5rem;
    background: #fff;
    color: var(--black);
    text-transform: none;
    font-size: 1.6rem;
    width: 100%;
    background: #eee;
}

.footer  .box-container .box a{
    color: var(--light-color);
    font-size: 1.5rem;
    padding: 1rem 0;
 display: block;  
}

.footer  .box-container .box a:hover i{
    color: var(--orange);
    padding-left: 2rem;
    transition: .54 linear;
}
.footer  .box-container .box a i{
    color: var(--orange);
    padding-right: .5rem;
}

.footer  .box-container .box p{
line-height: 1.8rem;
font-size: 1.5rem;
color: var(--light-color);
padding: 1rem 0;
}
.footer .box img{
    width: 100%;
margin: 2rem 0;

}

.footer .credit{
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    padding-top: 2.5rem;
    font-size: 2rem;
    color: var(--black);
    border-top: var(--border);
}
.footer .credit span{
color: var(--orange);
}
/* media queries  */
@media (max-width:991px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem;
    }
}








@media (max-width:768px) {
    #menu-btn {
        display: inline-block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left:-100%;
        width: 80%;
        box-shadow: var(--box-shadow);
        border-radius: .5rem;
        background: #fff;
        /* margin-left: -20%; */
    }

    .nav.active {
        left:0;
        transition: .4s linear;
    }

    .nav a {
        display: block;
        font-size: 2rem;
        padding: 2rem 2.5rem;
    }
    .search-form {
        width: 90%;
    }

}

@media (max-width: 450px) {
    html {
        font-size: 45%;
    }
    .heading{
        font-size: 2.5rem;
    }
}