.panda-filter-box {
    width: 280px;
    background: #fff;
    border-radius: 16px;
    padding: 0;
    border: 1px solid #e0e0e2;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
    position: sticky;
    top: 20px;
    padding: 10px;

}

.panda-filter-header {
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
}

.panda-filter-clear {
    color: #e6123d;
    font-size: 13px;
}

.panda-filter-group {
    border-bottom: 1px solid #f0f0f1;
}

.panda-filter-title {
    padding: 20px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    line-height: 1;
}

.panda-filter-title i {
    transition: .2s;
}

.panda-filter-content {
    padding: 10px 18px 18px;
    display: none;
}

.panda-open .panda-filter-content {
    display: block;
}

.panda-open .panda-filter-title i {
    transform: rotate(180deg);
	display:flex
}

.panda-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d5d5d6;
    border-radius: 10px;
    margin-top: 10px;
}
.price-inputs input {
    width: 80%;
    padding: 8px;
    border: 1px solid #d5d5d6;
    border-radius: 10px;
	margin:5px
}

.panda-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.panda-switch input {
    display: none;
}

.panda-switch .slider {
    width: 44px;
    height: 22px;
    border-radius: 30px;
    background: #b8bbc2;
    position: relative;
    cursor: pointer;
    transition: .2s;
}

.panda-switch .slider::before {
    content: "";
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    right: 3px;
    top: 2px;
    transition: .2s;
}

.panda-switch input:checked + .slider {
    background: #ef4056;
}

.panda-switch input:checked + .slider:before {
    right: 22px;
}

.apply-filter-btn {
    width: 100%;
    background: #ef4056;
	border: #ef4056;
    color: #fff;
    padding: 12px;
    text-align: center;
    margin: 30px 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* باکس سرچ کوچک */
.filter-search-box {
    position: relative;
    margin-bottom: 8px;
	width:80%
}

/* input کوچک‌تر و جمع‌وجور */
.filter-search-input {
    width: 100%;
    padding: 6px 28px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f7f7f7;
    outline: none;
    height: 32px; /* کوچک‌تر */
    transition: 0.2s;
}

.filter-search-input:focus {
    border-color: #de1e2c;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(222,30,44,0.07);
}

/* دکمه ضربدر جمع‌وجور */
.filter-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
    display: none;
    transition: 0.2s;
}

.filter-search-clear:hover {
    color: #de1e2c;
}
.filter-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d00;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-left: 5px;
}

/* وقتی تیک زده شد */
.filter-item input[type="checkbox"]:checked {
    background-color: #d00; /* پس‌زمینه قرمز */
    border-color: #d00;
}

/* علامت تیک سفید */
.filter-item input[type="checkbox"]:checked::after {
    content: "✔";
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: -2px;
    left: 2px;
}
/* ================== استایل صفحه محصولات ================== */
.archive-wrapper {
    display: flex;
    gap: 25px;
	margin:30px 0px;
}

.product-list {
    width: 100%;
}

