/* ==========================================================================
   css/attractions/shop.css - [어트랙션 4/5] 굿즈 공방 (메인) 스타일
   ========================================================================== */

.shop-wrapper {
  max-width: 950px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 35px 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.shop-header {
  text-align: center;
  margin-bottom: 30px;
}

.shop-header h2 {
  font-size: 2.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.shop-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 4단계 스텝 네비게이션 */
.steps-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

.step-item.active {
  color: var(--primary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.step-item.active .step-num {
  background: var(--primary);
  color: white;
}

/* 작업대 스튜디오 레이아웃 */
.shop-studio {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 25px;
  align-items: start;
}

@media (max-width: 860px) {
  .shop-studio {
    grid-template-columns: 1fr;
  }
}

/* 캔버스 작업대 */
.workbench {
  background: #0F172A;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-container {
  position: relative;
  width: 320px;
  height: 420px;
  background: #1E293B;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  touch-action: none;
}

#goods-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 우측 툴 패널 */
.tool-panel {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 22px;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.pane-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

.pane-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Step 1: 키링 선택 */
.keyring-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.keyring-card {
  background: #0F172A;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.keyring-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 143, 171, 0.4);
}

.keyring-card.selected {
  border-color: var(--primary);
  background: rgba(255, 143, 171, 0.1);
}

.keyring-preview-box {
  width: 70px;
  height: 90px;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step 2: 스티커 팔레트 */
.sticker-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.sticker-btn {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.sticker-btn span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sticker-btn:hover {
  transform: scale(1.1);
  border-color: var(--secondary);
}

/* Step 3: 손글씨 드로잉 */
.draw-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.color-picker-group {
  display: flex;
  gap: 8px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.color-dot.selected {
  transform: scale(1.2);
  border-color: white;
}

/* Step 4: 영수증 연출 및 저장 액션 */
.receipt-box {
  background: #FEF3C7;
  color: #1E293B;
  border-radius: 12px;
  padding: 18px;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
}

.receipt-box::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle, transparent, transparent 50%, #FEF3C7 50%, #FEF3C7 100%);
  background-size: 12px 12px;
}

.finish-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.95;
}
