/* =============================
            �9�8 CONFIGURACIONES GENERALES
        ============================= */
* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* =============================
            🎨 BOTÓN CERRAR SIDEBAR - SOLO EN MÓVILES
        ============================= */
.sidebar-close {
    display: none !important;
}

/* =============================
            �9�8 CONTENEDOR PRINCIPAL
        ============================= */

/* =============================
            �9�8 CORRECCI�0�7N: WRAPPER STICKY DEL HEADER SOLO EN PRODUCTOS (M�0�7VIL)
   Evita conflictos con el sistema de header m��vil pegajoso. En esta vista,
   el contenedor global con clases Tailwind `.sticky.top-0` no debe ser sticky
   en m��viles, ya que el encabezado m��vil usa su propio mecanismo.
*/
@media (max-width: 991.98px) {
    .sticky.top-0 {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    /* En productos m��vil: ocultar el header original y usar solo el header m��vil clonado */
    .sticky-header,
    .primary-subheader { display: none !important; }

    /* Forzar el clon m��vil siempre fijo en la parte superior */
    .sticky-header-clone.mobile-only {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1200 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Reservar espacio para el header fijo */
    body { padding-top: var(--mobile-sticky-height, 60px) !important; }

    /* Mostrar botón de cerrar SOLO en móviles */
    .sidebar-close {
        display: block !important;
    }
}

/* =============================
            �9�8 BOT�0�7N FILTROS M�0�7VIL
        ============================= */
.sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
        background: #f97316;
        color: white;
        padding: 12px 16px;
        border-radius: 8px;
        /* Hacer el bot��n est��tico en m��vil para evitar desplazamientos del layout */
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        margin-bottom: 1rem;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: none;
        cursor: pointer;
    }

    .sidebar-toggle:hover {
        background: #ea580c;
    }
}

/* =============================
            �9�8 SIDEBAR (FILTROS)
        ============================= */
.filters-wrapper {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.filters-wrapper h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding-bottom: 1rem;
    border-bottom: 3px solid #0ea5e9;
}

.price-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
}

.price-container span {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.price-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #dbeafe 0%, #cffafe 100%);
    outline: none;
    margin: 1.2rem 0 1.5rem 0;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.15);
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
    border: 3px solid white;
}

.price-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.6);
}

.price-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
}

.price-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.6);
}

.category-select {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 2px solid #cffafe;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fcff 100%);
    color: #0c4a6e;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-select:hover {
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.category-select:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

#subfiltros-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #cffafe;
}

/* Botones de filtros - MEJORADO */
.filter-button {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.filter-button:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.clear-button {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: block;
    border: 1px solid #bac7d6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.clear-button:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #b4bcc4 100%);
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #1e293b;
}

.clear-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
    background-color: #e2e8f0;
    text-decoration: none;
}

/* =============================
            �9�8 SECCI�0�7N TOP VENTAS
        ============================= */
.top-sales {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.top-sales h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

#top-sales-list {
    list-style: none;
}

#top-sales-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

#top-sales-list li:last-child {
    border-bottom: none;
}

#top-sales-list li:hover {
    background-color: #f8fafc;
}

.top-sales-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
}

#top-sales-list li:hover .top-sales-img {
    transform: scale(1.05);
}


.top-sales-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

#top-sales-list li:hover .top-sales-name {
    color: #f97316;
}

.top-sales-price {
    font-weight: 600;
    color: #f97316;
    font-size: 1rem;
}

/* =============================
            �9�8 CONTENIDO PRINCIPAL
        ============================= */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.per-page-selector,
.view-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.per-page-selector label,
.view-selector label {
    color: #64748b;
    font-size: 0.95rem;
}

.per-page-selector select,
.view-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #334155;
    font-size: 0.95rem;
}

/* =============================
            �9�8 GRID DE PRODUCTOS
        ============================= */
/* ======= ESTILOS DE PRODUCTOS ======= */
.product-grid-specific {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 3 columnas en desktop */
    gap: 1rem;
    /* Espacio entre tarjetas */
    margin-top: 1rem;
}

.product-card-specific {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card-specific:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image-specific {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-specific:hover .product-image-specific {
    transform: scale(1.03);
}

.product-body-specific {
    padding: 1.25rem;
}

.product-title-specific {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.product-text-specific {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price-specific {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.price-usd {
    font-weight: 700;
    color: #f97316;
    font-size: 1.2rem;
}

.price-pen {
    font-weight: 500;
    color: #64748b;
    font-size: 0.95rem;
}

.btn-primary {
    display: block;
    text-align: center;
    background-color: #f97316;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #ea580c;
    text-decoration: none;
}

/* =============================
            �9�8 PAGINACI�0�7N
        ============================= */
#pagination-container {
    margin-top: 2rem;
    text-align: center;
}

#pagination-container ul {
    display: inline-flex;
    list-style: none;
}

#pagination-container li {
    margin: 0 0.25rem;
}

#pagination-container a,
#pagination-container span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

#pagination-container a:hover {
    background: #e2e8f0;
    color: #f97316;
}

#pagination-container .active span {
    background: #f97316;
    color: white;
}

