
html {
  margin: 0;
  padding: 0;
}
  body {
      font-family: 'Vazirmatn', sans-serif;
      margin: 0;
      background-color: #fff;
      color: #333;
    }
  



    .search-box {
      padding: 1rem;
      text-align: center;
      background-color: #f5faff;
    }
    .search-box input {
      width: 60%;
      padding: 0.6rem;
      border: 1px solid #ccc;
      border-radius: 8px;
    }
    .search-box button {
      padding: 0.6rem 1.2rem;
      margin-right: 0.5rem;
      background-color: #9ed8db;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }
    .categories {
      display: flex;
      justify-content: center;
      gap: 2rem;
      padding: 2rem 1rem;
      flex-wrap: wrap;
    }
    .category {
      text-align: center;
      padding: 1rem;
      border-radius: 10px;
      background-color: #f0faff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      cursor: pointer;
      width: 180px;
      transition: all 0.3s ease;
    }
    .category:hover {
      transform: scale(1.05);
      background-color: #e3f7ff;
    }
    .category img {
      width: 70px;
      height: 70px;
      margin-bottom: 0.5rem;
    }
    .category-title {
      font-weight: bold;
      color: #007c91;
    }
    footer {
      background-color: #f3f3f3;
      padding: 2rem;
      text-align: center;
      font-size: 0.95rem;
      margin-top: 3rem;
    }
    .support-icons img {
      width: 28px;
      margin: 0 10px;
      vertical-align: middle;
    }
    .support-text {
      margin-bottom: 1rem;
    }



  /* جستجوی پیشرفته */
  #search-bar {
    max-width: 900px;
    margin: 25px auto;
    display: flex;
    justify-content: center;
  }
  #search-bar input {
    width: 70%;
    padding: 10px 20px;
    border: 2px solid #2a7f62;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
    color: #2a2a2a;
  }
  #search-bar button {
    background: #2a7f62;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: bold;
  }
  #search-bar button:hover {
    background: #1f593f;
  }

  .category img {
    width: 70px;
    margin-bottom: 12px;
  }
  .category h3 {
    margin: 0;
    color: #1b4965;
  }

  /* فیلتر محصولات */
  #filter-bar {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
  }
  #filter-bar button {
    background: #ffe1f0


    border: none;
    padding: 8px 18px;
    margin: 0 10px;
    border-radius: 20px;
    font-weight: bold;
    color: #1b4965;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  #filter-bar button.active,
  #filter-bar button:hover {
    background-color: #ffe1f0

   


  }

  /* لیست محصولات */
  #product-list {
    max-width: 900px;
    margin: 30px auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 20px;
  }
  .product-card {
    background: #e0f0e9;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .product-card h4 {
    margin: 0 0 8px;
    color: #196f3d;
  }
  .product-card .desc {
    font-size: 0.9rem;
    color: #3b554a;
    flex-grow: 1;
  }
  .product-card .price {
    font-weight: bold;
    color: #1b4d3e;
  }
  .product-card .btn-view {
    margin-top: 10px;
    background: #2a7f62;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
  }
  .product-card .btn-view:hover {
    background: #1f593f;
  }

  /* صفحه جزئیات محصول */
  #product-detail {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 30px;
    background: #daf1f9;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
  }
  #product-detail h3 {
    margin-top: 0;
    color: #1b4965;
  }
  #product-detail p {
    line-height: 1.6;
    color: #2a3a4a;
  }
  #product-detail button {
    margin-top: 20px;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
  }
  #product-detail button.close {
    background: #196f3d;
    color: white;
    margin-left: 15px;
  }
  #product-detail button.close:hover {
    background: #0f3d1e;
  }
  #product-detail button.continue-buy {
    background: var(--pastel-pink);
    color: #7a2a4d;
    box-shadow: 0 2px 6px rgba(250, 150, 200, 0.6);
  }
  #product-detail button.continue-buy:hover {
    background: #f0a8c2;
    color: #4a1240;
  }

  /* بخش پشتیبانی */
  footer {
    background: linear-gradient(to left,#ffffff, #d6eaff,#c3f5e6, #ffe1f0);

    padding: 20px 0;
    text-align: center;
    color: #196f3d;
  }
  footer .contact-icons a {
    margin: 0 15px;
    display: inline-block;
  }
  footer .contact-icons img {
    width: 32px;
    filter: invert(32%) sepia(42%) saturate(1082%) hue-rotate(87deg) brightness(94%) contrast(89%);
    transition: filter 0.3s ease;
  }
  footer .contact-icons a:hover img {
    filter: invert(67%) sepia(83%) saturate(428%) hue-rotate(90deg) brightness(89%) contrast(100%);
  }






.store-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to left,#ffe1f0,#c3f5e6, #d6eaff, #ffffff);




  border-bottom: 1px solid #d5f1ee;
  margin-top: 30px;
  flex-wrap: wrap;
}




