:root{
    --clr--Orange: #ff7c19;
    --clr--Pale-orange: #ffede0;

    --clr--veryPale-orange: #fca96d;
    --clr--dark-blue: hsl(220, 13%, 13%);
    --clr--Dark-grayish-blue: hsl(219, 9%, 45%);
    --clr--Grayish-blue: hsl(220, 14%, 75%);
    --clr--Light-grayish-blue: hsl(223, 64%, 98%);
    --clr--white: hsl(0, 0%, 100%);
    --clr--Black-with-opacity: hsla(0, 0%, 0%, 0.761);
}

*{
    box-sizing: border-box;
}

*, 
*::before,
*::after{
    padding: 0;
    margin: 0;
}

body{
    font-family: "Kumbh Sans", serif;
    font-size: 16px;
    
}

.container{
    padding: 0 5rem;
}




/* header section */
header{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--clr--Light-grayish-blue);
    padding: 2rem 0;
    margin-bottom: 50px;
    position: relative;
}

header .nav_bar{
    display: flex;
    align-items: center;
    gap: 50px;
}

header .menu-icon,
header .nav_links .close-icon{
    display: none;
}

header .nav_links{
    display: flex;
}

header .nav_links ul{
    display: flex;
    gap: 20px;
    list-style-type: none;
}

header .nav_links ul li a{
    text-decoration: none;
    color: var(--clr--Grayish-blue);
    position: relative;
}

header .nav_links ul li a:hover{
    color: var(--clr--Dark-grayish-blue);
}

header .nav_links ul li a:hover::after{
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    left: 0;
    bottom: -40px;
    background-color: var(--clr--Orange);
    transition: .3s;
}

header .nav_account{
    display: flex;
    align-items: center;
    gap: 30px;
}

header .nav_account .avatar-icon{
    width: 30px;
}

header .nav_account .avatar-icon:hover{
    cursor: pointer;
    border: 1px solid var(--clr--Orange);
    border-radius: 50%;
}

header .nav_account div{
    position: relative;
}

header .nav_account .cart-icon{
    width: 25px;
    cursor: pointer;
}


header .nav_account div span{
    position: absolute;
    font-size: 10px;
    top: -5px;
    right: 0;
    background: var(--clr--Orange);
    padding: 2px;
    border-radius: 50%;
    width: 17px;
    height: 15px;
    text-align: center;
    color: var(--clr--white);
    cursor: pointer;
}


/* cartContainer */
.cartContainer{
    position: absolute;
    right: 0;
    top: 90px;
    width: 300px;
    height: 200px;
    background: var(--clr--white);
    box-shadow: 3px 7px 15px var(--clr--Grayish-blue);
    border-radius: 5px;
    padding: 5px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
    z-index: 5;
}

.toogleCart{
    display: none;
}

.cartContainer h3{
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr--Dark-grayish-blue);
}

.cartElMain{
    text-align: center;
    margin: auto;
}

.empty{
    display: none;
}

.cartEl{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
    font-size: .85rem;
    color: var(--clr--Grayish-blue);
}

.cartEl img{
    width: 45px;
    border-radius: 5px;
}

.cartEl p .totalPrice{
    font-weight: 800;
    color: var(--clr--dark-blue);
}

.cartEl button{
    background: none;
    border: none;
}

.cartContainer .checkoutBtn{
    margin-top: 10px;
    padding: 15px;
    border-radius: 5px;
    border: none;
    background-color: var(--clr--Orange);
    color: var(--clr--dark-blue);
    font-weight: 800;
    cursor: pointer;
    display: none;
}

.cartContainer .active{
    display: block;
}


/* main section */
main{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 0 5rem;
    
}

