.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;
        margin-bottom: 15px;
        flex-direction: row; }
	
    .mobile-btn { color: #0f172a;
        border: none;
        border-radius: 8px;
        cursor: pointer;
	font-weight:bold;
	background:none}
	
    .mobile-btn:hover {
        border-color: #ef4056;
        color: #ef4056;
    }
    .mobile-filter-overlay, .mobile-sort-overlay {
        display: none;
        position: fixed;
        top:0; left:0; right:0; bottom:0;
        z-index: 9999;
        overflow-y: auto;
		margin:10px
    }
    .mobile-filter-content, .mobile-sort-content {
        background: #fff;
        width: 90%;
        max-width: 400px;
        margin: 50px auto;
        border-radius: 12px;
        padding: 20px;
    }
    .mobile-filter-close { float: right;  cursor: pointer; margin:0px 5px}
.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;
}
	.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; }
}