/* ==========================================================================
   ORGANICO.AR — 2. MEDIA QUERIES Y RESPONSIVE (customcssmedia.css)
   Cargar SIEMPRE después de customcss.css en header.tpl
   ========================================================================== */

/* ==========================================================================
   1. DESKTOP GRANDE (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    #header .row #header_logo {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 350px !important;
        height: auto !important;
        min-height: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin-right: 20px !important;
        padding: 0 !important;
    }

    #header_logo img.logo,
    #header_logo img.img-responsive {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
    }

    .header-container .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 0 !important;
    }

    /* Grilla 5 columnas */
    #product_list.product_list.grid,
    #homefeatured.product_list.grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #product_list.product_list.grid .ajax_block_product,
    #homefeatured.product_list.grid .ajax_block_product {
        width: calc(20% - 8px) !important;
        min-width: calc(20% - 8px) !important;
        max-width: calc(20% - 8px) !important;
        flex: 0 0 calc(20% - 8px) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .footer-container {
        padding-bottom: 30px !important;
        min-height: 150px !important;
    }

    #footer {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}

/* ==========================================================================
   2. DESKTOP Y TABLET HORIZONTAL (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    #product_list.product_list.grid .ajax_block_product .right-block .content_price,
    #homefeatured.product_list.grid .ajax_block_product .right-block .content_price {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #social_block ul li a[href*="wa.me"] i.fa-whatsapp {
        display: none !important;
    }

    #social_block ul li a[href*="wa.me"] {
        display: inline-block !important;
        width: 50px !important;
        height: 50px !important;
        background-image: url('https://mejororganico.ar/modules/whatsapp/views/img/whataspp_icon.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-color: transparent !important;
        border: none !important;
        margin-left: 15px !important;
        vertical-align: middle !important;
    }

    #social_block,
    .asagiSabit {
        display: none !important;
    }

    footer#footer td:nth-child(3) a img {
        height: 75px !important;
        width: auto !important;
        transition: transform 0.3s ease !important;
    }

    footer#footer td:nth-child(3) a:hover img {
        transform: scale(1.1) !important;
    }
}

/* ==========================================================================
   3. TABLET Y MÓVIL APAISADO (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .product-image img,
    .thumbnail-container img,
    .right-block img {
        max-width: 70% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .product-image-wrapper,
    .image-wrapper {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 10px !important;
    }
}

/* ==========================================================================
   4. MÓVIL VERTICAL, APAISADO Y TÁCTILES — BLOQUEO TOTAL DE HOVER EN PRODUCTOS
   ========================================================================== */
