@font-face {
  font-family: "Vazir Bold";
  src: url("/vazir-font-v16.1.0/Vazir-Bold.woff");
}
@font-face {
  font-family: "Vazir Light";
  src: url("/vazir-font-v16.1.0/Vazir-Light.woff");
}
@font-face {
  font-family: "Vazir Thin";
  src: url("/vazir-font-v16.1.0/Vazir-Thin.woff2");
}
* {
  margin: 0;
}
body {
  direction: rtl;
}
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: fixed;
  width: 100%;
  top: 0;
  height: 80px;
  background-color: white;
  z-index: 10;
}
.desktop-header img {
  width: 50px;
  height: 50px;
  margin-left: 20px;
}
.mobile-header {
  display: none;
}
.name {
  font-family: "Vazir Bold";
}
header a {
  color: #111;
  text-decoration: none;
  font-family: "Vazir Light";
  transition: all ease-in-out 0.3s;
}
header a:hover {
  color: #fec82f;
}
.hover-wrapper {
  position: relative;
}
.hidden1 a {
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 30px;
}
.hidden1 {
  direction: ltr;
  position: absolute;
  top: 0px;
  background-color: white;
  padding: 10px 50px;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: top 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 11;
  left: -50px;
}
.hiddenN {
  position: absolute;
  background-color: white;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 10;
  margin-left: 100px;
  top: 0;
  direction: rtl;
  width: 200px;
  padding: 10px 20px;
  box-shadow: 1px 1px 10px #fec82f;
}
.hiddenB {
  position: absolute;
  background-color: white;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 10;
  margin-left: 100px;
  top: 50px;
  direction: rtl;
  width: 200px;
  padding: 10px 20px;
  box-shadow: 1px 1px 10px #fec82f;
  display: flex;
  flex-direction: column;
}
.H-N:hover .hiddenB {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.H-N:hover .hiddenN {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.hover-wrapper:hover .hidden1 {
  opacity: 1;
  visibility: visible;
  top: 22px;
  transition: top 0.3s ease, opacity 0.3s ease;
}

.advice {
  background-color: #405171;
  color: white;
  font-family: "Vazir Light";
  border: none;
  border-radius: 8px;
  padding: 5px 25px;
  cursor: pointer;
}
.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-top: 80px;
  background-color: #fec82f;
  border-radius: 18px;
}

.slides {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 180px;
}

.caption {
  position: absolute;
  left: 5%;
  top: 30%;
  transform: translateY(-50%);
  color: white;
  text-align: right;
}
.caption2 {
  position: absolute;
  right: 10%;
  top: 30%;
  transform: translateY(-50%);
  color: white;
  text-align: right;
}
.caption-sahand {
  position: absolute;
  left: 0%;
  top: 30%;
  transform: translateY(-50%);
  color: white;
  text-align: right;
}
.caption-sahand h3 {
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);

  font-size: 40px;
  font-family: "Vazir Bold";
}
.caption2 h3 {
  color: black;
  font-size: 40px;
  font-family: "Vazir Bold";
}
.caption-sahand p {
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);

  font-size: 20px;
  margin: 10px 50px;
  font-family: "Vazir Light";
}
.caption2 p {
  font-size: 20px;
  margin: 10px 50px;
  color: black;
  font-family: "Vazir Light";
}
.caption h3 {
  color: black;
  font-size: 40px;
  font-family: "Vazir Bold";
}

.caption p {
  font-size: 22px;
  margin: 10px 50px;
  color: black;
  font-family: "Vazir Light";
}

.sliderbutton1 {
  padding: 10px 20px;
  background: orange;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.bg-slide {
  background-image: url("images/IMG-20260711-WA0000.jpg");
  background-size: cover; /* کل فضا پر میشه */
  background-position: center; /* مرکز عکس */
  background-repeat: no-repeat;
}
.bg-slide2 {
  background-image: url("images/Screenshot\ 2025-12-15\ at\ 2.31.35\ PM.png");
  background-size: cover; /* کل فضا پر میشه */
  background-position: center; /* مرکز عکس */
  background-repeat: no-repeat;
  padding-top: 50px;
}
.bg-slide3 {
  background-image: url("A-U\ images/Graeme.jpeg");
  background-size: cover; /* کل فضا پر میشه */
  background-position: center; /* مرکز عکس */
  background-repeat: no-repeat;
  padding-top: 50px;
}
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #405171;
  border: none;
  font-size: 30px;
  padding: 5px 12px;
  cursor: pointer;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}
