/* Style moderne pour les cartes produits */
.product-card {
  border-radius: 30px;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 350px;
  width: 350px;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Couleurs par défaut */
.product-card-default,
.product-card {
  background: #8B7355;
  /* Marron par défaut */
}

/* Variantes de couleurs pour les cartes */
.product-card-blue {
  background: #214661;
}

.product-card-red {
  background: #CA4646;
}

.product-card-green {
  background: linear-gradient(135deg, #27AE60, #229954);
}

.product-card-yellow {
  background: linear-gradient(135deg, #F1C40F, #D4AC0D);
}

.product-card-orange {
  background: #805021;
}

.product-card-purple {
  background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.product-card-pink {
  background: linear-gradient(135deg, #E91E63, #C2185B);
}

.product-card-grey {
  background: linear-gradient(135deg, #7F8C8D, #6C7B7D);
}

.product-card-black {
  background: linear-gradient(135deg, #34495E, #2C3E50);
}

.product-card-white {
  background: linear-gradient(135deg, #ECF0F1, #BDC3C7);
  color: #2C3E50;
  /* Texte sombre pour le contraste */
}

.product-card-white .product-name a,
.product-card-white .current-price {
  color: #2C3E50;
}

.product-card-white .feature-spec {
  color: #2C3E50;
  background: rgba(44, 62, 80, 0.1);
}

/* Header avec le titre */
.product-header {
  padding: 20px 20px 10px 20px;
  text-align: left;
}

.product-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.product-name a {
  color: white;
  text-decoration: none;
}

.product-name a:hover {
  text-decoration: underline;
}

/* Container de l'image */
.product-image-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px;
  border-radius: 15px;
  overflow: hidden;
}

.product-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.product-image {
  width: 100%;
  max-height: 237px;
  object-fit: contain;
  
  display: block;
  aspect-ratio: 16 / 9;
}

/* Informations du produit */
.product-info {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Spécifications/Caractéristiques */
.product-features-specs {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.feature-spec {
  color: white;
  font-weight: 600;
  font-size: 14px;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Prix */
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.regular-price {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
}

/* Flags/Badges */
.product-flags {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-flag {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-flag.new {
  background: #28a745;
}

.product-flag.discount {
  background: #dc3545;
}

.product-flag.out-of-stock {
  background: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .product-card {
    border-radius: 15px;
  }

  .product-header {
    padding: 15px 15px 8px 15px;
  }

  .product-image-container {
    margin: 10px;
    border-radius: 10px;
  }

  .product-info {
    padding: 8px 15px 15px 15px;
  }

  .product-name {
    font-size: 16px;
  }

  .product-features-specs {
    padding: 10px 12px;
    gap: 6px;
  }

  .feature-spec {
    font-size: 11px;
  }
}



.products {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

/* Pattern : Ligne 1 (3 cartes), Ligne 2 (2 cartes), Ligne 3 (3 cartes), etc. */

/* Ligne 1 : 3 cartes (30% chacune) */
.products .product-card:nth-child(5n+1) {
  grid-column: 1 / 3;
  /* Occupe 2 colonnes sur 6 */
  width: 100%;
}

.products .product-card:nth-child(5n+2) {
  grid-column: 3 / 5;
  /* Occupe 2 colonnes sur 6 */
  width: 100%;
}

.products .product-card:nth-child(5n+3) {
  grid-column: 5 / 7;
  /* Occupe 2 colonnes sur 6 */
  width: 100%;
}

/* Ligne 2 : 2 cartes (40% chacune) */
.products .product-card:nth-child(5n+4) {
  grid-column: 1 / 4;
  /* Occupe 3 colonnes sur 6 */
  width: 100%;
}

.products .product-card:nth-child(5n+5) {
  grid-column: 4 / 7;
  /* Occupe 3 colonnes sur 6 */
  width: 100%;
}

.featured-products {
  padding-inline: 60px !important;
}