* {
  direction: rtl !important;
  unicode-bidi: embed !important;
}
@font-face {
    font-family: 'Byekan';
    src: url('../../../fonts/B_Yekan/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
@font-face {
  font-family: 'english';
  src: url(./fonts/assistant_n4.9120912a469cad1cc292572851508ca49d12e768\ \(1\)\ \(1\).woff2);
}
@font-face {
  font-family: 'classic';
  src: url(./fonts/CAMBRIA.TTC);
}
@font-face {
  font-family: 'Bnazanin';
  src: url(./fonts/B-NAZANIN.TTF);
}
body {
  margin: 0;
  padding-top: 60px;
  background: #f9f9f9;
  direction: rtl;
  background: #f9f9f9;
  overflow-x: hidden; /* حذف اسکرول افقی */
  font-family: 'Byekan', tahoma, sans-serif;
}

/* هدر */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: black;
  color: #fff;
  z-index: 1000;
  box-shadow: none;
  border-bottom: none;
  font-size: 1.2rem;
  margin: 0;
}
header, .header-row, nav, .nav-links { 
  direction: rtl !important;
  unicode-bidi: plaintext !important;
   }
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}
.brand img{
  height: 65px;   /* هر اندازه‌ای که می‌خوای */
  width: auto;    /* نسبت تصویر حفظ میشه */
  display: block; /* جلوگیری از فاصله اضافی */
  margin: 0;
}
nav ul.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

nav ul.nav-links li {
  position: relative;
}

nav ul.nav-links li a {
  display: block;
  padding: 8px 12px;
  margin: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* سطح دوم */
nav ul.nav-links li > ul {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: black;
  min-width: 160px;
  z-index: 1000;
}

nav ul.nav-links li ul li {
  margin: 0;
  padding: 0;
}
nav ul.nav-links li ul li a {
  display: block;
  padding: 8px 12px;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}
/* سطح سوم */
nav ul.nav-links li > ul > li > ul {
  list-style: none;
  display: none;
  position: absolute;
  top: 0;
  right: 100%;
  background: black;
  min-width: 160px;
  z-index: 1000;
}


/* نمایش سطح دوم هنگام hover */
nav ul.nav-links li:hover > ul {
  display: block;
}

/* نمایش سطح سوم هنگام hover روی آیتم سطح دوم */
nav ul.nav-links li > ul > li:hover > ul {
  display: block;
}

/* خط قرمز زیر منو ها */
.nav-links li .menue {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* خط قرمز مخفی اولیه */
.nav-links li .menue::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
  background-color: red;
  transition: width 0.3s ease;
}

/* هنگام هاور، خط قرمز ظاهر میشه */
.nav-links li .menue:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}
.searchIcon{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.searchIcon .cartButton{
  margin-left: 0.5rem;
  cursor: pointer;
  background-color: black;
  border-radius: 0.5rem;
  border: none;
  transition: background-color ease 0.7s;
  margin-right:15px;
  margin-left: 20px;
}
.searchIcon .cartButton img{
  height: 50px;   /* هر اندازه‌ای که می‌خوای */
  width: auto;    /* نسبت تصویر حفظ میشه */
}
.searchIcon .cartButton p{
  color: grey;
}
.searchIcon .search{
  cursor: pointer;
  background-color: black;
  border-radius: 0.5rem;
  border: none;
  transition: background-color ease 0.7s;
  height: 25px;   /* هر اندازه‌ای که می‌خوای */
  width: auto;    /* نسبت تصویر حفظ میشه */
  margin: 0;
}
.searchIcon .search img{
  height: 25px;   /* هر اندازه‌ای که می‌خوای */
  width: auto;    /* نسبت تصویر حفظ میشه */
}
.searchIcon .cartButton:hover{
  background-color: rgb(255, 255, 255);
}
.searchIcon .search:hover{
  background-color: rgb(255, 255, 255);
}
.searchIcon input{
  padding: 0.2rem;
  width: 8rem;
  border: none;
  border-radius: 0.7rem;
  margin: 1px;
}
/* همبرگر */
.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}
@media (max-width: 950px) {
  .hamburger {
    display: block;
    order: 0; /* سمت راست */
  }
  .searchIcon{
    order: 3;
    display: flex;
    justify-content: flex-end;
  }
  .searchIcon .search{
    display: none;
  }
  .searchIcon .cart{
    margin: 0;
  }
  .searchIcon .cartButton{
    margin-left: 0;
    margin-right: 0;
  }
  .brand {
    order: 2; /* سمت چپ */
  }
  nav {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: black;
    display: none;
    flex-direction: column;
  }
  nav.active {
    display: flex;
  }
  nav ul.nav-links {
    flex-direction: column;
  }
  nav ul.nav-links li ul {
    position: static;
  }
  nav ul.nav-links li ul li ul {
    position: static;
  }

}

@media (max-width:1100px){
  nav ul.nav-links li > ul > li > ul > li > ul{
  list-style: none;
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: black;
  min-width: 160px;
  z-index: 1000;
}
nav ul.nav-links li > ul > li > ul > li:hover > ul{
  display: block;
}
}
.breadcrumb {
  margin-top: 4.4rem;
  background: #f7f7f7;
  padding: 10px 0;
  font-size: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
  display: block !important;
  position: relative;
}

.breadcrumb .container {
  width: 95%;
  max-width: 1200px;
  margin: auto;
}

.breadcrumb a {
  color: #007b8f;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb a:hover {
  color: #005f6b;
}

.breadcrumb span {
  color: #555;
  margin: 0 5px;
}
.page-content{
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 0;
}
.seo-text{
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* محصولات */
.products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 4rem;
}
@media (max-width: 1024px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-container {
    grid-template-columns: 1fr;
  }
}
/* کارت محصول */
.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* اسلایدر محصول */
.product-slider {
  height: 250px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 10px;
  position: relative;
}

.product-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  position: absolute;
  top: 0;
  right: 0;
}

.product-slider img.active {
  display: block;
  position: relative;
}

/* عنوان محصول */
.product-card h3 {
  font-size: 16px;
  margin: 10px 0;
  color: #333;
  text-align: center;
  height: 40px;
  overflow: hidden;
  font-family: 'IranSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* قیمت محصول */
.product-price {
  text-align: center;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.product-price .price {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
  font-family: 'IranSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.product-price .currency {
  font-size: 14px;
  color: #666;
  margin-right: 5px;
}

/* لینک مشخصات محصول */
.details-link {
  display: block;
  text-align: center;
  color: #3498db;
  text-decoration: none;
  margin: 10px 0;
  font-size: 14px;
  transition: color 0.3s;
}

.details-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* دکمه افزودن به سبد خرید */
.add-to-cart-btn {
  width: 100%;
  background: #cdd1cf;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.3s ease;
  font-family: 'IranSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.add-to-cart-btn:hover {
  background: rgb(165, 222, 210);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cart-icon {
  font-size: 18px;
}


footer {
  background: black;
  color: #fff;
  text-align: center;
  padding: 20px;
}
