.container {
  width: 100%;
  max-width: 1200px;

  padding: 20px;
}

.page-title {
  text-align: center;
  color: #1a4a72;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: bold;
}

.shop-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.products-area {
  flex: 1;
  min-width: 250px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}


.product-name {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
  color: #1a4a72;
  margin-bottom: 8px;
}

.product-details {
  font-size: 12px;
  color: #666;
}

.sidebar {
  width: 240px;
  height: 500px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 12px;
  text-align: right;
  padding-right: 30px; /* ← فاصله برای دایره سفارشی */
  position: relative;
  display: flex;
  align-items: center;
}
.categories-list li::before {
  content: "○"; /* ← دایره توخالی */
  position: absolute;
  right: 0;
  color: #333;
  font-size: 14px;
  line-height: 24px;
  font-weight: normal;
}

.categories-list a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 8px 0;
  display: block;
  border-radius: 6px;
  transition: all 0.3s;
  flex: 1;
  text-align: right;
}

.categories-list a:hover {
  background: #f0f4f8;
  color: #1a4a72;
}

@media (max-width: 992px) {
  .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .products-area {
    width: 600px;
  }
  .sidebar {
    width: 200px;
    height: 600px;
  }
  .categories-list a {
    font-size: 13px;

    font-weight: 500;
  }
}

@media (max-width: 500px) {
  .shop-wrapper {
    flex-direction: column-reverse;
  }

  .sidebar {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.shop-sidebar {
  width: 220px;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: Tahoma, Arial, sans-serif;
}

.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align:right;
}

/* استایل هر بخش فیلتر */
.filter-section {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align:right;
}

/* هدر هر بخش */
.filter-header {
  width: 100%;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border: none;
  text-align: right;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: right;
  align-items: center;
  transition: background-color 0.2s ease;
}

.filter-header:hover {
  background-color: #f0f0f0;
}

.filter-header span {
  color: #333;
  text-align:left;
}

/* آیکون فلش */
.toggle-icon {
  font-size: 10px;
  color: #888;
  transition: transform 0.3s ease;
}

.toggle-icon.rotate {
  transform: rotate(180deg);
}

/* محتوای هر بخش */
.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
}

.filter-content.active {
  max-height: 400px;
  overflow-y: auto;
}

/* لیست اسکرول‌دار */
.scroll-list {
  padding: 10px 15px;
  max-height: 180px;
  overflow-y: auto;
  text-align:right;
}

/* چک‌باکس */
.checkbox-item {
  display: flex;
  flex-direction: row-reverse;
  justify-content: right;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  color: #555;
  font-size: 12px;
  transition: color 0.2s ease;
  text-align:right;
}

.checkbox-item:hover {
  color: #007799;
}

.checkbox-item input {
  margin-left: 10px;
  width: 15px;
  height: 15px;
  accent-color: #007799;
  cursor: pointer;
}

.checkbox-item span {
  line-height: 1.4;
}

/* رادیو باتن */
.radio-group {
  padding: 10px 15px;
}

.radio-item {
  display: flex;
    flex-direction: row-reverse;
justify-content: right;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  color: #555;
  font-size: 12px;
}

.radio-item input {
  margin-left: 10px;
  width: 15px;
  height: 15px;
  accent-color: #007799;
  cursor: pointer;
}

.radio-item span {
  line-height: 1.4;
}

/* اسکرول‌بار سفارشی */
.scroll-list::-webkit-scrollbar {
  width: 5px;
}

.scroll-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scroll-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.scroll-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .shop-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    z-index: 999;
    transition: right 0.3s ease;
  }
  
  .shop-sidebar.active {
    right: 0;
  }
}

.search-wrapper {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
}

/* آیکون */
.search-icon {
    position: absolute;
    right: 10px;
}

/* input */
#liveSearchInput {
    width: 100%;
    padding: 10px 35px 10px 10px; /* جا برای آیکون */
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* باکس نتایج */
.live-search-box {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
}
.shop-toolbar {
  width: 100%;
  min-height: 58px;
  margin: 28px 0 22px;
  padding: 10px 18px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 255, 0.92));
  border: 1px solid rgba(28, 111, 174, 0.14);
  box-shadow:
    0 14px 34px rgba(22, 79, 120, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction:row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  direction: rtl;
}

.toolbar-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #164f78;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
   flex-direction:row-reverse;
}

.toolbar-count i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #164f78, #2f9bd4);
  box-shadow: 0 8px 18px rgba(22, 79, 120, 0.18);
}

.toolbar-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-title {
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
  margin-left: 4px;
}

.sort-btn {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.sort-btn:hover {
  color: #164f78;
  background: rgba(47, 155, 212, 0.10);
}

.sort-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #164f78, #2f9bd4);
  box-shadow: 0 10px 22px rgba(22, 79, 120, 0.20);
}

@media (max-width: 768px) {
  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
    border-radius: 18px;
  }

  .toolbar-sort {
    width: 100%;
    justify-content: flex-start;
  }

  .sort-btn {
    font-size: 13px;
    padding: 0 12px;
  }
}