/* پایه */
.container{
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
}

html{
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *::before, *::after{
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body{
    font-family: "Abol", monospace;
    background-color: black;
    scroll-behavior: smooth;
    /* background-image: linear-gradient(to top, #212121, #2632386f); */
    background: url("../imgs/background/back.png") repeat center scroll;
    /* background-size: cover; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Header */
.header{
    margin: 0 auto;
    width: 100%;
}
.nav-container{
    width: 100%;
    display: flex;
    justify-content: center;
}
.nav{
    width: 60%;
    position: relative;
    left: -3%;
    border-radius: 4rem;
    height: 4.2rem;
    background-color: #2121215b;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);

}

.nav-icon{
    width: 4rem;
    height: 4rem;
    background-image: linear-gradient(90deg, #B71C1C, black);
    border-radius: 50%;
    position: absolute;
    right: 0.1rem;
    cursor: pointer;
}
.nav__logo{
    width: 100%;
    height: 100%;
    border-radius: 100%;
}
.nav-name{
    letter-spacing: 1rem;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px #ffffff92;
}
/* back button */

.back__link{
    position: fixed;
    border-radius: 100%;
    z-index: 100000;
    width: auto;
    height: auto;
    display: none;
}
.back__img{
    width: 4rem;
    height: 4rem;
    background-color: rgb(255, 255, 255);
    border-radius: 100%;
    display: none;
}
/* Main */
.main{
    max-width: 100%;
    display: flex;
    justify-content: flex-start;
    position: relative;
    margin-top: 3rem;
    margin-right: auto;
    gap: 1rem;
}

.container-section{
    display: flex;
    flex-direction: column;
    align-content: center;
    color: white;
    direction: rtl;
    gap: 1.3rem;
        text-shadow:
        0 0 3px black,
        0 0 6px black,
        0 0 9px black;
}

/* section */
.section-title{
    margin-left: 3vw;
    text-align: center;
    font-size: 3rem;
}

.item-section{

    border-top: #ffffff 3px solid;
    border-radius: 4rem 0 0 0;
}


/* Item container */
.item-container{
    flex: 1;
    display: flex;
    justify-content: center;
}

.item-box-container{
    width: 67.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
}

.item-box{
    width:15rem;
    height:20rem;
    border: 1px solid rgb(255, 255, 255);
    background-color: #3737372f;
    border-radius: 2rem;
}

/* Sidebar */
.side-bar{
    width: 4.5rem;
    background-color: #b6b6b66c;
    backdrop-filter: blur(5px);
    border: #4b4b4b 4px solid !important;
    border-radius: 1rem;
    padding: 1rem 0;
    position: sticky;
    top: 17.5rem;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: none;  
    mask-image: linear-gradient(to bottom, rgba(35, 3, 3, 0.705) 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(35, 3, 3, 1) 90%, transparent 100%);

}

.side-bar-container{

    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}
.side-bar-item{
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-side-bar{
    width: 2rem;
}


/* card desing */

.item-box{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.item-box__img{
    width: 100%;
    height: 75%;
    background: url("../img/coffee-card/milkshake-shokolat.jpg") no-repeat bottom;
    background-size: cover;
    /* border-radius: 2rem; */
}
.item-box__description{
    width: 100%;
    height: 25%;
}
.description__food-title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height: 1rem;
    margin-top: 5%;
    
}
.food-title__top{
    color: white;
}
.food-title__sub{
    color: rgb(150, 150, 150);
    font-size: 0.5rem;
}
.box-description__price{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(184, 184, 184);
    margin-top: 5%;
    padding: 0 10% 2% 10%;
    background-color: rgba(55, 55, 55, 0.634);
    backdrop-filter: blur(15px);
    border: 1px solid white;
}
.price__price{

}
.price__currency{

}


@media (max-width: 1200px) {
    .container{
        /* max-width:60rem; */
    }
    .side-bar{
        top: 17.5rem;
    }
    .item-container{

    }
    .item-box-container{
        width: 51.5rem;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .item-box{

        width: 15rem;
        height: 20rem;

    }


}


@media (max-width: 992px) {

    .nav{
        transform: translateX(0.8rem);
    }
    .item-box-container{
        width: 40rem;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .item-box{

        width: 11.25rem;
        height: 15rem;

    }
    .side-bar{
        top: 17.5rem;
    }

    .description__food-title{
        line-height: 0.9rem;
    }
    .food-title__top{
        font-size: 0.8rem;
    }
    .food-title__sub{
        font-size: 0.5rem;
    }
    .box-description__price{
        font-size: 0.5rem;
        justify-content: center;
        gap: 0.5rem;
        
    }
    
}


@media (max-width: 768px) {

    .nav{
        transform: translateX(-1rem);
    }

    .section-title{

        font-size: 2.5rem;

    }

    .item-box-container{
        width: 27.1rem;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .side-bar{

        top: 16.8rem;

    }
    .item-box{

        width: 11.25rem;
        height: 15rem;
        border-radius: 1.8rem;

    }
    .nav-name{
        letter-spacing: 0.5rem;

    }
}


@media (max-width: 600px) {


    .nav{
        width: 100vw;
        padding: 0 2rem;
        left: -2.3rem;
        border-radius: 0%;
        transform: translateX(2.3rem);

    }
    .nav-icon{
        display: none;
    }
    .nav-name{
        word-spacing: 0.5rem;
        position: relative;
    }
    .back__link{
        display: block;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    .back__img{
        display: block;
    }
    .section-title{
        font-size: 2rem;
    }
    .item-container{
        
    }
    .item-box-container{
        width: 23rem;
        gap: 0.5rem;
        padding: 0.5rem;
        
    }
    .item-box{

        width: 10.5rem;
        height: 14rem;
        border-radius: 1.5rem;

    }
    .side-bar{
        width: 3.5rem;
        top: 15.8rem;
        max-height: 40vh;
        gap: 1rem;
    }
    .box-description__price{
        margin-top: 2%;
        padding-top: 1%;
    }
}


@media (max-width: 488px) {

    .item-box-container{
        width: 20rem;
        gap: 1rem;
        padding: 1rem;
        /* justify-content: space-around; */
    }
    .section-title{
        font-size: 1.8rem;
    }
    .item-box{

        width: 8.5rem;
        height: 12rem;
        border-radius: 1.3rem;
    }
    .item-box__img{
        height: 65%;
    }
    .item-box__description{
        height: 35%;
    }
    .side-bar{
        top: 16.5rem;
        height: 50vh;
    }

}


@media (max-width: 400px) { 

    .back__img{
        width: 3.7rem;
        height: 3.7rem;
    }
    .main{
        gap: 0.5rem;
    }

    .section-title{
        font-size: 1.5rem;
    }
    .item-section{
        border-radius: 2rem 0 0 0;
    }
    .side-bar{
        width: 3rem;
        border-radius: 0.8rem;
        top: 15rem;
        /* height: ; */
    }
    .side-bar-container{
        gap: 0.5rem;
    }
    .icon-side-bar{
        width: 1.8rem;
    }
    .item-box-container{
        width: 18rem;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .item-box{
        width: 8rem;
        height: 11.5rem;
        border-radius: 0.8rem;
    }
    .food-title__sub{
        display: none;
    }
    .box-description__price{
        font-size: 0.7rem;
        margin-top: 7%;
        padding: 5% 15% 6%;
    }

}

@media (max-width:350px){
    .back__img{
        width: 3.4rem;
        height: 3.4rem;
    }
    .side-bar{
        height: 34vh;
    }
    .section-title{
        font-size: 1.2rem;
    }
    .icon-side-bar{
        width: 1.5rem;
    }
    .side-bar-container{
        gap: 0.6rem;
    }
    .item-box-container{
        width: 16rem;
        gap: 0.2rem;
        padding: 0.2rem;
    }
    .item-box{
        width: 7.5rem;
        height: 10.5rem;

    }
    .box-description__price{
        gap: 0.1rem;
    }

}

@media(max-height:500px){
    .main{
        flex-direction: column-reverse;
    }
    .side-bar{
        top: 83vh;
        width: 50vw;
        left: 25vw;
        padding: 0.2rem 0.5rem;
        mask-image: none;
    -webkit-mask-image: none;
    }
    .side-bar-container{
        flex-direction: row;
    }
}
