.hm-carrousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.hm-carrousel {
    overflow: hidden;
    flex-grow: 1;
}

.hm-carrousel-track {
    display: flex;
    transition: transform 0.25s ease-in-out; /* Vitesse de défilement plus rapide */
    padding-bottom: 10px;
}

.hm-carrousel-item {
    flex: 0 0 calc(25% - 20px); /* 4 produits par ligne avec un peu d'espace */
    margin: 0 10px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse l'image en haut et le contenu (titre/bouton) en bas */
    min-width: calc(25% - 20px); /* Assure que les éléments conservent leur largeur */
}

.hm-carrousel-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px; /* Espace sous l'image */
}

.hm-carrousel-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease-in-out;
}

.hm-carrousel-image-link:hover .hm-carrousel-overlay {
    opacity: 0.3;
}

.hm-carrousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hm-carrousel-content-bottom {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement le titre et le bouton */
    margin-top: auto; /* Pousse ce bloc entier vers le bas de l'item */
}

h3.hm-carrousel-product-title {
    font-size: 1.1em;
    line-height: 1.3;
    font-weight: bold; /* Nom du produit en gras */
    color: #00ADB5; /* Couleur du texte du produit */
font-weight:900    
text-align: center; /* Centré */
    margin: 0 0 10px 0; /* Marge au-dessus et en dessous du titre */
}

h3.hm-carrousel-product-title a {
    text-decoration: none;
    color: #00ADB5!important;
 /* S'assure que le lien reste de la bonne couleur */
}

h3.hm-carrousel-product-title a:hover {
    color: #008f96; /* Légère variation de couleur au survol pour le lien du titre */
}

.hm-carrousel-button {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.hm-carrousel-button:hover {
    filter: brightness(0.9);
}

.hm-carrousel-nav {
    background-color: #00ADB5; /* Nouvelle couleur pour les boutons de navigation */
    color: #fff; /* La flèche reste blanche */
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hm-carrousel-nav.prev {
    left: 5px;
}

.hm-carrousel-nav.next {
    right: 5px;
}

.hm-carrousel-nav:hover {
    background-color: #008f96; /* Couleur au survol pour les boutons de navigation */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hm-carrousel-item {
        flex: 0 0 calc(33.33% - 20px); /* 3 produits */
        min-width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .hm-carrousel-item {
        flex: 0 0 calc(50% - 20px); /* 2 produits */
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .hm-carrousel-item {
        flex: 0 0 calc(100% - 20px); /* 1 produit */
        min-width: calc(100% - 20px);
    }
    .hm-carrousel-nav {
        font-size: 18px;
        width: 30px;
        height: 30px;
        padding: 5px 10px;
    }
}