.logo-cochlear {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  right: 20px;
  z-index: 1;
}
.maininfo {
  margin-top: 80px;
  padding: 0 30%;
  text-align: center;
  line-height: 2.2;
  font-family: "Vazir Bold";
  color: #4c4c4c;
}
.icons {
  display: flex;
  align-items: center;
  align-content: center;
  padding: 5% 30%;
  justify-content: space-evenly;
}
.icon img {
  width: 100px;
}
.icon p {
  font-family: "Vazir Thin";
  margin-right: 10px;
  margin-top: 5px;
  color: #4c4c4c;
}
.products {
  font-family: "Vazir Bold";
  text-align: center;
}
.product {
  border: 2px solid #dfdfdf;
  width: 200px;
  border-radius: 16px;
  padding: 2% 4%;
  flex-direction: column;
  display: flex;
  margin: 0 50px;
  height: 500px;
  position: relative;
  padding-bottom: 4%;
  flex-shrink: 0;
  justify-content: space-evenly;
}
.product p {
  font-family: "Vazir Thin";
  color: #787878;
  margin-top: 15px;
}
.product strong {
  font-family: "Vazir Thin";
  font-size: larger;
}
.product img {
  width: 100%;
  align-items: center;
  align-self: center;
}
.products2 {
  display: flex;
  gap: 25px; /* فاصله بین کارت‌ها */
  margin-top: 30px;
  overflow-x: auto;
  flex-wrap: nowrap;
  width: 100%;
  scroll-behavior: smooth;
  justify-content: flex-start; /* ⭐ حیاتی */
}

.product a {
  color: #2419f5;
  position: absolute;
  bottom: 20px;
  text-decoration: none;
  font-family: "Vazir Light";
}
.popup {
  position: fixed;
  background-color: #405171;
  width: 70vw;
  height: 50vh;
  text-align: center;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  overflow: scroll;
  border-radius: 18px;
}
.popup.active {
  opacity: 1;
  pointer-events: auto;
  top: 50%;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 5;
  transition: all ease 0.5s;
}
.overlay.active {
  display: block;
  opacity: 1;
}
table {
  border-spacing: 40px;
  border-collapse: separate;
}
th {
  font-family: "Vazir Bold";
  color: #fec82f;
}
td {
  font-family: "Vazir Thin";
  color: #fec82f;
}
/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-wrapper {
  text-align: center;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.spinner-text {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #3498db;
  animation: pulse 1.2s infinite;
}

/* چرخش اسپینر */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* انیمیشن متن */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* محتوای سایت ابتدا پنهان */
#content {
  visibility: hidden;
}

/* تصاویر ریسپانسیو و lazy load */
.lazy {
  width: 100%;
  display: block;
  margin: 10px auto;
}
footer {
  font-family: "Vazir Bold";
  text-align: center;
  margin-top: 80px;
}
footer a {
  text-decoration: none;
  color: black;
  transition: all ease 0.4s;
}
footer a:hover {
  color: #14824b;
  transition: all ease 0.4s;
}
@media screen and (max-width: 913px) {
  .desktop-header {
    display: none;
  }
  .mobile-header {
    display: block;
  }
  .menu {
    width: 100%;
    height: 0; /* در حالت بسته */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-y: hidden;
    transition: 0.5s;
    text-align: center;
    z-index: 11;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .menu a {
    display: block;
    padding: 12px;
    text-decoration: none;
    font-size: 20px;
    color: #f1f1f1;
    transition: 0.3s;
  }

  .menu a:hover {
    background: #575757;
  }

  .menu .close-btn {
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 36px;
    color: white;
  }

  .open-btn {
    font-size: 20px;
    cursor: pointer;
    padding: 10px 15px;
    background: #efefef;
    color: #3f1482;
    border-radius: 5px;
    margin: 20px;
    display: flex;
    width: 70px;
  }

  .content {
    padding: 20px;
  }
  .slider h3 {
    font-size: small;
    color: orange;
  }
  .slider p {
    font-size: xx-small;
    top: 34%;
    left: 15%;
  }
  .sliderbutton1 {
    top: 0;
    font-size: x-small;
    padding: 2px 15px;
    top: 50%;
    left: 13%;
  }
  .sliderimages img {
    right: 0px;
  }
  .sliderimages {
    width: 100%;
    padding: 0;
    height: 30vh;
    position: relative;
    overflow: hidden;
  }
  .maininfo {
    margin-top: 0;
    padding: 0;
  }
  .icons {
    padding: 0;
    margin-top: 30px;
  }
  .products {
    margin-top: 50px;
  }
  .product {
    width: 55%;
  }
}
