/* MB archive dropdowns v8: shared brand + category appearance */
body.tax-product_brand .mb-dd,body.tax-product_cat .mb-dd{position:relative;width:100%;min-width:0;box-sizing:border-box;font-family:inherit;direction:rtl}
body.tax-product_brand .woocommerce-ordering .mb-dd,body.tax-product_cat .woocommerce-ordering .mb-dd{min-width:180px}
body.tax-product_brand .mb-dd .mb-dd-native,body.tax-product_cat .mb-dd .mb-dd-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important;border:0!important}
body.tax-product_brand .mb-dd-trigger,body.tax-product_cat .mb-dd-trigger{width:100%;min-height:43px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;direction:rtl;text-align:right;border:1px solid #e1d5ec;border-radius:12px;background:#fff;color:#382a48;padding:9px 12px;cursor:pointer;font:inherit;font-size:13px;box-shadow:0 2px 7px rgba(83,35,135,.05);transition:border-color .18s,box-shadow .18s}
body.tax-product_brand .mb-dd-trigger:hover,body.tax-product_cat .mb-dd-trigger:hover{border-color:#a879cd}
body.tax-product_brand .mb-dd-trigger:focus-visible,body.tax-product_cat .mb-dd-trigger:focus-visible{outline:2px solid #8128d8;outline-offset:2px}
body.tax-product_brand .mb-dd.is-open .mb-dd-trigger,body.tax-product_cat .mb-dd.is-open .mb-dd-trigger{border-color:#9c68cf;box-shadow:0 0 0 3px rgba(129,40,216,.09)}
body.tax-product_brand .mb-dd-label,body.tax-product_cat .mb-dd-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.tax-product_brand .mb-dd-chevron,body.tax-product_cat .mb-dd-chevron{flex:none;width:8px;height:8px;border-right:2px solid #8128d8;border-bottom:2px solid #8128d8;transform:rotate(45deg) translateY(-2px);transition:transform .2s;margin-inline:5px}
body.tax-product_brand .mb-dd.is-open .mb-dd-chevron,body.tax-product_cat .mb-dd.is-open .mb-dd-chevron{transform:rotate(225deg) translateY(-2px)}
body.tax-product_brand .mb-dd-list,body.tax-product_cat .mb-dd-list{position:absolute;z-index:100;background:#fff;border:1px solid #e6dcef;border-radius:12px;top:calc(100% + 5px);right:0;left:0;box-shadow:0 12px 26px rgba(51,26,88,.14);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c5a9df #f8f5fb;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-7px) scaleY(.985);transform-origin:top center;transition:opacity .18s ease,transform .18s ease,visibility .18s}
body.tax-product_brand .mb-dd.is-open .mb-dd-list,body.tax-product_cat .mb-dd.is-open .mb-dd-list{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0) scaleY(1)}
body.tax-product_brand .mb-dd-limited .mb-dd-list,body.tax-product_cat .mb-dd-limited .mb-dd-list{max-height:280px}
body.tax-product_brand .mb-dd-option,body.tax-product_cat .mb-dd-option{height:40px;box-sizing:border-box;display:flex;align-items:center;padding:0 13px;cursor:pointer;line-height:1.45;font-size:13px;color:#443251;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tax-product_brand .mb-dd-option:hover,body.tax-product_cat .mb-dd-option:hover,body.tax-product_brand .mb-dd-option.is-active,body.tax-product_cat .mb-dd-option.is-active{background:#f4eafa;color:#6630a4}
body.tax-product_brand .mb-dd-option.is-selected,body.tax-product_cat .mb-dd-option.is-selected{background:#f7f0fd;color:#712ab5;font-weight:700}
body.tax-product_brand .mb-dd-option.is-selected:before,body.tax-product_cat .mb-dd-option.is-selected:before{content:'✓';color:#8128d8;margin-left:9px}
body.tax-product_brand .mb-dd-option.is-disabled,body.tax-product_cat .mb-dd-option.is-disabled{opacity:.45;cursor:not-allowed}
/* Suppress the old WooCommerce sort chevron to prevent duplicate arrows. */
body.tax-product_brand .mbbr-toolbar .woocommerce-ordering:has(.mb-dd)::after{content:none}
@media(prefers-reduced-motion:reduce){body.tax-product_brand .mb-dd-list,body.tax-product_cat .mb-dd-list{transition:none}}

/* Archive dropdown small-screen containment: no clipped ordering labels. */
@media(max-width:600px){
 body.tax-product_brand .woocommerce-ordering .mb-dd,body.tax-product_cat .woocommerce-ordering .mb-dd{min-width:0;max-width:100%;width:100%}
 body.tax-product_brand .mb-dd,body.tax-product_cat .mb-dd{max-width:100%}
 body.tax-product_brand .mb-dd-trigger,body.tax-product_cat .mb-dd-trigger{min-width:0;max-width:100%;gap:6px;padding-inline:9px;font-size:clamp(11px,3.2vw,13px)}
 body.tax-product_brand .mb-dd-list,body.tax-product_cat .mb-dd-list{max-width:100%;min-width:0;box-sizing:border-box}
 body.tax-product_brand .mb-dd-option,body.tax-product_cat .mb-dd-option{min-width:0;height:auto;min-height:40px;padding:9px 10px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.55;font-size:clamp(11px,3.2vw,13px)}
 body.tax-product_brand .mb-dd-label,body.tax-product_cat .mb-dd-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
