.filter-main {
	max-width: 330px;
	min-width: 330px;
	background: #ffffff;
	border-radius: 5px;
	padding: 24px 24px 32px;
	height: fit-content;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
	display: flex;
	flex-direction: column;
}
.se-inner-filter ul.products.columns-3{
	width:100%;
}
 .products-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255,255,255,0.7);
	z-index: 99;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
	font-weight: bold;
	color: #333;
}
.filter-main h3 {
	margin: 0 0 30px 0;
	color: #160E4B;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.3px;
	position: relative;
}
.se-inner-filter {
    display: flex;
    width: 100%;
    gap: 30px;
	position: relative;
}
.filter-main h3::after {
	content: '';
	position: absolute;
	bottom: -14px;
	left: 0;
	width: 40px;
	height: 3px;
	background: linear-gradient(90deg, #F82BA9, #160E4B);
	border-radius: 2px;
}

.filter-category-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.filter-category-item {
	position: relative;
}

.filter-category-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.filter-category-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: #ffffff;
	border: 2px solid #f5f5f5;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: #333333;
	font-size: 15px;
	font-weight: 500;
	position: relative;
	overflow: hidden;
}

@media (min-width:768px){
	.filter-category-label:hover {
	    border-color: #F82BA9;
	    background: #fafafa;
	    transform: translateY(-1px);
	}
}
.filter-category-label:focus {
    border-color: #F82BA9;
    background: #fafafa;
    transform: translate(-1px);
}

.filter-category-checkbox:checked + .filter-category-label {
	background: linear-gradient(135deg, rgba(248, 43, 169, 0.05), rgba(22, 14, 75, 0.05));
	border-color: #F82BA9;
	color: #160E4B;
}

.filter-category-name {
	display: flex;
	align-items: center;
	gap: 12px;
}

.filter-category-icon {
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-radius: 6px;
	position: relative;
	flex-shrink: 0;
	transition: all 0.3s ease;
	background: #ffffff;
}

.filter-category-label:hover .filter-category-icon {
	border-color: #F82BA9;
}

.filter-category-checkbox:checked + .filter-category-label .filter-category-icon {
	background: linear-gradient(135deg, #F82BA9, #160E4B);
	border-color: #F82BA9;
}

.filter-category-checkbox:checked + .filter-category-label .filter-category-icon::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.filter-category-text {
	font-weight: 500;
	letter-spacing: 0.2px;
}

.filter-category-count {
	background: #f5f5f5;
	color: #666;
	padding: 6px 10px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	min-width: 24px;
	text-align: center;
	transition: all 0.3s ease;
}

.filter-category-checkbox:checked + .filter-category-label .filter-category-count {
	background: linear-gradient(135deg, #F82BA9, #160E4B);
	color: #ffffff;
}

.filter-reset-btn {
	margin-top: 20px;
	width: 100%;
	padding: 14px;
	background: #ffffff;
	border: 2px solid #F82BA9;
	border-radius: 12px;
	color: #F82BA9;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filter-reset-btn:hover {
	background: #F82BA9;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 8px 25px rgba(248, 43, 169, 0.25);
}
label.filter-category-label {
    box-shadow: none !important;
}

.filter-reset-btn:active {
	transform: scale(0.98);
}
.filter-reset-btn:focus {
	background: #F82BA9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.filter-main {
		margin: 0 auto;
		padding: 22px 15px 22px 15px !important;
		width: 90vw !important;
	}
	#primary form.woocommerce-ordering {
		margin-bottom: 20px !important;
		width: 50%;
		margin-top: -6px !important;
	}
	.post-type-archive p.woocommerce-result-count {
		width: 100% !important;
		margin-top: 0px !important;
		margin-bottom: 10px;
	}
}
.filter-toggle-btn {
	width: 120px;
}
@media (min-width: 1024px) {
	.filter-main {
		animation: filterSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	}
}

@keyframes filterSlideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Subtle glow animation for active filters */
.filter-category-checkbox:checked + .filter-category-label {
	animation: subtleGlow 3s infinite;
}

@keyframes subtleGlow {
	0%, 100% { 
		box-shadow: 0 8px 25px rgba(248, 43, 169, 0.15);
	}
	50% { 
		box-shadow: 0 8px 25px rgba(248, 43, 169, 0.25);
	}
}

/* Match your site's styling more closely */
.filter-category-label {
	font-family: inherit;
}

