/*
Theme Name: Ciao Bella
Author: DonPig
Author URI: https://donpig.com/
Description: Plantilla de wordpress a la medida para Ciao Bella
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: DonPigTemplate
*/

body{
	font-family: Poppins, Montserrat, Helvetica, sans-serif;
	text-align: center;
	margin:0 0 0 0;
	cursor:default;
	font-size: max(1vw,12px);
}
input[type="button"],button{
	border:none;
	background:none;
	font-size:1em;
	cursor:pointer;
}
img{
	border:none;
}
a{
	color: inherit;
	text-decoration: none;
}
*[onclick],*[href]{
	cursor: pointer;
}
textarea{
	resize:none;
}
.clr{
	clear:both;
}
.columnas2{
	-webkit-column-count:2;
	-moz-column-count:2;
	column-count:2;
}
.columnas3{
	-webkit-column-count:3;
	-moz-column-count:3;
	column-count:3;
}
.columnas4{
	-webkit-column-count:4;
	-moz-column-count:4;
	column-count:4;
}
.columnas5{
	-webkit-column-count:5;
	-moz-column-count:5;
	column-count:5;
}
.grid2{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 0;
}
.grid3{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 0;
}
.grid4{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 0;
}
.grid5{
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-gap: 0;
}
.flex{
	display: flex;
	flex-flow: row wrap;
	align-content: space-between;
	justify-content: space-between;
}
.flex>*{
	flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    text-align: center;
}

.site_error>div{
	margin: 0 auto;
	padding: 0.5em;
	color: #C44;
	border:#C44 solid 1px;
	background: #EDD;
	text-align: center;
	width: 50%;
	min-width: 280px;
	border-radius: 0.15em;
	font-weight:600;
}
.site_error{
	position: fixed;
	top:-20em;
	opacity: 0;
	z-index: 10;
	width: 100%;
	
	-webkit-animation: siteError 5s 1;
	-moz-animation: siteError 5s 1;
	animation: siteError 5s 1;
}

.site_success>div{
	margin: 0 auto;
	padding: 0.5em;
	color: #494;
	border:#494 solid 1px;
	background: #DED;
	text-align: center;
	width: 50%;
	min-width: 280px;
	border-radius: 0.15em;
	font-weight:600;
}
.site_success{
	position: fixed;
	top:-20em;
	opacity: 0;
	z-index: 10;
	width: 100%;
	
	-webkit-animation: siteError 5s 1;
	-moz-animation: siteError 5s 1;
	animation: siteError 5s 1;
}

@keyframes siteError{
	0%{opacity:1;top:5em;}
	90%{opacity:1}
	99%{opacity:0;top:5em;}
	100%{opacity:0;top:-20em;}
}

.hide_me{
	height: 0;
	width: 0;
	overflow: hidden;
	opacity: 0;
	font-size: 1px;
}

a,input,button,*[onclick],*[href]{
	transition: all .25s ease-in-out;
	cursor: pointer;
}

/* GENERALES */


header{
	position: fixed;
	top:0;
	left:0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-content: space-between;
	align-items: center;
	padding: 1em 2.5%;
	font-weight: 600;
	transition: all 0.25s ease;
	height: 3em;
	padding:1em 5%;
}
header.scrolled{
	background: white;
	padding: 0 5%;
	box-shadow: rgba(0,0,0,0.25) 0 0 0.25em;
}
header :is(menu,ul,li){
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	justify-content: end;
	align-content: end;
	align-items: center;
}
header menu{
	min-width: 60%;
}
header ul{
	gap:2em;
	min-width: 100%;
}
header menu>div{
	width: 100% !important;
}
#logo img{
	height:10em;
	translate: 0 4em;
	transition: all 0.25s ease;
}
header.scrolled #logo img{
	height: 5em;
	translate: 0 0.5em;
}
menu i.fa{
	font-size: 2em;
}
header ul li{
	padding: 0.5em;
	transition: all 0.25s ease;
}
header ul li:hover{
	box-shadow: #C44 0 -4px 0 0 inset;
}

#content h1,#content h2,#content h3,#content h4,#content h5,#content p,#content img,#content a,#content li{
	position: relative;
	top: 2em;
	opacity: 0;
	transition: all 0.5s ease-in-out;
}
#content{
	min-height: 90vh;
}
#home{
	background: linear-gradient(-27.5deg,white 49.9999%,#FF6 50%);
}
#menu{
	background: url(images/home_vectors_1.png) 2.5% bottom no-repeat fixed,url(images/home_vectors_2.png) 97.5% bottom no-repeat fixed;
	background-size: 10em auto,10em auto;
}

footer{
	padding: 2em 5%;
	background: black url(images/home_vectors_4_w.png) 95% center no-repeat;
	background-size: auto 90%;
	color: white;
	text-align: left;
}

