html.tp-page,
body.tp-page {
  overflow: hidden;
  height: 100%;
}

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

.sub-content.tp-page .tp-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 40px 20px;
}

.tp-wrap {
  display: flex;
  width: 1400px;
  margin: 0 auto;
  height: 100%;
  min-height: 0;
}

.tp-side {
  width: 288px;
  flex-shrink: 0;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  left: calc(50% - 700px);
  height: calc(100vh - 240px);
}

.tp-content {
  flex: 1;
  min-width: 0;
  margin-top: 44px;
  margin-left: 288px;
  padding: 0 0 80px 74px;
  overflow-y: auto;
  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-menu {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
  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-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;
}

.tp-box .tp-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: bold;
  color: #212529;
  margin-bottom: 6px;
}

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

/* 섹션 제목 + 추가옵션을 일반 시술 카드와 구분되는 흰 하위 박스로 묶음 */
.tp-price-subsection {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.tp-price-subsection-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #fff;
  border-radius: 12px;
  padding: 12px 15px 14px;
  box-sizing: border-box;
}

.tp-box .tp-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.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: 14px 0 6px;
  border-radius: 0;
  cursor: default;
  min-height: 0;
}

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

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

/* 추가 옵션 한 줄 · 이름 + 포인트 컬러 가격 */
.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;
}

.tp-addon-price {
  flex: 0 0 auto;
  margin-left: 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;
    z-index: 10;
    background: #fbf8f2;
  }

  .tp-search {
    padding: 0 16px;
  }

  .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 16px;
    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 16px 80px;
    flex: none;
  }

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

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

  .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-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 {
    margin-top: 16px;
    gap: 8px;
  }

  .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: 15px;
  }

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

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

  .tp-addon-price {
    white-space: normal;
    max-width: 52%;
    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;
  }
}
