/* ==========================================================
   نوار فیلتر محصولات — RTL
   ========================================================== */
.pf-bar {
    --pf-brand:        #c62828;
    --pf-brand-dark:   #8e1b1b;
    --pf-bg:           #ffffff;
    --pf-chip-bg:      #f4f5f7;
    --pf-chip-border:  #e3e6ea;
    --pf-text:         #3c4450;
    --pf-muted:        #8a94a3;
    --pf-radius:       14px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;

    background: var(--pf-bg);
    border: 1px solid var(--pf-chip-border);
    border-radius: var(--pf-radius);
    padding: 12px 16px;
    margin-bottom: 22px;

    box-shadow: 0 2px 10px rgba(22, 30, 46, .05);
    font-family: inherit;
}

/* ---------- گروه‌ها ---------- */
.pf-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;            /* ← کلید اسکرول‌پذیری در Flexbox */
}

.pf-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--pf-muted);
    white-space: nowrap;
}

.pf-label--sm { font-size: 12.5px; }

.pf-icon {
    width: 17px;
    height: 17px;
    color: var(--pf-muted);
}

.pf-divider {
    width: 1px;
    height: 26px;
    background: var(--pf-chip-border);
    flex-shrink: 0;
}

/* ---------- ردیف چیپ‌ها ---------- */
.pf-scroller {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pf-scroller::-webkit-scrollbar { display: none; }

.pf-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;   /* ← حذف بولت */
    margin: 0;
    padding: 0;
}

.pf-chips__item {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;     /* ← جلوگیری از له‌شدن چیپ‌ها */
}

/* ---------- چیپ ---------- */
.pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--pf-chip-border);
    background: var(--pf-chip-bg);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
    color: var(--pf-text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition: background .18s ease, color .18s ease,
    border-color .18s ease, transform .12s ease,
    box-shadow .18s ease;
}

.pf-chip:hover,
.pf-chip:focus-visible {
    background: #fff;
    color: var(--pf-brand);
    border-color: var(--pf-brand);
    text-decoration: none;
    transform: translateY(-1px);
}

.pf-chip:focus-visible {
    outline: 2px solid rgba(198, 40, 40, .35);
    outline-offset: 2px;
}

.pf-chip.is-active {
    background: linear-gradient(135deg, var(--pf-brand), var(--pf-brand-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(198, 40, 40, .28);
}

.pf-chip.is-active:hover { color: #fff; }

/* نقطه رنگی وضعیت موجودی */
.pf-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
}
.pf-chip--available   .pf-dot { background: #2e9e5b; opacity: 1; }
.pf-chip--unavailable .pf-dot { background: #d14343; opacity: 1; }
.pf-chip.is-active    .pf-dot { background: #fff;    opacity: 1; }

/* ---------- سمت چپ نوار ---------- */
.pf-tail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;   /* ← چسبیدن به لبه چپ در RTL */
    flex-shrink: 0;
}

/* ---------- تعداد در صفحه ---------- */
.pf-perpage {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pf-select-wrap { position: relative; }

.pf-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 7px 14px 7px 32px;
    border: 1px solid var(--pf-chip-border);
    border-radius: 10px;
    background: var(--pf-chip-bg);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--pf-text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.pf-select:hover,
.pf-select:focus {
    background: #fff;
    border-color: var(--pf-brand);
    outline: none;
}

.pf-select-wrap::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-right: 2px solid var(--pf-muted);
    border-bottom: 2px solid var(--pf-muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.pf-apply {
    padding: 7px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--pf-brand);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- حذف فیلترها ---------- */
.pf-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px dashed #e0a3a3;
    background: #fff5f5;
    font-size: 12.5px;
    font-weight: 600;
    color: #c0392b;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.pf-reset:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    text-decoration: none;
}

.pf-reset__x { font-size: 16px; line-height: 1; }
.pf-bar ul, .pf-bar li { list-style: none !important; padding-right: 0 !important; }
/* ==========================================================
   ریسپانسیو
   ========================================================== */
@media (max-width: 991px) {
    .pf-divider { display: none; }
    .pf-group   { width: 100%; }
    .pf-tail    { width: 100%; margin-inline-start: 0; justify-content: space-between; }
}

@media (max-width: 575px) {
    .pf-bar {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 12px;
    }

    /* برچسب بالا، چیپ‌ها در ردیف اسکرول‌شونده پایین */
    .pf-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .pf-scroller {
        width: 100%;
        padding-bottom: 2px;
        /* محو شدن لبه چپ = سرنخ بصری برای ادامه داشتن لیست */
        -webkit-mask-image: linear-gradient(to left, #000 88%, transparent 100%);
        mask-image: linear-gradient(to left, #000 88%, transparent 100%);
    }

    .pf-chip { padding: 6px 13px; font-size: 12.5px; }
}

/* دسترسی‌پذیری */
@media (prefers-reduced-motion: reduce) {
    .pf-chip, .pf-reset, .pf-select { transition: none; }
    .pf-chip:hover { transform: none; }
}
/* ========== حالت خالی ========== */
.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px 56px;
    margin: 18px 0;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
}

.no-data__icon {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
}
.no-data__icon svg { width: 100%; height: 100%; }

.no-data__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #2c3340;
    line-height: 1.9;
}

.no-data__text {
    margin: 0 0 18px;
    max-width: 460px;
    font-size: 14px;
    color: #7b8493;
    line-height: 2.1;
}

.no-data__hints {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
}

.no-data__hints li {
    padding: 5px 13px;
    border-radius: 999px;
    background: #f4f5f7;
    font-size: 12.5px;
    color: #6b7482;
}

.no-data__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.no-data__btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s ease;
}

.no-data__btn--primary {
    background: linear-gradient(135deg, #c62828, #8e1b1b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(198, 40, 40, .25);
}
.no-data__btn--primary:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.no-data__btn--ghost {
    background: #fff;
    border: 1px dashed #e0a3a3;
    color: #c0392b;
}
.no-data__btn--ghost:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 575px) {
    .no-data { padding: 36px 16px 42px; }
    .no-data__icon { width: 88px; height: 88px; }
    .no-data__title { font-size: 16px; }
}
