@import "variables";
.b-productFilter {
	margin-bottom: 24px;
	@media(min-width: 768px){}
	@media(max-width: 767px){}
	.b-productFilter-control {
		@media(min-width: 768px){
			display: none;
		}
		@media(max-width: 767px){
			/*position: fixed; top: 0; right: 0; left: 0;
			z-index: 990;*/
			.btn {
				display: inline-block;
				max-width: 100%;
				padding: 8px 16px 12px;
				line-height: 1;
				//@include border-radius(0);
			}
		}
		.btn {
			display: inline-flex;
			align-items: center;
			padding: 8px 12px;
			line-height: normal;
			@include transition(none);
			.btn-filtersToString {
				display: none;
				position: relative;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				line-height: normal;
			}
		}
		&.in {
			.btn {
				.btn-text {
					display: none;
				}
				.btn-filtersToString {
					display: block;
				}
			}
		}
		&.fix {
			position: fixed; top: 0; right: 0; left: 0;
			z-index: 900;
			.btn {
				background: $blue !important;
				border-color: $blue !important;
				padding: 8px 24px;
				@include border-radius(0 0 3px 0);
			}
		}
	}
	.b-productFilter-container {
		@media(min-width: 768px){
			background: #d4e6f6;
		}
		@media(max-width: 767px){
			background: rgba(0,0,0,.8);
			position: fixed; top: 0; right: 0; bottom: 0; left: 0;
			z-index: 999;
			display: none;
		}
		.b-productFilter__visible {
			padding: 12px 16px;
		}
		.b-productFilter__hidden {
			padding: 0 16px 12px;
			display: none;
		}
		.b-productFilter__row {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			.b-productFilter__col {
				@media( max-width: 767px ){
					width: 100%;
				}
				@media( min-width: 768px ){
					min-width: 40%;
				}
			}
		}
		.b-productFilter__form-group-row {
			display: flex;
			flex-wrap: wrap;
			margin-left: -2px;
			margin-right: -2px;
			.form-group {
				flex-grow: 1;
				@media( max-width: 575px ){
					min-width: 50%;
				}
				@media( min-width: 576px ){
					min-width: 160px;
				}
				padding-left: 2px;
				padding-right: 2px;
				&.order-xs-5 {
					@media( max-width: 767px ){
						order: 5;
						max-width: 50%;
					}
				}
			}
		}
		.form-group {
			.form-label {
				position: relative;
				overflow: hidden;
				margin-bottom: 2px;
				font-size: 13px;
				color: #0d61ab;
				white-space: nowrap;
				text-overflow: ellipsis;
			}
			.form-field {
				&.watcher {
					&.selected {
						select.form-control {
							background: $blue !important;
							color: $white;
							option {
								background: $white;
								color: $black;
							}
						}
					}
				}
			}
			&.form-uniqA {
				label {
					background: $white;
					border: 2px solid #E6E6E6;
					display: flex;
					align-items: center;
					padding: 0;
					input {
						opacity: 0;
					}
					.form-uniq__text {
						flex-grow: 1;
						position: relative;
						overflow: hidden;
						padding: 4px 8px;
						font-size: 13px;
						font-weight: normal;
						text-align: right;
						white-space: nowrap;
						@media(max-width: 359px){
							padding: 8px 4px;
							text-align: center !important;
						}
						&:not(:first-child){
							text-align: left;
						}
					}
					.form-uniq__icon {
						padding: 4px 6px;
						img {
							display: block;
							height: 36px;
							@media(max-width: 767px){
								height: 28px;
							}
							&.a {
								display: block;
							}
							&.b {
								display: none;
							}
						}
						@media(max-width: 359px){
							display: none;
						}
					}
					.arr {
						display: none;
					}
					&:hover {
						background: rgba(255, 255, 255, 0.7);
						.form-uniq__icon {
							img {
								&.a {
									display: none;
								}
								&.b {
									display: block;
								}
							}
						}
					}
				}
				&.active {
					label {
						border-color: $blue;
						.form-uniq__text {
							font-weight: bold;
						}
						.form-uniq__icon {
							img {
								&.a {
									display: none;
								}
								&.b {
									display: block;
								}
							}
						}
					}
				}
			}
			&.form-uniqB {
				label {
					background: $white;
					display: block;
					width: 100px;
					height: 40px;
				}
			}
		}
		.b-productFilter-showAllFilters {
			position: relative;
			display: inline-block;
			padding-left: 16px;
			color: $blue;
			cursor: pointer;
			.fa.fa-filter {
				position: absolute; top: 50%; left: 0;
				@include transform(translateY(-50%));
			}
		}
		.b-productFilter-clearAllFilters {
			visibility: hidden;
			opacity: 0;
			color: $red;
			cursor: pointer;
			.fa {
				position: relative;
				&:after {
					content: '';
					background: $red;
					position: absolute; top: 50%; left: 50%;
					display: block; width: 120%; height: 2px;
					@include box-shadow(0 0 0 1px #d4e6f6);
					@include transform(translateX(-50%) translateY(-50%) rotate(-45deg));
				}
			}
			&.in {
				visibility: visible;
				opacity: 1;
			}
		}
		&.in {
			.b-productFilter__hidden {
				display: block;
			}
			.b-productFilter-showAllFilters {
				.fa-angle-double-down {
					@include transform(rotate(180deg));
				}
			}
		}
	}
	.b-productFilter-container__head {
		@media(min-width: 768px){
			display: none;
		}
		@media(max-width: 767px){
			background: $color_blue;
			padding: 12px 24px 14px 16px;
			color: $white;
			.closer {
				width: 16px;
				height: 16px;
				opacity: 1;
				&:before, &:after {
					background: $white;
					width: 80%;
				}
				&:hover {
					background: $red;
				}
			}
		}
	}
	.b-productFilter-container__body {
		@media(min-width: 768px){

		}
		@media(max-width: 767px){
			background: $color_water;
			position: relative;
			overflow: hidden;
			overflow-y: auto;
			//flex-grow: 1;
		}
	}
	.b-productFilter-container__footer {
		background: $color_water;
		position: relative;
		padding: 12px 16px;
		text-align: center;
		@include box-shadow(0 0 12px rgba(0,0,0,.35));
		@media(min-width: 768px){
			display: none;
		}
		.btn {
			padding: 12px 36px;
		}
	}

	.b-productFilter-result {
		margin: 0 -4px;
		&.in {
			margin-bottom: 4px;
		}
		.item {
			background: $white;
			border: 2px solid $blue;
			position: relative;
			display: inline-block;
			margin: 0 4px 8px;
			padding: 4px 28px 5px 8px;
			@include border-radius(2px);
			.closer {
				top: 50%;
				right: 8px;
				width: 12px;
				height: 12px;
				margin-top: -6px;
				opacity: 1;
				&:before, &:after {
					background: #7E93B2;
				}
				&:hover {
					&:before, &:after {
						background: $red;
					}
				}
			}
		}
	}

/*	&.in {
		.b-productFilter-control {
			@media(max-width: 767px){
				display: none;
			}
		}
		.b-productFilter-container {
			@media(max-width: 767px){
				display: block;
			}
		}
	}*/
}

.body-productFilter {
	overflow: hidden;
	.b-productFilter {
		.b-productFilter-control {
			@media(max-width: 767px){
				//display: none;
			}
		}
		.b-productFilter-container {
			@media(max-width: 767px){
				display: flex;
				flex-direction: column;
			}
		}
	}
}

//Brand Slider
.brandSliderBox {
	position: relative;
	//margin-bottom: 16px;
	* {
		-ms-user-select: none;
		-moz-user-select: none;
		-khtml-user-select: none;
		-webkit-user-select: none;
	}
	.brandSliderBox-body {
		position: relative;
		overflow: hidden;
		width: 100%;
		&:before {
			background: rgba(255,255,255,.05);
			position: absolute; top: 0; right: 0; bottom: 0; left: 0;
			z-index: 998;
			opacity: .1;
			display: none;
		}
		&.inAction {
			&:before {
				content: '';
				display: block;
			}
		}
	}
	.brandSlider {
		overflow: visible;
		display: flex;
		width: auto;
		height: auto;
	}
	.brandSlider-prev, .brandSlider-next {
		background: none;
		border: 0;
		position: absolute; top: 50%;
		display: block;
		width: 16px;
		height: 44px;
		margin: 0;
		padding: 0;
		cursor: pointer;
		outline: none !important;
		@include transform(translateY(-50%));
		i {
			display: block;
			font-size: 24px;
			line-height: 36px !important;
			color: $blue;
		}
		&:hover {
			background: $blue;
			i {
				color: $white;
			}
		}
	}
	.brandSlider-prev {
		right: 100%;
	}
	.brandSlider-next {
		left: 100%;
	}
}
.brandSlider {
	background: $white;
	position: relative;
	overflow: hidden;
	//overflow-x: auto;
	display: flex;
	width: 100%;
	height: 44px;
	.brandSlider-item {
		position: relative;
		order: 2;
		&:before {
			content: '';
			background: rgba(0,0,0,.1);
			position: absolute; top: 8px; bottom: 8px; left: -1px;
			z-index: 5;
			width: 1px;
		}
		label {
			background: $white;
			border: 2px solid $white;
			position: relative;
			display: block;
			width: 100px;
			height: 44px;
			&:after {
				content: '';
				background: transparent;
				position: absolute; top: 0; right: 0; bottom: 0; left: 0;
				z-index: 5;
				display: block;
			}
			input {
				visibility: hidden;
			}
			img {
				position: absolute; top: 50%; left: 50%;
				display: block;
				width: auto;
				max-width: 80px;
				max-height: 36px;
				filter: grayscale(1);
				@include transform(translateX(-50%) translateY(-50%));
			}
			span {
				position: absolute; top: 50%; left: 3%;
				overflow: hidden;
				display: block;
				width: 96%;
				font-size: 12px;
				text-transform: uppercase;
				font-weight: bold;
				white-space: nowrap;
				text-align: center;
				text-overflow: ellipsis;
				@include transform(translateY(-50%));
			}
			.arr {
				display: none;
			}
			&:hover {
				//background: rgba(255, 255, 255, 0.7);
				border-color: $blue;
				cursor: pointer;
				img {
					filter: grayscale(0);
				}
			}
		}
		&.active, &.selected {
			//order: 1;
			label {
				border-color: $blue;
				img {
					filter: grayscale(0);
				}
			}
		}
	}
}