*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
}
:root {
    --main-color: #e96412;
    --text-color: #333333;
    --bg-color: #fff;
    --accent: #e9ecef;
}
img{
    width: 100%;
}
body{
    color: var(--text-color);
}

.container{
    max-width: 1060px;
    margin: auto;
    width: 100%;
}
section{
    padding: 4rem 0 3rem;
}
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsl(0 4% 15% / 10%);
    z-index: 1000;
}
.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}
.logo{
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
    font-family: serif;
}
#cart-icon{
    font-size: 1.8rem;
    cursor: pointer;
}
.cart{
    position: fixed;
    top: 0;
    right: -100%;
    width: 370px;
    min-height: 100vh;
    padding: 20px;
    background: var(--accent);
    box-shadow: -2px 0 4px hsl(0 4% 15% / 10%);
}
.cart.active{
    right: 0;
    transition: 0.3s;
}
.cart-title{
text-align: center;
font-size: 1.5rem;
font-weight: 700;
margin-top: 2rem;
}
.cart-box{
    display: grid;
    grid-template-columns: 32% 50% 18%;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.cart-img{
    width: 100px;
    height: 100px;
    object-fit: contain;
    padding: 10px;
    border-radius: 25px;
}
.detail-box{
    display: grid;
    row-gap: 0.5rem;
}
.cart-product-title{
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}
.cart-price{
    font-weight: 300;
}
.cart-quantity{
    border: 1px solid var(--text-color);
    outline-color: var(--main-color);
    width: 2.4rem;
    text-align: center;
    font-size: 1rem;
}
.cart-remove{
    font-size: 30px;
    color: red;
    cursor: pointer;
}
.total{
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    border-top: 1px solid var(--text-color);
}
.total-title{
    font-size: 1rem;
    font-weight: 600;
}
.total-price{
    margin-left: 1rem;
}
.btn-buy{
    display: flex;
     margin: 1.5rem auto 0 auto;
     padding: 12px 20px;
     border: none;
     background: var(--main-color);
     border-radius: 10px;
     font-size: 1rem;
     font-weight: 500;
     cursor: pointer;
}
.btn-buy:hover{
    background: var(--text-color);
    color: var(--bg-color);
}
#close-cart{
    position: absolute;
    top: 1rem;
    right: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
}





.section-title{
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--main-color);
    margin-bottom: 1.5rem;

}
.down{
    margin-top: 3rem;
}
.down .section-title{
    margin-top: 2rem;
}
.shop{
    margin-top: 2rem;
}
/* shop content */
.shop-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 1.8rem;
}
.product-box{
    position: relative;

}
.product-box:hover{
    padding: 10px;
    border: 1px solid var(--main-color);
    transition: 0.4s;
}
.product-img{
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}
.product-title{
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.price{
    font-weight: 500;
}
.add-cart{
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 10px;
    cursor: pointer;
}
.add-cart:hover{
    background: var(--accent);
    color: #333333;
}

@media (max-width:1080){
    .nav{
        padding: 15px;
    }
    section{
        padding: 3rem 0 2rem;
    }
    .container{
        margin: 0 auto;
        width: 90%;
    }
    .shop{
        margin-top: 2rem !important;
    }
}
@media (max-width:400px){
    .nav{
        padding: 11px;

    }
    .logo{
        font-size: 1rem;
    }
    .cart{
        width: 320px;
    }
}

@media (max-width:360px){
    .shop{
        margin-top: 1rem !important;
    }
    .cart{
        width: 280px;
    }
}
