.shop {
    margin-top: 10rem;
    padding-bottom: 2.5rem;
}

#sortModal .modal-dialog,
.modal.modal-bottom-sheet .modal-dialog {
    position: fixed;
    bottom: 0;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform .3s ease-out
}

#sortModal .modal-content,
#sortModal .modal-dialog {
    height: auto;
    max-height: 50vh;
    box-shadow: none !important
}

.shop-desktop-sidebar {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    overflow: hidden;
}

.shop-desktop-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 1rem;
    padding-inline: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f2f3;
}

.shop-desktop-sidebar__title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #101010;
    line-height: 1.6;
}

.shop-desktop-sidebar__clear {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 400;
    color: #ef4056;
    text-decoration: none;
    line-height: 1.6;
    transition: opacity .2s ease;
}

.shop-desktop-sidebar__clear:hover {
    color: #ef4056;
    opacity: 0.85;
}

.shop-desktop-sidebar__form {
    margin: 0;
}

.shop-desktop-sidebar__sections {
    display: flex;
    flex-direction: column;
}

.shop-desktop-sidebar__section + .shop-desktop-sidebar__section {
    border-top: 1px solid #f1f2f3;
}

.shop-desktop-sidebar__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding-block: 1rem;
    padding-inline: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.shop-desktop-sidebar__trigger:focus,
.shop-desktop-sidebar__trigger:focus-visible {
    outline: none;
    box-shadow: none;
}

.shop-desktop-sidebar__trigger-text {
    font-size: 14px;
    font-weight: 400;
    color: #101010;
    line-height: 1.6;
    text-align: start;
}

.shop-desktop-sidebar__trigger-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    color: #101010;
    transition: transform .2s ease-in-out;
}

.shop-desktop-sidebar__trigger:not(.collapsed) .shop-desktop-sidebar__trigger-icon {
    transform: rotate(180deg);
}

.shop-desktop-sidebar__panel-body {
    padding-block: 0 1rem;
    padding-inline: 1.25rem 1.5rem;
}

.shop-desktop-sidebar__panel-body .shop-filter-check {
    padding: 0.625rem 0;
}

.shop-desktop-sidebar__panel-body .shop-filter-search {
    padding-top: 0;
    padding-bottom: 0.75rem;
}

.shop-desktop-sidebar__panel-body .price-slider-container {
    gap: 1rem;
}

.shop-desktop-sidebar__panel-body .price-input-label {
    font-size: 12px;
    font-weight: 400;
    color: #53565a;
}

.shop-desktop-sidebar__panel-body .price-input-container {
    border-color: #ededed;
}

.shop-desktop-sidebar__panel-body .price-input {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #101010;
}

.shop-desktop-sidebar__panel-body .shop-filter-list__items.is-scrollable {
    max-height: 280px;
    margin-inline-end: 0.25rem;
    padding-inline-end: 0.75rem;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.shop-desktop-sidebar__panel-body .shop-filter-list__items.is-scrollable::-webkit-scrollbar,
.shop-desktop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-desktop-sidebar__panel-body .shop-filter-list__items.is-scrollable::-webkit-scrollbar-track,
.shop-desktop-sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.shop-desktop-sidebar__panel-body .shop-filter-list__items.is-scrollable::-webkit-scrollbar-thumb,
.shop-desktop-sidebar::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 4px;
}

.shop-desktop-sidebar__panel-body .shop-filter-list__items.is-scrollable::-webkit-scrollbar-thumb:hover,
.shop-desktop-sidebar::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.shop-filter-check {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 0;
    cursor: pointer;
    font-size: 12px;
    color: #53565a;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.shop-filter-check__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.shop-filter-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-filter-check__mark {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    transition: background-color .2s, border-color .2s;
}

.shop-filter-check__input:checked + .shop-filter-check__mark {
    border-color: #ef4056;
    background-color: #ef4056;
}

.shop-filter-check__input:checked + .shop-filter-check__mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -58%) rotate(45deg);
}

.shop-filter-check__input:focus-visible + .shop-filter-check__mark {
    box-shadow: 0 0 0 2px rgba(239, 64, 86, .25);
}

.shop-filter-check__title {
    margin-inline-start: 8px;
    font-size: inherit;
    font-weight: 400;
    color: #000;
    line-height: inherit;
}

