/* =========================================================
   UBD Modular Bonito 1.9.18
   Basado en las clases reales de:
   - Tema UBD Bonito Modular/Compacto 2.1.1
   - HTML real guardado de la categoría ThemeVolty
   ========================================================= */

/* ---------- ETS: contraste antifallas, sin fondo ---------- */
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-ets-total-contrast-v1918,
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-ets-total-contrast-v1918 *,
html.ubd-product-ready body#product .block-product-attribute-custom .attribute-custom-price,
html.ubd-product-ready body#product .block-product-attribute-custom .attribute-custom-price * {
    color: #fff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke: .85px #0b0b0b !important;
    paint-order: stroke fill !important;
    text-shadow:
        -1px -1px 0 #0b0b0b,
         1px -1px 0 #0b0b0b,
        -1px  1px 0 #0b0b0b,
         1px  1px 0 #0b0b0b,
         0    1px 1px rgba(0,0,0,.28) !important;
    background: transparent !important;
    background-color: transparent !important;
}

html.ubd-product-ready body#product .block-product-attribute-custom .ubd-ets-total-contrast-v1918 {
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

/* ---------- Barra real de categorías ---------- */
html.ubd-category-ready body#category #js-product-list-top.products-selection.ubd-products-toolbar-v1918,
html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 {
    display: grid !important;
    grid-template-columns: minmax(170px, 1fr) minmax(220px, 360px) !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 10px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* La regla anterior ocultaba todos los hijos del toolbar. */
html.ubd-category-ready body#category .products-selection.ubd-toolbar-sort-only.ubd-products-toolbar-v1918 > .ubd-products-assistant,
html.ubd-category-ready body#category .products-selection.ubd-toolbar-sort-only.ubd-products-toolbar-v1918 > .ubd-sort-column,
html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-products-assistant,
html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-products-order,
html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-sort-column {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    position: static !important;
    inset: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-products-assistant {
    align-items: center !important;
    justify-content: flex-start !important;
}

html.ubd-category-ready body#category .ubd-products-assistant-v1918 a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 15px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #e7923c, #e78252) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(231,130,82,.22) !important;
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html.ubd-category-ready body#category .ubd-products-assistant-v1918 a strong {
    color: inherit !important;
    font: inherit !important;
    white-space: nowrap !important;
}

html.ubd-category-ready body#category .ubd-products-assistant-v1918 .ubd-products-assistant__icon {
    display: inline-block !important;
    flex: 0 0 auto !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-products-order,
html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-sort-column {
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .sort-by-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .sort-by {
    display: none !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .products-sort-order {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .products-sort-order .select-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: #f5f0e9 !important;
    color: #203743 !important;
    box-shadow: none !important;
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .products-sort-order .select-title i {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .products-sort-order .dropdown-menu {
    min-width: 100% !important;
    max-width: min(92vw, 360px) !important;
}

@media (max-width: 600px) {
    html.ubd-category-ready body#category #js-product-list-top.products-selection.ubd-products-toolbar-v1918,
    html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 {
        grid-template-columns: minmax(0, 1fr) minmax(145px, 48%) !important;
        align-items: stretch !important;
        gap: 7px !important;
        padding: 7px !important;
    }

    html.ubd-category-ready body#category .ubd-products-assistant-v1918 a {
        width: 100% !important;
        min-height: 42px !important;
        padding: 8px 9px !important;
        font-size: 10.5px !important;
    }

    html.ubd-category-ready body#category .ubd-products-assistant-v1918 .ubd-products-assistant__icon {
        font-size: 15px !important;
    }

    html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 .products-sort-order .select-title {
        min-height: 42px !important;
        padding: 8px 9px !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 350px) {
    html.ubd-category-ready body#category .ubd-products-assistant-v1918 .ubd-products-assistant__long {
        display: none !important;
    }
}

html.ubd-category-ready body#category .products-selection.ubd-products-toolbar-v1918 > .ubd-products-count {
    display: none !important;
}
