/*
Theme Name: Torta Caluga - Storefront Child
Theme URI: https://fernandogutz.com/
Description: Child theme basado en Storefront
Author: FernandoGutz
Author URI: https://fernandogutz.com/
Template: storefront   
Version: 1.0
*/

* {
  scroll-behavior: smooth;
}

#qodef-back-to-top {
	display: none !important
}

.optional {
    display: none;
}

a {
    color:#B79B4C;
}

h1, section > h2 {
    text-transform: uppercase;
}

button {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
}

.storefront-breadcrumb {
	display:none
}

.woocommerce-info, .woocommerce-message, .woocommerce-noreviews {
    background-color: #B79B4C;
}

.woocommerce-MyAccount-navigation-link a{
	color: #B79B4C;
}

#masthead {
	margin-bottom:0;
	padding-top: 32px
}

.entry-header, .woocommerce-products-header {
	padding-top: 24px !important;
	padding-bottom: 24px !important;
}

.entry-title, .page-title, .woocommerce-Tabs-panel h2, .products > h2 {
	font-family: Cormorant;
	font-weight: 400;
	font-size: 3.4em !important;
	color: #B79B4C;
	line-height: 1em;
}

#main > .product {
	padding-top: 24px
}

.woocommerce-Tabs-panel h2, .products > h2 {
	font-size: 3em !important
}

.product_title {
	margin-bottom: 8px !important;
}

.price {
	margin-top: 0px !important;
}



.woocommerce-loop-product__title {
	color: #B79B4C;
	font-family: Cormorant;
	font-weight: 600 !important;
	font-size: 1.4em !important;
	padding: 0px 4px;
}

.add_to_cart_button, .product_type_variable, .product_type_simple {
	margin-top: 12px;
	width: 100%;
	display:none
}

.price {
	font-size: 1.2em
}

.flex-control-nav{
	display: flex;
	justify-content: flex-start;
	gap: 10px !important;
	margin: 0px -10px 0px -10px !important;
}


.flex-control-nav li{
	width: auto !important;
	margin: 0px !important;
	
}




* {
	outline: none !important;
}


select {
	    padding: 0.6180469716em;
    background-color: #f2f2f2;
    color: #43454b;
    border: 0;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
	width: 100%;
}




/* CHECKOUT */

#billing_country_field,
#billing_state_field {
  display: none !important;
  visibility: hidden !important;
}

#billing_city_field select {
  margin: 0 0 17px;
  width: 100%;
}

#billing_country_field,
#billing_state_field {
  display: none !important;
  visibility: hidden !important;
}

#billing_city_field select {
  margin: 0 0 17px;
  width: 100%;
}


/* Estilos para el campo de fecha */
#billing_delivery_date_fg, #e_deliverydate {
    padding: 0.6180469716em;
    background-color: #f2f2f2 !important;
    color: #43454b;
    border: 0;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
    /* Asegurarse de que el texto esté alineado correctamente */
    vertical-align: middle;
    line-height: 1.5;
}

/* Estilos para el selector de fecha desplegable */
#billing_delivery_date_fg::-webkit-calendar-picker-indicator {
    filter: invert(20%) sepia(52%) saturate(4115%) hue-rotate(189deg) brightness(91%) contrast(85%);
}



/* Select despacho - retiro */
.woocommerce.woocommerce-checkout form #billing_despacho_retiro+.select2,
.woocommerce-page.woocommerce-checkout form #billing_despacho_retiro+.select2,
.woocommerce.woocommerce-checkout form #billing_tienda_retiro+.select2,
.woocommerce-page.woocommerce-checkout form #billing_tienda_retiro+.select2 {
  width: 100% !important;
  padding: 0.6180469716em;
    background-color: #f2f2f2;
    color: #43454b;
    border: 0;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}

.select2-selection {
    background-color: transparent !important;
    margin: 0px !important;
    border: none !important;
}

.select2-container .select2-dropdown .select2-search.select2-search--dropdown, .select2-selection__clear {
  display: none !important;
}

/* Desktop layout */
@media (min-width: 922px) {

  .woocommerce.woocommerce-checkout form #customer_details.col2-set,
  .woocommerce-page.woocommerce-checkout form #customer_details.col2-set {
    width: 55%;
    float: left;
    margin-right: 4.347826087%;
    flex-direction: column;
  }

  .woocommerce.woocommerce-checkout form #customer_details.col2-set .col-1,
  .woocommerce.woocommerce-checkout form #customer_details.col2-set .col-2,
  .woocommerce-page.woocommerce-checkout form #customer_details.col2-set .col-1,
  .woocommerce-page.woocommerce-checkout form #customer_details.col2-set .col-2 {
    float: none;
  }

  .woocommerce.woocommerce-checkout form #order_review,
  .woocommerce.woocommerce-checkout form #order_review_heading,
  .woocommerce-page.woocommerce-checkout form #order_review,
  .woocommerce-page.woocommerce-checkout form #order_review_heading {
    width: 40%;
    float: right;
    margin-right: 0;
    clear: right;
  }
}

/* Shipping method */
.woocommerce-shipping-methods>li {
  display: flex;
  gap: 0.625rem;
}

.woocommerce-shipping-methods>li input {
  margin: 0;
}

/* Time checkout field */
#dtwc_delivery_time_field select {
  width: 100%;
}


.woocommerce-products-header__title{
	font-size: 5em !important
}

#menu-menu-categorias {
	list-style: none !important;
	display: flex !important;
	justify-content: center !important;
	gap: 8px !important;
	margin: 0 0 48px 0 !important;

}

#menu-menu-categorias li a{
	padding: 2px 6px !important;
	color: #515962 !important;
	border: 1px solid #e6e6e6 !important;
}

