/* =============================================
   Pool Color Preview — Couleurs
   ============================================= */

.mova-cpv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  /* max-width: 1200px; */
  margin: 0 auto;
}

/* --- Preview --- */
.mova-cpv-preview {
  position: sticky;
  top: 120px;
}

.mova-cpv-preview-wrap {
  background: #f5f6f8;
  /* border-radius: 12px; */
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mova-cpv-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.mova-cpv-preview-img.loading {
  opacity: 0.4;
}

/* --- Panneau --- */
.mova-cpv-panel {
  padding: 10px 0;
}

.mova-cpv-title {
  font-family: "AcuminPro", sans-serif !important;
  font-size: 1.625rem !important;
  font-weight: 600 !important;
  color: inherit;
  margin: 0 0 24px;
  line-height: 1.2;
}

.mova-cpv-disclaimer {
  font-size: 12px;
  font-weight: 400;
  color: #1a4759;
  font-style: italic;
  opacity: 0.7;
  margin: 0 0 16px;
}

/* --- Section --- */
.mova-cpv-section {
  margin-bottom: 32px;
}

.mova-cpv-section-title {
  font-family: "AcuminPro", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: inherit;
  margin: 0 0 4px;
}

.mova-cpv-section-subtitle {
  font-family: "AcuminPro", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #777;
  margin: 0 0 14px;
}

/* --- Swatches --- */
.mova-cpv-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mova-cpv-swatch {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #eee;
  transition:
    border-color 0.2s,
    transform 0.15s;
  position: relative;
}

.mova-cpv-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mova-cpv-swatch:hover {
  border-color: #1a4759;
  background-color: transparent;
  transform: scale(1.06);
}

.mova-cpv-swatch.active {
  border-color: #1a4759;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #1a4759;
}

.mova-cpv-swatch:focus {
  background-color: transparent;
}

.mova-cpv-swatch-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
}

/* --- Nom couleur sélectionnée --- */
.mova-cpv-color-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a4759;
  margin: 10px 0 0;
  min-height: 20px;
  transition: opacity 0.2s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .mova-cpv {
    gap: 24px;
  }

  .mova-cpv-title {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .mova-cpv {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mova-cpv-preview {
    position: static;
  }

  .mova-cpv-swatch {
    width: 48px;
    height: 48px;
  }
}
