.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 0px;
}

.grid-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  /* Largeur par défaut pour desktop - 4 produits par ligne */
  flex: 0 0 calc(25% - 16px);
  max-width: calc(25% - 16px);
  box-sizing: border-box;
}

.grid-item:hover {
  transform: translateY(-5px);
}

/* Tablet - 3 produits par ligne */
@media screen and (max-width: 1024px) {
  .grid-item {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

/* Mobile - 2 produits par ligne */
@media screen and (max-width: 768px) {
  .grid-item {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

/* Très petits mobiles - garder 2 produits par ligne mais ajuster les espacements */
@media screen and (max-width: 480px) {
  .grid-item {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    gap: 8px;
    padding: 12px;
  }
  
  .remise-rectangle {
    font-size: 10px;
  }
  
  .rectangular-button, 
  .rectangular-epuise-button {
    font-size: 11px;
    padding: 8px 0px;
    border-radius: 12px;
    font-weight: bold;
  }
  
  .rectangular-button:hover {
    background-color: #f5f5f5;
    color: #000;
  }
  
  .text-barred {
    font-size: 0.9rem;
  }
  
  .price {
    font-size: 0.9rem;
  }
  
  .brand-name {
    font-size: 10px;
  }
  
  .designation {
    font-size: 12px;
    line-height: 1.2;
  }
  
  .tri-icons-container .label {
    font-size: 12px;
  }
  
  .tri-icons-container .icon {
    font-size: 1.2rem;
  }
  
  .icon-home {
    font-size: 1rem;
  }
  
  .gamme-actuelle {
    font-size: 0.8rem;
  }
}

/* Le reste de votre CSS reste inchangé */
.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

.image-survol {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.img-list {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-survol:hover {
  transform: scale(1.05);
}

.remise-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.remise-rectangle {
  background-color: #ff1493;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 12px;
  font-weight: bold;
}

.brand-name {
  font-style: italic;
  font-size: 14px;
  color: #666;
}

.designation {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

.vert {
  color: #07ad07;
}

.text-barred {
  position: relative;
  color: rgb(161, 160, 160);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgb(240, 7, 7);
  font-size: 1.1rem;
  font-weight: bold;
  margin-left: 8px;
}

.truncate-multiline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rectangular-button, 
.rectangular-epuise-button {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: none;
  transition: 0.3s;
}

.rectangular-button {
  background-color: #ffffff;
  border: 1px solid #edade0;
  color: #333;
}

.rectangular-button:hover {
  background-color: #f0efef;
  color: #000;
}

.rectangular-epuise-button {
  background-color: #f0f0f0; /* gris clair */
    color: #999;               /* texte gris */
  cursor: not-allowed;
}

.price {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
}

.tri-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  width: fit-content;
  margin-left: auto;
}

.tri-icons-container .icon {
  font-size: 1.4rem;
  color: #007ad9;
  transition: transform 0.2s;
}

.tri-icons-container .label {
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 8px;
  color: #333;
}

.breadcrumb-discret {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  padding-left: 8px;
}

.lien-retour {
  color: #ff7aed;
  text-decoration: none;
  transition: color 0.2s;
}

.lien-retour:hover {
  text-decoration: underline;
  color: #005b9f;
}

.separateur {
  margin: 0 5px;
  color: #999;
}

.gamme-actuelle {
  font-size: 1rem;
  font-weight: bold;
  color: #000000;
}

.icon-home {
  font-size: 1.3rem;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  flex-wrap: wrap;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f7c8da, #f852a5);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.scroll-to-top:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #f5b7ce, #f852a5);
}

.scroll-to-top svg {
  width: 28px;
  height: 28px;
  fill: white;
}


#infiniteScrollContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}






/* Bouton Afficher plus */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #ff1493, #ff1493);
    color: #ffffff;
    border: none;
    padding: 14px 44px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(244, 138, 191, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ➜ Flèche vers le bas */
.load-more-btn::after {
    content: "⌄";
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    margin-top: -14px;
}

/* Hover */
.load-more-btn:hover {
    background: linear-gradient(135deg, #f5a8c8, #f06aa9);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(240, 106, 169, 0.4);
}

/* Loading / disabled */
.load-more-btn.loading {
    opacity: 0.75;
    cursor: wait;
}


/* Supprimer l’effet rectangle moche au clic */
.load-more-btn:focus,
.load-more-btn:active {
    outline: none;          /* supprime l’outline du navigateur */
    box-shadow: 0 6px 18px rgba(244, 138, 191, 0.35); /* même ombre que normal */
}

/* Effet pression au clic */
.load-more-btn:active {
    transform: translateY(1px) scale(0.98); /* effet "pression" */
}

/* Pour accessibilité clavier (focus visible uniquement au clavier) */
.load-more-btn:focus-visible {
    outline: 2px solid #f48abf;
    outline-offset: 4px;
}


.seo-pagination {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
