/* Mint Value filters v5.2 — load together with mintvalue-filters-v5.js */
body.type-category #manufacturer-filter {display:none!important}
      #category-filter-hover .filter-section.filter-section-parametric h4{position:relative;padding-right:25px;cursor:pointer}
      #category-filter-hover .filter-section.filter-section-parametric h4:after{content:'+';position:absolute;right:5px;top:50%;transform:translateY(-50%);color:#1b2e47;font:20px Arial}
      #category-filter-hover .filter-section.filter-section-parametric:not(.collapsed) h4:after{content:'−'}
      #category-filter-hover .filter-section.filter-section-parametric.collapsed fieldset{display:none!important}
      #category-filter-hover .filter-section.filter-section-count,#category-filter-hover .filter-total-count{display:none!important}
      @media(max-width:768px){
        body.type-category .filters-wrapper .filters-unveil-button-wrapper,
        body.type-category .filters-wrapper .mv-filters-button-wrapper{display:none!important}
        body.type-category #filters-wrapper,body.type-category .filters-wrapper,body.type-category #filters{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;height:auto!important;max-height:none!important;transform:none!important}
        body.type-category #filters .filter-section-button{display:none!important}
        body.type-category .mv-mobile-filter-ui{display:block!important;margin:14px 0 20px;font-family:Montserrat,Arial,sans-serif;color:#1b2e47}
        body.type-category #category-header .listSorting{display:none!important}
        .mv-filter-sort{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:13px}
        .mv-filter-sort{position:relative;z-index:25}
        .mv-sort-label{flex:0 0 auto;color:#1b2e47;font-weight:500}
        .mv-sort-dropdown{position:relative;width:63%;min-width:0}
        .mv-sort-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:43px;padding:10px 13px!important;border:1px solid #ded8d1!important;border-radius:4px!important;background:#fff!important;color:#1b2e47!important;text-align:left!important;font:500 13px Montserrat,Arial,sans-serif!important;box-shadow:none!important;cursor:pointer}
        .mv-sort-trigger:hover,.mv-sort-dropdown.is-open .mv-sort-trigger{border-color:#1b2e47!important}
        .mv-sort-trigger:focus-visible{outline:2px solid #1b2e47;outline-offset:2px}
        .mv-sort-value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
        .mv-sort-chevron{flex:0 0 auto;width:8px;height:8px;border-right:2px solid #1b2e47;border-bottom:2px solid #1b2e47;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
        .mv-sort-dropdown.is-open .mv-sort-chevron{transform:translateY(2px) rotate(225deg)}
        .mv-sort-menu{position:absolute;top:calc(100% + 5px);right:0;left:0;z-index:100;max-height:265px;overflow-y:auto;background:#fff;border:1px solid #e2d9d1;border-radius:5px;box-shadow:0 8px 24px rgba(27,46,71,.14);padding:5px}
        .mv-sort-menu[hidden]{display:none!important}
        .mv-sort-option{display:block!important;width:100%;padding:11px 12px!important;border:0!important;border-radius:3px!important;background:transparent!important;color:#1b2e47!important;text-align:left!important;font:500 12px Montserrat,Arial,sans-serif!important;line-height:1.35!important;text-transform:none!important;white-space:normal;cursor:pointer}
        .mv-sort-option:hover,.mv-sort-option:focus-visible{background:#f7f3ef!important;outline:none}
        .mv-sort-option.is-selected{background:#f2e8df!important;font-weight:600!important}
        @media(prefers-reduced-motion:reduce){.mv-sort-chevron{transition:none}}

        .mv-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
        .mv-filter-action{border:1px solid #ded8d1!important;background:#fff!important;color:#1b2e47!important;border-radius:4px!important;padding:12px 14px!important;font:500 13px Montserrat,Arial,sans-serif!important;text-transform:none!important;box-shadow:none!important;text-align:left;display:flex;justify-content:space-between;align-items:center;cursor:pointer}
        .mv-filter-action:after{content:'⌄';font:19px Arial;line-height:12px}
        .mv-filter-action.is-active{background:#f7f3ef!important}
        .mv-filter-action.is-active:after{transform:rotate(180deg)}
        .mv-quick-stock{padding:12px 2px 4px;font-size:13px}
        .mv-quick-stock .filter-section-boolean{margin:0!important;padding:0!important}
        .mv-quick-stock .filter-count{opacity:.65}
        .mv-quick-price,.mv-all-panel{background:#faf8f6;border:1px solid #ebe4dc;border-radius:4px;padding:16px;margin-top:12px}
        .mv-quick-price[hidden],.mv-all-panel[hidden]{display:none!important}
        .mv-quick-price .slider-wrapper{margin:0 0 12px!important}
        .mv-quick-price .slider-content{padding:12px 8px!important}
        .mv-all-panel #category-filter-hover{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;max-height:none!important}
        .mv-all-panel .filter-section-parametric{padding:6px 0;border-bottom:1px solid #e7e0d9}
        .mv-all-panel .filter-section-parametric:last-child{border-bottom:none}
        .mv-all-panel .filter-section-parametric h4{margin:0;padding:9px 25px 9px 0;font-size:14px}
        .mv-all-panel .filter-section-parametric fieldset{padding-bottom:8px}
        .mv-mobile-filter-ui ~ .slider-wrapper,.mv-mobile-filter-ui ~ #price-filter-form,
        .mv-mobile-filter-ui ~ .filter-sections > .filter-section-boolean{display:none!important}
      }
      @media(min-width:769px){.mv-mobile-filter-ui{display:none!important}}

/* v5.2 — compact mobile layout and unified dropdown affordances */
@media (max-width:768px) {
  body.type-category .mv-mobile-filter-ui {margin:4px 0 8px !important;}
  body.type-category .mv-filter-sort {
    display:grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 10px !important;
    z-index:35;
  }
  body.type-category .mv-filter-sort .mv-sort-label {display:none !important;}
  body.type-category .mv-filter-sort .mv-sort-dropdown {width:100% !important;min-width:0 !important;}
  body.type-category .mv-filter-sort .mv-sort-trigger {
    min-height:43px !important;
    padding:10px 12px !important;
    font-size:12px !important;
  }
  body.type-category .mv-filter-sort .mv-quick-stock {
    padding:0 !important;
    margin:0 !important;
    flex:none !important;
    min-width:0 !important;
    white-space:nowrap;
  }
  body.type-category .mv-quick-stock .filter-section-boolean,
  body.type-category .mv-quick-stock .param-filter-top,
  body.type-category .mv-quick-stock form,
  body.type-category .mv-quick-stock fieldset,
  body.type-category .mv-quick-stock fieldset > div {
    margin:0 !important;padding:0 !important;border:0 !important;background:none !important;
  }
  body.type-category .mv-quick-stock fieldset > div {display:flex !important;align-items:center !important;gap:5px !important;}
  body.type-category .mv-quick-stock label {white-space:nowrap !important;margin:0 !important;font-size:12px !important;cursor:pointer;}
  body.type-category .mv-quick-stock input[type=checkbox] {flex:0 0 auto;margin:0 3px 0 0 !important;}
  body.type-category .mv-quick-stock .filter-count {font-size:11px !important;margin-left:2px !important;}
  body.type-category .mv-filter-actions {gap:10px !important;margin-bottom:0 !important;}
  body.type-category .mv-filter-action,
  body.type-category .mv-sort-trigger,
  body.type-category #content .mv-browse-toggle {min-height:43px !important;border-radius:5px !important;}
  /* Price and All Filters use the same CSS chevron as the sorting control */
  body.type-category .mv-filter-action::after {
    content:'' !important;
    display:block !important;
    width:8px !important;height:8px !important;
    flex:0 0 8px !important;
    border:0 !important;border-right:2px solid #1b2e47 !important;
    border-bottom:2px solid #1b2e47 !important;
    transform:translateY(-2px) rotate(45deg) !important;
    transition:transform .18s ease !important;
    background:none !important;
  }
  body.type-category .mv-filter-action.is-active::after {transform:translateY(2px) rotate(225deg) !important;}
  body.type-category .mv-filter-sort .mv-sort-chevron {width:8px;height:8px;border-width:2px;}
  /* Remove stray top separators from the legacy Shoptet category-filter wrappers */
  body.type-category .mv-all-panel #category-filter-hover,
  body.type-category .mv-all-panel .filter-sections,
  body.type-category .mv-all-panel .filter-section-button,
  body.type-category .mv-all-panel .filter-section-manufacturer {
    border-top:0 !important;box-shadow:none !important;
  }
  body.type-category .mv-all-panel .filter-section-button,
  body.type-category .mv-all-panel #manufacturer-filter {display:none !important;}
  body.type-category .mv-all-panel .filter-section-parametric:first-of-type {border-top:0 !important;}
  body.type-category .mv-all-panel .filter-section-parametric {font-family:Montserrat,Arial,sans-serif !important;}
  body.type-category .mv-all-panel .filter-section-parametric h4,
  body.type-category .mv-quick-price .slider-wrapper h4 {
    font-family:Montserrat,Arial,sans-serif !important;
    color:#1b2e47 !important;
    font-size:14px !important;
    font-weight:600 !important;
  }
  /* Remove default jQuery-UI grey track background: retain visible navy range */
  body.type-category .mv-quick-price .slider-content {background:none !important;border:0 !important;box-shadow:none !important;}
  body.type-category .mv-quick-price #slider.ui-slider,
  body.type-category .mv-quick-price #slider.ui-widget-content {
    background:#e5dfd9 !important;
    border:none !important;
    box-shadow:none !important;
    height:5px !important;
    border-radius:99px !important;
  }
  body.type-category .mv-quick-price #slider .ui-slider-range {background:#1b2e47 !important;border:0 !important;box-shadow:none !important;}
  body.type-category .mv-quick-price .slider-wrapper {background:none !important;box-shadow:none !important;}
}
@media (max-width:360px) {
  body.type-category .mv-filter-sort {gap:6px !important;}
  body.type-category .mv-quick-stock label {font-size:11px !important;}
  body.type-category .mv-filter-sort .mv-sort-trigger {padding:10px 8px !important;}
}

@media(max-width:768px){
  body.type-category .mv-sort-trigger {justify-content:flex-start!important;gap:5px!important;}
  body.type-category .mv-sort-prefix {font-size:11px!important;font-weight:400!important;color:#756c62!important;white-space:nowrap;}
  body.type-category .mv-sort-value {flex:1 1 auto;min-width:0;font-weight:600;}
  body.type-category .mv-sort-chevron {margin-left:auto;}
}

/* v5.2.1 — align In stock to the left edge of its column */
@media (max-width: 768px) {
  body.type-category .mv-filter-sort .mv-quick-stock {
    justify-self: start !important;
    align-self: center !important;
    width: auto !important;
    text-align: left !important;
  }
  body.type-category .mv-filter-sort .mv-quick-stock fieldset > div {
    justify-content: flex-start !important;
  }
}

/* v5.2.2: reliable compact sorting + stock row (CSS-only; needs v5.2 JS) */
@media (max-width:768px) {
 body.type-category #filters .mv-mobile-filter-ui {margin:0 0 6px !important;padding-top:0 !important;}
 body.type-category #filters .mv-mobile-filter-ui .mv-filter-sort {display:grid !important;grid-template-columns:minmax(0, 1fr) minmax(100px, 0.72fr) !important;gap:9px !important;align-items:center !important;margin:0 0 9px !important;}
 body.type-category #filters .mv-filter-sort .mv-sort-dropdown {width:100% !important;}
 body.type-category #filters .mv-filter-sort .mv-quick-stock {display:block !important;position:static !important;visibility:visible !important;opacity:1 !important;align-self:center !important;justify-self:start !important;width:100% !important;min-width:0 !important;padding:0 !important;margin:0 !important;}
 body.type-category #filters .mv-filter-sort .mv-quick-stock .filter-section-boolean,
 body.type-category #filters .mv-filter-sort .mv-quick-stock .param-filter-top,
 body.type-category #filters .mv-filter-sort .mv-quick-stock fieldset {display:block !important;visibility:visible !important;margin:0 !important;padding:0 !important;}
 body.type-category #filters .mv-filter-sort .mv-quick-stock fieldset > div {display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:5px !important;}
 body.type-category #filters .mv-filter-sort .mv-quick-stock label {display:inline !important;white-space:normal !important;font-size:12px !important;line-height:1.3 !important;}
 body.type-category #filters .mv-filter-sort .mv-quick-stock input[type=checkbox] {display:inline-block !important;visibility:visible !important;opacity:1 !important;}
 body.type-category #filters .mv-quick-price .slider-content {background:transparent !important;}
 body.type-category #filters .mv-quick-price #slider.ui-widget-content {background:#e4ddd6 !important;}
}