.shop-filter-check__subtitle {
    flex-shrink: 0;
    font-size: inherit;
    font-weight: 400;
    color: #000;
    direction: ltr;
    text-align: left;
    line-height: inherit;
}

@media (min-width: 992px) {
    .shop-filter-check {
        font-size: 14px;
    }
}

.shop-filter-list {
    width: 100%;
}

.shop-filter-search {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: stretch;
    padding: 9px 0 17px;
}

.shop-filter-search__icon {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    color: #53565a;
    pointer-events: none;
}

.shop-filter-search__input {
    width: 100%;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 10px 36px 10px 12px;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    background: #fff;
    outline: none;
    direction: rtl;
}

.shop-filter-search__input::placeholder {
    color: #81858b;
}

.shop-filter-search__input:focus {
    border-color: #ddd;
}

.shop-filter-list__items.is-scrollable {
    max-height: 300px;
    overflow-y: auto;
}

.shop-brand-letter {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0 0.5rem;
}

.shop-brand-letter-group:first-child .shop-brand-letter {
    margin-top: 0;
}

.shop-brand-letter__line {
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.shop-brand-letter__label {
    flex-shrink: 0;
    border: 1px solid #ddd;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 400;
    color: #53565a;
    line-height: 1.6;
    background-color: #fff;
}

.price-currency {
    pointer-events: none
}

@media (max-width:768px) {
    .product-card {
        padding: 8px
    }
}

@media (max-width:375px) {
    .product-card {
        padding: 6px
    }
}

@media (min-width: 992px) {
    /* دسکتاپ: همان ساختار کارت‌دار تبلت، با ۴ ستون */
    .shop .products-grid {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        gap: 12px;
    }

    .shop .products-grid > a .product-card {
        padding: 14px;
    }

    .shop .product-name {
        margin-bottom: 8px;
    }

    /* فقط اندازه بج تخفیف مثل بانی‌مد؛ موقعیت و رنگ همان قبلی */
    .shop .products-grid .variant-discount {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: 2rem;
        padding: 0;
        border-radius: 1rem;
        letter-spacing: -1px;
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 500;
    }
}

.modal.modal-bottom-sheet .modal-dialog {
    margin: 0;
    width: 100%;
    max-height: 75vh;
    height: 75vh;
    display: flex;
    align-items: stretch;
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overscroll-behavior: contain
}

#sortModal.show .modal-dialog,
.modal.modal-bottom-sheet.show .modal-dialog {
    transform: translateY(0)
}

.modal.modal-bottom-sheet .modal-content {
    border-radius: 15px 15px 0 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    border: none !important;
    box-shadow: none !important;
    border-bottom: none !important
}

.modal.modal-bottom-sheet .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain
}

.list-group {
    background: 0 0;
    border: none;
    box-shadow: none;
    font-size: .8125rem;
    margin-top: -15px;
    font-weight: 500
}

.list-group-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ebebeb;
    padding: 10px 0;
    transition: background-color .2s
}

.sort-nav {
    background: #fff;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #e0e0e2;
    border-radius: 0;
}

#sortModal .list-group-item:last-child,
.list-group-item:last-child {
    border-bottom: none
}

.list-group-item a {
    padding: 0;
    margin: 0;
    color: #212529;
    text-decoration: none;
    display: block
}

#sortModal .list-group-item a:hover,
.list-group-item a:hover {
    background-color: #f8f9fa
}

.modal-footer .btn {
    width: 45%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, .08);
    transition: .2s
}

.btn:focus {
    box-shadow: 0 0 0 .2rem rgba(0, 142, 178, .25)
}

.sort-nav__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-nav__label-wrap {
    flex-shrink: 0;
    padding-block: 12px;
}

.sort-nav__label {
    display: flex;
    align-items: center;
}

.sort-nav__icon {
    flex-shrink: 0;
    margin-inline-end: 8px;
    font-size: 1.5rem;
    color: #424750;
    line-height: 1;
}

.sort-nav__title {
    color: #3f4064;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}

.sort-nav__options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sort-nav__option {
    color: #81858b;
    font-size: .8125rem;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.sort-nav__option:hover {
    color: #3f4064;
}

.sort-nav__option.is-active {
    color: #ef394e;
    font-weight: 600;
}

.sort-nav__count {
    margin-inline-start: auto;
    flex-shrink: 0;
    padding-block: 12px;
}

.sort-nav__count span {
    color: #81858b;
    font-size: .8125rem;
    white-space: nowrap;
}

.modal-footer .btn-danger:focus,
.modal-footer .btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(200, 35, 51, .5) !important
}

.modal-footer .btn-outline-danger:focus,
.modal-footer .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, .5) !important
}

