/* =========================================================
   Filtro de Categorías WooCommerce — v1.0.0
   Shortcode: [filtro_categorias_wc]
   ========================================================= */

/* ── Contenedor principal ── */
.filtro-cat-wc {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* ── Vista previa en el editor de Elementor ── */
.filtro-cat-wc--preview {
    background: #f0f7ff;
    border: 2px dashed #93c4f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.filtro-cat-wc__preview-msg {
    margin: 0;
    color: #2271b1;
    font-size: 14px;
    line-height: 1.8;
}

/* ── Lista ── */
.filtro-cat-wc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Cada ítem ── */
.filtro-cat-wc__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ebebeb;
}

.filtro-cat-wc__item:last-child {
    border-bottom: none;
}

/* Ítem raíz (Mujer / Hombre / etc.) */
.filtro-cat-wc__item--raiz {
    border-bottom: 2px solid #d4d4d4;
    margin-bottom: 4px;
}

.filtro-cat-wc__item--raiz .filtro-cat-wc__link {
    font-size: 1.05em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 8px;
}

/* ── Enlace ── */
.filtro-cat-wc__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    text-decoration: none;
    color: #444;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

.filtro-cat-wc__link:hover,
.filtro-cat-wc__link:focus {
    color: #000;
    background-color: #f5f5f5;
    text-decoration: none;
    outline: none;
}

/* ── Enlace activo ── */
.filtro-cat-wc__link--activo {
    color: #222;
    font-weight: 600;
}

.filtro-cat-wc__link--activo:hover,
.filtro-cat-wc__link--activo:focus {
    background-color: #f0f0f0;
}

/* ── Ícono check ── */
.filtro-cat-wc__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #222;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #222;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

/* Check oculto: cuadrado vacío (sin marca) */
.filtro-cat-wc__check--oculto {
    background-color: transparent;
    color: transparent;
    border-color: #ccc;
}

.filtro-cat-wc__link:hover .filtro-cat-wc__check--oculto {
    border-color: #888;
}

/* ── Nombre de la categoría ── */
.filtro-cat-wc__nombre {
    flex: 1;
    line-height: 1.3;
}

/* ── Conteo de productos (opcional) ── */
.filtro-cat-wc__conteo {
    font-size: 0.8em;
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Responsivo ── */
@media (max-width: 480px) {
    .filtro-cat-wc__link {
        padding: 10px 6px;
    }
}