@media (max-width: 991px), (max-height: 500px) and (orientation: landscape), (hover: none) and (pointer: coarse) {
    /* Pantalla completa 100% sin espacio blanco a la izquierda */
    html, body {
        zoom: 1 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        left: 0 !important;
    }

    .container,
    .container-fluid,
    .row,
    #page,
    .header-container,
    .columns-container,
    .footer-container,
    #header,
    #columns,
    #center_column,
    #footer,
    .breadcrumb,
    .cart_navigation,
    #order-detail-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }

    #cart_summary {
        width: 100% !important;
        margin: 0 !important;
    }

    #left_column #myaccount_block,
    #left_column .block.myaccount,
    #right_column .block.myaccount,
    .block.myaccount-column,
    #myaccount_block {
        display: none !important;
    }

    /* ANULAR CUALQUIER EFECTO :HOVER / :ACTIVE / .HOVERED EN PRODUCT_LIST Y HOMEFEATURED */
    #product_list .ajax_block_product,
    #product_list .ajax_block_product:hover,
    #product_list .ajax_block_product:active,
    #product_list .ajax_block_product.hovered,
    #homefeatured .ajax_block_product,
    #homefeatured .ajax_block_product:hover,
    #homefeatured .ajax_block_product:active,
    #homefeatured .ajax_block_product.hovered,
    .product_list .product-container,
    .product_list .product-container:hover,
    .product_list .product-container:active,
    .product_list .product-image-container,
    .product_list .product-image-container:hover,
    .product_list .product-image-container img,
    .product_list .product-image-container:hover img {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
        background: transparent !important;
        transition: none !important;
    }

    /* Evitar que aparezcan contenedores ocultos al tocar un producto */
    #product_list .ajax_block_product:hover .unified-quantity-selector,
    #product_list .ajax_block_product:hover .quantity-selector,
    #product_list .ajax_block_product:hover .unified-add-to-cart,
    #product_list .ajax_block_product:hover .button-container,
    #product_list .ajax_block_product:hover .ajax_add_to_cart_button,
    #product_list .ajax_block_product:hover .functional-buttons,
    #product_list .ajax_block_product:hover .quantity-add-container,
    #product_list .ajax_block_product:active .quantity-add-container,
    #homefeatured .ajax_block_product:hover .unified-quantity-selector,
    #homefeatured .ajax_block_product:hover .quantity-selector,
    #homefeatured .ajax_block_product:hover .unified-add-to-cart,
    #homefeatured .ajax_block_product:hover .button-container,
    #homefeatured .ajax_block_product:hover .ajax_add_to_cart_button,
    #homefeatured .ajax_block_product:hover .functional-buttons,
    #homefeatured .ajax_block_product:hover .quantity-add-container,
    #homefeatured .ajax_block_product:active .quantity-add-container,
    .product_list .product-container:hover .hover-image,
    .product_list .product-container:hover .product-flags-hover {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Evitar salto de margen en el precio al tocar */
    #product_list .ajax_block_product:hover .content_price,
    #product_list .ajax_block_product:active .content_price,
    #homefeatured .ajax_block_product:hover .content_price,
    #homefeatured .ajax_block_product:active .content_price {
        margin: 5px 0 !important;
    }
}

