/* ===== Rolex Visual Configurator ===== */

.cfg-header {
  text-align: center;
  margin-bottom: 24px;
}

.cfg-model-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.cfg-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cfg-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 2px solid var(--gray-300);
  color: var(--gray-500);
  background: var(--white);
  transition: all 0.2s ease;
}

.cfg-dot.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.cfg-dot.done {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
}

.cfg-step-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

/* ── Option Grid ── */
.cfg-options {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.cfg-grid-sm {
  grid-template-columns: repeat(2, 1fr);
}

.cfg-grid-sm .cfg-option-img {
  aspect-ratio: 3/4;
  padding: 12px;
}

.cfg-grid-md {
  grid-template-columns: repeat(3, 1fr);
}

.cfg-grid-lg {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Option Card ── */
.cfg-option {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.cfg-option:hover {
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.cfg-option.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.cfg-option.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cfg-option-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--gray-50);
}

.cfg-option-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.cfg-option-name {
  padding: 6px 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cfg-option.selected .cfg-option-name {
  color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .cfg-grid-sm {
    grid-template-columns: repeat(2, 1fr);
  }

  .cfg-grid-md,
  .cfg-grid-lg {
    grid-template-columns: repeat(2, 1fr);
  }

  .cfg-option-name {
    font-size: 0.65rem;
  }

  .cfg-step-label {
    font-size: 0.95rem;
  }
}
