.custom-sorting {
     display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 13px;
    margin-bottom: 20px;
    align-items: center;
}

.custom-sorting a {
  color: #666;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-sorting a:hover,
.custom-sorting a.active {
    color: #b11f29;
  font-weight: bold;

}

.woocommerce .woocommerce-result-count {
    margin: 0 0 1em;
    float: left;
	    font-size: 12px;
  
    margin-top: 7px;
}
@media only screen and (max-width: 991px) {
.woocommerce .woocommerce-result-count
{
	    margin-left: 15px;
}
}


/* مخفی و نمایان‌سازی در ریسپانسیو */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* استایل موبایل پاپ‌آپ */
.mobile-sort-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 80vh;
  background: #fff;
  z-index: 10000;
 
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  transition: bottom 0.3s ease-in-out;
}

.mobile-sort-modal.active {
  bottom: 0;
}

.modal-content {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 15px;
}

.modal-body .sort-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.modal-body .sort-link .tick {
  display: none;
  color: #B11F29;
}

.modal-body .sort-link.active .tick {
  display: inline;
}

.close-mobile-sort {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

.mobile-sort-trigger {
 padding: 10px;
 text-align: center;
 cursor: pointer;
    position: absolute;
        top: 41px;
    right: 0;
}






/*----------*/

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
	border:0
}

.woocommerce nav.woocommerce-pagination ul li {
      border-left: 0;
	    margin: 0 5px;

}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-weight: bold;
    border-radius: 50%;
    background-color: transparent;
    color: #111;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #b11f29!important;
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border:1px solid #b11f29;
    color: #b11f29;
	  background-color: transparent;
}
