/* ==========================================================================
   SHL 컴포넌트
   1. 상단 띠 + 헤더
   2. 제품 머리말
   3. 상세 이미지 스택
   4. 인증 블록
   5. 본문 CTA
   6. 플로팅 구매바  ← 기존 버디케인 랜딩의 #shlFloatingBar 를 그대로 옮긴 것
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 상단 띠 + 헤더
   -------------------------------------------------------------------------- */
.shl-banner {
  background: var(--shl-navy);
  color: var(--shl-on-navy);
  text-align: center;
  padding: 12px 20px;
  font-size: var(--shl-fs-sm);
  font-weight: 700;
  letter-spacing: var(--shl-ls-tight);
  position: relative;
  z-index: 51;
}

.shl-header {
  position: sticky;
  top: 0;
  z-index: var(--shl-z-sticky);
  height: 62px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--shl-line-soft);
}
.shl-header__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--shl-gutter);
  display: flex;
  align-items: center;
  gap: 14px;
}
/* 로고는 실제 파일을 쓴다. 텍스트로 찍으면 브랜드 서체와 십자 마크가 없다 */
.shl-header__logo {
  display: block;
  height: clamp(26px, 4.6vw, 34px);
  width: auto;
}
.shl-header__sep { width: 1px; height: 18px; background: var(--shl-line); }
.shl-header__cat { font-size: var(--shl-fs-sm); color: var(--shl-ink-mute); }
.shl-header__back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--shl-fs-sm);
  color: var(--shl-ink-mute);
  min-height: 44px;              /* 터치 타깃 */
}
.shl-header__back svg { width: 16px; height: 16px; }
.shl-header__back:hover { color: var(--shl-navy); }

@media (min-width: 1024px) { .shl-header { height: 80px; } }

/* --------------------------------------------------------------------------
   2. 제품 머리말
   -------------------------------------------------------------------------- */
.shl-head { text-align: center; padding-block: var(--shl-gap-lg) var(--shl-gap); }
.shl-head__tags {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: var(--shl-gap-sm);
}
.shl-head__tag {
  font-size: var(--shl-fs-xs); font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--shl-line); color: var(--shl-ink-mute);
}
.shl-head__tag--line {
  background: var(--shl-navy); border-color: var(--shl-navy); color: var(--shl-on-navy);
}
.shl-head__name { margin-bottom: 10px; }
.shl-head__tagline { color: var(--shl-ink-mute); }
.shl-head__price {
  font-size: var(--shl-fs-h2); font-weight: 800;
  color: var(--shl-navy-deep); margin-top: var(--shl-gap);
  letter-spacing: var(--shl-ls-tight);
}
.shl-head__ship { font-size: var(--shl-fs-sm); color: var(--shl-ink-dim); margin-top: 4px; }

/* --------------------------------------------------------------------------
   3. 상세 이미지 스택
   원본이 860px 이라 그보다 넓히면 흐려진다. 가운데 정렬하고 폭을 묶는다.
   -------------------------------------------------------------------------- */
.shl-detail { max-width: var(--shl-col); margin-inline: auto; }
.shl-detail img { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   4. 인증 블록
   -------------------------------------------------------------------------- */
.shl-certs { background: var(--shl-paper-2); }
.shl-certs__h { text-align: center; margin-bottom: var(--shl-gap); }
.shl-certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: var(--shl-gap-sm);
}
.shl-certs__item {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  text-align: center;
  padding: var(--shl-gap-sm);
  background: var(--shl-paper);
  border: 1px solid var(--shl-line);
  border-radius: var(--shl-radius);
}
.shl-certs__item b { font-size: var(--shl-fs-sm); color: var(--shl-navy); }
.shl-certs__item span { font-size: var(--shl-fs-xs); color: var(--shl-ink-dim); }
.shl-certs__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: var(--shl-gap);
}
.shl-pill {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--shl-line); border-radius: 999px;
  font-size: var(--shl-fs-sm); color: var(--shl-ink-mute);
  background: var(--shl-paper);
}
.shl-pill:hover { border-color: var(--shl-teal); color: var(--shl-navy); }

/* --------------------------------------------------------------------------
   5. 본문 CTA
   -------------------------------------------------------------------------- */
