@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Thin.woff) format('woff');
    font-weight: 200;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Light.woff) format('woff');
    font-weight: 300;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Regular.woff) format('woff');
    font-weight: 400;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Regular.woff) format('woff');
    font-weight: 500;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Medium.woff) format('woff');
    font-weight: 600;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Bold.woff) format('woff');
    font-weight: 700;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Heavy.woff) format('woff');
    font-weight: 800;
}
@font-face {
    font-family: "iransans";
    src: url(../font/YekanBakh_FaNum_Fat.woff) format('woff');
    font-weight: 900;
}

@font-face {
    font-family: "iransansNumber";
    src: url(../font/IRANSansXFaNum-Regular.ttf) format('truetype');
}
.light_theme{
    --dark:#000;
    --grey:#ccc;
    --white:#fff;
    --orange:#FEBA27;
    --background:#F1F2F4;
    --colortext:#0D0D0D;
    --colorSub:#6d6d6d;
    --greyDark:#323335;
    --description:#646464;
    --line:#EDEDED;
    --countColor:#9C9C9C;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}
body{
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}
body *{
    box-sizing: border-box;

}
a{
    text-decoration: none;
}
.header_box{
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-family: "iransans";
    padding: 20px;
    position: sticky;
    top: 0;
    width: inherit;
    background: var(--background);
    z-index: 10;
    border-radius: 20px 20px 0 0;
 }
.create_pizza_btn{
    border-radius: 10px;
    border: 0.5px solid #FFAF02;
    background: var(--base, #FEBA27);
    box-shadow: 0px 4px 10px 0px rgba(159, 109, 0, 0.40);
    display: flex;
    align-items: center;
    padding: 12px;
    font-family: 'iransans';
    font-size: 14px;
    height: 38px;
    font-weight: 700;
    cursor: pointer;
    gap: 12px;
}
/*index css*/
.main_box{
    max-width: 600px;
    width: min(600px,100%);
    min-height: 100vh;
    max-height: 100vh;
    border: 1px solid #eee;
    border-radius: 20px;
    background-color: var(--background);
    height: fit-content;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    align-items: center;
}
.main_box .top_box{
    flex: 1;
    margin: 90px 0;
    overflow: auto;
    width: 100%;
}
.logo{
    height: 50px;
}
.search_box_parent{
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px 1px 14.4px 0px rgba(0, 0, 0, 0.10);
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    gap: 12px;
}
.search_box_parent input{
    border: none;
    background-color: transparent;
    direction: rtl;
    width: 100%;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}
.search_box_parent input::-webkit-input-placeholder{
    color: var(--grey);
    font-size: 16px;
    font-family: "iransans";
}
.search_box_parent input:focus-visible{
    outline: none;
}
.filter_box{
    background-color: var(--dark);
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
}
.filter_search{
    display: flex;
    gap: 15px;
    padding: 20px;
    width: 100%;
}
.category_box{
    display: flex;
    width: 74px;
    height: 105px;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: var(--white);
    border-radius: 40px;
    box-shadow: 0px 4px 24px 0px rgba(17, 17, 17, 0.04);
    cursor: pointer;
}
.img_category_box{
    border-radius: 50px;
    background-color: var(--white);
    padding: 10px;



}
.img_category_box img{
    width: 34px;
    height: 34px;
    object-fit: cover;
}
.name_category {
    font-family: "iransans";
}
.category_active{
    background-color: var(--orange);
}
.categories_box_parent{
    direction: rtl;

}
.title_categories{
    color: var(--dark);
    text-align: right;
    font-family: "iransans";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 25px 20px;
    display: block;
}
.categories_list{
    gap: 16px;
    display: flex;
    padding-right: 20px;
}
.swiper {
    width: 100%;
    height: fit-content;
    padding-right: 20px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    /*width: fit-content !important;*/
}
.name_category{
    color: var(--dark);
    font-family: "iransans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%
}
.product_box{
    display: flex;
    width: 175px;
    height: 250px;
    padding: 10px 12px;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
    position: relative;
}
.product_box .product_img{
    width: 100%;
    object-fit: contain;
    height: 155px;
}
.products_list{
    margin-top: 30px;
    display: flex;
    /*width: 386px;*/
    padding: 6px 20px;
    /*flex-direction: column;*/
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.products_list .product_title{
    color: var(--colortext);
    text-align: right;
    font-family: "iransans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.54px;

    display: block;
}
.products_list .product_description{
    color: var(--grey);

    text-align: right;
    font-family: "iransans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.36px;
}
.products_list .price_product{
    color: var(--orange);

    text-align: right;
    font-family: IRANSansX;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.42px;
}
.products_list .price_product{
    color: var(--orange);
    margin: 0;
    text-align: right;
    font-family: "iransans";
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;

}
.products_list .price_product .number_price{
    font-family: "iransansNumber";
}
.products_list .footr_product{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.heart_box{
    display: flex;
    width: 28px;
    height: 21px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: var(--orange);
}
.footer_box{
    background: var(--white);
    box-shadow: 8px 4px 24px 0px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    bottom: 0;
}
.footer_box svg{
    width: 24px;
    height: 24px;
}
.footer_box a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.footer_box .dot{
    position: absolute;
    bottom: -16px;
    display: none;
    width: 12px;
    height: 12px;
}
.footer_box a.active svg path{
    fill: var(--orange);
}
.footer_box a.active .dot{
    display: block;
}
.discount_img{
    position: absolute;
    top: -10px;
    left: -5px;
}
.deactive_product{
    filter: grayscale(1) brightness(0.8);
    opacity: 0.7;
}
/*sub menu*/
.mySwiper2 {
    width: 100%;
    height: fit-content;
    margin-top: 20px;
    padding: 0 40px;
}
.sub_menu_item{
    width: fit-content;
    padding: 0 10px;
    height: 30px;
    background-color: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--colorSub);
    gap: 5px;
    font-family: 'iransans';
    border: 1px solid var(--colorSub);
    cursor: pointer;
}
.sub_menu_item.active{
    background-color: rgba(254, 186, 39, 0.30);
    border: 1px solid rgba(254, 186, 39, 0.30);
}
.mySwiper2 .swiper-slide{
    width: fit-content !important;
}
.notFound_div{
    height: 200px;
    width: 100%;
}
.notFound_div img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.not-found-img{
    width: 100%;
    object-fit: contain;
}
/*loading*/
.dontShow{
    display: none !important;
}
.loading_parent{
    position: fixed;
    width: inherit;
    height: 100vh;
    background: #0e0e0e96;
    z-index: 1000;
}
.loading_parent .loading_box{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}
.loading_parent .loading_box img{
    width: 100px;
}
.loader div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 0.5rem;
    animation: loading 2.5s ease-in-out infinite;
}
.loader{
    display: flex;
}

@keyframes loading {
    0%,
    100% {
        transform: scale(0.2);
        background-color: var(--orange);
    }
    42% {
        background-color: var(--orange);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        background-color: var(--orange);;
        opacity: 0.8;
    }
}

.loader div:nth-child(0) {
    animation-delay: 0s;
}
.loader div:nth-child(1) {
    animation-delay: 0.2s;
}
.loader div:nth-child(2) {
    animation-delay: 0.4s;
}
.loader div:nth-child(3) {
    animation-delay: 0.6s;
}
.loader div:nth-child(4) {
    animation-delay: 0.8s;
}
.loader div:nth-child(5) {
    animation-delay: 1s;
}
.bottom_box{
    position: fixed;
    bottom: 0;
    width: inherit;
}
.sidebar_parent{
    background-color: var(--white);
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(300px,80%);
    right:0;
    z-index: 1000;
    padding: 20px;
    transition: 0.3s;
    direction: rtl;
}
.sidebar_parent .top_sidebar{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.sidebar_parent .photo{
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background-color: var(--orange);
    padding: 5px;
}
.sidebar_parent .name{
    color: var(--colortext);
    text-align: right;
    font-family: "iransans";
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}
.sidebar_parent .phone{
    color: var(--countColor);
    font-feature-settings: 'ss01' on;
    font-family: "iransans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.sidebar_parent .list_items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}
.sidebar_parent .list_items .item{
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.sidebar_parent .list_items .item span{
    color: var(--colortext);
    text-align: right;
    font-family: "iransans";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
.sidebar_parent .log_out{
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--orange);
    border-radius: 20px;

   border: none;
    outline: none;
    cursor: pointer;
    margin: 20px 0;
    position: fixed;
    bottom: 0;
    padding: 5px 15px;
    justify-content: space-between;
}
.sidebar_parent .log_out img{
    width: 30px;
    background: var(--white);
    border-radius: 50%;
}
.sidebar_parent .log_out span{
    color: var(--colortext);
    font-family: "iransans";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 20px */
}
.dontVisible{
    right: -100vw;
}
.backSidebar{
    width: 100vw;
    height: 100vh;
    background: #80808061;
    position: fixed;
    z-index: 100;
    top: 0;
}
.header_box .right_box_header{
    display: flex;
    align-items: center;
    gap: 25px;
    font-weight: bold;
    font-size:20px ;
}
.header_box .right_box_header span{
    font-weight: bold;
    font-size: 20px;
}
.back_header_btn{
    width: 40px;
    height: 40px;
    background-color: var(--orange);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/*   product   */
 .productItem{
    background: var(--white);
    box-shadow: 0px 2px 8px 0px #0000000F;
    width: 100%;
    height: 93px;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
}
 .productItem .leftBox img{
    width: 60px;
    height: 60px;

}
 .productItem .rightBox.favorite{
    width: 46px;
    background-color: var(--orange);
    border-radius: 16px;
    height: 35px;
}
 .productItem .rightBox.favorite img{
    width: 20px;
    height: 20px;
}
 .productItem .leftBox .title{
    font-weight: 800;
    color: var(--black);
}
 .productItem .leftBox .description{
    font-weight: 400;
    color: var(--grey);
}
.productItem .rightBox.product .price{
    color: var(--orange);
    text-align: right;
    font-family: 'iransansNumber';
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    letter-spacing: -0.64px;
    display: flex;
    margin: 0;
    gap: 5px;
    direction: rtl;
}
.productItem .rightBox.product  .old_price{
    color: var(--countColor);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.42px;
    text-decoration:line-through;
    text-decoration-color: var(--grey);
    text-align: right;
    font-family: 'iransansNumber';
    display: flex;
    margin: 0;
    gap: 5px;
    direction: rtl;
}
.productItem .rightBox.product {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
/* search modal */
.backModal{
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    z-index: 1000;
    max-width: 600px;
    width: min(600px, 100%);
    top: 0;
    font-family: "iransans";
}
.backModal .modalSearchFilter{
    max-width: 350px;
    height: fit-content;
    border-radius: 16px;
    background-color: var(--white);
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}
.backModal .modalSearchFilter .close{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--line);
    padding-top: 5px;
    cursor: pointer;
}
.backModal .modalSearchFilter .titleModal{
    font-size: 20px;
}
.backModal .modalSearchFilter .titleSection{
    font-size: 16px;
    margin: 20px 0;
    display: block;
    text-align: right;
}
.sectionBox .labels{
    gap: 10px;
}
.sectionBox .labels .label{
    border: 1px solid var(--grey);
    border-radius: 33px;
    height: 46px;
    padding: 10px 15px;
    box-sizing: border-box;
    color: var(--grey);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}
.sectionBox .labels  input{
    display: none;
}
.sectionBox .labels  input:checked + .label{
    background-color: var(--orange);
    color: var(--white);
    border: 1px solid var(--orange);
}
.backModal .modalSearchFilter .searchFilter{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 100%;
    border-radius: 33px;
    background-color: var(--dark);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    gap: 5px;
}
@media screen and (max-width:600px) {
    .main_box{
        border-radius: 0;
    }
}
@media screen and (max-width:400px) {
    .product_box{
        width: 155px;
    }
}