/* ==========================================================================
   5. MÓVIL APAISADO (LANDSCAPE - max-height: 500px)
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    /* 100% de ancho sin blanco a la izquierda y el doble de productos por fila (4 por línea) */
    #product_list.product_list.grid,
    #homefeatured.product_list.grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #product_list.product_list.grid .ajax_block_product,
    #homefeatured.product_list.grid .ajax_block_product {
        width: calc(25% - 7.5px) !important;
        min-width: calc(25% - 7.5px) !important;
        max-width: calc(25% - 7.5px) !important;
        flex: 0 0 calc(25% - 7.5px) !important;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #product_list.product_list.grid .ajax_block_product .left-block,
    #homefeatured.product_list.grid .ajax_block_product .left-block {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    #product_list.product_list.grid .ajax_block_product .product-image-container img,
    #homefeatured.product_list.grid .ajax_block_product .product-image-container img {
        margin: 0 auto !important;
        display: block !important;
    }

    #product_list.product_list.grid .ajax_block_product .product-name,
    #homefeatured.product_list.grid .ajax_block_product .product-name {
        font-size: 14px !important;
    }

    #product_list.product_list.grid .ajax_block_product .price,
    #homefeatured.product_list.grid .ajax_block_product .price {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   6. MÓVIL VERTICAL (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* Grilla 2 columnas y precios centrados */
    #product_list.product_list.grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    #product_list.product_list.grid .ajax_block_product {
        width: calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        margin: 0 0 15px 0 !important;
    }

    #product_list.product_list.grid .ajax_block_product .product-container > .content_price,
    #product_list.product_list.grid .ajax_block_product .left-block .content_price,
    #product_list.product_list.grid .ajax_block_product .content_price:not(.right-block .content_price) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #product_list.product_list.grid .ajax_block_product .right-block,
    #product_list.product_list.grid .ajax_block_product .right-block .content_price {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 5px 0 !important;
        padding: 0 !important;
        font-size: 16px !important;
    }

    /* Banners Home */
    #htmlcontent_top .htmlcontent-home {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    #htmlcontent_top .htmlcontent-home li {
        width: 45% !important;
        max-width: 160px !important;
        margin-bottom: 10px !important;
    }

    /* WhatsApp flotante y redes footer */
    #social_block li a[href*="wa.me"],
    footer#footer td:nth-child(3),
    .footer-certificaciones,
    #footer img[src*="certificacion"],
    #footer img[src*="logos"],
    #footer img[src*="ITAL"],
    #footer .row > div:first-child img {
        display: none !important;
    }

    footer#footer td:nth-child(1),
    footer#footer td:nth-child(2) {
        width: 50% !important;
    }

    footer#footer a i.fa { font-size: 26px !important; }
    footer#footer a { margin: 0 2px !important; padding: 0 !important; }

    #social_block ul {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding-left: 10px !important;
    }

    .asagiSabit.visible-xs,
    .asagiSabit {
        display: block !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        z-index: 99999 !important;
        width: auto !important;
    }

    .asagiSabit img {
        width: 55px !important;
        height: auto !important;
        display: block !important;
        filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3)) !important;
    }

    /* Carrito y pasos de compra en móvil */
    .table-responsive { border: none !important; overflow-x: hidden !important; }

    .order-steps {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
        margin-bottom: 15px !important;
    }
    .order-steps li {
        display: inline-block !important;
        flex: 0 0 auto !important;
        padding: 8px 12px !important;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        border-radius: 20px !important;
        margin-right: 5px !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        color: #777 !important;
        white-space: nowrap !important;
    }
    .order-steps li.step_current {
        background: #5cb85c !important;
        border-color: #5cb85c !important;
        color: #fff !important;
        font-weight: bold !important;
    }
    .order-steps li.step_done { background: #fff !important; color: #333 !important; }
    .order-steps li:after, .order-steps li:before { display: none !important; }

    #cart_summary tbody tr {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 0 !important;
        margin-bottom: 5px !important;
        border-bottom: 1px solid #eee !important;
        background: #fff !important;
    }

    #cart_summary tbody tr:hover,
    #cart_summary tbody tr:focus,
    #cart_summary tbody tr:active,
    #cart_summary tbody td:hover,
    #cart_summary tfoot tr:hover,
    #cart_summary tfoot td:hover {
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .cart_product { width: 25% !important; text-align: center !important; }
    .cart_product img { max-width: 50px !important; }
    .cart_description { width: 70% !important; text-align: left !important; padding: 0 5px !important; }
    .cart_unit, .cart_avail, .cart_delete { display: none !important; }
    .cart_quantity { width: 50% !important; text-align: left !important; margin-top: 10px !important; display: flex !important; align-items: center !important; }
    .cart_total { width: 50% !important; text-align: right !important; margin-top: 10px !important; font-weight: bold !important; }

    .compact-quantity-controls { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 8px !important; }
    .qty-btn { width: 28px !important; height: 28px !important; font-size: 12px !important; }
    .compact-qty-input { width: 40px !important; text-align: center !important; height: 28px !important; padding: 0 !important; }

    #cart_voucher { width: 100% !important; display: block !important; padding: 10px 0 !important; }
    #cart_voucher fieldset { display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
    #cart_voucher h4 { margin-bottom: 10px !important; }
    .cash-discount-form, #voucher { width: 100% !important; margin-bottom: 10px !important; }

    #cart_summary tfoot tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #eee !important;
    }
    #cart_summary tfoot td { padding: 0 !important; border: none !important; }
    #cart_summary tfoot td:first-child { width: 65% !important; text-align: left !important; }
    #cart_summary tfoot td:last-child { width: 35% !important; text-align: right !important; }

    .total_price_container { width: 70% !important; text-align: left !important; }
    #total_price_container { width: 30% !important; text-align: right !important; font-size: 16px !important; font-weight: bold !important; }
    .delete-discount-action { margin-right: 5px !important; }
}

/* ==========================================================================
   7. REGLAS MEDIA ADICIONALES CONSERVADAS DEL ORIGINAL
   ========================================================================== */
