/**
 * Folies Secrètes — Sélecteur couleur premium PS26 (scope strict)
 * body#product .fs-color-variant uniquement
 */

body#product .fs-color-variant {
  margin: 0 0 1.35rem;
  padding: 0 0 0.15rem;
}

body#product .fs-color-variant__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

body#product .fs-color-variant__label.control-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--fs-font-sans, "Manrope", system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fs-ink-soft, #4a4543);
  line-height: 1.4;
}

body#product .fs-color-variant__selected {
  margin: 0;
  font-family: var(--fs-font-sans, "Manrope", system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--fs-ink, #1a1716);
  line-height: 1.45;
}

body#product .fs-color-variant__selected-prefix {
  color: var(--fs-ink-soft, #4a4543);
  margin-right: 0.2rem;
}

body#product .fs-color-variant__selected-value {
  font-weight: 500;
}

body#product .fs-color-variant__swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#product .fs-color-variant__option.input-container {
  position: relative;
  margin: 0;
  padding: 0;
  float: none;
}

body#product .fs-color-variant__option .input-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

body#product .fs-color-variant__option .color {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--fs-line-strong, rgba(26, 23, 22, 0.14));
  box-shadow: 0 1px 3px rgba(26, 23, 22, 0.06);
  transition:
    transform 0.2s var(--fs-ease, ease),
    box-shadow 0.2s var(--fs-ease, ease),
    border-color 0.2s var(--fs-ease, ease);
}

body#product .fs-color-variant__option:hover .color,
body#product .fs-color-variant__option .input-color:hover + .color {
  transform: scale(1.06);
  border-color: var(--fs-nude, #c4a99a);
  box-shadow: 0 4px 12px rgba(26, 23, 22, 0.08);
}

body#product .fs-color-variant__option.is-selected .color,
body#product .fs-color-variant__option .input-color:checked + .color {
  border-color: var(--fs-gold, #b8956b);
  box-shadow:
    0 0 0 2px var(--fs-ivory, #fdfcfa),
    0 0 0 3.5px var(--fs-gold, #b8956b);
}

body#product .fs-color-variant__option .input-color:focus-visible + .color {
  outline: none;
  box-shadow:
    0 0 0 2px var(--fs-ivory, #fdfcfa),
    0 0 0 3.5px var(--fs-gold, #b8956b),
    0 0 0 5px rgba(184, 149, 107, 0.35);
}

body#product .fs-color-variant__option.st_unavailable_combination .color {
  opacity: 0.45;
  filter: grayscale(0.25);
}

@media (max-width: 480px) {
  body#product .fs-color-variant__option .color {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  body#product .fs-color-variant__swatches {
    gap: 0.75rem;
  }
}
