/* onboarding.css — Wizard multi-step BuildYourStore */

/* ── Layout ─────────────────────────────────────── */

.ob-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 4rem;
}

.ob-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ob-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.ob-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* ── Card ───────────────────────────────────────── */

.ob-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
}

.ob-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ── Steps ──────────────────────────────────────── */

.ob-step { display: none; }
.ob-step.active { display: block; }

/* ── Form groups ─────────────────────────────────── */

.ob-field {
  margin-bottom: 1.1rem;
}

.ob-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
}

.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.ob-field textarea { resize: vertical; min-height: 80px; }

/* ── Buttons ────────────────────────────────────── */

.ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.ob-btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  margin-top: 1.25rem;
}

.ob-btn-primary:hover { background: var(--primary-hover); }
.ob-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.ob-btn-secondary {
  background: var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  margin-top: 0.75rem;
}

/* ── Progress bar ───────────────────────────────── */

.ob-progress {
  margin-bottom: 1.5rem;
}

.ob-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ob-progress-track {
  background: var(--border);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.ob-progress-bar {
  background: var(--primary);
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
  width: 0%;
}

/* ── Spinner ────────────────────────────────────── */

.ob-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ob-spin 0.7s linear infinite;
}

@keyframes ob-spin { to { transform: rotate(360deg); } }

/* ── Product cards (sourcing results) ───────────── */

.ob-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ob-product-card {
  border: 2px solid var(--border);
  border-radius: 9px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.ob-product-card:hover,
.ob-product-card.selected {
  border-color: var(--primary);
  background: #f0faf5;
}

.ob-product-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--border);
}

.ob-product-card .ob-product-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.ob-product-card .ob-product-info .ob-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.ob-product-card .ob-product-info .ob-cmp-price {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
}

/* ── Manual product form ─────────────────────────── */

.ob-manual-toggle {
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.5rem;
  display: inline-block;
}

/* ── Status / info boxes ─────────────────────────── */

.ob-status-box {
  text-align: center;
  padding: 1.5rem 1rem;
}

.ob-status-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.ob-status-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ob-status-box p {
  color: var(--muted);
  font-size: 0.9rem;
}

.ob-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 7px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.ob-preview-link:hover { background: #f0faf5; }

/* ── Error ──────────────────────────────────────── */

.ob-error {
  background: #fff0ee;
  border: 1.5px solid #ffd0cc;
  border-radius: 7px;
  padding: 0.75rem 1rem;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  display: none;
}

.ob-error.visible { display: block; }

/* ── Step indicator ─────────────────────────────── */

.ob-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.ob-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s;
}

.ob-step-dot.done { background: var(--primary); }
.ob-step-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }
