/**
 * Trafic Product Filters - Styles v2.1.1
 * Design responsive: Desktop > Tablette > Mobile (Bottom Sheet)
 * Préfixe .tpf- pour éviter conflits
 */

:root {
    --tpf-jaune: #F7CA39;
    --tpf-bleu: #2B4678;
    --tpf-noir: #242526;
    --tpf-gris: #515151;
    --tpf-blanc: #F8F8F8;
}

/* ==========================================================================
   WRAPPER - Reset pour éviter héritages indésirables
   ========================================================================== */

.tpf-wrapper {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 100 !important;
}

.tpf-wrapper *,
.tpf-wrapper *::before,
.tpf-wrapper *::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   BARRE JAUNE PRINCIPALE
   ========================================================================== */

.tpf-wrapper .tpf-bar {
    background: var(--tpf-jaune) !important;
    border-radius: 30px !important;
    padding: 0 10px 0 20px !important;
    height: 50px !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 100 !important;
}

.tpf-wrapper .tpf-bar-inner {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 100% !important;
    overflow: visible !important;
    position: relative !important;
}

/* Label "Filtrer par" */
.tpf-wrapper .tpf-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    color: var(--tpf-gris) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tpf-wrapper .tpf-filter-icon {
    color: var(--tpf-gris) !important;
    flex-shrink: 0 !important;
    width: 15px !important;
    height: 15px !important;
}

/* ==========================================================================
   DROPDOWNS DESKTOP
   ========================================================================== */

.tpf-wrapper .tpf-dropdowns {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex: 1 !important;
    padding: 0 16px !important;
    overflow: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    z-index: 100 !important;
}

.tpf-wrapper .tpf-dropdowns::-webkit-scrollbar {
    display: none !important;
}

.tpf-wrapper .tpf-dropdown {
    position: relative !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    z-index: 101 !important;
}

.tpf-wrapper .tpf-dropdown.is-open {
    z-index: 99999 !important;
}

.tpf-wrapper .tpf-dropdown-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px 0 !important;
    font-family: inherit !important;
    color: var(--tpf-noir) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: opacity 0.15s ease !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

.tpf-wrapper .tpf-dropdown-btn:hover {
    opacity: 0.7 !important;
    background: transparent !important;
}

.tpf-wrapper .tpf-dropdown-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.tpf-wrapper .tpf-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 6px !important;
    background: var(--tpf-bleu) !important;
    color: white !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: none !important;
}

.tpf-wrapper .tpf-icon-plus {
    color: var(--tpf-bleu) !important;
    transition: transform 0.25s ease !important;
    width: 14px !important;
    height: 14px !important;
}

.tpf-wrapper .tpf-dropdown.is-open .tpf-icon-plus {
    transform: rotate(45deg) !important;
}

/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */

.tpf-wrapper .tpf-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 15px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    min-width: 280px !important;
    max-width: 350px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25) !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #e0e0e0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
}

.tpf-wrapper .tpf-dropdown.is-open .tpf-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Flèche */
.tpf-wrapper .tpf-dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    background: white !important;
    border-radius: 3px !important;
    transform: translateX(-50%) rotate(45deg) !important;
    box-shadow: -3px -3px 8px rgba(0,0,0,0.05) !important;
}

.tpf-wrapper .tpf-menu-header {
    padding: 16px 18px 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
}

.tpf-wrapper .tpf-menu-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--tpf-noir) !important;
}

.tpf-wrapper .tpf-menu-clear {
    font-size: 13px !important;
    color: var(--tpf-bleu) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: background 0.15s ease !important;
}

.tpf-wrapper .tpf-menu-clear:hover {
    background: rgba(43, 70, 120, 0.08) !important;
}

.tpf-wrapper .tpf-menu-scroll {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 10px !important;
}

.tpf-wrapper .tpf-menu-scroll::-webkit-scrollbar {
    width: 6px !important;
}

.tpf-wrapper .tpf-menu-scroll::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
    border-radius: 3px !important;
}

.tpf-wrapper .tpf-menu-scroll::-webkit-scrollbar-thumb {
    background: #d0d0d0 !important;
    border-radius: 3px !important;
}

/* ==========================================================================
   CHECKBOX OPTIONS
   ========================================================================== */

