/*
 Theme Name:   Storefront Child - CAL
 Theme URI:    http://lunatechnw.com/
 Description:  Storefront Child Theme
 Author:       Tobin Fekkes, Peter Lama
 Author URI:   http://lunatechnw.com
 Template:     storefront
 Version:      1.5
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  storefront-child-cal
*/

.woocommerce-message {background-color:#1B9A48;}

/* Keeps the button from jumping around */
.button-primary:active {vertical-align:initial !important;}


/* Full width cover image. Offset margin of .col-full for all breakpoints. */
.entry-content .wp-block-cover.alignfull {
	margin-right: -2.617924em;
    margin-left: -2.617924em;
    width: auto;
}

/* Header */

#masthead {
	padding: 0;
	margin-bottom: 0;
	text-align: center;
	border-bottom: 2px solid #e5e5e5;
    position: fixed;
	width: 100%;
}

#masthead h1 {
	margin: 0px;
}

#masthead .site-branding {
	width: auto;
	margin: 0;
	float: none;
	display: flex;
	align-items: center;
}

#masthead .site-branding img {
	width: auto;
	height: auto;
	max-width: 210px;
	max-height: 80px;
}

#masthead .custom-logo-link {
	float: none;
	flex-shrink: 1;
	max-width: 210px;
	max-height: 80px;
}

#masthead > .col-full {
	display: flex;
	justify-content: space-between;
}

/* Navigation */

#masthead .storefront-primary-navigation {
	border: none;
	margin: 0;
	padding: 0;
	display: inline-block;
	clear: both;
	flex: 1;
}

#masthead .storefront-primary-navigation .col-full {
	margin: 0;
}

#site-navigation {
	float: none;
	width: auto;
	margin: 0;
	clear: both;
	display: inline-block;
	line-height: 100px;
}

#site-navigation ul.menu > li > a {
	padding: 0 10px 3px 10px;
	display: inline;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 18px;
}

#site-navigation ul.menu li.current-menu-item > a {
    padding-bottom: 0;
}

#site-navigation .primary-navigation {
	line-height: 100px;
	display: inline-block;
}

#site-navigation .primary-navigation ul {
    line-height: 20px;
}

#site-navigation button.menu-toggle {
	float: none;
	padding: 0 0 0 1.2em;
	text-transform: uppercase;
	font-weight: 600;
	border: none;
	border-radius: 0;
	background-color: transparent;
	font-size: inherit;
	line-height: 70px;
}

#site-navigation button.menu-toggle span:before,
#site-navigation button.menu-toggle:after,
#site-navigation button.menu-toggle:before {
	left: 0;
}

#menu-primary>li:first-child {
	margin-left: 0;
}

.primary-navigation ul.menu li {
	position: relative;
	display: inline-block;
	text-align: left;
}

nav.woocommerce-breadcrumb {
	margin-bottom: 2em;
	padding-top: 1em;
	padding-bottom: 1em;
}

#site-navigation.toggled .primary-navigation .menu {
	margin-left: -20em;
	margin-right: -20em;
	padding-left: 20em;
	padding-right: 20em;
}

#site-navigation.toggled .primary-navigation ul.menu li:not(.duplicate) {
	display: block;
}

#site-navigation.toggled .primary-navigation ul.menu > li > a {
	padding: .875em 0;
	display: block;
	text-transform: none;
	font-weight: 400;
	font-size: 1em;
}

/* My Acount mobile menu */
.account-menu-mobile {
	display: none;
	clear: both;
	position: relative;
	text-align: left;
}

.account-menu-mobile .dropdown-button {
	display: flex;
	padding: 3px 20px;
	background-color: #f5f5f5;
	border-top: 2px solid #e5e5e5;
	align-items: center;
}

.account-menu-mobile .dropdown-title {
	flex: 1;
	font-weight: bold;
}

.account-menu-mobile .dropdown-title > .dashicons-menu {
	margin-right: 5px;
	vertical-align: text-bottom;
}

.account-menu-mobile .dropdown-container {
	display: none;
	position: absolute;
	width: 100%;
	margin-top: 2px;
	background-color: #ffffff;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3);
	overflow-y: auto;
}

.account-menu-mobile nav.woocommerce-MyAccount-navigation {
	margin: 0;
	width: 100% !important;
	border: none !important;
}

.account-menu-mobile nav.woocommerce-MyAccount-navigation ul {
	margin: 0;
}