/* =============================
            �9�8 RESPONSIVE DESIGN
        ============================= */
@media (max-width: 1024px) {
    .products-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Fuerza 1x1 productos en m��vil, sin importar utilidades Tailwind */
    .product-grid { grid-template-columns: 1fr !important; }


    .products-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-price-specific {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Estilos base para la paginaci��n */
.custom-pagination {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

.custom-pagination .pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-pagination .page-item {
    min-width: 2.5rem;
    text-align: center;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-pagination .page-link:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.custom-pagination .page-item.active .page-link {
    background-color: #4299e1;
    border-color: #4299e1;
    color: white;
}

.custom-pagination .page-item.disabled .page-link {
    color: #a0aec0;
    pointer-events: none;
    background-color: #f7fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-pagination .pagination {
        gap: 0.15rem;
    }

    .custom-pagination .page-item {
        min-width: 2rem;
    }

    .custom-pagination .page-link {
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .custom-pagination {
        padding: 0.25rem 0;
    }

    .custom-pagination .pagination {
        justify-content: flex-start;
    }

    .custom-pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.previous):not(.next) {
        display: none;
    }

    .custom-pagination .page-item.previous,
    .custom-pagination .page-item.next {
        flex-grow: 1;
    }

    .custom-pagination .page-link {
        width: 100%;
    }

    /* Mostrar solo primera y ��ltima p��gina en m��viles peque�0�9os */
    .custom-pagination .page-item:first-child,
    .custom-pagination .page-item:last-child {
        display: flex !important;
    }
}

/* Efectos para pantallas t��ctiles */
@media (hover: none) {
    .custom-pagination .page-link {
        padding: 0 1rem;
        /* M��s ��rea de toque */
    }
}

/* =============================
            �9�8 CORRECCI�0�7N RESPONSIVE GENERAL
        ============================= */
@media (max-width: 768px) {

    /* Fuerza el responsive en todas las p��ginas de productos */
    body .main-wrapper .flex.flex-col.md\:flex-row {
        flex-direction: column !important;
    }

    body .main-wrapper .w-full.md\:w-1\/4,
    body .main-wrapper .w-full.md\:w-3\/4 {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* =============================
            �9�8 CORRECCI�0�7N SIDEBAR FILTROS
        ============================= */
.filters-wrapper {
    position: relative;
    z-index: 30;
}

@media (max-width: 768px) {

    /* Contenedor del sidebar */
    .filters-wrapper {
        position: fixed;
        top: 0;
        left: -85%;
        /* Inicialmente oculto */
        width: 85%;
        max-width: 400px;
        /* Evitar que sea demasiado grande */
        height: 100vh;
        overflow-y: auto;
        background: white;
        padding: 1.5rem;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 200;
    }

    /* Clase para mostrar el sidebar */
    .filters-wrapper.show {
        left: 0;
    }

    /* Fondo oscuro al abrir el sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        /* Transparente */
        z-index: 150;
        display: none;
    }

    /* Mostrar overlay cuando el sidebar est�� activo */
    .sidebar-overlay.active {
        display: block;
    }

    /* Botón para cerrar el sidebar - SOLO EN MÓVILES */
    .sidebar-close {
        position: absolute;
        top: 10px;
        right: 15px;
        background: #ff5722;
        color: white;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 5px;
    }


    /* Asegura que el contenido principal no se desplace */
    .main-wrapper>.flex>.w-full.md\:w-3\/4 {
        margin-top: 0 !important;
    }
}

/* =============================
            �9�8 TOP VENTAS SIN SUBRAYADO
        ============================= */
#top-sales-list li a {
    text-decoration: none !important;
}

/* =============================
            �9�8 BOTONES AZULES (#0037ff)
        ============================= */
.filter-button,
.btn-primary,
.sidebar-toggle {
    background-color: #0037ff !important;
    color: white !important;
    border: none !important;
}

.filter-button:hover,
.btn-primary:hover,
.sidebar-toggle:hover {
    background-color: #0026b3 !important;
}

.price-range::-webkit-slider-thumb {
    background: #0037ff !important;
}

.price-range::-moz-range-thumb {
    background: #0037ff !important;
}

/* =============================
            �9�8 COLOR PRECIO TOP VENTAS
        ============================= */
.top-sales-price {
    color: #0037ff !important;
}

/* =============================
            �9�8 PAGINACI�0�7N ACTIVA AZUL
        ============================= */
#pagination-container .page-item.active .page-link {
    background-color: #0037ff !important;
    border-color: #0037ff !important;
}

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

/* OTRO STYLE================================================================================================================
   /* Contenedor principal con l��mite fijo */
/* .main-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0% !important;
    box-sizing: border-box;
}

.main-wrapper.p-4 {
    padding: 0% !important;
} */


/* Layout principal */
/* .flex-col.md\:flex-row {
    display: flex;
    flex-direction: column;
    width: 100%;
} */

@media (min-width: 768px) {
    .flex-col.md\:flex-row {
        flex-direction: row;
    }
}

/* Sidebar (Filtros)
.w-full.md\:w-1\/4 {
    width: 100%;
    padding: 0 1rem 1rem 0;
}

/* @media (min-width: 768px) {
    .w-full.md\:w-1\/4 {
        width: 25%;
        min-width: 280px;
        padding-top: 1.6rem;
    }
}

.w-full.md\:w-3\/4 {
    width: 100%;
    padding: 0;
}

@media (min-width: 768px) {
    .w-full.md\:w-3\/4 {
        width: 75%;
        padding: 0 0 0 1rem;
    }
} */

/* Grid de productos responsive */
.products-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 767px) {
    .products-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tarjetas de producto */
.product-card-specific {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card-specific:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-image-specific {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-body-specific {
    padding: 1.25rem;
}

/* Controles de productos */
.products-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.per-page-selector,
.view-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filtros */
.filters-wrapper {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    height: 100%;
}

.price-range {
    -webkit-appearance: none;
    height: 6px;
    background: linear-gradient(to right, #0037FF 100%, #e2e8f0 100%); /* overridden by JS inline style */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.category-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

/* Top Ventas */
.top-sales-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Paginaci��n */
.custom-pagination {
    margin-top: 2rem;
}

/* Ajustes para vista de lista */
.products-wrapper.list-view {
    grid-template-columns: 1fr !important;
}

.products-wrapper.list-view .product-card-specific {
    display: flex;
    flex-direction: row;
}

.products-wrapper.list-view .product-image-specific {
    width: 150px;
    height: 150px;
}

@media (max-width: 640px) {
    .products-wrapper.list-view .product-card-specific {
        flex-direction: column;
    }

    .products-wrapper.list-view .product-image-specific {
        width: 100%;
        height: 200px;
    }
}

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

/* POR FAVOR NO OLVIDES HACER UN BACKUP DE TU CSS ANTES DE HACER CAMBIOS EN EL */

/* =====================================================================
   SIDEBAR SEARCH BOX - buscador compacto en el panel de filtros
   ===================================================================== */
.sidebar-search-wrap {
    margin-bottom: 1.5rem;
}

.sidebar-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    height: 44px;
    gap: 8px;
    transition: border-color .2s, box-shadow .2s;
}

.sidebar-search-box:focus-within {
    border-color: #0037FF;
    box-shadow: 0 0 0 3px rgba(0, 55, 255, .1);
}

.sidebar-search-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: color .2s;
}

.sidebar-search-box:focus-within .sidebar-search-icon {
    color: #0037FF;
}

.sidebar-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .88rem;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    background: transparent;
    padding: 0;
}

.sidebar-search-input::placeholder {
    color: #b0bac9;
    font-size: .85rem;
}

.sidebar-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #cbd5e1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background .2s;
}

.sidebar-search-clear svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

.sidebar-search-clear:hover {
    background: #0037FF;
}

/* =====================================================================
   RANGO DE PRECIO - badges soles
   ===================================================================== */
.price-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .5rem;
}

.price-badge-from,
.price-badge-to {
    background: linear-gradient(135deg, #0037FF 0%, #0026b3 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: .88rem;
}

.price-separator {
    color: #94a3b8;
    font-weight: 600;
    font-size: .9rem;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* =====================================================================
   SUBFILTROS: grupo-label → sin fondo, texto negro limpio
   ===================================================================== */
.grupo-label,
.subfiltro-label.grupo-label,
button.subfiltro-label.grupo-label,
.grupo-filtro > .grupo-label {
    background-image: none !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #111827 !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    padding: 8px 4px !important;
    border-radius: 0 !important;
    border-bottom: 1.5px solid #e5e7eb !important;
    margin-bottom: 2px;
}

.grupo-label:hover,
.subfiltro-label.grupo-label:hover,
button.subfiltro-label.grupo-label:hover {
    background-image: none !important;
    background: none !important;
    background-color: transparent !important;
    color: #0037FF !important;
    border-bottom-color: #0037FF !important;
    padding-left: 4px !important;
}

/* =====================================================================
   SUBFILTRO-OPTIONS → scroll si hay más de 4 items (~168px)
   ===================================================================== */
.subfiltro-options:not(.hidden),
.subfiltro-options[style*="display: block"],
.subfiltro-options[style*="display:block"] {
    max-height: 168px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #0037FF #f1f5f9;
}

.subfiltro-options::-webkit-scrollbar {
    width: 5px;
}

.subfiltro-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.subfiltro-options::-webkit-scrollbar-thumb {
    background: #0037FF;
    border-radius: 4px;
}

/* Ensure price-container spans in the old style don't conflict */
.price-container span.price-badge-from,
.price-container span.price-badge-to {
    background: linear-gradient(135deg, #0037FF 0%, #0026b3 100%) !important;
}
