/* 히어로·탭 아래 본문이 100vh에 갇히지 않도록 페이지 세로 스크롤 허용 */
html.tp-page,
body.tp-page {
  overflow-x: clip;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
}

body.tp-page .sub-content.tp-page {
  min-height: 100vh;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.sub-content.tp-page .tp-area {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 70px 20px;
  box-sizing: border-box;
}

.tp-wrap {
  display: flex;
  align-items: flex-start;
  column-gap: 74px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
}

.tp-side {
  width: 288px;
  flex-shrink: 0;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  left: auto;
  height: auto;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}

.tp-content {
  flex: 1;
  min-width: 0;
  margin-top: 44px;
  margin-left: 0;
  padding: 0 0 80px 0;
  overflow-y: visible;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tp-content::-webkit-scrollbar {
  display: none;
}

/* 검색 */
.tp-search {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 7px 15px;
}

.tp-search input {
  flex: 1;
  height: 48px;
  padding: 12px 0;
  font-size: 15px;
  border: none;
  background: transparent;
}

.tp-search .tp-icon {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-search .tp-icon i {
  font-size: 24px;
}

.tp-side-vat-note {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  font-family: 'pretendard';
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #777;
  flex-shrink: 0;
}

.tp-side-vat-note--mobile {
  display: none;
}

/* .tp-side gap 20px 중 부가세 ↔ 메뉴만 10px로 보이게 */
@media (min-width: 769px) {
  .tp-side-vat-note--desktop + .tp-menu {
    margin-top: -15px;
  }
}

/* 메뉴 */
.tp-menu {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
}

.tp-menu::-webkit-scrollbar {
  width: 4px;
}

.tp-menu::-webkit-scrollbar-thumb {
  background-color: #DEE2E6;
  border-radius: 4px;
}

.tp-menu::-webkit-scrollbar-track {
  background-color: transparent;
}

.tp-menu .item {
  width: 96%;
  flex-shrink: 0;
  position: relative;
  border-radius: 10px;
  color: #495057;
  font-weight: 400;
}

.tp-menu .item a {
  display: block;
  padding: 12px 15px;
  font-size: 15px;
}

.tp-menu .item:not(.on):hover {
  background-color: #fff;
}

.tp-menu .item.on {
  background-color: var(--color-primary);
}

.tp-menu .item.on a {
  color: #fff;
}

/* 메인 배너 */
.tp-main .tp-title {
  font-size: 18px;
}

.tp-main .tp-title span {
  font-size: 28px;
  margin-right: 8px;
  font-weight: 700;
}

.tp-main .tp-img {
  margin-top: 20px;
  border-radius: 30px;
  overflow: hidden;
}

.tp-main .tp-img img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* 상세 리스트 */
.tp-list {
  display: flex;
  flex-direction: column;
  margin: 40px 0 0;
  gap: 20px;
}

.tp-cat {
  font-size: 23px;
  font-weight: bold;
  margin-top: 8px;
}

.tp-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.tp-items > .tp-group:first-child {
  margin-top: 0;
}

.tp-group-head {
  padding: 0 4px;
}

.tp-group-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 0;
}

.tp-group-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.tp-group-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #868E96;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.tp-group-desc::before {
  content: '(';
}

.tp-group-desc::after {
  content: ')';
}

.tp-group-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 가격 박스 */
.tp-box {
  display: flex;
  border: 1px solid #DEE2E6;
  border-radius: 30px;
  gap: 10px;
  padding: 25px;
}

.tp-box .tp-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #DEE2E6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-box .tp-icon i {
  color: #868E96;
  font-size: 14px;
}

.tp-box .tp-con {
  flex: 1;
  min-width: 0;
  font-family: var(--font-primary);
}

.tp-box .tp-name {
  font-size: 20px;
  font-weight: bold;
  color: #212529;
  line-height: 1.35;
  margin-bottom: 6px;
}

.tp-box .tp-desc {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  white-space: pre-line;
}

/* 섹션 제목 + 추가옵션을 일반 시술 카드와 구분되는 흰 하위 박스로 묶음 */
.tp-price-subsection-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #fff;
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-sizing: border-box;
}

.tp-box .tp-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
  align-items: start;
}

/* 제모레이저만 시술가격 2열 */
.tp-items--price-grid-2 .tp-box .tp-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-price-subsection {
  flex: unset;
  width: auto;
  min-width: 0;
  align-self: start;
}

/* 제모레이저: 하위 블록 1개면 카드 전체 너비 */
.tp-items--price-grid-2 .tp-box .tp-row .tp-price-subsection:only-child {
  grid-column: 1 / -1;
}

/* 제모레이저: 여자/남자 가격표는 1열 전체 너비 */
.tp-items--price-grid-2 .tp-box .tp-row:has(.tp-gender-grid) {
  grid-template-columns: 1fr;
}

/* 소제목 · 부위 안내 */
.tp-sub-label {
  margin: 2px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  line-height: 1.45;
}

.tp-gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.tp-gender-grid--single {
  grid-template-columns: 1fr;
}

.tp-gender-col {
  min-width: 0;
}

.tp-gender-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  letter-spacing: -0.02em;
}

/* 회차 · 샷 · 가격 한 줄 */
.tp-tier-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
}

.tp-tier-label {
  flex-shrink: 0;
  color: #495057;
}

