/* ARTIQUE Clinic — Equipment Intro (Figma 40:3) */
@font-face {
  font-family: "S-Core Dream";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff")
    format("woff");
  font-weight: 300;
  font-display: swap;
}

:root {
  --design-width: 2448px;
  --scale: calc(100vw / 244.8);
  --bg: #f3eeee;
  --text: #625656;
  --text-muted: #736868;
  --card-bg: #fffafa;
  --input-bg: #f3f3f3;
  --mangro: "Mangro", "Cormorant Garamond", "Times New Roman", serif;
  --ko: "Pretendard", "Noto Sans KR", sans-serif;
  --desc-font: "S-Core Dream", var(--ko);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body.equipment-page {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ko);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.equipment {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

/* Hero — 40:30~40:18 */
.equipment-hero {
  position: relative;
  padding: 26rem 0 0;
  text-align: center;
}

.equipment-hero__title {
  font-family: 'Mangro';
  font-weight: 400;
  font-size: 14.4rem;
  line-height: 0.85;
  opacity: 0.88;
  color: var(--text);
}

.equipment-hero__label {
  margin-top: 2.1rem;
  font-family: 'Mangro';
  font-weight: 400;
  font-size: 8.8rem;
  line-height: 1.19;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.88;
  color: var(--text);
}

.equipment-hero__summary {
  margin-top: 4.8rem;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.22;
  letter-spacing: 0.052rem;
  text-transform: uppercase;
  color: #625656;
}

.equipment-hero__visual {
  position: relative;
  width: 100%;
  height: 126.1rem;
  margin-top: 19.2rem;
  overflow: hidden;
}

.equipment-hero__scene,
.equipment-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.equipment-hero__overlay {
  mix-blend-mode: multiply;
  opacity: 0.92;
}

/* Toolbar — 40:97~40:105 */
.equipment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: calc(100% - 42rem);
  max-width: 203.4rem;
  margin: 17.4rem auto 0;
  padding: 0;
}

.equipment-tabs {
  display: flex;
  flex-shrink: 0;
}

.equipment-tabs__btn {
  width: 42.2rem;
  height: 5.2rem;
  border: 1px solid var(--text-muted);
  background: var(--bg);
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 0.85;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.equipment-tabs__btn.is-active {
  background: var(--text-muted);
  color: #fff;
}

.equipment-search {
  position: relative;
  flex: 0 0 53.1rem;
  max-width: 53.1rem;
  width: 100%;
  height: 5.2rem;
  background: var(--input-bg);
  border: 1px solid var(--text-muted);
  display: none;
}

.equipment-search__input {
  width: 100%;
  height: 100%;
  padding: 0 6rem 0 2.5rem;
  border: 0;
  background: transparent;
  font-family: 'Mangro';
  font-size: 1.8rem;
  line-height: 0.85;
  color: var(--text-muted);
}

.equipment-search__input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.equipment-search__input:focus {
  outline: none;
}

.equipment-search__submit {
  position: absolute;
  top: 1.6rem;
  right: 3.2rem;
  display: grid;
  place-items: center;
  width: 1.833rem;
  height: 2.001rem;
  padding: 0;
}

.equipment-search__icon {
  display: block;
  width: 1.833rem;
  height: 2.001rem;
}

/* Sections — 40:67~40:69 */
.equipment-section {
  padding: 0 21rem;
}

.equipment-section + .equipment-section {
  margin-top: 17.3rem;
}

.equipment-section:last-of-type {
  padding-bottom: 16.6rem;
}

.equipment-toolbar + .equipment-section {
  margin-top: 22.6rem;
}

.equipment-section__title {
  font-family: 'Mangro';
  font-weight: 400;
  font-size: 9.9rem;
  line-height: 0.9;
  letter-spacing: 0.396rem;
  text-transform: uppercase;
  color: var(--text);
}

.equipment-section:nth-child(4) .equipment-section__title,
.equipment-section:nth-child(5) .equipment-section__title {
  line-height: 0.74;
}

.equipment-section__summary {
  margin-top: 2.8rem;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.22;
  letter-spacing: 0.052rem;
  text-transform: uppercase;
  color: #625656;
}

/* Grid — 40:4~40:15 */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 50.6rem);
  justify-content: space-between;
  gap: 3px;
  margin-top: 8.9rem;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.equipment-card.is-hidden {
  display: none;
}

.equipment-card__name {
  min-height: 10.4rem;
  margin-bottom: 1.2rem;
  font-family: 'Mangro';
  font-weight: 400;
  font-size: 5.633rem;
  line-height: 0.92;
  letter-spacing: 0.28165rem;
  text-align: center;
  color: var(--text);
}

.equipment-card__name span {
  display: block;
  font-family: 'Mangro' !important;
}

.equipment-card__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 127.5rem;
  background: var(--card-bg);
}

