/* ── 헤더 보조 버튼 ────────────────────────────────── */
.btn-back {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: all .2s;
  white-space: nowrap;
}
.btn-back:hover { background: var(--primary-light); }

/* ── 히어로 배너 ────────────────────────────────────── */
.reg-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d4f6b 100%);
  padding: 56px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.reg-hero::before {
  content: '🌊';
  position: absolute;
  font-size: 240px;
  opacity: .05;
  right: -40px;
  bottom: -60px;
  pointer-events: none;
}
.reg-hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.reg-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.reg-hero h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.reg-hero p { font-size: 15px; opacity: .88; line-height: 1.7; margin-bottom: 20px; }
.reg-hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.reg-hero-tags span {
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ── 진행 단계 ──────────────────────────────────────── */
.reg-steps-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  position: sticky;
  top: 68px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.reg-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .4;
  transition: opacity .3s;
}
.reg-step.active, .reg-step.done { opacity: 1; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.reg-step.active .step-num { background: var(--primary); color: #fff; }
.reg-step.done .step-num { background: var(--green); color: #fff; }
.reg-step.done .step-num::after { content: '✔'; font-size: 14px; }
.reg-step.done .step-num { font-size: 0; }
.step-label { font-size: 12px; font-weight: 600; color: var(--text-sub); white-space: nowrap; }
.reg-step.active .step-label { color: var(--primary); }
.reg-step.done .step-label { color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; margin-bottom: 22px; transition: background .3s; min-width: 40px; }

/* ── 폼 컨테이너 ────────────────────────────────────── */
.reg-container {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* ── 패널 ───────────────────────────────────────────── */
.reg-step-panel { display: none; }
.reg-step-panel.active { display: block; }

.reg-panel-header {
  margin-bottom: 28px;
}
.reg-panel-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.reg-panel-header p { font-size: 14px; color: var(--text-sub); }

/* ── 폼 레이아웃 ────────────────────────────────────── */
.reg-form { display: flex; flex-direction: column; gap: 28px; }

.form-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-hint-inline { font-size: 12px; color: var(--text-sub); font-weight: 400; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.required { color: var(--red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.form-hint { font-size: 11px; color: var(--text-sub); }

.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.btn-check {
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-check:hover { background: var(--primary); color: #fff; }

.input-unit { display: flex; align-items: center; gap: 0; }
.input-unit input { border-radius: 10px 0 0 10px; flex: 1; }
.input-unit span {
  background: var(--border);
  border: 2px solid var(--border);
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-sub);
  white-space: nowrap;
}

/* ── 파일 업로드 ────────────────────────────────────── */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.file-upload:hover { border-color: var(--primary); background: var(--primary-light); }
.file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  text-align: center;
  min-height: 130px;
}
.file-preview .upload-icon { font-size: 36px; }
.file-preview p { font-size: 14px; font-weight: 600; color: var(--text); }
.file-preview span { font-size: 11px; color: var(--text-sub); }

.product-img-upload { display: flex; gap: 14px; }
.main-img-upload { flex: 1; min-height: 200px; }
.sub-img-list { display: flex; flex-direction: column; gap: 10px; width: 130px; }
.sub-img-upload { flex: 1; }
.file-preview.small { min-height: 0; padding: 12px; }
.file-preview.small span { font-size: 20px; font-weight: 700; color: var(--text-sub); }
.file-preview.small p { font-size: 11px; color: var(--text-sub); }

/* ── 카테고리 선택 카드 ─────────────────────────────── */
.category-select-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cat-select-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}
.cat-select-card:hover { border-color: var(--primary); background: var(--primary-light); }
.cat-select-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,107,138,.12);
}
.cat-select-card.selected strong { color: var(--primary); }
.cat-big-icon { font-size: 44px; display: block; margin-bottom: 10px; }
.cat-select-card strong { font-size: 18px; font-weight: 800; display: block; margin-bottom: 6px; }
.cat-select-card p { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* ── 서브 카테고리 서브섹션 ─────────────────────────── */
.sub-cat-section { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.sub-cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-label { cursor: pointer; }
.chip-label input { display: none; }
.chip-label span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-sub);
  transition: all .2s;
}
.chip-label input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chip-label:hover span { border-color: var(--primary); color: var(--primary); }

/* ── 약관 동의 ──────────────────────────────────────── */
.agree-list { display: flex; flex-direction: column; gap: 12px; }
.agree-divider { height: 1px; background: var(--border); }
.agree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.agree-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.agree-all { font-weight: 700; font-size: 15px; }
.agree-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-sub);
  text-decoration: underline;
  flex-shrink: 0;
}

/* ── 액션 버튼 ──────────────────────────────────────── */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-prev {
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-sub);
  transition: all .2s;
}
.btn-prev:hover { border-color: var(--primary); color: var(--primary); }
.btn-next {
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .1s;
  box-shadow: 0 4px 14px rgba(26,107,138,.3);
}
.btn-next:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit {
  padding: 14px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green) 0%, #2d6b40 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(58,124,78,.3);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(58,124,78,.4); }

/* ── 완료 화면 ──────────────────────────────────────── */
.reg-complete {
  background: #fff;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.complete-icon { font-size: 72px; margin-bottom: 20px; }
.reg-complete h2 { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 14px; }
.reg-complete > p { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 32px; }

.complete-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 32px;
}
.complete-info-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { font-size: 24px; flex-shrink: 0; }
.complete-info-item strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }
.complete-info-item p { font-size: 13px; color: var(--text-sub); }

.btn-home {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}
.btn-home:hover { background: var(--primary-dark); }

/* ── 알림 ───────────────────────────────────────────── */
.reg-alert {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--red);
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all .3s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(229,57,53,.35);
  white-space: nowrap;
}
.reg-alert.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 로그인 생산자 배너 ─────────────────────────────── */
.producer-login-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
  border: 1.5px solid #b2dfdb;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.plb-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plb-info { flex: 1; line-height: 1.5; }
.plb-info strong { font-size: 15px; font-weight: 800; color: var(--text); display: block; }
.plb-info span { font-size: 12px; color: var(--text-sub); }
.plb-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.plb-back:hover { background: var(--primary); color: #fff; }

/* ── 상품 등록 완료 알림 ────────────────────────────── */
.product-add-notice {
  display: none;
  align-items: center;
  gap: 14px;
  background: #e8f5e9;
  border: 1.5px solid #66bb6a;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.pan-icon { font-size: 26px; flex-shrink: 0; }
.pan-text { flex: 1; line-height: 1.5; }
.pan-text strong { font-size: 14px; font-weight: 800; color: #2e7d32; display: block; }
.pan-text span { font-size: 12px; color: #4caf50; }
.pan-link {
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
  border: 1.5px solid #66bb6a;
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.pan-link:hover { background: #66bb6a; color: #fff; }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .reg-hero h1 { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .category-select-wrap { grid-template-columns: 1fr; }
  .product-img-upload { flex-direction: column; }
  .sub-img-list { flex-direction: row; width: 100%; }
  .reg-steps-wrap { padding: 14px; }
  .step-label { display: none; }
  .form-section { padding: 18px 16px; }
  .form-actions { flex-direction: column-reverse; }
  .btn-prev, .btn-next, .btn-submit { width: 100%; text-align: center; }
  .reg-complete { padding: 36px 20px; }
}
