/* ==========================================================================
   WZ-MED-002 그누보드 보정 — 원본 icons.css·surgery-kr.css 뒤에 붙습니다. 원본 규칙은 고치지 않고, 원본에 없는 것만 더합니다.
   1) 그누보드 때문에 바뀐 태그의 원본 모양(메인 첫 슬라이드 제목 h1, 상품 이름 h1)
   2) 키트 공통 CSS와 겹치는 것(그누보드 기본 .btn 높이, 폼 요소 글꼴)
   3) 그누보드가 더하는 것(고객센터 화면 틀·쪽 번호·캡차·개인정보 동의·관리자 버튼·댓글 얼굴 자리·별점)
   ========================================================================== */

/* 1) 메인 첫 슬라이드 제목: 원본 div.slide-txt1 → h1(원본 메인에 h1 없음). 원본 #mainSlider .slide-txt1이 글꼴·크기·색을 정하고, h1 태그 규칙의 아래 여백만 원래 div 값으로 */
#mainSlider h1.slide-txt1 { margin: 0; }
/* 상품 상세 이름: 원본 h2.product-block-title → h1(이 화면의 제목). 원본 h1·h2 태그 규칙은 같은 값이라 모양 같음 */

/* 2-1) 키트 g5-compat.css(그누보드 기본 default.css)의 .btn 높이·줄 높이(35px)가 원본 알약 단추에 남지 않게(우선순위 0 — 원본 .btn 값이 이김, ORIGINAL.md 11절) */
:where(.wz-original) :where(.btn) { height: auto; }
/* 2-2) 키트 wz-base.css의 폼 요소 font: inherit가 원본 화면(머리·바닥·팝업·원본 본문)의 단추·입력칸을 바꾸지 않게(우선순위 0) */
:where(.wz-original) :where(.header, .footer, .modal, main > :not(.page-content), main > .page-content > :not(.nlb-g5)) :where(button, input, select, textarea) { font: revert; }

