.view {
	-webkit-transition: -webkit-transform 0.4s ease-in-out;
	transition: transform 0.4s ease-in-out;
}

.view--compare {
	-webkit-transform: scale3d(0.9,0.9,1);
	transform: scale3d(0.9,0.9,1);
}

/* product grid */
.grid {
	margin: 0 auto;
	padding: 4em 1em;
	max-width: 1200px;
	text-align: center;
	overflow: hidden;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}



/* product */
.product {
	position: relative;
	display: inline-block;
	vertical-align: top;
	min-width: 256px !important;
	margin: 0 1em 2.5em;
	padding: 1.5em 1.5em 2em;
	background: rgba(0,0,0,0.1);
	border-radius: 5px;
}

.product--selected {
	box-shadow: 0 0 0 2px #007cba;
	background: rgba(0, 124, 186, 0.2)
}



/* product info */
.product__info > span {
	display: block;
	padding: 1em 0;
}

/* since we'll be using the product info inside of the comparison, we'll hide the extra info for the grid view */
.grid .extra {
	display: none;
}

.product__image {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	-webkit-transform-origin: 50% 100%;
	transform-origin: 50% 100%;
}

.product__info .product__image {
	max-width: 208px;
}

.product:hover .product__image {
	-webkit-animation: swing 0.6s forwards;	
	animation: swing 0.6s forwards;	
}

/* https://daneden.github.io/animate.css/ */
@-webkit-keyframes swing {
	25% {
		-webkit-transform: rotate3d(0, 0, 1, 6deg);
		transform: rotate3d(0, 0, 1, 6deg);
	}

	50% {
		-webkit-transform: rotate3d(0, 0, 1, -4deg);
		transform: rotate3d(0, 0, 1, -4deg);
	}

	75% {
		-webkit-transform: rotate3d(0, 0, 1, 2deg);
		transform: rotate3d(0, 0, 1, 2deg);
	}

	100% {
		-webkit-transform: rotate3d(0, 0, 1, 0deg);
		transform: rotate3d(0, 0, 1, 0deg);
	}
}

@keyframes swing {
  25% {
		-webkit-transform: rotate3d(0, 0, 1, 6deg);
		transform: rotate3d(0, 0, 1, 6deg);
	}

	50% {
		-webkit-transform: rotate3d(0, 0, 1, -4deg);
		transform: rotate3d(0, 0, 1, -4deg);
	}

	75% {
		-webkit-transform: rotate3d(0, 0, 1, 2deg);
		transform: rotate3d(0, 0, 1, 2deg);
	}

	100% {
		-webkit-transform: rotate3d(0, 0, 1, 0deg);
		transform: rotate3d(0, 0, 1, 0deg);
	}
}

.product__title {
	font-size: 150%;
	margin: 1em 0 0;
}

.product__price {
	font-weight: bold;
	color: #797BED;
}

.action {
	display: inline-block;
	font-size: 1em;
	white-space: nowrap;
	padding: 0.85em 1.25em;
	cursor: pointer;
	border: none;
	background: transparent;
	text-align: center;
}

.action:focus {
	outline: none;
}

.action--button {
	background: #007cba;
	color: #fff;
	border-radius: 5px;
	-webkit-transition: background 0.2s;
	transition: background 0.2s;
	height: 50px;
	text-transform: uppercase;
}

.action--button:hover {
	background: #5C5EDC;
}

.action__text {
	font-family: 'Lato', Calibri, Arial, sans-serif;
	font-weight: bold;
	letter-spacing: 1px;
	font-size: .813em;
	vertical-align: middle;
	display: inline-block;
}

.action__text--invisible {
	position: absolute;
	top: 100%;
	opacity: 0;
	pointer-events: none;
}

.action--button i + span {
	margin-left: 1em;
}



.action--close {
	position: fixed;
	overflow: hidden;
	top: 70px;
	right: 15px;
	font-size: 2.5em;
	color: #999;
	pointer-events: none;
	opacity: 0;
	-webkit-transition: opacity 0.3s, background 0.2s;
	transition: opacity 0.3s, background 0.2s;
	padding: 0px;
	z-index: 9999;
}

.view--compare + .compare .action--close {
	pointer-events: auto;
	opacity: 1;
	-webkit-transition-delay: 0.4s, 0s;
	transition-delay: 0.4s, 0s;
}

.action--close:hover,
.action--close:focus {
	color: #666;
}

.action--compare {
	margin: 0 0 0 4px;
	opacity: 0;
	pointer-events: none;
	cursor: default;
	background-color: #34363D;
	color: #565B6C;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.compare-basket--active .action--compare {
	opacity: 1;
}


.compare-basket--active .action--compare:nth-child(2) {
	margin-top: auto;
	margin-bottom: auto;
	margin-left:20px;
	margin-right:20px;
}