/* Ultherapy card — Figma 40:4 / 40:36 / 40:43 / 40:55 */
.equipment-card--ultherapy .equipment-card__panel {
  position: relative;
  width: 50.6rem;
  height: 127.5rem;
  min-height: 127.5rem;
}

.equipment-card--ultherapy .equipment-card__name {
  position: absolute;
  top: 12.4rem;
  left: 50%;
  transform: translateX(-50%);
  min-height: auto;
  margin: 0;
  font-size: 5.633rem;
  line-height: 5.2rem;
  letter-spacing: 0.28165rem;
  white-space: nowrap;
}

.equipment-card--ultherapy .equipment-card__visual {
  position: absolute;
  top: 32rem;
  left: 0;
  width: 100%;
  height: 59.0954rem;
  min-height: auto;
  padding: 0;
  overflow: visible;
}

.equipment-card--ultherapy .equipment-card__device {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.equipment-card--ultherapy .equipment-card__device-img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.equipment-card--ultherapy .equipment-card__handpiece-line {
  position: absolute;
  top: 28.723rem;
  left: 4.693rem;
  width: 2.259rem;
  height: 27.131rem;
  max-height: none;
  pointer-events: none;
}

.equipment-card--ultherapy .equipment-card__handpiece-tip {
  position: absolute;
  top: 26.392rem;
  left: 7.127rem;
  width: 1.388rem;
  height: 7.1rem;
  max-height: none;
  pointer-events: none;
}

.equipment-card--ultherapy .equipment-card__desc {
  position: absolute;
  top: 105.4rem;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  font-family: var(--desc-font);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.6875;
  letter-spacing: 0.016rem;
  text-align: center;
}

.equipment-card__visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62rem;
  padding: 3rem 2rem 2rem;
  overflow: hidden;
}

.equipment-card__visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 59rem;
  object-fit: contain;
  object-position: center bottom;
}

.equipment-card__handpiece-line {
  position: absolute;
  left: 16.5rem;
  bottom: 18rem;
  width: 2.26rem;
  height: 27.1rem;
  max-height: none;
  pointer-events: none;
}

.equipment-card__handpiece-tip {
  position: absolute;
  left: 18.7rem;
  bottom: 40.5rem;
  width: 1.39rem;
  height: 7.1rem;
  max-height: none;
  pointer-events: none;
}

.equipment-card__desc {
  padding: 0 3rem 4.6rem;
  font-family: var(--desc-font);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.69;
  letter-spacing: 0.016rem;
  text-align: center;
  color: var(--text);
}

.equipment-card__desc--wide {
  line-height: 2;
}

