/* ===== Enbowl 볼 상세 정적 페이지 — index.css 토큰 재사용 (JS 의존 없음) ===== */

.ball-wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* nav 앱 다운로드 버튼 (정적 링크) */
.nav-cta {
  display: inline-flex; align-items: center; background: var(--orange); color: #fff !important;
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-deep); }

/* 빵부스러기 */
.breadcrumb { font-size: 13px; color: var(--sub); padding: 22px 0 10px; line-height: 1.7; }
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 6px; color: #C4CAD2; }
.breadcrumb .cur { color: var(--body); }

/* 히어로 */
.ball-hero { text-align: center; padding: 12px 0 8px; }
.ball-imgwrap { width: 240px; height: 240px; margin: 0 auto 22px; border-radius: 50%; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; }
.ball-imgwrap img { width: 200px; height: 200px; object-fit: contain; }
.ball-brandyear { font-size: 14px; color: var(--sub); margin-bottom: 8px; }
.ball-title { font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.3; color: var(--text); }
.ball-en { font-size: 15px; color: var(--sub); margin-top: 6px; }

/* 무게 칩 */
.weights { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 26px 0 22px; }
.wchip { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--body); background: #fff; cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.wchip:hover:not(.off):not(.sel) { border-color: var(--orange); color: var(--orange); }
.wchip.sel { background: var(--orange); color: #fff; border-color: var(--orange); }
.wchip.off { color: #C4CAD2; background: var(--gray-bg); border-color: var(--line); cursor: default; }

/* 스펙 표 */
.specs { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 26px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.spec-row:first-child { border-top: none; }
.spec-k { color: var(--sub); }
.spec-v { color: var(--text); font-weight: 600; text-align: right; }

/* 자동 생성 문장 */
.ball-desc { font-size: 16px; color: var(--body); line-height: 1.85; text-align: center; padding: 4px 0 34px; }

/* 리뷰 섹션 */
.review-sec { background: var(--gray-bg); border-radius: 20px; padding: 28px 24px; margin: 0 0 30px; }
.review-title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); }
.review-sub { font-size: 14px; color: var(--sub); margin-top: 4px; }
.rating-row { display: flex; align-items: center; gap: 12px; margin: 20px 0 22px; }
.rating-num { font-size: 40px; font-weight: 700; letter-spacing: -1px; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.rating-stars { font-size: 20px; letter-spacing: 1px; display: inline-flex; }
.rating-stars .star { position: relative; display: inline-block; color: #D6DBE0; }
.rating-stars .star.full { color: var(--orange); }
.rating-stars .star.half::before { content: "\2605"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--orange); }
.hook-dist { display: flex; flex-direction: column; gap: 10px; }
.hook-row { display: flex; align-items: center; gap: 10px; }
.hook-label { flex: 0 0 60px; font-size: 12px; color: var(--body); }
.hook-track { flex: 1; height: 10px; background: #E7ECF0; border-radius: 5px; overflow: hidden; }
/* display:block 필수 — <span>은 기본 inline이라 인라인 width가 무시됨(막대 0의 원인).
   width 는 각 페이지 HTML의 인라인 style(예: style="width:41%")에 최종값으로 박혀 있음 → JS 없이도 표시. */
.hook-fill { display: block; height: 100%; background: var(--orange); border-radius: 5px; transition: width .5s ease; }
.hook-pct { flex: 0 0 38px; text-align: right; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.review-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.review-cta p { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px; }

/* 첫 리뷰 유도(리뷰 없음) */
.review-empty { text-align: center; }
.review-empty .review-title { margin-bottom: 6px; }

/* 스토어 버튼 (정적) */
.store-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 7px; background: #191F28; color: #fff !important; padding: 13px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.store-btn.play { background: #191F28; }
.store-btn.ios { background: #FF7200; }
.store-btn:hover { filter: brightness(1.08); }

/* 같은 브랜드 추천 */
.recs { margin: 0 0 10px; }
.recs-title { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); margin-bottom: 16px; }
.recs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px; text-align: center; background: #fff; }
.rec-card:hover { border-color: var(--orange); }
.rec-img { width: 72px; height: 72px; border-radius: 50%; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rec-img img { width: 100%; height: 100%; object-fit: contain; }
.rec-name { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }

/* 돌아가기 */
.back-link { display: block; text-align: center; padding: 4px 0 48px; font-size: 15px; font-weight: 600; color: var(--sub); }
.back-link:hover { color: var(--orange); }

/* 하단 CTA */
.ball-cta { text-align: center; padding: 20px 0 40px; }
.ball-cta h2 { font-size: 26px; font-weight: 700; letter-spacing: -1px; color: var(--text); margin-bottom: 22px; }

@media (max-width: 480px) {
  .ball-title { font-size: 27px; }
  .ball-imgwrap { width: 200px; height: 200px; }
  .ball-imgwrap img { width: 168px; height: 168px; }
}
@media (max-width: 420px) {
  .recs-grid { grid-template-columns: repeat(2, 1fr); }
}
