/*
Theme Name: Temita 4Ever
Author: Martín Ríos
Version: 0.0
*/

:root{
	--pagewidth: 900px;
	--elverdequetegusta: #a0a529;
	--marroni: #8b6242;
}

body{
	margin: 0;
	font-family: 'Roboto', sans-serif;
	color: #717171;
	font-weight: 400;
}


/* HEADER STYLES */

header{
	padding: 10px;
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: #fff;
}

header > div{
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: var(--pagewidth);
	margin-left: auto;
	margin-right: auto;
}

h1{
	margin: 0;
}

h1 img{
	width: 150px;
}

@media screen and (min-width: 1025px){
	h1 img{
		width: 180px;
	}
}	

h2{
	color: var(--elverdequetegusta);
	font-weight: 400;
}

/* NAV STYLES */

nav{
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	align-items: center;
	justify-content: center;
	background-color: rgb(255 255 255 / 0.9);
	text-align: center;
}

nav.visible{
	display: flex;
}

@media screen and (min-width: 1025px){
	nav{
		display: flex;
		align-items: center;
		position: static;
	}
}

/* BURGER STYLES */

.burger{
	background-color: transparent;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	border: none;
	-webkit-appearance: none;
	width: 40px;
	height: 20px;
	position: relative;
	right: 0;
	z-index: 1000;
}
	.burger span{
		height: 3px;
		border-radius: 5px;
		background-color: var(--elverdequetegusta);
	}

@media screen and (min-width: 1025px){
	.burger{
		display: none;
	}
}


/* MENU STYLES */


.menu{
	padding: 0;
	list-style: none;
	font-size: 200%;
}

@media screen and (min-width: 1025px){
	.menu{
		display: flex;
		font-size: 100%;
	}
}



.menu a{
	display: block;
	padding: 10px 20px;
	text-decoration: none;
	color: var(--marroni);
	border-radius: 25px;
}

.menu a:hover,
.current_page_item a{
	color: var(--elverdequetegusta);
}


/* SEARCHFORM STYLES */


.search-button{
	border: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-color: transparent;
	color: var(--elverdequetegusta);
	font-size: 20px;
	display: none;
}

.searchform{
	position: absolute;
	right: 0;
	top: 100%;
	display: none;
}
	.searchform--visible{
		display: block;
	}

	.searchform label{
		display: none;
	}

	.searchform > div {
		display: flex;
	}
	.searchform input[type="text"]{
		border-radius: 25px;
	}
	.searchform input[type="submit"]{
		color: #fff;
		background-color: var(--elverdequetegusta);
		border-radius: 25px;
		cursor: pointer;
		border: none;
	}

/* MAIN STYLES */

.container{
	max-width: var(--pagewidth);
	margin-left: auto;
	margin-right: auto;
	padding-left: 10px;
	padding-right: 10px;
}

/* FOOTER STYLES */

footer{
	background-color: var(--elverdequetegusta);
	color: #fff;
	padding: 10px;
	margin-top: 30px;
	text-align: center;
}

.page-id-224 footer{
	margin-top: 0;
}

footer > div {
	max-width: var(--pagewidth);
	margin-left: auto;
	margin-right: auto;
	/*display: flex;
	justify-content: space-between;*/
}

footer a {
	color: inherit;
}


/* PRODUCT STYLES */

.title-bar{
	display: grid;
	grid-template-columns: auto 5fr 2fr 45px;
	background-color: var(--marroni);
	color: white;
	padding: 5px 0;
	margin-bottom: 5px;
    gap: 10px;
    font-size: 14px;
	&::before{
		content: "";
		width: 40px;
	}
	div:nth-child(2){
		display: none;
		@media (width > 768px){
		    display: block;
		}
	}
	@media (width > 768px){
	    grid-template-columns: auto 3fr 2fr 2fr 1fr;
	    font-size: 16px;
	}
	span{
	    display: none;
	    @media (width > 768px){
	        display: inline;
	    }
	}
	div:last-child::after,
	div:nth-last-child(2)::after{
	    content: ".";
	    @media (width > 768px){
	        content: none;
	    }
	}
}

.title-bar > div{
	padding: 2px;
}

#modal-content {
    display: grid;
    gap: 20px;
    @media (width>1024px){
        grid-template-columns: repeat(2, 1fr);
    }
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.fancybox-button{
    color: white !important;
    background-color: var(--elverdequetegusta) !important;
    svg{
        scale:1.4;
    }
}        