.account-menu-mobile nav.woocommerce-MyAccount-navigation ul li {
	padding: 0 !important;
	list-style: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.account-menu-mobile nav.woocommerce-MyAccount-navigation ul li a {
	display: block;
    padding: 15px 20px;
    cursor: pointer;
}

/* Header buttons */

.header-button-wrapper {
	float: right;
	height: 100px;
	/*width: 140px;*/
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-cart-contents {
	position: relative;
	margin-left: 0.625em;
}

.header-cart-contents .fa-shopping-cart {
	font-size: 1.875em;
}

.header-cart-contents .count {
	display: inline-block;
	box-sizing: content-box;
	background-color: red;
    position: absolute;
    top: -0.63em;
    right: -0.9em;
    height: 1.4em;
    width: 1.4em;
    line-height: 1.3em;
    font-size: 0.75em;
    text-align: center;
    border-radius: 100%;
    border: 2px solid #fff;
    color: #fff;
}

.header-cart-contents .header-button-label {
	padding-left: 0.375em;
}

.header-button-label {
	display: block;
	margin-top: -0.4375em;
	font-size: 0.875em;
	line-height: normal;
	text-align: center;
}

.header-account-button {
	display: block;
	margin-left: 1em;
}

.header-account-button .fa {
	font-size: 1.5em;
}

.header-search-button {
	padding-top: 0.125em;
}

.header-search-button .fa {
	font-size: 1.5em;
	padding-bottom: 0.25em;
}

.site-header .button {
	padding: 5px 10px;
	line-height: normal;
	border-radius: 3px;
}

/* body */


/* Page */

/* clear styles for site origin page builder */
.panel-layout h1,
.panel-layout h2,
.panel-layout h3,
.panel-layout h4,
.panel-layout h5,
.panel-layout h6,
.panel-layout p,
.panel-layout a {
	color: inherit;
}

.panel-layout .widget h1,
.panel-layout .widget h2,
.panel-layout .widget h3 {
	color: #333;
	font-weight: inherit;
}
.panel-layout .homepage-featured-image h1 {
	color: #fff;
}

.numbered-feature-list > p {
	counter-increment: list-counter;
	position:relative;
	margin-left:3.5em;
	margin-bottom: .875em;
}

.numbered-feature-list > p:before {
	content: counter(list-counter);
	font-weight: bold;
	width: 2.5em;
	float:left;
	line-height: 2.5em;
	background-color: #ff6f24;
	text-align: center;
	border-radius: 50%;
	color: #fff;
	position:absolute;
	top:.375em;
	left:-3.5em
}

.numbered-feature-list:first-child {
	counter-reset: list-counter;
}

.site-main p {
	font-size: 1.125em;
}

.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4 {
	font-weight: 400;
}

body:not(.home) .site-main {
	/* Add comfortable spacing between header and content (except on homepage for header image) */
	margin-top: 2em;
}

.storefront-full-width-content #primary .woocommerce-products-header,
.storefront-full-width-content #primary .entry-header {
	padding-bottom: 1em;
}

img.attachment-shop_catalog {
	border-radius: 3px 3px 0px 0px;
}

.site-main li.product {
	padding-bottom: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.site-main .button {
	border-radius: 4px;
	text-transform: uppercase;
}

.added_to_cart.wc-forward:after {
	display: none;
}

.category-sidebar .widget .widget-title {
	font-weight: 400;
	padding-bottom: 0.625em;
	border-bottom: 1px solid #ddd;
}

.shop_table.cart {
	border-top: 1px solid #ddd;
}

.shop_table.cart td.product-remove,
.shop_table.cart th.product-remove {
	border-left: 1px solid #ddd;
}

.shop_table.cart td.product-subtotal,
.shop_table.cart th.product-subtotal {
	border-right: 1px solid #ddd;
}

.shop_table.cart .cart_item td,
.shop_table.cart th {
	border-bottom: 1px solid #ddd;
}

.woocommerce .cart-collaterals .cart_totals .shop_table {
	border: 1px solid #ddd;
}

.woocommerce-checkout .entry-title {
	border-bottom: 1px solid #eee;
}

.checkout .flex-address-child {
	text-align: left;
}

/* Header is fixed, so content needs margin to move below header */
#content {
	margin-top: 102px;
}

/* Screen specific */

@media (max-width: 959px) {
	.header-button-wrapper {
		height: 70px;
	}

	#masthead .custom-logo-link, #masthead .custom-logo-link img {
		max-width: 120px;
		max-height: 50px;
	}

	#site-navigation, #site-navigation .primary-navigation {
		line-height: 70px;
	}

	#site-navigation ul.menu > li > a {
		display: inline-block;
		font-size: 12px;
	}

	/* Match header height */
	#content {
		margin-top: 72px;
	}

	.site-branding .site-title a {
		font-size: 1.0em;
	}
}

@media (max-width: 768px) {
	#site-navigation {
		line-height: normal;
	}

	#site-navigation .primary-navigation {
		display: none;
	}

	.primary-navigation ul.menu li.duplicate {
		display: none;
	}

	.menu-toggle {
		display: inline-block;
	}

	.site-branding .site-title a {
		font-size: 0.7em;
	}

	#main .woocommerce nav.woocommerce-MyAccount-navigation {
		display: none;
	}

	.account-menu-mobile {
		display: block;
	}

	.woocommerce-account .site .site-content {
		margin-top: 50px;
	}
}

