@font-face {
  font-family: "Anjoman";
  font-style: bold;
  font-weight: 1050;
  src: url("mofonts/Anjoman-FaNum-Bold.woff") format("woff");
}

@font-face {
  font-family: "Anjoman-Black";
  font-style: normal;
  font-weight: 1150;
  src: url("mofonts/KalamehWeb(FaNum)-Black.woff") format("woff");
}

@font-face {
  font-family: "Anjoman-Reg";
  font-style: normal;
  font-weight: 1150;
  src: url("mofonts/Anjoman-FaNum-Regular.woff") format("woff");
}

* {
  font-family: Anjoman;
  font-weight: 1050;
}

nav .marker {
  left: 0;
  position: absolute;
  height: 4px;
  width: 0;
  background: blue;
  bottom: -0.2px;
  border-radius: 10px;
  transition: 0.3s;
}

/* Style the logo image */
.logo {
  display: inline-block;
  width: 100px;
  /* adjust the width of the image */
  height: 100px;
  /* adjust the height of the image */
  margin-right: 20px;
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}

.nav-link {
  margin-left: 40px;
  margin-right: 10px;
}

.navbar-head {
  text-decoration: none;
  list-style-type: none;
}

.header {
  box-shadow: 0px 0px 2px rgba(182, 184, 187, 0);
}

.header.scrolled {
  box-shadow: 0px 0px 50px rgba(182, 184, 187, 0.986);
}

.bl {
  margin-top: 200px;
  text-align: center;
}

.bl1 {
  font-family: Anjoman-Reg;
  font-size: 3rem;
}

.bl2 {
  font-family: Anjoman;
  font-size: 4rem;
  color: blue;
}

.search-box {
  background-color: #f4f4f4;
  /* رنگ پس زمینه */
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50rem;
  width: 100%;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  border: solid 3px rgb(221, 221, 221);
}

.search-box input {
  width: 80%;
  padding: 10px;
  border: none;
  outline: 2px;
}

.search-box.active {
  box-shadow: 0px 0px 20px rgba(0, 0, 255, 0.3);
  /* تغییر box-shadow در حالت فعال */
}

.search-box button {
  width: 20%;
  background-color: rgb(255, 255, 255);
  color: blue;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  width: 20%;
  background-color: blue;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.ptext {
  margin-top: 100px;
  text-align: center;
  font-family: Anjoman-Reg;
  font-size: 3rem;
  color: rgb(59, 59, 59);
}

#product-container {
  margin-bottom: 100px;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-left: 1%;
  margin-right: 1%;
}

.product-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out,
    margin 0.4s ease-out;
  margin: 40px;
  width: 500px;
  /* تعیین عرض محصول */
  box-shadow: 5px 4px 2px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
}

.product-card:hover {
  transform: translateY(-10px);
  transition: all 0.5 ease-in-out;
  box-shadow: 5px 8px 2px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.pname {
  float: right;
}

.price {
  padding-top: 30px;
  float: left;
  color: blue;
}

.price-takhfif {
  padding-top: 35px;
  float: left;
  color: rgb(185, 185, 185);
  text-decoration: line-through;
  font-size: 12px;
  padding-left: 13px;
}

.product-card img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
}

@keyframes shine {
  50% {
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 1);
    /* درصد 50 برای لحظه افزایش نور */
    filter: brightness(150%);
    animation: shine 0.5s ease-in-out 4;
  }
}

.product-card:hover {
  transform: translateY(-5px);
  animation: shine 0.5s ease-in-out 1;
  /* اجرای انیمیشن shine با مدت زمان 0.5 ثانیه */
  filter: brightness(110%);
  /* برگشت به حالت عادی با افزایش روشنایی کمتر */
}

.product-info {
  padding: 15px;
}

.shine {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.product-card:hover .shine {
  opacity: 1;
}

.product-card .product-info {
  background-color: white;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform: translateY(0);
  transition: all 0.4 ease-in-out;
  box-shadow: 0px -30px 30px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) t;
  transition: transform 0.5s ease-in-out;
}

.product-card:hover .product-info {
  background-color: white;
  transform: translateY(-90%);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0px -30px 30px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) t;
}

.pname,
.price {
  transition: margin 0.3s ease-out;
}

.product-card:hover .pname,
.product-card:hover .price {
  margin-top: 0;
}

.price {
  display: block;
}

@keyframes fadeInColor {
  from {
    color: white;
    /* رنگ متن در ابتدای انیمیشن (سفید) */
  }

  to {
    color: rgb(5, 5, 5);
    /* رنگ متن در انتهای انیمیشن (خاکستری) */
  }
}

.hidden-option {
  position: absolute;
  left: 160px;
  justify-content: right !important;
  align-items: flex-start;
  width: 100%;
  padding-top: 60px;
  display: none;
  box-sizing: border-box;
  transition: all 0.5 ease-in-out;
  font-family: Anjoman-Reg;
}

@media (max-width: 768px) {

  /* تنظیمات برای صفحات کوچکتر */
  .hidden-option {
    position: absolute;
    left: 3em;
    align-items: flex-start;
    width: 100%;
    padding-top: 4em;
    display: none;
    box-sizing: border-box;
    transition: all 0.5 ease-in-out;
    font-family: Anjoman-Reg;
  }
}

.product-card:hover .hidden-option {
  display: block;
  opacity: 1;
  transition: all 0.3 ease-in-out;
}

.hidden-option {
  color: rgb(78, 78, 78);
}

.hidden-option {
  color: rgb(78, 78, 78);
}

.info-hovered {
  position: relative;
  z-index: 1;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* لوگو کوچکتر در اسکرول */
.header.scrolled .navbar-head img {
  width: 70px;
  height: 70px;
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}

/* تغییرات در ناوبار در اسکرول */
.header.scrolled .navbar {
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {

  /* تنظیمات برای صفحات کوچکتر */
  .price-takhfif {
    padding-top: 0.5em;
    float: left;
    color: (185, 185, 185);
    text-decoration: line-through;
    font-size: 12px;
    padding-left: 13px;
  }
}

.hidden-option button {
  border: 0px;
  color: gray;
}

.hidden-option button:hover {
  border: 0px;
  color: blue;
  transition: color 0.4s ease-in-out;
}

/* footer */
body {
  font-family: "Anjoman-Reg";
  margin: 0;
  padding: 0;
  direction: rtl;
}

.footer {
  background-color: rgb(211, 211, 211);
  color: blue;
  padding: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  width: 48%;
  /* تا حد امکان با فاصله‌ها و حاشیه‌ها تعداد کلون‌ها ۱۰۰٪ شود */
}

.footer-col h2 {
  font-size: 1.5rem;
  padding-bottom: 10px;
}

.footer-col p {
  font-size: 0.8rem;
  color: rgb(168, 168, 168);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 20px;
  }
}

.footer p {
  transform: translateY(0%);
  color: rgb(70, 70, 70);
  opacity: 1;
  transition: all ease-in-out;
  cursor: pointer;
}

.footer p:hover {
  transform: scale(1.1);
  color: blue;
  opacity: 1;
  transition: 0.4s all ease-in-out;
}

.cr {
  font-size: 12px;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 5px;
  background-color: rgb(184, 184, 184);
  margin-bottom: 0px;
}

/* login */

.login-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
}

.login-container h2 {
  color: #0000ff;
  margin-bottom: 20px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #0000ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .login-container {
    max-width: 100%;
  }
}

.slider-container {
  margin-top: 500px;
}