/**
 * @file
 * Interactive color swatch styles for design preview cards.
 */

.design-card-swatch {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.design-card-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.design-card-swatch.swatch-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--primary, #333);
}

.design-card-swatch.swatch-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary, #333);
  border-radius: 50%;
}

.design-card-image-wrapper {
  transition: background-color 0.3s ease;
}