.filter-main h3 {
	font-family: inherit;
}
.filter-toggle-btn {
    display: none;
}
.filter-top{
	display: flex;
    justify-content: space-between;
}
button.filter-close-btn {
    border: none;
    font-size: 34px !important;
    padding: 0;
    line-height: 0;
    height: 5px;
    display: none;
	color: #F82BA9 !important;
}
button.filter-close-btn:hover {
    background: white !important;
    color: #F82BA9 !important;
}
/* Mobile styles */
@media (max-width: 1023px) {
	button.filter-close-btn {
		display: block !important;
	}
    .filter-main {
        position: fixed;
        top: 0;
        left: -100%;
		z-index: 99999;
        height: 100vh;
        width: 77vw;
        min-width: 75vw;
        max-width: 320px;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
        transition: left 0.3s;
    }
    .filter-main.filter-open {
        left: 0;
    }
    .filter-toggle-btn {
        display: block;
        left: 15px;
        z-index: 1100;
        background: #f82ba9;
        color: #fff;
        border: none;
        padding: 5px 18px;
        border-radius: 4px;
        font-size: 18px;
        cursor: pointer;
		margin-bottom: 20px;
    }
    /* Optional: overlay */
    .filter-overlay {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: 1000;
    }
    .filter-overlay.active { display: block; }
}
/* new css */
.children-toggle-wrapper {
    display: flex;
    flex-direction: row;
    gap: 9px;
    justify-content: center;
    align-items: center;
}
span.children-toggle {
	z-index: 99999;
	position: relative;
	margin-left:3px;
}
.parent-category.has-children.open > .child-list {
    display: flex;
}
.parent-category.has-children > .child-list {
    display: none;
}
li.has-children .toggle-icon {
    transition: transform 0.25s ease;
}
li.has-children .toggle-icon.rt-true {
    transform: rotate(180deg);
}
ul.filter-category-list.child-list {
    width: 90%;
    margin: 8px 5px -5px auto;
    gap: 5px;
}
ul.filter-category-list.child-list .filter-category-label{
	padding: 12px !important;
}





@media (max-width:768px){

.filter-btn-main{
    display:none !important;
}

select.orderby{
    display:none !important;
}

}





@media (max-width: 1023px) {

    /* Filter box - static, no drawer */
    .filter-main {
        position: static !important;
        left: auto !important;
        top: auto !important;
        height: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        transition: none !important;
        border-radius: 10px !important;
        padding: 10px !important;
        margin-bottom: 15px !important;
        z-index: auto !important;
        background: #fff !important;
    }

    /* Hide drawer elements */
    button.filter-close-btn,
    .filter-overlay,
    .filter-toggle-btn,
    .filter-btn-main {
        display: none !important;
    }

    /* Hide Categories heading */
    .filter-main h3,
    .filter-top {
        display: none !important;
    }


 .filter-reset-btn {
        display: inline-block !important;
        width: auto !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        color: #F82BA9 !important;
        font-size: 10px !important;
        padding: 1px 0 !important;
        margin-top: 6px !important;
        text-decoration: underline !important;
        transform: none !important;
    }
    .filter-reset-btn:hover {
        background: none !important;
        color: #160E4B !important;
        transform: none !important;
        box-shadow: none !important;
    }
    /* 3 chips per row grid */
    .filter-category-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        flex-direction: unset !important;
    }

    .filter-category-item {
        width: 100% !important;
        flex-shrink: unset !important;
    }

    .filter-category-label {
        padding: 7px 6px !important;
        border-radius: 20px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        justify-content: center !important;
        gap: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .filter-category-icon {
        display: none !important;
    }

    .filter-category-count {
        padding: 1px 5px !important;
        font-size: 10px !important;
        min-width: auto !important;
    }

    /* .filter-category-text { */
        /* overflow: hidden !important; */
        /* text-overflow: ellipsis !important; */
        /* max-width: 70px !important; */
    /* } */

    .children-toggle,
    .child-list {
        display: none !important;
    }

    .children-toggle-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .se-inner-filter {
        flex-direction: column !important;
        gap: 5px !important;
    }
}

@media (max-width: 540px){
	.filter-category-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
	.filter-category-label {
        font-size: 10px !important;
        gap: 2px !important;
		padding: 7px 2px !important;
    }
	.filter-category-text{
		letter-spacing: normal;
	}
	
}



/* Mobile Category Toggle */
@media (max-width: 1023px) {
    .filter-reset-btn {
        display: none !important;
    }

    .filter-category-item.cat-hidden {
        display: none !important;
    }

.filter-cat-toggle-btn {
    display: block;
    background: none;
    border: 1.5px solid #F82BA9;
    color: #F82BA9;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 500;
    padding: 2px 10px;
    margin: 6px auto 0 auto;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    width: fit-content;
}

    .filter-cat-toggle-btn:hover {
        background: #F82BA9;
        color: #fff;
    }
}

@media (min-width: 1024px) {
    .filter-cat-toggle-btn {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .filter-category-label:hover,
    .filter-category-label:focus {
        border-color: #f5f5f5 !important;
        background: #ffffff !important;
        transform: none !important;
    }

    .filter-category-checkbox:checked + .filter-category-label:hover,
    .filter-category-checkbox:checked + .filter-category-label:focus {
        border-color: #F82BA9 !important;
        background: linear-gradient(135deg, rgba(248, 43, 169, 0.05), rgba(22, 14, 75, 0.05)) !important;
    }
}
