/* Pretendard (한국어 산세리프) — 궁서체 폴백 방지. 동적 서브셋 variable 버전 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* 커스터마이즈 화면 폰트 고정 (전역 확장 원하면 head 에 link 한 줄로) */
.imm-customizer,
.imm-detail-overlay {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
}

/* ===== Layout: 60 / 40 ===== */
.customize-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  height: calc(100vh - var(--gnb-height));   /* 고정 — 페이지 자체는 스크롤 안 함 */
}

/* ===== Preview Panel (Left 60%) ===== */
.preview-panel {
  background: var(--color-surface);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0; /* prevent grid overflow */
}

.preview-sticky {
  position: sticky;
  top: var(--gnb-height);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--gnb-height));
  width: 100%;
}

.preview-container {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  position: relative;
}

.preview-watch {
  width: 100%;
  height: 100%;
  position: relative;
}

.watch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;       /* transform 은 핸즈 회전에 매 프레임 갱신 — 트랜지션 빼야 부드러움 */
  will-change: opacity, transform;
  contain: layout style;
  transform-origin: center center;     /* 회전축 = 캔버스 정중앙 = 시계 중심 */
  transform: scale(1);
}

.watch-layer.loaded {
  opacity: 1;
}

.watch-layer.fading {
  opacity: 0;
  transform: scale(0.98);
}

/* ===== 완성 시 사파이어 크리스탈 (플랫 · 직선 반사 · 통일 스윕) ===== */
/* 다이얼 원에 맞추는 정렬 변수 — 실제 시계 PNG 기준으로 아래 3값만 미세조정하면 됨 */
.watch-crystal-anchor {
  --crystal-d: 49%;   /* 크리스탈(다이얼) 지름: 프레임 대비 % — 모던·다이버 공용. 45→49 확대 */
  --crystal-x: 0%;    /* 좌우 오프셋 */
  --crystal-y: 0%;    /* 상하 오프셋 (다이얼이 중앙보다 위/아래면 조정) */
  position: absolute;
  left: calc(50% + var(--crystal-x));
  top:  calc(50% + var(--crystal-y));
  width: var(--crystal-d);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;              /* 다이얼·핸즈 위, 베젤 아래 */
}
/* 베젤(다이버)은 유리 위로 올려 유리가 베젤 안쪽 다이얼에만 얹히게 — 기본 레이어 구조는 그대로, z-index 만 조정 */
#watch-preview #layer-bezel { z-index: 6; }
/* 각인 오버레이(.imm-engrave-overlay z-index:1)를 다이얼 위·핸즈 아래에 두기 위해 시침/분침/초침만 올림 (크리스탈 4·베젤 6 아래 유지) */
#watch-preview #layer-hands_hour,
#watch-preview #layer-hands_min,
#watch-preview #layer-hands_sec { z-index: 2; }

/* ============================================================
   [NIGHT] 주/야(야광) 미리보기 — .preview-container.is-night (프리뷰 전용)
   ============================================================ */