.sort-bar {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-items a {
    margin-left: 15px;
    color: #555;
}

.pagination {
    margin: 30px 0;
}

.category-description-box {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.panda-filter-content label {
    position: relative;
	
}

.panda-filter-content label .selected-dot {
    width: 8px;
    height: 8px;
    background: #ef4056;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 6px;
}
/* صفحه‌بندی فروشگاه */
.shop-pagination {
    text-align: center;
    margin-top: 40px;
}

.shop-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 6px;
}



.shop-pagination a,
.shop-pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.shop-pagination .current {
    border-color: #de1e2c;
    background: #de1e2c;
    color: #fff;
}

/* هاور */
.shop-pagination a:hover {
    background: #f0f0f0;
}
	/*اکتیو لینک مرتب سازی*/
.sort-items a.active-sort {
    color: #ef4056 !important;
    font-weight: bold;
}
.panda-filter-content .filter-item {
    margin-bottom: 5px;
    font-size: 13px;
}

	/* موبایل فقط */
@media (max-width: 992px) {
    .panda-filter-box,
    .sort-bar {
        display: none; /* دسکتاپ مخفی شود */
    }
 .mobile-filter-sort {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 15px;
        flex-direction: row;
    }
	
    .mobile-btn {
        min-width: 112px;
        min-height: 44px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #0f172a;
        border: 1px solid #dbe2ea;
        border-radius: 10px;
        cursor: pointer;
	    font-weight: 700;
	    font-size: 14px;
	    background: #fff;
        box-shadow: none;
	    transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
    }

    .mobile-btn i {
        font-size: 18px;
        line-height: 1;
    }
	
    .mobile-btn:hover {
        border-color: #ef4056;
        color: #ef4056;
        background: #fff7f8;
        box-shadow: none;
    }
    .mobile-filter-overlay, .mobile-sort-overlay {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        position: fixed;
        top:0; left:0; right:0; bottom:0;
        z-index: 9999;
        overflow: hidden;
		margin: 0;
        padding: 0;
        background: rgba(15, 23, 42, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .mobile-filter-overlay.is-open, .mobile-sort-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .mobile-filter-content, .mobile-sort-content {
        background: #fff;
        width: min(100%, 560px);
        max-width: 560px;
        max-height: min(82vh, 720px);
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 0 18px max(120px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.22, 1, .36, 1);
        box-shadow: 0 -12px 35px rgba(15, 23, 42, .18);
    }

    .mobile-filter-content::before, .mobile-sort-content::before {
        content: '';
        display: block;
        width: 42px;
        height: 4px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .mobile-filter-content form {
        padding-bottom: 4px;
    }

    .mobile-filter-content .mobile-filter-header,
    .mobile-sort-content .mobile-filter-header {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: 0 -18px 8px;
        padding: 14px 18px;
        background: rgba(255, 255, 255, .96);
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-sort-content .sort-items {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px;
        padding: 10px 0 18px !important;
    }

    .mobile-sort-content .sort-items a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        color: #334155;
        background: #fff;
    }

    .mobile-sort-content .sort-items a.active-sort {
        border-color: #ef4056;
        background: #fff1f2;
        color: #be123c !important;
    }

    .mobile-filter-content .apply-filter-btn {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 18px 0 0;
        box-shadow: 0 -8px 14px rgba(255, 255, 255, .9);
    }

    .mobile-filter-overlay.is-open .mobile-filter-content,
    .mobile-sort-overlay.is-open .mobile-sort-content {
        transform: translateY(0);
    }
    .mobile-filter-close {
        float: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin: 0 0 0 8px;
        border-radius: 50%;
        background: #f1f5f9;
        color: #334155;
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }
.mobile-sort-content a.active-sort,
.sort-items a.active-sort {
    color: #ef4056 !important;
    font-weight: bold;
}

.price-inputs input {
    margin: 3px;
}
.mobile-result-count {
	 display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;
        padding: 10px 10px;
        font-size: 14px;
        color: #333;
        text-align: right;
        margin-top: 10px;
}

    /* برند و رنگ زیر هم */
    .mobile-filter-content .filter-item { align-items: center; margin-bottom: 10px; width: 100%; }
	
.sort-items {
    display: flex !important;
    align-items: right;
    gap: 5px;
}
	.sort-items  i {
    line-height: 10px !important;
}
	.sort-items a {
    padding: 10px 0px;
}
	.mobile-filter-header {
    display: flex;
    flex-direction: row;
    align-items: center;
	 justify-content: space-between;
		        font-weight: bold;
}

    body.mobile-sheet-open {
        overflow: hidden;
    }
	.mobile-filter-header div{
		        font-weight: bold;
}
	.custom-products-wrapper
 {           padding: 0px 10px;
}

.mobile-filter-content .panda-filter-group .panda-filter-content {
    display: none;
}
.mobile-filter-content .panda-filter-group.panda-open .panda-filter-content {
    display: block;
}

.mobile-filter-content .panda-filter-title i {
    transition: .2s;
}
	
  .filter-content {
    display: none;
  }
  .filter-title.active + .filter-content {
    display: block;
  }
  .filter-title {
    cursor: pointer;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 5px;
  }

}

/* دسکتاپ موبایل مخفی */
@media (min-width: 992px) {
    .mobile-filter-sort,
    .mobile-filter-overlay,
    .mobile-sort-overlay ,
	.mobile-result-count{ display: none !important; }
}













/* استایل اسکرول برای فیلترها */
.filter-items-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
}

/* اسکرول بار سفارشی */
.filter-items-scroll::-webkit-scrollbar {
    width: 6px;
}

.filter-items-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-items-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.filter-items-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* استایل آیتم‌های فیلتر */
.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 5px !important;
    margin: 2px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.filter-item:hover {
    background: #f8f9fa;
}

/* آیتم‌های انتخاب شده */
.filter-item:has(input[type="checkbox"]:checked) {
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    font-weight: 600;
}

.filter-item:has(input[type="checkbox"]:checked) .item-text {
    color: #df212e;
}

.filter-item input[type="checkbox"] {
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-item .item-text {
    flex: 1;
    font-size: 13px;
    color: #333;
    word-break: break-word;
    line-height: 1.4;
}

/* زیردسته‌ها */
.filter-item.subcategory {
    padding-right: 25px !important;
    font-size: 13px;
}

.filter-item.subcategory .item-text {
    color: #666;
}

.filter-item.subcategory.level-2 {
    padding-right: 40px !important;
}

.filter-item.parent-category {
    font-weight: 600;
}

/* نقطه انتخاب شده */
.selected-dot {
    width: 8px;
    height: 8px;
    background: #df212e;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}