@font-face {
    font-family:'cairo' ;
    src: url('../static/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family:'cairo' ;
    src: url('../static/Cairo-Black.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;

}

:root{
    --green: #3cb649;
    --orng: #fc9023; 
    --light: #ddd;

    --theme: #fff;
    --txt: #292929;
    --shadow: #2e2e2e28;
    --del: rgba(0, 0, 0, .5);
}
body{
    font-family: 'cairo';
    background-color: var(--theme);
    transition: .3s;
}
*::selection{
    background-color: var(--green);
    color: #fff;
}
a{
    text-decoration: none;
    cursor: pointer;
    color: var(--txt);
}
a:not([href]):not([class]), a:not([href]):not([class]):hover {
    color: var(--txt);
    text-decoration: none;
}
/* mobaile Navbar start */
.mobileNav{
    display: none;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    align-items: center;
    height: 50px;
    background-color: var(--green);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0px 0px 16px 0px var(--shadow);

}
.mobileNav i{
    color: var(--green);
}
.mobileNav a{
    background-color: var(--theme);
    height: 100%;
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .2s;
}
/* mobaile Navbar end */

/* main header start */
header{
    padding: 40px 40px 0;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    transition: .3s;
    z-index: 9;
    background-color: var(--theme);
    border-bottom: 1px solid var(--shadow);
}
header.hidden{
    top: -150px;
}
.logoBox,
.menuBox{
    width: 20%;
}
.logoBox h3{
    color: var(--green);
    cursor: pointer;
    text-align: center;
}
header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    z-index: 999;

}
.searchBox{
    display: inline-flex;
    align-items: center;
}
.searchBox input{
    text-align: right;
    border: 1px solid var(--green);
    padding: 6px;
    outline: 0;
    width: 30vw;
    height: 40px;
    font-size: 14px;
}
.searchBox i{
    border: 1px solid var(--green);
    background-color: var(--green);
    color: #fff;
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .2s;
}
.searchBox i:hover{
    filter: opacity(0.7);
}
.menuBox{
    display: inline-flex;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 30px;
    font-size: 20px;
}
.menuBox i{
    cursor: pointer;
    color: var(--green);
    padding: 5px;
}
.menuBox a{
    position: relative;
}
.menuBox a::after{
    content: attr(data-info);
    color: var(--green);
    position: absolute;
    font-size: 11px;
    padding: 5px 10px;
    min-width: 100px;
    bottom: -20px;
    right: -35px;
    z-index: 999;
    text-align: center;
    transition: .2s;
    opacity: 0;
}
.menuBox a:hover::after{
    opacity: 1;

}
.menuBox a.active i{
    background-color: var(--green);
    color: var(--theme);
    border: 2px solid var(--green) ;
    border-radius: 50%;
    font-size: 16px;
}
.catigoriesNav{
    display: flex;
    flex-flow: row-reverse;
    font-size: 14px;
    justify-content: space-between;
    margin: 10px 0 0;
    position: relative;
}
.catigoriesNav div{
    display: inline-flex;
    align-items: center;
    flex-flow: column;
}
.catigoriesNav div ul{
    position: absolute;
    top: 42px;
    list-style: none;
    text-align: right;
    padding:  0;
    display: none;
    background-color: var(--theme);
    box-shadow: 0px 0px 16px 0px var(--shadow);
    z-index: 200;
}
.catigoriesNav div:hover ul{
    display: block;
}

.catigoriesNav div ul li{
    transition: .2s;
    padding: 10px 15px;
}
.catigoriesNav div ul li a{
    text-decoration: none;
    color: var(--txt);
    transition: .2s;

}
.catigoriesNav div ul li:hover{
    background-color: var(--green);
}
.catigoriesNav div ul li:hover a{
    color: #fff;
}
.catigoriesNav .catigoryItem{
    color: var(--txt);
    position: relative;
    transition: .2s;
    padding: 10px;
    text-wrap: nowrap;
    overflow-y: visible;

}

.catigoriesNav .catigoryItem.active{
    pointer-events: none;
}
.catigoriesNav div:hover .catigoryItem,
.catigoriesNav .catigoryItem.active{
    color: var(--green);
}
.catigoriesNav .catigoryItem::after{
    content: '';
    width: 0%;
    height: 3px;
    background-color: var(--green);
    position: absolute;
    bottom: 0px;
    left: 0;
    transition: .2s;
}
.catigoriesNav div:hover .catigoryItem::after,
.catigoriesNav .catigoryItem.active::after{
    width: 100%;
}
/* main header end */

.items {
    margin-top: 150px;
    
}
.items .card{
    border-radius: 0;
    padding: 0;
    border: 0;
    padding: 10px;
    transition: .3s;
    background-color: var(--theme);
}
.items .card:hover{
    z-index: 2;
    box-shadow: 0px 0px 16px 0px var(--shadow);
}
.items .card img{
    cursor: pointer;
}
.items .card .itemName{
    color: var(--txt);
    transition: .2s;
}
.items .card a{
    margin: auto;
}
.items .card .itemName:hover{
    text-decoration: underline;
    color: var(--green);
}
.items .card .oldPrice{
    font-size: 14px;
    color: var(--del);
}
.items .card .newPrice{
    color: var(--orng);
}
.items .card .addToCart{
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--green);
    padding: 10px;
    margin: 10px 20px;
    transition: .3s;
}
.card .addToCart:hover{
    filter: opacity(0.7);
}