/* 배경만 살짝 어둡게 (과하지 않게 — 야광 느낌) */
.preview-container.is-night {
  background: radial-gradient(circle at 50% 42%, #3b414b 0%, #262a31 72%, #1f232a 100%);
  border-radius: 12px;
  transition: background 0.35s ease;
}
/* night 전용 이미지가 없어 '주간 이미지'를 쓰는 레이어만 살짝 어둡게(많이 어두우면 안 보임) */
#watch-preview .watch-layer[data-night="fallback"] { filter: brightness(0.72); }
/* night 전용 이미지(data-night="real")는 이미 야광/야간 아트 → 필터 없음 */

/* 주/야 토글 버튼 — 좌측 하단 (줌 컨트롤과 대칭) */
.imm-daynight { position: absolute; left: 10px; bottom: 10px; z-index: 6; padding: 0; border: none; background: none; cursor: pointer; line-height: 0; }
.imm-dn-track {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--color-border, #e2e2e2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12); transition: background 0.25s ease, border-color 0.25s ease;
}
.imm-dn-ic { position: relative; z-index: 2; display: block; transition: color 0.25s ease; }
.imm-dn-sun  { color: #C9A21A; }
.imm-dn-moon { color: #9aa3b2; }
.imm-dn-thumb {
  position: absolute; z-index: 1; top: 50%; left: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.22);
  transform: translateY(-50%); transition: transform 0.25s ease, background 0.25s ease;
}
.imm-daynight.is-night .imm-dn-track { background: #2a2f38; border-color: #3a4049; }
.imm-daynight.is-night .imm-dn-thumb { transform: translateY(-50%) translateX(20px); background: #4a5260; }
.imm-daynight.is-night .imm-dn-sun  { color: #6b7280; }
.imm-daynight.is-night .imm-dn-moon { color: #eaf0ff; }
.watch-crystal {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
  opacity: 0;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.18),
    inset 0 -2px 4px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.09),
    0 0 10px rgba(0,0,0,0.20);
}
.watch-crystal > * { position: absolute; inset: 0; }
.wc-refract { /* 옅은 굴절 — 유리 아래 다이얼을 살짝 밝힘 */
  backdrop-filter: brightness(1.05) saturate(1.04);
  -webkit-backdrop-filter: brightness(1.05) saturate(1.04);
}
.wc-toplight { background: linear-gradient(179deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0) 24%); }
.wc-streaks { /* 평면 유리의 직선 반사 2줄 */
  background:
    linear-gradient(116deg, transparent 27%, rgba(255,255,255,0.16) 31%, rgba(255,255,255,0.16) 32.5%, transparent 37%),
    linear-gradient(116deg, transparent 41%, rgba(255,255,255,0.07) 44%, transparent 48%);
}
.wc-glare { /* 정적 반사와 동일한 116° 축으로 통일된 스윕 */
  background: linear-gradient(116deg, transparent 43%, rgba(255,255,255,0.40) 48.5%, rgba(255,255,255,0.56) 50%, rgba(255,255,255,0.40) 51.5%, transparent 57%);
  background-size: 250% 250%; background-repeat: no-repeat; background-position: 130% 130%;
  opacity: 0;
}
/* 씌우기: 위에서 원형으로 덮이며 커졌다 작아지며 안착 */
.watch-crystal.sealed { animation: wc-seat 1s cubic-bezier(.2,.82,.24,1) forwards; }
@keyframes wc-seat {
  0%   { opacity: 0; clip-path: circle(0% at 50% 2%);   transform: scale(1.02); }
  58%  { opacity: 1; clip-path: circle(122% at 50% 2%); transform: scale(1.06); }
  100% { opacity: 1; clip-path: circle(122% at 50% 2%); transform: scale(1); }
}
/* 쫀득한 스윕 — ease-in-out 으로 유려하게, 그리고 길게 쉼 */
.watch-crystal.sealed .wc-glare { animation: wc-glare 6.5s cubic-bezier(.7,0,.18,1) 0.6s infinite; }
@keyframes wc-glare {
  0%   { background-position: 140% 140%; opacity: 0; }
  4%   { opacity: 0.6; }
  30%  { background-position: -40% -40%; opacity: 0.6; }
  35%  { background-position: -40% -40%; opacity: 0; }
  100% { background-position: -40% -40%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-crystal.sealed { animation: none; opacity: 1; clip-path: none; transform: none; }
  .watch-crystal.sealed .wc-glare { animation: none; opacity: 0; }
}

/* Placeholder SVG */
.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preview-placeholder svg {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.08));
}

.preview-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Floating summary bar */
.preview-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.preview-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.summary-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.preview-summary-price {
  margin-left: auto;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

/* ===== Config Panel (Right 40%) ===== */
.config-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;             /* grid row 높이 (= 100vh - gnb) */
  border-left: 1px solid var(--color-border-light);
  min-width: 0;       /* prevent grid overflow */
  overflow: hidden;    /* contain slider */
}

/* Progress bar */
.progress-bar {
  height: 2px;
  background: var(--color-border-light);
  position: relative;
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  width: 25%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.step-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 8px;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.step-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.step-tab.active::after {
  transform: scaleX(1);
}

.step-num {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.step-tab.active .step-num,
.step-tab.active .step-label {
  color: var(--color-text);
}

.step-tab.completed .step-num,
.step-tab.completed .step-label {
  color: var(--color-text-muted);
}

/* ===== Step Slider ===== */
.step-slider {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0; /* allow flex shrink */
}

.step-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.step-panel {
  min-width: 100%;
  width: 100%;
  padding: 36px 40px;
  overflow-y: auto;
  box-sizing: border-box;
}

.step-header {
  margin-bottom: 32px;
}

.step-header h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-weight: 600;
}

.step-header p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Option Cards ===== */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.option-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  position: relative;
}

.option-card:hover {
  border-color: var(--color-text-dim);
  box-shadow: var(--shadow-sm);
}

/* 선택 = 그림자 네온 (아이스 민트) + 숨쉬는 브리딩
   · 테두리 + 안쪽 1.5px 링은 모든 프레임에서 일정 → 테두리 또렷·가독성 유지 (깜빡임 없음)
   · 바깥 글로우만 느리게 커졌다 작아졌다 → 숨쉬는 네온 */
.option-card.selected {
  border-color: #3FE0B0;
  box-shadow:
    inset 0 0 0 1.5px #3FE0B0,
    0 0 7px 1px rgba(63, 224, 176, 0.50),
    0 0 15px 3px rgba(63, 224, 176, 0.32);
  animation: imm-neon-breathe 3s ease-in-out infinite;
}
@keyframes imm-neon-breathe {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1.5px #3FE0B0,
      0 0 6px 1px rgba(63, 224, 176, 0.42),
      0 0 12px 2px rgba(63, 224, 176, 0.26);
  }
  50% {
    box-shadow:
      inset 0 0 0 1.5px #3FE0B0,
      0 0 13px 2px rgba(63, 224, 176, 0.78),
      0 0 26px 7px rgba(63, 224, 176, 0.50);
  }
}
/* 모션 최소화 선호 — 숨쉬기 정지, 정적 네온 글로우 유지 */
@media (prefers-reduced-motion: reduce) {
  .option-card.selected {
    animation: none;
    box-shadow:
      inset 0 0 0 1.5px #3FE0B0,
      0 0 8px 1px rgba(63, 224, 176, 0.55),
      0 0 16px 3px rgba(63, 224, 176, 0.40);
  }
}

.option-thumb {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  position: relative;
}

.option-thumb img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

@media (hover: hover) {
  .option-card:hover .option-thumb img {
    transform: scale(1.03);
    transition: transform 0.3s ease;
  }
}

.option-thumb .color-swatch {
  width: 100%;
  height: 100%;
}

/* 시·분 세트 썸네일 — 시침/분침 두 PNG 를 10:10 포즈로 오버레이 */
.hands-set-thumb {
  position: relative;
  width: 90%;
  height: 90%;
}
.hands-set-thumb .hands-set-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}
.hands-set-thumb .hands-set-hour { transform: rotate(305deg); }
.hands-set-thumb .hands-set-min  { transform: rotate(60deg); }