@media (max-width: 1024px) {
    .product-image img,
    .thumbnail-container img {
        max-width: 70% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .quantity-add-container {
        position: absolute !important;
        bottom: 15px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
        background: transparent !important;
    }

    .right-block .content_price {
        position: static !important;
        margin: 5px 0 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        transition: margin-bottom 0.3s ease !important;
    }
}

@media (max-width: 767px) {
    #product_list.product_list.grid .ajax_block_product .button-container {
        position: static !important;
        margin-top: 5px !important;
        height: auto !important;
    }

    #social_block ul::after {
        width: 35px !important;
        height: 35px !important;
        margin-left: 5px !important;
        vertical-align: middle !important;
    }

    #order-detail-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   8. BLOQUEO FINAL DE HOVER EN MÓVIL VERTICAL, APAISADO Y TÁCTILES
   ========================================================================== */
@media (max-width: 991px), (max-height: 500px) and (orientation: landscape), (hover: none) and (pointer: coarse) {
    #product_list .ajax_block_product,
    #product_list .ajax_block_product:hover,
    #product_list .ajax_block_product:active,
    #product_list .ajax_block_product.hovered,
    #homefeatured .ajax_block_product,
    #homefeatured .ajax_block_product:hover,
    #homefeatured .ajax_block_product:active,
    #homefeatured .ajax_block_product.hovered,
    .product_list .product-container,
    .product_list .product-container:hover,
    .product_list .product-container:active,
    .product_list .product-image-container,
    .product_list .product-image-container:hover,
    .product_list .product-image-container img,
    .product_list .product-image-container:hover img {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
        background: transparent !important;
        transition: none !important;
    }

    #product_list .ajax_block_product:hover .unified-quantity-selector,
    #product_list .ajax_block_product:hover .quantity-selector,
    #product_list .ajax_block_product:hover .unified-add-to-cart,
    #product_list .ajax_block_product:hover .button-container,
    #product_list .ajax_block_product:hover .ajax_add_to_cart_button,
    #product_list .ajax_block_product:hover .functional-buttons,
    #product_list .ajax_block_product:hover .quantity-add-container,
    #product_list .ajax_block_product:active .quantity-add-container,
    #homefeatured .ajax_block_product:hover .unified-quantity-selector,
    #homefeatured .ajax_block_product:hover .quantity-selector,
    #homefeatured .ajax_block_product:hover .unified-add-to-cart,
    #homefeatured .ajax_block_product:hover .button-container,
    #homefeatured .ajax_block_product:hover .ajax_add_to_cart_button,
    #homefeatured .ajax_block_product:hover .functional-buttons,
    #homefeatured .ajax_block_product:hover .quantity-add-container,
    #homefeatured .ajax_block_product:active .quantity-add-container,
    .product_list .product-container:hover .hover-image,
    .product_list .product-container:hover .product-flags-hover {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #product_list .ajax_block_product:hover .content_price,
    #product_list .ajax_block_product:active .content_price,
    #homefeatured .ajax_block_product:hover .content_price,
    #homefeatured .ajax_block_product:active .content_price {
        margin: 5px 0 !important;
    }
}

/* ==========================================================================
   SOLUCIÓN DEFINITIVA FRANJA BLANCA IZQUIERDA (MÓVIL)
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Resetear HTML y Body para evitar scroll horizontal y márgenes */
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        position: relative !important;
    }

    /* 2. Anular márgenes negativos de Bootstrap (la causa #1 de este problema) */
    .container, .container-fluid, .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 3. Resetear columnas de Bootstrap (col-*) que tengan padding extra */
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
    }

    /* 4. Arreglar la cabecera (Header), el logo y el buscador */
    #header, .header-container, #header_logo {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
    }

    /* El logo a veces tiene un margen derecho heredado del escritorio */
    #header_logo {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* La barra de búsqueda suele tener un ancho fijo o margen */
    #search_block_top, .search_query_block, #searchbox {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* 5. Forzar que el menú superior (los iconos de casa, usuario, etc.) no desborde */
    #header .nav, .header_user_info, #header .row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important; /* Un pequeño respiro para que no toque el borde */
        display: flex !important;
        justify-content: space-between !important;
    }
}

