/*!
Theme Name: wp5
Theme URI: http://them.es/starter-material
Author: Kris
Author URI: http://them.es/
Description: Description
Version: 2.4.0
Requires at least: 5.0
Requires PHP: 7.0
License: GPL version 2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: wp5
*/

/* Don't overwrite this file. Compile "main.(less|scss)" to "/css/main.css" */


/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}


/******************************/
/** Custom styles **/

/* Search results, Archive, Blog pages */
.search main .mdc-layout-grid__inner:first-child,
.archive main .mdc-layout-grid__inner:first-child,
.blog main .mdc-layout-grid__inner:first-child {
    max-width: 1200px;
    margin: 0 auto 3%;
}
.search article,
.archive article,
.blog article {
    color:#333;
	font-weight: 300;
	font-size: 1rem;
	font-size: 16px;
	line-height:1.6;

}
.search h1.page-title,
.archive h1.page-title,
.blog h1.page-title {
    color:#444;
	font-weight: 300;
    font-size: 1.4em;
    font-family:inherit;
}
.search h1.page-title span,
.archive h1.page-title span,
.blog h1.page-title span {
	font-weight: 700;
}
.search h2.mdc-card__title-text,
.archive h2.mdc-card__title-text,
.blog h2.mdc-card__title-text{
    font-size: 1.2rem;
    margin: auto;
    padding-bottom: 5px;
}
.search h2.mdc-card__title-text a,
.archive h2.mdc-card__title-text a,
.blog h2.mdc-card__title-text a{
    font-weight: 700;
    
}
.search .post-thumbnail,
.archive .post-thumbnail {
	max-width: 64px;
    margin-right: 10px;
    float: left;
}
.blog .post-thumbnail {
    max-width: 100%;
    margin-right: 2%;
    float: left;
    width: 50% !important;
    display: inline-block;
}
.read-more {
	padding: 10px 0 0;
	margin: 0;
}
.read-more a {
    color: #999;
    text-transform: none;
    text-decoration: none;
    font-weight: 300;
}
.read-more a:hover {
    color: #333;
    text-decoration: underline;
}
.single h1.entry-title,
.single .post-thumbnail {
	text-align: center;
	margin-top: 0.8em;
}
.single .post-thumbnail {
	max-height: 320px;
    overflow: hidden;
    display: flex;
    text-align: center;
}
.single .post-thumbnail img {
    height: 100%;
    align-self: center;
    margin: 0 auto;
}

/* Header */
.mdc-top-app-bar__row, header.mdc-top-app-bar--fixed-scrolled {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);

}

/* Mega Menu */
ul.mega-menu {
/*	display:flex;
	position: relative;
	padding: 0;
	margin: 0;
	list-style: none; */
	display:flex;
	position: relative;
	top:auto;
	left:0;
	right:0;
	padding: 0;
	margin: 0;
	list-style: none;
}
ul.mega-menu li {
	position:static;
	padding: 0;
	list-style: none;
}
ul.mega-menu li a {
	display:flex;
	position:relative;
	align-items: center;
	justify-items:flex-start;
	padding: 0 2em;
	height: 60px;
	}
ul.mega-menu li ul {
	display:none;
	position:fixed;
	height: auto;
	width:100%;
	right: 0;
	left: 0;
	margin:0;
	padding: 1em 0;
	background:#F5F5F5;
	border-top: 1px solid #d6d6d6;
	box-shadow: 0 2px 4px 0 rgba(82, 82, 82, 0.3);
}
ul.mega-menu li ul li {
	display: inline-flex;
	align-items: flex-start;
	justify-items: flex-start;
	flex-wrap: wrap;
	flex-direction: column;
	margin: 0;
}
ul.mega-menu li ul li a {
	padding: 1em 2em;
	height: 32px;
	font-weight:bold;
}
ul.mega-menu li ul li ul {
	display: flex;
	position: static;
	width: auto;
	padding: 0;
	border:none;
	box-shadow: none;  
}
ul.mega-menu li ul li ul li {
	display: list-item;
	position: relative;
	list-style-type: none;
}
ul.mega-menu li ul li ul li a {
	font-weight:normal;
}
ul.mega-menu li:hover ul {display:block;}
ul.mega-menu li ul li:hover ul {}

