/* ============================================================================
   MURIEL SMART SEARCH - ESTILOS DE EMERGENCIA
   Reset completo para prevenir conflictos con cualquier tema
   ============================================================================ */

/* RESET ULTRA ESPECÍFICO - Usar cuando hay conflictos con el tema */

/* Forzar orientación horizontal en TODOS los elementos del plugin */
body .muriel-search-results,
body .muriel-search-results *,
body .muriel-search-results *::before,
body .muriel-search-results *::after,
html .muriel-search-results,
html .muriel-search-results *,
html .muriel-search-results *::before,
html .muriel-search-results *::after {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
    text-orientation: mixed !important;
    direction: ltr !important;
    unicode-bidi: normal !important;
}

/* Prevenir flex vertical heredado */
body .muriel-search-results .muriel-search-item,
body .muriel-search-results .muriel-search-item *,
html .muriel-search-results .muriel-search-item,
html .muriel-search-results .muriel-search-item * {
    flex-direction: row !important;
    -webkit-flex-direction: row !important;
    -ms-flex-direction: row !important;
}

/* Reset de display para todos los elementos de texto */
body .muriel-search-results .muriel-search-item-title,
body .muriel-search-results .muriel-search-item-title *,
body .muriel-search-results .muriel-search-item-sku,
body .muriel-search-results .muriel-search-item-sku *,
body .muriel-search-results .muriel-search-item-category,
body .muriel-search-results .muriel-search-item-category *,
body .muriel-search-results .muriel-search-item-stock,
body .muriel-search-results .muriel-search-item-stock *,
body .muriel-search-results .muriel-search-item-price,
body .muriel-search-results .muriel-search-item-price *,
html .muriel-search-results .muriel-search-item-title,
html .muriel-search-results .muriel-search-item-title *,
html .muriel-search-results .muriel-search-item-sku,
html .muriel-search-results .muriel-search-item-sku *,
html .muriel-search-results .muriel-search-item-category,
html .muriel-search-results .muriel-search-item-category *,
html .muriel-search-results .muriel-search-item-stock,
html .muriel-search-results .muriel-search-item-stock *,
html .muriel-search-results .muriel-search-item-price,
html .muriel-search-results .muriel-search-item-price * {
    display: inline !important;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    direction: ltr !important;
    vertical-align: baseline !important;
}

/* El título debe ser block */
body .muriel-search-results .muriel-search-item-title,
html .muriel-search-results .muriel-search-item-title {
    display: block !important;
}

/* Flex específico para meta con máxima prioridad */
body .muriel-search-results .muriel-search-item .muriel-search-item-meta,
html .muriel-search-results .muriel-search-item .muriel-search-item-meta {
    display: flex !important;
    -webkit-display: flex !important;
    -ms-display: flex !important;
    flex-direction: row !important;
    -webkit-flex-direction: row !important;
    -ms-flex-direction: row !important;
    flex-wrap: wrap !important;
    -webkit-flex-wrap: wrap !important;
    -ms-flex-wrap: wrap !important;
    writing-mode: horizontal-tb !important;
    align-items: center !important;
    -webkit-align-items: center !important;
    -ms-align-items: center !important;
}

body .muriel-search-results .muriel-search-item .muriel-search-item-meta > span,
body .muriel-search-results .muriel-search-item .muriel-search-item-meta > *,
html .muriel-search-results .muriel-search-item .muriel-search-item-meta > span,
html .muriel-search-results .muriel-search-item .muriel-search-item-meta > * {
    display: inline-block !important;
    flex-direction: row !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

/* Sobrescribir estilos de Astra y otros temas populares */
.ast-container body .muriel-search-results .muriel-search-item,
.site-content body .muriel-search-results .muriel-search-item,
.entry-content body .muriel-search-results .muriel-search-item,
.ast-container html .muriel-search-results .muriel-search-item,
.site-content html .muriel-search-results .muriel-search-item,
.entry-content html .muriel-search-results .muriel-search-item {
    display: grid !important;
    writing-mode: horizontal-tb !important;
}

/* Elementor override */
.elementor body .muriel-search-results,
.elementor body .muriel-search-results * {
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

/* Divi override */
.et_builder_inner_content body .muriel-search-results,
.et_builder_inner_content body .muriel-search-results * {
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

/* WPBakery override */
.vc_row body .muriel-search-results,
.vc_row body .muriel-search-results * {
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

/* Evitar que selectores universales afecten */
body .muriel-search-results .muriel-search-item-content > *,
body .muriel-search-results .muriel-search-item-content div,
body .muriel-search-results .muriel-search-item-content span,
html .muriel-search-results .muriel-search-item-content > *,
html .muriel-search-results .muriel-search-item-content div,
html .muriel-search-results .muriel-search-item-content span {
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
    text-orientation: mixed !important;
}

/* Reset de transformaciones */
body .muriel-search-results *,
html .muriel-search-results * {
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
}
