/* Fonts */

@font-face {
    font-family: "YekanBakh Regular";
    src: url("../fonts/YekanBakh-Regular.woff");
}
@font-face {
    font-family: "YekanBakh Medium";
    src: url("../fonts/YekanBakh-Medium.woff");
}
@font-face {
    font-family: "YekanBakh Bold";
    src: url("../fonts/YekanBakh-Bold.woff");
}
@font-face {
    font-family: "YekanBakh Heavy";
    src: url("../fonts/YekanBakh-Heavy.woff");
}

/* Reset Css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
button{
    font: inherit;
    border: 0;

}
/* App Css */

body{
    font-family:"YekanBakh Medium";
    line-height: 1.5;
}
.icon-pack{
    display: none;
}
svg{
    width: 24px;
    height: 24px;
}
a{
    text-decoration: none;
    color: inherit;
}
.icon-pack{
    display: none;
}
svg{
    width: 24px;
    height: 24px;
}
.container{
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 16px;

}
.header{
    position: relative;
    z-index: 20;
    background-color: #fff;

}
.madar{
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.icon-pack{
    display: none;
}
.header-wraper{
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-logo{
    display: block;
}
.menu{
    display: flex;
    align-items: center;
    margin-right: 22px;
    gap: 24px;
}
.menu-item{
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "YekanBakh Medium";
    transition: all 150ms ease-in ;
    position: relative;
    
}
.menu-item:hover .menu-link{
    color: #2EC4B6;
}
.menu-link{
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 150ms ease-in ; 

}
.menu-item:hover .sub-menu-wrapper{
    visibility: visible;
    opacity: 1;
}
.sub-menu-wrapper{
    position: absolute;
    right: 0px;
    top: 24px;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 150ms ease-in;
    z-index: 20;
    
}
.submenu{
    position: relative;
    margin-top: 28px;
    background-color: #fff;
    width: 440px;
    height: 288px;
    border-top: solid 1px #E1E1E1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}
.submenu-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    width: 240px;
    background-color: #F4F4F5;
    transition: all 150ms ease-in;

}
.submenu-item:hover{
    background-color: #fff;
}
.submenu-item-body{
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    width: 200px;
    padding: 20px;
    font-size: 14px;
    color: #667085;
    opacity: 0;
    visibility: hidden;
}
.submenu-item:hover + div{
    opacity: 1;
    visibility: visible;

}
.submenu-item + div{
    transition: all 150ms ease-in 125ms;
}

.submenu-item > svg{
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
}
.down{
    width: 14px;
    height: 14px;
    transition: all 150ms ease-in ;
}
.menu-item:hover .down{
    transform: rotate(180deg);
    color: #2EC4B6;
}
.cart{
    position: relative;
    z-index: 20;
}
.cart-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #E5E5E5;
    position: relative;
    cursor: pointer;
    

}
.cart-body{
    position: absolute;
    width: 320px;
    
    border-radius: 12px;
    background-color: #ffffff;
    padding: 16px 20px;
    left: 0px;
    top: 64px;    
}

.cart-badge{
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background-color: #2EC4B6;
    color: #fff;
    border-radius: 100%;
    border: 1px solid #fff;
    
}
.cart-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 16px;
    margin-bottom: 12px;

}
.cart-title{
    font-family: "YekanBakh Bold";
    font-size: 16px;
}
.cart-counter{
    color: #667085;
}
.cart-footer{
    border-top: 1px solid #E5E5E5;
    padding-top: 20px;
    margin-top: 20px;
}
.cart-items{
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}
.product{
    display: flex;
    align-items: center;
    gap: 4px;

}
.product-img{

}
.product-info{
    display: flex;
    flex-direction: column;
    row-gap: 8px;

}
.product-name{
    font-size: 14px;
    display: block;
    width: 154px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis

}
.product-remove{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    width: 42px;
    height: 32px;
    margin-right: auto;
    

}
.cart-footer-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-price-title{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "YekanBakh Bold";
}
.cart-price{
    display: flex;
    align-items: center;
    gap: 4px;
}
.cart-price-number{
     font-family: "YekanBakh Bold"
}
.cart-price-nahed{
    font-family: "YekanBakh Regular";
    font-size: 14px;
}
.cart-link{
    width: 280px;
    height: 48px;
    border-radius: 10px;
    background-color: #2EC4B6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.header-link{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 142px;
    height: 48px;
    gap: 4px;
    color: #2EC4B6;
    border-radius: 10px;
    border: 1px solid #2EC4B6;
    transition: all 250ms ease;
    
}
.header-link:hover{
    color: #fff;
    border: 1px solid #fff;
    background-color: #2EC4B6;
}

.overlay,
.app-overlay{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 150ms ease-in;

}
.overlay--show{
    opacity: 1;
    visibility: visible;

}
.app-overlay{
    backdrop-filter: blur(4px);
}
.main-shap{
    height: 338px;
    border-radius: 16px;
    background-color: #2EC4B6;
    margin-top: 48px;


}
.submenu-item:hover + div,
.submenu-item + div:hover{
    opacity: 1;
    visibility: visible;
}
.submenu-item:hover,
.submenu-item:has(+ div:hover){
    background-color: #fff;
}
.cart-body{
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 150ms ease-in;
}
.cart-body--show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-btn{
    display: none;
}
.mobile-cart-btn{
    display: none;
}

.nav{
    display: none;
    height: 72px;
    position: fixed;
    bottom: 24px;
    right: 16px;
    left: 16px;
    background-color: rgb(26, 115, 156);

}
@media screen and (max-width: 768px) {
    .nav-btn{
        display: block;
    }
    .mobile-cart-btn{
        display: block;
    }
    .menu{
        display: none;
    }
    .header-wraper--left{
        display: none;
    }
    .header-logo{
        margin-left: 0;
    }
    .header{
        border-bottom: 1px solid #E1E1E1;
    }
    .header > .container {
        padding: 0 20px;
    }
    .main-shap{
        margin-top: 34px;
    }
    .nav{
        display: block;
    }

}