
/* --- Conteneur des filtres --- */
.filters-container {
    max-width: 1160px;
    margin: 40px auto 20px;
    padding: 10px 40px;
    background-color: #f9f4f1;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 6rem;
    box-shadow: 5px 5px 20px 1px silver;
}

/* --- Grille de produits --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 70px 60px;
    max-width: 100vw;
    margin: 0 auto 60px;
    padding: 0 140px;
    min-height: 657px;

    /* ✅ Pour centrer les produits si 1 à 3 éléments */
    justify-content: center;
    align-items: start;
}

/* --- Carte produit --- */
.product-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: visible; /* ✅ empêche le texte d’être masqué */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Acumin Pro Bold';
    height: auto; /* ✅ évite de couper les textes */
    min-height: 657px; /* conserve ton équilibre visuel */
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
/*    box-shadow: 0 8px 20px rgb(249 244 235);*/
}

/* --- Image produit --- */
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 550px !important;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.product-image img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* --- Titre et sous-titre produit --- */
.product-title {
    padding: 20px 0px 10px;
    font-family: 'Acumin Pro Bold';
    font-size: 1.3rem;
    line-height: 1.4;
    color: #000;
    text-transform: uppercase;
    text-align: left;
}

.product-title .ss-titre-collection {
    display: block;
    margin-top: 4px;
    font-family: 'Acumin Pro Wide Light'; 
    font-size: 1.1rem;
    color: #555;
    text-transform: none;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}








/* Groupe filtre (label + select empilés + flèche) */
.filter-group {
  position: relative;
  display: inline-flex;     /* inline-flex pour rester sur une ligne tout en gardant flex-direction */
  flex-direction: column;    /* empile label et select */
  align-items: flex-start;   /* alignement à gauche */
  margin-bottom: 1rem;       /* un petit espacement sous chaque groupe si besoin */
}

.filter-label {
  margin-bottom: 0.5em;      /* espace entre le label et le select */
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.02em;
}

.filter-group select {
    appearance: none;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    min-width: 390px;
    margin-bottom: 0;
    padding-right: 1.5em;
    font-family: 'Acumin Pro Bold';
}

.filter-group::after {
  content: '▼';
  position: absolute;
  top: 70%;
  right: 0.75em;             /* ajustez si besoin */
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.7em;
  color: #333;
}

.filters-container select {
  appearance: none;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #fff;
  font-size: 1rem;
  cursor: pointer;
  min-width: 180px;
  /* suppression du margin-bottom trop grand */
  margin-bottom: 0;
}

/* Quand il n’y a qu’une seule .product-card dans la grille */
.products-grid > .product-card:only-child {
  /* Taille max */
  max-width: 352px;
  max-height: 510px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  height: auto;
}

.products-grid.produits-limites .product-card {
  max-height: 30rem;
}


/*******************************************************************/
/*********************  RESPONSIVE COLLECTION  *********************/
/*******************************************************************/


@media only screen and (max-width: 768px) {
  .products-grid {
      gap: 20px 0px !important;
      margin: 0 auto !important;
      padding: 10px !important;
  }
  .product-image img {
    max-width: 390px;
  }
  .products-grid {
    padding: 0 10px;
    gap: 20px;
  }



}


@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .filter-group select {
      min-width: 200px;
  }
}


@media only screen and (min-width: 1025px) and (max-width: 1200px) {
  .filter-group select {
      min-width: 210px;
  }
}


@media only screen and (min-width: 1201px) and (max-width: 1919px) {
  .filter-group select {
      min-width: 270px;
  }
  .products-grid {
    gap: 40px 40px;
  }
  .product-image {
      height: 450px !important;
  }
  .product-card {
      min-height: 555px;
  }
  .product-title {
      font-size: 1.19rem;
  }
  .product-title .ss-titre-collection {
      font-size: 1rem;
  }
}


@media only screen and (min-width: 1920px) {
  .filter-group select {
      min-width: 360px;
  }
}

/*******************************************************************/
/*********************  RESPONSIVE COLLECTION  *********************/
/*******************************************************************/