#menu-menu-categorias .current-menu-item a{
	background-color: #B79B4C !important;
	color: #ffffff !important;
	border: 1px solid #B79B4C !important;
}

.woocommerce-result-count {
	display: none;
}

.woocommerce-loop-product__title {
	font-size: 2em !important
}

.current-menu-item > a{
	color: #B79B4C !important;
	font-weight: bold
}

#masthead {
	padding-top: 12px;
}

#menu-menu > .menu-item > a{
	padding: 4px 16px 12px 16px !important;
	text-transform: uppercase;
	font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.cart-contents {
	padding: 4px 0px 12px 0px !important
}

@media (max-width: 800px) {
	#menu-menu-categorias {
	display: block !important;

}
	
	#menu-menu-categorias li{
	display: inline-block !important;
		margin: 0px 4px 4px 0px !important;

}
	
	.woocommerce-products-header__title{
	font-size: 3em !important
}
}




/*product*/
.variations > tbody > tr > th {
    display: none !important;
}

storefront-sticky-add-to-cart__content-button {
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}


/*header*/
#site-header-cart .cart-contents::after, #site-header-cart .cart-contents {
	display:block !important
}

#site-header-cart .cart-contents::after{
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    line-height: inherit;
    vertical-align: baseline;
    content: "";
    height: 1em;
    float: right;
    line-height: 1.618;

}

.storefront-primary-navigation .col-full {
	display: flex;
	justify-content: space-between
}

#site-navigation {
	display: flex;
	flex-direction: column;
}



.count {
	display: none
}

.woocommerce-Price-amount {
	margin-right: 8px
}


@media (max-width: 768px) {
	/* Logo + Search */
#masthead > .col-full {
	display: flex;
	justify-content: space-between !important;
}

.site-search {
	display: block;
	max-width: 100px;
}

.site-brand {
	display: block;
}
	
	#site-navigation-menu-toggle {
	display: inline-block;
	width: 88px;
	background: transparent;
	border-radius: 0;
	font-size: 13px;
	text-transform: uppercase;
	border: none;
    margin-left: -8px;
}
}


/* Shortcode productos */
.elementor-shortcode .products {
	display: grid;
grid-template-columns: auto auto auto auto;
}


.elementor-shortcode .products::before {
	display:none;
}

@media (max-width: 1018px) {
	.elementor-shortcode .products {
	display: grid;
grid-template-columns: auto auto;
}
}

@media (max-width: 718px) {
	.elementor-shortcode .products {
	display: block;
}
}


/* buy now button */
@media (max-width: 460px) {
  .wpcbn-btn-single {
    margin-top: 12px !important;
  }

  .woocommerce-Reviews-title, 
  .woocommerce-Reviews-title h2 {
    font-size: 32px !important;
    font-weight: 500;
  }
}


.ywgc_have_code {
    display: none !important;
}


.products .star-rating {
  display: none;
}

/* Nuevo template producto */
.woocommerce-Reviews .review {
  background-color: #f7f7f7;
  padding: 16px;
}

.woocommerce-Reviews-title {
  margin-top: 40px;
  font-family: Cormorant;
	font-weight: 400;
	font-size: 2.8em;
	color: #B79B4C;
  text-align: center;
  text-transform: uppercase;
}

#reviews .comment__qualification {
  display: none;
}

/* Estilos para los toggles */
.container__toggles {
  margin-top: 20px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
}

.toggle__card {
  margin-bottom: 20px;
  overflow: hidden;
}

.toggle__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  background-color: #f7f7f7;
}

.toggle__title h3 {
  margin: 0;
  font-family: Cormorant;
	font-weight: 500;
	font-size: 28px;
	color: #B79B4C;
  text-transform: uppercase;
}

.toggle__title i {
  font-size: 20px;
	color: #B79B4C;

}

.toggle__content {
  display: none;
  padding: 10px;
  background-color: #fff;
  border: 3px solid #f7f7f7;
  border-top: none;
  margin-top: -4px;
  opacity: 0;
  /* para que allow-discrete funcione se requiere de 2 selectores para el mismo elemento: 
    1) tener un lugar para dar estilo de display true (.toggle__display) en este caso
        a este elemento le pones display block y opacity 1
        y a este elemento le pones @starting-style opacity:0, esto hara que no se ponga el opacity 1 inmediatamente, sino que parte en 0
    2) tener un lugar para dar estilo de display false (.toggle__content)
        a este elemento le pones display none, opacity 0.
    3) poner transition opacity 400ms y transition display 400ms allow-discrete en el selector que siempre permanecera con el elemento, esto permite 2 cosas
        - el starting-style opacity 0 tardara 400ms en pasar a opacity 1
        - el display none o display block tardara 400ms desde que se presiona hasta que cambia realmente, esto le da tiempo al opacity para verse bien, durante todos esos 400ms.
        - entonces, aparte del opacity, puedes configurar todas las propiedades que necesites, y mostrarlas en esa ventana de tiempo
  */
  transition: opacity 400ms , display 400ms allow-discrete;
}

.toggle__display {
  display: block;
  opacity: 1;

  /* Para que no se muestre de golpe, se pone opacity 0 en starting styele y se pone transition 400ms a la opacity.
    seria genial ponerle allow-discrete al transition opacity, pero al parecer solo funciona con las propiedades de true o false, como el display.
    pero para ello puedes usar el starting style, te permite poner un estilo de inicio
  */
  @starting-style {
    opacity: 0;
  }
}

.woocommerce .star-rating span:before,
.woocommerce .star-rating:before,
.star-1, .star-2, .star-3,.star-4 ,.star-5
{
    font-weight: 900 !important;
}
