/*
Theme Name: Pharmarail
Author: Marco Zocchi
Version: 1.0
Template: storefront
*/



/* ------- HIDE SOME ELEMS ------- */

.storefront-hero__button-edit{display:none;}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads{display:none;}


/* ------- HEADER ------- */

.site-header img{display:inline;}
.site-header .custom-logo-link,
.site-header .site-logo-anchor,
.site-header .site-logo-link{max-width:170px;}
.woocommerce-active .site-header .site-branding img{width:100%;max-width:100%;}

body header.site-header,
body.sp-designer header.site-header{padding:23px 0 19px;border-bottom:4px solid #63a041;}
body .site-branding .site-title a,
body.sp-designer .site-branding .site-title a{font-size:34px;white-space:nowrap;}

body .site-header-cart .cart-contents .count{display:none;}

body header .sp-header-row{padding:0;max-width:1300px;box-sizing:content-box;}

@media only screen and (max-width: 66.4989378333em){

	body header .sp-header-row{margin-left:2.617924em;margin-right:2.617924em;}

}

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

	body header .sp-header-row{margin-left:1.41575em;margin-right:1.41575em;}

}

@media only screen and (min-width: 768px){

	body header.site-header,
	body.sp-designer header.site-header{padding:20px 0 15px;}
	body .site-branding .site-title a,
	body.sp-designer .site-branding .site-title a{font-size:30px;}

	body header .sp-header-row{padding:0 2.617924em;margin-left:auto;margin-right:auto;}

	body .main-navigation ul.menu>li>a, 
	body .main-navigation ul.nav-menu>li>a{padding:8px 11px;}
	body .site-header-cart .cart-contents{padding:8px 0;}

	body.storefront-secondary-navigation.woocommerce-active .site-header .site-branding{width:100%;}

}

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

	.site-header .custom-logo-link,
	.site-header .site-logo-anchor,
	.site-header .site-logo-link{max-width:205px;}

	body header.site-header,
	body.sp-designer header.site-header{padding:14px 0 11px;}
	body .site-branding .site-title a,
	body.sp-designer .site-branding .site-title a{font-size:34px;}

	body .main-navigation ul.menu>li>a,
	body .main-navigation ul.nav-menu>li>a{padding:12px 13px;}
	body .site-header-cart .cart-contents{padding:12px 0;}

}

@media only screen and (min-width: 1200px){

	.site-header .custom-logo-link,
	.site-header .site-logo-anchor,
	.site-header .site-logo-link{max-width:240px;}

	body header.site-header,
	body.sp-designer header.site-header{padding:20px 0 15px;}
	body .site-branding .site-title a,
	body.sp-designer .site-branding .site-title a{font-size:38px;}

	body .main-navigation ul.menu>li>a,
	body .main-navigation ul.nav-menu>li>a{padding:19px 15px;}
	body .site-header-cart .cart-contents{padding:19px 0;}
	body .site-header-cart .cart-contents .count{display:inline;}

}

@media only screen and (min-width: 1400px){

	body header.site-header,
	body.sp-designer header.site-header{padding:27px 0 19px;}
	body .site-branding .site-title a,
	body.sp-designer .site-branding .site-title a{font-size:42px;}

	body .main-navigation ul.menu>li>a,
	body .main-navigation ul.nav-menu>li>a{padding:19px 17px;}
	body .site-header-cart .cart-contents{padding:19px 0;}

}



/* ------- HOMEPAGE ENTRY CONTENT ------- */

body.home .site-content .site-main,
body.home.page-template-template-homepage:not(.has-post-thumbnail) .site-main{padding-top:0;}