.product__row{
	align-items: center;
	display: grid;
	grid-template-columns: auto 5fr 2fr 1fr;
	background-color: #f5f5f5;
	gap: 10px;
	transition: background 300ms, color 500ms;
	margin-bottom: 5px;
	.placeholder, img{
	    display: block;
	    width: 45px;
	    height: 45px;
	    background-color: grey;
	    object-fit: cover;
	    object-position: cover;
	}
	a + div {
	    display: grid;
	    font-size: 14px;
	    line-height: 1.1;
        @media (width > 768px){
            grid-template-columns: 2fr 1.3fr;
            font-size: 16px;
        }
        div:last-child{
            @media (width <= 768px){
                font-weight: 700;
                font-size: 13px;
            }
        }
	}
	select{
	    padding: 3px 5px;
	}
}

.product__row.checked{
	background-color: var(--elverdequetegusta);
	color: white;
}

.product__row > div{
	padding: 2px;
}

.product__row:not(:last-child){
	/*border-bottom: solid 1px #999;*/
}

.product__row div:first-child{
	/*width: 30%;*/
}

.product__row div:nth-child(2){
	/*width: 15%;*/
	/*text-align: right;*/
}

.product__row div:last-child{
	/*flex-grow: 1;
	text-align: right;*/
}

.product__price:not(.product__price--active){
	display: none;
}

.section-revisar{
	padding-top: 30px;
	padding-bottom: 30px;
	background-color: var(--marroni);
	position: sticky;
	bottom: 0;
	text-align: center;
	@media (width < 768px){
	    padding-top: 15px;
	    padding-bottom: 15px;
	}
}

.section-revisar button, .section-revisar a{
	display: inline-block;
	color: #fff;
	border: solid 2px;
	padding: 10px 30px;
	text-decoration: none;
	background-color: transparent;
	appearance: none;
	font-size: 16px;
    font-weight: 700;
}

.section-revisar a{
    background-color: #25d366;
}
.summary__details > div{
	margin-bottom: 8px;
}

.summary__details strong{
	color: var(--marroni);
}

.fancybox-content{
    padding: 20px !important;
    width: calc(100% - 40px) !important;
    @media (width > 768px){
        padding: 30px !important;
        width: 760px !important;
        max-width: 95% !important;
    }
    > section{
        display: block !important;
    }
    ul{
        padding-left: 0;
    }
}

.btn-eliminar {
  color: tomato;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}





.item__row{
    /*
	display: flex;
	align-items: center;
	justify-content: space-between;
	*/
	font-size: 80%;
	position: relative;
	
	display: grid;
    grid-template-columns: 6fr 2fr 1fr;
    gap: 5px;
    align-items: start;
    
	> div:nth-child(2){
		margin-left: auto;
		/*margin-right: 10px;*/
		/*width: 50px;*/
		text-align: right;
		flex-shrink: 0;
	}
	select{
	    position: absolute;
	    left: 0;
	    top: -0.1px;
	    padding: 3px;
	    width: 40px;
	    font-size: 16px;
	    z-index: 10000;
	}
}

.item__row > div:first-child{
	/*font-size: 80%;*/
	margin-left: 45px;
}

.item__row > div:last-child{
	width: 80px;
	text-align: right;
	font-size: 80%;
}

.summary__total {
	border-top: solid 1px;
	border-bottom: solid 1px;
	text-align: center;
	padding: 10px;
	font-weight: 500;
}

.summary button:not([class="btn-eliminar"]),
.summary a{
	margin-top: 10px;
	outline: none;
	width: 100%;
	display: block;
	color: #fff;
	padding: 10px 30px;
	text-decoration: none;
	background-color: var(--elverdequetegusta);
	appearance: none;
	cursor: pointer;
	border: none;
	text-align: center;
	font-weight: 500 !important;
}
.summary a{
	color: var(--elverdequetegusta);
	background-color: transparent;
	border: solid 1px;
}

#whatsform {
    padding: 30px 0;
    min-width: 240px;
}

.wpcf7-form input, .wpcf7-form textarea, .wpcf7-form select,
#whatsform input, #whatsform select{
	width: 100%;
	border: solid 1px #ccc;
	font-family: helvetiva, arial, sans-serif;
	padding: 4px;
}

.wpcf7-form label, #whatsform label{
	display: block;
	margin-top: 10px;
}
.wpcf7-form br{
	display: none;
}

.wpcf7-form [type="submit"], #whatsform [type="submit"]{
	margin-top: 10px;
	outline: none;
	width: 100%;
	display: block;
	color: #fff;
	padding: 10px 30px;
	text-decoration: none;
	background-color: var(--elverdequetegusta);
	appearance: none;
	cursor: pointer;
}

/* TRANSITION */

main {
	transition: transform .28s, opacity .28s;
}
.slide-out main{
	transform: translate3d( 0, 100px, 0 );
	opacity: 0;
}
