/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme de GeneratePress
 Author: Tu nombre
 Template: generatepress
 Version: 1.0
*/

.yith-wcwl-add-to-wishlist a {
  background: #f3f3f3;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
}

.wishlist_table th,
.wishlist_table td {
  text-align: center;
}

.wishlist_table .product-name {
  text-align: left;
}

.page .entry-title {
  display: none;
}




/* Boton Wishlist para productos agotados */
button.outofstock-wishlist,
a.outofstock-wishlist {
    background: #999 !important;  /* gris */
    color: #fff !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.7;
}

/* Badge "AGOTADO" sobre la imagen del producto */
.outofstock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #cca143;
    color: #4b0022;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 10;
}

/* Productos */
ul.products li.product {
    position: relative;
}

/* Ocultar t¨ªtulos SOLO en tienda */
.post-type-archive-product .woocommerce-products-header__title,
.post-type-archive-product .entry-title {
    display: none;
}

/* Ajuste buscador */
.aws-container {
    margin-top: -25px;
}


/* ==============================
   Bloque categor¨ªas WooCommerce
   ============================== */

.wc-block-product-categories-list {
    list-style: none !important;
    background: #f5f5f5;
    font-size: 13px;
    font-weight: 500;
    padding: 16px;
    border-radius: 6px;
    
}

/* Items */
.wc-block-product-categories-list li {
    list-style: none !important;
    padding: 6px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.wc-block-product-categories-list li:last-child {
    border-bottom: none;
}

/* Eliminar bullets falsos de Woo Blocks */
.wc-block-product-categories-list li::before {
    content: none !important;
    display: none !important;
}

/* Links */
.wc-block-product-categories-list a {
    text-decoration: none !important;
    color: inherit;
    letter-spacing: 0.2px;
}

/* Hover */
.wc-block-product-categories-list li:hover {
    background: rgba(0,0,0,0.04);
    padding-left: 6px;
}

.wc-block-product-categories-list a:hover {
    text-decoration: none !important;
}


/* === GRID DE CATEGORÍAS WOOCOMMERCE === */

/* Título de la categoría en negrita */
.woocommerce ul.products li.product .woocommerce-loop-category__title {
    font-weight: 700;
    text-align: center;
    margin-top: 12px;
}

/* Quitar cantidad de productos */
.woocommerce-loop-category__title .count {
    display: none;
}

/* Hover suave en la imagen */
.woocommerce ul.products li.product-category img {
    transition: transform 0.3s ease;
}

/* Zoom leve al pasar el mouse */
.woocommerce ul.products li.product-category:hover img {
    transform: scale(1.05);
}

/* Cambio de color del título en hover */
.woocommerce ul.products li.product-category:hover 
.woocommerce-loop-category__title {
    color: #c8951b; /* cambia este color por el de tu marca */
}

/* === Reducir Menu === */
.main-navigation .main-nav ul li a {
    padding-left: 12px;
    padding-right: 12px;
}

.main-navigation .main-nav ul {
    display: flex;
    flex-wrap: nowrap;
}

.main-navigation .main-nav ul li {
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .aws-container {
        max-width: 200px;
    }
}

.aws-container .aws-search-form .aws-form-btn {
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
background:  #c8951b;
border: 1px solid  #c8951b;
margin: 0px 0px 0px -1px;
cursor: pointer;
position: relative;
white-space: nowrap;
transition: background-color 100ms ease-in-out;
}

.aws-container .aws-search-form .aws-form-btn:hover,
.aws-container .aws-search-form .aws-form-btn:focus {
    background: #a77912;
    border-color: #a77912;
}

/* === Reemplazar imagen de Quote List vacia === */

.elex-raq-empty-list img {
  display: none !important;
}

.elex-raq-empty-list::before {
  content: "";
  display: block;
  width: 480px;
  height: 480px;
  margin: 0 auto 20px;
  background: url('https://bandoladeoro.com/v2/wp-content/themes/generatepress-child/images_bandola/sin_productos_pedido.svg') no-repeat center;
  background-size: contain;
}

.elex-rqst-quote-front-wrap .text-end {
  display: none !important;
}

.elex-raq-empty-list h6 {
  visibility: hidden;
  position: relative;
}


.elex-raq-empty-list h6::after {
  content: "Tu pedido no tiene productos";
  visibility: visible;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
}

.elex-raq-empty-list a {
  display: none !important;
}

/* === BOTON DE PEDIDO VACIO === */

.btn-custom-quote {
  display: block;
  width: fit-content;
  margin: 20px auto;
  background-color: #9a244f;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}


.woocommerce ul.products li.product a img {
border: 1px solid #c8951b;
}

/* Ver carrito debajo del botón - GeneratePress */
.woocommerce a.added_to_cart {
    display: block;
    margin-top: 10px;
}

/* Estilo tipo botón */
.woocommerce a.added_to_cart {
    padding: 12px 20px;
    background-color: #9a244f; /* cambia el color si quieres */
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

/* Hover */
.woocommerce a.added_to_cart:hover {
    background-color: #c8951b;
}

/* Botón "Solicitar pedido" -Checkout */
.wc-block-components-button {
    display: inline-block;
    padding: 14px 22px;
    background-color: #9a244f;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none !important;
}


.wc-block-components-button:hover,
.wc-block-components-button:focus {
    background-color: #9a244f;
    color: #c8951b;
    text-decoration: none !important;
}

/* Agrega estilo al menú de Mi cuenta */
/* Contenedor del menú */
.woocommerce-MyAccount-navigation {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

/* Quitar viñetas */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Espaciado entre items */
.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

/* Estilo de enlaces */
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s ease;
}

/* Hover */
.woocommerce-MyAccount-navigation a:hover {
    background: #b38b2d;
    color: #ffffff;
}

/* Elemento activo */
.woocommerce-MyAccount-navigation .is-active a {
    background: #b38b2d;
    color: #ffffff;
}


/* Cambiar 4 columnas de web a 2 en movil */

/* Desktop: dejamos que el tema haga las 4 columnas */
.woocommerce ul.products.columns-4 {
    /* No tocamos display, para que el tema controle el ancho */
    gap: 20px; /* opcional, para espaciar productos */
}

/* Móvil: 2 columnas y quitar ::before */
@media (max-width: 768px) {
    .woocommerce ul.products.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;

        /* quitar pseudo-elemento que causaba hueco */
    }
    .woocommerce ul.products.columns-4::before {
        content: none !important;
        display: none !important;
    }

    /* Limpiar floats y clears de cada producto */
    .woocommerce ul.products li.product {
        float: none !important;
        clear: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Ignorar clases first/last que podrían interferir */
    .woocommerce ul.products li.product.first,
    .woocommerce ul.products li.product.last {
        float: none !important;
        clear: none !important;
        margin: 0 !important;
    }
}