/**
Theme Name: Fco y Javier Joyeros
Author: Fco y Javier Joyeros
Author URI: https://fcoyjavierjoyeros.com
Description: Child theme based on Astra, fully customizied with speed, personalized visuals and security in mind.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fco-y-javier-joyeros
Template: astra */

/*******************************************************/
/*  Márgenes laterales de la lista de productos        */
/*  en los 3 tamaños de pantalla: 544px, 921px y resto */
/*******************************************************/

/* productos individuales - ruleset eliminado por estar vacío */

.woocommerce-page.columns-4 ul.products li.product:nth-child(4n),
.woocommerce.columns-4 ul.products li.product:nth-child(4n) {
  margin-right: 0;
}

@media (max-width: 921px) {
  /* Arreglo para la hamburguesa cambiando de linea */
  .ast-header-break-point.ast-woocommerce-cart-menu
    .header-main-layout-2.ast-mobile-header-inline
    .site-branding {
    flex: 1 1 50%;
  }

  .ast-header-break-point .woocommerce-custom-menu-item .ast-cart-menu-wrap {
    font-size: 100%;
  }

  .header-search-icon {
    width: 20px;
    cursor: pointer;
    align-self: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aa0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px 10px;
    flex: 0 0 45px;
  }

  #submit_redsys_payment_form {
    min-width: 70%;
  }
}

@media (max-width: 544px) {
  /* Quitar margen del preheader y del banner en móvil */
  .pre-header,
  .wrap-banner {
    margin: 0 -10px;
  }
}

/*Fin de media queries para margenes lista productos*/
/****************************************************/

/*Cesta a la derecha*/
.ast-main-header-bar-alignment {
  max-width: 89%;
}

/*Espacios superior e inferior del contenido principal*/
.site-content {
  padding-bottom: 25px;
}

/*Márgenes exteriores del container de la lista de productos*/
.ast-container {
  padding-left: 10px;
  padding-right: 10px;
}

/* Titulo de los productos en una linea, terminando en ... si no cabe*/
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.ast-loop-product__link, .wc-block-grid__product-link {
	display: block !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  text-align: center;
}

/* Botones del listado de productos */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.add_to_cart_button {
  margin: 0 auto;
  display: block;
  text-align: center;
  /*max-width: max-content;*/
  background-color: inherit;
  color: inherit;
  border-width: 1px;
  transition-duration: 0.1s;
  /*padding: 12px 50px;*/
  min-width: max-content;
  border-color: rgb(155, 155, 155);
  color: rgb(155, 155, 155);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
  background-color: #6f2525;
  border-color: #6f2525;
  color: white;
}

/* Estilos de producto individual */
div.summary {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Cabecera reaparece al scroll up */
.site-header {
  transition: all 0.5s ease-in-out;
  padding-top: 5px;
}

.content-down {
  padding-top: 101px;
}

.header-sticky {
  position: fixed;
  width: 100%;
  top: 0;
  max-height: 30px;
}

/* Minizoom en productos en listado */
li.product a {
  overflow: hidden;
}

li.product a img,
.wc-block-grid .wc-block-grid__products .wc-block-grid__product a img{
  transition: all 0.1s ease-in-out;
  margin-bottom: 0.8em;
  max-width: 300px;
  margin: 0 auto 0.8em !important;
}

li.product:hover a img {
  filter: brightness(1.05);
  transform: scale(1.05);
}

/* Sobreescribir márgenes cesta - Especificidad mejorada */
.ast-no-sidebar .entry-content .alignwide {
  margin: 0;
}

.ast-woocommerce-cart-menu .header-main-layout-2 .main-header-container {
  display: flex;
}

.ast-woocommerce-cart-menu .header-main-layout-2 .site-branding {
  padding-bottom: 0 !important;
  /* flex: 1 1 70% !important; */
}

#primary {
  margin: 0;
}