/* 호버 확대 — rotate 를 유지한 채 scale (기존 .option-thumb img 규칙이 rotate 를 덮어쓰는 것 방지) */
@media (hover: hover) {
  .option-card:hover .option-thumb .hands-set-hour { transform: rotate(305deg) scale(1.03); }
  .option-card:hover .option-thumb .hands-set-min  { transform: rotate(60deg) scale(1.03); }
}

.option-name {
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-price {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* 선택 표시는 골드 테두리 + 네온 글로우(.option-card.selected)로만 처리.
   기존 우상단 체크 배지는 'i' 상세버튼과 위치가 겹쳐 제거함. */

/* ===== Strap Tabs ===== */
.strap-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.strap-tab {
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.06em;
}

.strap-tab:hover {
  border-color: var(--color-text-dim);
  color: var(--color-text);
}

.strap-tab.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== Order Summary ===== */
.order-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
}

.summary-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.summary-thumb .color-swatch {
  width: 100%;
  height: 100%;
}

.summary-info {
  flex: 1;
  min-width: 0;
}

.summary-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.summary-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-price {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

.order-total span:first-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.order-total span:last-child {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Step Navigation ===== */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-white);
  flex-shrink: 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);   /* 스크롤되는 내용과 시각 분리 */
  z-index: 2;
}

/* 다음 단계 버튼 — 부품 미선택 시 비활성 시각화 + 호버 시 안내 텍스트 swap (JS) */
#btn-next {
  min-width: 200px;          /* 텍스트 swap 시 폭 흔들림 방지 */
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
#btn-next.imm-btn-disabled {
  background: #d8d8d8 !important;
  color: #666 !important;
  border-color: #d8d8d8 !important;
  cursor: not-allowed;
  box-shadow: none;
}
#btn-next.imm-btn-disabled:hover {
  background: #c9c9c9 !important;
  color: #1A1A1A !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large screens */
@media (min-width: 1600px) {
  .preview-container {
    max-width: 620px;
  }

  .step-panel {
    padding: 44px 52px;
  }

  .step-nav {
    padding: 24px 52px;
  }

  .option-grid {
    gap: 20px;
  }

  .option-card {
    padding: 20px;
  }

  .option-name {
    font-size: 0.85rem;
  }
}

