/* =========================================================
   GRILLE DE COULEURS CUSTOM - Style "Configlicol"
   ========================================================= */

.ee-color-grid-wrapper {
  margin: 24px 0;
}

/* --- Filtres par ton (pills cliquables) --- */
.ee-tone-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ee-tone-filter-btn {
  padding: 6px 16px;
  border: 1px solid #d8d3c8;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ee-tone-filter-btn:hover {
  border-color: #8a6d3b;
  color: #8a6d3b;
}

.ee-tone-filter-btn.active {
  background: #8a6d3b;
  border-color: #8a6d3b;
  color: #fff;
}

/* --- Groupes de tons --- */
.ee-tone-group {
  margin-bottom: 24px;
}

.ee-tone-group.ee-hidden {
  display: none;
}

.ee-tone-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e0d5;
}

/* --- Grille de swatches ronds --- */
.ee-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 14px 10px;
}

.tressage-swatch {
  position: relative;
  cursor: pointer;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: visible;
  transition: transform 0.15s ease;
}

.tressage-swatch .ee-swatch-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #e0dcd0;
  transition: box-shadow 0.2s ease;
}

.tressage-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tressage-swatch:hover {
  transform: translateY(-2px);
}

.tressage-swatch:hover .ee-swatch-inner {
  box-shadow: 0 0 0 2px #b8a888;
}

.tressage-swatch.selected .ee-swatch-inner {
  box-shadow: 0 0 0 3px #8a6d3b;
}

/* Badge numéroté façon Configlicol : petit rond en surimpression */
.ee-swatch-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #8a6d3b;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  z-index: 2;
}

/* Nom de la couleur affiché sous le swatch (visible en permanence, comme Configlicol) */
.ee-swatch-label {
  display: block;
  text-align: center;
  font-size: 10.5px;
  color: #666;
  margin-top: 6px;
  line-height: 1.2;
  max-width: 72px;
  margin-left: auto;
  margin-right: auto;
}

.ee-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Récap du choix client --- */
.ee-color-summary {
  margin: 20px 0 24px;
  padding: 16px 18px;
  background: #f9f7f2;
  border: 1px solid #e5e0d5;
  border-radius: 10px;
  font-size: 14px;
}

.ee-color-summary strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
}

.ee-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ee-summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  font-size: 13px;
}

.ee-summary-item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
}

.ee-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #8a6d3b;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-right: 2px;
}

.ee-summary-empty {
  color: #999;
  font-style: italic;
}

/* Masquer les 3 champs WPC natifs de tressage.
   Le JS détecte désormais ces champs par leur libellé
   ("tressage 1/2/3") et leur ajoute la classe ci-dessous,
   ce qui fonctionne sur tous les produits sans dépendre
   des data-key WPC (qui changent d'un produit à l'autre). */
.ee-native-hidden {
  display: none !important;
}

/* Ancienne règle basée sur data-key, conservée pour compatibilité
   avec la page "renes" si elle était déjà en cache/CDN.
   Peut être supprimée une fois la nouvelle version en ligne partout. */
.wpcpo-option[data-key="wpcpo-xz7f"],
.wpcpo-option[data-key="wpcpo-78dl"],
.wpcpo-option[data-key="wpcpo-uy5f"] {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .ee-swatch-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 12px 8px;
  }
  .tressage-swatch {
    width: 56px;
    height: 56px;
  }
}

.ee-color-grid-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 24px 0 16px;
}

.ee-color-grid-subtitle {
  font-weight: 400;
  font-size: 14px;
  color: #777;
}