.woocommerce-page {
	&.archive,
	&.single-product {
		.product_meta a {
			color: #e2231a !important;
			text-decoration: none !important;
		}

		.site-content {
			@extend .content-width;
		}

		.search-input {
			margin-bottom: 20px;
		}

		.ask-question-bar {
			margin-bottom: 30px;
		}

		div.product .images .thumbnails {
			a.zoom{
				margin: 0 10px 0 0;
				width: 90px;
				&:last-child{
					margin: 0;
				}
			}
		}
	}

	&.archive {
		.page-title {
			margin-bottom: $globalPadding;
			text-align: center;

			@include responsive('>', 'phones', (
				float: left,
				margin-bottom: 0,
				text-align: left
			));
		}
	}

	
	.card {

		@include responsive('>', 'phones', (
			width: 48%,
			float: left,
			margin-left: $globalPadding
		));

		&:nth-child(even){
			@include responsive('>', 'phones', (
				clear: left,
				margin-left: 0
			));
		} 

	}

	#secondary {
		@include responsive('>', 'tablets', (
			margin-top: 140px
		));
	}
	&.single-product{
		#secondary {
			@include responsive('>', 'tablets', (
				margin-top: 0px
			));
		}
	}

	.panel.red.no-products{
		margin-top: $globalPadding;
		margin-bottom: $globalPadding;
		float: left;
	}

	.cta-askus{
	    width: 100%;
	    height: 300px;
	    display: block;
	    background-size: contain;
	    background-position-x: 0;
	    background-position-y: 0;
	}
}

.woocommerce-ordering {
	@include responsive('>', 'tablets', (
		float: right,
		margin-top: $globalPadding
	));
}

.woocommerce-result-count {
	@include responsive('>', 'tablets', (
			float: right,
			clear: right
	));
}

.widget_product_categories {

	.widget-title {
		color: #e2231a;
		border-bottom: 0;
		margin-bottom: 0;
	    font-size: 1.618em;
	    font-weight: 700;
	}

	ul.children {
	    margin-top: .618em;
	    margin-left: 1.618em;
	}

	li.cat-item {
		padding-left: 0;
		font-size: 12.8px;

		a:not(.button) {
			font-weight: 400;
			text-decoration: none;
		}
	}

	margin-bottom: $globalPadding;
}

.product-categories {
	padding-left: 1.2em;
}

.site-main {
	ul.products.columns-3 {

		@include responsive('>', 'phones', (
			margin-left: -$globalPadding,
			display: flex,
			flex-wrap: wrap
		));

		h2 {
			@include responsive('>', 'tablets', (
				text-align: left
			));

			font-weight: 700;
			font-size:1.1em;
		}


		> li.product {
			width: 100%;
			margin-bottom: $globalPaddingS;

			@include responsive('>', 'phones', (
				float: left,
				width: 50%,
				margin-right: 0,
				margin-bottom: $globalPadding,
				padding-left: $globalPadding,
				display: flex
			));

			@include responsive('>', 'tablets', (
				width: 33.33%
			));

			> a {
				padding: 20px;
				display: block;
				border: 1px solid $colorGrey;
			}

			img {
				width: 100%;
				margin: 0;
			}

			.sku{
				text-align: left;
			    font-size: .857em;
			    color: $colorGreyDark;
			    font-weight: normal;
			}
		}

		.product {
			&:hover {
				h3 {
					text-decoration: underline;
				}
			}
		}
	}	
}

.widget_product_categories {
	&.widget {
		h3.widget-title {
			margin-bottom: 0;
			border-bottom: 0;
			font-size: 1.618em;
			color: $colorRed;
		}
	}

	ul li {
		&:before {
			display: none;
			content: '';
		}

		> a {
			display: inline-block;
			max-width: calc(100% - 25px);
			color: $colorGreyDark !important;

			&:hover {
				color: $colorGreyDark !important;
				text-decoration: underline;
			}
		}

		&.current-cat {
			position: relative;
			font-weight: bold;

			&:before {
				display: block;
				opacity: 1;
				content: '';
				position: absolute;
				left: 0.5em;
				top: 0.1em;
				width: 1em;
				height: 1em;
				background: $colorRed;
			}

			> a:not(.button) {
				font-weight: bold;
				color: $colorRed;
			}
		}
	}
}

.entry-summary {
	.buttons {
		margin-top: 30px;

		> form {
			margin-bottom: 0;
		}
	}
}

.product {
	.storefront-product-sharing {
		@include responsive('>', 'tablets', (
			padding: 0
		));

		ul {
			float: none;
			position: relative;
			top: -15px;
			text-align: center;

			@include responsive('>', 'tablets', (
				float: right,
				text-align: left
			));

			li {
				display: inline-block;
				float: none;
				width: 30px;
				margin: 0 10px;

				@include responsive('>', 'tablets', (
					margin: 0 3px
				));

				a {
					display: block;
					font-size: 0;

					&:before {
						@extend .btn-round;

						display: block;
						width: 44px;
						height: 44px;
						font-family: social !important;
						font-size: 15px !important;
						line-height: 3em;
						color: black !important;

						@include responsive('>', 'tablets', (
							width: 30px,
							height: 30px,
							line-height: 2em
						));
					}

					&:hover {
						color: black;

						&:before {
							@include responsive('>', 'tablets', (
								transform: translateY(0),
								color: white !important,
								background-color: black
							));
						}
					}
				}

				&.facebook {
					a:before {
						content: "\e900" !important;
					}
				}

				&.twitter {
					a:before {
						content: "\e902" !important;
					}
				}

				&.email {
					a:before {
						content: "\e904" !important;
					}
				}
			}
		}

		.pinterest {
			display: none;
		}
	}

	> a {
		width: 100%;
	}

	.product-list-thumbnail {
		height: 0;
		padding-bottom: 100%;
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
	}

	.storefront-single-product-pagination {
		h2 {
			@include responsive('>', 'tablets', (
					position: static !important
			));
		}

		a {
			@include responsive('>', 'tablets', (
				position: static,
				border: 1px solid $colorGrey !important
			));

			.title {
				color: $colorGreyDark;
				
				&:hover {
					text-decoration: underline;
				}
			}
		}
	}
}

p.woocommerce-result-count {
	&:first-child {
		margin-top: 12px;
		text-align: center;

		@include responsive('>', 'phones', (
			float: right
		));
	}
}

.woocommerce-pagination {
	@extend .clearfix;

	clear: both;
	float: none;
	padding-top: $globalMargin;

	.page-numbers {
		li {
			.page-numbers {
				&.current {
					background-color: $colorYellow;
					border-color: $colorYellow;
					color: white;
				}
			}
		}
	}

}

.woocommerce-info {
	padding-left: 0;
	color: $colorRed;
	background: none;
	border: 0;
}

/** IE Styles **/
.ie9,
.ie10 {
	.site-main {
		ul.products {

			@include responsive('>', 'phones', (
				display: block
			));

			> li.product {

				@include responsive('>', 'phones', (
					display: block
				));

				> a {
					@include responsive('>', 'phones', (
						min-height: 420px
					));

					@include responsive('>', 'tablets', (
							min-height: 320px
					));
				}
			}
		}
	}
}