.tpf-wrapper .tpf-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    margin-bottom: 2px !important;
    background: transparent !important;
    border: none !important;
}

.tpf-wrapper .tpf-option:hover {
    background: #f8f8f8 !important;
}

.tpf-wrapper .tpf-option:active {
    background: #f0f0f0 !important;
}

.tpf-wrapper .tpf-option input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tpf-wrapper .tpf-check {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    background: white !important;
}

.tpf-wrapper .tpf-option:hover .tpf-check {
    border-color: #b0b0b0 !important;
}

.tpf-wrapper .tpf-option input[type="checkbox"]:checked + .tpf-check {
    background: var(--tpf-bleu) !important;
    border-color: var(--tpf-bleu) !important;
}

.tpf-wrapper .tpf-check svg {
    width: 14px !important;
    height: 14px !important;
    stroke: white !important;
    stroke-width: 3 !important;
    fill: none !important;
    opacity: 0 !important;
    transform: scale(0.5) !important;
    transition: all 0.15s ease !important;
}

.tpf-wrapper .tpf-option input[type="checkbox"]:checked + .tpf-check svg {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.tpf-wrapper .tpf-option-label {
    font-size: 14px !important;
    color: var(--tpf-noir) !important;
    flex: 1 !important;
    font-weight: 400 !important;
}

.tpf-wrapper .tpf-option-count {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   BOUTON RECHERCHE
   ========================================================================== */

.tpf-wrapper .tpf-search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    background: var(--tpf-bleu) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    color: white !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tpf-wrapper .tpf-search-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 4px 15px rgba(43, 70, 120, 0.35) !important;
}

.tpf-wrapper .tpf-search-btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* ==========================================================================
   LIGNE RÉSULTATS
   ========================================================================== */

.tpf-wrapper .tpf-results {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 0 !important;
    gap: 20px !important;
    background: transparent !important;
    border: none !important;
}

.tpf-wrapper .tpf-results-left,
.tpf-wrapper .tpf-results-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.tpf-wrapper .tpf-count {
    color: var(--tpf-bleu) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   TOGGLE NOUVEAUTÉ
   ========================================================================== */

.tpf-wrapper .tpf-nouveaute {
    cursor: pointer !important;
    display: inline-flex !important;
}

.tpf-wrapper .tpf-nouveaute input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.tpf-wrapper .tpf-nouveaute-inner {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 14px 4px 4px !important;
    border: 1.5px solid var(--tpf-jaune) !important;
    border-radius: 30px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.tpf-wrapper .tpf-nouveaute:hover .tpf-nouveaute-inner {
    background: rgba(247, 202, 57, 0.15) !important;
}

.tpf-wrapper .tpf-nouveaute input[type="checkbox"]:checked + .tpf-nouveaute-inner {
    background: var(--tpf-jaune) !important;
}

.tpf-wrapper .tpf-nouveaute-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    background: var(--tpf-jaune) !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    transition: background 0.2s ease !important;
}

.tpf-wrapper .tpf-nouveaute input[type="checkbox"]:checked + .tpf-nouveaute-inner .tpf-nouveaute-icon {
    background: white !important;
}

.tpf-wrapper .tpf-nouveaute-inner > span:last-child {
    color: var(--tpf-noir) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   TRI
   ========================================================================== */

.tpf-wrapper .tpf-sort {
    position: relative !important;
}

.tpf-wrapper .tpf-sort-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--tpf-bleu) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    transition: opacity 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tpf-wrapper .tpf-sort-btn:hover {
    opacity: 0.7 !important;
}

.tpf-wrapper .tpf-sort-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    min-width: 180px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.2s ease !important;
    border: none !important;
    padding: 0 !important;
}

.tpf-wrapper .tpf-sort.is-open .tpf-sort-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.tpf-wrapper .tpf-sort-menu button {
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: var(--tpf-noir) !important;
    font-family: inherit !important;
    transition: background 0.15s ease !important;
    border-radius: 0 !important;
}

.tpf-wrapper .tpf-sort-menu button:hover {
    background: #f5f5f5 !important;
}

.tpf-wrapper .tpf-sort-menu button.active {
    color: var(--tpf-bleu) !important;
    font-weight: 600 !important;
    background: #f0f4ff !important;
}

/* ==========================================================================
   TAGS ACTIFS
   ========================================================================== */

.tpf-wrapper .tpf-active-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 0 !important;
}

