/**
 * Catálogo: tarjetas de producto, barra lateral con filtros y orden, paginación, "Ver más" y banner de la portada.
 * Se carga después de style.css (inc/assets.php).
 */

/* 4. Banner Panorámico Slim */
.allimport-hero-banner {
    position: relative !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #1e293b !important;
    background: #091322 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    aspect-ratio: 1376 / 390 !important;
    cursor: default !important;
}

.allimport-hero-banner img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    pointer-events: none !important;
}

/* <picture> no debe generar caja: los tamaños en % del img se siguen calculando contra el banner */
.allimport-hero-banner picture {
    display: contents !important;
}

@media (min-width: 769px) {
.allimport-hero-banner {
        height: 220px !important;
        max-height: 220px !important;
        aspect-ratio: auto !important;
        background: #061123 !important; /* mismo azul que los bordes de banner.jpg */
    }
    /* La caja (~5.2:1) es más apaisada que banner.jpg (3.5:1): con cover se perdía 1/3 del alto y
       los productos tocaban el borde. Se muestra la franja con contenido (y≈40–320 de 390 px),
       centrada en y≈180, y los costados sobrantes se funden con el fondo mediante una máscara. */
    .allimport-hero-banner img {
        position: relative !important;
        top: 50% !important;
        transform: translateY(-46.2%) !important;
        height: 139.3% !important; /* 390 / 280 */
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%) !important;
        mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%) !important;
    }
}

.allimport-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.allimport-badge-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.allimport-badge-icon {
    font-size: 20px;
    line-height: 1;
}

.allimport-badge-info strong {
    display: block;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
}