/* 3-1) 원본에 없는 그누보드 화면(고객센터 게시판·회원·1:1 문의·글쓰기)의 틀 = 원본 서브 페이지 첫 구역(section.page-content-first) — 아래 여백·최소 높이 */
.nlb-g5 { padding-bottom: 90px; min-height: 420px; }
@media (max-width: 767px) { .nlb-g5 { padding-bottom: 60px; } }
.nlb-g5 .wz-fit-subnav { margin-bottom: 36px; flex-wrap: wrap; justify-content: center; }
:is(.nlb-g5, .wz-fit) textarea.form-control { min-height: 160px; }
.nlb-label { display: block; margin-bottom: 6px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--surg-heading); }
.nlb-card { border-radius: 6px; }
/* 작은 표시(키트 'tag' — 분류·답변 상태·공지·비밀 댓글): 원본 해시태그 알약(.tags-list a)을 틸로 채운 작은 판 */
.nlb-tag { display: inline-block; padding: 3px 11px; border-radius: 14px; background: var(--surg-teal); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; }
/* 키트 쪽 번호(nav > a — li 없음): 원본 .page-item .page-link와 같은 네모 */
.nlb-pages { justify-content: center; }
.nlb-pages > .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #e0e0e0; color: var(--surg-heading); font-weight: 600; font-size: 14px; }
.nlb-pages > .page-link.active, .nlb-pages > .page-link:hover { background: var(--surg-teal); border-color: var(--surg-teal); color: #fff; }
/* 키트 탭(.nav-pills)·사진 카드(.blog-post) 간격 */
.nlb-tabs { justify-content: center; margin-bottom: 30px; }
.nlb-post-body { padding-top: 14px; }
.wz-fit .blog-post.nlb-post .post-image { position: relative; overflow: hidden; }
.wz-fit .blog-post.nlb-post .post-title { font-size: 19px; line-height: 1.4; }

/* 3-2) 관리자에게만 보이는 단추·빈 목록 안내 */
.nlb-admin { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; }
.nlb-empty { padding: 40px 0; margin: 0; text-align: center; color: var(--surg-text); }

/* 3-3) 상담 폼(오시는 길·시술 상세 빠른 문의·후기 작성·칼럼 질문): 그누보드 캡차·개인정보 동의를 원본 입력칸 모양으로.
   자동등록방지는 숫자 그림·듣기·새로고침 한 줄, 입력칸은 다음 줄 전체 폭 */
.nlb-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.nlb-captcha #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nlb-captcha #captcha #captcha_img { order: 1; display: inline-block; height: 46px; width: auto; border: 1px solid #dcdcdc; border-radius: 3px; }
.nlb-captcha #captcha #captcha_mp3,
.nlb-captcha #captcha #captcha_reload { width: 46px; height: 46px; border: 1px solid #dcdcdc; border-radius: 3px; background: #fff; color: var(--surg-teal); }
.nlb-captcha #captcha #captcha_mp3 { order: 2; }
.nlb-captcha #captcha #captcha_reload { order: 3; }
.nlb-captcha #captcha #captcha_key { order: 4; flex: 1 1 100%; width: auto; height: 46px; padding: 10px 15px; border: 1px solid #dcdcdc; border-radius: 3px; background: #fff; font-size: 14.5px; color: var(--surg-heading); }
.nlb-captcha #captcha #captcha_key:focus { outline: none; border-color: var(--surg-teal); }
.nlb-captcha #captcha #captcha_info { order: 5; flex-basis: 100%; font-size: 13px; color: var(--surg-text); letter-spacing: 0; }
/* 원본 img { height: auto }가 그누보드 캡차 그림(1×1 크기 속성)을 지우지 않게(키트 wz-fit 글쓰기·회원가입 캡차까지 — ORIGINAL.md 18절) */
#captcha #captcha_img { width: auto; height: 46px; }
.question-box .nlb-captcha { margin-bottom: 10px; }
.question-box .nlb-captcha #captcha_key { margin-bottom: 0; }
.nlb-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.6; }
.nlb-consent input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--surg-teal); }
.nlb-consent a { color: var(--surg-teal); text-decoration: underline; }
.question-box .nlb-consent { margin-bottom: 4px; font-size: 13px; }
.nlb-prefill-note, .nlb-modal-note { margin: 0 0 14px; padding: 12px 16px; border-radius: 4px; background: #e8f7f9; color: #217a89; font-size: 14px; line-height: 1.6; }
.nlb-modal-note { margin: 14px 0 0; padding: 8px 12px; font-size: 13px; }
.nlb-check { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 0 0; font-size: 14px; }
.nlb-check input { width: 16px; height: 16px; accent-color: var(--surg-teal); }
.nlb-inquiry-info { margin-bottom: 26px; }
.nlb-inquiry-info p { margin: 0; }
/* 후기 별점 고르기(원본 fieldset.review-rating — 원본 CSS에 모양이 없어 기본 동그라미): 고르는 단추 사이 간격만 */
.review-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0 0 0 10px; }
.review-rating label.full::before { content: "★"; font-size: 22px; color: #d6d6d6; cursor: pointer; }
.review-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-rating input:checked ~ label.full::before, .review-rating label.full:hover::before, .review-rating label.full:hover ~ label.full::before { color: var(--surg-teal); }
.review-rating input:focus-visible + label.full::before { outline: 2px solid var(--surg-teal); outline-offset: 2px; }

/* 3-4) 댓글·구매 리뷰의 얼굴 사진 자리(그누보드 댓글에는 사진이 없음): 이름 첫 글자 원 — 원본 사진 크기(70·64px) 그대로 */
.nlb-userpic { display: flex; align-items: center; justify-content: center; flex: none; width: 70px; height: 70px; border-radius: 50%; background: var(--surg-grey-bg); color: var(--surg-teal); font-family: var(--font-heading); font-size: 24px; font-weight: 600; }
.review-box-photo.nlb-userpic { width: 64px; height: 64px; background: #fff; }
.comment.comment-reply[style] { margin-left: calc(40px * var(--nlb-depth, 1)); }
.comments-block .comment .reply + .reply { margin-left: 14px; }
.nlb-comment-closed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--surg-text); }
/* 별점: 원본은 늘 5개 채움 — 별점 수보다 많은 별은 흐리게 */
.star-rating .icon-star.is-off { opacity: 0.25; }

/* 3-5) 디자인 데모 상단 바가 있을 때 스크롤 고정 머리(.header-content.stuck — top: 0)를 그 아래로 */
body:has(> .wz-demo-bar) .header-content.stuck { top: var(--wz-demo-offset, 0px); }

/* 3-6) 사진 없는 글 썸네일(wz_noimg)·약관 예시 문안 안내: 원본 틸에 맞춤 */
.wz-noimg, .wz-policy-note { --wz-noimg-accent: var(--surg-teal); --wz-policy-accent: var(--surg-teal); }

/* 3-7) 칼럼 사진 칸 비율: 한 글의 사진 한 장을 목록형(770×440)·카드형·메인 카드(370×250)가 같이 씀 → 카드형·메인·사이드는 원본 칸 비율로 잘라 보임 */
:is(.blog-isotope, .blog-grid-full) .blog-post .post-image img { width: 100%; aspect-ratio: 370 / 250; object-fit: cover; }
.blog-post.post-preview .post-image img { aspect-ratio: 270 / 170; object-fit: cover; }
.footer-post-photo img { width: 65px; height: 65px; object-fit: cover; }
.prd-img img, .prd-sm-img img { object-fit: cover; }


/* ==========================================================================
   Medin Surgery (WZ-MED-002) Interactive & Visual Fidelity Restoration
   ========================================================================== */

/* 1. Hero Continuous Ken Burns Zoom & Multi-Layer Caption Stagger */
@keyframes nlbKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
#mainSlider .slide.active .img--holder {
  animation: nlbKenBurns 6.5s ease-out forwards !important;
}
@keyframes nlbSlideUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
#mainSlider .slide.active .slide-txt1 {
  animation: nlbSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
#mainSlider .slide.active .slide-txt2 {
  animation: nlbSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