/* Medium: narrower 2-col */
@media (max-width: 1200px) {
  .customize-layout {
    grid-template-columns: 1fr 1fr;
  }

  .preview-container {
    max-width: 380px;
  }

  .preview-summary {
    gap: 14px;
    padding: 12px 18px;
  }

  .preview-summary-item span {
    display: none;
  }

  .step-panel {
    padding: 28px 24px;
  }

  .step-nav {
    padding: 18px 24px;
  }

  .step-num {
    display: none;
  }
}

/* Tablet / narrow window: single column */
@media (max-width: 860px) {
  .customize-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-panel {
    position: sticky;
    top: var(--gnb-height);
    z-index: 20;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .preview-sticky {
    position: relative;
    top: 0;
    height: auto;
    padding: 20px;
  }

  .preview-container {
    max-width: 240px;
    margin: 0 auto;
  }

  .preview-summary {
    gap: 12px;
    padding: 10px 16px;
    margin-top: 16px;
  }

  .preview-summary-item {
    gap: 5px;
    font-size: 0.65rem;
  }

  .preview-summary-item span {
    display: inline;
  }

  .summary-dot {
    width: 10px;
    height: 10px;
  }

  .preview-summary-price {
    font-size: 0.85rem;
  }

  .config-panel {
    min-height: auto;
    border-left: none;
    overflow: visible;
  }

  .step-tab {
    padding: 12px 4px;
    gap: 4px;
    min-width: 0;              /* 탭 개수 늘어도(다이버 7개) 균등 축소되도록 */
  }

  .step-num {
    display: none;
  }

  .step-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;  /* 좁은 화면 넘침 방지 (짧은 라벨이라 실제 잘림은 거의 없음) */
  }

  .step-panel {
    padding: 16px 20px;
  }

  .step-header {
    margin-bottom: 12px;
  }

  .step-header h2 {
    font-size: 0.88rem;
  }

  .step-header p {
    display: none;
  }

  /* Horizontal scroll options */
  .option-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 14px 2px;   /* 세로 여백 — 선택 네온 글로우가 위아래로 잘리지 않게 */
  }

  .option-grid::-webkit-scrollbar {
    display: none;
  }

  .option-card {
    flex: 0 0 110px;
    padding: 8px;
  }

  .option-thumb {
    margin-bottom: 6px;
    aspect-ratio: 1;
  }

  .option-name {
    font-size: 0.68rem;
  }

  .option-price {
    font-size: 0.62rem;
  }

  /* 선택 체크 배지 제거됨 — 모바일 오버라이드도 불필요 */

  .strap-tabs {
    margin-bottom: 12px;
  }

  .strap-tab {
    padding: 5px 12px;
    font-size: 0.68rem;
  }

  .step-nav {
    padding: 12px 20px;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .step-nav .btn {
    padding: 11px 22px;
    font-size: 0.75rem;
  }

  .summary-item {
    padding: 12px;
    gap: 12px;
  }

  .summary-thumb {
    width: 40px;
    height: 40px;
  }

  .summary-name {
    font-size: 0.8rem;
  }

  .summary-price {
    font-size: 0.8rem;
  }

  .order-total span:last-child {
    font-size: 1.25rem;
  }

  .order-form .form-group {
    margin-bottom: 16px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .preview-container {
    max-width: 200px;
  }

  .preview-sticky {
    padding: 16px;
  }

  .preview-summary {
    padding: 8px 12px;
    gap: 8px;
  }

  .option-card {
    flex: 0 0 100px;
  }
}

/* Extra small mobile */
@media (max-width: 375px) {
  .preview-container {
    max-width: 180px;
  }

  .preview-sticky {
    padding: 12px;
  }

  .step-panel {
    padding: 12px 16px;
  }

  .step-nav {
    padding: 10px 16px;
  }

  .step-nav .btn {
    padding: 10px 16px;
    font-size: 0.72rem;
  }

  .option-card {
    flex: 0 0 90px;
    padding: 6px;
  }
}

/* =====================================================================
   CATEGORY INTRO — 진입 시 모던/다이버 선택 화면
   ===================================================================== */
.imm-customize-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 48px);
}

.imm-customize-intro-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.imm-customize-intro-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.imm-customize-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
}

.imm-customize-intro-divider {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 28px;
}

.imm-customize-intro-lead {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* 카테고리 카드 그리드 */
.imm-customize-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.imm-customize-intro-card {
  position: relative;
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.imm-customize-intro-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
}

.imm-customize-intro-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  overflow: hidden;
}

.imm-customize-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.imm-customize-intro-card:hover .imm-customize-intro-image img {
  transform: scale(1.05);
}