@media (max-width: 991.98px) {
    .shop {
        margin-top: 5rem;
    }
}

.page-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-top: 0.5rem;
}

#filter-main-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.25rem;
}

.breadcrumb-container {
    background: #fff;
    padding: 10px 0;
    border-radius: 0;
    box-shadow: none;
}

.custom-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    background: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
    scrollbar-width: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #81858b;
}

.custom-breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 8px;
    color: #81858b;
}

.breadcrumb-separator i {
    font-size: 0.875rem;
    line-height: 1;
    color: inherit;
}

.custom-breadcrumb .breadcrumb-item,
.custom-breadcrumb .breadcrumb-item a {
    color: #81858b;
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #81858b;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #81858b;
    font-weight: 500;
}

/* بردکرامب PLP — فقط دسکتاپ، هم‌تراز استارت (راست در RTL) */
.shop-plp-breadcrumb {
    display: none;
}

@media (min-width: 992px) {
    .shop-plp-breadcrumb {
        display: flex;
        justify-content: flex-end;
        margin: 1.5rem 0;
    }

    .shop-plp-breadcrumb__list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
        white-space: nowrap;
    }

    .shop-plp-breadcrumb__item {
        display: inline-flex;
        align-items: center;
    }

    .shop-plp-breadcrumb__item a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #53565a;
        text-decoration: none;
    }

    .shop-plp-breadcrumb__item a:hover {
        color: #101010;
    }

    .shop-plp-breadcrumb__item span {
        font-size: 12px;
        font-weight: 400;
        line-height: 1.6;
        color: inherit;
    }

    .shop-plp-breadcrumb__item.is-current span {
        font-weight: 600;
        color: #101010;
    }

    .shop-plp-breadcrumb__arrow {
        font-size: 12px;
        line-height: 1;
        color: #53565a;
    }
}

/* نوار فیلتر sticky — موبایل/تبلت اسکرول افقی، دسکتاپ مثل بانی‌مد */
.shop-plp-filters {
    position: sticky;
    top: var(--shop-mobile-sticky-bar-height, 70px);
    z-index: 50;
    margin: 0 -12px 1.25rem;
    padding: 8px 16px;
    background: #fff;
}

.shop-plp-filters__inner {
    position: relative;
    display: flex;
    width: 100%;
    background: #fff;
}

.shop-plp-filters__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.shop-plp-filters__row::-webkit-scrollbar {
    display: none;
}

/* سازگاری با صفحه برند که هنوز از کلاس قدیمی استفاده می‌کند */
.shop-mobile-filters {
    position: sticky;
    top: var(--shop-mobile-sticky-bar-height, 70px);
    z-index: 50;
    margin: 0 -12px 1.25rem;
    padding: 8px 16px;
    background: #fff;
}

.shop-mobile-filters__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.shop-mobile-filters__row::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .shop-mobile-filters {
        display: none !important;
    }
}

.shop-plp-filters__meta {
    display: none;
}

