/* CSS pour page-boutique-v2.php */

.container {
  width: 100vw;
}

.boutique-produits-v2 {
  width: 70vw;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.produits-list-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-content: center;
}

.boutique-produit-v2 {
  display: flex;
  flex-direction: column;
}

.boutique-produit-v2 .image-container {
  position: relative;
  display: block;
}

.boutique-produit-v2 .image-container::after {
  content: "Voir le produit";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.boutique-produit-v2 .image-container:hover::after {
  opacity: 1;
  transform: scale(1.04);
}

.boutique-produit-v2 img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.boutique-produit-v2 .image-container:hover img {
  filter: blur(2px);
  transform: scale(1.04);
}

.boutique-produit-v2 h2 a {
  color: inherit;
  text-decoration: none;
}

.boutique-produit-v2 h2 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.4rem 0;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.boutique-produit-v2 h2 a {
  color: inherit;
  text-decoration: none;
}

.boutique-produit-v2 .prix {
  font-size: 1rem;
  color: #666;
  text-align: left;
  margin: 0;
}

.boutique-produit-v2 .prix .price-amount {
  color: #4072d8;
  font-weight: bold;
}

/* Responsive */
/* Extra Large screens (1400px+) */
@media (min-width: 1400px) {
  .boutique-produits-v2 {
    width: 60vw;
    max-width: 1200px;
  }

  .produits-list-v2 {
    gap: 2rem;
  }
}

/* Large screens (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .boutique-produits-v2 {
    width: 65vw;
  }
}

/* Medium-Large screens (901px - 1199px) */
@media (max-width: 1199px) and (min-width: 901px) {
  .boutique-produits-v2 {
    width: 75vw;
  }

  .produits-list-v2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
  }

  .boutique-produit-v2 h2 {
    font-size: 1rem;
  }

  .boutique-produit-v2 .prix {
    font-size: 0.95rem;
  }
}

/* Medium screens (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .boutique-produits-v2 {
    width: 85vw;
    padding: 1.8rem 1rem;
  }

  .produits-list-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .boutique-produit-v2 h2 {
    font-size: 1.05rem;
    margin: 1rem 0 0.5rem 0;
  }
}

/* Small-Medium screens (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .boutique-produits-v2 {
    width: 90vw;
    padding: 1.5rem 0.8rem;
  }

  .produits-list-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .boutique-produit-v2 h2 {
    font-size: 1rem;
    margin: 0.8rem 0 0.4rem 0;
  }

  .boutique-produit-v2 .prix {
    font-size: 0.9rem;
  }

  .boutique-produit-v2 a::after {
    font-size: 0.9rem;
  }
}

/* Small screens (320px - 480px) */
@media (max-width: 480px) {
  .boutique-produits-v2 {
    width: 95vw;
    padding: 1rem 0.5rem;
  }

  .produits-list-v2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .boutique-produit-v2 {
    max-width: 300px;
    margin: 0 auto;
  }

  .boutique-produit-v2 h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    text-align: center;
  }

  .boutique-produit-v2 .prix {
    font-size: 1rem;
    text-align: center;
  }

  .boutique-produit-v2 a::after {
    font-size: 1rem;
  }
}

/* Very small screens (less than 320px) */
@media (max-width: 319px) {
  .boutique-produits-v2 {
    width: 98vw;
    padding: 0.8rem 0.3rem;
  }

  .produits-list-v2 {
    gap: 1rem;
  }

  .boutique-produit-v2 h2 {
    font-size: 1rem;
  }

  .boutique-produit-v2 .prix {
    font-size: 0.9rem;
  }
}