.tpf-wrapper .tpf-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px 8px 14px !important;
    background: var(--tpf-bleu) !important;
    color: white !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    border: none !important;
}

.tpf-wrapper .tpf-tag:hover {
    background: #1e3a5f !important;
}

.tpf-wrapper .tpf-tag button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: background 0.15s ease !important;
    padding: 0 !important;
}

.tpf-wrapper .tpf-tag button:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.tpf-wrapper .tpf-clear-all {
    padding: 8px 16px !important;
    background: transparent !important;
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--tpf-gris) !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.15s ease !important;
}

.tpf-wrapper .tpf-clear-all:hover {
    border-color: var(--tpf-noir) !important;
    color: var(--tpf-noir) !important;
    background: #f8f8f8 !important;
}

/* ==========================================================================
   SÉPARATEUR
   ========================================================================== */

.tpf-wrapper .tpf-separator {
    height: 1px !important;
    background: var(--tpf-bleu) !important;
    opacity: 0.15 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */

.tpf-wrapper .tpf-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.15) !important;
    z-index: 99 !important;
}

.tpf-wrapper .tpf-overlay.is-visible {
    display: block !important;
}

/* ==========================================================================
   MOBILE - BOUTON TRIGGER
   ========================================================================== */

.tpf-wrapper .tpf-mobile-trigger {
    display: none !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    color: var(--tpf-noir) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
}

.tpf-wrapper .tpf-mobile-trigger svg {
    color: var(--tpf-gris) !important;
}

/* ==========================================================================
   BOTTOM SHEET MOBILE
   ========================================================================== */

.tpf-wrapper .tpf-bottom-sheet {
    display: none !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 999999 !important;
    max-height: 85vh !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    flex-direction: column !important;
}

.tpf-wrapper .tpf-bottom-sheet.is-open {
    transform: translateY(0) !important;
}

.tpf-wrapper .tpf-sheet-handle {
    display: flex !important;
    justify-content: center !important;
    padding: 12px !important;
}

.tpf-wrapper .tpf-sheet-handle span {
    width: 40px !important;
    height: 4px !important;
    background: #d0d0d0 !important;
    border-radius: 2px !important;
}

.tpf-wrapper .tpf-sheet-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px 16px !important;
    border-bottom: 1px solid #eee !important;
}

.tpf-wrapper .tpf-sheet-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--tpf-noir) !important;
}

.tpf-wrapper .tpf-sheet-close {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: var(--tpf-gris) !important;
    transition: background 0.15s ease !important;
}

.tpf-wrapper .tpf-sheet-close:hover {
    background: #e8e8e8 !important;
}

.tpf-wrapper .tpf-sheet-content {
    padding: 16px 20px !important;
    max-height: calc(85vh - 180px) !important;
    overflow-y: auto !important;
}

/* ==========================================================================
   ACCORDEONS MOBILE
   ========================================================================== */

.tpf-wrapper .tpf-accordion-item {
    border-bottom: 1px solid #eee !important;
}

.tpf-wrapper .tpf-accordion-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 16px 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.tpf-wrapper .tpf-accordion-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--tpf-noir) !important;
}