.shop-filter-btn__chevron {
    display: none;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.shop-plp-filters__more-btn {
    display: none;
}

@media (min-width: 992px) {
    .shop-plp-filters__extra-attr {
        display: none !important;
    }

    .shop-plp-filters.is-expanded .shop-plp-filters__extra-attr {
        display: inline-flex !important;
    }
}

.shop-filter-btn {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: .8px solid #ededed;
    border-radius: 8px;
    background: #fff;
    color: #53565a;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.shop-filter-btn.shop-plp-view-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
}

.shop-plp-view-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.shop-plp-view-toggle__icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.shop-filter-btn.shop-plp-view-toggle.is-list-view .shop-plp-view-toggle__icon {
    color: #101010;
}

.shop-filter-btn:hover,
.shop-filter-btn:focus {
    color: #53565a;
    text-decoration: none;
}

.shop-filter-btn i {
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.shop-filter-btn__text {
    font-size: .875rem;
    font-weight: 400;
    line-height: 20px;
    color: inherit;
}

.shop-filter-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .shop-plp-main[data-plp-view="list"] .products-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .shop-plp-main[data-plp-view="list"] .products-grid > a {
        border-bottom: 1px solid #f0f0f1;
    }

    .shop-plp-main[data-plp-view="list"] .products-grid > a .product-card {
        display: grid;
        grid-template-columns: 118px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        align-items: start;
        padding: 12px 0;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
    }

    .shop-plp-main[data-plp-view="list"] .variant-image {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 118px;
        max-width: 118px;
    }

    .shop-plp-main[data-plp-view="list"] .product-name {
        grid-column: 2;
        grid-row: 1;
        min-height: auto;
        max-height: none;
        margin-bottom: 0;
        line-height: 1.6;
        display: block;
        overflow: visible;
        text-overflow: unset;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .shop-plp-main[data-plp-view="list"] .product-info {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
    }
}

@media (min-width: 992px) {
    .shop-plp-filters {
        top: var(--shop-desktop-sticky-top, 0);
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        margin: 0 0 1.25rem;
        padding: 8px 0;
    }

    .shop-plp-filters__inner {
        flex: 1;
        min-width: 0;
    }

    .shop-plp-filters__row {
        flex-wrap: wrap;
        overflow: visible;
    }

    .shop-plp-filters__all-btn {
        display: none !important;
    }

    .shop-plp-view-toggle {
        display: none !important;
    }

    .shop-filter-btn__chevron {
        display: inline-flex;
    }

    .shop-plp-filters__more-btn {
        display: inline-flex;
    }

    .shop-plp-filters.is-expanded .shop-plp-filters__more-btn .shop-filter-btn__chevron {
        transform: rotate(180deg);
    }

    .shop-plp-filters__meta {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        padding-inline-start: 1rem;
        border-inline-start: 1px solid #f1f2f3;
        min-height: 40px;
    }

    .shop-plp-filters__divider {
        display: block;
        width: 1px;
        height: 24px;
        background: #f1f2f3;
        flex-shrink: 0;
    }

    .shop-plp-filters__count {
        white-space: nowrap;
        font-size: .875rem;
        font-weight: 400;
        line-height: 1.6;
        color: #53565a;
    }

    .shop-stock-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        cursor: pointer;
        user-select: none;
    }

    .shop-stock-toggle__label {
        white-space: nowrap;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.6;
        color: #53565a;
    }

    .shop-stock-toggle__input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .shop-stock-toggle__track {
        position: relative;
        display: inline-block;
        width: 36px;
        height: 24px;
        flex-shrink: 0;
        border-radius: 999px;
        background: #e0e0e0;
        transition: background-color .2s ease;
    }

    .shop-stock-toggle__track::before {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 4px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 1px 3px 4px rgba(0, 0, 0, .24);
        transition: transform .2s ease;
    }

    .shop-stock-toggle__input:checked + .shop-stock-toggle__track {
        background: #ef4056;
    }

    .shop-stock-toggle__input:checked + .shop-stock-toggle__track::before {
        transform: translateX(12px);
    }

    .shop-stock-toggle__input:focus-visible + .shop-stock-toggle__track {
        outline: 2px solid #ef4056;
        outline-offset: 2px;
    }

    /* لیست‌ویو روی دسکتاپ هم مثل موبایل */
    .shop-plp-main[data-plp-view="list"] .products-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .shop-plp-main[data-plp-view="list"] .products-grid > a {
        border-bottom: 1px solid #f0f0f1;
    }

    .shop-plp-main[data-plp-view="list"] .products-grid > a .product-card {
        display: grid;
        grid-template-columns: 140px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 16px;
        align-items: start;
        padding: 16px 0;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
    }

    .shop-plp-main[data-plp-view="list"] .variant-image {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 140px;
        max-width: 140px;
    }

    .shop-plp-main[data-plp-view="list"] .product-name {
        grid-column: 2;
        grid-row: 1;
        min-height: auto;
        max-height: none;
        margin-bottom: 0;
        line-height: 1.6;
        display: block;
        overflow: visible;
        text-overflow: unset;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .shop-plp-main[data-plp-view="list"] .product-info {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
    }
}

.filter-title {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.filter-title__row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.filter-title__text {
    font-size: 12px;
    font-weight: 400;
    color: #101010;
    line-height: 1.6;
}

.filter-title__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    color: #101010;
    transition: transform .2s ease-in-out;
}

.filter-separator {
    height: 1px;
    width: 100%;
    margin: 1rem 0;
    background-color: #f1f2f3;
    border: none;
}

.modal.modal-bottom-sheet#filterModal .modal-dialog {
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 1055
}

.modal.modal-bottom-sheet#filterModal .modal-content {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column
}