/* categories  start*/
.categoriesBox{
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
}
.categoriesBox .category{
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 20%;
    margin-bottom: 20px;
    color: var(--txt);
}
.categoriesBox .category img{
    width: 100px;
    background-color: var(--shadow);
    padding: 10px;
    border-radius: 50%;
    transition: .2s;
}
.categoriesBox .category img:hover{
    padding: 5px;
}
/* categories  end*/

/* cart start */
.cart{
    position: fixed;
    left: -50vw;
    top: 0;
    bottom: 0;
    min-height: 100vh;
    width: 30vw;
    z-index: 9;
    background-color: var(--theme);
    /* box-shadow: 0px 0px 16px 2px var(--shadow); */
    border-right: 1px solid var(--shadow);
    transition: .4s;
}
.cart.opened{
    left: 0;
}
.cart h3{
    border-bottom: 2px solid var(--green);
    padding-bottom: 18px;
    color: var(--txt);
}
.cart .title{
    position: relative;

}
.cart .close{
    position: absolute;
    top: -25px;
    right: -45px;
    padding: 6px 15px;
    font-size: 20px;
    background-color: var(--green);

}
.cart .theItems{
    display: flex;
    flex-flow: column;
    background-color: var(--shadow);
    gap: 1px;
    overflow: scroll;
    transition: .4s;

}
.cart .cartItem {
    background-color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    color: var(--txt);
    transition: .4s;

}
.cart .cartItem .itemInfo{
    display: flex;
    align-items: center;
    flex-flow: column;
}
.cart .cartItem .itemInfo p{
    margin: 0;
}
.cart .cartItem .itemInfo .itemPrice{
    color: var(--green);
}
.cart .cartItem img{
    width: 50px;
}
/* cart end */
@media screen and (max-width: 768px) {
    header{
        padding: 20px 30px 0;
    }
    header nav{
        justify-content: center;
    }
    .menuBox{
        display: none;
    }
    .searchBox{
        display: none;
    }
    .logoBox{
        width: 100%;
    }
    .catigoriesNav{
        overflow-x: scroll;
        overflow-y: hidden;
    }
    .catigoryItem{
        user-select: none;
    }
    .card{
        max-width: 50%;
    }
    .mobileNav{
        display: flex;
    }
    .categoriesBox{
    gap: 20px;
    }
    .categoriesBox .category{
    width: 25%;
    }
    .categoriesBox h6{
        font-size: 14px;
    }
    .cart{
        left: -100vw;
        width: 100vw;
    }
    .cart .close{
        display: none;
    }
    
}