/**
 * Styles dédiés pour les Filtres Natifs WooCommerce Bâches MFM
 * 
 * @package Baches_MFM
 */

/* ==========================================================================
   0. Typographie universelle et lisible (Montserrat) pour tout le module
   ========================================================================== */
#mfm-native-filters-sidebar,
#mfm-native-toolbar,
.boutique__floating-filter-bar,
.boutique__produits-wrapper .boutique__results-count,
.mfm-search-input-wrap,
.mfm-search-input,
.mfm-search-input::placeholder,
.mfm-results-count-text,
.boutique__sort-label,
.mfm-sort-select,
.mfm-active-tags-container,
.mfm-active-tag-pill,
.mfm-tag-label,
.mfm-clear-all-tags-btn,
.boutique__sidebar-title,
.boutique__reset-filters-btn,
.mfm-reset-btn,
.boutique__filtre-open-label,
.mfm-filter-item,
.mfm-filter-name,
.mfm-filter-count,
.mfm-toggle-more-btn,
.boutique__floating-filter-btn,
.boutique__filtres-header-title,
.boutique__apply-filters-btn,
.boutique__empty-title,
.boutique__empty-desc,
.mfm-page-btn,
.mfm-product-card,
.mfm-price-box,
.mfm-price-prefix,
.mfm-card-price,
.mfm-card-actions,
.mfm-action-btn,
.mfm-badge {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ==========================================================================
   1. Header Sidebar & Bouton Tout effacer
   ========================================================================== */
.boutique__sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 2px solid #eef2f6 !important;
}

.boutique__sidebar-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #145943 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.boutique__sidebar-icon {
    color: #145943 !important;
}

.boutique__reset-filters-btn,
.mfm-reset-btn {
    background: none !important;
    border: none !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #ea5a0b !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    text-decoration: underline !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.boutique__reset-filters-btn:hover,
.mfm-reset-btn:hover {
    background-color: #fff1eb !important;
    color: #c2410c !important;
}

/* ==========================================================================
   2. Liste des Options & Cases à cocher Custom
   ========================================================================== */
.mfm-filter-options-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
}

.mfm-scrollable-list {
    padding-right: 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.mfm-scrollable-list.is-expanded {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
}

.mfm-scrollable-list::-webkit-scrollbar {
    width: 5px !important;
}
.mfm-scrollable-list::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 4px !important;
}
.mfm-scrollable-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1 !important;
    border-radius: 4px !important;
}

.mfm-filter-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: color 0.15s ease !important;
    line-height: 1.3 !important;
    padding: 2px 0 !important;
    position: relative !important;
    margin: 0 !important;
}

.mfm-filter-item:hover {
    color: #145943 !important;
}

/* Checkbox native invisible */
.mfm-filter-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Checkbox personnalisée MFM */
.mfm-custom-checkbox {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

.mfm-filter-item:hover .mfm-custom-checkbox {
    border-color: #008b30 !important;
}

.mfm-filter-checkbox:checked ~ .mfm-custom-checkbox {
    background-color: #008b30 !important;
    border-color: #008b30 !important;
}

.mfm-filter-checkbox:checked ~ .mfm-custom-checkbox::after {
    content: "" !important;
    display: block !important;
    width: 4px !important;
    height: 8px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) translate(-1px, -1px) !important;
}

.mfm-filter-name {
    flex: 1 !important;
    min-width: 0 !important;
}

.mfm-filter-count {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    margin-left: auto !important;
    font-weight: 500 !important;
}

.mfm-filter-checkbox:checked ~ .mfm-filter-name {
    font-weight: 600 !important;
    color: #145943 !important;
}

/* ==========================================================================
   3. Items au-delà du 10ème masqués par défaut & Bouton Voir plus
   ========================================================================== */
.mfm-filter-item.mfm-filter-item--more,
.mfm-filter-item--more {
    display: none !important;
}

