* {
  direction: rtl !important;
  unicode-bidi: embed !important;
}
@font-face {
    font-family: 'Byekan';
    src: url('./Rozet-Bedding/front-end/fonts/B_Yekan/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
@font-face {
  font-family: 'english';
  src: url(./Rozet-Bedding/front-end/fonts/assistant_n4.9120912a469cad1cc292572851508ca49d12e768\ \(1\)\ \(1\).woff2);
}
@font-face {
  font-family: 'classic';
  src: url(./Rozet-Bedding/front-end/fonts/CAMBRIA.TTC);
}
@font-face {
  font-family: 'Bnazanin';
  src: url(./Rozet-Bedding/front-end/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;
}
/* استایل برای دکمه فلش موبایل */
.mobile-arrow {
  display: none;
}

@media (max-width: 950px) {
  .mobile-arrow {
    display: inline-block;
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    padding: 0 8px;
    margin-right: 5px;
  }
  
  /* چیدمان آیتم محصولات در موبایل */
  .nav-links > li:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .nav-links > li:nth-child(2) > a {
    flex: 1;
  }
  
  /* مخفی کردن همه زیرمنوها در موبایل */
  .nav-links li > ul {
    display: none !important;
    width: 100%;
    order: 3;
  }
  
  /* فقط نمایش زیرمنوی مستقیم محصولات (ست روتختی، بالش، تشک) */
  .nav-links > li.mobile-open > ul {
    display: block !important;
    width: 100%;
    padding-right: 20px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    border-radius: 5px;
    position: static !important;
  }
  
  /* مخفی کردن زیرمنوهای عمیق‌تر (سطح سوم به بعد) */
  .nav-links li ul li > ul,
  .nav-links li ul li ul li > ul,
  .nav-links li ul li ul li ul li > ul {
    display: none !important;
    position: static !important;
  }
  
  /* استایل آیتم‌های سطح دوم */
  .nav-links li ul li {
    border-bottom: 1px solid #333;
  }
  
  .nav-links li ul li:last-child {
    border-bottom: none;
  }
  
  .nav-links li ul li a {
    padding: 10px 15px !important;
    font-size: 0.95em;
    color: #ddd;
    display: block;
  }
  
  /* بازگرداندن hover effect برای دسکتاپ */
  @media (min-width: 951px) {
    .nav-links li:hover > ul {
      display: block !important;
    }
    
    .nav-links li.mobile-open > ul {
      display: none !important;
    }
  }
  
  /* همبرگر */
  .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: 90px;
    left: 0;
    right: 0;
    background: black;
    display: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 10px 0;
    z-index: 999;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul.nav-links {
    flex-direction: column;
  }
  
  nav ul.nav-links li {
    border-bottom: 1px solid #333;
  }
  
  nav ul.nav-links li:last-child {
    border-bottom: none;
  }
  
  /* غیرفعال کردن hover effects در موبایل */
  .nav-links li .menue:hover::after {
    width: 0;
  }
}

/* Media query برای تبلت‌ها */
@media (min-width: 768px) and (max-width: 950px) {
  nav {
    width: 300px;
    left: auto;
    right: 0;
  }

}
@media (max-width: 768px){
  .hero h1{
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 37px;

}
.hero p{
  font-size: 7px !important;
  margin-bottom: 32px;
}
.about p{
  font-size: 7px;
}
}
@media (max-width:480px){
  .hero h1{
    margin-bottom: 40px;
  }
  .hero p{
    margin-bottom: 35px;
  }
}
@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;
}
}

/* اسلایدر تمام صفحه */
.hero {
  margin-top: 3.8rem;
  background: black;
  position: relative;
  width: 100%;        /* همیشه به اندازه عرض صفحه */
  aspect-ratio: 16 / 9; /* نسبت تصویر ثابت (مثلاً 16:9) */
  overflow: hidden;
}
.slider, .slide {
  position: absolute;
  inset: 0;
}
.slide {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* عکس کل فضا رو پر کنه */
  display: block;
}

/* کنترل‌ها */
.controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.controls span {
  cursor: pointer;
  font-size: 28px;
  color: #fff;
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
}

/* متن وسط */
.hero h1{
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  text-align: center;
  color: black;
  font-size: 34px;
  font-weight: 700;
  z-index: 10;
}
.hero p{
  position: absolute;
  bottom:10%;
  left: 0;
  right: 0;
  text-align: center;
  color: black;
  font-size: 15px;
  font-weight: 700;
  z-index: 10;
}
.about h2{
  text-align: center;
  color: rgb(110, 110, 110);
}
.about p{
  text-align: center;
  color: rgb(110, 110, 110);
}

/* دکمه‌های دایره‌ای */
.indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.dot.active {
  background: #fff;
}

/* محصولات */
.categoryText{
  margin-top: 1.9rem;
  text-align: center;
  font-size: 2rem;
  font-family: 'Bnazanin';
  color: white;
  background-color: black;
  padding: 7px;
}
.categoryNProducts{
  width: 100%;
  margin: 0 auto;
  height: fit-content;
}
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px;
  color: rgb(32, 32, 32);;
  align-items: start; /* مهم‌ترین خط */
}
.category {
  background: whitesmoke;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  font-size: 0.9rem;
}
.category img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  border-radius: 0.5rem;
}
.category .btn{
  border: none;
  border-radius: 0.5rem;
  padding:0.7rem;
  background-color: rgb(231, 231, 231);
  color:rgb(29, 29, 29);
  margin-top: auto;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}