.mdc-top-app-bar--fixed ul.mega-menu li ul {top: 64px;}
.mdc-top-app-bar--fixed-scrolled ul.mega-menu li ul {top: 64px;}
.admin-bar .mdc-top-app-bar--fixed ul.mega-menu li ul {top: 96px;}
.admin-bar .mdc-top-app-bar--fixed-scrolled ul.mega-menu li ul {top: 96px;}

@media screen and (max-width:782px;){
	.admin-bar .mdc-top-app-bar--fixed ul.mega-menu li ul {
		top: 152px;
	}
	.admin-bar .mdc-top-app-bar--fixed-scrolled ul.mega-menu li ul {
		top: 106px;
	}
}

/* switch mobile and desktop menu on screen size */
@media screen and (max-width: 1280px) {
    #mega-menu {display:none;}
}
@media screen and (min-width: 1281px) {
    #mobile-menu-icon {display:none;}
}

#mdc-mobile-drawer .mdc-drawer__header a.mdc-drawer-logo img {
	max-height: 48px;
}

/* Geolocation */
#geolocation {
	position:relative;
	box-shadow: 0 2px 4px 0 rgba(82, 82, 82, 0.3);
    z-index: 1;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}
#header.mdc-top-app-bar--fixed-scrolled #geolocation{
	opacity:0.5; 
	position:absolute; 
	top:-100%; 
	width:100%; 
}
#geolocation .content {margin: 10px auto;display: table;padding: 0 3em 0 1.5em;}
#geolocation .content-text {float:left;padding: 0 10px 0 0;}

#geolocation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
    background: white;
    padding: 0 4px;
    border-radius: 3px;
    border-color: #7b7b7b;
    border: 1px solid;
    color:#7b7b7b;
}
#geolocation ul li ul { border:none;}
#geolocation ul li ul li a span {
    font-size: 0.85rem;
    font: normal 0.85em system-ui;
}
#geolocation img.country-flag {
	height: 14px;
    width: 22px;
    cursor: pointer;
    padding: 0px;
    margin-bottom: 1px;
}
#geolocation button {
    margin:0 10px;
    padding:5px 8px;
    border-radius:3px;
    background-color: #fff;
    border-color:#7b7b7b;
    cursor:pointer;
    }
#geolocation .close {
    margin:0;
    padding:0;
    display:inline-block;
    background: white;
    border-radius: 3px;
    border-color:#7b7b7b;
    border:1px solid;
    width: 25px;
    height: 25px;
    text-align: center;
    position: absolute;
    right: 1em;
    top: 0.6em;
}

/* 404 page */
main .error404.not-found {
	text-align: center;
}
/* search form */
form#searchform .mdc-text-field--outlined:not(.mdc-text-field--disabled){
	background-color: rgb(255 255 255 / 0.75);
}
form#searchform button i {
	color: #000000;
}

/* firebase logins */
.firebase_login_woocommerce_account{
  	padding: 10px 15px 30px;
  	margin-left: 2%;
  	margin-right: 2%;
  	margin-top: 0;
  	margin-bottom: 5%;
}

#firebase-login-form label,
#firebase-register-form label {
	font-size: 0.9em;
    color: #333333;
    line-height: 2;
    display: block;
}

#firebase-login-form input[type="search"], 
#firebase-login-form input[type="email"], 
#firebase-login-form input[type="number"], 
#firebase-login-form input[type="url"], 
#firebase-login-form input[type="text"], 
#firebase-login-form input[type="tel"], 
#firebase-login-form input[type="password"],
#firebase-register-form input[type="search"], 
#firebase-register-form input[type="email"], 
#firebase-register-form input[type="number"], 
#firebase-register-form input[type="url"], 
#firebase-register-form input[type="text"], 
#firebase-register-form input[type="tel"], 
#firebase-register-form input[type="password"] {
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    outline: 0;
    height: 50px;
    padding: 0 1em;
    border-radius: 2px;
    line-height: normal;
    font-size: 14px;
}

/* Different mobile logo */
@media screen and (max-width: 900px) {
    img#logo-desktop {display:none;}
}
@media screen and (min-width: 901px) {
    img#logo-mobile {display:none;}
}

/* show hide on mobile */
@media screen and (max-width: 900px) {
    .on-desktop {display:none !important;}
}
@media screen and (min-width: 901px) {
    .on-mobile {display:none !important;}
}