/*
 * Page produits : filtres.
 * Mobile (< 992 px) : maquette « Listing mobile · panneau de filtres » validée le 2026-11-15
 *   (pilules de filtres rapides, bouton « Filtres (n) », panneau qui monte du bas).
 * Desktop : layout de production gardé ; seul l'état actif des pilules passe au navy de la charte.
 */

.gm-smart-chip.is-active {
    background: #000080 !important;
    border-color: #000080 !important;
    color: #FFFFFF !important;
    box-shadow: none;
}

.gm-filter-toggle {
    text-transform: none;
    white-space: nowrap;
    min-height: 40px;
    padding: 0 12px;
    border: 1.5px solid #000080;
    border-radius: 8px;
    background: #FFFFFF;
    color: #000080;
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.gm-filter-toggle:focus-visible { outline: 2px solid #0376EA; outline-offset: 2px; }

@media (max-width: 991.98px) {
    /* Filtres rapides : une ligne de pilules qui défile, sans cadre ni libellé */
    .gm-smart-quick-bar {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
    }
    .gm-smart-quick-bar .gm-smart-quick-scroll > span:first-child { display: none !important; }
    .gm-smart-quick-scroll { gap: 8px !important; }
    .gm-smart-chip {
        height: 36px;
        padding: 0 12px;
        border: 1px solid #CBD5E1;
        background: #FFFFFF;
        color: #334155;
        font: 500 13px/1 'Inter', system-ui, sans-serif;
        gap: 6px;
    }
    .gm-smart-chip > i:first-child, .gm-smart-chip > span.rounded-circle { display: none; }
    .gm-smart-chip.is-active { font-weight: 600; }
    .gm-smart-chip:hover { transform: none; }

    /* Panneau de filtres : feuille qui monte du bas */
    body.gm-filters-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(11, 15, 31, 0.5);
        z-index: 1055;
    }
    .product-list-filter .filter-toggle-aside {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: min(85dvh, 680px) !important;
        max-height: 85dvh !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -12px 40px rgba(11, 15, 31, 0.24) !important;
        transform: translateY(105%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
    .product-list-filter .filter-toggle-aside.active { left: 0 !important; transform: translateY(0); }
    .product-list-filter .filter-toggle-aside::before {
        content: "";
        display: block;
        flex-shrink: 0;
        width: 40px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 9999px;
        background: #CBD5E1;
    }
    .product-list-filter .filter-toggle-aside > .d-lg-none:first-child {
        background: #FFFFFF !important;
        border: 0 !important;
        padding: 4px 8px 8px 20px !important;
    }
    .product-list-filter .filter-toggle-aside > .d-lg-none:first-child h5 {
        font: 700 20px/1.2 'Plus Jakarta Sans', system-ui, sans-serif !important;
        color: #0F172A;
    }
    .product-list-filter .filter-toggle-aside > .d-lg-none:first-child h5 i,
    .product-list-filter .filter-toggle-aside > .d-lg-none:first-child .badge { display: none !important; }
    .product-list-filter .filter-toggle-aside .gm-filter-sticky-header { display: none !important; }
    .product-list-filter .filter-toggle-aside .card-body {
        padding: 0 20px 16px !important;
        gap: 20px !important;
    }

    /* Sections : titre en petites capitales, sans icône ni chevron */
    .product-list-filter .filter-toggle-aside .gm-filter-widget { border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
    .product-list-filter .filter-toggle-aside .gm-filter-header { padding: 0 0 6px !important; pointer-events: none; }
    .product-list-filter .filter-toggle-aside .gm-filter-header > div > i,
    .product-list-filter .filter-toggle-aside .gm-filter-chevron,
    .product-list-filter .filter-toggle-aside .gm-filter-count-badge { display: none !important; }
    .product-list-filter .filter-toggle-aside .gm-filter-title {
        font: 600 11px/1.3 'Inter', system-ui, sans-serif !important;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #475569 !important;
    }
    .product-list-filter .filter-toggle-aside .collapse:not(.show) { display: block !important; }

    /* Commande minimum : Dès 1, ≤ 10, ≤ 50, Tous */
    .product-list-filter .filter-toggle-aside .gm-moq-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
    .product-list-filter .filter-toggle-aside .gm-moq-grid .gm-moq-chip.gm-moq-opt-5,
    .product-list-filter .filter-toggle-aside .gm-moq-grid .gm-moq-chip.gm-moq-opt-20,
    .product-list-filter .filter-toggle-aside .gm-moq-grid .gm-moq-chip.gm-moq-opt-100 { display: none !important; }
    .product-list-filter .filter-toggle-aside .gm-moq-chip {
        height: 44px !important;
        border-radius: 8px !important;
        border: 1px solid #CBD5E1 !important;
        background: #FFFFFF !important;
        color: #0F172A !important;
        font: 500 13px/1 'Inter', system-ui, sans-serif !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .product-list-filter .filter-toggle-aside .gm-moq-chip.is-active {
        background: #EAF2FF !important;
        border: 1.5px solid #000080 !important;
        color: #000080 !important;
        font-weight: 600 !important;
    }
    .product-list-filter .filter-toggle-aside .product-moq-filter-widget p { display: none; }

    /* Prix unitaire : deux champs Minimum / Maximum */
    .product-list-filter .filter-toggle-aside .gm-price-presets-grid,
    .product-list-filter .filter-toggle-aside .gm-price-go-btn,
    .product-list-filter .filter-toggle-aside .gm-price-dash,
    .product-list-filter .filter-toggle-aside div:has(> #price_range_slider) { display: none !important; }
    .product-list-filter .filter-toggle-aside .gm-price-inputs-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin: 0 !important;
    }
    .product-list-filter .filter-toggle-aside .gm-price-box {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        height: auto !important;
        box-shadow: none !important;
    }
    .product-list-filter .filter-toggle-aside .gm-price-tag {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
        font: 400 12px/1.3 'Inter', system-ui, sans-serif !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        color: #475569 !important;
    }
    .product-list-filter .filter-toggle-aside .gm-price-field {
        height: 44px !important;
        width: 100% !important;
        box-sizing: border-box;
        border: 1px solid #CBD5E1 !important;
        border-radius: 8px !important;
        padding: 0 12px !important;
        background: #FFFFFF !important;
        font: 500 15px/1 'Inter', system-ui, sans-serif !important;
        color: #0F172A !important;
        font-variant-numeric: tabular-nums;
        text-align: left !important;
    }
    .product-list-filter .filter-toggle-aside .gm-price-field:focus { outline: none; border-color: #000080 !important; box-shadow: 0 0 0 3px rgba(3, 118, 234, 0.18) !important; }

    /* Bas du panneau : Réinitialiser (1/3) + Voir les N produits (2/3) */
    .product-list-filter .filter-mobile-sticky-bottom {
        display: grid !important;
        grid-template-columns: 1fr 2fr;
        gap: 10px !important;
        padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid #E2E8F0 !important;
        box-shadow: none !important;
    }
    .product-list-filter .filter-mobile-sticky-bottom > * {
        height: 48px;
        border-radius: 8px !important;
        font: 600 15px/1 'Inter', system-ui, sans-serif !important;
        text-transform: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 8px !important;
    }
    .product-list-filter .filter-mobile-sticky-bottom .anaizan-filter-reset { background: #FFFFFF !important; border: 1px solid #CBD5E1 !important; color: #334155 !important; }
    .product-list-filter .filter-mobile-sticky-bottom #mobile-apply-filter-btn { background: #000080 !important; border: 0 !important; color: #FFFFFF !important; }

    [theme="dark"] .filter-toggle-aside > .d-lg-none:first-child,
    [theme="dark"] .filter-mobile-sticky-bottom { background: var(--bs-white) !important; }
}

@media (prefers-reduced-motion: reduce) {
    .filter-toggle-aside { transition: none !important; }
}

/* ================= Desktop : maquette « Page produits desktop · filtres dynamiques » (validée le 2026-11-15) ================= */
@media (min-width: 1200px) {
    .gm-listing-desktop .gm-product-card { border-color: #E2E8F0 !important; border-radius: 12px !important; box-shadow: none !important; }
    .gm-listing-desktop .gm-card-badges .gm-badge.gm-badge--verified { display: inline-flex !important; align-items: center; gap: 4px; background: #000080; color: #FFFFFF; }
    .gm-listing-desktop .gm-card-moq { display: inline-flex !important; align-self: flex-start; align-items: center; height: 22px; padding: 0 6px; border-radius: 4px; background: #EAF2FF; color: #000080; font-size: 12px; font-weight: 600; white-space: nowrap; }
    .gm-listing-desktop .gm-card-cta-more { display: inline !important; }
    .gm-listing-desktop .gm-product-card .gm-card-seller-line { order: -1; justify-content: flex-start !important; font-size: 12px !important; color: #475569 !important; }
    .gm-listing-desktop .gm-product-card .gm-card-seller-line > div:first-child:not(:has(*)) { display: none !important; }
    .gm-listing-desktop .gm-card-country { display: inline !important; }
    /* Petite carte (Made in Africa) : boutique au-dessus du nom, sans la ligne MOQ à icône */
    .gm-listing-desktop .gm-product-card .product__main-info .product__grid-seller { order: -1; font-size: 12px !important; color: #475569 !important; }
    .gm-listing-desktop .gm-product-card .product__grid-seller i { display: none !important; }
    .gm-listing-desktop .gm-product-card .product__grid-seller > span { gap: 0 !important; display: inline !important; }
    .gm-listing-desktop .gm-product-card .product__grid-seller .text-truncate { display: inline !important; }
    .gm-listing-desktop .gm-product-card .gm-card-meta { display: none !important; }
    .gm-listing-desktop .gm-product-card .gm-card-cart-btn {
        height: 40px !important; border-radius: 8px !important; background: #FFFFFF !important; color: #000080 !important;
        border: 1.5px solid #000080 !important; box-shadow: none !important; text-transform: none !important;
    }
    .gm-listing-desktop .gm-product-card .gm-card-cart-btn:hover { background: #EAF2FF !important; }
    .gm-listing-desktop .gm-product-card .gm-card-cart-btn i { display: none !important; }
    .gm-listing-desktop .gm-product-card .gm-card-cart-btn span { color: #000080 !important; font-size: 14px !important; font-weight: 600 !important; text-transform: none !important; }
    .gm-listing-desktop .gm-product-card .gm-card-seller-line > span { gap: 0 !important; display: inline !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gm-listing-desktop .gm-product-card .gm-card-seller-line > span > .text-truncate { display: inline !important; }
    .gm-listing-desktop .gm-product-card .gm-card-seller-line > span { max-width: none !important; color: #475569 !important; }
    .gm-listing-desktop .gm-product-card .gm-card-seller-line i { display: none !important; }
    .gm-listing-desktop .gm-product-card .gm-card-badges { flex-direction: row !important; flex-wrap: wrap; gap: 4px !important; }
    .gm-listing-desktop .gm-product-card .gm-badge { height: 22px; padding: 0 6px; border-radius: 4px !important; font-size: 11px; font-weight: 600; }
    .gm-listing-desktop .gm-product-card .gm-badge--promo { background: #D60000 !important; color: #FFFFFF !important; }
    .gm-listing-desktop .gm-product-card .product__title, .gm-listing-desktop .gm-product-card .product__title a { text-transform: none !important; }
    .gm-listing-desktop .gm-product-card .gm-action-btn--secondary,
    .gm-listing-desktop .gm-product-card .add-to-compare { display: none !important; }
    .gm-listing-desktop .gm-product-card .product__grid-actions-row .btn-primary {
        height: 40px !important; border-radius: 8px !important; background: #FFFFFF !important; color: #000080 !important;
        border: 1.5px solid #000080 !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important;
    }
    .gm-listing-desktop .gm-product-card .product__grid-actions-row .btn-primary:hover { background: #EAF2FF !important; }
    .gm-listing-desktop .gm-product-card .product__grid-actions-row .btn-primary, .gm-listing-desktop .gm-product-card .product__grid-actions-row .btn-primary * { text-transform: none !important; }
    .gm-listing-desktop .gm-product-card .product__grid-actions-row .btn-primary i { display: none !important; }
    .gm-listing-desktop .gm-product-card .product__grid-actions-row .btn-primary span { color: #000080 !important; }
}

/* Éléments des filtres dynamiques (toutes largeurs) */
.gm-facet-row { min-height: 34px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #0F172A; cursor: pointer; margin: 0; }
.gm-facet-row input[type="radio"] { width: 18px; height: 18px; accent-color: #000080; margin: 0; flex-shrink: 0; }
.gm-facet-label { flex: 1; min-width: 0; line-height: 1.3; }
.gm-facet-count { font-size: 12px; color: #64748B; font-variant-numeric: tabular-nums; }
.gm-facet-swatch { width: 16px; height: 16px; border-radius: 9999px; border: 1px solid #CBD5E1; flex-shrink: 0; }
.gm-facet-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gm-facet-chip { position: relative; margin: 0; cursor: pointer; }
.gm-facet-chip input { position: absolute !important; opacity: 0; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; cursor: pointer; }
.gm-facet-chip span { height: 36px; border-radius: 8px; border: 1px solid #CBD5E1; background: #FFFFFF; color: #0F172A; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.gm-facet-chip input:checked + span { background: #EAF2FF; border: 1.5px solid #000080; color: #000080; font-weight: 600; }
.gm-facet-chip input:focus-visible + span { outline: 2px solid #0376EA; outline-offset: 2px; }
.gm-dyn-box { display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.gm-dyn-box-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #000080; }
.gm-dyn-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gm-dyn-fieldset legend { padding: 0 0 6px; float: none; width: auto; }
.gm-subcat-list { display: flex; flex-direction: column; gap: 2px; }
.gm-subcat-back { min-height: 30px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0376EA; text-decoration: none; }
.gm-subcat-back:hover { color: #000080; }
.gm-subcat-current { min-height: 34px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: #0F172A; }
.gm-subcat-item { min-height: 32px; padding-left: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: #0F172A; text-decoration: none; border-radius: 6px; }
.gm-subcat-item:hover { background: #F1F5F9; color: #000080; }

/* Filtres actifs : pastilles bleues avec croix */
.product-list-selected-tags li[class*="remove_tags"] {
    background: #EAF2FF !important; border: 1px solid #C7D2FE !important; color: #000080 !important;
    height: 30px; padding: 0 8px 0 12px !important; box-shadow: none !important;
}
.product-list-selected-tags li[class*="remove_tags"] > i:first-child { display: none; }
.product-list-selected-tags li[class*="remove_tags"] span { color: #000080 !important; font-weight: 600; }
.product-list-selected-tags li[class*="remove_tags"] button { color: #000080 !important; }

/* Encart devis au milieu des résultats */
.gm-listing-rfq {
    grid-column: 1 / -1; position: relative; overflow: hidden; border-radius: 12px; padding: 24px 28px;
    background: linear-gradient(135deg, #0B0F1F 0%, #000080 100%); color: #FFFFFF;
    align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.gm-listing-rfq::after { content: ""; position: absolute; right: -40px; top: -60px; width: 320px; height: 320px; background: url("../img/brand/motif-orbit_on-dark.svg") no-repeat center / contain; opacity: .35; pointer-events: none; }
.gm-listing-rfq > * { position: relative; z-index: 1; }
.gm-listing-rfq-text { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.gm-listing-rfq-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #93C5FD; }
.gm-listing-rfq-title { font: 700 22px/1.25 'Plus Jakarta Sans', system-ui, sans-serif; }
.gm-listing-rfq-sub { font-size: 14px; color: #CBD5E1; }
.gm-listing-rfq-btn { height: 44px; padding: 0 20px; border-radius: 8px; background: #FFFFFF; color: #000080 !important; font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; }
.gm-listing-rfq-btn:hover { background: #EAF2FF; }

/* Pagination : position dans la liste + boutons de 40 px */
.gm-listing-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gm-listing-range { font-size: 13px; color: #475569; font-variant-numeric: tabular-nums; }
.gm-listing-pagination .pagination { margin: 0; gap: 6px; }
.gm-listing-pagination .page-link { min-width: 40px; height: 40px; border-radius: 8px !important; border: 1px solid #CBD5E1; color: #0F172A; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.gm-listing-pagination .page-link.active, .gm-listing-pagination .page-item.active .page-link { background: #000080 !important; border-color: #000080 !important; color: #FFFFFF !important; }
.gm-listing-pagination .page-item.disabled .page-link { color: #94A3B8; border-color: #E2E8F0; background: #FFFFFF; }

/* Titre de page : visible seulement sur desktop */
.gm-listing-head { display: none; }

@media (min-width: 1200px) {
    .product-list-filter { position: relative; }
    .gm-listing-head { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 14px; padding-right: 340px; }
    .gm-listing-title { margin: 0; font: 800 28px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -0.01em; color: #0F172A; }
    .gm-listing-sub { font-size: 14px; color: #475569; font-variant-numeric: tabular-nums; }
    /* Tri et affichage remontent à droite du titre */
    .gm-results-bar { position: absolute; top: 10px; right: 0; margin: 0 !important; }
    .gm-results-bar > .fs-13 { display: none !important; }

    /* Filtres rapides : pilules sans cadre ni libellé */
    .gm-smart-quick-bar { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 16px !important; }
    .gm-smart-quick-bar .gm-smart-quick-scroll > span:first-child { display: none !important; }
    .gm-smart-quick-scroll { gap: 8px !important; flex-wrap: wrap; }
    .gm-smart-chip { height: 36px; padding: 0 14px; border: 1px solid #CBD5E1; background: #FFFFFF; color: #334155; font: 500 13px/1 'Inter', system-ui, sans-serif; gap: 6px; }
    .gm-smart-chip > i:first-child, .gm-smart-chip > span.rounded-circle { display: none; }
    .gm-smart-chip.is-active { font-weight: 600; }
    .gm-smart-chip:hover { transform: none; border-color: #000080; }

    /* Colonne de filtres */
    .product-list-filter .flexible-grid { grid-template-columns: 272px minmax(0, 1fr) !important; gap: 24px !important; }
    .product-list-filter .filter-toggle-aside { border: 1px solid #E2E8F0 !important; border-radius: 12px !important; box-shadow: none !important; }
    .product-list-filter .filter-toggle-aside .card-body { padding: 20px !important; gap: 22px !important; }
    .product-list-filter .gm-filter-sticky-header { border: 0 !important; padding: 0 !important; }
    .product-list-filter .gm-filter-sticky-header h6 { font: 700 18px/1.2 'Plus Jakarta Sans', system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; }
    .product-list-filter .gm-filter-sticky-header h6 i, .product-list-filter #active-filters-count-badge { display: none !important; }
    .product-list-filter .gm-filter-sticky-header .anaizan-filter-reset { font-size: 13px !important; color: #0376EA !important; }
    .product-list-filter .gm-filter-sticky-header .anaizan-filter-reset i { display: none; }
    .product-list-filter .filter-toggle-aside .gm-filter-widget { border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 !important; }
    .product-list-filter .filter-toggle-aside .gm-filter-header { padding: 0 0 6px !important; }
    .product-list-filter .filter-toggle-aside .gm-filter-header > div > i,
    .product-list-filter .filter-toggle-aside .gm-filter-chevron,
    .product-list-filter .filter-toggle-aside .gm-filter-count-badge { display: none !important; }
    .product-list-filter .filter-toggle-aside .gm-filter-title { font: 600 11px/1.3 'Inter', system-ui, sans-serif !important; letter-spacing: .08em; text-transform: uppercase; color: #475569 !important; }
    .product-list-filter .filter-toggle-aside .gm-moq-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
    .product-list-filter .filter-toggle-aside .gm-moq-chip { height: 40px !important; border-radius: 8px !important; border: 1px solid #CBD5E1 !important; background: #FFFFFF !important; color: #0F172A !important; font: 500 13px/1 'Inter', system-ui, sans-serif !important; display: flex !important; align-items: center; justify-content: center; }
    .product-list-filter .filter-toggle-aside .gm-moq-chip.is-active { background: #EAF2FF !important; border: 1.5px solid #000080 !important; color: #000080 !important; font-weight: 600 !important; }
    .product-list-filter .product-moq-filter-widget p { display: none; }
    .product-list-filter .gm-price-presets-grid { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
    .product-list-filter .gm-price-preset-btn { height: 32px !important; padding: 0 10px !important; border-radius: 9999px !important; border: 1px solid #CBD5E1 !important; background: #FFFFFF !important; font-size: 12px !important; font-weight: 500 !important; color: #334155 !important; width: auto !important; }
    .product-list-filter .gm-price-preset-btn.is-active { background: #EAF2FF !important; border-color: #000080 !important; color: #000080 !important; }
    .product-list-filter .gm-price-go-btn, .product-list-filter .gm-price-dash, .product-list-filter div:has(> #price_range_slider) { display: none !important; }
    .product-list-filter .gm-price-inputs-container { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 0 !important; }
    .product-list-filter .gm-price-box { display: flex !important; flex-direction: column; gap: 4px; border: 0 !important; background: transparent !important; padding: 0 !important; height: auto !important; box-shadow: none !important; }
    .product-list-filter .gm-price-tag { position: static !important; transform: none !important; background: transparent !important; padding: 0 !important; font: 400 12px/1.3 'Inter', system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: #475569 !important; }
    .product-list-filter .gm-price-tag .d-lg-none { display: inline !important; }
    .product-list-filter .gm-price-tag .d-lg-inline { display: none !important; }
    .product-list-filter .gm-price-field { height: 40px !important; width: 100% !important; box-sizing: border-box; border: 1px solid #CBD5E1 !important; border-radius: 8px !important; padding: 0 10px !important; background: #FFFFFF !important; font: 500 14px/1 'Inter', system-ui, sans-serif !important; color: #0F172A !important; text-align: left !important; }
    .product-list-filter .product-price-filter-widget .gm-filter-title .d-lg-none { display: inline !important; }
    .product-list-filter .product-price-filter-widget .gm-filter-title .d-lg-inline { display: none !important; }
    .product-list-filter .product-moq-filter-widget .gm-filter-title .d-lg-none { display: inline !important; }
    .product-list-filter .product-moq-filter-widget .gm-filter-title .d-lg-inline { display: none !important; }
    .product-list-filter .gm-moq-opt-1 .d-lg-none { display: inline !important; }
    .product-list-filter .gm-moq-opt-1 .d-lg-inline { display: none !important; }

    /* Grille : 4 cartes par ligne */
    #filtered-products.gm-listing-desktop { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
}

/* Le thème met une majuscule à chaque mot des libellés : on garde le texte tel qu'il est saisi */
.product-list-filter .filter-toggle-aside label,
.product-list-filter .filter-toggle-aside label span,
.product-list-filter .filter-toggle-aside .gm-subcat-list a,
.product-list-filter .filter-toggle-aside .gm-subcat-list span,
.gm-listing-sub, .gm-listing-title, .gm-listing-rfq span { text-transform: none !important; }

/* Puce « En stock » des cartes : seulement dans la grille desktop de la page produits */
.gm-card-stock { display: none !important; }
@media (min-width: 1200px) {
    .gm-listing-desktop .gm-card-stock { display: inline-flex !important; align-items: center; height: 22px; padding: 0 6px; border-radius: 4px; background: #ECFDF3; color: #15803D; font-size: 12px; font-weight: 500; white-space: nowrap; }
    .gm-listing-desktop .gm-card-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
    .product-list-filter .filter-toggle-aside .gm-moq-grid .gm-moq-chip.gm-moq-opt-all { display: none !important; }
}

.gm-listing-rfq .gm-listing-rfq-eyebrow { text-transform: uppercase !important; }

/* Coche des filtres : neutralise la coche générique du thème (style.css input[type=checkbox]:checked::after),
   qui agrandissait le trait à 18 px et ajoutait une image de coche (rendu en « J ») */
input[type="checkbox"].gm-custom-checkbox:checked::after {
    content: "";
    position: static;
    inset: auto;
    inline-size: 9px;
    block-size: 5px;
    width: 9px;
    height: 5px;
    background: none;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(-45deg) translate(0.5px, -1px);
    display: block;
}
input[type="checkbox"].gm-custom-checkbox:checked {
    background-color: #000080 !important;
    border-color: #000080 !important;
}