.imm-customize-intro-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
}

.imm-customize-intro-card-content {
  padding: clamp(28px, 3vw, 40px);
  position: relative;
}

.imm-customize-intro-card-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.imm-customize-intro-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--color-text);
}

.imm-customize-intro-card-price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.imm-customize-intro-card-from {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.imm-customize-intro-card-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-accent);
  transition: gap 0.2s ease;
}

.imm-customize-intro-card:hover .imm-customize-intro-card-cta {
  color: var(--color-accent-gold);
  border-bottom-color: var(--color-accent-gold);
}

.imm-customize-intro-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
}

@media (max-width: 720px) {
  .imm-customize-intro-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   CUSTOMIZER — 카테고리 헤더 + Hands sub-grid
   ===================================================================== */

/* config-panel 위쪽 카테고리 헤더 — 얇은 메타 바 */
.imm-customizer-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
  flex-shrink: 0;
}

.imm-customizer-back {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.imm-customizer-back:hover {
  color: var(--color-text);
}

.imm-customizer-cat-label {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
}

.imm-customizer-cat-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text);
}

.imm-customizer-cat-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  margin-right: 2px;
  align-self: center;
}

.imm-customizer-cat-price {
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .imm-customizer-cat-header {
    padding: 10px 18px;
  }
  .imm-customizer-back,
  .imm-customizer-cat-label {
    font-size: 0.68rem;
  }
}

/* Hands sub-section (시분 + 초) */
.hands-section {
  margin-bottom: 36px;
}

.hands-section-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

/* 호환 옵션 없을 때 */
.option-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
}

/* Summary swatch (order step) */
.summary-swatch {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

/* preview-summary 에 베젤 닷 추가 시 wrap 허용 */
.preview-summary {
  flex-wrap: wrap;
}

/* ============================================================
   BUILDER LAYOUT v2 — 좌 시계 / 우 [과정바 + 리스트 | 상세]
   (기존 탭+슬라이더 대체. 프리뷰/주문폼/크리스탈 스타일은 그대로 재사용)
   ============================================================ */
.imm-customizer.imm-builder {
  display: grid;
  grid-template-columns: minmax(380px, 440px) 1fr;   /* 완성 썸네일(좌) · 확대는 #watch-preview 기본 줌으로 처리 */
  gap: 16px;
  height: auto;                 /* 기존 고정높이 해제 — 일반 스크롤 페이지 */
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

/* 좌: 조합 시계 (상단부터 세로로 길게) */
.imm-build { min-width: 0; }
.imm-build-sticky {
  position: sticky; top: calc(var(--gnb-height) + 12px);
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.imm-build-back { font-size: 0.8rem; color: var(--color-text-dim); text-decoration: none; }
.imm-build-back:hover { color: var(--color-accent); }
.imm-build .preview-container { width: 100%; max-width: none; aspect-ratio: 300/420; position: relative; margin: 0; overflow: hidden; }
/* 플레이스홀더 이미지를 은은한 '그림자 실루엣'으로 (완성 시계처럼 안 보이게) */
.preview-placeholder .imm-ph-img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0); opacity: 0.13; }

/* 프리뷰 줌 (확대/축소/이동) */
.imm-build #watch-preview { transform-origin: center center; will-change: transform; transition: transform 0.12s ease; }
.imm-build .preview-container.is-panning #watch-preview { transition: none; }
.imm-build .preview-container.is-zoomed { cursor: grab; }
.imm-build .preview-container.is-panning { cursor: grabbing; }
.imm-zoom-ctrl {
  position: absolute; right: 10px; bottom: 10px; z-index: 6;
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 3px; box-shadow: var(--shadow-sm);
}
.imm-zoom-ctrl button {
  width: 30px; height: 30px; border: none; background: transparent; color: var(--color-text);
  cursor: pointer; border-radius: 7px; display: grid; place-items: center; transition: background .14s, color .14s;
}
.imm-zoom-ctrl button:hover { background: var(--color-surface); color: var(--color-accent); }
.imm-zoom-ctrl button:active { transform: scale(0.92); }

/* 진입 튜토리얼 (딤 + 설명) — 3초 후 페이드아웃 */
.imm-tut {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 22px;
  background: rgba(18, 20, 24, 0.62); color: #fff;
  opacity: 1; transition: opacity 0.6s ease; pointer-events: none;
}
.imm-tut p { margin: 0; font-size: 0.9rem; line-height: 1.65; font-weight: 500; max-width: 92%; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.imm-tut.is-hiding { opacity: 0; }
.imm-build-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--color-border-light); padding-top: 12px;
}
.imm-build-price span { font-size: 0.82rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imm-build-price b { font-size: 1.2rem; font-weight: 650; flex: 0 0 auto; }
.imm-build-price b em { font-size: 0.8rem; font-weight: 500; font-style: normal; }
/* [ENGRAVE] 각인 추가금 내역 — 유료 각인을 골랐을 때만 표시 */
.imm-build-fee { margin: 5px 0 0; font-size: 0.72rem; color: var(--color-text-muted); text-align: right; }
.imm-build-fee[hidden] { display: none; }

/* 우: config */
.imm-config { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* 과정바 (가로, 색상상자 없음, 좌우 스크롤 없이 wrap) */
.imm-process {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 14px; padding: 12px;
}
.imm-pb {
  flex: 1 1 108px; min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 11px; cursor: pointer; text-align: left;
  background: var(--color-surface); border: 1.5px solid transparent; color: var(--color-text); font: inherit;
}
.imm-pb:hover { background: var(--color-border-light); }
.imm-pb.active { border-color: #3FE0B0; background: rgba(63,224,176,0.12); }
.imm-pb.locked { opacity: 0.45; cursor: default; }
.imm-pb-dot {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-border);
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: var(--color-text-dim); background: var(--color-white);
}
.imm-pb.done .imm-pb-dot { border-color: #3FE0B0; background: #3FE0B0; color: #04231a; }
.imm-pb-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.imm-pb-kr { font-size: 0.8rem; font-weight: 600; }
.imm-pb-val { font-size: 0.7rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* [리스트 | 상세] */
.imm-config-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,400px); gap: 14px; align-items: start; }

.imm-list-panel {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  max-height: calc(100vh - var(--gnb-height) - 130px);
}
.imm-list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 13px; border-bottom: 1px solid var(--color-border-light); }
.imm-list-head h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.imm-list-count { font-size: 0.76rem; color: var(--color-text-muted); }
.imm-list-nav { margin-left: auto; display: flex; gap: 8px; }
.imm-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 5px; }

