.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-select {
  background-color: white;
  color: #1a73e8;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.filter-select:hover {
  background-color: #f0f4f8;
  color: #155cb0;
}
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0;
}

.product-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: calc(33.333% - 20px);
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: transform 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.product-item h3 {
  color: #1a73e8;
  font-size: 20px;
  margin-bottom: 10px;
}

.product-item p {
  font-size: 14px;
  margin-bottom: 10px;
}

.product-item button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.product-item button:hover {
  background-color: #155cb0;
}

.related-products {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-products h2 {
  color: #1a73e8;
}

.comparison-box {
  background-color: white;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comparison-box h3 {
  color: #1a73e8;
}

.comparison-grid {
  display: flex;
  justify-content: space-around;
}

.comparison-item {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
}

.comparison-item img {
  width: 100%;
  height: auto;
}

.comparison-item h4 {
  color: #1a73e8;
}

.comparison-item p {
  font-size: 14px;
}

.comparison-item button {
  background-color: #1a73e8;
  color: white;
}

.show-products-button {
  background-color: #1a73e8;
}

.compare-list-container {
  display: block; /* یا display none */
}

.compare-list .product-item {
  display: flex;
  justify-content: space-between;
}

.show-products-button:hover {
  background-color: #155cb0;
  cursor: pointer;
  border-radius: 4px;
  color: white;
  padding: 10px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  background-color: #1a73e8;
  transition: background-color 0.3s;
  text-align: center;
  display: block;
  margin: auto;
  width: auto;
  height: auto;
}

.product-details {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 20px auto;
}
.product-details h1 {
  color: #1a73e8;
  font-size: 32px;
  margin-bottom: 20px;
}
.product-details p {
  background-color: #f0f4f8;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 18px;
}
.button-group button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 10px;
  margin-right: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.button-group button:hover {
  background-color: #155cb0;
}
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.filter-select {
  background-color: white;
  color: #1a73e8;
  border: 1 px solid #ddd;
  padding: 10 px;
  border-radius: 4 px;
  font-size: 16 px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.filter-select:hover {
  background-color: #f0f4f8;
  color: #155cb0;
}
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20 px 0;
}
.product-item {
  background-color: white;
  border: 1 px solid #ddd;
  border-radius: 8 px;
  box-shadow: 0 px 4 px 8 px rgba(0, 0, 0, 0.1);
  padding: 20 px;
  width: calc(33.333% -20 px);
  margin-bottom: 20 px;
  box-sizing: border-box;
  transition: transform 0.3s;
}
.product-item:hover {
  transform: translateY(-5 px);
}
.product-item img {
  width: 100%;
  height: auto; /* ارتفاع خودکار */
  max-height: 300px; /* حداکثر ارتفاع */
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover; /* جلوگیری از کشیدگی تصویر */
}
.product-item h3 {
  color: #1a73e8;
  font-size: 20 px;
  margin-bottom: 10 px;
}
.product-item p {
  font-size: 14 px;
  margin-bottom: 10 px;
}
.product-item button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 10 px 20 px;
  border-radius: 4 px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}
.product-item button:hover {
  background-color: #155cb0;
}
@media (max-width: 726px) {
  .product-item {
    width: calc(50% -10 px);
  }
}
@media (max-width: 480px) {
  .product-item {
    width: 100%;
  }
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown.active .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nested-dropdown .sub-category {
  left: 100%;
  top: 0;
  margin-left: 2px;
}

.main-category {
  position: relative;
  padding-right: 25px;
}

.main-category::after {
  content: "▶";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}
/* استایل برای قیمت اصلی خط‌خورده */
.text-decoration-line-through {
  text-decoration: line-through;
  color: #6c757d; /* رنگ خاکستری برای قیمت اصلی */
  margin-right: 10px; /* فاصله بین قیمت اصلی و تخفیف‌خورده */
}

/* استایل برای قیمت تخفیف‌خورده */
.text-success {
  color: #28a745; /* رنگ سبز برای قیمت تخفیف‌خورده */
  font-weight: bold; /* متن پررنگ */
}

/* استایل برای بخش قیمت */
.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* استایل‌های فیلترها */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-select {
  background-color: #f8f9fa;
  color: #1a73e8;
  border: 1px solid #ddd;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a73e8'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.filter-select:hover {
  background-color: #e9ecef;
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.filter-select:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* رسپانسیو برای دستگاه‌های کوچک */
@media (max-width: 768px) {
  .filters {
      flex-direction: column;
      align-items: stretch;
      padding: 10px;
  }

  .filter-select {
      width: 100%;
      margin-bottom: 10px;
  }
}

/* رسپانسیو برای دستگاه‌های کوچک */
@media (max-width: 768px) {
  .filters {
      flex-direction: column; /* فیلترها به صورت عمودی نمایش داده می‌شوند */
      align-items: stretch; /* فیلترها عرض کامل می‌گیرند */
      padding: 10px; /* padding کمتر در موبایل */
  }

  .filter-select {
      width: 100%; /* فیلترها عرض کامل می‌گیرند */
      margin-bottom: 10px; /* فاصله بین فیلترها */
  }
}

/* رسپانسیو برای دستگاه‌های کوچک */
@media (max-width: 768px) {
  .filters {
      flex-direction: column; /* فیلترها به صورت عمودی نمایش داده می‌شوند */
      align-items: stretch; /* فیلترها عرض کامل می‌گیرند */
  }

  .filter-select {
      width: 100%; /* فیلترها عرض کامل می‌گیرند */
      margin-bottom: 10px; /* فاصله بین فیلترها */
  }

  .product-item {
      width: calc(50% - 20px); /* دو محصول در هر ردیف */
  }
}

@media (max-width: 480px) {
  .product-item {
      width: 100%; /* یک محصول در هر ردیف */
  }
}

/* استایل کلی برای بخش فیلترها */
.filters {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* استایل برای select box ها */
.filters select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 17px;
  color: #333;
  margin-bottom: 15px;
  appearance: none; /* حذف فلش پیش‌فرض */
  -webkit-appearance: none; /* برای مرورگرهای وب‌کیت */
  -moz-appearance: none; /* برای فایرفاکس */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* تغییر استایل هنگام hover روی select box */
.filters select:hover {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* تغییر استایل هنگام focus روی select box */
.filters select:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  outline: none;
}

/* استایل برای باکس جستجو */
.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  outline: none;
}

.search-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #0056b3;
}

/* استایل برای متن داخل select box */
.filters select option {
  font-size: 14px;
  color: #333;
  background-color: #fff;
}

/* استایل برای عنوان فیلترها */
.filters label {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}