@charset "utf-8";
/* 측정 항목별 제품 모아보기 – 브랜드 제품 페이지와 같은 틀 */
.tmpc .tm-product-side__box { max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; }
.tmpc-side-cats { display: flex; flex-direction: column; gap: 2px; }
.tmpc .tm-product-side__box a { gap: 10px; }
.tmpc-side-ic { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: #F1F5F9; color: #64748B; transition: background .18s ease, color .18s ease; }
.tmpc-side-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tmpc .tm-product-side__box a:hover .tmpc-side-ic, .tmpc .tm-product-side__box a.is-active .tmpc-side-ic { background: #059669; color: #fff; }
.tmpc .tm-product-side__box a.is-active { font-weight: 760; }
.tmpc-side-brands a { justify-content: space-between; }
.tmpc-side-brands small { color: #94A3B8; font-size: 11px; font-weight: 750; }
.tmpc-side-brands a.is-active small { color: #047857; }

.tmpc-group { scroll-margin-top: 140px; }
.tmpc-group__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tmpc-group__title span { min-height: 34px; padding: 0 14px; background: #ECFDF5; color: #047857; font-size: 13px; letter-spacing: .02em; text-transform: none; }
.tmpc-group__title a { color: #059669; font-size: 13px; font-weight: 750; text-decoration: none; }
.tmpc-group__title a::after { content: " →"; }

.tmpc .tm-panel-head h3 { font-size: 18px; }
.tmpc-link-panel { display: block; text-decoration: none; border-style: dashed; transition: border-color .18s ease; }
.tmpc-link-panel:hover { border-color: #059669; }
.tmpc-link-panel .tm-panel-head { margin: 0; align-items: center; }
.tmpc-link-panel em { color: #059669 !important; font-size: 13px !important; }

.tmpc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tmpc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; color: #0F172A; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tmpc-card:hover { transform: translateY(-2px); border-color: #059669; box-shadow: 0 10px 24px rgba(15,23,42,.06); }
.tmpc-card__thumb { display: flex; align-items: center; justify-content: center; height: 150px; padding: 16px; border-bottom: 1px solid #F1F5F9; background: #fff; }
.tmpc-card__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tmpc-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.tmpc-card__body strong { display: -webkit-box; overflow: hidden; color: #0F172A; font-size: 13.5px; font-weight: 680; line-height: 1.45; letter-spacing: -.018em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tmpc-card__body em { margin-top: auto; color: #94A3B8; font-size: 12px; font-style: normal; font-weight: 750; transition: color .18s ease; }
.tmpc-card__body em::after { content: " →"; }
.tmpc-card:hover .tmpc-card__body em { color: #059669; }

.tmpc-help { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 22px 24px; border: 1px solid #BBF7D0; border-radius: 16px; background: #F0FDF4; }
.tmpc-help b { display: block; color: #0F172A; font-size: 17px; font-weight: 760; }
.tmpc-help span { display: block; margin-top: 4px; color: #475569; font-size: 14px; }
.tmpc-help a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px; background: #059669; color: #fff; font-size: 14px; font-weight: 760; text-decoration: none; }

@media (max-width: 1180px) { .tmpc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 920px) {
    .tmpc .tm-product-layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .tmpc .tm-product-side, .tmpc .tm-product-content { min-width: 0; }
    .tmpc .tm-product-side { position: sticky; top: var(--tm-header-h-mobile, 60px); z-index: 30; margin: 0 -24px; padding: 0 24px; border-bottom: 1px solid #E2E8F0; background: rgba(255,255,255,.97); }
    .tmpc .tm-product-side__box { position: static; max-height: none; padding: 10px 0; border: 0; border-radius: 0; background: none; }
    .tmpc .tm-product-side__box > strong, .tmpc .tm-product-side__box > em, .tmpc-side-brands { display: none !important; }
    .tmpc-side-cats { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .tmpc-side-cats::-webkit-scrollbar { display: none; }
    .tmpc .tmpc-side-cats a { flex: 0 0 auto; min-height: 38px; padding: 0 12px 0 6px; border: 1px solid #E2E8F0; border-radius: 999px; white-space: nowrap; }
    .tmpc .tmpc-side-cats a.is-active { border-color: #059669; background: #059669; color: #fff; }
    .tmpc .tmpc-side-cats a.is-active .tmpc-side-ic { background: rgba(255,255,255,.2); }
    .tmpc-side-ic { width: 26px; height: 26px; border-radius: 50%; }
    .tmpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tmpc-card__thumb { height: 120px; }
    .tmpc-help { flex-direction: column; align-items: flex-start; }
}

/* 모바일에서 항목 메뉴가 따라오도록 (상위 overflow 가 sticky 를 막지 않게) */
@media (max-width: 920px) {
    body, .tm-site, .tm-content { overflow-x: clip !important; overflow-y: visible !important; }
}