.mfm-filter-options-list.is-expanded .mfm-filter-item.mfm-filter-item--more,
.mfm-filter-options-list.is-expanded .mfm-filter-item--more {
    display: flex !important;
}

.mfm-toggle-more-btn {
    background: none !important;
    border: none !important;
    color: #008b30 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 6px 0 2px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: color 0.15s ease !important;
    text-decoration: underline !important;
    margin-top: 4px !important;
    font-family: inherit !important;
    text-align: left !important;
    outline: none !important;
}

.mfm-toggle-more-btn:hover {
    color: #145943 !important;
}

/* ==========================================================================
   4. Filtre de Prix (Range Slider & Inputs)
   ========================================================================== */
.mfm-price-filter-wrap {
    padding: 6px 0 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.mfm-price-inputs-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.mfm-price-input-box {
    display: flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    flex: 1 !important;
    max-width: 46% !important;
}

.mfm-price-currency {
    font-size: 0.85rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
    margin-right: 0 !important;
}

.mfm-price-field {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    outline: none !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

.mfm-price-field::-webkit-outer-spin-button,
.mfm-price-field::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.mfm-price-sep {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

.mfm-price-range-slider-wrap {
    position: relative !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
}

.mfm-range-slider {
    position: absolute !important;
    width: 100% !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 4px !important;
    background: transparent !important;
    z-index: 3 !important;
    outline: none !important;
    margin: 0 !important;
}

.mfm-range-slider::-webkit-slider-thumb {
    pointer-events: auto !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #008b30 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: transform 0.1s ease !important;
}

.mfm-range-slider::-moz-range-thumb {
    pointer-events: auto !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #008b30 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
}

.mfm-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15) !important;
}

.mfm-slider-track {
    position: absolute !important;
    height: 4px !important;
    background: #008b30 !important;
    border-radius: 2px !important;
    z-index: 2 !important;
}

.mfm-price-range-slider-wrap::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: #e2e8f0 !important;
    border-radius: 2px !important;
    z-index: 1 !important;
}

/* ==========================================================================
   5. Barre d'outils supérieure (Recherche, Décompte, Tri)
   ========================================================================== */
.boutique__top-toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #eef2f6 !important;
    width: 100% !important;
}

.boutique__search-bar {
    width: 100% !important;
    display: block !important;
}

.mfm-search-input-wrap {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.mfm-search-input {
    width: 100% !important;
    height: 44px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 40px 0 42px !important;
    font-size: 0.90rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.mfm-search-input::placeholder {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
}

.mfm-search-input:focus {
    border-color: #008b30 !important;
    box-shadow: 0 0 0 3px rgba(0, 139, 48, 0.12) !important;
}

.mfm-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    z-index: 2 !important;
}

.mfm-search-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #94a3b8 !important;
}

.mfm-search-clear-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #64748b !important;
    padding: 0 !important;
    z-index: 2 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.mfm-search-clear-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.boutique__toolbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
}

