/* ============================================================
   제품 상세(/products/{slug}) 전용 스타일 — products/[slug].vue 이식
   ============================================================ */
.sec { padding: 84px 0 110px; background: #fff; }
.detail-top { display: flex; gap: 64px; align-items: flex-start; }

/* gallery */
.gallery { width: 56%; flex: none; }
.main-image {
  position: relative; background: var(--bg-thumb); border-radius: 12px;
  height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.main-image img { max-height: 82%; max-width: 90%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(14, 27, 47, 0.14)); }
/* 갤러리 이미지 전환 (Vue <transition name="gfade"> 대체) */
.main-image img { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.main-image img.is-fading { opacity: 0; transform: scale(0.97); }
.tags { position: absolute; left: 24px; top: 24px; display: flex; gap: 7px; }
.pill {
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 13px; font-weight: 700; font-size: 11px; color: var(--body-3);
}
.pill.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.pill.blue { background: var(--bg-chip); border-color: var(--bg-chip); color: var(--primary); font-size: 13px; }
.thumbs { margin-top: 16px; display: flex; gap: 12px; }
.thumb {
  width: 96px; height: 78px; border-radius: 8px; overflow: hidden; flex: none;
  background: var(--bg-thumb); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--primary); }
.thumb img { max-width: 88%; max-height: 88%; object-fit: contain; }

/* info */
.detail-info { flex: 1; min-width: 0; }
.detail-info .name { margin-top: 16px; color: var(--ink); font-size: clamp(32px, 3vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.detail-info .tg { margin-top: 14px; color: var(--body); font-size: 16px; line-height: 1.72; letter-spacing: -0.01em; }
.spec-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.spec-chips .s {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 20px; display: flex; flex-direction: column; gap: 7px;
}
.spec-chips span { color: #7c899b; font-size: 12.5px; }
.spec-chips b { color: #28394f; font-weight: 700; font-size: 15px; }
.price-box { margin-top: 30px; background: var(--navy); border-radius: 8px; padding: 26px 30px; }
.price-box .pr { display: flex; align-items: baseline; gap: 14px; }
.price-box .pr span { color: #9fb0c6; font-size: 14px; }
.price-box .pr strong { color: var(--primary-light); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price-box p { margin-top: 10px; color: #8093ab; font-size: 13.5px; letter-spacing: -0.01em; }
.detail-info .btns { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-info .b1 { flex: 1; min-width: 200px; padding: 19px 0; font-size: 16px; }
.detail-info .btn-outline { padding: 19px 26px; font-size: 15px; }
.btn-tel { background: #f3f7fd; color: var(--ink); padding: 19px 22px; font-size: 15px; font-weight: 700; }
.btn-tel:hover { background: #e8f0fa; }

/* spec table */
.spec-head { margin-top: 72px; display: flex; align-items: center; gap: 24px; }
.spec-head h2 { color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.spec-head .rule { flex: 1; height: 1px; background: var(--line-4); }
.spec-table {
  margin-top: 28px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 40px;
}
.t-hr { height: 1px; background: var(--line); }
.trow { display: flex; gap: 40px; padding: 20px 0; }
.trow .cell { flex: 1; display: flex; align-items: center; gap: 20px; min-width: 0; }
.trow .cell span { width: 120px; flex: none; color: #7c899b; font-weight: 700; font-size: 14.5px; }
.trow .cell b { color: #28394f; font-weight: 700; font-size: 15.5px; }

/* related */
.rel-head { margin-top: 72px; }
.related { margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.n-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(14, 27, 47, 0.08); padding-bottom: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.n-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(14, 27, 47, 0.12); }
.n-card .thumb2, .n-card .thumb { width: 100%; height: 212px; background: var(--bg-thumb); display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; }
.n-card .thumb img { max-height: 84%; max-width: 94%; object-fit: contain; }
.n-card .b { padding: 22px 22px 0; }
.n-card strong { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.n-card p { margin-top: 8px; color: var(--body); font-size: 13px; line-height: 1.65; letter-spacing: -0.01em; }
.n-card .br { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.n-card .br .pill.blue { font-size: 12px; padding: 6px 13px; }
.n-card .more { color: #7c899b; font-weight: 500; font-size: 12.5px; transition: color 0.2s; }
.n-card:hover .more { color: var(--primary); }

/* responsive */
@media (max-width: 1240px) {
  .detail-top { flex-direction: column; }
  .gallery { width: 100%; }
  .related { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sec { padding: 60px 0 80px; }
  .main-image { height: 400px; }
  .trow { flex-direction: column; gap: 0; padding: 0; }
  .trow .cell { padding: 16px 0; }
  .trow .cell + .cell { border-top: 1px solid var(--line); }
  .spec-table { padding: 6px 22px; }
  .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .related { grid-template-columns: 1fr; }
  .main-image { height: 300px; }
  .thumbs { flex-wrap: wrap; }
  .detail-info .btns .btn { width: 100%; flex: none; }
}
