/**
 * Styles pour les filtres marques
 * Desktop + Mobile avec toggle
 */

/* === STRUCTURE DE BASE === */
.onenation-brand-filters {
    margin-bottom: 30px;
}

.brand-filters-section {
    margin-bottom: 20px;
}

/* === BOUTONS MOBILES === */
.brand-filters-mobile-buttons {
    display: none; /* Masqués par défaut (desktop) */
}

/* === LAYOUTS === */

/* Layout Horizontal */
.brand-filters-section.layout-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Layout Vertical */
.brand-filters-section.layout-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* === ITEMS === */
.brand-filter-item {
    display: inline-block;
    padding: 0px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Marges pour layout horizontal */
.layout-horizontal .brand-filter-item {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Marges pour layout vertical */
.layout-vertical .brand-filter-item {
    margin-bottom: 10px;
    width: 100%;
}

.brand-filter-item:hover,
.brand-filter-item.active {
    font-weight: bold;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {

    /* === AFFICHER LES BOUTONS TOGGLE === */
    .onenation-brand-filters .brand-filters-mobile-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .onenation-brand-filters .brand-filter-toggle {
        flex: 1 !important;
        padding: 15px 20px !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
    }

    /* Bouton Filters - Jaune */
    .onenation-brand-filters .brand-filter-toggle:first-child {
        background-color: #FFEB3B !important;
        color: #000 !important;
    }

    /* Bouton A-Z - Noir */
    .onenation-brand-filters .brand-filter-toggle:last-child {
        background-color: #000 !important;
        color: #fff !important;
    }

    /* Animation de l'icône */
    .onenation-brand-filters .brand-filter-toggle svg {
        transition: transform 0.3s ease !important;
    }

    .onenation-brand-filters .brand-filter-toggle.active svg {
        transform: rotate(180deg) !important;
    }

    /* === MASQUER LES SECTIONS PAR DÉFAUT === */
    .onenation-brand-filters .brand-filters-section.brand-categories,
    .onenation-brand-filters .brand-filters-section.brand-letters {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
    }

    /* Afficher quand active */
    .onenation-brand-filters .brand-filters-section.brand-categories.active,
    .onenation-brand-filters .brand-filters-section.brand-letters.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 20px !important;
    }

    /* === GRILLE LETTRES 3 COLONNES === */
    .onenation-brand-filters .brand-letters.layout-horizontal.active {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .onenation-brand-filters .brand-letters .brand-filter-item {
        margin: 0 !important;
        text-align: center !important;
    }

    /* Force le layout vertical pour catégories */
    .onenation-brand-filters .brand-categories.active {
        display: flex !important;
        flex-direction: column !important;
    }
}

.load-more-container {
    margin-top: 45px;
}
.load-more-container .ct.ct--button.border .button-link {
    position: relative;
    display: inline-block;
    min-width: 160px;
    height: 60px;
    text-align: center;
    border: 1px solid #F3F3F3;
    background-color: #fff;
}
.load-more-container .ct.ct--button.border .button-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 3px;
    height: 20px;
    background-color: #FEFC8D;
    -webkit-transition: height 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
    -o-transition: height 350ms cubic-bezier(0.52, 0.76, 0.45, 1);
    transition: height 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
}
.load-more-container .ct.ct--button.border .button-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 40px;
    height: 3px;
    background-color: #FEFC8D;
    -webkit-transition: width 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
    -o-transition: width 350ms cubic-bezier(0.52, 0.76, 0.45, 1);
    transition: width 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
}
.load-more-container .ct.ct--button.border .button-link .button-link-label {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0 20px;
    line-height: 60px;
}
.load-more-container .ct.ct--button.border .button-link .button-link-label::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 3px;
    height: 20px;
    background-color: #FEFC8D;
    -webkit-transition: height 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
    -o-transition: height 350ms cubic-bezier(0.52, 0.76, 0.45, 1);
    transition: height 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
}
.load-more-container .ct.ct--button.border .button-link .button-link-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 55px;
    height: 3px;
    background-color: #FEFC8D;
    -webkit-transition: width 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
    -o-transition: width 350ms cubic-bezier(0.52, 0.76, 0.45, 1);
    transition: width 350ms
    cubic-bezier(0.52, 0.76, 0.45, 1);
}