/* Styles pour le système de filtres des catégories */

/* Supprimer le soulignement de TOUS les liens dans les cartes de produits */
.products-grid a,
.products-grid a:link,
.products-grid a:visited,
.products-grid a:hover,
.products-grid a:active,
.products-grid a:focus,
.products-grid .product-card a,
.products-grid .product-card a:link,
.products-grid .product-card a:visited,
.products-grid .product-card a:hover,
.products-grid .product-card a:active,
.products-grid .product-card a:focus,
.products-grid .product-card-large a,
.products-grid .product-card-large a:link,
.products-grid .product-card-large a:visited,
.products-grid .product-card-large a:hover,
.products-grid .product-card-large a:active,
.products-grid .product-card-large a:focus {
    text-decoration: none !important;
}

.category-page-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar des filtres */
.filters-sidebar {
    width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.filters-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 0;
}

.filters-close {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    position: absolute;
    top: 0;
    right: 0;
}

.filters-reset-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filters-reset {
    background: #1A1A2E; /* Bleu marine */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.filters-reset:hover {
    background: #16213E; /* Bleu marine plus foncé */
}

/* Sections de filtres */
.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.filter-checkbox:hover {
    background: transparent;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1A1A2E; /* Bleu marine */
}

.filter-checkbox span:first-of-type {
    flex: 1;
    font-size: 0.95rem;
    color: var(--dark);
}

.filter-count {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Filtre prix */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-inputs span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Section produits */
.products-section {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-count {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.products-count-text {
    white-space: nowrap;
}

.products-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.products-sort-controls,
.products-per-page-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label,
.per-page-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    white-space: nowrap;
}

.filters-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.filters-toggle:hover {
    background: var(--primary-dark);
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    background: transparent;
    cursor: pointer;
    color: var(--dark);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Message aucun produit */
.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Contrôles produits améliorés */
.products-controls-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    white-space: nowrap;
}

/* Container pour Tri: et Montrer: sur la même ligne (simple-filters.js et category-filters.js) */
.products-controls-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.per-page-select {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    color: var(--dark);
}

.per-page-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    white-space: nowrap;
}

.products-results-info {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

/* Pagination */
.products-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: transparent;
    color: var(--dark);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: transparent;
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--gray-600);
}

/* Cartes produits grandes pour pages catégories */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Forcer la transparence pour TOUS les product-card dans products-grid (pages catégories/recherche) */
/* Cette règle surcharge celle de components.css qui définit background-color: var(--white) */
/* Utiliser une spécificité maximale pour surcharger components.css */
.products-grid .product-card,
.products-grid .product-card-large,
.products-grid > .product-card,
.products-grid > .product-card-large {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Surcharger aussi le hover pour éviter tout effet visuel */
.products-grid .product-card:hover,
.products-grid .product-card-large:hover,
.products-grid > .product-card:hover,
.products-grid > .product-card-large:hover {
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.products-grid .product-card-large:hover {
    box-shadow: none;
    transform: none;
}

.products-grid .product-card-large .product-image {
    width: 100%;
    height: 350px;
    min-height: 350px;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Exclure les images dans les badges AVANT la règle générale */
.products-grid .product-card-large .product-image .product-badges img,
.products-grid .product-card-large .product-image .badge-preorder img {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    object-position: center !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.products-grid .product-card-large .product-image img,
.products-grid .product-card-large .product-image .product-card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.products-grid .product-card-large:hover .product-image img {
    transform: scale(1.05);
}

.products-grid .product-card-large .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
}

.products-grid .product-card-large .product-category {
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.products-grid .product-card-large .product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--dark);
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-grid .product-card-large .product-name,
.products-grid .product-card-large .product-name a,
.products-grid .product-card-large .product-name a:link,
.products-grid .product-card-large .product-name a:visited,
.products-grid .product-card-large a .product-name,
.products-grid .product-card-large a .product-name:link,
.products-grid .product-card-large a .product-name:visited {
    color: var(--dark);
    text-decoration: none !important;
    transition: color 0.2s;
}

.products-grid .product-card-large .product-name a:hover,
.products-grid .product-card-large a:hover .product-name {
    color: var(--primary-dark);
    text-decoration: none !important;
}

/* Supprimer le soulignement de tous les liens dans les cartes de produits */
.products-grid .product-card-large a,
.products-grid .product-card a {
    text-decoration: none !important;
}

.products-grid .product-card-large a:hover,
.products-grid .product-card a:hover {
    text-decoration: none !important;
}

.products-grid .product-card-large .product-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: visible;
}

.products-grid .product-card-large .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: none;
}

.products-grid .product-card-large .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e40af;
}

