/* LEDSA Store V2.7.3 - menú flotante de categorías */
.ledsa-category-browser--v273{position:relative;z-index:850;background:#fff;border-top:1px solid #edf1f5;border-bottom:1px solid #dfe7ef;box-shadow:0 3px 13px rgba(18,58,93,.035)}
.ledsa-category-browser--v273 .ledsa-category-browser__bar{padding-top:9px}
.ledsa-category-browser--v273 .ledsa-category-browser__topline{display:flex;align-items:center;justify-content:space-between;min-height:25px;margin-bottom:2px}
.ledsa-category-browser--v273 .ledsa-category-browser__label{font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:#60758a}
.ledsa-category-browser--v273 .ledsa-category-browser__arrows{display:flex;gap:6px}
.ledsa-category-browser--v273 .ledsa-category-browser__arrow{width:29px;height:29px;padding:0;border:1px solid #d9e3ec;border-radius:8px;background:#fff;color:#30475c;display:grid;place-items:center;font-size:21px;line-height:1;cursor:pointer}
.ledsa-category-browser--v273 .ledsa-category-browser__arrow:hover{background:#f2f8fd;color:#1777b8;border-color:#a8c9e0}
.ledsa-category-browser--v273 .ledsa-category-browser__viewport{overflow:hidden}
.ledsa-category-browser--v273 .ledsa-category-browser__tabs{display:flex!important;align-items:stretch!important;gap:3px!important;overflow-x:auto!important;scroll-behavior:smooth!important;scrollbar-width:none!important}
.ledsa-category-browser--v273 .ledsa-category-browser__tabs::-webkit-scrollbar{display:none}
.ledsa-category-browser--v273 .ledsa-category-browser__tab{appearance:none!important;flex:0 0 145px!important;width:145px!important;min-width:145px!important;min-height:68px!important;margin:0!important;padding:7px 9px 10px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:8px 8px 0 0!important;background:#fff!important;color:#25394c!important;display:grid!important;grid-template-columns:auto auto!important;grid-template-areas:"icon caret" "name name"!important;align-content:center!important;justify-content:center!important;column-gap:6px!important;row-gap:3px!important;text-align:center!important;font-size:11.5px!important;font-weight:700!important;cursor:pointer!important;box-shadow:none!important}
.ledsa-category-browser--v273 .ledsa-category-browser__tab:hover{background:#f7fafc!important;color:#1675b5!important}
.ledsa-category-browser--v273 .ledsa-category-browser__tab.is-active{background:#f5f9fd!important;color:#116ca8!important;border-bottom-color:#3d78eb!important}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon{grid-area:icon;display:grid;place-items:center}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon{
    width:38px!important;
    height:32px!important;
    overflow:hidden!important;
}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon img,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-image{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:38px!important;
    max-height:32px!important;
    object-fit:contain!important;
    margin:0!important;
    padding:0!important;
}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon svg,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-fallback-icon{
    width:25px!important;
    height:25px!important;
    max-width:25px!important;
    max-height:25px!important;
}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon svg,.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-icon{width:25px!important;height:25px!important}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-name{grid-area:name;white-space:normal!important}
.ledsa-category-browser--v273 .ledsa-category-browser__tab-caret{grid-area:caret;align-self:center;font-size:15px;line-height:1;transition:transform .15s ease}
.ledsa-category-browser--v273 .ledsa-category-browser__tab.is-active .ledsa-category-browser__tab-caret{transform:rotate(180deg)}

/* El panel es flotante: no empuja el catálogo hacia abajo. */
.ledsa-category-browser--v273 .ledsa-category-browser__flyout{position:absolute;left:0;right:0;top:100%;z-index:900;background:#f3f7fb;border-top:1px solid #e3ebf2;border-bottom:1px solid #d9e4ed;box-shadow:0 18px 34px rgba(18,58,93,.14)}
.ledsa-category-browser--v273 .ledsa-category-browser__flyout[hidden]{display:none!important}
.ledsa-category-browser--v273 .ledsa-category-browser__panel{display:none;padding:14px 0 16px}
.ledsa-category-browser--v273 .ledsa-category-browser__panel.is-active{display:block}
.ledsa-category-browser--v273 .ledsa-category-browser__level2{display:flex;align-items:stretch;gap:10px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.ledsa-category-browser--v273 .ledsa-category-browser__sub{appearance:none;box-sizing:border-box;flex:0 0 132px;width:132px;min-width:132px;min-height:95px;margin:0;padding:7px 7px 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:#2a4053;display:grid;grid-template-columns:1fr auto;grid-template-areas:"visual visual" "name caret";align-items:center;justify-items:center;gap:5px;text-decoration:none;text-align:center;overflow:hidden;box-shadow:none;transition:.16s ease;cursor:pointer}
.ledsa-category-browser--v273 .ledsa-category-browser__sub:hover,.ledsa-category-browser--v273 .ledsa-category-browser__sub.is-active{background:#fff;border-color:#dce7f0;box-shadow:0 7px 18px rgba(18,58,93,.07);transform:translateY(-1px)}
.ledsa-category-browser--v273 .ledsa-category-browser__sub.is-active{border-color:#91bce1;color:#116ca8}
.ledsa-category-browser--v273 .ledsa-category-browser__sub-visual{grid-area:visual;width:92px;height:58px;padding:2px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ledsa-category-browser--v273 .ledsa-category-browser__sub-visual img{display:block!important;width:100%!important;height:100%!important;max-width:88px!important;max-height:54px!important;margin:0!important;padding:0!important;object-fit:contain!important}
.ledsa-category-browser--v273 .ledsa-category-browser__sub-visual svg,.ledsa-category-browser--v273 .ledsa-category-browser__sub-icon{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important}
.ledsa-category-browser--v273 .ledsa-category-browser__sub-name{grid-area:name;width:100%;font-size:11.5px;font-weight:750;line-height:1.18;white-space:normal;overflow-wrap:anywhere}
.ledsa-category-browser--v273 .ledsa-category-browser__sub-caret{grid-area:caret;font-size:18px;line-height:1;color:#718498}
.ledsa-category-browser--v273 .ledsa-category-browser__sub.is-active .ledsa-category-browser__sub-caret{color:#116ca8;transform:rotate(90deg)}
.ledsa-category-browser--v273 .ledsa-category-browser__empty{color:#6e8193;font-size:12px;padding:14px 16px;border:1px dashed #cbd7e1;border-radius:10px;background:#fafcfe}

/* Tercer nivel: Accesorios / Repuestos */
.ledsa-category-browser--v273 .ledsa-category-browser__level3{display:none;margin-top:13px;padding:12px 14px 14px;border-top:1px solid #dce6ef;background:#fff;border-radius:12px;box-shadow:0 5px 16px rgba(18,58,93,.045)}
.ledsa-category-browser--v273 .ledsa-category-browser__level3.is-active{display:block}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-title{font-size:12px;font-weight:850;color:#183149;margin-bottom:9px;text-transform:uppercase;letter-spacing:.04em}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-items{display:flex;align-items:stretch;gap:9px;overflow-x:auto;padding-bottom:2px}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-link{flex:0 0 118px;min-width:118px;min-height:75px;padding:7px;border:1px solid #e1e8ef;border-radius:10px;background:#fbfdff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;font-size:11px;font-weight:750;color:#294155;transition:.15s ease}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-link:hover{border-color:#9dc3e2;background:#f2f8fd;transform:translateY(-1px)}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-visual{width:52px;height:34px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-visual img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;margin:0!important}
.ledsa-category-browser--v273 .ledsa-category-browser__level3-visual svg{width:28px!important;height:28px!important}

@media(max-width:700px){
 .ledsa-category-browser--v273 .ledsa-category-browser__tab{flex-basis:112px!important;width:112px!important;min-width:112px!important;min-height:62px!important;font-size:10.5px!important}
 .ledsa-category-browser--v273 .ledsa-category-browser__flyout{max-height:62vh;overflow-y:auto}
 .ledsa-category-browser--v273 .ledsa-category-browser__sub{flex-basis:108px;width:108px;min-width:108px}
 .ledsa-category-browser--v273 .ledsa-category-browser__sub-visual{width:80px;height:51px}
 .ledsa-category-browser--v273 .ledsa-category-browser__level3-link{flex-basis:103px;min-width:103px}
}

/* V2.7.4: la miniatura de WooCommerce tiene prioridad también en categorías padre. */
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-category-browser__tab-image{
    width:38px!important;
    height:32px!important;
    object-fit:contain!important;
}


/* =========================================================
   LEDSA V2.7.6 - MINIATURA VISIBLE EN CATEGORÍA PADRE
   ========================================================= */
.ledsa-category-browser--v273 .ledsa-category-browser__tab{
    flex:0 0 158px!important;
    width:158px!important;
    min-width:158px!important;
    min-height:82px!important;
    padding:8px 10px 10px!important;
    grid-template-columns:64px auto!important;
    grid-template-areas:"icon caret" "name name"!important;
    column-gap:5px!important;
    row-gap:4px!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon{
    width:64px!important;
    height:45px!important;
    overflow:hidden!important;
    border-radius:7px!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon img,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-category-browser__tab-image{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    max-width:64px!important;
    max-height:45px!important;
    object-fit:contain!important;
    object-position:center!important;
    padding:2px!important;
    margin:0!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon svg,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-icon,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-fallback-icon{
    width:30px!important;
    height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-name{
    font-size:11.5px!important;
    line-height:1.15!important;
}

@media(max-width:700px){
    .ledsa-category-browser--v273 .ledsa-category-browser__tab{
        flex-basis:132px!important;
        width:132px!important;
        min-width:132px!important;
        min-height:74px!important;
        grid-template-columns:54px auto!important;
    }

    .ledsa-category-browser--v273 .ledsa-category-browser__tab-icon{
        width:54px!important;
        height:39px!important;
    }

    .ledsa-category-browser--v273 .ledsa-category-browser__tab-icon img,
    .ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-category-browser__tab-image{
        max-width:54px!important;
        max-height:39px!important;
    }
}


/* =========================================================
   LEDSA V2.7.7 - IMAGEN ORIGINAL / TAMAÑO REAL DEL PADRE
   ========================================================= */

/*
 * La pestaña superior reserva un área visual grande y estable.
 * La imagen viene del archivo ORIGINAL, no del thumbnail recortado.
 */
.ledsa-category-browser--v273 .ledsa-category-browser__tab{
    flex:0 0 178px!important;
    width:178px!important;
    min-width:178px!important;
    min-height:96px!important;
    padding:9px 12px 11px!important;
    grid-template-columns:98px 18px!important;
    grid-template-areas:"icon caret" "name name"!important;
    column-gap:4px!important;
    row-gap:5px!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon{
    width:98px!important;
    height:58px!important;
    min-width:98px!important;
    min-height:58px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    padding:0!important;
    margin:0!important;
    border-radius:8px!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon img,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-category-browser__tab-image{
    display:block!important;
    box-sizing:border-box!important;
    width:98px!important;
    height:58px!important;
    min-width:98px!important;
    min-height:58px!important;
    max-width:98px!important;
    max-height:58px!important;
    object-fit:contain!important;
    object-position:center center!important;
    padding:3px!important;
    margin:0!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon svg,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-icon,
.ledsa-category-browser--v273 .ledsa-category-browser__tab-fallback-icon{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__tab-name{
    font-size:11.5px!important;
    line-height:1.15!important;
    min-height:14px!important;
}

/* Segundo nivel: imagen original sin recorte. */
.ledsa-category-browser--v273 .ledsa-category-browser__sub-visual{
    width:104px!important;
    height:64px!important;
    padding:4px!important;
    box-sizing:border-box!important;
}

.ledsa-category-browser--v273 .ledsa-category-browser__sub-visual img,
.ledsa-category-browser--v273 .ledsa-category-browser__sub-image{
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    padding:0!important;
    margin:0!important;
}

@media(max-width:700px){
    .ledsa-category-browser--v273 .ledsa-category-browser__tab{
        flex-basis:150px!important;
        width:150px!important;
        min-width:150px!important;
        min-height:86px!important;
        grid-template-columns:80px 18px!important;
    }

    .ledsa-category-browser--v273 .ledsa-category-browser__tab-icon{
        width:80px!important;
        height:48px!important;
        min-width:80px!important;
        min-height:48px!important;
    }

    .ledsa-category-browser--v273 .ledsa-category-browser__tab-icon img,
    .ledsa-category-browser--v273 .ledsa-category-browser__tab-icon .ledsa-category-browser__tab-image{
        width:80px!important;
        height:48px!important;
        min-width:80px!important;
        min-height:48px!important;
        max-width:80px!important;
        max-height:48px!important;
    }
}
