@font-face {
    font-family: yekan;
    src: url(/css/IRANYekan.ttf);
}
*{
    direction: rtl;
    font-family: 'yekan';
}

:root {
    --shadow: rgba(0, 0, 0, 0.8)
  }

*{
    margin: 0px;
    direction: rtl;
    box-sizing: border-box;

}
body{
    margin: 0px 2px 5px 2px;
}

.header{
    display: flex;
    width: 100%;
    height: fit-content;
    position: fixed;
    background-color: white;
    box-shadow: 1px 1px 8px 1px rgba(0, 0, 0, 0.098);
    padding: 0.5rem;
    z-index: 10000;
    top: 0px;
}
.searchbar{
    display: flex;
    background-color: rgb(243, 243, 243);
    direction: rtl;
    border-radius: 12px;
    width: 98%;
    height: 3rem;
    margin: 5px 5px 5px 5px;
    top: 0px;
    align-items: center;


}
#search{
    width: 95%;
    height: 2.5rem;
    text-align: right;
    border-width: 0px;
    background-color: transparent;
    font-size: large;
    top: 0px;
    right: 0px;
}

#searchbar:hover{
cursor: pointer;
}

.searchicon{
    color: rgb(135, 135, 135);
    font-size:1.5rem;
    text-align: center;

    margin-right: inherit;


}
.searchimg{
    width: 2.5rem;
    margin-right: 0.5rem;
    margin-bottom: 5px;
}
.searchtext{
    margin-right: 2rem;
}
.content{
    width: 100%;
    margin-bottom: 3rem;

}
.navbar{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(6px);
    margin: 0px;
    bottom: 0px;
    right: 0px;
    box-shadow: 1px 1px 8px 1px rgba(0, 0, 0, 0.098);
}

.navitem{
    width: 25%;
    height: 100%;
    display: grid;
    align-items: center;
    justify-content: center;

}
.navitem p{
    text-align: center;
    margin-top: 4px;
}
.navitem img{
    width: 100%;
    height: 1.8rem;
    margin-top: 3px;
}
.activenav{
   filter: invert(41%) sepia(65%) saturate(1155%) hue-rotate(131deg) brightness(72%) contrast(107%);
   .cartcounternotif p{
    filter: none;
   }
}

.cartcounternotif{
    display: flex;
    position: absolute;
    left: 38%;
    top: 4px;
}
.cartcounternotif p{
    color: white;
    padding: 2px 6px;
    font-size: small;
    background-color: rgb(213 35 35);
    border-radius: 3rem;
}
.orderforconfirmcounternotif{
      display: none;
    position: absolute;
    left: 13%;
    top: 4px;
}
.orderforconfirmcounternotif p{
    color: white;
    padding: 2px 6px;
    font-size: small;
    background-color: rgb(213 35 35);
    border-radius: 3rem;
}

.readytosendnotif{
      display: none;
    left: 13%;
    top: 4px;
    margin-right: auto;
}
.readytosendnotif p{
    color: white;
    padding: 4px 8px;
    font-size: medium;
    background-color: rgb(213 35 35);
    border-radius: 3rem;
}


  /* بخش خاص برای نمایش Toast */
    .page-section {
      width: 80%;
      margin: 40px auto;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 12px;
      min-height: 300px;
      position: relative; /* مهم */
      text-align: center;
    }

    /* کانتینر توست‌ها */
    .toast-container {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: center;
      z-index: 99999; /* همیشه بالاتر از بقیه المان‌ها */
    }

    /* ظاهر Toast */
    .toast {
      min-width: 200px;
      max-width: 260px;
      padding: 12px 16px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.678);
      color: #bb0e0e;
      font-size: 14px;
      text-align: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
      opacity: 0;
      font-weight: bold;
      transform: translateY(-15px);
      animation: slideDown 0.4s ease forwards, fadeUp 0.5s ease forwards 9.5s;
      z-index: 99999; /* همیشه بالاتر از بقیه المان‌ها */
        /*  افکت بلور پشت زمینه */
     backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px); /* برای Safari */
    }

    @keyframes slideDown {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeUp {
      to {
        opacity: 0;
        transform: translateY(-15px);
      }
    }








.bar{
    top: 0px;
    padding: 3px 0px 0px 0px;
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    position: fixed;
    background-color: rgb(255, 255, 255);
    backdrop-filter:  blur(10px);
    box-shadow: 5px 5px 8px 1px rgba(0, 0, 0, 0.12);
}
#bartitle{
    text-align: center;
}
.backbutton{
    font-size: 2rem;
    padding: 0.4rem 0.8rem;
    color: rgb(156, 156, 156);
    border-radius: 3rem;

}

.backbutton:active{
    background-color: rgba(0, 0, 0, 0.067);

}