body {
    margin: 0;
    font-family: Arial, sans-serif;
}


main {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color:#2a4937;
}

.main-banner img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
}
.main-banner2{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}
.main-banner2 img{
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    
}
.banner-slider {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.slides img {
  width: 100%;
  height: 300px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s ease;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 40px;
}

.slides img.active {
  opacity: 1;
}

/* دکمه‌ها */
.banner-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: background-color 0.3s;
}

.banner-slider button:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.prev {
  right: 10px;
}

.next {
  left: 10px;
}
/* بخش دایره‌های زیر بنر */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots span {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dots span.active {
  background-color: white;
  transform: scale(1.2);
}

.main-banner3{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}
.main-banner3 img{
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 50px;
}

.product-card {
    background-color: #fff;
    width: calc(25% - 25px); /* 5 کارت در هر ردیف */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.product-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    min-height: 40px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.new-price {
    color: brown;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.add-to-cart {
    background-color: brown;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.add-to-cart:hover {
    background-color:rgb(156, 0, 0);
}

.dastebandi{
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 20px;
    text-align: center;
    color: white;
}
.dastebandi2{
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 20px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
  }

.dastebandi img{
    width: 100%;
    height: auto;
    margin-bottom: 0px;
    border-radius: 10px;
}
.logo-footer {
    width: 850px;

}
.logo-footer img {
    width: 200px;
    height: auto;
    margin-bottom: 0px;
}
.text-bottom{
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 0px;
  color: #010042;
  margin-bottom: 60px;
  font-size: 13px;
}
.footer-section-svg{
     display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    text-align: center;
    color: #010042;
}
.footer-section1{
     display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
    /* text-align: start; */
    /* color: #010042; */
    font-size: 15px;
    margin-bottom: 0;
    align-items: center;
}
.footer-section1 img{
      width: 25%;
    height: auto;
    margin-bottom: 0px;
    border-radius: 10px;
    /* align-items: center; */
}
.footer-section2{
     display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 5px;
    text-align: start;
    color: #010042;
    font-size: 13px;
    margin-bottom: 80px;
}

.footer-section-svg img{
 width: 15%;
 height: auto;
 margin-bottom: 50px;
}

.footer {
  background-color:#6cd683;
  color: gray;
  padding: 40px 0 20px;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  /* margin: 0 auto; */
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 250px;
  padding: 0;
  top: 0;
}


.footer-section h4 {
  color:  #010042;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p,
.footer-section ul {
  line-height: 1.6;
  font-size: 16px;
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color:  white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color:  #010042;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  color:  #010042;
}
/* استایل پاپ‌آپ توضیحات فوتر */
#footer-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 0, 66, 0.6); /* آبی تیره با شفافیت */
  justify-content: center;
  align-items: center;
  font-family: Tahoma, sans-serif;
  direction: rtl;
}

.popup-content {
  background: white;
  color: #010042;
  padding: 25px 35px;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 20px rgba(1, 0, 66, 0.2);
  text-align: right;
  animation: fadeInUp 0.3s ease;
}

.popup-content h3 {
  color: #010042; /* صورتی برند محیا استور */
  margin-bottom: 15px;
  font-size: 20px;
}

.popup-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.close-btn {
  background: #ff4081;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  float: left;
  margin-top: 15px;
  font-weight: bold;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #e60073;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 768px) {
    .product-card {
        width: calc(50% - 10px); /* 2 کارت در هر ردیف موبایل */
    }
}
@media (max-width: 768px) {
  .logo-footer {
    width: 100%;
    text-align: center;
  }

  .logo-footer img {
    width: 150px;
    margin: 0 auto;
  }

  .text-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 5px;
    margin-bottom: 30px;
  }
}
@media (max-width: 768px) {
  .footer-section1 {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
  }

  .footer-section1 img {
    width: 50px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .footer-section1 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-section2 {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    gap: 10px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .footer-section2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {
  .footer-container {
    justify-content: center;
    text-align: center;
  }

  .footer-section {
    flex: 1 1 45%;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .footer-section {
    flex: 1 1 100%;
  }

  .footer-section h4 {
    text-align: center;
  }

  .footer-section ul li {
    text-align: center;
  }
}
@media (max-width: 768px) {
  .footer-section-svg {
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 10px;
  }

  .footer-section-svg img {
    width: 40px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .footer-section-svg {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .popup-content {
    padding: 20px;
    font-size: 14px;
  }

  .popup-content h3 {
    font-size: 18px;
  }
}

/* کل بخش نظرات */
.reviews-section {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #f0f8ff;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* عناوین */
.reviews-section h2, .reviews-section h3 {
    color: #010042;
    margin-bottom: 15px;
}

/* هر نظر */
.reviews-section .review {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ستاره‌ها */
.reviews-section .review .rating {
    color: #f7d106;
    font-size: 18px;
    margin-left: 10px;
}

/* فرم ثبت نظر */
.reviews-section .star-form input[type="text"],
.reviews-section .star-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* دکمه ثبت */
.reviews-section .star-form button {
    background-color: #010042;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.reviews-section .star-form button:hover {
    background-color: #020066;
}

/* ستاره‌ها برای انتخاب امتیاز */
.reviews-section .stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    cursor: pointer;
    margin-bottom: 10px;
}

.reviews-section .star {
    font-size: 30px;
    color: #ccc;
    margin: 0 5px;
    transition: 0.3s;
}

.reviews-section .star.hovered,
.reviews-section .star.selected {
    color: #f7d106;
}

/* ریسپانسیو */
@media screen and (max-width: 600px) {
    .reviews-section {
        padding: 15px;
        margin: 10px;
    }
    .reviews-section .stars {
        justify-content: center;
        flex-wrap: wrap;
    }
    .reviews-section .star {
        font-size: 25px;
        margin: 0 3px;
    }
}
/* 🌟 استایل عمومی بنر */
.main-banner3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.main-banner3 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 📱 موبایل */
@media (max-width: 640px) {
    .main-banner3 img {
        max-width: 48%;
        margin-bottom: 10px;
    }
}

/* 📲 تبلت */
@media (min-width: 641px) and (max-width: 1024px) {
    .main-banner3 img {
        max-width: 48%;
    }
}

/* 💻 دسکتاپ */
@media (min-width: 1025px) and (max-width: 1920px) {
    .main-banner3 img {
        max-width: 23%;
    }
}

/* 📺 4K تلویزیون */
@media (min-width: 3840px) {
    .main-banner3 img {
        max-width: 22%;
        border-radius: 15px;
    }
}
/* 🌟 استایل عمومی بنر اصلی */
.main-banner {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.main-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 📱 موبایل */
@media (max-width: 640px) {
    .main-banner img {
        border-radius: 8px;
        width: 100%;
        height: 80%;
    }
}

/* 📲 تبلت */
@media (min-width: 641px) and (max-width: 1024px) {
    .main-banner img {
        border-radius: 10px;
    }
}

/* 💻 دسکتاپ */
@media (min-width: 1025px) and (max-width: 1920px) {
    .main-banner img {
        border-radius: 12px;
    }
}

/* 📺 4K تلویزیون */
@media (min-width: 3840px) {
    .main-banner img {
        border-radius: 15px;
    }
}
/* 🌟 استایل عمومی بنر */
.main-banner2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.main-banner2 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 📱 موبایل */
@media (max-width: 640px) {
    .main-banner2 img {
        max-width: 48%;
        margin-bottom: 10px;
    }
}

/* 📲 تبلت */
@media (min-width: 641px) and (max-width: 1024px) {
    .main-banner2 img {
        max-width: 48%;
    }
}

/* 💻 دسکتاپ */
@media (min-width: 1025px) and (max-width: 1920px) {
    .main-banner2 img {
        max-width: 48%;
    }
}

/* 📺 4K تلویزیون */
@media (min-width: 3840px) {
    .main-banner2 img {
        max-width: 47%;
        border-radius: 15px;
    }
}
@media (max-width: 600px) {

    /* عکس بنر */
    .main-banner img,
    .main-banner2 img,
    .main-banner3 img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* دسته‌بندی‌ها */
    .dastebandi img {
        width: 28vw;
        height: auto;
    }

    .dastebandi2 p {
        font-size: 12px;
    }

    /* گرید محصولات */
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 10px;
        gap: 15px;
    }

    .product-card {
        min-height: 300px;
        padding: 10px;
    }

    .product-card img {
        max-height: 140px;
    }
}