.compare-basket--active .action--compare:nth-child(3),
.compare-basket--active .action--compare:nth-child(4), 
.compare-basket--active .action--compare:nth-child(5),
.compare-basket--active .action--compare:nth-child(6) {
	background-color: #007cba;
	color: #fff;
	pointer-events: auto;
	cursor: pointer;
	margin-top: auto;
	margin-bottom: auto;
	margin-left:20px;
	margin-right:20px;
}

.action--remove {
	opacity: 0;
	position: absolute;
	overflow: hidden;
	top: 0px;
	left: 0px;
	width:150px;
	height: 60px;
	padding: 0px;
	transition-duration: .5s;
	
}


.action--remove i {
	color: white;
	font-size: 30px;
}


.action--remove:hover {
	opacity: 1;
	background: rgba(0,0,0,.3);
	transition-duration: .5s;
}

.action--compare-add {
	opacity: 0;
	position: absolute;
	width:208px;
	height: 70px;
	top: 25px;
	left: 25px;
	padding: 0px;
	border-radius:5px;
	transition-duration: .5s;
}

.action--compare-add:hover {
	opacity: 1;
	background: rgba(0,0,0,.3);
	transition-duration: 1s;
}


.action--compare-add i {
	font-size: 20px;
	color: white;
	margin-top:10px;
}

.add-text {
	font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	font-style: normal;
	font-weight: bold;
	color: white;
	text-align: center;
	margin: auto;
	margin-top: 20px;
}

.action--compare-add .fa-plus,
.action--compare-add .fa-remove,
.action--compare-add .add-text ,
.action--remove .fa-remove {
	text-shadow: 0px 0px 80px #000;
}



.action--compare-add .fa-remove,
.action--compare-add input[type=checkbox]:checked ~ .fa-plus {
	display: none;
}

.action--compare-add input[type=checkbox]:checked ~ .fa-remove {
	display: block;
	color: white;
}

.check-hidden {
	position: absolute;
	opacity: 0;
}

.compare-basket {
	width: 100%;
	padding: 0.75em;
	text-align: right;
	position: fixed;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.9);
	z-index: 1000;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-transform: translate3d(0,+100%,0);
	transform: translate3d(0,+100%,0);
	-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.2,1,0.3,1);
	transition: transform 0.3s cubic-bezier(0.2,1,0.3,1);

}

.compare-basket--active {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}



.product-icon {
	display: inline-block;
	vertical-align: middle;
	background: #42444F;
	min-width: 150px !important;
	width: 150px;
	/*height: 100px;*/
	padding: 5px;
	margin: 0 3px;
	border-radius: 5px;
	position: relative;
}

.product-icon .product__image {
	background-color: white
}





/* comparison overlay */
.compare {
	display: flex;
	position: fixed;
	z-index: 100;
	width: 100%;
	height: 0;
	overflow: auto;
	top: 70px;
	left: 0;
	z-index: 1001;
	-webkit-transition: height 0s 0.4s;
	transition: height 0s 0.4s;
}



.view--compare + .compare {
	pointer-events: auto;
	height: 100%;
	-webkit-transition: none;
	transition: none;
	opacity: 1;
	background: white;
}

.compare::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 70px;
	left: 0;
	background: rgba(0,0,0,0.5);
	opacity: 0;
	-webkit-transition: opacity 0.4s;
	transition: opacity 0.4s;
}

.view--compare + .compare::before {
	opacity: 1;
}

.compare__item {
	min-width: 250px;
	height: 100%;
	width: 50%;
	background: #fff;
	text-align: center;
	cursor: default;
	padding: 2em 0;
	-webkit-transition: -webkit-transform 0.4s ease-in-out;
	transition: transform 0.4s ease-in-out;
}



.compare__item:nth-of-type(even) {
	background: #eee;
}


.compare__item:nth-of-type(even)  .compare__effect .product__header {
	background: #eee;
}

.compare__item:nth-of-type(odd)  .compare__effect .product__header {
	background: white;
}

.compare__item .product__title {
	margin: 1em 0;
	min-height: 0;
}

.compare__item .product__price {
	color: #007cba;
}

.compare__item span[class^="product__"] {
	display: block;
	padding: 8px;
	-webkit-transition: background-color 0.3s;
	transition: background-color 0.3s;
	line-height: 40px;
}

.compare__item span[class^="product__"] > span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1em; /*set line height back to normal*/
}

.compare__item span[class^="product__"].hover {
	background: #000;
}

.compare__effect .highlight:before  {
 	content: ""; /* This is necessary for the pseudo element to work. */ 
    display: block; /* This will put the pseudo element on its own line. */
    margin: 0 auto; /* This will center the border. */
    width: 80%; /* Change this to whatever width you want. */
    padding-top: 15px; /* This creates some space between the element and the border. */
    border-top: 1px solid #ddd; /* This creates the border. Replace black with whatever color you want. */
}


/* three items */
.compare__item:first-of-type:nth-last-of-type(3),
.compare__item:first-of-type:nth-last-of-type(3) ~ .compare__item {
    width: 33.3333%;
}


.compare__item:nth-child(odd) {
	-webkit-transform: translate3d(0,-100vh,0);
	transform: translate3d(0,-100vh,0);
}

