

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
/* بدنه عمومی */
body {
 
  background-color: #f4f4f4;
  color: #fff;
  line-height: 1.6;
  direction: rtl;


}
.buttonnsz{

color: #110101;
background-color: #991979;
border-radius: 10px;
width: 40%;
height: 40px;
}
a{

color: white;
text-decoration: none;
}


#header{

  background-color: #000;
}
.menue {
  display: flex;
  align-items: center;
  justify-content: end; /* به جای space-around */
  width: 82%;
  gap: 20px; /* اضافه کردم برای فاصله */
}

header ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

header form input[type="text"] {
  width: 200px;
  max-width: 100%;
  height: 40px;
  border-radius: 30px;
  padding: 0 15px;
  font-size: 16px;
  border: none;
  outline: none;
}


  header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 5px rgba(0,0,0,0.7);
  }



  .logo {
    max-width: 150px;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
  }

  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #ffcc00;
  }

  .search-form {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .search-form input {
    border-radius: 20px;
    border: none;
    padding: 6px 12px;
    width: 200px;
    outline: none;
  }

  .search-form button {
    background: #ffcc00;
    border: none;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: #000;
  }

  .hamburger {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
  }

  /* ریسپانسیو */
  @media (max-width: 768px) {
    nav ul {
      position: fixed;
      top: 60px;
      right: 0;
      background-color: #000;
      height: calc(100vh - 60px);
      width: 200px;
      flex-direction: column;
      padding: 20px;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      gap: 15px;
      z-index: 1000;
    }

    nav ul.active {
      transform: translateX(0);
    }

    .search-form {
      display: none;
    }

    .hamburger {
      display: block;
    }
  }
/* عنوان سکشن */
h2 {
  text-align: center;
  margin-bottom: 15px;
}

/* بخش عمومی */
.section {
  background-color: #fff;
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: #000;
}


.section-comertial-1{
 margin: 20px auto;  background-color: #fff;
  padding: 20px;
  max-width: 1200px;
display:flex;
justify-content: space-evenly;
border-radius: 40px;
display: flex;
flex-wrap: wrap;

}

.section-comertial-1 img{

max-width:60vh;
border-radius: 15px;

}
/* ریسپانسیو */
@media(max-width: 768px){
  header {
    flex-direction: column;
    align-items: center;
  }
  header ul {
    flex-direction: column;
    align-items: center;
  }

.section-comertial-1 img{

max-width:80%;
border-radius: 15px;

}
.slider {
  position: relative;
  overflow: hidden;
  height: 145px;
  width: 95%;
}
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}.slider img.active {
  opacity: 1;
}
.category-boxes,
  .products-box,
  .news-items,
  .article-list {
    flex-direction: column;
    align-items: center;
  }

  .product-item,
  .category-box,
  .news-item,
  .article-item {
    width: 90% !important;
    height: auto;
  }
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media(min-width: 768px)
{
/* لوستر داینامیک (اسلایدر) */
.slider {
  position: relative;
  overflow: hidden;
  height: 300px;
}
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slider img.active {
  opacity: 1;
}
.category-box img{
  width:60%; height:auto; border-radius:8px;
}



/* دسته‌بندی‌ها */
.category-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.category-box {

  width: 150px;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-direction: column;
}
.category-box img{
  width:100%; height:auto; border-radius:8px;
}



}


/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
/* بدنه عمومی */
body {
 
  background-color: #f4f4f4;
  color: #fff;
  line-height: 1.6;
  direction: rtl;


}
.buttonnsz{

color: #110101;
background-color: #991979;
border-radius: 10px;
width: 40%;
height: 40px;
}
a{

color: white;
text-decoration: none;
}


#header{

  background-color: #000;
}
.menue {
  display: flex;
  align-items: center;
  justify-content: end; /* به جای space-around */
  width: 82%;
  gap: 20px; /* اضافه کردم برای فاصله */
}

header ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

header form input[type="text"] {
  width: 200px;
  max-width: 100%;
  height: 40px;
  border-radius: 30px;
  padding: 0 15px;
  font-size: 16px;
  border: none;
  outline: none;
}


  header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 5px rgba(0,0,0,0.7);
  }



  .logo {
    max-width: 150px;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
  }

  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #ffcc00;
  }

  .search-form {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .search-form input {
    border-radius: 20px;
    border: none;
    padding: 6px 12px;
    width: 200px;
    outline: none;
  }

  .search-form button {
    background: #ffcc00;
    border: none;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: #000;
  }

  .hamburger {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
  }

  /* ریسپانسیو */
  @media (max-width: 768px) {
    nav ul {
      position: fixed;
      top: 60px;
      right: 0;
      background-color: #000;
      height: calc(100vh - 60px);
      width: 200px;
      flex-direction: column;
      padding: 20px;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      gap: 15px;
      z-index: 1000;
    }

    nav ul.active {
      transform: translateX(0);
    }

    .search-form {
      display: none;
    }

    .hamburger {
      display: block;
    }
  }
/* عنوان سکشن */
h2 {
  text-align: center;
  margin-bottom: 15px;
}

/* بخش عمومی */
.section {
  background-color: #fff;
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: #000;
}


.section-comertial-1{
 margin: 20px auto;  background-color: #fff;
  padding: 20px;
  max-width: 1200px;
display:flex;
justify-content: space-evenly;
border-radius: 40px;
}

.section-comertial-1 img{

max-width:60vh;
border-radius: 15px;

}
/* ریسپانسیو */
@media(max-width: 768px){
  header {
    flex-direction: column;
    align-items: center;
  }
  header ul {
    flex-direction: column;
    align-items: center;
  }
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* لوستر داینامیک (اسلایدر) */
.slider {
  position: relative;
  overflow: hidden;

}
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slider img.active {
  opacity: 1;
}
.category-swiper {
  width: 100%;
  max-width: 700px;
 
}
.category-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

}
.category-box img {
  width: 80px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* دسته‌بندی‌ها */
.category-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.category-box {

  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-direction: column;
}







/* دکمه‌های قبل و بعد */
.swiper-button-next,
.swiper-button-prev {
  color: #000 !important;     /* رنگ مشکی */
  font-size: 5px !important; /* کوچیک‌تر کردن آیکون */
  width: 45px;
  height: 20px;
  background-color: #ffcc00;     /* (اختیاری) بک‌گراند سفید */
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
padding-bottom: 20px;
padding: 10px;   
}


.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after {
  font-size: large;
width: 45px;padding-left: 10px;
}
.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after {

    font-size: large;
    width: 45px;padding-right: 10px;


}

/* محصولات */
.products-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.product-item {
 
  width: 180px;
  height: 200px;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 10PX;
  align-items: center;
  justify-content: center;
  border-radius: 8px;

}

/* اخبار و مقالات */
.news-items, .article-list, .instagram-feed {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 80%;
  align-items: center;
}
.news-item, .article-item, .ig-item {

  width:80%;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.category-box:hover,
.product-item:hover,
.news-item:hover,
.article-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;

}
@media(max-width: 768px) {
  .category-boxes,
  .products-box,
  .news-items,
  .article-list {
    flex-direction: column;
    align-items: center;
  }

  .product-item,
  .category-box,
  .news-item,
  .article-item {
    width: 90% !important;
    height: auto;
  }


.section-comertial-1 img{

width: 80%;

}

  
}

footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}
.footer-column {
  flex: 1 1 200px;
  padding: 10px;
}
.footer-column h3 {
  margin-bottom: 15px;
  font-size: 16px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.footer-column ul li i {
  margin-left: 8px;
  color: #ffcc00;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  border-top: 1px solid #444;
  margin-top: 20px;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  color: #ffcc00;

}