.content-wrap{
    width: 1280px;
    margin: 0 auto;
}

/* ════════════════════════════
   2컬럼 레이아웃
════════════════════════════ */
.detail-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding-bottom: 50px;
  }
   
  /* ════════════════════════════
     좌측 패널
  ════════════════════════════ */
  .left-panel {
    display: flex; flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 120px;
  }
   
  /* ── 상품 이미지 카드 ── */
  .product-img-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 16px 16px;
    background: #fff;

    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
.product-detail-img img{
    width: 100%;
} 

  /* ── 계산기 카드 ── */
  .calc-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 18px 18px;
    background: #fff;
  }
  .calc-title {
    font-size: 16px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 14px;
  }
   
  .calc-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
  .calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2px 0;
  }
  .calc-label { font-size: 14px; color: #666; }
  .calc-value { font-size: 14px; color: #222; }
  .calc-value.minus { color: #e4003a; }
  .calc-value.zero  { color: #999; }
   
  .calc-row.highlight {
    background: #f0eeff; border-radius: 6px;
    padding: 8px 10px; margin: 0 -2px;
  }
  .calc-label.bold { font-weight: 700; color: #1a1a1a; }
  .calc-value.bold  { font-weight: 700; }
  .calc-value.accent { color: #5046e4; font-size: 14px; }
   
  .calc-divider { height: 1px; background: #e8e8e8; margin: 12px 0; }
   
  .calc-total-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid #e8e8e8;
  }
  .calc-total-label { font-size: 14px; font-weight: 700; color: #1a1a1a; }
  .calc-total-value { font-size: 20px; font-weight: 800; color: #5046e4; letter-spacing: -0.5px; }
   
  .calc-notice {
    background: #f7f8fa; border-radius: 8px;
    padding: 12px 14px; margin: 14px 0 16px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .notice-interest { font-size: 12px; color: #5046e4; font-weight: 600; }
  .notice-sub       { font-size: 11px; color: #888; }
  .notice-check     { display: flex; align-items: center; gap: 6px; cursor: pointer; margin-top: 4px; }
  .notice-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: #5046e4; cursor: pointer; }
  .notice-check span { font-size: 12px; color: #3b3b3b; }
   
  /* 좌측 버튼 */
  .left-btns { display: flex; flex-direction: column; gap: 10px; }
   
  .btn-apply {
    width: 100%; height: 48px;
    background: #5046e4; color: #fff;
    border: none; border-radius: 8px;
    font-family: inherit; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: background 0.18s;
  }
  .btn-apply:hover { background: #3d35c8; }
   
  .btn-kakao {
    width: 100%; height: 48px;
    background: #f9e000; color: #3c1e1e;
    border: none; border-radius: 8px;
    font-family: inherit; font-size: 16px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: filter 0.15s;
  }
  .btn-kakao:hover { filter: brightness(0.96); }
   
  .btn-guide {
    width: 100%; height: 44px;
    background: #fff; color: #5046e4;
    border: 1.5px solid #5046e4; border-radius: 8px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background 0.18s;
  }
  .btn-guide:hover { background: #f0eeff; }

/* 신청 및 개통방법 모달 */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.guide-modal-overlay.is-open {
  display: flex;
}

.guide-modal {
  width: min(560px, 100%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  background: #f7f8fa;
}

.guide-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.guide-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.guide-modal-close:hover {
  background: #f0eeff;
  color: #5046e4;
}

.guide-modal-body {
  padding: 16px;
  max-height: 800px;
  overflow-y: scroll;
}

   
  /* ════════════════════════════
     우측 패널
  ════════════════════════════ */
  .right-panel {}
   
  .product-header { margin-bottom: 16px; }
  .product-name-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; line-height: 1.4; }
  .product-tag  { font-size: 14px; color: #666; margin-bottom: 12px; }
  .header-line  { border: none; border-top: 2px solid #5046e4; }
   
  /* ── 정보 테이블 ── */
  .info-table { border-top: none; }
   
  .info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid #e8e8e8;
    min-height: 52px;
    align-items: center;
  }
  .info-row:last-child { border-bottom: none; }
   
  .info-label {
    font-size: 14px; font-weight: 500; color: #3b3b3b;
    padding: 16px 16px 16px 0;
    display: flex; align-items: flex-start;
    line-height: 1.4;
  }
   
  .info-val {
    padding: 12px 0;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 14px; color: #1a1a1a;
    align-items: flex-start;
  }
   
  /* 라디오 버튼 그룹 */
  .btn-group-row { display: flex; flex-wrap: wrap; gap: 6px; }
   
  .radio-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }
   
  /* 실제 radio input 숨김 */
  .radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
  }
   
  /* 라디오 버튼 → 버튼처럼 보이는 span */
  .radio-btn > span {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: inherit; font-size: 14px; color: #3b3b3b;
    cursor: pointer; white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
  }
   
  .radio-btn:hover > span {
    border-color: #5046e4;
    color: #5046e4;
  }
   
  /* 선택된 상태 */
  .radio-btn input[type="radio"]:checked + span {
    background: #5046e4;
    border-color: #5046e4;
    color: #fff;
    font-weight: 600;
  }
   
  /* wide 변형 (지원형태) */
  .radio-btn.wide span { padding: 0 20px; }

  .radio-btn.wide .price-text { padding: 0 5px; display: inline; vertical-align: baseline; }
  .radio-btn.wide > span {
    display: inline-block;
    line-height: 34px;  /* height와 동일하게 */
  }
   
  /* TIP 행 */
  .tip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .tip-badge {
    font-size: 10px; font-weight: 800; color: #fff;
    background: #e4003a; border-radius: 3px;
    padding: 2px 5px; flex-shrink: 0;
  }
  .tip-text { font-size: 12px; color: #888; line-height: 1.4; }
   
  /* ── 색상 라디오 ── */
  .color-group { display: flex; gap: 10px; padding: 4px 0; }
   
  .color-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
  }
   
  /* radio input 숨김 */
  .color-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
  }
   
  /* 색상 원형 */
  .color-circle {
    display: block;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
   
  .color-radio:hover .color-circle {
    transform: scale(1.1);
  }
   
  /* 선택된 색상 */
  .color-radio input[type="radio"]:checked + .color-circle {
    border-color: #fff;
    outline-color: #5046e4;
    box-shadow: 0 0 0 2px rgba(80, 70, 228, 0.25);
    transform: scale(1.08);
  }

/* 색상 그룹과 선택된 색상명을 가로로 배치 */
.info-val > div.color-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.colorSelected {
  font-size: 14px;
  color: #3b3b3b;
}
   
  /* ── 요금제 목록 ── */
  .plan-row .info-val { padding: 8px 0; }
  .plan-list { display: flex; flex-direction: column; gap: 4px; width: 100%; }
   
  .plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    width: 100%;
  }
  .plan-item:hover { border-color: #b0a8f0; background: #fafaff; }
   
  /* radio input — 실제로 보이게 표시 */
  .plan-item input[type="radio"] {
    display: none;
  }
   
  .plan-name { font-size: 14px; font-weight: 600; color: #1a1a1a; flex-shrink: 0; }
  .plan-desc { font-size: 12px; color: #666; margin-left: auto; text-align: right; }
   
  /* 선택된 요금제 행 */
  .plan-item:has(input[type="radio"]:checked) {
    background: #f0eeff;
    border-color: #5046e4;
  }
  .plan-item:has(input[type="radio"]:checked) .plan-name { color: #5046e4; }
   
  /* 유심 */
  .usim-row .info-val { padding-top: 14px; }
   
  /* 추가혜택 */
  .extra-item {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; padding: 3px 0;
  }
  .extra-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #5046e4; cursor: pointer; }
  .extra-item span { font-size: 14px; color: #3b3b3b; }
  .extra-item.checked span { color: #5046e4; font-weight: 600; }
   
  /* 카드사 드롭다운 */
  .input-select {
    height: 36px; padding: 0 28px 0 10px;
    border: 1px solid #d5d5d5; border-radius: 6px;
    font-family: inherit; font-size: 14px; color: #222;
    background: #fafafa url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none; -webkit-appearance: none;
    cursor: pointer; outline: none;
  }
  .input-select:focus { border-color: #7c5ce0; }
   
  .card-notice { font-size: 12px; color: #999; margin-top: 4px; }
   

  .detail-product-info{
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .detail-product-info h2{
    font-size: 24px;
    color: #3b3b3b;
    font-weight: 500;
  }
  .detail-product-img {
    width: 100%;
  }
  .detail-product-img img{
    width: 100%;
  }

  .detail-info-wrap{
    padding: 50px;
    background-color: #F5F5F5;
  }
  .detail-info-wrap h3{
    font-size: 20px;
    color: #3b3b3b;
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 15px;
  }
  .detail-info-wrap p{
    font-size: 14px;
    color: #666;
    line-height: 180%;
  }
/* ════════════════════════════
   스텝 목록
════════════════════════════ */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
   
  /* ── 스텝 카드 ── */
  .step-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 22px 24px;
    transition: box-shadow 0.18s;
  }
  .step-card:hover {
    box-shadow: 0 2px 14px rgba(80, 70, 228, 0.08);
  }
   
  /* ── 스텝 헤더 (번호 + 제목) ── */
  .step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
   
  /* 번호 배지 */
  .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #5046e4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.2px;
  }
   
  /* 스텝 제목 */
  .step-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
  }
   
  /* 스텝 본문 */
  .step-body {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    word-break: keep-all;
  }



  @media (max-width: 1280px) {
    .content-wrap{
        width: 100%;
        padding: 0 20px;
    }
  }

  @media (max-width: 920px) {
    /* 2열 → 1열 */
  .detail-layout { grid-template-columns: 1fr; gap: 20px; }
 
  /* 이미지 카드 가로 배치 */
  .left-panel { flex-direction: row; position: relative; top : 0; }
  .product-img-card {
    width: 50%;
    height: fit-content;
    min-height: 100%;
  }
  .calc-card{
    width: 50%;
  }
  .info-row { grid-template-columns: 120px 1fr; }
 
  .radio-btn.wide span { padding: 0 12px; font-size: 12px; }
 
  .plan-item { flex-direction: row; flex-wrap: wrap; }
  .plan-desc { text-align: left; margin-left: 0; }
  .detail-product-info{
    margin: 30px 0;
  }
  .detail-info-wrap{
    padding: 30px;
  }
  .detail-product-info h2{
    font-size: 20px;
  }
  .product-name-title{
    font-size: 20px;
  }

  }

  @media (max-width: 520px) {
    .product-name { font-size: 16px; }
   
    .info-row { grid-template-columns: 90px 1fr; }
    .info-label { font-size: 12px; padding: 12px 8px 12px 0; }
    .info-val { font-size: 14px; padding: 10px 0; gap: 6px; }
   
    .radio-btn span { height: 30px; padding: 0 10px; font-size: 12px; }
    .radio-btn.wide span { font-size: 11px; padding: 0 8px; }
   
    .calc-title { font-size: 14px; }
    .calc-total-value { font-size: 18px; }
    .btn-apply, .btn-kakao { height: 44px; font-size: 14px; }
    .btn-guide { height: 40px; font-size: 14px; }

    .product-detail-img{
        height: 100%;
    }
  }