.modal.modal-bottom-sheet#filterModal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.modal.modal-bottom-sheet#filterModal .modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    background: #fff;
    border-top: 1px solid #ececec;
    position: sticky;
    bottom: 0;
    z-index: 10
}

.modal.modal-bottom-sheet#brandModal .modal-dialog,
.modal.modal-bottom-sheet#priceModal .modal-dialog,
.modal.modal-bottom-sheet[id^="attrModal"] .modal-dialog {
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 1055
}

.modal.modal-bottom-sheet#brandModal .modal-content,
.modal.modal-bottom-sheet#priceModal .modal-content,
.modal.modal-bottom-sheet[id^="attrModal"] .modal-content {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column
}

.modal.modal-bottom-sheet#brandModal .modal-body,
.modal.modal-bottom-sheet#priceModal .modal-body,
.modal.modal-bottom-sheet[id^="attrModal"] .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0
}

.modal.modal-bottom-sheet#brandModal .modal-footer,
.modal.modal-bottom-sheet#priceModal .modal-footer,
.modal.modal-bottom-sheet[id^="attrModal"] .modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    background: #fff;
    border-top: 1px solid #ececec;
    position: sticky;
    bottom: 0;
    z-index: 10
}

.price-slider-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.price-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.price-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin: 0
}

.price-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden
}

.price-input {
    flex: 1;
    border: none;
    outline: 0;
    padding: 12px 16px 12px 80px;
    font-size: 1rem;
    color: #3f4064;
    font-weight: 600;
    direction: rtl;
    text-align: right;
    background: 0 0
}

.price-input::placeholder {
    color: #999
}

.price-input:focus {
    outline: 0;
    border-color: transparent
}

.price-currency {
    position: absolute;
    left: 16px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0
}

.collapse.show::-webkit-scrollbar {
    width: 6px
}

.collapse.show::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px
}

.collapse.show::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px
}

.collapse.show::-webkit-scrollbar-thumb:hover {
    background: #555
}

#sortModal .modal-body {
    flex: 1 1 auto;
    padding: .5rem 1rem;
}

#sortModal .list-group-item {
    padding: .4rem 0;
    border-bottom: 1px solid #ececec
}

#sortModal .list-group-item a {
    color: #3f4064;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8125rem;
    font-weight: 600;
    padding: .6rem 0;
    transition: .2s
}

.sort-check {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important
}

.shop-plp-pagination {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    direction: rtl;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem;
}

.shop-plp-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #101010;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    background: #fff;
    transition: color .15s ease;
}

.shop-plp-pagination__page:hover {
    color: #dc3545;
}

.shop-plp-pagination__page.is-active {
    border-color: #dc3545;
    color: #dc3545;
    cursor: default;
}

.shop-plp-pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 2.5rem;
    padding: 0 0.25rem;
    border: 0 solid;
    box-sizing: border-box;
    color: #6d6e71;
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: 0.08em;
    user-select: none;
}

@media (min-width: 992px) {
    .shop-plp-pagination {
        margin: 3rem 0;
    }
}

.modal-title {
    font-size: 1rem;
    font-weight: 500
}

/* هدر مدال مرتب‌سازی */
.modal.modal-bottom-sheet .modal-header:not(.shop-modal-header) {
    --rsbs-handle-bg: #00000024;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: calc(1rem + 12px) 1.25rem 1rem;
    border-bottom: none;
}

.modal.modal-bottom-sheet .modal-header:not(.shop-modal-header):before {
    content: "";
    width: 36px;
    height: 4px;
    top: calc(8px + env(safe-area-inset-top));
    background-color: #00000024;
    background-color: var(--rsbs-handle-bg, #00000024);
    border-radius: 2px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* هدر مدال‌های فیلتر/برند/قیمت/ویژگی */
.shop-modal-header {
    --shop-modal-header-fg: #53565a;
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.shop-modal-header:before {
    content: none !important;
    display: none !important;
}

.shop-modal-header__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-modal-header-fg);
    line-height: 1.6;
    text-align: center;
}

.shop-modal-header__close {
    position: absolute;
    inset-inline-start: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--shop-modal-header-fg);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.shop-modal-header__close-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.shop-modal-header__close-icon use {
    fill: currentColor;
}

#sort-modal-main-header {
    border-bottom: none;
}

