﻿
/* چیدمان دو ستونه */
.main-layout {
    min-height: 600px;
    display: flex;
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-start;
}

/* سمت چپ - محصولات */
.products-area {
    width: 100%;
    flex: 1;
    min-width: 0;
    margin-bottom: 100px;
}

/* سمت راست - فیلترها */
.filters-sidebar {
    border: 1px solid #eee;
    padding: 10px 15px;
    width: 280px;
    flex-shrink: 0;
    border-radius: 12px;
    top: 20px;
    overflow-y: auto;
}

    .filters-sidebar h3 {
        margin: 0 0 20px 0;
        color: #2c3e50;
        font-size: 18px;
        border-bottom: 2px solid #3498db;
        padding-bottom: 10px;
    }

    /* حذف اسکرول از فیلترها */
    .filters-sidebar::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }

.filters-sidebar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* گروه فیلترها */


    .filter-section label {
        display: block;
        font-weight: 600;
        color: #2c3e50;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .filter-section select,
    .filter-section input[type="text"] {
        width: 100%;
        padding: 8px 12px;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        font-size: 14px;
        background: white;
        transition: all 0.2s ease;
    }

       

/* ===== استایل Attributes Grid ===== */
.attributes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 0;
    max-height: none;
    overflow: visible;
}

/* ===== گروه Attribute با انتخاب‌های زیر آن ===== */
.attribute-group-wrapper {
    padding-bottom: 12px;
}

    .attribute-group-wrapper:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.attribute-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.attribute-dropdown {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.attribute-group-wrapper:last-child .attribute-dropdown {
    border-bottom: 0px;
}
/* ===== Header Dropdown ===== */
.dropdown-header {
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 36px;
}

    .dropdown-header:hover {
        border-color: #2c4beb;
    }

.dropdown-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

    .dropdown-icon.open {
        transform: rotate(180deg);
    }

/* ===== Body Dropdown - کشویی در همان مکان ===== */
.dropdown-body {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: none;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .dropdown-body.show {
        border-top: 1px solid #eee;
        display: block;
        max-height: 200px;
    }

/* ===== اسکرول اختصاصی برای هر Dropdown ===== */
.dropdown-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding: 4px 0;
}

    /* استایل اسکرول بار - مخفی ولی قابل استفاده */
    .dropdown-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .dropdown-scroll::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 2px;
    }

    .dropdown-scroll::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }

        .dropdown-scroll::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

/* ===== آیتم‌های Dropdown ===== */
.dropdown-item {
    transition: background 0.2s;
}

    .dropdown-item:hover {
        background: #f5f8fa;
    }