.intro-text {
  flex: 1;
  padding-left: 2rem;
  max-width: 600px;
}

.intro-text h2 {
  color: #1b6b93;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}


.intro-image {
  flex: 1;
  max-width: 400px;
  text-align: center;
}


.intro-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  
}
.back-home-btn {
  display: inline-block;
  background-color: #2a7f62;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.back-home-btn:hover {
  background-color: #1f593f;
}



















  .container {
      max-width: 700px;
      margin: auto;
      background: #fff;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    h1 { color: #007b8f; }
    .media img, .media video {
      width: 100%;
      border-radius: 8px;
      margin-top: 1rem;
    }
    
    .desc {
      margin-top: 1rem;
      line-height: 1.8;
    }
    .price {
      margin: 1.5rem 0;
      font-weight: bold;
      color: #196f3d;
    }
    .back-btn {
      display: inline-block;
      background-color: #2a7f62;
      color: white;
      padding: 10px 20px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }
    .back-btn:hover {
      background-color: ##2a7f62;
    }




@media screen and (max-width: 768px) {

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    display: block;
    margin: 5px 0;
  }

  .subpage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-box img,
  header img {
    height: 48px;
  }

  .category-grid, .article-list, .feedback-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .card, article, .feedback-item, .box {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

}














html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}



@media screen and (max-width: 768px) {

  .search-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 10px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    margin: 0;
  }

  .categories {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  #product-list {
    grid-template-columns: 1fr;
  }

  .store-intro {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1rem;
  }

  .intro-text {
    padding: 0;
  }

  .container {
    padding: 1rem;
  }

  .product-card {
    padding: 12px;
  }
}








@media screen and (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }

  /* لوگو و توضیحات */
  .store-intro {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1rem;
  }

  .intro-text {
    padding: 0;
    max-width: 100%;
  }

  .intro-text h2 {
    font-size: 1.2rem;
  }

  .intro-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .intro-image {
    max-width: 100%;
  }

  .intro-image img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }

  /* باکس جستجو */
  .search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 10px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    margin: 0;
  }

  #search-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 0 1rem;
  }

  #search-bar input,
  #search-bar button {
    width: 100%;
    border-radius: 10px;
  }

  /* دسته‌بندی‌ها */
  .categories {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* سیر مجموعه یا باکس‌ها */
  .category,
  .card,
  article,
  .feedback-item,
  .box {
    width: 100%;
    box-sizing: border-box;
  }

  /* گرید محصول */
  #product-list {
    grid-template-columns: 1fr;
  }

  /* فوتر */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

}
* {
  box-sizing: border-box;
}









.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  box-sizing: border-box;
  direction: rtl;
}

.category {
  width: 150px;
  padding: 15px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #f9f9f9;
  transition: transform 0.2s;
  cursor: pointer;
  box-sizing: border-box;
}

.category img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.category h3 {
  font-size: 14px;
  margin: 0;
}

/* واکنش‌گرا برای موبایل */
@media screen and (max-width: 768px) {
  .categories {
    justify-content: center;
    gap: 12px;
    padding: 10px;
  }

  .category {
    width: 45%; /* دو تا در یک ردیف */
    padding: 10px;
  }

  .category h3 {
    font-size: 13px;
  }
}

/* برای اطمینان از اینکه چیزی بیرون نره */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}


#filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px auto;
  padding: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

#filter-bar button {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f1f1f1;
  cursor: pointer;
  white-space: nowrap;
}

#filter-bar button.active {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}

@media (max-width: 768px) {
  #filter-bar {
    justify-content: flex-start;
    padding: 10px 5px;
    overflow-x: auto;
  }

  #filter-bar button {
    flex: 0 0 auto;
  }
}

