/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

@font-face {
    font-family: 'Italiana';
    src: url('fonts/Italiana-Regular.woff2') format('woff2'),
        url('fonts/Italiana-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.thumbnail-carta {
	padding-bottom: 56%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#filtros {
	flex-direction: row;
    display: flex;
}

#filtros > div {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 0;
}

#filtros > div span {
    padding: 0px 6px 0px 22px;
    border-radius: 21px;
    border: 1px solid #CCC;
    margin: 0 4px;
    color: #FFF;
    display: flex;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5em;
	margin-bottom: 4px;
}

#filtros > div span:not(.active) {
    opacity: 0.5;
}

#filtros > div span img {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100%;
}

#filtros h2 {
    text-align: center;
    font-size: 14px;
    color: #FFF;
    line-height: 1.2em;
    font-weight: 300;
    padding-right: .5em;
}
.section-platos {
	position: relative;
}
.section-platos::after {
	position: absolute;
    content: '';
    height: 100%;
    right: 100%;
    top: 0;
    background: #000;
    width: 150vw;
    left: -25vw;
    z-index: -1;
}
.section-platos::before {
	position: absolute;
	content: '';
	height: 100%;
	left: 100%;
	top: 0;
	background: #000;
	width: 100%;
}
.title-filters-carta {
    text-align: left;
    color: #FFF;
    margin-bottom: 1em;
	font-size: 24px;
	font-family: 'Italiana';
}
.title-filters-carta img {
	max-height: .6em;
	width: auto;
	margin-left: .2em;
}
.section-platos {
	background: #000;
}
.filtre-second-title {
	padding-left: 30px;
}
#platos h3 {
    text-align: center;
    color: #FFF;
    font-size: 30px;
    font-weight: bold;
    font-family: 'Italiana';
    line-height: 1.2em;
	margin-bottom: 1em;
}
#platos h2 {
	text-align: center;
    color: #FFF;
    font-weight: bold;
    font-size: 54px;
    line-height: 2em;
    border-bottom: 1px solid #cccccc7a;
    position: relative;
    margin-top: 1em;
	font-family: 'Italiana';
}
.slick-dots button {
	background: #ffffff38;
}
.slick-active button {
	background: #ffffff73;
}
.open-tab-carta {
    width: .5em;
    display: inline-block;
    height: .5em;
    border: 1px solid #CFB67B;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 0;
}
.open-tab-carta::before {
	position: absolute;
    content: '';
    height: .3em;
    width: 1px;
    background: #CFB67B;
    top: 50%;
    transform: translateY(-50%);
	display: none;
}
.open-tab-carta::after {
    position: absolute;
    content: '';
    height: .3em;
    width: 1px;
    background: #CFB67B;
    transform: translateY(25%) rotate(90deg);
}
.open-tab-carta.active::before {
	display: inline-block;
}
.plato {
  text-align: center;
  color: #FFF;
  font-size: 46px;
  margin-top: 30px;
  font-family: 'Italiana';
  line-height: 1.2em;
}

.wrapper-item-detail {
    padding: 4em 0 4em 0;
}

#platos .slick-dots {
    list-style: none;
    display: flex;
    justify-content: center;
    padding-top: 2em;
    margin: 0;
    gap: 5px;
}

.slick-dots button {
    list-style: none;
    display: flex;
    justify-content: center;
    padding-top: 2em;
    margin: 0;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: none !important;
    font-size: 0;
    width: 50px;
    height: 4px;
}

.slick-dots li:marker {
    display: none;
}

.slick-dots li {
    list-style: none;
}

.slick-slide {
    padding: 0 4px;
}
.price-plato {
    text-align: center;
    display: flex;
    justify-content: center;
}

.wrapper-thumbnail-carta {
    position: relative;
    overflow: hidden;
}

.wrapper-thumbnail-carta .datos-plato-hover {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    padding: 2em;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateY(100%);
    transition: all .3s ease;
}

.description-plato {
    color: #FFF;
    line-height: 1.2em;
    text-align: center;
    margin-bottom: 1em;
    font-size: 28px;
    max-width: 90%;
}

.item-plato-carta:hover .wrapper-thumbnail-carta .datos-plato-hover {
    transform: translateY(0%);
}

.alergenos-plato {
    display: flex;
    gap: 5px;
}

.alergeno-img {
    height: 30px !important;
    width: 30px;
}

.title-alergenos {
    color: #FFF;
	font-size: 22px;
}

#current-preferencias {
	display: flex;
    justify-content: center;
    border-top: 1px solid #cccccc54;
    padding-top: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 4px;
    width: 80%;
}

#current-preferencias span {
    padding: 0px 8px 0px 36px;
    border-radius: 21px;
    margin: 0 4px;
    color: #FFF;
    display: flex;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    line-height: 30px;
}

#current-preferencias span:not(.active) {
    opacity: 1;
}

#current-preferencias span img {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100%;
}

.wrapper-item-detail .slick-list {
	overflow: visible;
}

.page-id-8146 #page-header-bg h1 {
	font-family: 'Italiana' !important;
}

/* stiky carta */

  .section-platos {
    position: relative;
  }
  

  .section-platos.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

  }

  .section-platos-placeholder {
    display: none;
    height: 0;
    transition: height 0.3s ease;
  }
  
  .section-platos.sticky + .section-platos-placeholder {
    display: block;
    height: var(--section-height);
  }

.section-platos.sticky::before {
	position: absolute;
    content: '';
    background: #000;
    width: 150vw;
    left: -25vw;
    top: -100%;
}
	.section-platos.sticky .title-filters-carta {
		margin-bottom: 0;
	}

@media (max-width: 768px) {
    .item-plato-carta .wrapper-thumbnail-carta .datos-plato-hover {

    }
	#filtros {
		flex-direction: column;
		display: flex;
	}
	.page-id-8146 #page-header-bg h1 {
		font-size: 24px;
	}
	#page-header-bg .subheader {
		font-size: 16px;
	}
	#platos h2 {
		font-size: 40px;
	}
	#platos h3 {
		font-size: 22px;
	}
	.description-plato {
		font-size: 14px;
	}
	.thumbnail-carta {
		padding-bottom: 70%;
	}
	.title-alergenos {
		font-size: 14px;
	}
	#current-preferencias span {
		padding: 0px 8px 0px 26px;
		line-height: 20px;
	}
	.alergeno-img {
		height: 20px !important;
		width: 20px;
	}
	.plato {
		font-size: 28px;
	}
	.section-platos.sticky .title-filters-carta {
		margin-bottom: 0;
	}
	.section-platos.sticky {
		max-width: 88%;
	}
}