.mfm-results-count-text {
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.boutique__sort-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.boutique__sort-label {
    font-size: 0.88rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.boutique__sort-facet {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.mfm-sort-select {
    height: 38px !important;
    padding: 0 34px 0 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mfm-sort-select:hover {
    border-color: #94a3b8 !important;
}

.mfm-sort-select:focus {
    border-color: #008b30 !important;
    box-shadow: 0 0 0 3px rgba(0, 139, 48, 0.12) !important;
}

.mfm-sort-chevron {
    position: absolute !important;
    right: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    color: #64748b !important;
}

.mfm-sort-chevron svg {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
    stroke: currentColor !important;
}

/* ==========================================================================
   6. Pastilles des filtres actifs (Tags)
   ========================================================================== */
.mfm-active-tags-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 0 !important;
    border: none !important;
    border-top: none !important;
    width: 100% !important;
}

.mfm-active-tags-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.mfm-active-tag-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #145943 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    line-height: 1.2 !important;
    transition: all 0.15s ease !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.mfm-tag-label {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 500 !important;
}

.mfm-active-tag-pill:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
}

.mfm-active-tag-remove {
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    color: #15803d !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin-left: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mfm-active-tag-remove:hover {
    color: #dc2626 !important;
}

.mfm-clear-all-tags-btn {
    background: none !important;
    border: none !important;
    color: #ea5a0b !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    padding: 2px 6px !important;
    margin-left: auto !important;
    border-radius: 4px !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.mfm-clear-all-tags-btn:hover {
    background: #fff1eb !important;
    color: #c2410c !important;
}

/* ==========================================================================
   7. Grille de Produits & États de Chargement
   ========================================================================== */
.boutique__produits-grid {
    position: relative !important;
    transition: opacity 0.2s ease !important;
}

.boutique__produits-grid.is-filtering {
    opacity: 0.45 !important;
    pointer-events: none !important;
}

.mfm-filter-loader-overlay {
    position: absolute !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 12px 24px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    color: #145943 !important;
}

.mfm-spinner {
    width: 20px !important;
    height: 20px !important;
    border: 2.5px solid #e2e8f0 !important;
    border-top-color: #008b30 !important;
    border-radius: 50% !important;
    animation: mfm-spin 0.6s linear infinite !important;
}

@keyframes mfm-spin {
    to { transform: rotate(360deg); }
}

.boutique__empty-products {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 3rem 1rem !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px dashed #cbd5e1 !important;
    margin: 1rem 0 !important;
}

.boutique__empty-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
}

.boutique__empty-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.5rem !important;
}

.boutique__empty-desc {
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin-bottom: 1.25rem !important;
}

/* ==========================================================================
   8. Pagination Native
   ========================================================================== */
.mfm-pagination-container {
    display: flex !important;
    justify-content: center !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
}

.mfm-pagination-list {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.mfm-page-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.mfm-page-btn:hover:not(.disabled) {
    background: #f8fafc !important;
    border-color: #008b30 !important;
    color: #008b30 !important;
}

.mfm-page-btn.is-active {
    background: #008b30 !important;
    border-color: #008b30 !important;
    color: #ffffff !important;
    cursor: default !important;
}

.mfm-page-btn.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

.mfm-page-dots {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 38px !important;
    color: #94a3b8 !important;
    font-weight: bold !important;
}

/* ==========================================================================
   9. Mobile Responsive, Floating Filter Button & Drawer
   ========================================================================== */
@media screen and (max-width: 991px) {
    .boutique__top-toolbar {
        margin-top: 0.5rem !important;
    }
    
    .boutique__toolbar-actions {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .boutique__sort-wrapper {
        margin-left: auto !important;
    }

    /* Bouton flottant mobile - Masqué quand le menu mega menu mobile est ouvert */
    body.mfm-menu-open .boutique__floating-filter-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Bouton flottant mobile - Toujours visible et centré en bas d'écran */
    .boutique__floating-filter-bar {
        display: block !important;
        position: fixed !important;
        bottom: 22px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .boutique__floating-filter-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 22px !important;
        height: 44px !important;
        background: #008b30 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 30px !important;
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 0.90rem !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 16px rgba(0, 139, 48, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
        cursor: pointer !important;
        margin: 0 !important;
        white-space: nowrap !important;
        transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .boutique__floating-filter-btn:hover {
        background-color: #007328 !important;
        transform: scale(1.02) !important;
    }

    .boutique__floating-filter-btn:active {
        transform: scale(0.96) !important;
        background-color: #005c20 !important;
    }

    .boutique__floating-filter-icon {
        width: 16px !important;
        height: 16px !important;
        display: inline-block !important;
        filter: brightness(0) invert(1) !important;
    }

    .boutique__active-count-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 6px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        background: #ffffff !important;
        color: #008b30 !important;
        border-radius: 10px !important;
        margin-left: 2px !important;
    }

    /* Backdrop sombre sans filtre de flou pour éliminer tout floutage du contenu */
    .boutique__filter-backdrop {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(15, 23, 42, 0.6) !important;
        z-index: 999990 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease, visibility 0.25s ease !important;
    }

    body.filter-drawer-open {
        overflow: hidden !important;
        touch-action: none !important;
    }

    body.filter-drawer-open .boutique__wrapper {
        position: relative !important;
        z-index: 1000000 !important;
    }

    body.filter-drawer-open .boutique__filter-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Tiroir latéral Mobile (Drawer) - Complètement masqué au repos (-120%) pour éviter tout débordement de bordure */
    .boutique__filtres-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 88% !important;
        max-width: 380px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background-color: #ffffff !important;
        z-index: 1000001 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.3) !important;
        border-radius: 0 16px 16px 0 !important;
        border: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateX(-120%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease !important;
    }

    .boutique__filtres-wrapper.is-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Header fixe du tiroir */
    .boutique__filtres-header {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1rem 1.25rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        z-index: 10 !important;
    }

    .boutique__filtres-header-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #145943 !important;
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    }

    .boutique__filtres-header-close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #475569 !important;
        background: #f1f5f9 !important;
        border-radius: 50% !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
        transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .boutique__filtres-header-close:hover {
        background-color: #e2e8f0 !important;
        color: #0f172a !important;
        transform: scale(1.05) !important;
    }

    .boutique__filtres-header-close svg {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        stroke: currentColor !important;
    }

    /* Corps défilable du tiroir (Scrollbar verticale interne) */
    .mfm-drawer-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 0.5rem 0 1rem 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e1 #f8fafc !important;
    }

    .mfm-drawer-body::-webkit-scrollbar {
        width: 5px !important;
    }
    .mfm-drawer-body::-webkit-scrollbar-track {
        background: #f8fafc !important;
    }
    .mfm-drawer-body::-webkit-scrollbar-thumb {
        background-color: #cbd5e1 !important;
        border-radius: 4px !important;
    }

    /* Accordéons des groupes sur mobile */
    .boutique__filtres-wrapper .boutique__filtre-wrapper {
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 0.75rem 1.25rem !important;
    }

    .boutique__filtre-open-desktop {
        display: none !important;
    }

    .boutique__filtre-open-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        padding: 6px 0 !important;
    }

    .boutique__filtre-img {
        width: 18px !important;
        height: 18px !important;
        margin-right: 8px !important;
        color: #008b30 !important;
    }

    .boutique__filtre-open-label {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }

    /* Footer fixe du tiroir avec bouton d'application */
    .boutique__filtres-close-wrapper {
        flex: 0 0 auto !important;
        padding: 1rem 1.25rem !important;
        padding-bottom: max(1rem, env(safe-area-inset-bottom)) !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06) !important;
        z-index: 10 !important;
        margin-top: 0 !important;
    }

    .boutique__apply-filters-btn {
        width: 100% !important;
        height: 48px !important;
        background: #008b30 !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0, 139, 48, 0.3) !important;
        transition: background-color 0.15s ease !important;
    }

    .boutique__apply-filters-btn:hover {
        background: #007328 !important;
    }

    /* Masquer le header desktop de la sidebar sur mobile pour éviter les doublons */
    .boutique__sidebar-header {
        display: none !important;
    }

    .boutique__wrapper {
        contain: none !important;
    }

    .boutique__wrapper > .boutique__filtres-open-button {
        display: none !important;
    }
}

/* ==========================================================================
   Badges Produit & Drapeau Français SVG
   ========================================================================== */
.mfm-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
}

.mfm-badge {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-align: left;
}

.mfm-badge--trend {
    background: linear-gradient(135deg, #ff7a00, #ff3d00);
    color: #ffffff;
}

.mfm-badge--bestseller {
    background: linear-gradient(135deg, #008b30, #005a1f);
    color: #ffffff;
}

.mfm-badge--fr {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-size: 9.5px;
}

.mfm-flag-fr {
    width: 13px;
    height: 9px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