/* ==========================================================================
   ESTRUCTURA DEL HEADER
   ========================================================================== */

/* 1. ESCritorio (más de 1080px): 3 columnas en una sola línea */
@media (min-width: 1080px) {
    .header-container .row {
        display: flex !important;
        flex-wrap: nowrap !important; /* Aquí sí está bien, porque sobra espacio */
        align-items: center !important;
        justify-content: space-between !important;
    }
    #header_logo { 
        flex: 0 0 auto !important; 
        max-width: 350px !important; 
        margin-right: 20px !important; 
    }
    #search_block_top { 
        flex: 1 1 auto !important; 
        max-width: 600px !important; 
        margin: 0 auto !important; 
        display: flex !important; 
        justify-content: center !important; 
    }
    .shopping_cart { 
        flex: 0 0 auto !important; 
        margin-left: auto !important; 
    }
}

/* 2. Móvil / Tablet (menos de 1080px): 2 filas */
@media (max-width: 1079px) {
    
    /* Forzar el contenedor a apilar */
    .header-container .row {
        display: flex !important;
        flex-wrap: wrap !important; /* AQUÍ PERMITIMOS QUE BAJE */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Fila 1: Logo (Ocupa el 100% del ancho) */
    #header_logo {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
    }
    #header_logo img.logo {
        margin: 0 auto !important;
        max-height: 80px !important; /* Tamaño óptimo para móvil */
        width: auto !important;
        display: block !important;
    }

    /* Fila 2: Buscador (Izquierda) y Carrito (Derecha) */
    #search_block_top {
        flex: 0 0 60% !important; /* Ocupa el 60% de la fila */
        max-width: 60% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 5px 0 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        box-sizing: border-box !important;
    }
    
    .shopping_cart, #shopping_cart {
        flex: 0 0 40% !important; /* Ocupa el 40% restante */
        max-width: 40% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 0 0 5px !important;
        display: flex !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    /* Evitar que el buscador se estire más de la cuenta */
    #search_block_top form,
    #search_block_top input#search_query_top {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 3. Limpieza de paddings extras para que nada estorbe */
header .nav { min-height: 0 !important; margin-bottom: 0 !important; }
#block_top_menu, .sf-contener { padding-top: 0 !important; margin-top: 0 !important; }
#columns { padding-top: 0px !important; margin-top: 0 !important; }

/* ==========================================================================
   BREADCRUMB: ESCRITORIO CON GRIS, MÓVIL SIN FONDO Y EN 1 LÍNEA
   ========================================================================== */

/* Escritorio: Estilo normal con fondo gris */
@media (min-width: 1080px) {
    .breadcrumb, 
    #center_column .breadcrumb {
        background-color: #f5f5f5 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 4px !important;
        padding: 8px 15px !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        font-size: 18px !important;
    }
}

/* Móvil y Tablet: Sin fondo, 1 sola línea, letra chica */
@media (max-width: 1079px) {
    /* 1. El contenedor principal se vuelve transparente */
    .breadcrumb, 
    #center_column .breadcrumb {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 5px 0 !important;
        margin: 0 0 10px 0 !important;
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }

    /* 2. Forzar las 4 categorías a una sola línea */
    .breadcrumb .fixed-categories {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding-bottom: 5px !important;
    }

    /* 3. Achicar el texto SOLO dentro del breadcrumb */
    .breadcrumb a,
    .breadcrumb span,
    .breadcrumb .navigation-pipe,
    .breadcrumb .fixed-category-link {
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        display: inline-block !important;
        margin: 0 2px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        color: #333 !important;
    }

    /* 4. La flechita un poco más chica */
    .breadcrumb .navigation-pipe {
        font-size: 10px !important;
        color: #999 !important;
    }
}