/* ── 세련된 스크롤바 (스크롤 영역 공통) ── */
.imm-list, .imm-order, .imm-config {
  scrollbar-width: thin;                                  /* Firefox */
  scrollbar-color: rgba(120,120,128,0.35) transparent;
}
.imm-list::-webkit-scrollbar,
.imm-order::-webkit-scrollbar { width: 9px; height: 9px; }
.imm-list::-webkit-scrollbar-track,
.imm-order::-webkit-scrollbar-track { background: transparent; }
.imm-list::-webkit-scrollbar-thumb,
.imm-order::-webkit-scrollbar-thumb {
  background: rgba(120,120,128,0.32);
  border-radius: 999px;
  border: 2.5px solid transparent;      /* 안쪽 여백 → 얇고 둥근 느낌 */
  background-clip: padding-box;
  transition: background-color .18s ease;
}
.imm-list::-webkit-scrollbar-thumb:hover,
.imm-order::-webkit-scrollbar-thumb:hover {
  background: rgba(63,224,176,0.75);      /* 호버 시 민트 포인트 */
  background-clip: padding-box;
}
.imm-list-empty { padding: 30px 16px; text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }

.imm-opt {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--color-surface); transition: border-color .14s, background .14s;
}
.imm-opt:hover { background: var(--color-border-light); }
.imm-opt.viewing { border-color: var(--color-text-dim); }
.imm-opt.selected { border-color: #3FE0B0; background: rgba(63,224,176,0.12); box-shadow: 0 0 0 3px rgba(63,224,176,0.1); }
.imm-opt-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--color-surface); display: grid; place-items: center; position: relative; }
.imm-opt-thumb img { width: 100%; height: 100%; object-fit: contain; }
.imm-opt-thumb .color-swatch { width: 100%; height: 100%; }
.imm-opt-thumb .hands-set-thumb { width: 100%; height: 100%; }
.imm-opt-name { font-size: 0.88rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.imm-opt-check { margin-left: auto; color: #12b98a; opacity: 0; flex: 0 0 auto; display: inline-flex; }
.imm-opt.selected .imm-opt-check { opacity: 1; }

/* 주문 단계 — 구성 요약(중간) */
.imm-order { padding: 16px; overflow-y: auto; }

/* 주문 폼 패널 (오른쪽) */
.imm-order-form-panel {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px;
  padding: 16px 18px; position: sticky; top: calc(var(--gnb-height) + 12px);
}
.imm-order-form-panel[hidden] { display: none; }
.imm-order-form-head { font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; }

/* 폼 필드 (구성요약/폼패널 어디에 있든) */
.order-form .form-group { margin-bottom: 12px; }
.order-form .form-label { display: block; font-size: 0.8rem; margin-bottom: 5px; color: var(--color-text-muted); }
.order-form .form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-white); color: var(--color-text); font: inherit; }
.order-form textarea.form-input { min-height: 70px; resize: vertical; }

