/* ===================================================================================

* Theme Name: MB Custom by Olbia
*Theme URI: https://wp.rrdevs.net/printfix/
* Author: OLBIA SYSTEM SL
* Author URI: htrrs://themeforest.net/user/rrdevs
* Description: Personalización realizada por Olbia System SL
* Version: 1.0.0
* Template: printfix
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of future updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */

/*
 * Hoja de estilos del Tema Hijo
 */

/* --- AJUSTES GENERALES DEL TEMA Y PLUGINS --- */

/* Oculta el contenedor de auto-ocultado del filtro WOOF */
.woof_autohide_wrapper {
    display: none;
}

/* Estructura para los filtros de la tienda */
.os-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.os-filtros > .os-filtro-item {
    flex: 1 1 30%;
    max-width: 300px;
}

/* Oculta los breadcrumbs (migas de pan) */
.breadcrumb__area {
    display: none;
}

/* Ajusta el ancho de los títulos H2 de WooCommerce y las direcciones */
.woocommerce h2,
address {
    width: max-content;
}

/* Tamaño del logo en el header */
.header__area .header-container .mega__menu-wrapper .header__logo a img,
.header__area .mega__menu-wrapper .header__main .header__left .header__logo img {
    width: 240px;
}

/* Estilos para el menú off-canvas (menú lateral en móviles) */
.offcanvas__area {
    background: white;
}
.offcanvas__social {
    display: none;
}

/* Estilos para plugins de chat y traducción */
.chaty * {
    margin-bottom: 30px;
}
.gt_float_switcher {
    margin-bottom: 50px;
}

/* Estilo para etiquetas de Gravity Forms */
.gform-theme--framework .gform-field-label--type-inline {
    color: #fffff1;
}

/* Estilos para un plugin de pestañas verticales */
.layout--vertical .aostmm-tabs-nav {
    width: 380px;
}
.layout--vertical .aostmm-tabs-content {
    display: none;
}

/* Estilo para la paginación */
.basic-pagination ul {
    display: flex; /* 'ruby' no es un valor estándar, se cambia a 'flex' que es más robusto */
    justify-content: center;
}


/* --- WOOCOMMERCE: PÁGINA DE TIENDA Y ARCHIVOS --- */

/* Oculta el botón de texto original de la lista de deseos */
.woosw-btn[aria-label="Añadir a la lista de deseos"] {
    display: none !important;
}

/* Oculta los iconos por defecto en la imagen del producto */
.product__thumb .product__icon {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease-in-out;
}

/* Muestra los iconos al pasar el ratón sobre la imagen */
.product__thumb:hover .product__icon {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Estilo base para todos los iconos (vista rápida, carrito, wishlist) */
.product__icon > * {
    display: inline-block;
    margin: 0 5px;
    background: #fff;
    color: #000;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Efecto hover para los iconos */
.product__icon a.icon-btn:hover,
.product__icon button.icon-btn:hover {
    background-color: #0C729C !important; /* Usando tu color corporativo */
}
.product__icon a.icon-btn:hover i,
.product__icon button.icon-btn:hover i {
    color: #fff !important;
}

/* Oculta otros iconos de características de producto */
.rr-fea-product__icon-box a,
.rr-fea-product__icon-box button {
    display: none;
}
.product_meta .sku_wrapper {
    display: none !important;
}
/* --- [ VERSIÓN MÓVIL ] CORRECCIÓN FINAL PESTAÑAS Y TABLA WOOCOMMERCE --- */
@media (max-width: 768px) {
      .product_meta .sku_wrapper {
    display: none !important;
}

  /* --- CONTENEDOR PRINCIPAL --- */
  .woocommerce-tabs.wc-tabs-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0 10px;
  }

  /* --- TABS COMO ACORDEÓN --- */
  .woocommerce-tabs ul.tabs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0;
  }
  .woocommerce-tabs ul.tabs li {
    border: 1px solid #ddd;
    background-color: #f7f7f7;
    border-radius: 5px;
    width: 100%;
    margin: 0 !important;
  }
  .woocommerce-tabs ul.tabs li a {
    padding: 15px;
    font-weight: bold;
    color: #333;
    display: block;
    width: 100%;
  }
  .woocommerce-tabs ul.tabs li.active a {
    background-color: #0C729C;
    color: #fff;
  }

  /* --- PANEL DE CONTENIDO --- */
  .woocommerce-tabs .panel.wc-tab {
    padding: 15px !important;
    border: 1px solid #ddd;
    border-top: none !important;
    margin-top: -6px;
    border-radius: 0 0 5px 5px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
  }

  /* --- IMAGEN RESPONSIVE --- */
  #tab-description.panel img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* --- TABLA RESPONSIVE (información adicional) --- */
  #tab-additional_information.panel table.shop_attributes {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  #tab-additional_information.panel table.shop_attributes th,
  #tab-additional_information.panel table.shop_attributes td {
    display: table-cell;
    white-space: normal;
    vertical-align: top;
    word-wrap: break-word;
  }

  #tab-additional_information.panel table.shop_attributes td p {
    margin: 0 !important;
    padding: 0 !important;
    word-break: break-word;
  }

  /* --- EVITAR DESBORDES DE ENLACES LARGOS --- */
  #tab-additional_information a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

}