.shl-cta-block { text-align: center; padding-block: var(--shl-section); }
.shl-cta-block .shl-caption { margin-bottom: var(--shl-gap-sm); }
.shl-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 44px;
  border-radius: var(--shl-radius-pill);
  background: linear-gradient(to right, var(--shl-teal-light), var(--shl-teal));
  color: #fff; font-size: var(--shl-fs-lead); font-weight: 800;
  letter-spacing: var(--shl-ls-tight);
  box-shadow: 0 4px 16px rgba(142, 209, 212, .3);
  transition: transform .25s var(--shl-ease), box-shadow .25s var(--shl-ease);
}
.shl-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(142, 209, 212, .4); }
.shl-cta:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   6. 플로팅 구매바

   루딕스 랜딩의 규격을 그대로 가져왔다. 바닥에 붙은 직사각형이 아니라
   화면에서 떠 있는 알약형이고, 테두리 글로우가 시선을 잡는다.
   치수(833x128, 버튼 232x76, 후기 76)는 루딕스 값 그대로 두고
   색만 SHL 로 바꿨다 — 검정 대신 네이비, 주황 대신 청록.
   순서: 정보 -> 구분선 -> [구매하기] -> [구매후기]
   -------------------------------------------------------------------------- */

.shl-floating {
  position: fixed;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: var(--shl-z-float);
  display: grid;
  grid-template-columns: 1fr 1px auto auto;
  align-items: center;
  column-gap: 26px;
  width: min(833px, calc(100vw - 16px));
  height: 128px;
  padding: 0 26px 0 0;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(ellipse at 84% 50%, rgba(95, 178, 188, 0.16), transparent 34%),
    linear-gradient(180deg, #23375c 0%, #131f36 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 2px rgba(95, 178, 188, 0.4),
    0 0 19px rgba(95, 178, 188, 0.3),
    0 10px 28px rgba(9, 16, 30, 0.45);
  overflow: hidden;
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.9,.3,1), visibility .4s ease;
}

.shl-floating.is-revealed {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 정보와 버튼 사이 세로 구분선 */
.shl-floating::before {
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.28), transparent);
  content: "";
}