.compare__item:nth-child(even) {
	-webkit-transform: translate3d(0,100vh,0);
	transform: translate3d(0,100vh,0);
}

.view--compare + .compare .compare__item:nth-child(odd),
.view--compare + .compare .compare__item:nth-child(even) {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	min-height: 9000px;
}

.compare__effect {
	width: 100%;
	height: 100%;
	opacity: 0;
	-webkit-transition: -webkit-transform 1s cubic-bezier(0.2, 1, 0.3, 1), opacity 1s cubic-bezier(0.2, 1, 0.3, 1);
	transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1), opacity 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.compare__effect .product__image {
	width: 80%;
	max-width: 200px;
}

.compare__effect .product__header {
	width: 100%;
	padding:10px;
	padding-top:20px;
	position: sticky;
  	top: 0px;
  	z-index: 9999;
}

.compare .compare__item {
	padding:0px;
}

.test {
	color:red !important;
}

.compare__effect .product__field span[class^="rating-"]:after {
   content: none;
}

.compare__item:nth-child(odd) .compare__effect {
	-webkit-transform: translate3d(0,-250px,0);
	transform: translate3d(0,-250px,0);
}

.compare__item:nth-child(even) .compare__effect {
	-webkit-transform: translate3d(0,250px,0);
	transform: translate3d(0,250px,0);
}

.view--compare + .compare .compare__item:nth-child(odd) .compare__effect,
.view--compare + .compare .compare__item:nth-child(even) .compare__effect {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	-webkit-transition-delay: 0.3s;
	transition-delay: 0.3s;
}


/*

@media screen and (max-width: 1024px) {

	.product-icon {
		min-width: 100px !important;
		width: 100px;
		/*height: 66px;*/
	}
/*

	.action--remove {
		width:100px;
		height: 42px;
	}

	.compare-basket--active .action--compare:nth-child(2) {
		margin-left:10px;
		margin-right:10px;
	}
	.compare-basket--active .action--compare:nth-child(3),
	.compare-basket--active .action--compare:nth-child(4), 
	.compare-basket--active .action--compare:nth-child(5),
	.compare-basket--active .action--compare:nth-child(6) {
		margin-left:10px;
		margin-right:10px;
	}

}
*/

	.general-rating {
		font-size: 25px !important;
	}


	span[class^="rating-"] {
		position:relative;
		vertical-align: middle;
		font-size: 20px;
		line-height: 10px;
		font-family: FontAwesome;
		display:inline-block;
		color: green;
	}
	span[class^="rating-"]:after{
		color: #333;
		font-size: 18px;
		margin-left: 10px;
		font-weight: bold;
		font-family: 'Lato', Calibri, Arial, sans-serif;
	}


	.rating-0-5:before{
		content: "\f123  \f006  \f006  \f006  \f006";
	}
	.rating-0-5:after{
		content: "0.5/5";
	}

	.rating-1:before{
		content: "\f005  \f006  \f006  \f006  \f006";
	}
	.rating-1:after{
		content: "1/5";
	}


	.rating-1-5:before{
		content: "\f005  \f123  \f006  \f006  \f006";
	}
	.rating-1-5:after{
		content: "1.5/5";
	}


	
	.rating-2:before{
		content: "\f005  \f005  \f006  \f006  \f006";
	}
	.rating-2:after{
		content: "2/5";
	}


	.rating-2-5:before{
		content: "\f005  \f005  \f123  \f006  \f006";
	}
	.rating-2-5:after{
		content: "2.5/5";
	}


	.rating-3:before{
		content: "\f005  \f005  \f005  \f006  \f006";
	}
	.rating-3:after{
		content: "3/5";
	}

	.rating-3-5:before{
		content: "\f005  \f005  \f005  \f123  \f006";
	}
	.rating-3-5:after{
		content: "3.5/5";
	}

	.rating-4:before{
		content: "\f005  \f005  \f005  \f005  \f006";
	}
	.rating-4:after{
		content: "4/5";
	}

	.rating-4-5:before{
		content: "\f005  \f005  \f005  \f005  \f123";
	}
	.rating-4-5:after{
		content: "4.5/5";
	}

	.rating-5:before{
		content: "\f005  \f005  \f005  \f005  \f005";
	}
	.rating-5:after{
		content: "5/5";
	}




	.close {
	  position: fixed;
	  color: #333;
	  right: 32px;
	  top: 32px;
	  width: 32px;
	  height: 32px;
	  opacity: 0.3;
	}
	.close:hover {
	  opacity: 1;
	}
	.close:before, .close:after {
	  position: absolute;
	  left: 15px;
	  content: ' ';
	  height: 33px;
	  width: 2px;
	  background-color: #333;
	}
	.close:before {
	  transform: rotate(45deg);
	}
	.close:after {
	  transform: rotate(-45deg);
	}


	.scrollup {
		display: none !important;
	}

	.new-btn {
    	margin-top: 10px !important;
	}

	.disclaimer {
		font-size: 9px;
		line-height: 9px;
		display: block;
	}

