/* ═══════════════════════════════════════════════════════════
   WIZARD.CSS — cadastro de produto em etapas (estilo Bling).
   Tela cheia sobre o app, com sidebar de etapas + conteúdo.
   ═══════════════════════════════════════════════════════════ */

.wizard-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: var(--bg);
  display: none; align-items: stretch; justify-content: center;
}
.wizard-container {
  display: flex; width: 100%; height: 100%;
  background: var(--s1);
}

/* ── Sidebar de etapas ── */
.wizard-aside {
  width: 300px; flex-shrink: 0;
  background: var(--s1); border-right: 1px solid var(--bd);
  padding: 28px 22px; display: flex; flex-direction: column;
}
.wizard-aside-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700;
}
.wizard-aside-sub { font-size: 12px; color: var(--mu); margin: 4px 0 24px; }
.wizard-steps { display: flex; flex-direction: column; gap: 2px; position: relative; flex: 1; }
.wizard-step {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 10px 8px; border-radius: 8px; transition: background .15s;
  position: relative;
}
.wizard-step:hover:not(:disabled) { background: var(--s2); }
.wizard-step.soon { opacity: .45; cursor: not-allowed; }
.wizard-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bd); background: var(--s2);
  font-size: 12px; font-weight: 700; color: var(--mu);
  transition: all .2s;
}
.wizard-step-num.current { border-color: var(--green); background: var(--green); color: #fff; }
.wizard-step-num.done { border-color: var(--green); background: transparent; color: var(--green); }
.wizard-step-label { font-size: 14px; color: var(--tx); font-weight: 500; }
.wizard-step.active .wizard-step-label { color: var(--green); font-weight: 700; }
.wizard-optional { font-size: 11px; color: var(--mu); font-weight: 400; }

/* linha conectora entre os números */
.wizard-steps::before {
  content: ''; position: absolute; left: 21px; top: 24px; bottom: 24px;
  width: 2px; background: var(--bd); z-index: 0;
}
.wizard-step { z-index: 1; }

/* ── Conteúdo principal ── */
.wizard-main {
  flex: 1; display: flex; flex-direction: column;
  background: var(--s1); min-width: 0;
}
.wizard-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-bottom: 1px solid var(--bd);
}
.wizard-topbar-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700;
}
.wizard-close {
  background: none; border: none; color: var(--mu); cursor: pointer;
  display: flex; padding: 6px; border-radius: 6px;
}
.wizard-close:hover { background: var(--s2); color: var(--tx); }

.wizard-body {
  flex: 1; overflow-y: auto; padding: 28px 32px;
}
.wizard-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-top: 1px solid var(--bd); gap: 12px;
}

/* ── Botões do wizard ── */
.wizard-btn-outline {
  background: none; border: 1px solid var(--bd); border-radius: 8px;
  color: var(--tx); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px 18px; cursor: pointer; transition: background .15s;
}
.wizard-btn-outline:hover { background: var(--s2); border-color: var(--green); color: var(--green); }
.wizard-btn-next { padding: 10px 22px; font-size: 13px; }

/* ── Campos do formulário ── */
.wz-section { max-width: 900px; }
.wz-section-title {
  font-size: 15px; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.wz-required { font-size: 11px; color: var(--red); font-weight: 400; }
.wz-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.wz-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.wz-span-2 { grid-column: span 2; }
.wz-field { display: flex; flex-direction: column; }
.wz-label { font-size: 12px; color: var(--mu); margin-bottom: 6px; font-weight: 500; }
.wz-req { color: var(--red); }
.wz-input, .wz-select, .wz-textarea {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 8px;
  color: var(--tx); font-family: 'Inter', sans-serif; font-size: 14px;
  padding: 11px 12px; width: 100%; transition: border-color .15s;
}
.wz-input:focus, .wz-select:focus, .wz-textarea:focus {
  outline: none; border-color: var(--or); background: #eef1ff;
  color: #1a1a2e;
}
.wz-textarea { resize: vertical; min-height: 90px; }

@media (max-width: 820px) {
  .wizard-aside { display: none; }
  .wz-grid-2, .wz-grid-3 { grid-template-columns: 1fr; }
  .wz-span-2 { grid-column: span 1; }
}