.shl-floating__info {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-left: 64px;
  text-align: center;
}
.shl-floating__name {
  color: var(--shl-teal);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.shl-floating__price {
  margin-top: 10px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}

/* 구매하기 — 청록 그라데이션 알약 */
.shl-floating__buy {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 232px;
  height: 76px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 34%),
    radial-gradient(ellipse at 35% 62%, rgba(152, 219, 224, .8), transparent 47%),
    linear-gradient(90deg, #4a9da7 0%, #5fb2bc 58%, #8ed1d4 100%);
  box-shadow:
    inset 0 1px 0 rgba(235, 250, 251, .72),
    inset 0 -12px 21px rgba(20, 70, 78, .3),
    0 0 0 1px rgba(147, 214, 220, .76),
    0 0 20px rgba(95, 178, 188, .4);
  transition: filter .2s var(--shl-ease);
}
.shl-floating__buy:hover { filter: brightness(1.08); transform: none; }
.shl-floating__buy:active { filter: brightness(.94); transform: none; }

/* 구매후기 — 테두리 알약 */
.shl-floating__reviews {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 76px;
  min-width: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1.5px rgba(142, 209, 212, 0.6);
  color: #fff;
  white-space: nowrap;
  transition: background .2s ease;
}
.shl-floating__reviews:hover { background: rgba(255,255,255,.13); }
.shl-floating__reviews svg { width: 26px; height: 26px; flex: none; }
.shl-floating__reviews > span {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.shl-floating__reviews small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 859px) {
  .shl-floating {
    width: min(540px, calc(100vw - 12px));
    height: clamp(78px, 12.5vw, 96px);
    bottom: max(14px, env(safe-area-inset-bottom));
    column-gap: clamp(9px, 2.2vw, 18px);
    padding: 0 clamp(8px, 1.6vw, 14px) 0 0;
  }
  .shl-floating::before { height: clamp(42px, 7vw, 56px); }
  .shl-floating__info { padding-left: clamp(14px, 4.5vw, 34px); }
  .shl-floating__name { font-size: clamp(12px, 3.4vw, 17px); }
  .shl-floating__price { margin-top: 6px; font-size: clamp(19px, 5.2vw, 25px); }
  .shl-floating__buy {
    width: clamp(104px, 27vw, 150px);
    height: clamp(50px, 8.5vw, 64px);
    font-size: clamp(16px, 4.1vw, 22px);
  }
  .shl-floating__reviews {
    height: clamp(50px, 8.5vw, 64px);
    padding: 0 clamp(10px, 2.6vw, 16px);
    gap: 7px;
  }
  .shl-floating__reviews svg { width: clamp(20px, 5vw, 26px); height: clamp(20px, 5vw, 26px); }
  .shl-floating__reviews > span { font-size: clamp(12px, 3.3vw, 16px); }
  .shl-floating__reviews small { font-size: clamp(10px, 2.6vw, 11px); }
}

@media (max-width: 440px) {
  .shl-floating { column-gap: clamp(5px, 1.6vw, 9px); }
  .shl-floating__info { padding-left: clamp(7px, 2.4vw, 14px); }
  .shl-floating__name { font-size: clamp(9.5px, 2.9vw, 13px); }
  .shl-floating__price { font-size: clamp(17px, 4.6vw, 22px); }
  .shl-floating__buy { width: clamp(78px, 22.5vw, 116px); font-size: clamp(15px, 3.9vw, 21px); }
  .shl-floating__reviews { padding: 0 clamp(7px, 2vw, 12px); gap: 5px; }
  .shl-floating__reviews svg { width: clamp(18px, 4.6vw, 24px); height: clamp(18px, 4.6vw, 24px); }
  .shl-floating__reviews > span { font-size: clamp(11px, 3vw, 15px); }
  .shl-floating__reviews small { font-size: clamp(9px, 2.4vw, 11px); }
}

/* 플로팅바가 본문 마지막을 가리지 않도록 */
body { padding-bottom: 170px; }
@media (max-width: 859px) { body { padding-bottom: 120px; } }

/* --------------------------------------------------------------------------
   7. 구매후기
   자사몰에 실제로 등록된 구매평만 싣는다. 지어내지 않는다.
   -------------------------------------------------------------------------- */
.shl-rv-summary {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--shl-gap-lg) var(--shl-gap);
  background: var(--shl-paper-2);
  border: 1px solid var(--shl-line);
  border-radius: var(--shl-radius);
  margin-bottom: var(--shl-gap-lg);
  text-align: center;
}
.shl-rv-summary__stars { color: #ffb400; font-size: var(--shl-fs-h2); letter-spacing: 3px; line-height: 1; }
.shl-rv-summary__score { font-size: var(--shl-fs-h1); font-weight: 800; color: var(--shl-navy-deep); }
.shl-rv-summary__score span { font-size: var(--shl-fs-lead); font-weight: 400; color: var(--shl-ink-mute); }
.shl-rv-summary__count { font-size: var(--shl-fs-sm); color: var(--shl-ink-mute); }

.shl-rv-note {
  border: 1px solid var(--shl-line); border-radius: var(--shl-radius);
  padding: var(--shl-gap);
  margin-bottom: var(--shl-gap-lg);
  color: var(--shl-ink-mute); font-size: var(--shl-fs-sm); line-height: 1.7;
}
.shl-rv-note strong { color: var(--shl-ink); font-weight: 700; }
.shl-rv-note__links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.shl-rv-note__links a { color: var(--shl-teal); font-weight: 700; }

.shl-rv-grid {
  display: grid; gap: var(--shl-gap-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.shl-rv-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: var(--shl-gap);
  border: 1px solid var(--shl-line); border-radius: var(--shl-radius);
  background: var(--shl-paper);
}
.shl-rv-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shl-rv-card__stars { color: #ffb400; font-size: var(--shl-fs-sm); letter-spacing: 1px; }
.shl-rv-card__src {
  margin-left: auto; font-size: var(--shl-fs-xs); color: var(--shl-ink-dim);
  border: 1px solid var(--shl-line); border-radius: 999px; padding: 2px 8px;
}
.shl-rv-card__imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.shl-rv-card__imgs img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 8px; background: var(--shl-ground);
}
.shl-rv-card__text { font-size: var(--shl-fs-sm); line-height: 1.7; white-space: pre-line; }
.shl-rv-card:not(.is-open) .shl-rv-card__text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.shl-rv-card__more {
  align-self: flex-start; font-size: var(--shl-fs-sm);
  color: var(--shl-teal); font-weight: 700; min-height: 32px;
}
.shl-rv-card__meta { font-size: var(--shl-fs-xs); color: var(--shl-ink-dim); margin-top: auto; }

.shl-more {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--shl-line); border-radius: var(--shl-radius-pill);
  font-size: var(--shl-fs-body); font-weight: 700; color: var(--shl-navy);
  background: var(--shl-paper);
}
.shl-more:hover { border-color: var(--shl-teal); color: var(--shl-teal); }

/* 플로팅바의 후기 버튼 — 구매 버튼 왼쪽에 작게 */
.shl-floating__reviews {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 0 0 auto; min-width: 62px; min-height: 48px;
  padding: 6px 10px; border-radius: 14px;
  border: 1px solid var(--shl-line);
  font-size: 11px; font-weight: 700; color: var(--shl-ink-mute); line-height: 1.25;
}
.shl-floating__reviews b { font-size: 13px; color: var(--shl-navy-deep); }
.shl-floating__reviews:hover { border-color: var(--shl-teal); color: var(--shl-teal); }
@media (min-width: 768px) {
  .shl-floating__reviews {
    border-color: rgba(255, 255, 255, .28); color: var(--shl-on-navy-dim);
    min-width: 84px; font-size: 12px;
  }
  .shl-floating__reviews b { color: var(--shl-on-navy); font-size: 15px; }
}
