/* Product type listing — matches product detail / homepage palette */

.pt-page {
    --pt-bg: #f1f5f9;
    --pt-card: #ffffff;
    --pt-text: #0f172a;
    --pt-muted: #64748b;
    --pt-line: rgba(148, 163, 184, 0.35);
    --pt-blue: #3b82f6;
    --pt-indigo: #6366f1;
    --pt-purple: #8b5cf6;
    direction: rtl;
    text-align: right;
    font-family: iransans, yekan, Tahoma, sans-serif;
    color: var(--pt-text);
    padding: 12px 0 28px;
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 35% at 0% 20%, rgba(59, 130, 246, 0.06), transparent 50%),
        var(--pt-bg);
}

.pt-page a { text-decoration: none !important; }

.pt-page > .container,
.pt-wrap {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 576px) {
    .pt-page > .container,
    .pt-wrap { max-width: 540px; }
}
@media (min-width: 768px) {
    .pt-page > .container,
    .pt-wrap { max-width: 720px; }
}
@media (min-width: 992px) {
    .pt-page > .container,
    .pt-wrap { max-width: 960px; }
}
@media (min-width: 1200px) {
    .pt-page > .container,
    .pt-wrap { max-width: 1360px; }
}

/* Breadcrumb / count — compact modern header */
.pt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 14px;
    padding: 0 16px;
    min-height: 72px;
    height: 72px;
    box-sizing: border-box;
    border-radius: 16px;
    background: var(--pt-card);
    border: 1px solid var(--pt-line);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.pt-bc-main {
    min-width: 0;
    flex: 1 1 auto;
}

.pt-bc-title {
    margin: 0 0 2px;
    font-family: yekan, iransans;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pt-text);
}

.pt-bc-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--pt-muted);
    font-family: yekan, iransans;
}

.pt-bc-path a {
    color: #64748b !important;
    font-weight: 500;
}

.pt-bc-path a:hover {
    color: #4f46e5 !important;
}

.pt-bc-path .sep {
    color: #cbd5e1;
    margin: 0 2px;
}

.pt-bc-path .current {
    color: #94a3b8;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-count-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-family: iransans, BYekan;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Main panel + toolbar */
.pt-panel {
    background: var(--pt-card);
    border: 1px solid var(--pt-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 12px;
}

.pt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pt-line);
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, rgba(99, 102, 241, 0.07), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    direction: rtl;
}

@media screen and (min-width: 992px) {
    /* Keep header bars aligned across main + filters columns */
    .pt-breadcrumb,
    .pt-filters-title {
        height: 72px;
        min-height: 72px;
        max-height: 72px;
        padding: 0 16px;
        margin-bottom: 14px;
        box-sizing: border-box;
        border-radius: 16px;
        overflow: hidden;
    }

    .pt-toolbar {
        padding: 12px 16px;
        min-height: 64px;
    }

    .pt-sorts {
        flex: 1 1 auto;
        justify-content: center;
        max-width: 520px;
        margin: 0 auto;
    }
}

.pt-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13px;
    font-family: yekan, iransans;
    font-weight: 700;
}

.pt-toolbar-label i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #6366f1);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.28);
    font-size: 14px;
}

.pt-sorts {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    padding: 4px;
    border-radius: 12px;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.16);
}

.pt-sorts a,
.pt-page .simple_btn_1,
.pt-page .simple_btn_5 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 14px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-family: yekan, iransans !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #475569 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.pt-page .simple_btn_5,
.pt-sorts a.is-active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3) !important;
}

.pt-page .simple_btn_1:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #4f46e5 !important;
}

.pt-limits {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--pt-muted);
    font-size: 12px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--pt-line);
}

.pt-limits > span {
    margin-left: 4px;
    color: #64748b;
}

.pt-limits a,
.pt-page .page_limit_a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #64748b !important;
    font-family: iransans !important;
    transition: background .15s ease, color .15s ease;
}

.pt-limits a:hover,
.pt-page .page_limit_a:hover {
    background: #eef2ff;
    color: #4338ca !important;
}

.pt-page .page_limit_a[style*="black"],
.pt-limits a.is-active {
    background: #4338ca;
    color: #fff !important;
    font-weight: 700;
}

/* Product grid */
.pt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    direction: rtl;
}

.pt-card-wrap {
    position: relative;
    min-width: 0;
}

.pt-card-wrap .item {
    width: 100%;
    margin: 0;
}

.pt-card-wrap .mpc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    border: 1px solid var(--pt-line);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.pt-card-wrap .mpc-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.12);
}

.pt-card-wrap .compare-toggle-btn.compare-icon-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--pt-line);
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.pt-card-wrap .compare-toggle-btn.compare-icon-btn:hover,
.pt-card-wrap .compare-toggle-btn.compare-icon-btn.is-active {
    color: #6366f1;
    border-color: #a5b4fc;
    background: #eef2ff;
}

.pt-badge-special,
.pt-badge-service {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-family: yekan, iransans;
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
}

.pt-badge-special {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.pt-badge-service {
    top: 44px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Empty state */
.pt-empty {
    text-align: center;
    padding: 28px 18px;
    border-radius: 16px;
    background: var(--pt-card);
    border: 1px solid var(--pt-line);
    color: var(--pt-muted);
    line-height: 2;
}

.pt-empty a {
    color: #4f46e5 !important;
    font-weight: 700;
}

/* Pagination — modern numbered pager */
.pt-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 12px 14px;
    background: var(--pt-card);
    border: 1px solid var(--pt-line);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 12px;
    direction: rtl;
}

.pt-pager-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pt-pager-pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.14);
}

.pt-pager-btn,
.pt-pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-family: iransans, yekan;
    font-size: 13px;
    font-weight: 700;
    color: #475569 !important;
    background: #fff;
    border: 1px solid var(--pt-line);
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.pt-pager-btn:hover,
.pt-pager-num:hover {
    color: #4338ca !important;
    border-color: rgba(99, 102, 241, 0.35);
    background: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.pt-pager-num.is-active {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.32);
}

.pt-pager-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #f1f5f9;
}

.pt-pager-dots {
    min-width: 24px;
    text-align: center;
    color: #94a3b8;
    font-family: iransans;
    font-size: 14px;
    font-weight: 700;
}

.pt-pager-goto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--pt-line);
}

.pt-pager-goto-label {
    margin: 0 4px 0 0;
    font-family: yekan, iransans;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.pt-pager-goto-input {
    width: 64px;
    height: 34px;
    border: 1px solid var(--pt-line);
    border-radius: 9px;
    background: #fff;
    text-align: center;
    font-family: iransans;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
}

.pt-pager-goto-input::-webkit-outer-spin-button,
.pt-pager-goto-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pt-pager-goto-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.pt-pager-goto-btn {
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-family: yekan, iransans;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
    transition: filter .15s ease, box-shadow .15s ease;
}

.pt-pager-goto-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}

/* Filters sidebar */
.pt-filters {
    font-family: yekan, iransans;
    font-size: 13px;
}

.pt-filters-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 72px;
    height: 72px;
    padding: 0 16px;
    margin-bottom: 14px;
    box-sizing: border-box;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
        linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #1e1b4b 120%);
    color: #e2e8f0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
    font-weight: 700;
}

.pt-filters-title-text {
    min-width: 0;
}

.pt-filters-kicker {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 2px;
}

.pt-filters-title h1 {
    margin: 0;
    font-size: 15px;
    font-family: yekan, iransans;
    color: #fff;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-filters-close {
    display: none;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Desktop: hide mobile-only filter controls */
.pt-filter-fab,
.pt-filter-backdrop {
    display: none;
}

.pt-page .pt-filters .card {
    border: 1px solid var(--pt-line) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    background: #fff;
}

.pt-page .pt-filters .card-header {
    background: linear-gradient(180deg, #f8fafc, #fff) !important;
    border-bottom: 1px solid var(--pt-line) !important;
    padding: 12px 14px !important;
    cursor: pointer;
    color: #1e293b;
    font-weight: 700;
    font-family: yekan, iransans;
}

.pt-page .pt-filters .card-header i {
    color: #6366f1;
}

.pt-page .pt-filters .card-body {
    padding: 12px 8px !important;
    background: #fff;
}

.pt-page .pt-filters .card-body .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
}

.pt-page .pt-filters .card-body .col-lg-12 {
    padding: 0 !important;
}

/* Modern filter option row */
.pt-page .pt-filters .card-body .col-lg-12 > div {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 0 10px 6px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f8fafc;
    direction: rtl;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pt-page .pt-filters .card-body .col-lg-12 > div:hover {
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.2);
}

.pt-page .pt-filters .card-body .col-lg-12 > div:has(input[type="checkbox"]:checked) {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.06));
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.pt-page .pt-filters .card-body .col-lg-12 > div > span {
    float: none !important;
    margin: 0 !important;
}

.pt-page .pt-filters .card-body .col-lg-12 > div > span[style*="float: right"],
.pt-page .pt-filters .card-body .col-lg-12 > div > span:nth-of-type(1) {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    color: #1e293b;
    font-family: yekan, iransans;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.pt-page .pt-filters .card-body .col-lg-12 > div > span[style*="float: left"],
.pt-page .pt-filters .card-body .col-lg-12 > div > span:nth-of-type(2) {
    flex: 0 0 auto;
    color: #94a3b8;
    font-family: iransans2, iransans, sans-serif;
    font-size: 11px;
    direction: ltr;
}

/* Hide native checkbox — custom box on the following label */
.pt-page .pt-filters input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.pt-page .pt-filters input[type="checkbox"] + label {
    float: none !important;
    position: relative;
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 2px solid #cbd5e1;
    background: #fff !important;
    background-image: none !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .15s ease;
}

.pt-page .pt-filters input[type="checkbox"] + label:hover {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.pt-page .pt-filters input[type="checkbox"] + label::after {
    content: "";
    width: 6px;
    height: 10px;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0.4);
    opacity: 0;
    transition: opacity .15s ease, transform .18s ease;
}

.pt-page .pt-filters input[type="checkbox"]:checked + label {
    border-color: transparent !important;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%) !important;
    background-image: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%) !important;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
    transform: scale(1.04);
}

.pt-page .pt-filters input[type="checkbox"]:checked + label::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.pt-page .pt-filters input[type="checkbox"]:focus-visible + label {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

/* Price range filter */
.pt-price-filter .card-body {
    padding: 14px 12px !important;
}

.pt-price-slider-wrap {
    padding: 8px 14px 18px;
}

.pt-price-slider {
    width: 100%;
}

.pt-price-filter .noUi-target {
    background: #e2e8f0;
    border: none;
    box-shadow: none;
    height: 8px;
    border-radius: 999px;
}

.pt-price-filter .noUi-connect {
    background: linear-gradient(90deg, #3b82f6, #6366f1, #7c3aed);
}

.pt-price-filter .noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -7px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(145deg, #3b82f6, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    cursor: pointer;
}

.pt-price-filter .noUi-handle:before,
.pt-price-filter .noUi-handle:after {
    display: none;
}

.pt-price-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 4px 12px;
    direction: rtl;
}

.pt-price-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--pt-line);
}

.pt-price-value-label {
    font-family: yekan, iransans;
    font-size: 11px;
    color: #64748b;
}

.pt-price-value-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-family: iransans !important;
    font-size: 15px !important;
    font-weight: 700;
    color: #0f172a !important;
    padding: 2px 0 !important;
    box-shadow: none !important;
}

.pt-price-value-unit {
    font-family: yekan, iransans;
    font-size: 11px;
    color: #94a3b8;
}

.pt-price-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 8px);
    margin: 0 4px;
    min-height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: yekan, iransans;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
    transition: filter .15s ease, box-shadow .15s ease, transform .12s ease;
}

.pt-price-apply-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.38);
}

.pt-price-apply-btn:active {
    transform: scale(0.98);
}

/* Available-only filter — same card look as other filters */
.pt-available-filter.card {
    border: 1px solid var(--pt-line) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    background: #fff;
}

.pt-available-filter .card-body {
    padding: 12px 14px !important;
}