.imageDisplay{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imageDisplay .mainImage{
    position: relative;
}

.imageDisplay .mainImage .activeImage{
    border-radius: 7px;
    cursor: pointer;
}

.imageDisplay .gallery{
    display: flex;
    gap: 10px;
}


.imageDisplay .gallery img{
    /* max-width: 100%; */
    width: 50px;
    border-radius: 7px;
    overflow: hidden;
}

.imageDisplay .gallery img:hover{
    opacity: .5;
    cursor: pointer;
}

.imageDisplay .gallery .active{
    border: 2px solid var(--clr--Orange);
    opacity: .5;
}



/* lightbox */
.lightbox{
    position: absolute;
    top: 0;
    background: var(--clr--Black-with-opacity);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.disable{
    display: none;
}

.lightbox .active{
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.lightbox .active .close-icon{
    position: absolute;
    /* z-index: 10; */
    top: -30px;
    right: 0;
}

.lightbox .active .close-icon svg path{
    fill: white;
}

.lightbox .active .close-icon svg path:hover{
    fill: var(--clr--Orange);
    cursor: pointer;
}

.lightbox .active .mainImage{
    position: relative;
}

.lightbox .active .mainImage .activeImage{
    border-radius: 7px;
    cursor: pointer;
}

.lightbox .active .gallery{
    display: flex;
    gap: 10px;
}


.lightbox .active .gallery img{
    /* max-width: 100%; */
    width: 50px;
    border-radius: 7px;
    overflow: hidden;
}

.lightbox .active .gallery img:hover{
    opacity: .5;
    cursor: pointer;
}

.lightbox .active .gallery .active{
    border: 2px solid var(--clr--Orange);
    opacity: .5;
}

.lightbox .active .mainImage div{
    position: absolute;
    top: 0;
    width: 35px;
    height: 35px;
    padding: 10px;
    border-radius: 50%;
    background: var(--clr--Light-grayish-blue);
}

.lightbox .active .mainImage .previous{
    top: 40%;
    left: -15px;
}

.lightbox .active .mainImage .previous svg path:hover,
.lightbox .active .mainImage .next svg path:hover{
    filter: invert(72%) sepia(9%) saturate(2317%) hue-rotate(337deg) brightness(101%) contrast(98%);
    cursor: pointer;
}


.lightbox .active .mainImage .next{
    top: 40%;
    right: -10px;
}



/* slide button */
.imageDisplay .mainImage div{
    position: absolute;
    top: 0;
    width: fit-content;
    padding: 10px;
    border-radius: 50%;
    background: var(--clr--Light-grayish-blue);
    display: none;
}



/* image description */
.imageDesc{
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imageDesc .descPara{
    color: var(--clr--Dark-grayish-blue);
    font-size: .75rem;
    margin-top: 10px;
}

.imageDesc .desc_title{
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
    color: var(--clr--Dark-grayish-blue);
}

.imageDesc .price{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
}

.imageDesc .price .newPrice{
    display: flex;
    align-items: center;
    gap: 10px;
}

.imageDesc .price .newPrice p{
    font-weight: 700;
}

.imageDesc .price .newPrice span{
    padding: 2px 5px;
    color: var(--clr--white);
    background: var(--clr--dark-blue);
    font-size: 12px;
    border-radius: 5px;
}

.imageDesc .price .oldPrice{
    text-decoration-line: line-through;
    color: var(--clr--Dark-grayish-blue);
}


.imageDesc .order{
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
}

.imageDesc .order .amountBtn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.imageDesc .order .amountBtn img:hover{
    cursor: pointer;
}

.imageDesc .order .submitBtn{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px 50px;
    border-radius: 7px;
    border:  none;
    background: var(--clr--Orange);
    font-weight: 700;
}

.imageDesc .order .submitBtn:hover{
    cursor: pointer;
    background: var(--clr--veryPale-orange);
}

.imageDesc .order .submitBtn svg path{
    fill: var(--clr--dark-blue);
}





@media (max-width: 820px){
    header .menu-icon{
        display: inline;
        margin-right: 10px;
    }

    header .nav_links{
        display: none;
    }

    /* header .nav_bar{
        position: relative;
    } */
    
    header .side-bar{
        display: block;
        position: absolute;
        top: 0;
        z-index: 10;
        background: var(--clr--Black-with-opacity);
       width: 100vw;
        height: 100vh;
        left: 0;
    }

    header .side-bar div{
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
        background: var(--clr--white);
        width: 65%;
        height: 100vh;
        padding: 20px 30px;
    }

    header .side-bar div .close-icon{
        display: block;
        width: 15px;
    }

    header .side-bar div ul{
        flex-direction: column;
        gap: 20px;
    }

    header .side-bar div ul li a{
        color: var(--clr--dark-blue);
        font-weight: 700;
    }

    main{
        padding: 0;
    }

    .imageDisplay .mainImage .activeImage{
        height: 320px;
    }

    .imageDesc .order{
        flex-direction: column;
    }

    .imageDesc .price{
        flex-direction: row;
    }
}


@media (max-width: 650px){
    body{
        font-size: 12px;
    }
    .container{
        padding: 0;
    }

    header{
        margin: 0;
        padding: 1rem;
    }

    header .nav_account{
        gap: 15px;
    }

    .cartContainer{
        top: 65px;
        width: 90%;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%);
        z-index: 5;
    }

    main{
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }


    .imageDisplay .mainImage .activeImage{
        width: 100%;
        border-radius: 0;
    }

    .imageDisplay .mainImage .previous{
        top: 50%;
        left: 0;
    }
    
    .imageDisplay .mainImage .next{
        top: 50%;
        right: 0;
    }
    

    .imageDisplay .mainImage div{
        display: block;
    } 

    .imageDisplay .gallery{
        display: none;
    }

    .imageDesc{
        padding: 0 2rem 2rem 2rem;
        width: 100%;
    }
}