/* 구성 요약 (컴팩트) — 주문 폼 하단 */
.imm-order-recap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border-light); }
.imm-order-recap-title { font-size: 0.76rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 8px; letter-spacing: 0.03em; }
.recap-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.8rem; }
.recap-row:last-child { border-bottom: none; }
.recap-dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.recap-label { flex: 0 0 auto; color: var(--color-text-muted); min-width: 42px; }
.recap-name { margin-left: auto; text-align: right; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imm-order-recap .order-total { margin-top: 10px; }

/* 주문단계 — 리스트패널에 넣는 구성요약 + 합계 + 버튼 */
.imm-order-review { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.imm-order-review .order-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--color-border-light); }
.imm-order-actions { display: flex; gap: 10px; margin-top: 4px; }
.imm-order-actions .imm-order-btn { flex: 1; padding: 14px 10px; font-size: 0.98rem; text-align: center; border-radius: 12px; }

/* 공용 상세 패널 */
.imm-detail-panel {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden;
  position: sticky; top: calc(var(--gnb-height) + 12px);
}
.imm-detail-panel.is-hidden { display: none; }
.imm-detail-hero { position: relative; aspect-ratio: 1/1; background: var(--color-surface); display: grid; place-items: center; border-bottom: 1px solid var(--color-border-light); padding: 18px; overflow: hidden; }
.imm-detail-thumb { width: 100%; height: 100%; display: grid; place-items: center; transform-origin: center center; will-change: transform; transition: transform 0.12s ease; }
.imm-detail-hero.is-panning .imm-detail-thumb { transition: none; }
.imm-detail-hero.is-zoomed { cursor: grab; }
.imm-detail-hero.is-panning { cursor: grabbing; }
.imm-detail-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.imm-detail-thumb .color-swatch { width: 78%; height: 78%; border-radius: 12px; }
.imm-detail-thumb .hands-set-thumb { width: 90%; height: 90%; }
.imm-detail-tag { position: absolute; top: 12px; left: 12px; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-white); border: 1px solid var(--color-border); padding: 3px 9px; border-radius: 999px; }
.imm-detail-hero .option-info-btn { top: 11px; right: 11px; }
.imm-detail-body { padding: 20px 18px 22px; }
.imm-detail-name { font-size: 1.08rem; font-weight: 650; margin: 0 0 4px; }
.imm-detail-sub { font-size: 0.78rem; color: var(--color-text-muted); margin: 0 0 10px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.imm-detail-desc { font-size: 0.87rem; color: var(--color-text); margin: 0; white-space: pre-line; }

/* 리스트 헤더 nav 버튼 */
.imm-list-nav .btn { font: inherit; font-size: 0.84rem; font-weight: 600; padding: 9px 14px; border-radius: 10px; cursor: pointer; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); transition: transform .14s ease, box-shadow .18s ease, filter .14s ease, border-color .14s ease; }
.imm-list-nav .btn-ghost:hover { border-color: var(--color-text-dim); }
.imm-list-nav .btn:hover { transform: translateY(-1px); }
.imm-list-nav .btn:active { transform: translateY(0) scale(.975); }
.imm-list-nav #btn-next { min-width: 150px; padding-left: 24px; padding-right: 24px; }
.imm-list-nav .btn-primary { background: #1A1A1A; border-color: #1A1A1A; color: #fff; position: relative; overflow: hidden; }
.imm-list-nav .btn-primary:not(.imm-btn-disabled)::before { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,.06) 45%,transparent 62%); }
.imm-list-nav .btn-primary:not(.imm-btn-disabled)::after { content:''; position:absolute; top:-30%; left:0; width:38%; height:160%; pointer-events:none; background:linear-gradient(100deg,transparent,rgba(255,255,255,.6) 50%,transparent); transform:skewX(-18deg) translateX(-280%); animation:immBtnGlass 3.6s cubic-bezier(.7,0,.18,1) infinite; }
@keyframes immBtnGlass { 0%{transform:skewX(-18deg) translateX(-280%);opacity:0;}8%{opacity:1;}30%{transform:skewX(-18deg) translateX(360%);opacity:1;}38%{opacity:0;}100%{transform:skewX(-18deg) translateX(360%);opacity:0;} }
@media (prefers-reduced-motion:reduce){ .imm-list-nav .btn-primary::after{animation:none;opacity:0;} .imm-list-nav .btn{transition:none;} }

