.brands-listing-page .brands-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
}

.brands-listing-page .brand-card {
    margin: 0;
}

.brands-listing-page .brand-card__inner {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: #fff;
    min-height: 150px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: var(--text-color, #323232);
}

#manufacturer .brands-grid {
    justify-content: center;
}

.brands-listing-page .brand-card__media {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-listing-page .brand-card__media img {
    max-width: 100%;
    max-height: 100px;
    /* width: auto; */
    height: auto;
    object-fit: contain;
}

.brands-listing-page .brand-card__title {
    font-family: var(--main-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

.brands-listing-page .brand-card__title--only {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manufacturer-listing-page .manufacturer-page-header {
    margin-bottom: 1.5rem;
}

.manufacturer-listing-page .manufacturer-layout {
    margin: 0;
}

#manufacturer #wrapper .manufacturer-layout #left-column {
    padding: 0;
    width: 17%;
}

/* En desktop, aligne le haut des filtres avec le debut de grille produits
   quand la barre products-selection est presente sur les pages marque. */
@media (min-width: 992px) {
    #manufacturer #main.manufacturer-listing-page.has-products-toolbar #left-column #search_filters {
        margin-top: 60px;
    }
}

#manufacturer #wrapper .manufacturer-layout #content-wrapper {
    padding: 0;
    width: 83%;
    padding-left: 2rem;
}

#manufacturer #wrapper .manufacturer-layout #content-wrapper #js-product-list .products.row {
    margin: -20px;
}

#manufacturer #wrapper .manufacturer-layout #content-wrapper #js-product-list .products.row .product-card {
    flex: 0 0 calc(33.333% - 40px);
    margin: 20px;
    border-radius: 10px;
    min-width: 0;
    box-sizing: border-box;
}

#manufacturer #wrapper .manufacturer-layout #content-wrapper #js-product-list .products.row .product-card .product-card__image {
    background: var(--Blanc, #FFF);
}

#manufacturer #wrapper .manufacturer-layout #content-wrapper nav.pagination {
    margin-top: 70px;
}

#manufacturer #wrapper .manufacturer-layout #content-wrapper nav.pagination .col-md-4 {
    color: var(--text-color, #323232);
    font-family: var(--secondary-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

@media (max-width: 991px) {
#manufacturer #wrapper .manufacturer-layout #left-column {
        width: 100%;
    }

    #manufacturer #wrapper .manufacturer-layout #content-wrapper.left-column {
        width: 100%;
        padding-left: 0;
        margin-top: 1.5rem;
    }

    #manufacturer #wrapper .manufacturer-layout #content-wrapper #js-product-list .products.row {
        padding-top: 25px;
        gap: 13px 10px;
        margin: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    #manufacturer #wrapper .manufacturer-layout #content-wrapper #js-product-list .products.row .product-card {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        margin: 0;
    }
    /* Etats d'icones des facettes (mobile): + si ferme, - si ouvert */
    #manufacturer #main #left-column #search_filters .facet .title .collapse-icons .material-icons.add {
        display: inline-block;
    }
    #manufacturer #main #left-column #search_filters .facet .title .collapse-icons .material-icons.remove {
        display: none;
    }
    #manufacturer #main #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons .material-icons.add {
        display: none;
    }
    #manufacturer #main #left-column #search_filters .facet .title[aria-expanded="true"] .collapse-icons .material-icons.remove {
        display: inline-block;
    }
    /* Fallback si Bootstrap bascule via classe collapsed */
    #manufacturer #main #left-column #search_filters .facet .title.collapsed .collapse-icons .material-icons.add {
        display: inline-block;
    }
    #manufacturer #main #left-column #search_filters .facet .title.collapsed .collapse-icons .material-icons.remove {
        display: none;
    }

    /* Neutralise la regle globale #manufacturer #main ul {display:flex}
       qui casse le collapse des facettes en listing marque. */
    #manufacturer #main #left-column #search_filters ul {
        display: block;
        flex-wrap: unset;
        align-items: unset;
        justify-content: unset;
    }

    #manufacturer #main #left-column #search_filters ul.collapse:not(.in) {
        display: none;
    }

    #manufacturer #main #left-column #search_filters ul.collapse.in {
        display: block;
    }
}

@media (max-width: 550px) {
    /* En listing marque, le conteneur reel est #search_filters (pas #search_filters_wrapper). */
    #manufacturer #wrapper .manufacturer-layout #left-column #search_filters {
        display: block;
        max-height: none;
        overflow: hidden;
        padding: 20px;
    }

    /* Necessaire pour surcharger .hidden-sm-down { display:none !important; } du theme classic */
    #manufacturer #wrapper .manufacturer-layout #left-column #search_filters > p.text-uppercase {
        display: block !important;
        font-size: 20px !important;
        padding-right: 28px;
        cursor: pointer;
        user-select: none;
        position: relative;
    }

    #manufacturer #wrapper .manufacturer-layout #left-column #search_filters > p.text-uppercase::after {
        content: "\25BE";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        line-height: 1;
        transition: transform 0.2s ease;
    }

    #manufacturer #wrapper .manufacturer-layout #left-column #search_filters.filters-mobile-collapsed > :not(p.text-uppercase) {
        display: none;
    }

    #manufacturer #wrapper .manufacturer-layout #left-column #search_filters.filters-mobile-expanded {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    #manufacturer #wrapper .manufacturer-layout #left-column #search_filters.filters-mobile-expanded > p.text-uppercase::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Harmonise le rendu mobile avec les listings categorie */
    #manufacturer #wrapper .manufacturer-layout #content-wrapper #js-product-list .products.row .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media screen and (min-width: 992px) and (max-width: 1280px) {
    #manufacturer #wrapper .manufacturer-layout #left-column {
        width: 30%;
    }

    #manufacturer #wrapper .manufacturer-layout #content-wrapper.left-column {
        width: 70%;
        padding-left: 2rem;
    }
}