.products-grid .product-card-large .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.products-grid .product-card-large .btn-primary {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.products-grid .product-card-large .btn-primary:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.products-grid .product-card-large .product-link {
    display: none;
}

/* Responsive pour grandes cartes */
@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid .product-card-large .product-image {
        height: 280px;
        min-height: 280px;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .products-grid .product-card-large {
        min-height: 400px;
    }
    
    .products-grid .product-card-large .product-image {
        height: 220px;
        min-height: 220px;
        padding: 0;
    }
    
    .products-grid .product-card-large .product-info {
        padding: 0;
    }
    
    .products-grid .product-card-large .product-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .products-grid .product-card-large .btn {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .category-page-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .filters-sidebar.active {
        left: 0;
    }

    .filters-close {
        display: block;
    }

    .filters-toggle {
        display: block;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .products-count {
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .products-count-text {
        display: inline;
    }

    /* Sur mobile uniquement : bouton filtre en haut, puis Tri: et Montrer: sur la même ligne */
    .products-controls {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Bouton filtre en haut */
    .filters-toggle {
        order: 1;
        width: 100%;
        margin-bottom: 0;
    }

    /* Container pour Tri: et Montrer: sur la même ligne - MOBILE UNIQUEMENT */
    .products-controls-row,
    .products-controls-group {
        order: 2;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Tri: et Montrer: sur la même ligne - FORCER sur la même ligne */
    .products-sort-controls,
    .products-per-page-controls,
    .products-controls-group {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.2rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        vertical-align: middle;
    }

    .sort-label,
    .per-page-label,
    .control-label {
        white-space: nowrap !important;
        font-size: 0.85rem !important;
        color: var(--gray-600);
        display: inline !important;
        flex-shrink: 0 !important;
        margin-right: 0.2rem;
    }

    .per-page-text {
        white-space: nowrap !important;
        font-size: 0.85rem !important;
        color: var(--gray-600);
        display: inline !important;
        flex-shrink: 0 !important;
        margin-left: 0.2rem;
    }

    .sort-select,
    .per-page-select {
        min-width: 70px !important;
        max-width: 90px !important;
        width: auto !important;
        font-size: 0.8rem !important;
        padding: 0.35rem 0.4rem !important;
        white-space: nowrap !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        box-sizing: border-box !important;
        vertical-align: middle;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Filtres mobile - réinitialiser en haut au milieu, croix en haut à droite */
    .filters-header {
        padding-top: 3rem;
        padding-right: 3rem;
    }

    .filters-close {
        display: block !important;
        top: 0.5rem;
        right: 1rem;
        z-index: 1001;
    }

    .filters-reset-container {
        margin-top: 0;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .filters-sidebar {
        padding: 1rem;
    }

    .filter-checkboxes {
        max-height: 200px;
    }

    .price-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .price-inputs span {
        display: none;
    }

    .products-count {
        font-size: 0.85rem;
        width: 100%;
    }

    .products-count-text {
        display: inline;
    }

    .products-controls {
        flex-direction: column !important;
        gap: 0.5rem;
        width: 100%;
    }

    .filters-toggle {
        order: 1;
        width: 100%;
    }

    .products-controls-row,
    .products-controls-group {
        order: 2;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .products-sort-controls,
    .products-per-page-controls,
    .products-controls-group {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.15rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        vertical-align: middle;
    }

    .sort-label,
    .per-page-label,
    .control-label {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        display: inline !important;
        flex-shrink: 0 !important;
        margin-right: 0.15rem;
    }

    .per-page-text {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        display: inline !important;
        flex-shrink: 0 !important;
        margin-left: 0.15rem;
    }

    .sort-select,
    .per-page-select {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.35rem !important;
        min-width: 60px !important;
        max-width: 75px !important;
        width: auto !important;
        white-space: nowrap !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        box-sizing: border-box !important;
        vertical-align: middle;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* Grille produits pour pages catégories */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cartes produits grandes pour pages catégories */
/* Duplication pour s'assurer que la règle est appliquée - déjà défini plus haut mais on force ici aussi */
.products-grid .product-card-large {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.products-grid .product-card-large:hover {
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.products-grid .product-card-large .product-image {
    width: 100%;
    height: 350px;
    min-height: 350px;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Exclure les images dans les badges AVANT la règle générale */
.products-grid .product-card-large .product-image .product-badges img,
.products-grid .product-card-large .product-image .badge-preorder img {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    object-position: center !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.products-grid .product-card-large .product-image img,
.products-grid .product-card-large .product-image .product-card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.products-grid .product-card-large:hover .product-image img {
    transform: scale(1.05);
}

.products-grid .product-card-large .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
}

.products-grid .product-card-large .product-category {
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.products-grid .product-card-large .product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--dark);
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-grid .product-card-large .product-name,
.products-grid .product-card-large .product-name a,
.products-grid .product-card-large .product-name a:link,
.products-grid .product-card-large .product-name a:visited,
.products-grid .product-card-large a .product-name,
.products-grid .product-card-large a .product-name:link,
.products-grid .product-card-large a .product-name:visited {
    color: var(--dark);
    text-decoration: none !important;
    transition: color 0.2s;
}

.products-grid .product-card-large .product-name a:hover,
.products-grid .product-card-large a:hover .product-name {
    color: var(--primary-dark);
    text-decoration: none !important;
}

/* Supprimer le soulignement de tous les liens dans les cartes de produits */
.products-grid .product-card-large a,
.products-grid .product-card a {
    text-decoration: none !important;
}

.products-grid .product-card-large a:hover,
.products-grid .product-card a:hover {
    text-decoration: none !important;
}

.products-grid .product-card-large .product-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: visible;
}

.products-grid .product-card-large .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: none;
}

.products-grid .product-card-large .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e40af;
}

.products-grid .product-card-large .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.products-grid .product-card-large .btn-primary {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.products-grid .product-card-large .btn-primary:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.products-grid .product-card-large .product-link {
    display: none;
}

/* Responsive pour grandes cartes */
@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid .product-card-large .product-image {
        height: 280px;
        min-height: 280px;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .products-grid .product-card-large {
        min-height: 400px;
    }
    
    .products-grid .product-card-large .product-image {
        height: 220px;
        min-height: 220px;
        padding: 0;
    }
    
    .products-grid .product-card-large .product-info {
        padding: 0;
    }
    
    .products-grid .product-card-large .product-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .products-grid .product-card-large .btn {
        width: 100%;
    }
}

/* Menu déroulant pour les filtres */
.filter-header-collapsible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.filter-header-collapsible .filter-title {
    margin-bottom: 0;
}

.filter-toggle {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: transform 0.2s ease;
    line-height: 1;
}

.filter-toggle:hover {
    opacity: 0.7;
}

.filter-content-collapsible {
    margin-top: 1rem;
}

/* Barre de recherche pour les licences */
.filter-search {
    margin-bottom: 1rem;
}

.filter-search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