li.product a.button{ display: none !important; }
#content>:is(.woocommerce,.alignwide){
	box-sizing: border-box;
	padding: 5%;
}
h2>b{
	font-weight: 800;
}
.categories_menu{
	padding: 1em 5%;
}
.categories_menu a{
	display: inline-block;
	font-size: 0.7em;
	text-transform: uppercase;
	background: #000;
	color: white;
	padding: 0.2em 1em;
	margin: 0 0.25em 0.5em;
	border-radius: 2em;
}

/* MODAL */

#modal{
	background:rgba(0,0,0,0.8);
	position:fixed;
	display:none;
	top:0;
	left:0;
	bottom:0;
	right:0;
	z-index:10;
	text-align:center;
}
#modal>div{
	width: max(35%,340px);
	max-width: 90%;
	padding: 1em;
	position: fixed;
	top:0;
	right:0;
	bottom:0;
	text-align:right;
	background: white;
}
#modal>div>i.fa-times-circle{
	font-size: 3em;
}
#modal iframe{
	background: white;
	border: none;
	display: block;
	width: 100%;
	height: 90vh;
	overflow: auto;
}
.woocommerce-tabs,.related.products{
	display: none !important;
}

input,select,textarea{
	box-sizing: border-box;
	width: 100%;
	max-width: 360px;
	border-radius: 0.5em;
	padding: 0.5em;
	font: inherit;
	background: #F8F8F8;
	color: #300;
	border:#CCC solid 1px;
}
button.button,a.button{
	width: 100%;
	background: #C32 !important;
	color: white !important;
	padding: 0.5em !important;
	border-radius: 2em !important;
	text-transform: uppercase !important;
	font-size:1.5em !important;
	margin-top: 1em !important;
}
button.button:hover,a.button:hover{
	background: #DDD !important;
	color: #C32 !important;
}
.quantity{
	font-size: 1.5em !important;
}
dl,dt,dd{
	text-align: left !important;
}
.summary>.price:first-child{
	display: none !important;
}
#content>h1{
	margin: 0;
	color:#C32;
}
.woocommerce-product-gallery__image--placeholder img{
	display: block;
	max-width: 50%;
	margin: 1em auto;
}

.wc-block-checkout{
	text-align: left;
}
.wc-block-checkout :is(input,select,textarea){
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
}
.wp-element-button{
	background: #C32;
	color: white;
	font: inherit;
	font-size: 1.25em;
	border-radius:2em;
	padding: 0.5em 2em;
}
.wc-block-checkout__terms{
	padding: 1em 0 !important;
	margin: 0 !important;
}
#content .alignwide{
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

footer small{
	color: #999;
	letter-spacing: 0.15em;
}
footer small a{
	color: white;
}

/* RESPONSIVO */

.mobile_only{
	display:none !important;
}

@media all and (max-width:960px){
	.mobile_only{
		display:block !important;
	}
	.desktop_only{
		display:none !important;
	}
	.columnas2,.columnas3{
		-webkit-column-count:1;
		-moz-column-count:1;
		column-count:1;
	}
	.columnas4{
		-webkit-column-count:2;
		-moz-column-count:2;
		column-count:2;
	}
	.columnas5{
		-webkit-column-count:3;
		-moz-column-count:3;
		column-count:3;
	}
	.grid2,.grid3,.grid4,.grid5,.flex{
		display: block;
	}
	.grid2mobile{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.grid3mobile{
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
	
	
	header{
		height:60px;
		padding: 0 1em !important;
		margin: 0;
		margin: 0;
		border-radius: 0;
		background: white;
		box-shadow: rgba(0,0,0,0.25) 0 0 0.5em;
	}
	#menu_opener{
		float:left;
		margin: 5px;
		width:50px;
		height:50px;
	}
	#menu_opener>div{
		height:2px;
		margin: 4px auto 0 auto;
		background: black;
		width: 36px;
		position: relative;
		opacity: 1;
		rotate: 0deg;
		left:0;
		top:0;
		transition: all 0.25s ease;
	}
	#menu_opener>div:first-child{
		margin-top: 14px;
	}

	#menu_opener.opened>div:nth-child(1){ top:9px; rotate:45deg; }
	#menu_opener.opened>div:nth-child(4){ top:-9px; rotate:-45deg; }
	#menu_opener.opened>div:nth-child(2){ left:50px; opacity: 0; }
	#menu_opener.opened>div:nth-child(3){ left:-50px; opacity: 0; }

	#logo{
		opacity: 1 !important;
	}
	#logo img{
		height: 60px !important;
		margin: 5px !important;
		translate: 0 0 !important;
	}

	header>menu{
		position: fixed;
		top:60px;
		background: black;
		backdrop-filter: blur(3px);
		color:white;
		left:0;
		right:0;
		line-height: 2em;
		font-size: 1.25em;
		text-transform: uppercase;
		padding: 2em !important;
		display: none;
	}
	menu ul{
		flex-direction: column;
	}
	#content{
		margin-top: 60px;
	}

	#menu{
		background: white;
	}
	footer{
		background: black;
	}
}