#mainSlider .slide.active .slide-btn {
  animation: nlbSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* 2. Signature 3-Column Before & After Gallery Showcase (Reference Fidelity) */
.nlb-ba-showcase {
  position: relative;
}
.nlb-ba-slide {
  display: none;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: stretch;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
  border: 1px solid #eceff2;
}
.nlb-ba-slide.is-active {
  display: grid;
  animation: nlbBaFade 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes nlbBaFade {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.nlb-ba-photo {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: #f4f6f8;
}
.nlb-ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.nlb-ba-photo:hover img {
  transform: scale(1.05);
}
.nlb-ba-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(34, 42, 48, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nlb-ba-badge--after {
  left: auto;
  right: 16px;
  background: #49B0C1;
}
.nlb-ba-story {
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}
.nlb-ba-story__sub {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #49B0C1;
  margin-bottom: 8px;
}
.nlb-ba-story__name {
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 6px;
}
.nlb-ba-story__name span {
  font-size: 15px;
  font-weight: 400;
  color: #888888;
}
.nlb-ba-story__proc {
  font-size: 16.5px;
  font-weight: 600;
  color: #49B0C1;
  margin: 0 0 16px;
}
.nlb-ba-story p {
  font-size: 14.5px;
  line-height: 1.72;
  color: #666666;
  margin: 0 auto 16px;
  max-width: 390px;
}
.nlb-ba-story__meta {
  font-size: 13.5px;
  color: #777777;
  margin-bottom: 20px;
}
.nlb-ba-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
@media (max-width: 991.98px) {
  .nlb-ba-slide.is-active {
    grid-template-columns: 1fr;
  }
  .nlb-ba-photo {
    min-height: 280px;
  }
}

/* 3. Smooth Service Rotator & Review Carousel Transitions */
@keyframes nlbReviewSlide {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}
.js-reviews-carousel .review {
  animation: nlbReviewSlide 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reviews-author-carousel .img-before img {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* 4. 개편 확장: 전후사례(nlb-cases) · 리얼후기(nlb-reviews) · 영카트5 케어몰 스타일 조화 */
.header-cart .nlb-header-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--surg-heading);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.header-cart .nlb-header-cart-link:hover {
  color: var(--surg-teal);
  background: var(--surg-grey-bg);
}
.header-cart .nlb-header-cart-link .wz-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surg-teal);
  color: rgb(255 255 255);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nlb-view-sec { padding-bottom: 80px; }
.nlb-case-col { margin-bottom: 32px; }
.nlb-case-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255);
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.05);
}
.nlb-case-slider img { width: 100%; height: 280px; object-fit: cover; }
.nlb-case-caption { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.nlb-case-title-link { color: inherit; text-decoration: none; }
.nlb-case-title-link:hover { color: var(--surg-teal); }
.nlb-case-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--surg-text); margin: 8px 0 4px; }
.nlb-view-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(0 0 0 / 0.08); }
.nlb-spec-card { background: var(--surg-grey-bg); padding: 28px 24px; border-radius: 8px; position: sticky; top: 100px; }
.nlb-spec-dl { display: grid; grid-template-columns: 92px 1fr; gap: 10px 12px; margin: 16px 0; font-size: 14px; }
.nlb-spec-dl dt { font-weight: 700; color: var(--surg-heading); }
.nlb-spec-dl dd { margin: 0; color: var(--surg-text); }
.nlb-med-notice { font-size: 12.5px; line-height: 1.65; color: var(--surg-text); margin-bottom: 18px; }

.nlb-review-card { height: calc(100% - 30px); display: flex; flex-direction: column; }
.nlb-review-selfie { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.nlb-review-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--surg-text); margin-top: 8px; }
.nlb-review-detail-img { border-radius: 8px; max-height: 460px; object-fit: cover; width: 100%; }
.nlb-review-home-link { color: inherit; text-decoration: none; }
.nlb-review-home-link:hover { color: var(--surg-teal); }

.nlb-shop-home-sec { padding: 80px 0; }
.nlb-shop-home-lead { max-width: 640px; margin: 12px auto 32px; color: var(--surg-text); }
.nlb-shop-home-card { background: rgb(255 255 255); border: 1px solid rgb(0 0 0 / 0.07); border-radius: 8px; padding: 16px 16px 22px; height: calc(100% - 30px); display: flex; flex-direction: column; }
.nlb-shop-home-card .prd-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.nlb-prd-basic { font-size: 13px; color: var(--surg-text); margin: 6px 0 10px; min-height: 38px; }
.nlb-prd-cust { font-size: 13px; font-weight: 400; opacity: 0.65; margin-right: 4px; }

.wz-shop-wrap {
  --wz-shop-accent: var(--surg-teal);
  --wz-shop-radius: 8px;
}
.wz-shop-wrap .btn_submit,
.wz-shop-wrap #sit_btn_buy {
  border-radius: 999px;
  background: var(--surg-teal);
  border-color: var(--surg-teal);
  color: rgb(255 255 255);
}
.wz-shop-wrap #sit_btn_cart,
.wz-shop-wrap #sit_btn_wish {
  border-radius: 999px;
}