.tp-tier-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.tp-tier-prices .tp-old {
  font-size: 12px;
}

.tp-tier-price {
  font-weight: 700;
  color: #212529;
  white-space: nowrap;
}

.tp-price-subsection-inner .tp-item--addon {
  padding-top: 5px;
  padding-bottom: 5px;
}

.tp-price-subsection-inner .tp-item--section + .tp-item--addon {
  padding-top: 6px;
}

/* 가격 아이템 */
.tp-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 140px;
  background-color: #fff;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
}

/* 섹션 제목 (예: PK 시 추가 옵션:) */
.tp-item.tp-item--section {
  background: transparent;
  padding: 0 0 4px;
  border-radius: 0;
  cursor: default;
  min-height: 0;
}

.tp-price-subsection-inner > .tp-item--section:first-child {
  padding-top: 0;
}

.tp-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  line-height: 1.4;
}

/* 추가 옵션 한 줄 · 이름 + 포인트 컬러 가격 */
.tp-item.tp-item--addon {
  background: transparent;
  padding: 6px 0 6px 2px;
  border-radius: 0;
  cursor: default;
  min-height: 0;
}

.tp-addon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.tp-addon-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  color: #212529;
  line-height: 1.4;
  padding-right: 8px;
}

/* 모드 소제목 (FX 전체 등 · 가격 없는 addon 행) */
.tp-addon-name--sub {
  font-weight: 600;
}

.tp-addon-prices {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.tp-addon-price {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.tp-item .tp-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  width: 100%;
}

.tp-item .tp-opt {
  color: #495057;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.tp-item .tp-legacy-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.tp-item .tp-item-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.tp-item .tp-item-name {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.35;
}

.tp-item .tp-item-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.tp-item .tp-prices {
  margin-left: auto;
  text-align: right;
}

.tp-item .tp-old {
  color: #C4C4C4;
  font-size: 14px;
}

.tp-item .tp-price {
  color: #212529;
  font-size: 20px;
  font-weight: bold;
}


/* ============================================
   모바일 반응형 (1024px 이하)
   ============================================ */
@media (max-width: 1024px) {
  /* 모바일: 페이지 스크롤 허용 */
  html.tp-page,
  body.tp-page {
    overflow: auto;
    height: auto;
  }

  body.tp-page .sub-content.tp-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sub-content.tp-page .tp-area {
    padding: 20px 16px;
  }

  .tp-wrap {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .tp-side {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    height: auto;
    margin-top: 0;
    padding: 0;
    flex-direction: column;
    gap: 12px;
    background: #fbf8f2;
  }

  .tp-side-vat-note--desktop {
    display: none;
  }

  .tp-side-vat-note--mobile {
    display: block;
    font-size: 10px;
    text-align: right;
  }

  .tp-search input {
    height: 44px;
    font-size: 14px;
  }

  .tp-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
  }

  .tp-menu::-webkit-scrollbar {
    display: none;
  }

  .tp-menu .item {
    flex-shrink: 0;
    width: auto;
  }

  .tp-menu .item a {
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .tp-menu .item:not(.on):hover {
    background-color: transparent;
  }

  /* 오른쪽 컨텐츠: 100% 너비 */
  .tp-content {
    width: 100%;
    margin: 0;
    padding: 20px 0 80px;
    flex: none;
  }

  .tp-main .tp-title {
    font-size: 16px;
  }

  .tp-main .tp-title span {
    font-size: 18px;
  }

  .tp-main .tp-img {
    margin-top: 16px;
    border-radius: 16px;
  }

  .tp-main .tp-img img {
    max-height: 200px;
  }

  .tp-list {
    margin: 24px 0 0;
  }

  .tp-group {
    margin-top: 24px;
    gap: 10px;
  }

  .tp-group-title-row {
    align-items: center;
    column-gap: 4px;
  }

  .tp-group-name {
    font-size: 18px;
  }

  .tp-group-desc {
    font-size: 15px;
  }

  .tp-cat {
    font-size: 18px;
    margin-top: 4px;
  }

  .tp-box {
    padding: 16px;
    border-radius: 16px;
    gap: 8px;
  }

  .tp-box .tp-name {
    font-size: 16px;
  }

  .tp-box .tp-desc {
    font-size: 14px;
  }

  .tp-box .tp-row {
    grid-template-columns: 1fr;
    margin-top: 16px;
    gap: 10px;
  }

  .tp-gender-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tp-gender-grid:not(.tp-gender-grid--single) .tp-gender-col:first-child {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(33, 37, 41, 0.08);
  }

  .tp-price-subsection-inner {
    padding: 10px 12px 12px;
    border-radius: 10px;
  }

  .tp-item {
    min-width: 120px;
    padding: 12px;
  }

  .tp-item .tp-opt {
    font-size: 16px;
  }

  .tp-section-title {
    font-size: 16px;
  }

  .tp-addon-inner {
    gap: 14px;
  }

  .tp-addon-name,
  .tp-addon-price {
    font-size: 15px;
  }

  .tp-addon-prices {
    max-width: 52%;
  }

  .tp-addon-price {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.35;
  }

  .tp-item .tp-item-name {
    font-size: 16px;
  }

  .tp-item .tp-item-desc {
    font-size: 14px;
  }

  .tp-item .tp-price {
    font-size: 18px;
  }
}