.menu-link {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.main-header-bar {
  line-height: 2.4;
}

/* Producto individual en desktop */
@media (min-width: 921px) {
  .woocommerce div.product {
    max-width: 90%;
    margin: 5% auto;
  }
}

/* Posicion formulario busqueda productos */
.top-product-search {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  margin-bottom: 5px;
}

@media (max-width: 921px) {
  .top-product-search {
    position: relative;
    top: auto;
    right: auto;
    display: none;
    order: 3;
    width: 100%;
  }
}

@media (max-width: 1130px) {
  .ast-woocommerce-cart-menu .header-main-layout-2 .site-branding {
    text-align: left;
    display: block;
  }
}

@media (min-width: 921px) {
  .top-product-search {
    display: block !important;
  }
}

@media (max-width: 1150px) {
  .eael-contact-form {
    margin: 0 auto !important;
  }
}

.menu-item-type-post_type {
  font-weight: 700;
}

.menu-item .menu-link:hover {
  background: #6f2525;
  color: white !important;
}

#redsys_payment_form {
  text-align: center;
}

.woocommerce ul.order_details li {
  min-width: 150px;
  margin-bottom: 15px;
}

#redsys_payment_form .button {
  margin: 0 auto;
  text-align: center;
  max-width: max-content;
  background-color: white;
  border-width: 0px;
  min-width: max-content;
  color: rgb(155, 155, 155);
  font-weight: normal;
}

.added_to_cart.wc-forward {
  display: block !important;
  text-align: center;
}

.widget.woocommerce.widget_shopping_cart {
  top: 90%;
  width: 500px;
  padding: 30px;
}

.eael-woo-checkout .woocommerce .woocommerce-info {
  background-color: rgb(207, 207, 207);
  color: initial;
}

.woocommerce-product-search button {
  padding-top: 0;
  padding-bottom: 0;
}

.wpforms-validate.wpforms-form.wpforms-ajax-form {
  text-align: center;
}

/* top header messages */
.top-header {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  background: #6f2525;
  color: white;
}

.top-header-row {
  margin: 0 5px;
  font-family: "Poppins";
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.25em 0;
}

/* fyj footer styles */
.fyj-footer-wrap {
  padding: 0;
  background: #4e1e1e;
}

.fyj-footer {
  color: lightgray;
  padding: 5em 1.7em 1em;
  text-align: center;
  margin: 0 auto;
}

.fyj-footer h5 {
  color: #ffffff;
}

.fyj-footer a {
  color: lightgray;
}

.fyj-footer a:hover {
  color: #ff0000;
}

.fyj-footer p {
  margin: 0;
}

/* Logo en blanco en footer sobre fondo oscuro */
.fyj-footer .fyj-footer-brand-logo img {
  filter: brightness(0) invert(1);
}

.fyj-footer ul {
  list-style-type: none;
  margin: 0;
}

.fyj-footer-brand-logo {
  width: 12em;
  margin: 0 auto;
}

.fyj-footer-up {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.fyj-footer-element {
  padding-bottom: 3em;
  width: 360px;
  flex: 0 1 auto;
  margin: 0 1em;
}

.fyj-footer-copy {
  padding-top: 3em;
  border-style: solid;
  border-width: 1px 0px 0px 0px;
  border-color: #3d3d3d;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

@media (min-width: 768px) {
  .fyj-footer-copy {
    justify-content: space-between;
  }
}

.fyj-footer-copy-text {
  padding-bottom: 1em;
  min-width: 300px;
}

.fyj-footer-copy ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  min-width: 300px;
}

.fyj-footer-legal li,
.fyj-footer-legal h5 {
  padding-bottom: 0.5em;
}

.fyj-footer-copy-icons li {
  margin: 0 25px;
}

.interface-interface-skeleton__sidebar {
	overflow: inherit !important;
}

/* Boton select de categorias de producto */
.wc-block-product-categories select {
	margin-right: 0;
}

.wc-block-product-categories__button {
	overflow: inherit;
}

/* Contener el tamaño del select de categorias */
.wc-block-product-categories__dropdown {
	max-width:85%
}

/* Ocultar la etiqueta de recaptcha */
.grecaptcha-badge {
	visibility: hidden;
}

/* Poner paginacion en flex centrada y wrap */
.woocommerce .woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Resaltar los pedidos con pago por transeferencia */
.transfer-order {
  background-color: #ff3b3b !important;
}

#post-88496 {
  background-color: #ff0000;
}