/* ================================================
   Q&J - CATALOGO OPTIMIZADO
   Fotos grandes + encabezado compacto
   ================================================ */

/* CABECERA DE CATEGORIAS */

body.tax-product_cat .woocommerce-products-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 10px !important;
}

body.tax-product_cat .woocommerce-products-header h1,
body.tax-product_cat h1.page-title {
    line-height: 1.08 !important;
    margin-bottom: 10px !important;
}

body.tax-product_cat .term-description p,
body.tax-product_cat .woocommerce-products-header p {
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

body.tax-product_cat .woocommerce-breadcrumb {
    margin-bottom: 12px !important;
}

body.tax-product_cat ul.products {
    margin-top: 8px !important;
    row-gap: 16px !important;
}

/* TARJETAS: SIN REDUCCION FORZADA */

body.tax-product_cat ul.products li.product.qj-catalog-card {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* FOTOGRAFIAS GRANDES */

body.tax-product_cat ul.products li.product
.qj-catalog-photo.qj-product-image-wrap {
    height: 239px !important;
    min-height: 239px !important;
    max-height: 239px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.tax-product_cat ul.products li.product
.qj-catalog-photo.qj-product-image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 225px !important;
    max-height: 225px !important;

    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
}

/* NOMBRES CENTRADOS, SIN JUSTIFICACION */

body.tax-product_cat ul.products li.product
.woocommerce-loop-product__title {
    min-height: 51px !important;
    height: auto !important;

    text-align: center !important;
    text-align-last: center !important;
    text-justify: auto !important;

    word-spacing: normal !important;
    letter-spacing: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    font-size: 15px !important;
    line-height: 1.35 !important;

    margin: 3px 0 5px !important;
    padding: 4px 5px !important;
    box-sizing: border-box !important;
}

/* PRECIOS */

body.tax-product_cat ul.products li.product .price {
    margin: 3px 0 8px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* CONSERVAR BOTONES */

body.tax-product_cat ul.products li.product
.qj-catalog-inner .button {
    min-height: 38px !important;
    box-sizing: border-box !important;
}

/* LUPA EN MENU PRINCIPAL */

.qj-header-search-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    list-style: none !important;
    margin: 0 9px !important;
    padding: 0 !important;
}

.qj-header-search-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;
    border: 0 !important;
    border-radius: 50%;

    background: transparent !important;
    color: #fff8e9 !important;
    cursor: pointer;
    padding: 5px !important;
}

.qj-header-search-trigger:hover,
.qj-header-search-trigger:focus-visible,
.qj-header-search-trigger[aria-expanded="true"] {
    color: #f5c77c !important;
    outline-offset: 2px;
}

.qj-header-search-trigger svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

/* PANEL DESPLEGABLE */

.qj-header-search-panel {
    position: fixed;
    z-index: 999999;
    width: min(430px, calc(100vw - 24px));

    padding: 16px;
    box-sizing: border-box;

    background: #fffdf9;
    border: 1px solid #e5ccae;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.17);
}

.qj-header-search-panel[hidden] {
    display: none !important;
}

.qj-header-search-panel form {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.qj-header-search-panel input[type="search"],
.qj-header-search-panel input[name="s"] {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid #dec8b1 !important;
    border-radius: 7px !important;
    background: #fff !important;
}

.qj-header-search-panel button[type="submit"],
.qj-header-search-panel input[type="submit"] {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    padding: 10px 14px !important;

    background: #782b3b !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 7px !important;
    cursor: pointer;
}

/* MOVIL */

@media (max-width: 767px) {
    body.tax-product_cat ul.products li.product
    .qj-catalog-photo.qj-product-image-wrap {
        height: 170px !important;
        min-height: 170px !important;
        max-height: 170px !important;
    }

    body.tax-product_cat ul.products li.product
    .qj-catalog-photo.qj-product-image-wrap img {
        height: 160px !important;
        max-height: 160px !important;
    }

    body.tax-product_cat ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 13px !important;
    }
}

/* QJ - Imagenes grandes y titulos sin justificar */

@media (min-width: 992px) {

    body.tax-product_cat .woocommerce ul.products
    li.product.qj-catalog-card
    .qj-catalog-photo.qj-product-image-wrap {
        height: 239px !important;
        min-height: 239px !important;
        max-height: 239px !important;
    }

    body.tax-product_cat .woocommerce ul.products
    li.product.qj-catalog-card
    .qj-catalog-photo.qj-product-image-wrap img {
        height: 225px !important;
        max-height: 225px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
}

body.tax-product_cat ul.products li.product
.woocommerce-loop-product__title {
    text-align: center !important;
    text-align-last: center !important;
    text-justify: auto !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
}

/* Buscador junto a Mi cuenta */

.qj-header-search-item {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    vertical-align: middle;
}

.qj-header-search-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 5px !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    cursor: pointer;
}

.qj-header-search-trigger:hover,
.qj-header-search-trigger[aria-expanded="true"] {
    color: #f5c77c !important;
}

.qj-header-search-trigger svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

.qj-header-search-panel {
    position: fixed;
    z-index: 999999;
    width: min(440px, calc(100vw - 24px));
    padding: 15px;
    box-sizing: border-box;
    background: #fffdf9;
    border: 1px solid #e5cdb2;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0,0,0,.20);
}

.qj-header-search-panel[hidden] {
    display: none !important;
}

.qj-header-search-panel form {
    display: flex !important;
    gap: 8px;
    align-items: center;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.qj-header-search-panel input[type="search"],
.qj-header-search-panel input[name="s"] {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 8px 12px !important;
}

.qj-header-search-panel button[type="submit"],
.qj-header-search-panel input[type="submit"] {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #782b3b !important;
    color: white !important;
    cursor: pointer;
}

/* QJ-INICIO-SIN-ORDEN */

/* Ocultar ordenacion y contador */
body.tax-product_cat .woocommerce-ordering,
body.tax-product_cat .woocommerce-result-count {
    display: none !important;
}

/* Quitar espacio superior del listado */
body.tax-product_cat ul.products {
    margin-top: 0 !important;
}

/* Conservar imagenes grandes en escritorio */
@media (min-width: 992px) {
    body.tax-product_cat ul.products li.product
    .qj-catalog-photo.qj-product-image-wrap {
        height: 239px !important;
        min-height: 239px !important;
        max-height: 239px !important;
    }

    body.tax-product_cat ul.products li.product
    .qj-catalog-photo.qj-product-image-wrap img {
        height: 225px !important;
        max-height: 225px !important;
        object-fit: contain !important;
    }
}

/* QJ-FIN-SIN-ORDEN */

/* QJ-INICIO-BUSCADOR-CUENTA */

/* Ocultar controles de ordenacion */
body.tax-product_cat .woocommerce-ordering,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat form.woocommerce-ordering,
body.tax-product_cat select.orderby,
body.tax-product_cat select[name="orderby"] {
    display: none !important;
}

/* Buscador pegado a Mi cuenta */
.qj-header-search-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

.qj-header-search-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    width: auto !important;
    height: 36px !important;
    padding: 4px 6px !important;

    color: #fff8e9 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    white-space: nowrap;
}

.qj-header-search-trigger svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.qj-header-search-text {
    display: inline !important;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: inherit;
}

.qj-header-search-trigger:hover,
.qj-header-search-trigger:focus-visible {
    color: #f5c77c !important;
}

/* No modificar las fotografias del catalogo */
@media (min-width: 992px) {
    body.tax-product_cat ul.products li.product
    .qj-catalog-photo.qj-product-image-wrap img {
        height: 225px !important;
        max-height: 225px !important;
        object-fit: contain !important;
    }
}

/* Adaptacion para menus estrechos */
@media (max-width: 767px) {
    .qj-header-search-text {
        display: none !important;
    }
}

/* QJ-FIN-BUSCADOR-CUENTA */


/* QJ-INICIO-MARGEN-CATALOGO */

/* Aprovechar el espacio liberado por los filtros */
@media (min-width: 992px) {
    html body.tax-product_cat main.site-main
    ul.products {
        margin-top: -35px !important;
    }
}

/* Mantener separación natural en móviles */
@media (max-width: 991px) {
    html body.tax-product_cat main.site-main
    ul.products {
        margin-top: 8px !important;
    }
}

/* QJ-FIN-MARGEN-CATALOGO */

/* QJ-INICIO-DESCRIPCION-AMPLIA */

/* Ampliar el espacio horizontal del encabezado */
@media (min-width: 992px) {

    body.tax-product_cat .woocommerce-products-header,
    body.tax-product_cat .woocommerce-products-header__title,
    body.tax-product_cat .term-description,
    body.tax-product_cat .woocommerce-products-header .term-description {
        max-width: none !important;
        width: 100% !important;
    }

    /* Descripción: aprovechar el ancho disponible */
    body.tax-product_cat .woocommerce-products-header p,
    body.tax-product_cat .term-description p {
        max-width: none !important;
        width: 100% !important;

        line-height: 1.45 !important;
        margin-top: 8px !important;
        margin-bottom: 6px !important;

        text-align: left !important;
    }

    /* Mantener el título grande pero compacto */
    body.tax-product_cat .woocommerce-products-header h1,
    body.tax-product_cat h1.page-title {
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }
}

/* Ajustes para móvil */
@media (max-width: 991px) {

    body.tax-product_cat .term-description,
    body.tax-product_cat .term-description p {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* QJ-FIN-DESCRIPCION-AMPLIA */

/* QJ-INICIO-DESCRIPCION-CATEGORIA */

/* Descripción amplia en categorías WooCommerce */
@media (min-width: 992px) {

    html body.tax-product_cat
    .qj-category-hero .qj-category-description {
        width: 100% !important;
        max-width: 1350px !important;
    }

    html body.tax-product_cat
    .qj-category-hero .qj-category-description p {
        width: 100% !important;
        max-width: none !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
        text-align: left !important;
    }
}

/* Móviles y tabletas */
@media (max-width: 991px) {

    html body.tax-product_cat
    .qj-category-hero .qj-category-description {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* QJ-FIN-DESCRIPCION-CATEGORIA */

/* QJ-INICIO-TIPOGRAFIA-DESCRIPCION */

/* Descripción de categorías: tipografía más legible */
html body.tax-product_cat
.qj-category-hero .qj-category-description p {
    font-family: Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #54262A !important;

    text-align: left !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;

    max-width: none !important;
    margin-bottom: 8px !important;
}

/* Adaptación móvil */
@media (max-width: 767px) {
    html body.tax-product_cat
    .qj-category-hero .qj-category-description p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
}

/* QJ-FIN-TIPOGRAFIA-DESCRIPCION */

/* =================================================
   QJ-INICIO-TIPOGRAFIA-GOURMET
   UNIFICACION TIPOGRAFICA QUESO & JAMON
   ================================================= */

/* 1. MENU PRINCIPAL: ajustes discretos */

@media (min-width: 992px) {

    body.tax-product_cat header nav a,
    body.tax-product_cat .site-header nav a {
        font-family: Georgia, serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: .25px !important;
        text-transform: uppercase;
    }

    /* Conservar la legibilidad de Buscar producto */

    body.tax-product_cat .qj-header-search-text {
        font-family: Georgia, serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: .25px !important;
    }
}

/* 2. NOMBRES DE PRODUCTOS */

body.tax-product_cat ul.products li.product
.woocommerce-loop-product__title {

    font-family: Georgia, serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;

    line-height: 1.32 !important;

    text-align: center !important;
    text-align-last: center !important;
    text-justify: auto !important;

    word-spacing: 0 !important;
    letter-spacing: 0 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;

    min-height: 51px !important;
    box-sizing: border-box !important;
}

/* Corregir justificacion heredada en enlaces interiores */

body.tax-product_cat ul.products li.product
.woocommerce-loop-product__title a,
body.tax-product_cat ul.products li.product
.woocommerce-loop-product__title span {

    text-align: center !important;
    text-align-last: center !important;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
}

/* 3. PRECIOS */

body.tax-product_cat ul.products li.product .price,
body.tax-product_cat ul.products li.product .price bdi {

    font-family: Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    text-align: center !important;
    letter-spacing: 0 !important;
}

/* 4. BOTONES */

body.tax-product_cat ul.products li.product
.qj-catalog-inner .button {

    font-family: Georgia, serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;

    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;

    text-align: center !important;

    padding: 8px 5px !important;
    box-sizing: border-box !important;

    min-height: 38px !important;
}

/* 5. ADAPTACION MOVIL */

@media (max-width: 767px) {

    body.tax-product_cat ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    body.tax-product_cat ul.products li.product .price,
    body.tax-product_cat ul.products li.product .price bdi {
        font-size: 15px !important;
    }

    body.tax-product_cat ul.products li.product
    .qj-catalog-inner .button {
        font-size: 11px !important;
    }
}

/* =================================================
   QJ-FIN-TIPOGRAFIA-GOURMET
   ================================================= */

/* =================================================
   QJ-INICIO-HEADER-RESPONSIVE
   Evitar que Rastreo y Buscar producto se encimen
   ================================================= */

/* Alineación uniforme en escritorio */
@media (min-width: 992px) {

    body.tax-product_cat header nav a,
    body.tax-product_cat .site-header nav a {
        vertical-align: middle !important;
        line-height: 36px !important;
    }

    body.tax-product_cat .qj-header-search-item,
    body.tax-product_cat .qj-header-search-trigger {
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.tax-product_cat .qj-header-search-trigger {
        gap: 7px !important;
        padding: 0 6px !important;
        white-space: nowrap !important;
    }
}

/* Pantallas medianas: mantener la lupa,
   ocultar únicamente el texto de búsqueda. */
@media (min-width: 992px) and (max-width: 1500px) {

    body.tax-product_cat .qj-header-search-text {
        display: none !important;
    }

    body.tax-product_cat .qj-header-search-item {
        margin: 0 8px 0 0 !important;
        flex-shrink: 0 !important;
    }

    body.tax-product_cat .qj-header-search-trigger {
        width: 36px !important;
        min-width: 36px !important;
        padding: 0 7px !important;
    }

    body.tax-product_cat .qj-header-search-trigger svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Escritorios estrechos: reducir espacios,
   sin hacer ilegibles los enlaces. */
@media (min-width: 992px) and (max-width: 1199px) {

    body.tax-product_cat header nav a,
    body.tax-product_cat .site-header nav a {
        font-size: 11.5px !important;
        letter-spacing: 0.15px !important;
    }
}

/* Pantallas pequeñas: solo icono.
   El menú hamburguesa original sigue funcionando. */
@media (max-width: 991px) {

    body.tax-product_cat .qj-header-search-text {
        display: none !important;
    }

    body.tax-product_cat .qj-header-search-item {
        margin-right: 5px !important;
    }

    body.tax-product_cat .qj-header-search-trigger {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }
}

/* QJ-FIN-HEADER-RESPONSIVE */

/* QJ-INICIO-FUENTE-HEADER */

/* Tipografía más visible del menú principal */
@media (min-width: 1200px) {

    html body.tax-product_cat header nav a,
    html body.tax-product_cat .site-header nav a {
        font-family: Georgia, serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0.35px !important;
        line-height: 36px !important;
        color: #FFF8EB !important;
        vertical-align: middle !important;
    }
}

/* Escritorios medianos */
@media (min-width: 992px) and (max-width: 1199px) {

    html body.tax-product_cat header nav a,
    html body.tax-product_cat .site-header nav a {
        font-family: Georgia, serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px !important;
        line-height: 36px !important;
        color: #FFF8EB !important;
    }
}

/* Mantener alineados buscador y Mi cuenta */
@media (min-width: 992px) {

    html body.tax-product_cat .qj-header-search-trigger {
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body.tax-product_cat .qj-header-search-item {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
    }
}

/* QJ-FIN-FUENTE-HEADER */

/* ==========================================
   QJ-INICIO-MENU-ADAPTATIVO
   Encabezado responsive sin enlaces cortados
   ========================================== */

/* ESCRITORIOS GRANDES */
@media (min-width: 1501px) {

    html body.tax-product_cat header nav a,
    html body.tax-product_cat .site-header nav a {
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: .35px !important;
        line-height: 36px !important;
        white-space: nowrap !important;
    }

    html body.tax-product_cat .qj-header-search-text {
        display: inline !important;
    }
}

/* ESCRITORIOS MEDIANOS */
@media (min-width: 1200px) and (max-width: 1500px) {

    html body.tax-product_cat header nav a,
    html body.tax-product_cat .site-header nav a {
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: .15px !important;
        line-height: 36px !important;
        white-space: nowrap !important;
    }

    /* Menos espacio lateral en enlaces principales */
    html body.tax-product_cat header nav > ul > li > a,
    html body.tax-product_cat .site-header nav > ul > li > a {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    /* Menos separación entre elementos flex */
    html body.tax-product_cat header nav > ul,
    html body.tax-product_cat .site-header nav > ul {
        column-gap: 5px !important;
    }

    /* Solo lupa, sin texto */
    html body.tax-product_cat .qj-header-search-text {
        display: none !important;
    }

    html body.tax-product_cat .qj-header-search-item {
        margin-left: 3px !important;
        margin-right: 7px !important;
    }

    html body.tax-product_cat .qj-header-search-trigger {
        width: 34px !important;
        min-width: 34px !important;
        padding: 0 5px !important;
    }
}

/* ESCRITORIOS COMPACTOS */
@media (min-width: 992px) and (max-width: 1199px) {

    html body.tax-product_cat header nav a,
    html body.tax-product_cat .site-header nav a {
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        line-height: 36px !important;
        white-space: nowrap !important;
    }

    html body.tax-product_cat header nav > ul > li > a,
    html body.tax-product_cat .site-header nav > ul > li > a {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    html body.tax-product_cat header nav > ul,
    html body.tax-product_cat .site-header nav > ul {
        column-gap: 2px !important;
    }

    html body.tax-product_cat .qj-header-search-text {
        display: none !important;
    }
}

/* ALINEACION VERTICAL COMUN */
@media (min-width: 992px) {

    html body.tax-product_cat .qj-header-search-item,
    html body.tax-product_cat .qj-header-search-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        vertical-align: middle !important;
    }

    html body.tax-product_cat .qj-header-search-trigger {
        line-height: 36px !important;
    }
}

/* MOVIL: RESPETAR EL MENU HAMBURGUESA */
@media (max-width: 991px) {

    html body.tax-product_cat .qj-header-search-text {
        display: none !important;
    }
}

/* QJ-FIN-MENU-ADAPTATIVO */



/* QJ-INICIO-BUSCADOR-MOVIL-V2 */

@media (max-width: 991px) {

    /* Buscar arriba de Mi cuenta */
    html body.tax-product_cat .qj-search-account-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 8px auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    html body.tax-product_cat .qj-search-account-group
    .qj-header-search-item {
        display: flex !important;
        position: static !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    html body.tax-product_cat .qj-search-account-group
    .qj-header-search-trigger {
        display: inline-flex !important;
        position: static !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        transform: none !important;
        background: transparent !important;
        color: #FFF8EB !important;
        white-space: nowrap !important;
    }

    html body.tax-product_cat .qj-search-account-group
    .qj-header-search-text {
        display: inline !important;
        font-family: Georgia, serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: .4px !important;
        line-height: 1.4 !important;
        color: inherit !important;
    }

    html body.tax-product_cat .qj-search-account-group > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

/* QJ-FIN-BUSCADOR-MOVIL-V2 */

/* QJ-INICIO-BUSCADOR-ESTABLE */

/* Escritorio */
@media (min-width: 992px) {
    body.tax-product_cat .qj-search-account-group {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    body.tax-product_cat .qj-header-search-item {
        display: inline-flex !important;
        align-items: center !important;
        position: static !important;
        margin: 0 8px 0 0 !important;
    }

    body.tax-product_cat .qj-header-search-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
    }
}

/* Escritorio amplio: lupa y texto */
@media (min-width: 1501px) {
    body.tax-product_cat .qj-header-search-text {
        display: inline !important;
    }
}

/* Escritorio mediano: solo lupa */
@media (min-width: 992px) and (max-width: 1500px) {
    body.tax-product_cat .qj-header-search-text {
        display: none !important;
    }
}

/* Movil: buscar encima de Mi cuenta */
@media (max-width: 991px) {
    body.tax-product_cat .qj-search-account-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 8px auto !important;
    }

    body.tax-product_cat .qj-header-search-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: static !important;
        width: auto !important;
        margin: 0 !important;
        transform: none !important;
    }

    body.tax-product_cat .qj-header-search-trigger {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: static !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        transform: none !important;
    }

    body.tax-product_cat .qj-search-account-group
    .qj-header-search-text {
        display: inline !important;
        font-family: Georgia, serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #FFF8EB !important;
        white-space: nowrap !important;
    }

    body.tax-product_cat .qj-search-account-group > a {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
    }
}

/* QJ-FIN-BUSCADOR-ESTABLE */

/* QJ-INICIO-CARRITO-MOVIL-CENTRADO */

@media (max-width: 991px) {

    /* Centrar el contenedor del carrito */
    html body.tax-product_cat li:has(> button.cart-button) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 8px auto 12px !important;
        padding: 0 !important;

        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Centrar el botón sin modificar su diseño */
    html body.tax-product_cat li > button.cart-button {
        position: relative !important;
        left: auto !important;
        right: auto !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: 129px !important;

        margin: 0 auto !important;
        transform: none !important;
    }

    /* Mantener el contador centrado */
    html body.tax-product_cat button.cart-button {
        vertical-align: middle !important;
    }
}

/* QJ-FIN-CARRITO-MOVIL-CENTRADO */