.pt-available-row {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.pt-available-text {
    flex: 1 1 auto;
    font-family: yekan, iransans;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.pt-available-filter:has(input[type="checkbox"]:checked) {
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), #fff);
}

/* Hide legacy image apply label if present elsewhere */
.pt-page .pt-filters input.change_price + label {
    display: none !important;
}

/* Special rails under listing */
.pt-page + .container .mpc-section,
.pt-specials .mpc-section {
    margin-top: 8px;
}

@media screen and (max-width: 1199px) {
    .pt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 991px) {
    .pt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .pt-breadcrumb {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 12px 14px;
        overflow: visible;
    }

    .pt-filters-title {
        height: auto;
        min-height: 58px;
        max-height: none;
        padding: 12px 14px;
        overflow: visible;
    }

    .pt-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px 8px;
        padding: 8px 10px;
        min-height: 0;
    }

    .pt-toolbar-label {
        gap: 6px;
        font-size: 11px;
        order: 1;
    }

    .pt-toolbar-label i {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 11px;
        box-shadow: 0 3px 8px rgba(99, 102, 241, 0.22);
    }

    .pt-toolbar-label-text {
        display: none;
    }

    .pt-sorts {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        justify-content: stretch;
        padding: 2px;
        border-radius: 10px;
        gap: 0;
    }

    .pt-sorts a,
    .pt-page .simple_btn_1,
    .pt-page .simple_btn_5 {
        flex: 1 1 0;
        min-width: 0;
        padding: 6px 4px !important;
        font-size: 10px !important;
        border-radius: 7px !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
    }

    .pt-page .simple_btn_5,
    .pt-sorts a.is-active {
        box-shadow: 0 3px 8px rgba(99, 102, 241, 0.25) !important;
    }

    .pt-limits {
        order: 2;
        width: auto;
        margin: 0;
        justify-content: flex-start;
        padding: 2px 4px 2px 6px;
        font-size: 11px;
        gap: 2px;
    }

    .pt-limits > span {
        display: none;
    }

    .pt-limits a,
    .pt-page .page_limit_a {
        padding: 4px 7px;
        font-size: 11px;
    }

    .pt-pager {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .pt-pager-nav {
        justify-content: center;
        width: 100%;
    }

    .pt-pager-pages {
        flex: 1 1 auto;
        justify-content: center;
    }

    .pt-pager-btn,
    .pt-pager-num {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        border-radius: 9px;
    }

    .pt-pager-goto {
        width: 100%;
        justify-content: center;
    }

    .pt-pager-goto-input {
        width: 56px;
        height: 32px;
    }

    .pt-pager-goto-btn {
        height: 32px;
        padding: 0 12px;
    }

    .pt-bc-title {
        font-size: 17px;
    }

    .pt-main {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Take filters out of page flow — open via sticky FAB */
    .pt-filters {
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(92vw, 360px);
        max-width: 360px;
        margin: 0 !important;
        padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px));
        z-index: 2200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #f1f5f9;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.28);
        transform: translateX(110%);
        transition: transform 0.28s ease;
        pointer-events: none;
    }

    .pt-filters.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .pt-filters-close {
        display: inline-flex;
    }

    .pt-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2190;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        backdrop-filter: blur(2px);
    }

    .pt-filter-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .pt-filter-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        left: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        z-index: 2100;
        min-height: 48px;
        padding: 0 16px 0 14px;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        color: #fff;
        font-family: yekan, iransans;
        font-size: 14px;
        font-weight: 700;
        background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%);
        box-shadow: 0 12px 28px rgba(79, 70, 229, 0.4);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .pt-filter-fab > span,
    .pt-filter-fab > i {
        position: relative;
        z-index: 1;
    }

    .pt-filter-fab i {
        font-size: 15px;
    }

    .pt-filter-fab:active {
        transform: scale(0.97);
    }

    .pt-filter-fab.is-open {
        background: linear-gradient(135deg, #1e293b, #334155);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
    }

    .pt-filter-fab-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-style: normal;
        font-size: 11px;
        font-family: iransans;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    }

    body.pt-filters-open {
        overflow: hidden !important;
    }

    /* Keep FAB clear of compare bar if present */
    body.has-compare-bar .pt-filter-fab {
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}

@media screen and (max-width: 575px) {
    .pt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .pt-breadcrumb {
        padding: 12px;
    }

    .pt-bc-title {
        font-size: 16px;
    }

    .pt-bc-path .current {
        max-width: 140px;
    }

    .pt-filter-fab {
        left: 12px;
        padding: 0 14px 0 12px;
        min-height: 46px;
        font-size: 13px;
    }
}
