/* --- Select2 et filtres --- */
.select2 { margin-right: 50px !important; }
.select2:last-child { margin-right: 0; }

.select2-selection__rendered { padding: 0 !important; }

#bb-filters {
    display: flex;
    position: relative !important;
    margin: 0 auto 150px auto;
    text-align: center;
}
#bb-reset-filters{
    max-width: 100px;
    height: 30px;
    line-height: 20px !important;
}
/* --- Container produit --- */
.bb-product-filter { overflow-x: hidden; }

/* --- Carte produit --- */
.bb-product-filter .product-card {
    box-shadow: 5px 12px 28px 0 rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 5px 12px 28px 0 rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 5px 12px 28px 0 rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    text-align: center;
    max-width: 250px;
    min-width: 250px;
    transition: transform 0.3s ease;
    position: relative;
}

.bb-product-filter .product-card:hover { transform: scale(1.03); }

/* Image produit */
.bb-product-filter .product-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
}

/* Pix border */
.bb-product-filter .pix-border { overflow: hidden; margin: 0 auto; width: 100%; }

/* Titre produit */
.bb-product-filter .product-card .product-title {
    color: #0A246A;
    font-size: 1.2em;
    padding: 15px 15px 0 15px;
}

.bb-product-filter .product-card .product-title:hover,
.product-single-pix:hover { text-decoration: none !important; }

/* Prix */
.bb-product-filter .price { font-weight: bold; margin: 5px 0 35px 0 !important; }
.price-on-request { font-size: 1.4em; }

.product-single-pix {
    border-radius: 10px;
}

.product-single-pix bdi,
.product-single-pix .woocommerce-Price-currencySymbol { font-weight: 700; }
.product-single-pix bdi { font-size: 1.8em; }
.product-single-pix .price { color: #0A246A !important; }

/* Bouton détails */
.bb-product-filter .product-card .btn-details {
    background-color: #FF6600;
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 50px;
    color: #fff;
    padding: 8px 15px;
    width: 80%;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.bb-product-filter .product-card .btn-details:hover { background-color: #E65C00; }

/* --- Responsive / Flex / Grid --- */
@supports (display: flex) {
    .pix-border { display: flex; }

    .bb-product-filter .product-grid {
        justify-content: center;
        grid-row-gap: 150px;
        grid-column-gap: 150px;
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        justify-items: center;
    }
    /* Tablette */
    @media (max-width: 2300px) {
        .bb-product-filter .product-grid {
            grid-template-columns: repeat(3, 1fr);
            grid-column-gap: 80px;
            grid-row-gap: 100px;
        }
    }

    /* Mobile large */
    @media (max-width: 1600px) {
        .bb-product-filter .product-grid {
            grid-template-columns: repeat(2, 1fr);
            grid-column-gap: 40px;
            grid-row-gap: 60px;
        }
    }

    /* Mobile petit */
    @media (max-width: 700px) {
          .select2{
            margin-right: 0!important;
        }
          #bb-filters{
            gap: 20px;
            flex-direction: column;
            align-items: center;
                margin: 0 auto 100px auto;
        }
        .bb-product-filter .product-grid {
            grid-template-columns: 1fr;
            grid-column-gap: 20px;
            grid-row-gap: 40px;
        }
        }
}