/* ===== Checkbox سفارشی ===== */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #444;
    padding: 4px 0;
    width: 100%;
    position: relative;
    padding-right: 24px;
}

    .checkbox-container input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 3px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container:hover .checkmark {
    border-color: #2c4beb;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2c4beb;
    border-color: #2c4beb;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* ===== نمایش انتخاب‌های هر Attribute - مخفی در ابتدا ===== */
.selected-attributes-wrapper {
    margin-top: 6px;
    min-height: 28px;
    border-radius: 4px;
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    transition: all 0.3s ease;
}

    /* وقتی که آیتم‌های انتخاب شده وجود دارند، باکس نشان داده می‌شود */
    .selected-attributes-wrapper.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .selected-attributes-wrapper .no-selected {
        font-size: 11px;
        color: #adb5bd;
        font-style: italic;
        display: none; /* مخفی کردن پیام no-selected */
    }

.selected-attribute {
    display: inline-block;
    background: #e3f2fd;
    color: #2c4beb;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #2c4beb;
    animation: fadeIn 0.3s ease;
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== No items ===== */
.no-items {
    padding: 10px 14px;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.no-attributes {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}



/* ===== صفحه‌بندی ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

    .pagination button {
        padding: 8px 16px;
        border: 2px solid #dee2e6;
        background: white;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s ease;
        color: #2c3e50;
    }

        .pagination button:hover:not(:disabled) {
            background: #3498db;
            color: white;
            border-color: #3498db;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
        }

        .pagination button.active {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    .pagination .page-info {
        padding: 8px 16px;
        color: #6c757d;
        font-size: 14px;
    }

/* ===== وضعیت بارگذاری ===== */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c757d;
}

   

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

.no-products {
    text-align: center;
    padding: 60px;
    color: #6c757d;
    font-size: 18px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .dropdown-title {
        font-size: 12px;
    }

    .dropdown-header {
        padding: 6px 10px;
        min-height: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .attributes-grid {
        gap: 10px;
    }

    .selected-attributes-wrapper {
        min-height: 24px;
        padding: 3px 6px;
    }

    .selected-attribute {
        font-size: 10px;
        padding: 1px 8px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-image {
        height: 140px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filters-sidebar {
        padding: 14px;
    }

    .attribute-group-wrapper {
        padding-bottom: 10px;
    }

    .selected-attributes-wrapper {
        font-size: 10px;
        padding: 2px 4px;
    }
}






/*------------------------------------
    Element Product Page
-------------------------------------*/
.product-list-section {
  margin-bottom: 4.2rem;
}
.product-list-section .title-link-wrapper .title::after {
  height: 2px;
  background-color: #666;
}

.product-wrapper.row [class*=col-] {
  margin-bottom: 2rem;
}

.product:not(.product-single) .product-countdown-container {
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: 10px;
  white-space: nowrap;
  overflow-x: auto;
  background-color: rgba(34, 34, 34, 0.8);
  color: #fff;
  letter-spacing: -0.025em;
  text-align: center;
  border-radius: 0.3rem;
  padding-right: 0;
  padding-left: 0;
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.3s, visibility 0.3s;
  transition: opacity 0.3s, visibility 0.3s;
}
.product:not(.product-single) .countdown-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.product:not(.product-single) .countdown-section {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.9em 0 0.8em;
}
.product:not(.product-single) .countdown-amount, .product:not(.product-single) .countdown-period {
  display: inline-block;
}
.product:not(.product-single) .countdown-amount {
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.3;
}
.product:not(.product-single) .countdown-period {
  font-size: 1em;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: -0.035em;
}
.product:not(.product-single):hover .product-countdown-container {
  opacity: 0;
  visibility: hidden;
}
.product:not(.product-single) .product-list .product-desc {
  margin-bottom: 3.9rem;
  line-height: 1.9;
}

.product-sticky-content .product-list-sm {
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.product-sticky-content .product-media {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 8.5rem;
          flex: 0 0 8.5rem;
  max-width: 8.5rem;
  height: 8.5rem;
}
.product-sticky-content .product-media img {
  height: 100%;
}
.product-sticky-content .product-name {
  font-size: 1.4rem;
}
.product-sticky-content .product-price {
  font-size: 1.6rem;
}
.product-sticky-content .old-price {
  font-size: 1.6rem;
}
.product-sticky-content .product-form.container {
  padding: 0;
}
.product-sticky-content.fixed .product-list-sm {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.product-sticky-content.fixed .product-form {
  padding: 2rem;
}
.product-sticky-content.fixed .product-qty-form, .product-sticky-content.fixed .btn-cart {
  margin-bottom: 0;
}
.product-sticky-content.fixed .product-qty-form {
  margin-left: 0.8rem;
  max-width: 14rem;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 14rem;
          flex: 0 0 14rem;
}
.product-sticky-content.fixed .product-qty-form label {
  display: none;
}
.product-sticky-content.fixed .btn-cart {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  max-width: 21rem;
}
.product-sticky-content.fix-top.fixed .product-form {
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.product-sticky-content.fix-top.fixed .product-media {
  max-width: 4.4rem;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 4.4rem;
          flex: 0 0 4.4rem;
  height: 4.4rem;
}
.product-sticky-content.fix-top.fixed .product-name {
  display: none;
}
.product-sticky-content.fix-top.fixed .btn-cart {
  min-width: 14rem;
}

.product-single .col-md-6 .product-bm-wrapper {
  margin-bottom: 0.8rem;
}

.sticky-both-content .product-single {
  margin-top: 0.4rem;
}
.sticky-both-content .product-title {
  margin-bottom: 1.2rem;
  line-height: 1.4;
}
.sticky-both-content .product-color-swatch {
  margin-top: 0.3rem;
}
.sticky-both-content .product-size-swatch {
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.product-qty-form.with-label {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 21.5rem;
          flex: 0 0 21.5rem;
  max-width: 21.5rem;
}

@media (max-width: 1199px) {
  .shop-content .product-list .product-desc {
    margin-bottom: 2rem;
  }
}
@media (max-width: 575px) {
  .shop-content .product-list {
    display: block;
    margin-bottom: 2rem;
  }
  .shop-content .product-list .product-media {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
    margin: 0 0 2rem 0;
  }
}
@media (max-width: 479px) {
  .product-sticky-content.fix-top.fixed .product-media, .product-sticky-content.fix-top.fixed .product-details {
    display: none;
  }
  .product-sticky-content.fix-top.fixed .btn-cart {
    max-width: none;
  }
  .product-sticky-content.fix-top.fixed .product-form {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .product-sticky-content.fixed .product-list-sm {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
  }
}




/*-------------------------------------------
    Products
        - Default
        - Simple
        - Slide Up
        - Image Gap
        - Widget
        - List
--------------------------------------------*/

.product-page-h1 {
    font-size: 2rem;
}

.product {
    position: relative;
    font-family: yekan;
    font-size: 1rem;
    color: #020101;
    -webkit-transition: opacity 0.3s, -webkit-box-shadow 0.3s;
    transition: opacity 0.3s, -webkit-box-shadow 0.3s;
    transition: box-shadow 0.3s, opacity 0.3s;
    transition: box-shadow 0.3s, opacity 0.3s, -webkit-box-shadow 0.3s;
}

    .product:hover .product-action,
    .product:hover .product-action-vertical,
    .product:hover .product-action-horizontal {
        visibility: visible;
        opacity: 1;
    }

    .product:hover .product-action-horizontal {
        bottom: 1.5rem;
    }

    .product .product-price {
        display: flex;
        flex-direction: column;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }


.product .product-price del {
    font-size: 1.4rem
}

.product-media {
    position: relative;
    margin-bottom: 0;
    -webkit-transition: -webkit-box-shadow 0.35s;
    transition: -webkit-box-shadow 0.35s;
    transition: box-shadow 0.35s;
    transition: box-shadow 0.35s, -webkit-box-shadow 0.35s;
}

    .product-media img {
        display: block;
        width: 100%;
        height: auto;
        -webkit-transition: opacity 0.4s;
        transition: opacity 0.4s;
    }

        .product-media img:last-child {
            position: absolute;
            opacity: 0;
            right: 0;
            left: 0;
            bottom: 0;
            top: 0;
            -o-object-fit: cover;
            object-fit: cover;
        }

        .product-media img:first-child {
            position: relative;
            opacity: 1;
        }

    .product-media:hover img:last-child {
        opacity: 1;
    }

.product-label-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    position: absolute;
    right: 2rem;
    top: 2rem;
    max-width: 11rem;
    z-index: 1;
}

.product-label {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2em;
    letter-spacing: -0.005em;
    color: #fff;
    line-height: 1;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
}

    .product-label.label-new {
        background: #336699;
        padding: 0.6rem 1rem;
    }

    .product-label.label-discount {
        background: #f93;
    }

    .product-label.label-hot {
        background: #799b5a;
    }

.product-sales-wrapper {
    position: relative;
    margin-bottom: 1.4rem;
}

    .product-sales-wrapper .progress-bar {
        height: 1rem;
        background: #eee;
        margin-bottom: 0.7rem;
    }

    .product-sales-wrapper .product-sales-count {
        color: #666;
        font-size: 1.3rem;
    }

        .product-sales-wrapper .product-sales-count mark {
            background-color: transparent;
            color: inherit;
        }

.btn-product {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 1.14em 0;
    line-height: 1.2;
    background-color: #336699;
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

    .btn-product:hover, .btn-product:active {
        color: #fff;
    }

    .btn-product.btn-link {
        display: inline-block;
        font-weight: 600;
        font-size: 1.3rem;
        line-height: 1.6;
        -webkit-box-flex: 0;
        -ms-flex: none;
        flex: none;
        background-color: transparent;
        padding: 0;
    }

        .btn-product.btn-link::after {
            margin-top: 0;
        }

    .btn-product.btn-sm {
        padding: 0.693em 0;
    }

.btn-wishlist {
    line-height: 1;
}

    .btn-wishlist i::before {
        margin: 0;
    }

.btn-cart {
    font-weight: 600;
}

    .btn-cart.btn-link {
        color: #336699;
    }

        .btn-cart.btn-link:hover, .btn-cart.btn-link:active {
            color: #336699;
        }

    .btn-cart:not(.btn-product-icon) i.w-icon-cart {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

.btn-product-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    border: 1px solid #eee;
    color: #999;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 3.5rem;
    overflow: hidden;
    -webkit-transition: background-color 0.3s, border-color 0.3s, color 0.3s, visibility 0.3s, opacity 0.3s, -webkit-transform 0.3s;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, visibility 0.3s, opacity 0.3s, -webkit-transform 0.3s;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, visibility 0.3s, opacity 0.3s, transform 0.3s;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, visibility 0.3s, opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;
}

    .btn-product-icon:hover, .btn-product-icon:active {
        border-color: #336699;
        color: #fff;
        background-color: #336699;
    }

    .btn-product-icon.btn-cart, .btn-product-icon.btn-quickview {
        font-size: 1.6em;
    }

    .btn-product-icon.btn-compare {
        font-size: 2em;
    }

.product-action-vertical .btn-product-icon {
    border-radius: 50%;
}

.btn-product-icon.btn-cart {
    margin-bottom: 0.2rem;
}

.btn-product-icon.loading {
    background-color: rgba(255, 255, 255, 0.2);
}

    .btn-product-icon.loading::before {
        opacity: 0.4;
    }

.product-action {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: transparent;
    z-index: 10;
    -webkit-transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    opacity: 0;
    visibility: hidden;
}

.product-action-vertical {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    -webkit-transition: opacity 0.3s, visibility 0.3s;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}

.product-action-horizontal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #fff;
    -webkit-box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.08);
    right: 50%;
    -webkit-transform: translateX(50%);
    transform: translateX(50%);
    bottom: 0;
    width: 166px;
    max-width: 80%;
    border-radius: 3px;
    padding: 5px;
    opacity: 0;
    visibility: visible;
    -webkit-transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
}

    .product-action-horizontal .btn-product-icon {
        margin-bottom: 0;
        border: none;
        color: #333;
    }

        .product-action-horizontal .btn-product-icon.btn-wishlist {
            font-size: 1.7em;
        }

        .product-action-horizontal .btn-product-icon.btn-compare {
            font-size: 1.9em;
        }

        .product-action-horizontal .btn-product-icon:hover, .product-action-horizontal .btn-product-icon:active, .product-action-horizontal .btn-product-icon:focus,
        .product-hidden-details .btn-product-icon:hover,
        .product-hidden-details .btn-product-icon:active,
        .product-hidden-details .btn-product-icon:focus,
        .product-list .product-details .btn-product-icon:hover,
        .product-list .product-details .btn-product-icon:active,
        .product-list .product-details .btn-product-icon:focus {
            background-color: transparent;
            color: #336699;
        }

.product-details {
    position: relative;
    padding-top: 1.7rem;
    background-color: #fff;
    -webkit-transition: -webkit-box-shadow 0.3s;
    transition: -webkit-box-shadow 0.3s;
    transition: box-shadow 0.3s;
    transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
}

    .product-details > .btn-wishlist {
        position: absolute;
        top: 1.7rem;
        left: 0;
        color: #999999;
        font-size: 1.8em;
        z-index: 1;
    }

        .product-details > .btn-wishlist.loading {
            left: 1.8rem;
        }

            .product-details > .btn-wishlist.loading::after {
                right: 0.9rem;
                top: 0.9rem;
            }

        .product-details > .btn-wishlist:hover {
            color: #336699;
        }

            .product-details > .btn-wishlist:hover i {
                -webkit-transform: rotateY(180deg);
                transform: rotateY(180deg);
            }

.product-hidden-details .product-action {
    position: relative;
    visibility: hidden;
    opacity: 0;
}

    .product-hidden-details .product-action .btn-wishlist {
        position: static;
    }

.product-hidden-details .btn-cart {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 9.5rem;
    max-width: 12.3rem;
    height: 3.5rem;
    padding: 0.92em 0;
    font-size: 1.3rem;
    font-weight: 600;
    -webkit-transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    z-index: 1;
    background-color: #454545;
    border-radius: 0.3rem;
}

    .product-hidden-details .btn-cart:hover {
        background-color: #336699;
        border-color: #336699;
    }

    .product-hidden-details .btn-cart i {
        margin: 0;
        display: none;
    }

.product-hidden-details .btn-product-icon {
    visibility: hidden;
    opacity: 0;
}

.product-hidden-details .btn-product-icon, .product-list .product-details .btn-product-icon {
    width: 3rem;
    height: 3.5rem;
    margin: 0 1rem 0 0;
    border: none;
    color: #333;
    text-align: center;
}

    .product-hidden-details .btn-product-icon.btn-compare, .product-list .product-details .btn-product-icon.btn-compare {
        margin-right: 0.8rem;
    }

.product-hidden-details .btn-wishlist, .product-list .btn-wishlist {
    font-size: 1.8rem;
}

.product-hidden-details .btn-compare, .product-list .btn-compare {
    font-size: 2rem;
}

.product-rate {
    font-size: 1.5rem;

}
.product-rate i {
    color: #ff9933;
}

.product-name {
    text-align: right;
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .product-name a {
        color: inherit;
    }

        .product-name a:hover {
            color: #336699;
        }

.product-cat {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #999;
    line-height: 1;
    text-transform: uppercase;
}

    .product-cat a {
        display: inline-block;
        color: inherit;
    }

        .product-cat a:hover {
            color: #336699;
        }

.product-variations {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

    .product-variations > a {
        border: 1px solid #ccc;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #fff;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 0.3rem;
        -webkit-transition: border-color 0.3s;
        transition: border-color 0.3s;
    }

        .product-variations > a:not(:last-child) {
            margin-left: 0.8rem;
        }

        .product-variations > a:not(.color).active,
        .product-variations > a:not(.color):hover {
            border: 1px solid #336699;
        }

.ratings-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    line-height: 1;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.ratings-full,
.ratings {
    position: relative;
    font-family: "wolmart";
    letter-spacing: 0.2em;
}

.ratings-full {
    cursor: pointer;
    margin-left: 0.5rem;
}

    .ratings-full::before {
        content: "" "" "" "" "";
        color: rgba(0, 0, 0, 0.16);
        white-space: nowrap;
    }

    .ratings-full:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

.ratings {
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    overflow: hidden;
}

    .ratings::before {
        content: "" "" "" "" "";
        color: #f93;
    }

.rating-reviews {
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
    font-size: 1.2rem;
    color: #aaa;
}

    .rating-reviews:hover {
        color: #336699;
    }

.product-price {
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.6;
    -webkit-transition: visibility 0.4s, opacity 0.4s;
    transition: visibility 0.4s, opacity 0.4s;
}

    .product-price .old-price {
        font-weight: 400;
        color: #aaa;
    }

    .product-price .new-price {
        color: #333;
        text-decoration: none;
    }

        .product-price .new-price:not(:last-child) {
            margin-left: 1rem;
        }

    .product-price:not(:last-child) {
        margin-bottom: 0.9rem;
    }

.sold-by {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #666;
}

    .sold-by a {
        color: #336699;
    }

.product-wrap {
    margin-bottom: 2rem;
}

.product-simple:hover .product-price {
    visibility: hidden;
    opacity: 0;
}

.product-slideup-content {
    overflow: hidden;
}

    .product-slideup-content .product-hidden-details {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding-top: 1.5rem;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-transition: -webkit-transform 0.3s;
        transition: -webkit-transform 0.3s;
        transition: transform 0.3s;
        transition: transform 0.3s, -webkit-transform 0.3s;
        background-color: #fff;
    }

    .product-slideup-content .product-details {
        background-color: #fff;
        -webkit-transition: -webkit-transform 0.3s;
        transition: -webkit-transform 0.3s;
        transition: transform 0.3s;
        transition: transform 0.3s, -webkit-transform 0.3s;
    }

    .product-slideup-content .btn-wishlist {
        -webkit-transform: translateX(150%);
        transform: translateX(150%);
    }

    .product-slideup-content .btn-compare {
        -webkit-transform: translateX(300%);
        transform: translateX(300%);
    }

    .product-slideup-content:hover .product-details,
    .product-slideup-content:hover .product-hidden-details {
        -webkit-transform: translateY(-50px);
        transform: translateY(-50px);
    }

    .product-slideup-content:hover .btn-product-icon {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

.product-image-gap {
    padding: 0.9rem;
    border: 1px solid #eee;
    background-color: #fff;
}

    .product-image-gap .product-details {
        padding: 1.8rem 1rem 1rem;
    }

    .product-image-gap.product-classic .product-action {
        right: 0;
        bottom: 0;
    }

    .product-image-gap:hover {
        -webkit-box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    }

.product-widget {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

    .product-widget .product-name {
        font-size: 1.3rem;
        white-space: normal;
        line-height: 1.45;
        margin-bottom: 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.product-widget {
    padding: 1rem 0;
}

    .product-widget .product-media {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 11rem;
        flex: 0 0 11rem;
        margin: 0 0 0 1rem;
        max-width: 11rem;
        padding: 0 0 0 1rem;
    }

    .product-widget .product-details {
        padding: 0 0 0 1rem;
    }

    .product-widget .product-name {
        margin-bottom: 0.7rem;
        color: #666;
    }

    .product-widget .product-price {
        font-size: 1.5rem;
    }

.sidebar .product-widget {
    padding: 1rem 0;
}

    .sidebar .product-widget .product-media {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 35.73%;
        flex: 0 0 35.73%;
        max-width: 35.73%;
        min-width: 33.33%;
        margin-left: 1rem;
        padding: 0;
    }

    .sidebar .product-widget .product-name {
        margin-bottom: 0.6rem;
        color: #333;
    }

    .sidebar .product-widget .ratings-container {
        margin-bottom: 0.5rem;
    }

.product.text-center .ratings-container {
    text-align: start;
}

.product.text-center .ratings-container,
.product.text-center .product-action {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.product .product-pa-wrapper {
    position: relative;
    display: flex;
}

    .product .product-pa-wrapper .product-price {
        margin-bottom: 0;
    }

    .product .product-pa-wrapper .product-action {
        bottom: -1rem;
    }

    .product .product-pa-wrapper .load-more-overlay.loading::after {
        top: 0;
    }

.product-status {
    font-size: 1.1rem;
}

.product-des {
    min-height: 30px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    display: block;
}

.product-discount {
    background: #d32f2f;
    color: #fff;
    padding: 2px 5px;
    border-radius: 50px;
}


.product:hover .product-pa-wrapper .product-action {
    bottom: 0;
}

.product-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 2rem;
}

    .product-list .product-media {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 26rem;
        flex: 0 0 26rem;
        max-width: 26rem;
        margin-left: 2rem;
    }

    .product-list .product-details {
        padding: 0;
    }

    .product-list .product-name {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .product-list .ratings-container {
        margin-bottom: 0.9rem;
    }

    .product-list .product-price {
        margin-bottom: 0.6rem;
        font-size: 1.8rem;
    }

    .product-list .product-action {
        position: relative;
        visibility: visible;
        opacity: 1;
    }

    .product-list .product-desc {
        margin-bottom: 3.9rem;
        font-size: 1.3rem;
        color: #666;
        line-height: 1.9;
    }

      

@media (max-width: 575px) {
    .product-list {
        display: block;
        margin-bottom: 2rem;
    }

        .product-list .product-media {
            max-width: 100%;
            -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            margin: 0 0 2rem 0;
        }
}

@media (max-width: 479px) {
    .product:not(.product-list) {
        font-size: 0.8rem;
    }

        .product:not(.product-list) .btn-product-icon {
            width: 3rem;
            height: 3rem;
        }

        .product:not(.product-list) .product-label-group {
            top: 1rem;
            right: 1rem;
        }

        .product:not(.product-list) .product-action-vertical {
            top: 1rem;
            left: 1rem;
        }

    .product-hidden-details .btn-cart {
        max-width: 3.5rem;
        min-width: auto;
    }

        .product-hidden-details .btn-cart i {
            display: block;
        }

        .product-hidden-details .btn-cart span {
            display: none;
        }
}



/*---------------------------
    Breadcrumb
--------------------------*/
.breadcrumb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border-bottom: 1px solid #eeeeee;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.5;
    padding: 2rem 0.2rem;
}

.breadcrumb a {
    color: inherit;
}

.breadcrumb li:not(:last-child) {
    padding-left: 0.4rem;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    opacity: 0.8;
}

    .breadcrumb li:not(:last-child)::after {
        content: "";
        position: relative;
        display: inline-block;
        margin-right: 0.5rem;
        font-size: 1rem;
        font-weight: 500;
        font-family: "wolmart";
    }

.breadcrumb li:not(:last-child):hover {
    opacity: 1;
}

.breadcrumb li:last-child {
    color: #333333;
}


.sorting-options {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sort-title {
    font-weight: bold;
    margin-left: 10px;
}

.sort-title i {
    font-size: 1.5rem

}

.sort-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.sort-option {
    padding: 2px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.sort-option  {
    color:  #333;
}


    .sort-option:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        color: #2c4beb;
    }

    .sort-option.active {

    background: #e3f2fd;
    color: #2c4beb;
    border: 1px solid #2c4beb;
    animation: fadeIn 0.3s ease;
    }



/* ===== استایل صفحه‌بندی ===== */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .page-btn:hover:not(:disabled):not(.active) {
        background: #e9ecef;
        border-color: #dee2e6;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .page-btn.active {
        background: #2c4beb;
        border-color: #2c4beb;
        color: white;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        transform: scale(1.05);
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

.page-dots {
    color: #adb5bd;
    font-size: 18px;
    padding: 0 4px;
    user-select: none;
}

/* ===== دکمه‌های قبلی و بعدی ===== */
.page-btn.prev-btn,
.page-btn.next-btn {
    padding: 0 16px;
    background: white;
    border-color: #dee2e6;
    font-size: 16px;
}

    .page-btn.prev-btn:hover:not(:disabled),
    .page-btn.next-btn:hover:not(:disabled) {
        background: #007bff;
        border-color: #007bff;
        color: white;
    }

/* ===== استایل پاسخگو ===== */
@media (max-width: 768px) {
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    .pagination-wrapper {
        padding: 12px;
        margin: 20px 0;
    }

    .pagination-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
        border-radius: 6px;
    }

    .page-dots {
        font-size: 14px;
        padding: 0 2px;
    }
}









/* ===== فیلتر قیمت ===== */
/*.price-range-container {
    padding: 15px;
    min-width: 100%;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

    .price-input-group label {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }

.price-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    direction: ltr;
    text-align: left;
}

    .price-input:focus {
        border-color: #4CAF50;
        outline: none;
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    }

.price-slider-container {
    padding: 5px 0;
}

.price-slider-track {
    position: relative;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 20px 0;
}

.price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #4CAF50;
    border-radius: 3px;
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    margin: 0;
}

    .price-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #4CAF50;
        cursor: pointer;
        pointer-events: auto;
        border: 2px solid white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 2;
    }

    .price-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #4CAF50;
        cursor: pointer;
        pointer-events: auto;
        border: 2px solid white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .price-slider::-webkit-slider-runnable-track {
        width: 100%;
        height: 6px;
        background: transparent;
        border-radius: 3px;
    }

    .price-slider::-moz-range-track {
        width: 100%;
        height: 6px;
        background: transparent;
        border-radius: 3px;
    }

    .price-slider:first-child {
        z-index: 1;
    }

    .price-slider:last-child {
        z-index: 3;
    }

.price-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    direction: ltr;
}

    .price-range-display span {
        direction: ltr;
    }

.price-apply-btn {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

    .price-apply-btn:hover {
        background: #45a049;
    }

    .price-apply-btn:active {
        transform: scale(0.98);
    }*/

/* ===== نمایش انتخاب قیمت ===== */
/*.selected-attribute.price-selected {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}*/

/* ===== دکمه حذف فیلتر قیمت ===== */
/*.price-reset-btn {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

    .price-reset-btn:hover {
        background: rgba(244, 67, 54, 0.1);
    }*/

/* ===== ریسپانسیو ===== */
/*@media (max-width: 768px) {
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .price-range-container {
        min-width: 200px;
    }
}*/
/* ===== فیلتر قیمت ===== */
.price-range-container {
    padding: 15px;
    min-width: 100%;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

    .price-input-group label {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }

.price-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    direction: rtl;
    text-align: right;
    font-family: yekan;
}


.price-slider-container {
    padding: 5px 0;
    position: relative;
}

.price-slider-track {
    direction: rtl; /* تغییر: راست‌چین برای چیدمان معکوس */
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 10px 10px;
    padding: 0;
}

/* ===== هایلایت رنج انتخاب شده ===== */
.price-range-highlight {
    position: absolute;
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #66BB6A);
    border-radius: 3px;
    z-index: 0;
    top: 0;
    /* تغییر: از right به جای left استفاده می‌شود */
    right: 0;
    pointer-events: none;
    transition: right 0.15s ease, width 0.15s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    will-change: right, width; /* تغییر: بهینه‌سازی با right */
}

/* ===== تغییرات اصلی برای رفع فاصله ===== */
.price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% + 20px);
    height: 6px;
    border-radius: 3px;
    outline: none;
    position: absolute;
    top: -2px;
    right: -10px;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 1;
}

    .price-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        cursor: pointer;
        pointer-events: auto;
        border: 3px solid #4CAF50;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 2;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

       

    .price-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        cursor: pointer;
        pointer-events: auto;
        border: 3px solid #4CAF50;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    .price-slider::-webkit-slider-runnable-track {
        width: 100%;
        height: 6px;
        background: transparent;
        border-radius: 3px;
    }

    .price-slider::-moz-range-track {
        width: 100%;
        height: 6px;
        background: transparent;
        border-radius: 3px;
    }

    .price-slider.min-slider {
        z-index: 3; /* تغییر: min در بالا (راست) */
    }

    .price-slider.max-slider {
        z-index: 2; /* تغییر: max در پایین (چپ) */
    }

.price-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    direction: rtl; /* تغییر: راست‌چین */
}

    .price-range-display span {
        direction: ltr;
    }

        .price-range-display span:first-child {
            color: #4CAF50;
        }

        .price-range-display span:last-child {
            color: #4CAF50;
        }

        .price-range-display span:nth-child(2) {
            color: #999;
        }

/* ===== نمایش انتخاب قیمت ===== */
.selected-attribute.price-selected {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== دکمه حذف فیلتر قیمت ===== */
.price-reset-btn {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

    .price-reset-btn:hover {
        background: rgba(244, 67, 54, 0.1);
    }

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .price-range-container {
        min-width: 200px;
    }

    .price-slider-track {
        margin: 20px 5px;
    }

    .price-slider {
        width: calc(100% + 10px);
        right: -5px; /* تغییر: جبران حاشیه از راست */
    }
}





/* ===== سایدبار فیلترها ===== */
.filter-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .filter-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

.filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: #fff;
    width: 85%;
    max-width: 300px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

    .filter-sidebar.open {
        display: block;
        transform: translateX(0);
    }

/* ===== هدر سایدبار ===== */
.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .filter-sidebar-header h4 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.filter-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    transition: color 0.3s;
}

    .filter-close-btn:hover {
        color: #ff0000;
    }

/* ===== محتوای سایدبار ===== */
.filter-sidebar-content {
    padding: 20px;
    padding-bottom: 100px;
}

    .filter-sidebar-content .attribute-group-wrapper {
        margin-bottom: 15px;
    }

/* ===== مخفی کردن فیلترهای سایدبار در دسکتاپ ===== */
@media (min-width: 992px) {
    .filter-toggle-btn {
        display: none !important;
    }

    .filter-sidebar-overlay,
    .filter-sidebar {
        display: none !important;
    }
}

/* ===== نمایش در موبایل ===== */
@media (max-width: 991px) {
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* مخفی کردن فیلترهای سمت راست در موبایل */
    .filters-sidebar {
        display: none !important;
    }

    /* نمایش فیلترها در سایدبار */
    .filter-sidebar .attribute-checkboxes {
        display: block !important;
    }
}

/* ===== انیمیشن ورود ===== */
.filter-sidebar.open {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.filter-sidebar-overlay.active {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}









.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;

    border: 1px solid #e8e8e8;
}

    .filter-toggle-btn:hover {
        background: #e0e0e0;
    }

.sort-title {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

    .sort-title:hover {
        background: #f5f5f5;
    }

.selected-sort {
    color: #333;
    font-weight: 600;
    margin: 0 4px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #999;
}

    .dropdown-arrow.open {
        transform: rotate(180deg);
    }

.sort-dropdown-wrapper {
    position: relative;
    padding: 5px 10px;
}

/* دکمه‌های مرتب‌سازی در حالت عادی (دسکتاپ) */
.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-option {
    padding: 6px 14px;
    border-radius: 20px;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}

    .sort-option:hover {
        background: #f0f0f0;
        border-color: #ccc;
    }

    .sort-option.active {
        background: #2c4beb;
        color: #fff;
        border-color: #2c4beb;
    }

/* ===== استایل موبایل ===== */
@media (max-width: 768px) {
    .sort-title {
        display: flex;
    }

    .sorting-options {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .filter-toggle-btn {
        
        font-size: 13px;
        white-space: nowrap;
    }

        .filter-toggle-btn i {
            font-size: 14px;
        }

    /* مخفی کردن دکمه‌های مرتب‌سازی در موبایل */
    .sort-buttons {
        display: none !important;
    }

    /* نمایش dropdown */
    .sort-dropdown-wrapper {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .sort-title {
        padding: 6px 12px;
        background: #f5f5f5;
        border-radius: 6px;
        justify-content: space-between;
        width: 100%;
        font-size: 13px;
        border: 1px solid #e8e8e8;
    }

    .selected-sort {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    /* منوی dropdown */
    .sort-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        padding: 8px 0;
        z-index: 1000;
        display: none;
        min-width: 200px;
        border: 1px solid #eee;
        animation: dropdownSlideDown 0.3s ease;
    }

        .sort-dropdown.open {
            display: block;
        }

        .sort-dropdown .sort-option {
            display: block;
            padding: 10px 16px;
            border: none;
            border-radius: 0;
            background: transparent;
            color: #333;
            font-size: 14px;
            text-align: right;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f5f5f5;
        }

            .sort-dropdown .sort-option:last-child {
                border-bottom: none;
            }

            .sort-dropdown .sort-option:hover {
                background: #f5f8ff;
                color: #2c4beb;
            }

            .sort-dropdown .sort-option.active {
                background: #2c4beb;
                color: #fff;
                border-radius: 0;
            }

    /* انیمیشن dropdown */
    @keyframes dropdownSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

/* استایل برای موبایل‌های کوچک‌تر */
@media (max-width: 480px) {
    .sorting-options {
        gap: 4px;
    }

    .filter-toggle-btn {
       
        font-size: 12px;
    }

        .filter-toggle-btn i {
            font-size: 12px;
        }

    .sort-title {
        padding: 5px 10px;
        font-size: 12px;
    }

    .selected-sort {
        max-width: 70px;
        font-size: 12px;
    }

    .sort-dropdown .sort-option {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* استایل برای تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .sort-buttons {
        gap: 6px;
    }

    .sort-option {
        padding: 5px 12px;
        font-size: 12px;
    }
}