/*!
Theme Name:     geekho-store
Description:    Geekho store theme (based on Storefront)
Template:       storefront
Version:        1.0
Author:         Geekho (Cambodia)
Author URI:     geekho.asia
Text Domain:  	geekho-store
License:      	GNU General Public License v2 or later
License URI:  	http://www.gnu.org/licenses/gpl-2.0.html 
*/


#add-cart-bar,
#add-cart-box {
	background-color: #f0f0f0;
	box-shadow: 0 0 4px rgba(0,0,0,.25);
	padding: 1em;
}

#add-cart-box {
	border-radius: 2px;
	position: relative;
	text-align: right;
	margin: .25em;
}

#add-cart-bar {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	width: 100%;
	animation-duration: .5s;
    animation-fill-mode: both;
	animation-name: slideDown;
}

@keyframes slideDown{
	from {
		transform: translate3d(0,-100%,0)
	}
	to {
		transform: translate3d(0,0,0);
	}
}

@keyframes slideUp{
	from {
		transform: translate3d(0,0,0);
	}
	to {
		visibility: hidden;
		transform: translate3d(0,-100%,0)
	}
}

#add-cart-bar.hide {
    animation-name: slideUp;
}

#add-cart-bar h1 {
	position: absolute;
	left: 1em;
	top: 50%;
  	transform: translate(0,-50%);
	display: inline;
	font-size: 1.25em;
}

#add-cart-box form.cart,
#add-cart-bar form.cart {
    margin: 0;
    padding: 0;
    float: right;
}

#add-cart-box p.price,
#add-cart-bar p.price {
	position: relative;
    margin: 0;
    color: #00cfa3;
    font-weight: 700;
}

#add-cart-bar p.price {
	display: inline-block;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

.product_cat-subscription #add-cart-bar p.price {
	vertical-align: top;
}

#add-cart-box p.price {
	position: absolute;
	left: 1em;
	top: 50%;
  	transform: translate(0,-50%);
}

.product_cat-subscription #add-cart-box p.price:after,
.product_cat-subscription #add-cart-bar p.price:after {
	content: 'per year';
	font-weight: 100;
	color: #aaa;
	font-size: 45%;
	position: absolute;
	left: 0;
	width: 100%;
	bottom: -.5em;
	text-align: center;
}

#add-cart-box form.cart .qty,
#add-cart-bar form.cart .qty {
	background-color: #f8f8f8;
}

#add-cart-bar .quantity {
	float: none;
	display: inline-block;
	margin: 0 .875em;
}

#add-cart-box:after,
#add-cart-bar:after {
    content: "";
    display: table;
    clear: both;
}

.single-product div.product .summary,
.storefront-full-width-content.single-product div.product .summary {
	width: auto;
	float: none;
	text-align: left;
}

.small:before {
	content: "*:";
	position: absolute;
	left: 0;
}

.small {
	display: block;
	font-size: .75em;
	line-height: 1;
	padding-left: 1em;
}

@media (max-width: 768px) {
	h1 {
		font-size: 6.5vw;
	}
}

@media (max-width: 600px) {
	#add-cart-bar h1 {
		display: none;
	}

	#add-cart-bar {
		text-align: center;
	}

	#add-cart-bar form.cart {
		float: none;
		display: inline-block;
	}
}

@media (min-width: 768px) {
    .site-header {
        padding-top: 1.308962em;
        padding-bottom: 1.308962em;
    }

    .site-header .site-branding {
        width: 200px;
    }

	#add-cart-box {
		display: block;
		width: 20em;
		float: right;
	}
}

@media (max-width: 450px) {
	#add-cart-box form.cart {
		float: none;
	}

	#add-cart-box p.price {
		position: static;
		text-align: center;
		margin: .5em 0 0 0 ;
	}
}

@media (max-width: 360px) {
	#add-cart-bar p.price {
		display: none;
	}

	#add-cart-box form.cart input {
		width: 3em;
	}
	
	#add-cart-box form.cart button {
		padding: 0.618047em;
	}
}
