﻿.FilterBody .check-moding {
	max-height: 30rem;
	overflow-y: auto;
}

.ShopFilter {
	background-color: var(--CustomColor3);
	margin-bottom: 0.5rem;
	padding: 10px;
	border-radius: 5px;
	overflow: hidden;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
}

.ShopFilter .FilteredTitle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: bold;
	font-size: 1rem;
	color: #000;
	margin-bottom: 1rem;

	#clearfilters {
		color: var(--accent-color);
	}
}

.fancytree-icon {
	display: none !important;
}

.ShopFilter .FilterBody {
	max-height: 30vh;

	label,
	.title {
		color: var(--button-hover-color);
	}
}

/**********************OnlyActiveAndDiscounted************************/
.only-active-check-label::after,
.only-dis-check-label::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	transition: all .2s;
	border-radius: 50%;
	background: var(--White);
	top: calc(50% - 6px);
	left: -1px;
}

.only-active-check-label::before,
.only-dis-check-label::before {
	content: '';
	position: absolute;
	left: -0.3rem;
	top: calc(50% - 8px);
	border-radius: calc(var(--b-radius) * 4);
	transition: background-color .2s;
	width: 31px;
	height: 16px;
	background: #d1d1d6;
	display: inline-block;
	transition: all 0.4s;
	-webkit-border-radius: calc(var(--b-radius) * 4);
	-moz-border-radius: calc(var(--b-radius) * 4);
	-ms-border-radius: calc(var(--b-radius) * 4);
	-o-border-radius: calc(var(--b-radius) * 4);
}

.only-active-check:checked+label::after,
.only-dis-check:checked+label::after {
	left: 13px;
	background: #fff;
}

.only-active-check:checked+label::before,
.only-dis-check:checked+label::before {
	background-color: var(--button-color);
}



.productstabinfo .SideBar.active {
	right: 0
}

.productstabinfo :where(select, input) {
	border-color: transparent;
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
}

.pagination .page-item {
	margin: 0px 2px;
}

.pagination .page-item .page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background-color: #fff;
	border: solid 1px #EBEBEB;
	border-radius: 5px;
	font-size: 13px;
	color: #484848;
	font-family: 'Arial';
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;

	span {
		display: block;
		line-height: 0;
	}
}

.pagination .page-item.active .page-link,
.pagination .page-item:hover .page-link {
	background-color: var(--button-color);
	border: solid 1px var(--button-color);
	color: #fff;
}


.check-moding select {
	width: 100%;
}

@media(min-width:768px) {
	.p-lg-relative {
		position: relative;
	}
}

@media screen and (min-width:960px) {
	.col-lg-25 {
		flex: 0 0 auto;
		width: 20%;
	}
}

.ShopFilter ul.fancytree-container {
	background: unset;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.accordion-panel {
	.acc-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0;
		cursor: pointer;

		.icon {
			position: relative;
			width: 10px;
			height: 10px;
			transition: all 0.3s ease;
			-webkit-transition: all 0.3s ease;
			-moz-transition: all 0.3s ease;
			-ms-transition: all 0.3s ease;
			-o-transition: all 0.3s ease;
		}

		.title {
			font-size: 1rem;
		}
	}

	.acc-body {
		padding-top: 16px;
		display: none;

		.desc {
			font-size: 1rem;
		}

		&.open {
			display: block;
		}
	}

	&.open {
		.acc-head {
			.icon {
				transform: rotate(180deg);
				-webkit-transform: rotate(180deg);
				-moz-transform: rotate(180deg);
				-ms-transform: rotate(180deg);
				-o-transform: rotate(180deg);
			}
		}
	}
}

.ShopFilter .FilterHead strong {
	font-size: 14px;
	color: #000;
}


.b-shaddow-1 {
	box-shadow: 0px 0px 5px -3px #000;
}

.toggle-filter {
	background: var(--accent-color);
	padding: 0.4rem;
	border-radius: 0.4rem;
	margin-left: 1rem;

	span {
		color: var(--White);
	}

	svg {
		display: block;
		stroke: var(--White);
		width: 1.8rem;
		height: 1.8rem;
	}
}

.sort-row {
	.label {
		font-size: 1rem;
	}
}

.sort-list {
	.sort-item {
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		font-size: 1rem;

		&:disabled {
			color: black !important;
			font-weight: bold;
		}
	}
}

.checkbox {
	label {
		display: flex;
	}
}

.product-list-page {

	.product-list {
		min-height: 60vh;
		border-radius: 10px;

		.item-grid {
			width: calc((100% / 5) - 8px);
			margin: 4px;
			padding: 5px 5px 12px;
			border-radius: 4px;

			&:hover {
				box-shadow: 0px 0px 4px -3px #000;
			}

			.cat-logo {
				display: flex;
				align-items: center;
				justify-content: center;
				position: absolute;
				top: 10px;
				left: 10px;
				width: 30px;
				height: 30px;
				border: solid 1px #F5F5F5;
				padding: 2px;
				background: #fff;
				border-radius: 5px;
				-webkit-border-radius: 5px;
				-moz-border-radius: 5px;
				-ms-border-radius: 5px;
				-o-border-radius: 5px;
				overflow: hidden;
			}

			.price-box {
				min-height: 43px;

				strike {
					font-size: 11px;
				}

				svg {
					width: 15px;
					height: 15px;
					vertical-align: middle;
					fill: current;
				}
			}

			.rate-and-discount {
				min-height: 30px;
			}

			.discount {
				width: 30px;
				height: 30px;
				background-color: var(--accent-color2);
				border-radius: 50%;
				font-size: 11px;
				color: #fff;
				font-family: 'Arial';
			}
		}

		@media(max-width:1320px) {
			.item-grid {
				width: calc((100% /3) - 8px);
			}
		}

		@media(max-width:570px) {
			.item-grid {
				width: calc((100% /2) - 8px);
			}
		}

		@media(max-width:480px) {
			.item-grid {
				width: calc(100% - 8px);
			}
		}
	}
}

.SideBar {
	position: -webkit-sticky;
	position: sticky;
	top: 100px;
	height: fit-content;
}

#productlistsortingmenu {
	white-space: nowrap;

	.sort-list {
		overflow-x: auto;
		padding: 5px 0 8px;
	}

	svg {
		min-width: 16px;
	}
}

@media(max-width:960px) {
	.SideBar {
		height: auto;
	}

	#listfilters {
		display: none;
		height: auto;
		margin-bottom: 1rem;
	}
}