.home .site-main .hentry{position:relative;padding:40px 0;color:#fff;}
.home .site-main .hentry a{color:#fff;text-decoration:underline;}
.home .site-main .hentry h1,
.home .site-main .hentry h2,
.home .site-main .hentry h3,
.home .site-main .hentry h4,
.home .site-main .hentry h5,
.home .site-main .hentry h6{color:#fff;font-weight:700;padding-top:0;margin-top:0;}
.home .site-main .hentry:before{display:block;content:'';position:absolute;top:0;bottom:0;left:-1000px;right:-1000px;width:auto;height:auto;background-repeat:repeat-x;background-position:center center;background-color:#e69632;background-image:url(img/pharmarail-pattern-cover.svg);}
.home .site-main .hentry > *{position:relative;}
.home .site-main .hentry .entry-header{display:none;}
.home .site-main .hentry .widget_product_search{position:relative;padding-top:0.5em;margin-bottom:0;}
.home .site-main .hentry .widget_product_search form{padding-top:0;margin-bottom:0.8em;}


@media only screen and (min-width: 768px){

	.home .site-main .hentry{padding:50px 0;}

	.home.page-template-template-homepage .entry-content,
	.home.page-template-template-homepage .entry-header{max-width:90%;}

}

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

	.home .site-main .hentry{padding:60px 0;}

	.home.page-template-template-homepage .entry-content,
	.home.page-template-template-homepage .entry-header{max-width:70%;}

}

@media only screen and (min-width: 1200px){

	.home .site-main .hentry{padding:70px 0;}

}

@media only screen and (min-width: 1400px){

	.home .site-main .hentry{padding:80px 0;}

}




/* ------- IMAGE WRAPPING IN LOOP PRODUCTS ------- */

.image-wrapper{position:relative;overflow:hidden;padding:0 0 100%;margin:0 auto 1.618em;}
.image-wrapper:last-child{margin-bottom:0;}
.image-wrapper img,
ul.products li.product .image-wrapper img{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:auto;height:auto;max-width:100%;max-height:100%;}
.image-wrapper img.woocommerce-placeholder{border:1px solid;}

.product-category img{/*opacity:0.5;*/border:1px solid;}




/* ------- REWRITE SOME RULES ------- */

.main-navigation ul li a,
.site-title a,
.site-header ul.menu li a,
.site-header  ul.site-header-cart.menu li a,
.site-header  ul.site-header-cart.menu:hover li a.cart-contents,
.site-branding h1 a{color:#fff;}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus,
.site-title a:hover,
.site-title a:focus,
.site-header ul.menu li a:hover,
.site-header ul.menu li a:focus,
.site-branding h1 a:hover,
.site-branding h1 a:focus{color:#fff;}

.main-navigation ul li a,
.main-navigation ul li > a,
.site-title a,
/*a.cart-contents,*/
/*.site-header-cart .widget_shopping_cart a,*/
/*.site-header-cart:hover > li > a,*/
.site-header ul.menu li > a{border-bottom:2px solid transparent;}

.main-navigation ul li a:hover,
.main-navigation ul li:hover > a,
.site-title a:hover,
/*a.cart-contents:hover,*/
/*.site-header-cart .widget_shopping_cart a:hover,*/
/*.site-header-cart:hover > li > a,*/
.site-header ul.menu li.current-menu-item > a{color:#fff;border-bottom-color:#fff;}

.site-header ul.menu li.current-menu-item > a.cart-contents{color:#fff;}
.site-header ul.menu li.current-menu-item > a.cart-contents:after{color:#fff;}

.site-header ul.menu .sub-menu li a,
.site-header-cart .widget_shopping_cart a,
.site-header-cart > li > a,
.site-header .site-header-cart .widget_shopping_cart .product_list_widget li a{color:#404040;}

.site-header .site-header-cart .widget_shopping_cart .product_list_widget li a:hover,
.site-header  ul.site-header-cart.menu:hover li a.cart-contents:after{color:#fff;}

body .widget .widget-title,
body .widget .widgettitle,
body .related>h2:first-child,
body .upsells>h2:first-child,
body .woocommerce-tabs .panel h2:first-of-type,
.cart-collaterals h2,
.woocommerce-billing-fields>h3:first-child,
.woocommerce-shipping-fields>h3:first-child,
.woocommerce-Address-title>h3:first-child,
.woocommerce-MyAccount-content>form>h3:first-child,
.woocommerce-account .woocommerce > h2:first-child,
h3#order_review_heading,
#ship-to-different-address label,
.wc-bacs-bank-details-heading,
.woocommerce-order-details__title,
.woocommerce-customer-details .woocommerce-column__title,
#customer_login h2{font-weight:600;color:#333333;}

.page-template-template-fullwidth-php .col2-set #billing_city_field{width:100%;}

.storefront-product-section .section-title{font-weight:600;}

.product-category .count{display:none;display:none !important;}

.entry-title,
.page-title{font-weight:700;}

.product .summary button.alt{background-color:#63a041;border-color:#63a041;color:#ffffff;}
.product .summary button.alt:hover{background-color:#4a8728;border-color:#4a8728;color:#ffffff;}

.single-product div.product form.cart{position:relative;}
.single-product div.product form.cart .quantity{position:static;}
.qty-error-message{position:absolute;top:auto;left:0;right:auto;bottom:100%;padding:2px 7px;margin:0 0 -5px;font-size:0.9em;color:#fff;background:#e2401c;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;}

.notes-text{color:#e69532;font-weight:bold;font-size:1.2em;}

.woocommerce-cart .qty-error-message{display:none;}

.demo_store{background-color:#63a041;}

img.woocommerce-placeholder{opacity:0.5;}

ul.products li.product .woocommerce-LoopProduct-link{position:relative;}
ul.products li.product .price.wspd_shop_page{display:block;position:absolute;top:0;left:0;padding:1px 6px;margin:0;width:auto;height:auto;color:#fff;font-weight:bold;background-color:#dd4f4f;}
.single-product div.product .price.wspd_product_page{display:block;position:absolute;top:0;left:0;padding:1px 6px;margin:0;width:auto;height:auto;color:#fff;font-weight:bold;background-color:#dd4f4f;}
.onsale{display:none;display:none !important;}

@media only screen and (min-width: 768px) and (max-width: 1023px){

	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .images,
	.single-product div.product .summary{width:100%;}

}

@media only screen and (min-width: 768px){

	body .col-full{max-width:1300px;}

}




/* ------- FOOTER ------- */

body .site-footer{padding:30px 0 90px;}
body .site-footer .site-info{display:block;width:100%;padding:5px 0;font-size:.8em;text-align:center;}
body .site-footer .textwidget p{margin-bottom:0.5em;}
body .site-footer .footer-widgets{padding-top:0;}
body .site-footer .widget{margin:0 0 25px;}
body .site-footer .widget .widget-title,
body .site-footer .widget .widgettitle{padding:0 0 0.3em;margin-bottom:0.9em;font-size:1.2em;}

@media only screen and (min-width: 768px){

	body .site-footer{padding:25px 0 10px;}
	body .site-footer .site-info{padding:10px 0 0;}

}

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

	body .site-footer{padding:28px 0 11px;}
	body .site-footer .site-info{padding:11px 0 0;}

}

@media only screen and (min-width: 1200px){

	body .site-footer{padding:31px 0 12px;}
	body .site-footer .site-info{padding:12px 0 0;}

}

@media only screen and (min-width: 1400px){

	body .site-footer{padding:34px 0 13px;}
	body .site-footer .site-info{padding:13px 0 0;}

}



/* ------- COOKIE BAR ------- */

body #cookie-bar *,
body #cookie-bar{font-family:"Source Sans Pro",HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-family:"Source Sans Pro",HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif !important;font-weight:400;}
body #cookie-bar{padding:12px 0 13px;background:#e69632;}
body #cookie-bar p{font-size:1.2em;}
body #cookie-bar a{color:#fff;}
body #cookie-bar-button{padding:7px 15px 6px;color:#ffffff !important;font-family:"Source Sans Pro",HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif !important;font-weight:600;font-size:1.2em;text-decoration:none;background:#63a041;text-transform:none;-webkit-text-shadow:none;-moz-text-shadow:none;-ms-text-shadow:none;text-shadow:none;border:none;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;}

body a#cookie-bar-prompt-button:hover{color:#fff;text-decoration:underline;}
body a#cookie-bar-button:hover{color:#ffffff !important;text-decoration:none;background:#4a8728;border:none;}