.tpf-wrapper .tpf-accordion-count {
    display: none !important;
    margin-left: 8px !important;
    padding: 2px 8px !important;
    background: var(--tpf-bleu) !important;
    color: white !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.tpf-wrapper .tpf-accordion-item.has-active .tpf-accordion-count {
    display: inline-block !important;
}

.tpf-wrapper .tpf-accordion-arrow {
    color: var(--tpf-gris) !important;
    transition: transform 0.2s ease !important;
}

.tpf-wrapper .tpf-accordion-item.is-open .tpf-accordion-arrow {
    transform: rotate(180deg) !important;
}

.tpf-wrapper .tpf-accordion-content {
    display: none !important;
    padding: 0 0 16px 0 !important;
}

.tpf-wrapper .tpf-accordion-item.is-open .tpf-accordion-content {
    display: block !important;
}

/* ==========================================================================
   FOOTER BOTTOM SHEET
   ========================================================================== */

.tpf-wrapper .tpf-sheet-footer {
    display: flex !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    border-top: 1px solid #eee !important;
    background: white !important;
}

.tpf-wrapper .tpf-sheet-btn {
    flex: 1 !important;
    padding: 14px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tpf-wrapper .tpf-sheet-btn-reset {
    background: white !important;
    border: 1px solid #d0d0d0 !important;
    color: var(--tpf-gris) !important;
}

.tpf-wrapper .tpf-sheet-btn-reset:hover {
    border-color: var(--tpf-noir) !important;
    color: var(--tpf-noir) !important;
}

.tpf-wrapper .tpf-sheet-btn-apply {
    background: var(--tpf-bleu) !important;
    border: none !important;
    color: white !important;
}

.tpf-wrapper .tpf-sheet-btn-apply:hover {
    opacity: 0.9 !important;
}

/* ==========================================================================
   RESPONSIVE - TABLETTE
   ========================================================================== */

@media (max-width: 1024px) {
    .tpf-wrapper .tpf-bar {
        height: auto !important;
        padding: 12px 12px 12px 16px !important;
    }

    .tpf-wrapper .tpf-bar-inner {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .tpf-wrapper .tpf-dropdowns {
        width: 100% !important;
        order: 3 !important;
        padding: 8px 0 0 0 !important;
        gap: 16px !important;
    }

    .tpf-wrapper .tpf-search-btn {
        margin-left: auto !important;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    /* Cacher les dropdowns desktop */
    .tpf-wrapper .tpf-dropdowns,
    .tpf-wrapper .tpf-label {
        display: none !important;
    }

    /* Afficher le bouton mobile */
    .tpf-wrapper .tpf-mobile-trigger {
        display: flex !important;
    }

    /* Bottom sheet visible sur mobile */
    .tpf-wrapper .tpf-bottom-sheet {
        display: flex !important;
    }

    /* Barre simplifiée */
    .tpf-wrapper .tpf-bar {
        height: 50px !important;
        padding: 0 10px 0 16px !important;
    }

    .tpf-wrapper .tpf-bar-inner {
        flex-wrap: nowrap !important;
    }

    /* Résultats */
    .tpf-wrapper .tpf-results {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .tpf-wrapper .tpf-results-left {
        width: 100% !important;
    }

    .tpf-wrapper .tpf-results-right {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* Tags scroll horizontal */
    .tpf-wrapper .tpf-active-tags {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .tpf-wrapper .tpf-active-tags::-webkit-scrollbar {
        display: none !important;
    }

    .tpf-wrapper .tpf-tag {
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.tpf-wrapper.is-loading {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

.tpf-wrapper.is-loading::after {
    content: '' !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin: -20px 0 0 -20px !important;
    border: 3px solid var(--tpf-jaune) !important;
    border-top-color: var(--tpf-bleu) !important;
    border-radius: 50% !important;
    animation: tpf-spin 0.8s linear infinite !important;
    z-index: 9999 !important;
}

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

/* ==========================================================================
   CARTES PRODUITS AJAX
   ========================================================================== */

.tpf-product-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.2s ease !important;
}

.tpf-product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px) !important;
}

.tpf-product-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
}

.tpf-product-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: var(--tpf-jaune) !important;
    color: var(--tpf-noir) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    z-index: 2 !important;
}

.tpf-product-image {
    aspect-ratio: 1 !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

.tpf-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.tpf-product-card:hover .tpf-product-image img {
    transform: scale(1.05) !important;
}

.tpf-product-info {
    padding: 16px !important;
}

.tpf-product-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--tpf-noir) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.tpf-product-sku {
    display: block !important;
    font-size: 12px !important;
    color: #888 !important;
    margin-bottom: 8px !important;
}

.tpf-product-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tpf-bleu) !important;
}

.tpf-product-price del {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #999 !important;
    margin-right: 6px !important;
}

.tpf-product-price ins {
    text-decoration: none !important;
    color: #e74c3c !important;
}

.tpf-no-results {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 60px 20px !important;
    color: #666 !important;
}

.tpf-no-results p {
    font-size: 16px !important;
    margin: 0 !important;
}

/* Grid des produits AJAX */
.jet-listing-grid__items.tpf-ajax-grid,
.tpf-ajax-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}