/* ── [PIN] 고정 파츠 안내 바 (리스트 상단) ── */
.imm-pin-note {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  margin: 8px 8px 0; padding: 9px 11px;
  background: rgba(63, 224, 176, 0.1);
  border: 1px solid rgba(63, 224, 176, 0.45);
  border-radius: 11px;
  font-size: 0.78rem; line-height: 1.45; color: var(--color-text);
}
.imm-pin-note[hidden] { display: none; }
.imm-pin-note.is-off { background: var(--color-surface); border-color: var(--color-border); }
.imm-pin-ico { flex: 0 0 auto; display: inline-flex; color: #12b98a; }
.imm-pin-note.is-off .imm-pin-ico { color: var(--color-text-muted); }
.imm-pin-note-text { min-width: 0; }
.imm-pin-note-text b { font-weight: 650; }
.imm-pin-toggle {
  margin-left: auto; flex: 0 0 auto; font: inherit; font-size: 0.74rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--color-border); background: var(--color-white); color: var(--color-text);
  transition: border-color .14s ease, color .14s ease;
}
.imm-pin-toggle:hover { border-color: var(--color-text-dim); color: var(--color-accent); }

/* ── [PIN] 진입 안내 모달 ── */
.imm-pin-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.imm-pin-modal[hidden] { display: none; }
.imm-pin-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.imm-pin-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px;
  background: var(--color-white); border-radius: 18px;
  padding: 30px 26px 22px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  animation: immPinIn .32s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes immPinIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .imm-pin-box { animation: none; } }
.imm-pin-x {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  display: grid; place-items: center; border: none; background: none; cursor: pointer;
  color: var(--color-text-muted); border-radius: 50%;
}
.imm-pin-x:hover { color: var(--color-text); background: var(--color-surface); }
.imm-pin-thumb {
  width: 96px; height: 96px; margin: 0 auto 16px;
  border-radius: 14px; overflow: hidden; background: var(--color-surface);
  border: 1px solid var(--color-border); display: grid; place-items: center; position: relative;
}
.imm-pin-thumb img { width: 100%; height: 100%; object-fit: contain; }
.imm-pin-thumb .color-swatch { width: 100%; height: 100%; }
.imm-pin-thumb .hands-set-thumb { width: 100%; height: 100%; }
.imm-pin-eyebrow {
  margin: 0 0 6px; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.imm-pin-title { margin: 0 0 10px; font-size: 1.06rem; font-weight: 650; line-height: 1.4; }
.imm-pin-desc { margin: 0 0 10px; font-size: 0.88rem; line-height: 1.6; color: var(--color-text-secondary); white-space: pre-line; }
.imm-pin-hint { margin: 0 0 20px; font-size: 0.76rem; line-height: 1.5; color: var(--color-text-muted); }
.imm-pin-cta {
  width: 100%; font: inherit; font-size: 0.94rem; font-weight: 600;
  padding: 13px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid #1A1A1A; background: #1A1A1A; color: #fff;
  transition: transform .14s ease, box-shadow .18s ease;
}
.imm-pin-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.imm-pin-cta:active { transform: translateY(0) scale(.985); }
.imm-pin-free {
  margin-top: 10px; font: inherit; font-size: 0.78rem; color: var(--color-text-muted);
  background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.imm-pin-free:hover { color: var(--color-text); }

/* 반응형 — 좁으면 세로 스택 */
@media (max-width: 1100px) {
  .imm-customizer.imm-builder { grid-template-columns: 1fr; padding: 14px; }
  .imm-build-sticky { position: static; }
  .imm-build .preview-container { max-width: 240px; margin: 0 auto; }
  .imm-config-cols { grid-template-columns: 1fr; }
  .imm-detail-panel, .imm-order-form-panel { position: static; }
  .imm-list-panel { max-height: none; }
  .imm-list { max-height: 55vh; }
}

@media (max-width: 640px) {
  .imm-pin-note { flex-wrap: wrap; }
  .imm-pin-toggle { margin-left: 0; }
  .imm-pin-box { padding: 26px 20px 20px; }
  .imm-pin-thumb { width: 80px; height: 80px; }
}