#sort-modal-main-header .modal-title {
    width: 100%;
    text-align: center;
}

@media (min-width:992px) {
    html,
    body {
        overflow-x: clip;
    }

    main.shop,
    main.shop .shop-plp-row,
    main.shop .col-12 {
        overflow: visible;
    }

    .shop-plp-row {
        align-items: stretch;
    }

    .shop-desktop-sidebar-col {
        align-self: stretch;
        z-index: 2;
    }

    .shop-desktop-sidebar {
        position: sticky;
        top: var(--shop-desktop-sticky-top);
        max-height: calc(100vh - var(--shop-desktop-sticky-top) - 1.5rem);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .shop-desktop-sidebar__panel-body .shop-filter-list__items.is-scrollable {
        max-height: 320px;
    }
}

@media (max-width:991.98px) {

    html {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important
    }

    body {
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
        overflow-x: hidden !important;
        /* clip از ساخت کانتینر اسکرول جلوگیری می‌کند تا هدر و نوار فیلتر sticky بچسبند */
        overflow-x: clip !important
    }

    .container,
    main {
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
        /* clip از ساخت کانتینر اسکرول جلوگیری می‌کند تا sticky داخل main درست کار کند */
        overflow-x: clip
    }

    .products-grid {
        width: 100% !important
    }

    .modal.modal-bottom-sheet#filterModal .modal-body {
        overflow-y: auto !important;
    }

    #filter-main-list {
        overflow-y: visible;
        max-height: none
    }

    .breadcrumb-container {
        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: none;
        white-space: nowrap;
    }

    .breadcrumb-container::-webkit-scrollbar {
        display: none
    }
}

@media (max-width:768px) {
    .shop-filter-check {
        font-size: 12px;
    }

    .page-title,
    .price-input {
        font-size: .875rem
    }

    .price-slider-container {
        gap: 16px
    }

    .modal-dialog {
        margin: .5rem
    }

    .modal-content {
        border-radius: 12px
    }
}

@media (max-width:576px) {
    .price-slider-container {
        padding: 16px;
        border-radius: 12px
    }

    .price-input {
        font-size: .875rem;
        padding: 10px 14px 10px 70px
    }

    .price-input-label {
        font-size: 13px
    }

    .breadcrumb-container {
        margin-bottom: 0
    }

    .modal-dialog {
        margin: .25rem
    }

    .modal-body {
        padding: 1rem
    }
}

.subcategories-section {
    width: 100%;
    margin-bottom: 1rem;
}

.subcategories-tiles {
    width: 100%;
}

.subcategories-divider {
    height: 1px;
    width: 100%;
    background: #f1f2f3;
}

.subcategories-tiles-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.subcategories-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .5rem;
    width: 100%;
    margin: 1.5rem 0 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    list-style: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.subcategories-track::-webkit-scrollbar {
    display: none;
}

.subcategories-tile {
    flex: 0 0 73px;
    width: 73px;
    max-width: 73px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.subcategories-tile-img {
    box-sizing: border-box;
    width: 73px;
    height: 73px;
    max-width: 73px;
    padding: 4px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    background: #f5f5f7;
    display: block;
    overflow: clip;
}

.subcategories-tile-name {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 0;
    font-size: .75rem;
    font-weight: 400;
    line-height: 20px;
    color: #212529;
    text-align: center;
    word-break: break-word;
}

.subcategories-nav {
    position: absolute;
    top: calc(1.5rem + 80px);
    z-index: 2;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #ededed;
    border-radius: 50%;
    background: #fff;
    color: #101010;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.subcategories-nav i {
    font-size: 1.25rem;
    line-height: 1;
}

.subcategories-nav:disabled {
    display: none !important;
}

.subcategories-nav-prev {
    right: 0;
}

.subcategories-nav-next {
    left: 0;
}

@media (min-width: 992px) {
    .subcategories-section {
        margin-bottom: 1.5rem;
    }

    .subcategories-track {
        margin-top: 1.5rem;
    }

    .subcategories-tile {
        flex-basis: 160px;
        width: 160px;
        max-width: 160px;
        padding-bottom: 24px;
    }

    .subcategories-tile-img {
        width: 160px;
        height: 160px;
        max-width: 160px;
    }

    .subcategories-tile-name {
        font-size: .875rem;
        line-height: 20px;
    }

    .subcategories-nav {
        top: calc(1.5rem + 80px + 12px);
    }
}