.allimport-badge-info span {
    display: block;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

@media (max-width: 768px) {
/* Banner Hero Panorámico Slim en Móvil */
    .allimport-hero-banner {
        width: 100% !important;
        height: 88px !important;
        max-height: 88px !important;
        aspect-ratio: auto !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        cursor: default !important;
    }
.allimport-hero-banner img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        pointer-events: none !important;
    }
    /* Cintillo de Confianza: Carrusel Horizontal de Micro-Pills Táctil (32px) */
    .allimport-trust-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 0 0 4px 0 !important;
        margin-bottom: 8px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
.allimport-trust-badges::-webkit-scrollbar {
        display: none !important;
    }
.allimport-badge-card {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 999px !important;
        padding: 4px 14px 4px 5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        min-height: 42px !important;
        height: 42px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
        box-sizing: border-box !important;
    }
.allimport-badge-icon {
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
.allimport-badge-icon.badge-icon-truck {
        background: #eff6ff !important;
    }
.allimport-badge-icon.badge-icon-card {
        background: #ecfdf5 !important;
    }
.allimport-badge-icon.badge-icon-shield {
        background: #fef3c7 !important;
    }
.allimport-badge-icon.badge-icon-chat {
        background: #f0fdf4 !important;
    }
.allimport-badge-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
.allimport-badge-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
.allimport-badge-info strong {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
.allimport-badge-info span {
        display: block !important; /* Subtítulo en una segunda línea: el título solo no alcanza (ej: "Delivery en Asunción") */
        font-size: 10px !important;
        font-weight: 500 !important;
        color: #64748b !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
    }
}

/* Cambiador de Pginas (Paginacin WooCommerce Centrada y Moderna) */
nav.woocommerce-pagination {
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

nav.woocommerce-pagination ul {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

nav.woocommerce-pagination ul li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav.woocommerce-pagination ul li .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

nav.woocommerce-pagination ul li span.current {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25) !important;
}

nav.woocommerce-pagination ul li a.page-numbers:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
    transform: translateY(-1px) !important;
}

/* Botón "Ver más productos" (K3): sólo en móvil; en escritorio sigue la paginación numerada */
.allimport-load-more {
    display: none;
}

@media (max-width: 768px) {
.allimport-load-more {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 4px 0 28px;
    }
.allimport-load-more-btn {
        width: 100%;
        max-width: 320px;
        height: 46px;
        border: 1.5px solid #2563eb;
        border-radius: 12px;
        background: #ffffff;
        color: #2563eb;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }
.allimport-load-more-btn:active {
        background: #eff6ff;
    }
.allimport-load-more-btn:disabled {
        opacity: 0.6;
        cursor: default;
    }
.allimport-load-more-count {
        margin: 0;
        font-size: 13px;
        color: #64748b;
    }
    /* Con el botón debajo, la grilla no necesita los 50 px de aire inferior */
    .allimport-catalog-products-col ul.products:has(~ .allimport-load-more) {
        padding-bottom: 16px !important;
    }
    /* La paginación numerada queda en el HTML para Google, pero no se muestra */
    nav.woocommerce-pagination.allimport-has-load-more {
        display: none !important;
    }
}

@media (max-width: 768px) {
nav.woocommerce-pagination {
        display: block !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
nav.woocommerce-pagination::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
nav.woocommerce-pagination ul {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        max-width: none !important;
        white-space: nowrap !important;
    }
nav.woocommerce-pagination ul li {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
nav.woocommerce-pagination ul li:has(> a.next.page-numbers) {
        position: sticky !important;
        right: 0 !important;
        z-index: 2 !important;
        padding-left: 6px !important;
        background: transparent !important;
        box-shadow: none !important;
    }
nav.woocommerce-pagination.is-overflowing ul li:has(> a.next.page-numbers) {
        background: #f8fafc !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    }
}

/* Barra de resultados y selector de ordenamiento */
.woocommerce-result-count {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.woocommerce-ordering select {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    padding: 6px 12px !important;
    height: 38px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

.woocommerce-ordering select:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* =========================================================
   3. TARJETAS DE PRODUCTO VIBRANTES Y MODERNAS
   ========================================================= */

ul.products {
    margin-top: 15px !important;
}

ul.products li.product {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px 12px 16px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

/* Hover de Elevación y Borde Azul en la Tarjeta */
ul.products li.product:hover {
    transform: translateY(-6px) !important;
    border-color: #2563eb !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

/* Contenedor de Imagen con Efecto Zoom Suave */
ul.products li.product .woocommerce-loop-image-link {
    display: block !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
}

ul.products li.product .woocommerce-loop-image-link img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

ul.products li.product:hover .woocommerce-loop-image-link img {
    transform: scale(1.06) !important;
}

/* Badge de Oferta / Destacado */
ul.products li.product span.onsale,
.woocommerce ul.products li.product span.onsale {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    top: 18px !important;
    left: 18px !important;
    right: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
}

/* Contenido de la Tarjeta */
ul.products li.product .product-details {
    padding: 10px 4px 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: transparent !important;
}

/* Título del Producto */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    min-height: 38px !important;
    margin-bottom: 6px !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

ul.products li.product:hover .woocommerce-loop-product__title a {
    color: #2563eb !important;
}

/* Ocultar párrafos de descripción larga en la grilla para que las tarjetas sean limpias y parejas */
ul.products li.product .product-excerpt {
    display: none !important;
}

/* Precios en Guaraníes */
.woocommerce ul.products li.product .price,
ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi,
ul.products li.product .price bdi {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

ul.products li.product .price {
    margin: 6px 0 12px !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del,
ul.products li.product .price del {
    opacity: 1 !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    margin-right: 8px !important;
    text-decoration: line-through !important;
    text-decoration-color: #dc2626 !important;
    text-decoration-thickness: 1.5px !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .price del *,
ul.products li.product .price del * {
    opacity: 1 !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 18px !important;
}

.woocommerce ul.products li.product .price ins,
ul.products li.product .price ins {
    opacity: 1 !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .price ins *,
ul.products li.product .price ins * {
    opacity: 1 !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 18px !important;
}

/* Contenedor del Botón de Acción */
ul.products li.product .product-action-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: static !important;
    margin-top: auto !important;
    padding: 0 !important;
}

/* BOTÓN AÑADIR AL CARRITO: DESTACADO COMPACTO (OPCIÓN 1) */
ul.products li.product a.button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
ul.products li.product .product-action-wrap a.button,
.woocommerce ul.products li.product .product-action-wrap a.button {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ESTADO HOVER: AZUL VIBRANTE CON SOMBRA ELEVADA */
ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce-page ul.products li.product a.button:hover,
ul.products li.product .product-action-wrap a.button:hover,
.woocommerce ul.products li.product .product-action-wrap a.button:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
    transform: translateY(-1.5px) !important;
}

/* Icono dentro del botón */
ul.products li.product a.button svg,
ul.products li.product a.button .kadence-svg-icon {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.2s ease !important;
}

ul.products li.product a.button:hover svg,
ul.products li.product a.button:hover .kadence-svg-icon {
    transform: translateX(3px) !important;
}

/* Enlace "Ver carrito" que WooCommerce agrega tras sumar un producto: sobra, porque el carrito lateral
   se abre solo y /cart redirige al checkout. El botón ya muestra el tilde de "agregado". */
ul.products li.product a.added_to_cart {
    display: none !important;
}

/* FORZAR BOTON AÑADIR AL CARRITO SIEMPRE VISIBLE CON HOVER AZUL BRILLANTE */
.woocommerce ul.products li.product .product-action-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product .product-action-wrap {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-top: 10px !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product .entry-content-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product .entry-content-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap {
    transform: none !important;
    padding: 10px 4px 0 !important;
}

/* Badge de oferta si lo hay */
.woocommerce div.product span.onsale,
.woocommerce span.onsale {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

.woocommerce-ordering.allimport-ordering-form {
    margin-bottom: 0 !important;
    font-size: 13px !important;
}

.allimport-custom-dropdown {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.allimport-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none;
    outline: none;
}

.allimport-sort-btn:hover {
    border-color: #2563eb !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-1px);
}

.allimport-custom-dropdown.is-open .allimport-sort-btn {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.allimport-sort-btn .sort-active-val {
    color: #2563eb !important;
    font-weight: 800 !important;
}

.allimport-sort-btn .sort-icon-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.allimport-custom-dropdown.is-open .allimport-sort-btn .sort-icon-chevron {
    transform: rotate(180deg);
}

/* Menú flotante estilo tarjeta */
.allimport-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.allimport-custom-dropdown.is-open .allimport-sort-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.sort-menu-header {
    padding: 8px 12px 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
}

.sort-menu-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
}

.allimport-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    user-select: none;
    outline: none;
}

.allimport-sort-option:hover,
.allimport-sort-option:focus {
    background: #f8fafc;
    color: #0f172a;
}

.allimport-sort-option.is-active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 700;
}

.allimport-sort-option .opt-icon {
    display: inline-block;
    margin-right: 4px;
}

.allimport-sort-option .opt-check {
    color: #2563eb;
    font-weight: 900;
    font-size: 14px;
    margin-left: 8px;
}

@media (max-width: 600px) {
.allimport-sort-btn {
        padding: 7px 12px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
.allimport-sort-menu {
        min-width: 210px;
        right: 0;
        left: auto;
        max-width: calc(100vw - 32px);
    }
}

@media (min-width: 769px) {
.allimport-badge-card {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 18px !important;
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 16px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
        box-sizing: border-box !important;
    }
.allimport-badge-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
.allimport-badge-icon.badge-icon-truck {
        background: #eff6ff !important;
    }
.allimport-badge-icon.badge-icon-card {
        background: #ecfdf5 !important;
    }
.allimport-badge-icon.badge-icon-shield {
        background: #fef3c7 !important;
    }
.allimport-badge-icon.badge-icon-chat {
        background: #f0fdf4 !important;
    }
}

/* Enlace interactivo en la tarjeta Atencion Directa de la Portada */
.allimport-badge-card-link {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.allimport-badge-card-link:hover {
    transform: translateY(-3px);
    border-color: #16a34a !important;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.14) !important;
}

.allimport-badge-card-link:hover .badge-icon-chat {
    background-color: #dcfce7 !important;
    transform: scale(1.08);
}

.allimport-badge-card-link .allimport-badge-info span {
    color: #16a34a !important;
    font-weight: 600 !important;
}

/* Pill de Porcentaje de Descuento en Ofertas */
.allimport-discount-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25) !important;
    text-transform: uppercase !important;
}

.woocommerce ul.products li.product .price .allimport-discount-pill,
ul.products li.product .price .allimport-discount-pill {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: #16a34a !important;
}

.buybox-price-value .allimport-discount-pill {
    font-size: 13px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    margin-left: 8px !important;
    vertical-align: 2px !important;
    color: #ffffff !important;
    background: #16a34a !important;
}

/* 1. Badge "Agotado" en catálogo (portada, tienda, categorías) */
.allimport-out-of-stock-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #ffffff !important;
    background: #1e293b !important; /* Elegante gris pizarra / antracita oscuro */
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    pointer-events: none !important;
    line-height: 1.2 !important;
}

/* Ocultar badge de ¡Oferta! si el producto no tiene stock para evitar confusión */
.woocommerce ul.products li.product.outofstock .onsale,
.wc-block-grid__product.outofstock .onsale {
    display: none !important;
}

/* 6. Botón de consulta WhatsApp para productos agotados */


/* Badge Agotado en la imagen de la ficha de producto */
.woocommerce div.product .allimport-single-out-of-stock-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #ffffff !important;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    pointer-events: none !important;
}

/* Badge Agotado en el encabezado de la ficha de producto (mismo estilo idéntico al catálogo) */


/* Ocultar badge de oferta en ficha si no hay stock */
.woocommerce div.product.outofstock .onsale {
    display: none !important;
}

/* Contenedor principal de 2 columnas */
.allimport-catalog-layout-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 35px;
    scroll-margin-top: 80px;
}

/* Columna lateral izquierda fija/sticky */
.allimport-catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 10;
}

.allimport-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Bloques modulares del sidebar */
.allimport-sidebar-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sidebar-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-block-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navegación vertical de categorías */
.allimport-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.sidebar-nav-link:hover {
    background: #f8fafc;
    color: #2563eb !important;
    border-color: #e2e8f0;
    transform: translateX(2px);
}

.sidebar-nav-link.is-active {
    background: #eff6ff;
    color: #2563eb !important;
    font-weight: 700;
    border-color: #bfdbfe;
}

.sidebar-link-icon {
    font-size: 16px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-link-text {
    flex: 1;
}

.sidebar-link-chevron {
    color: #94a3b8;
    transition: transform 0.18s ease, color 0.18s ease;
}

.sidebar-nav-link:hover .sidebar-link-chevron,
.sidebar-nav-link.is-active .sidebar-link-chevron {
    color: #2563eb;
    transform: translateX(2px);
}

.sidebar-nav-sale {
    color: #dc2626 !important;
}

.sidebar-nav-sale:hover {
    background: #fef2f2;
    color: #b91c1c !important;
    border-color: #fecaca;
}

.sidebar-nav-sale.is-active {
    background: #fef2f2;
    color: #b91c1c !important;
    border-color: #fca5a5;
}

.sidebar-sale-badge {
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

/* Bloque de Ordenamiento en el Sidebar */
.allimport-sidebar-ordering {
    padding: 14px 16px;
    position: relative;
    z-index: 20;
}

.sidebar-custom-dropdown {
    position: relative;
    width: 100%;
}

.sidebar-sort-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.sidebar-sort-btn:hover {
    border-color: #2563eb !important;
    color: #0f172a !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12) !important;
}

.sidebar-custom-dropdown.is-open .sidebar-sort-btn {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.sidebar-sort-btn .sort-btn-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sidebar-sort-btn .sort-btn-icon {
    font-size: 14px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.sidebar-sort-btn .sort-btn-text {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 13px !important;
    letter-spacing: -0.1px !important;
}

.sidebar-sort-btn .sort-icon-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
    color: #64748b !important;
    margin-left: 8px !important;
}

.sidebar-custom-dropdown.is-open .sort-icon-chevron {
    transform: rotate(180deg) !important;
}

.sidebar-sort-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
    padding: 6px !important;
    z-index: 100 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) scale(0.98) !important;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s !important;
    box-sizing: border-box !important;
}

.sidebar-custom-dropdown.is-open .sidebar-sort-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.sidebar-sort-menu .sort-menu-header {
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}

.sidebar-sort-menu .sort-menu-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.sidebar-sort-menu .allimport-sort-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    user-select: none !important;
    outline: none !important;
}

.sidebar-sort-menu .allimport-sort-option:hover,
.sidebar-sort-menu .allimport-sort-option:focus {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.sidebar-sort-menu .allimport-sort-option.is-active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.sidebar-sort-menu .allimport-sort-option .opt-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.sidebar-sort-menu .allimport-sort-option .opt-icon {
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.sidebar-sort-menu .allimport-sort-option .opt-check {
    color: #2563eb !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    margin-left: 6px !important;
}

.sidebar-orderby-select {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 8px 32px 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.sidebar-orderby-select:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Bloque de Filtro de Precios Interactivo (Inputs + Slider) */
.allimport-sidebar-price-filter {
    padding: 16px;
}

.sidebar-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-reset-price {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626 !important;
    text-decoration: none !important;
    background: #fef2f2;
    padding: 2px 7px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    transition: all 0.15s ease;
}

.sidebar-reset-price:hover {
    background: #dc2626;
    color: #ffffff !important;
}

/* Dual Range Slider */
.allimport-price-slider-wrap {
    position: relative;
    height: 28px;
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
}

.price-slider-track-bg {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.price-slider-track {
    position: absolute;
    height: 6px;
    background: #2563eb;
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

/* Anular completamente estilos heredados del tema padre Kadence (border, padding, background en input[type=range]) */
input[type="range"].price-slider-range,
.price-slider-range {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent !important;
    pointer-events: none;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    top: 50%;
    transform: translateY(-50%);
}

input[type="range"].price-slider-range:focus,
.price-slider-range:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.price-slider-range::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    height: 6px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.price-slider-range::-moz-range-track {
    background: transparent !important;
    border: none !important;
    height: 6px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.price-slider-range::-moz-range-progress {
    background: transparent !important;
    border: none !important;
    height: 6px !important;
    box-shadow: none !important;
}

.range-min {
    z-index: 5;
}

.range-max {
    z-index: 4;
}

.price-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-slider-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.45);
}

.price-slider-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-slider-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.45);
}

/* Inputs Numéricos de Usuario */
.sidebar-price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.sidebar-price-input-col {
    flex: 1;
}

.price-input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.price-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.price-input-wrap:focus-within {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.currency-symbol {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}

.sidebar-num-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    outline: none !important;
    -moz-appearance: textfield;
}

.sidebar-num-input::-webkit-outer-spin-button,
.sidebar-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-inputs-sep {
    font-weight: 700;
    color: #94a3b8;
    margin-top: 14px;
}

/* Columna de productos (Alineación Flush y 3 Columnas fluidas en Desktop) */
.allimport-catalog-products-col {
    flex: 1;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.allimport-catalog-layout-wrap.is-loading {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Ocultar selector flotante y conteo en la columna para garantizar alineación ras */
.allimport-catalog-products-col .kadence-shop-top-row,
.allimport-catalog-products-col .woocommerce-ordering,
.allimport-catalog-products-col .kadence-woo-results-count,
.allimport-catalog-products-col .woocommerce-result-count {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

.allimport-catalog-products-col ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Título de categoría sobre la grilla (K5): en escritorio con descripción; en el celular sólo el
   nombre en una línea, porque el chip activo ya indica la categoría y el alto es para productos */
.allimport-catalog-heading {
    margin: 0 0 16px;
}

.allimport-catalog-heading-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: #0f172a;
}

.allimport-catalog-heading-desc {
    margin: 4px 0 0;
    max-width: 62ch;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

@media (max-width: 768px) {
.allimport-catalog-heading {
        margin: 0 2px 6px;
    }
.allimport-catalog-heading-title {
        font-size: 18px;
    }
.allimport-catalog-heading-desc {
        display: none;
    }
}

@media (min-width: 1280px) {
.allimport-catalog-products-col ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
.allimport-catalog-products-col ul.products li.product .product-action-wrap a.button {
        width: 100% !important;
        justify-content: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
    }
.allimport-catalog-products-col ul.products li.product .product-action-wrap a.button .kadence-svg-iconset:has(.kadence-arrow-right-alt-svg) {
        display: none !important;
    }
}

.allimport-catalog-products-col ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}

/* Elementos específicos de la barra lateral en Móvil (Ocultos en Desktop) */
.sidebar-mobile-header,
.sidebar-mobile-bottom-action,
.allimport-sidebar-backdrop,
.allimport-mobile-filter-bar-wrap,
.allimport-mobile-catalog-bar,
.allimport-mobile-category-carousel,
.allimport-mobile-dept-chips,
.allimport-mobile-filter-bar,
.allimport-mobile-popover,
.allimport-mobile-popover-backdrop,
.allimport-mobile-active-filters,
.sidebar-sort-chips-grid,
.allimport-mobile-price-presets,
.sidebar-mobile-reset-btn {
    display: none !important;
}

@media (max-width: 1100px) and (min-width: 992px) {
.allimport-catalog-sidebar {
        width: 240px;
    }
.allimport-catalog-layout-wrap {
        gap: 20px;
    }
.allimport-catalog-products-col ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    /* En móvil el drawer está dentro del layout: atenuar el layout completo
       también volvería translúcida la barra lateral abierta. */
    .allimport-catalog-layout-wrap.is-loading {
        opacity: 1;
    }
.allimport-catalog-layout-wrap.is-loading .allimport-catalog-products-col {
        opacity: 0.58;
        transition: opacity 0.15s ease;
    }
    /* Bloqueo de scroll cuando el drawer está abierto */
    body.allimport-sidebar-open {
        overflow: hidden !important;
    }
}

@media (max-width: 991px) {
.allimport-catalog-layout-wrap {
        display: block !important;
        margin-top: 4px !important;
    }
    /* Telón oscuro desenfocado de fondo (Backdrop) */
    .allimport-sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }
.allimport-sidebar-backdrop.is-open {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Barra Lateral de Escritorio: Oculta en Móvil (reemplazada por Chips y Popovers táctiles) */
    .allimport-catalog-sidebar {
        display: none !important;
    }
.allimport-sidebar-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 16px 12px 16px !important;
        min-height: 100% !important;
        box-sizing: border-box !important;
    }
    /* Encabezado del Drawer Móvil */
    .sidebar-mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 12px !important;
        border-bottom: 1.5px solid #f1f5f9 !important;
        margin-bottom: 2px !important;
    }
.sidebar-mobile-header-title {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #0f172a !important;
    }
.sidebar-mobile-title-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background: #2563eb !important;
    }
.sidebar-mobile-close-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #64748b !important;
        font-size: 24px !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        padding: 0 !important;
        margin: 0 !important;
    }
.sidebar-mobile-close-btn:hover {
        background: #fee2e2 !important;
        color: #dc2626 !important;
        border-color: #fecaca !important;
        transform: scale(1.06) !important;
    }
.sidebar-mobile-close-btn:active {
        transform: scale(0.95) !important;
    }
    /* Módulos en el Drawer: Diseño plano y limpio sin cajas pesadas */
    .allimport-sidebar-block {
        border: 1px solid #f1f5f9 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        padding: 12px !important;
        background: #ffffff !important;
    }
    /* Navegación de Categorías en el Drawer (Vertical Limpio) */
    .allimport-sidebar-departments {
        padding: 12px !important;
        border-radius: 12px !important;
    }
.allimport-sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        overflow-x: visible !important;
    }
.sidebar-nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }
.sidebar-link-chevron {
        display: block !important;
        margin-left: auto !important;
    }
    /* Módulo de Ordenamiento: Ocultar dropdown flotante en móvil y mostrar Chips 2x2 táctiles */
    .allimport-sidebar-ordering {
        display: block !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
.allimport-sidebar-ordering .sidebar-custom-dropdown {
        display: none !important;
    }
.sidebar-sort-chips-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 4px !important;
    }
.sidebar-sort-chip {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 10px !important;
        border-radius: 12px !important;
        border: 1.5px solid #e2e8f0 !important;
        background: #ffffff !important;
        color: #334155 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        outline: none !important;
        user-select: none !important;
        box-sizing: border-box !important;
        min-height: 42px !important;
    }
.sidebar-sort-chip:active {
        transform: scale(0.97) !important;
    }
.sidebar-sort-chip.is-active {
        border-color: #2563eb !important;
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        font-weight: 800 !important;
    }
.sidebar-sort-chip .chip-main {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
.sidebar-sort-chip .chip-icon {
        font-size: 13px !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
    }
.sidebar-sort-chip .chip-label {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
.sidebar-sort-chip .chip-check {
        color: #2563eb !important;
        font-weight: 800 !important;
        font-size: 12px !important;
        margin-left: 4px !important;
    }
    /* Módulo de Filtro de Precios en Móvil */
    .allimport-sidebar-price-filter {
        display: block !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
    /* Presets de Rango Rápido para Móvil */
    .allimport-mobile-price-presets {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
.mobile-price-preset-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 3px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: #334155 !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        white-space: normal !important;
    }
.mobile-price-preset-btn strong {
        font-weight: 800 !important;
        color: inherit !important;
    }
.mobile-price-preset-btn:active {
        background: #eff6ff !important;
        border-color: #93c5fd !important;
        color: #1d4ed8 !important;
        transform: scale(0.97) !important;
    }
    /* Slider de Precios: Tiradores ampliados para toque táctil ergonómico */
    .price-slider-range::-webkit-slider-thumb {
        width: 24px !important;
        height: 24px !important;
        margin-top: -9px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    }
.price-slider-range::-moz-range-thumb {
        width: 24px !important;
        height: 24px !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    }
    /* Pie Fijo del Drawer (Sticky Footer con Doble Acción: Limpiar y Ver Resultados) */
    .sidebar-mobile-bottom-action {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: auto !important;
        padding-top: 12px !important;
        padding-bottom: 4px !important;
        border-top: 1.5px solid #f1f5f9 !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        bottom: 0 !important;
        background: #ffffff !important;
        z-index: 20 !important;
    }
.sidebar-mobile-reset-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        border-radius: 12px !important;
        border: 1.5px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #475569 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        flex-shrink: 0 !important;
    }
.sidebar-mobile-reset-btn:active {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        transform: scale(0.98) !important;
    }
.sidebar-mobile-apply-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex: 1 !important;
        background: #2563eb !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 11px 14px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
        transition: all 0.15s ease !important;
    }
.sidebar-mobile-apply-btn:active {
        background: #1d4ed8 !important;
        transform: scale(0.98) !important;
    }
    /* Sin título "DEPARTAMENTOS": los chips se explican solos y el primer producto sube 25 px (K1) */

    /* Chips Grandes Visuales de Departamentos (Propuesta 3) */
    .allimport-mobile-dept-chips,
    .allimport-mobile-category-carousel {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 2px 2px 6px 2px !important;
        margin-bottom: 4px !important;
        scrollbar-width: none !important;
    }
.allimport-mobile-dept-chips::-webkit-scrollbar,
    .allimport-mobile-category-carousel::-webkit-scrollbar {
        display: none !important;
    }
.mobile-dept-chip,
    .mobile-cat-pill {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 64px !important;
        height: 52px !important;
        padding: 3px 6px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        color: #334155 !important;
        text-decoration: none !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
.mobile-dept-chip:active,
    .mobile-cat-pill:active {
        transform: scale(0.96) !important;
    }
.mobile-dept-chip .chip-icon,
    .mobile-cat-pill .cat-pill-icon {
        font-size: 16px !important;
        line-height: 1 !important;
        margin-bottom: 1px !important;
    }
.mobile-dept-chip .chip-title,
    .mobile-cat-pill .cat-pill-text {
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }
.mobile-dept-chip .chip-sub {
        font-size: 8px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        line-height: 1 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
    }
.mobile-dept-chip.is-active,
    .mobile-cat-pill.is-active {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
    }
.mobile-dept-chip.is-active .chip-sub {
        color: rgba(255, 255, 255, 0.82) !important;
    }
.mobile-dept-chip.mobile-cat-sale {
        border-color: #fecaca !important;
        background: #fff5f5 !important;
    }
.mobile-dept-chip.mobile-cat-sale .chip-title {
        color: #dc2626 !important;
    }
.mobile-dept-chip.mobile-cat-sale .chip-sub {
        color: #ef4444 !important;
    }
.mobile-dept-chip.mobile-cat-sale.is-active {
        background: #dc2626 !important;
        border-color: #dc2626 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28) !important;
    }
.mobile-dept-chip.mobile-cat-sale.is-active .chip-title,
    .mobile-dept-chip.mobile-cat-sale.is-active .chip-sub {
        color: #ffffff !important;
    }
    /* Línea Sutil de Conteo y Filtros para Móvil */
    .allimport-mobile-filter-bar,
    .allimport-mobile-catalog-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: none !important;
        border-top: 1px solid #f1f5f9 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 0 !important;
        padding: 4px 2px !important;
        margin-bottom: 4px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        width: 100% !important;
        position: relative !important;
    }
.allimport-mobile-filter-triggers {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
.mobile-filter-pill-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 5px 10px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #334155 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    }
.mobile-filter-pill-btn:active {
        transform: scale(0.96) !important;
    }
.mobile-filter-pill-btn.is-active {
        background: #eff6ff !important;
        border-color: #93c5fd !important;
        color: #1d4ed8 !important;
    }
.mobile-filter-pill-btn .filter-pill-caret {
        font-size: 10px !important;
        margin-left: 2px !important;
        opacity: 0.7 !important;
    }
.allimport-mobile-products-count {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        white-space: nowrap !important;
    }
    /* Contenedor Relativo para la Barra de Filtros y Popovers en Móvil */
    .allimport-mobile-filter-bar-wrap {
        display: block !important;
        position: relative !important;
        margin-bottom: 6px !important;
        z-index: 1000 !important;
    }
    /* Popovers Flotantes para Móvil (Precio y Orden) */
    .allimport-mobile-popover {
        display: none;
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 0 !important;
        background: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
        z-index: 1002 !important;
        animation: allimportPopoverIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }
.allimport-mobile-popover.allimport-sort-popover {
        left: auto !important;
        right: 0 !important;
        width: 250px !important;
        max-width: 92vw !important;
    }
}

@media (max-width: 991px) {
.allimport-mobile-popover.is-open {
        display: block !important;
    }
.allimport-mobile-popover-backdrop {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        z-index: 999 !important;
    }
.allimport-mobile-popover-backdrop.is-open {
        display: block !important;
    }
.popover-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
.popover-title {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }
.popover-close-btn {
        background: #f1f5f9 !important;
        border: none !important;
        border-radius: 50% !important;
        width: 26px !important;
        height: 26px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        cursor: pointer !important;
    }
    /* Slider y Presets en Popover Móvil */
    .popover-slider-section {
        margin: 14px 0 10px !important;
    }
.popover-slider-section .allimport-price-slider-wrap {
        position: relative !important;
        height: 20px !important;
        margin-bottom: 8px !important;
    }
.popover-price-readout {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 12px !important;
        color: #64748b !important;
        margin-top: 6px !important;
    }
.popover-price-readout strong {
        color: #0f172a !important;
        font-weight: 800 !important;
    }
.mobile-price-preset-btn.is-active {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    }
.mobile-price-preset-btn.is-active strong {
        color: #ffffff !important;
    }
.popover-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 14px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
    }
.popover-apply-btn {
        flex: 1 !important;
        background: #2563eb !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
        transition: background 0.15s ease, transform 0.1s ease !important;
    }
.popover-apply-btn:active {
        transform: scale(0.97) !important;
        background: #1d4ed8 !important;
    }
.popover-reset-btn {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        padding: 8px 14px !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: background 0.15s ease !important;
    }
.popover-reset-btn:hover {
        color: #dc2626 !important;
        background: #fef2f2 !important;
        border-color: #fca5a5 !important;
    }
.mobile-sort-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    /* Chips de Filtros Activos con eliminación rápida en 1 toque */
    .allimport-mobile-active-filters {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: -4px !important;
        margin-bottom: 12px !important;
        padding: 0 2px !important;
    }
.mobile-active-chip {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 5px 11px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        border: 1px solid #bfdbfe !important;
        box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06) !important;
        transition: all 0.15s ease !important;
    }
.mobile-active-chip:hover,
    .mobile-active-chip:active {
        background: #dbeafe !important;
        color: #1e40af !important;
    }
.mobile-active-chip .chip-remove {
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        color: #2563eb !important;
        margin-left: 2px !important;
    }
.mobile-clear-all-link {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #ef4444 !important;
        text-decoration: none !important;
        margin-left: auto !important;
        cursor: pointer !important;
        padding: 3px 6px !important;
        border-radius: 8px !important;
        transition: all 0.15s ease !important;
    }
.mobile-clear-all-link:hover {
        color: #b91c1c !important;
        background: #fef2f2 !important;
    }
    /* Grilla de Productos en Móvil (2 Columnas Fluidas) */
    .allimport-catalog-products-col ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding-bottom: 50px !important;
    }
    /* Botón 'Añadir al Carrito' en Móvil: Compacto, Fino y Ergonómico */
    .allimport-catalog-products-col ul.products li.product a.button,
    .woocommerce ul.products li.product a.button,
    .woocommerce ul.products li.product .product-action-wrap a.button,
    .woocommerce-page ul.products li.product a.button {
        padding: 7px 10px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        border-radius: 8px !important;
        min-height: 34px !important;
        height: 34px !important;
        line-height: 1 !important;
        gap: 4px !important;
    }
.woocommerce ul.products li.product a.button svg,
    .woocommerce ul.products li.product a.button .kadence-svg-icon {
        width: 13px !important;
        height: 13px !important;
    }
.woocommerce ul.products li.product .product-action-wrap {
        margin-top: 6px !important;
    }
}

@media (max-width: 768px) {
body ul.products li.product.product {
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
body ul.products li.product.product > a.woocommerce-loop-image-link {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }
body ul.products li.product.product > a.woocommerce-loop-image-link img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
body ul.products li.product.product .product-details {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 8px 10px 10px !important;
    }
body ul.products li.product.product .woocommerce-loop-product__title {
        margin: 0 0 4px !important;
        padding: 0 !important;
        min-height: 0 !important;
        white-space: normal !important;
    }
    /* Los nombres se cargan en MAYÚSCULAS: se muestran en minúsculas con la primera letra en mayúscula */
    body ul.products li.product.product .woocommerce-loop-product__title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: 2.6em !important; /* 2 líneas siempre: precios y botones alineados entre tarjetas */
        margin: 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        text-transform: lowercase !important;
        white-space: normal !important;
        color: #0f172a !important;
    }
body ul.products li.product.product .woocommerce-loop-product__title a::first-letter {
        text-transform: uppercase !important;
    }
body ul.products li.product.product .price {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        column-gap: 5px !important;
        margin: 0 0 8px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
body ul.products li.product.product .price ins {
        order: 1 !important;
        text-decoration: none !important;
    }
    /* Mismo tamaño que el monto de adentro (18 px): si el del es más chico, la línea queda baja */
    body ul.products li.product.product .price del {
        order: 2 !important;
        font-size: 18px !important;
    }
body ul.products li.product.product .price .allimport-discount-pill {
        order: 3 !important;
    }
body ul.products li.product.product .product-action-wrap {
        width: 100% !important;
        margin: auto 0 0 !important;
    }
body ul.products li.product.product .product-action-wrap .button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 36px !important;
        min-height: 0 !important;
        padding: 0 8px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }
    /* Sólo la flecha: el spinner y el tilde de "agregado" siguen dando feedback al tocar */
    body ul.products li.product.product .product-action-wrap .button .kadence-svg-iconset:has(.kadence-arrow-right-alt-svg) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Chips de categorías */
    body .mobile-dept-chip .chip-title {
        font-size: 12px !important;
    }
body .mobile-dept-chip .chip-sub {
        font-size: 10px !important;
    }
    /* Sellos de la home */
    body .allimport-trust-badges .allimport-badge-info strong {
        font-size: 13px !important;
    }
body .allimport-trust-badges .allimport-badge-info span {
        font-size: 11px !important;
    }
    /* Barra del catálogo: contador y filtros */
    body .allimport-mobile-filter-bar .allimport-mobile-products-count {
        font-size: 13px !important;
    }
body .allimport-mobile-filter-triggers .mobile-filter-pill-btn {
        height: 38px !important;
        min-height: 38px !important;
        font-size: 13px !important;
    }
body .mobile-filter-pill-btn .filter-pill-label {
        font-size: 13px !important;
    }
body .mobile-filter-pill-btn .filter-pill-caret {
        font-size: 11px !important;
    }
    /* Tarjetas: sellos de oferta y botón */
    body ul.products li.product .onsale,
    body ul.products li.product .allimport-discount-pill {
        font-size: 12px !important;
    }
body ul.products li.product.product .product-action-wrap .button {
        height: 40px !important;
    }
}

.mobile-filter-pill-btn {
    align-items: center !important;
}


/* Tarjetas compactas: el ahorro va en el sello de la foto ("Ahorrás 50%") y el precio anterior, tachado,
   al lado del actual; así las ofertas ocupan una sola línea de precio y todas las tarjetas miden lo mismo */
ul.products li.product .allimport-discount-pill {
    display: none !important;
}

body ul.products li.product.product .product-details {
    justify-content: flex-start !important;
}

body ul.products li.product.product .price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0 5px !important;
    min-height: 0 !important;
    margin: 2px 0 10px !important;
}

body ul.products li.product.product .price ins {
    order: 1 !important;
}

body ul.products li.product.product .price del {
    order: 2 !important;
    margin: 0 !important;
}

body ul.products li.product.product .price ins *,
body ul.products li.product.product .price > .woocommerce-Price-amount * {
    font-size: 16px !important;
}

body ul.products li.product.product .price del,
body ul.products li.product.product .price del * {
    font-size: 11px !important;
}

body ul.products li.product.product .product-action-wrap {
    margin-top: auto !important;
}

@media (min-width: 769px) {
body ul.products li.product.product h2.woocommerce-loop-product__title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        padding: 0 !important;
        min-height: 2.7em !important;
        margin-bottom: 4px !important;
    }
}