@media (max-width: 568px) {
	.entry-content .wp-block-cover.alignfull {
		margin-left: -1.41575em;
		margin-right: -1.41575em;
	}

	.site-branding .site-title a {
		font-size: 0.5em;
	}
}

.hentry .entry-content .wp-block-cover .wp-block-cover__inner-container p {
	background-color: rgba(45,45,45, 0.5);
	border-radius: 15px;
}

/* Set color for map info window to avoid inheriting white */
.gm-style-iw {
	color: #333333;
}

/* Hide focus outline because it overlaps text */
.gm-style-iw button[title="Close"]:focus {
	outline: none;
}

/* Shop page */

.woocommerce-page select {
	color: #2c3338;
    border-color: #8c8f94;
    border-radius: 4px;
    padding: 0 24px 0 8px;
    min-height: 30px;
    -webkit-appearance: none;
    background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;
    background-size: 16px 16px;
    cursor: pointer;
    vertical-align: middle;
}

.storefront-sorting.storefront-sorting-top {
	margin-bottom: 1.6em;
}

.storefront-sorting-top .woocommerce-ordering {
	float: right;
	margin: 0;
}

.storefront-sorting-top .woocommerce-result-count {
	float: left;
	margin: 0;
}
.storefront-sorting-top::after {
	content: "";
	display: table;
	clear: both;
}

.site-main ul.products {
	display: flex;
	flex-wrap: wrap;
	margin: -1em -1em 2em 0;
}

.site-main ul.products li.product {
	flex:1 0;
	display: flex;
	flex-direction: column;
	margin: 1em 1em 0 0 !important;
	float: none !important;
	width: auto !important;
}

.site-main ul.products.columns-6 li.product {
	flex-basis: calc(16.6% - 1em);
	max-width: 16.6%;
}

.site-main ul.products.columns-5 li.product {
	flex-basis: calc(20% - 1em);
	max-width: 20%;
}

.site-main ul.products.columns-4 li.product {
	flex-basis: calc(25% - 1em);
	max-width: 25%;
}

ul.products li.product .add_to_cart_button, ul.products li.product .product_type_grouped {
	margin-top: auto;
	margin-left: auto;
	margin-right: auto;
}

ul.products li.product .woocommerce-loop-product__link {
	padding: 1em 1em 0;
}

/* getbowtied slider */
.wp-block-getbowtied-carousel .swiper-container-autoheight .swiper-slide,
.wp-block-getbowtied-carousel .swiper-wrapper .swiper-slide ul.products {
	height: 100%;
}

.site-main .wp-block-getbowtied-carousel .swiper-wrapper .swiper-slide ul.products li {
	display: flex;
}

.wp-block-getbowtied-carousel .swiper-wrapper .swiper-slide ul.products li.product {
	padding-bottom: 1em;
	margin: 0 !important;
}

.wp-block-getbowtied-carousel .swiper-container {
	position: initial;
}

.site-main .wp-block-getbowtied-carousel .swiper-container-horizontal > .swiper-pagination-bullets {
	margin-top: 0;
}

.wp-block-getbowtied-carousel .swiper-navigation-container .swiper-button-next {
    transform: translateX(-70px);
}

.wp-block-getbowtied-carousel .swiper-navigation-container .swiper-button-prev {
    transform: translateX(70px);
}

@media (max-width: 1024px) {
	.site-main ul.products.columns-5 li.product {
		flex-basis: calc(25% - 1em);
		max-width: 25%;
	}
}

@media (max-width: 768px) {
	.site-main ul.products li.product {
		flex-basis: calc(33.3% - 1em) !important;
		max-width: 33.3% !important;
	}
}
@media (max-width: 568px) {
	.site-main ul.products {
		margin: -0.5em -0.5em 2em 0 !important;
	}
	.site-main ul.products li.product {
		flex-basis: calc(50% - 0.5em) !important;
		max-width: 50% !important;
		margin: 0.5em 0.5em 0 0 !important;
		padding-bottom: 0.25em;
	}
	ul.products li.product .woocommerce-loop-product__link   {
		padding: 0.5em 0.5em 0;
	}

	.wp-block-getbowtied-carousel .swiper-wrapper .swiper-slide ul.products li.product {
		padding-bottom: 0.25em;
		margin: 0 !important;
	}
}

@media (max-width: 468px) {
	ul.products li.product .add_to_cart_button, ul.products li.product .product_type_grouped {
		padding: 0.3em 1em;
		font-size: 15px
	}
}

.wp-block-getbowtied-carousel .swiper-wrapper .swiper-slide ul.products li.product {
	flex-basis: auto !important;
	max-width: 100% !important;
}

.site-main .wp-block-getbowtied-carousel .swiper-button-next, .wp-block-getbowtied-carousel .swiper-button-prev {
	display: block;
}

.wp-block-getbowtied-carousel .swiper-wrapper .swiper-slide ul.products {
	margin: 0 !important;
}