.category button a{
  text-decoration: none;
  list-style: none;
  color: rgb(54, 54, 54);
}
.slogan {
  align-self: start;
  margin: 0;
  padding: 0;
}
.slogan p {
  margin: 0;/* مارجین پیش‌فرض h1 رو حذف کن */
  line-height: 1.2; /* خوانا */
  font-size: 4rem;
  color: rgb(59, 59, 59);
  text-align: left;
}

/* بخش استراحت سایت */
.adds{
  background-image: url('./pics/sample1\ copy.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  font-size: 2rem;
  text-align: center;
  transition: background-image 1s ease-in-out; /* افکت محو */
}
.adds-text {
  position: absolute;
  top: 18%;
  left: 1.2%;
  transform: translateY(-50%);
  text-align: center;
  color: white;
  font-size: 2rem;
  line-height: 0.4;
}
.adds-text p{
  color: rgb(235, 235, 235);
  font-family: 'classic';
  text-align: left;
  line-height: 1.2;
  font-size: 4rem;

}
/* بخش محصولات پیشنهادی */

.featured-products {
  margin: 0 auto;
  text-align: center;
  
}
.featured-products h2{
  text-align: center;
  font-size: 2rem;
  font-family: 'Bnazanin';
  color: rgb(110, 110, 110);
  background-color: black;
  padding: 7px;
  margin: 0;
}
.products-container {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 1.9rem;
}
@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;
}

.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: 13px;
  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;
}
/* بخش فوتر */

.rozet-footer {
  background: black;
  color: #fff;
  padding: 30px 0 15px;
  margin-top: 40px;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rozet-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, #cdd1cf, rgb(165, 222, 210));
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* بخش بالایی فوتر */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  padding-bottom: 25px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

.footer-slogan {
  font-size: 14px;
  color: white;
  font-style: italic;
  margin-top: 5px;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-links {
    justify-content: flex-start;
    gap: 40px;
  }
}

.link-group {
  display: flex;
  flex-direction: column;
}

.link-group h4 {
  color: red;
  font-size: 16px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 5px;
}

.link-group h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: red;
}

.link-group a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  padding-right: 5px;
}

.link-group a:hover {
  color: red;
  padding-right: 10px;
}

.footer-contact h4 {
  color: red;
  font-size: 16px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: red;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.contact-item i {
  margin-left: 10px;
  font-size: 16px;
}

.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.social-btn:hover {
  transform: translateY(-3px);
}

.phone-icon {
  filter: brightness(0) invert(1); /* تبدیل به سفید */
  display: inline-block;
  font-size: 20px;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: white; /* رنگ سفید برای آیکون */
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* هیچ بک‌گراندی برای آیکون‌ها نیست - فقط آیکون خالص */
/* جداکننده */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(248, 183, 57, 0.3), transparent);
  margin: 15px 0;
}

/* بخش پایینی فوتر */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.copyright p {
  font-size: 14px;
  color: #aaa;
}

.copyright strong {
  color: red;
}

.payment-methods {
  display: flex;
  gap: 10px;
}

.payment-icon {
  font-size: 24px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.payment-icon:hover {
  opacity: 1;
}

.extra-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.extra-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.extra-links a:hover {
  color: red;
}

.separator {
  color: #666;
  font-size: 12px;
}

.rozet-footer {
  font-size: 13px; /* کاهش از ۱۴px */
}

.link-group a,
.contact-item,
.copyright p {
  font-size: 12px; /* کاهش از ۱۴px */
}

.link-group h4,
.footer-contact h4 {
  font-size: 14px; /* کاهش از ۱۶px */
}