.equipment-grid.is-empty::after {
  content: "검색 결과가 없습니다.";
  grid-column: 1 / -1;
  padding: 8rem 0;
  font-size: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.equipment-product-list{
  width: 100%;
  height: auto;
  overflow: hidden;
}
.equipment-product-list ul{
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px 3px;
  flex-wrap: wrap;
  margin: 100px auto 200px auto;
}
.equipment-product-list ul li{
  width: calc( 100% / 4 - 3px );
  height: auto;
  overflow: hidden;
  background: #F7F3F4;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.equipment-product-list ul li .ep-image{
  width: 300px;
  height: 392px;
  overflow: hidden;
}
.equipment-product-list ul li .ep-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipment-product-list ul li .ep-title{
  width: 100%;
  text-align: center;
  font-size: 24px;
  color: #625656;
  font-weight: 600;
  margin-top: 16px;
}
.equipment-product-list ul li .ep-desc{
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 16px;
  color: #625656;
  font-weight: 300;
  padding: 40px 50px 0 50px;
  margin-bottom: 100px;
  line-height: 1.5em;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* 5줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 160px;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1200px) {
  html {
    font-size: clamp(5px, calc(100vw / 140), 8px);
  }

  .equipment-toolbar {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 6rem);
    margin-top: 8rem;
  }

  .equipment-tabs {
    width: 100%;
  }

  .equipment-tabs__btn {
    flex: 1;
    width: auto;
  }

  .equipment-search {
    flex: none;
    max-width: none;
  }

  .equipment-section {
    padding: 0 3rem;
  }

  .equipment-section + .equipment-section {
    margin-top: 10rem;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
  }

  .equipment-card__panel {
    min-height: auto;
  }

  .equipment-card__visual {
    min-height: 40rem;
  }

  .equipment-card__handpiece-line,
  .equipment-card__handpiece-tip {
    display: none;
  }

  .equipment-card--ultherapy .equipment-card__panel {
    width: 100%;
    height: auto;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .equipment-card--ultherapy .equipment-card__name {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 4rem 2rem 0;
    white-space: normal;
  }

  .equipment-card--ultherapy .equipment-card__visual {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 40rem;
    margin-top: 2rem;
  }

  .equipment-card--ultherapy .equipment-card__device {
    width: min(29.5477rem, 100%);
    height: auto;
    min-height: 40rem;
    margin: 0 auto;
  }

  .equipment-card--ultherapy .equipment-card__device-img {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
  }

  .equipment-card--ultherapy .equipment-card__desc {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 2.4rem 2rem 0;
  }
}
@media (max-width: 1023px) {
  .equipment-product-list ul li{
    width: calc( 100% / 2 - 3px );
  }
  .equipment-product-list ul li .ep-desc{
    margin-bottom: 40px;
    padding: 20px 20px 0 20px;
  }
  .equipment-product-list ul{
    margin: 40px auto 80px auto;
  }
  .equipment-tabs__btn{
    height: 50px;
    font-size:  15px;
  }
  .equipment-search{
    height: 50px;
  }
  .equipment-card--ultherapy .equipment-card__desc{
    font-size: 13px;
  }
  .equipment-search__submit{
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
  }
  .equipment-search__icon{
    width: 18px;
    height: 20px;
  }
  .equipment-toolbar + .equipment-section{
    margin-top: 40px;
  }
  .equipment-product-list ul li .ep-image{
    width: 200px;
    height: 250px;
  }
  .equipment-search__input{
    height: 50px;
    font-size: 15px;
  }
  .equipment{
    padding-top: 80px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: clamp(4.5px, calc(100vw / 90), 7px);
  }
  .equipment-product-list ul li{
    width: 100%;
  }
  .equipment-hero {
    padding-top: 12rem;
  }

  .equipment-hero__title {
    font-size: clamp(6rem, 14vw, 10rem);
  }

  .equipment-hero__label {
    font-size: clamp(4rem, 10vw, 6rem);

  }

  .equipment-hero__summary {
    padding: 0 2rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-transform: none;
  }

  .equipment-hero__visual {
    height: clamp(40rem, 55vw, 70rem);
    margin-top: 6rem;
  }

  .equipment-section__title {
    font-size: clamp(4rem, 10vw, 7rem);
  }

  .equipment-section__summary {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    text-transform: none;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
  }

  .equipment-card__name {
    min-height: auto;
    font-size: clamp(3.6rem, 8vw, 5rem);
  }

  .equipment-card__visual {
    min-height: 32rem;
  }

  .equipment-card__desc {
    padding-inline: 2rem;
    font-size: 1.5rem;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .equipment-tabs__btn {
    transition: none;
  }
}
