/*********************************************************************************
/*
/* scuba-o-rings product archive
/*
/********************************************************************************/

.archive h1,
.archive h2,
h2.woocommerce-loop-product__title,
.archive p {
	text-align: center;
}

.category-description p{
	font-size: 18px;
	margin-bottom: 2em;
}

ul.first-level-category {
	list-style: none;
	display: flex;
    flex-wrap: wrap;
	justify-content: center;
	margin-left: 0;
}

ul.first-level-category li.second-level-category {
	flex: 0 0 100%;
	display: inline-block;
}

ul.first-level-category li.second-level-category a {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0px 10px 30px 10px;
	border: 1px solid #f0f0f0;
    border-radius: 8px;
}

ul.first-level-category li.second-level-category a:hover {
	border: 1px solid #e0e0e0;	
}

ul.first-level-category li.second-level-category img {
	flex; 0 0 50%;
	max-width: 200px;
	margin: 0 auto;
}

ul.first-level-category li.second-level-category .flex-wrapper {
	display: flex;
	align-items: center;
	flex: 0 0 50%;	
	flex-direction: column;
	margin: 0 auto;
}

ul.first-level-category li.second-level-category p {
	font-size: 20px;
}

ul.first-level-category li.second-level-category .button {
	max-height: 46px;
	margin-bottom: 10px;
}

@media (min-width: 768px) {
		
	ul.first-level-category li.second-level-category {
		flex: 0 0 46%;
	}	
	
	ul.first-level-category li.second-level-category a {
		
	}
}

/* lowest level product archive, with object diagrams */

.woocommerce-products-header {
	border: 1px solid #f0f0f0;
	border-radius: 8px;
}

.woocommerce-products-header h1 {
	margin-top: 20px;
}

.woocommerce-products-header img {
	width: -webkit-fill-available;
	max-width: 700px;	
	margin: 0 auto;
}

li.product-archive-tank-valves {
	display: flex;
	flex-direction: column;
//	flex-wrap: wrap;
	list-style: none;
	margin-bottom: 30px;
	border: 1px solid #f0f0f0;
    border-radius: 8px;
	position: relative;
}

li.product-archive-tank-valves:hover {
	border: 1px solid #e0e0e0;
}

li.product-archive-tank-valves p.circled-number {
	position: absolute;
	top: 5px;
	left: 5px;
	width: 26px; 
	height: 26px;
	border-radius: 50%;
	border: 1px solid #ddd; 
	color: #ddd;
	display: flex; 
	justify-content: center; 
	align-items: center; 
    font-size: 14px;
}

li.product-archive-tank-valves .click-more-info {
    text-align: center;
    margin: 0 6px;	
}

li.product-archive-tank-valves img {
	max-width: 90%;
	transition: transform 0.3s ease-in-out;
	padding: 10px;
}

li.product-archive-tank-valves img:hover {
	transform: scale(1.1);	
}

.archive-product-item-details-wrapper {
	display: flex;
	align-self: anchor-center;
//	flex-wrap: wrap;
	flex-direction: column;
	flex: 1 0 100%;
}

.archive-product-item-details-wrapper h2 {
	font-size: 1.3em;
	margin-top: 0.54em;
	padding: 0 5px;
	transition: transform 0.3s ease-in-out;
}

.archive-product-item-details-wrapper h2:hover {
	transform: scale(1.1);	
}

li.product-archive-tank-valves .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    align-items: center;	
	justify-content: center;
	flex: 1 0 100%;
}

.archive-product-item-details-wrapper .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
	flex: 0 0 100%;
}

.archive-product-add-to-cart-wrapper {
	display: flex;
	flex: 1 1 100%;
	justify-content: center;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 10px;
//	flex-direction: column;
}

.archive-product-add-to-cart-wrapper .price,
.archive-product-add-to-cart-wrapper .quantity {
	margin: 5px 10px;
}

.archive-product-add-to-cart-wrapper a.button {
	height: 46px;
}

.archive-product-add-to-cart-wrapper p.stock.in-stock,
.archive-product-add-to-cart-wrapper p.stock.out-of-stock {
	display: none;
}

.archive-product-add-to-cart-wrapper p.stock.out-of-stock {
    margin: 0 10px;
}

/* an extra button gets added to the product archive template following a previous out-of-stock item */

.archive-product-add-to-cart-wrapper a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
	display: none;
}

.single-product div.product form.cart,
.archive-product-add-to-cart-wrapper form.cart {
	display: flex;

	align-items: center;	
	margin-bottom: 0;
	flex-wrap: wrap;
}

.archive-product-add-to-cart-wrapper form.cart {
	justify-content: center;
}

@media (min-width: 600px) {

	li.product-archive-tank-valves .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
		flex: 1 0 35%;
	}
	
	.archive-product-item-details-wrapper {
		flex: 1 0 65%;
	}	
	
	.archive-product-add-to-cart-wrapper form.cart {
		flex-direction: row;
	}	
	
	li.product-archive-tank-valves {
		flex-direction: row;
//		flex-wrap: nowrap;
	}	
	
	li.product-archive-tank-valves p.circled-number {

//		top: 5px;
//		left: 5px;
		width: 30px; 
		height: 30px;
		font-size: 20px;
	}
	
}

@media (min-width: 768px) {
	
	li.product-archive-tank-valves .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
		flex: 1 0 35%;
	}
	
	.archive-product-item-details-wrapper {
		flex: 1 0 65%;
	}		
	
	li.product-archive-tank-valves {
		flex-wrap: nowrap;
	}

	.archive-product-item-details-wrapper h2 {
		font-size: 1.6em;
	}	

	li.product-archive-tank-valves img {
		max-width: 61%;
	}	
	
	li.product-archive-tank-valves p.circled-number {

//		top: 5px;
//		left: 5px;
		width: 40px; 
		height: 40px;
		font-size: 28px;
	}
	
	.archive-product-add-to-cart-wrapper {
		flex-direction: row;
	}
	
	
}

@media (min-width: 1024px) {

	.archive-product-item-details-wrapper h2 {
		font-size: 1.8em;
	}	

	li.product-archive-tank-valves img {
		max-width: 51%;
	}	
}

/*********************************************************************************
/*
/* content head
/*
/********************************************************************************/

.two-column-content-head {
	display: flex;
	margin-bottom: 6em;
	flex-wrap: wrap;
}

.two-column-content-head a {
	flex: 0 0 100%;
	max-width: 100%;
	border: 1px solid #f0f0f0;
	margin: 1em 0em;
	padding-bottom: 1em;
}

.two-column-content-head a:hover {
	border: 1px solid #e0e0e0;
}

.two-column-content-head a h2 {
	margin-top: 1em;
	margin-left: 0.5em;
}

.storefront-full-width-content.woocommerce-cart .entry-header,
.storefront-full-width-content.woocommerce-checkout .entry-header,
.storefront-full-width-content.woocommerce-account .entry-header,
.storefront-full-width-content .woocommerce-products-header {
	padding-bottom: 3em;
}

@media (min-width: 768px) {
	
	.two-column-content-head {
		flex-wrap: nowrap;
	}	
	
	.two-column-content-head a {
		flex: 0 0 48%;
		margin: 0em 0.5em;
	}
	
	.two-column-content-head a h2 {
		margin-left: 0;
	}	
}

