.product-detail-page {
  background: #ffffff;
  color: #181818;
}

/* =========================
   PRODUCT HERO
========================= */

.sensor-hero {
  --sensor-red: #d40000;

  /* 좌측 텍스트 박스의 상/하 여백 (이미지 세로 중앙 계산에 재사용) */
  --copy-pad-top: calc(var(--header-height, 64px) + clamp(56px, 9vh, 105px));
  --copy-pad-bottom: clamp(74px, 11vh, 135px);
  --copy-shift: -2vh;

  /*
     슬라이드 세로 중앙(50%) 대비 텍스트 블록 중앙이 얼마나 어긋나는지.
     위/아래 패딩이 다르기 때문에 그 차이의 절반 + 텍스트 보정값.
  */
  --copy-center-offset:
    calc((var(--copy-pad-top) - var(--copy-pad-bottom)) / 2 + var(--copy-shift));
}

.sensor-hero-copy {
  /* 이미지(z-index:2)가 절대배치로 겹쳐 오므로 버튼이 항상 위에 오도록 */
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;

  padding:
    var(--copy-pad-top)
    clamp(42px, 8vw, 150px)
    var(--copy-pad-bottom);
}

.sensor-copy-inner {
  width: min(100%, 520px);
  transform: translateY(var(--copy-shift));
}

.sensor-accent-line {
  width: 600px;
  height: 3px;
  margin-bottom: clamp(22px, 3vh, 34px);

  background: var(--sensor-red);
}

.sensor-title {
  margin: 0;

  color: #111111;
  font-size: clamp(31px, 3.1vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -2px;
}

.sensor-lead {
  margin: clamp(18px, 2.4vh, 27px) 0 0;

  color: #999999;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.sensor-bottom-copy {
  margin-top: clamp(72px, 15vh, 158px);
}

.sensor-bottom-copy p {
  margin: 0;

  color: #a5a5a5;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.8px;
}

.sensor-bottom-copy strong {
  color: #2787d9;
  font-weight: 700;
}

.sensor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: clamp(20px, 2.8vh, 30px);
}

.sensor-tech-button,
.sensor-inquiry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 135px;
  height: 46px;
  padding: 0 22px;

  border: 0;
  border-radius: 999px;

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.sensor-tech-button {
  background: var(--sensor-red);
  color: #ffffff;
}

.sensor-inquiry-button {
  background: #e8e8e8;
  color: #666666;
}

.sensor-tech-button:hover,
.sensor-inquiry-button:hover {
  transform: translateY(-2px);
}

.sensor-tech-button:focus-visible,
.sensor-inquiry-button:focus-visible,
.email-copy-button:focus-visible,
.inquiry-close-button:focus-visible {
  outline: 3px solid rgba(39, 135, 217, 0.45);
  outline-offset: 3px;
}

/* =========================
   PRODUCT IMAGE AREA
========================= */

.sensor-hero-visual {
  position: relative;
  z-index: 1;

  min-height: 100%;

  background: var(--sensor-red);
}

.product-image-slot {
  position: absolute;
  z-index: 2;

  top: 50%;
  bottom: auto;
  left: 0;

  display: grid;
  place-items: center;

  width: clamp(350px, 51vw, 760px);
  aspect-ratio: 1.12 / 1;

  /* 좌측 텍스트 블록의 세로 중앙과 이미지 세로 중앙을 일치 */
  transform: translate(-45%, calc(-50% + var(--copy-center-offset)));
}

.product-image-slot.is-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.product-image-slot span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
}

.product-image-slot img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* =========================
   INQUIRY MODAL
========================= */

.inquiry-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 24px;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    visibility 0s linear 0.25s,
    opacity 0.25s ease;
}

.inquiry-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;

  transition-delay: 0s;
}

.inquiry-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(10, 16, 28, 0.5);
}

.inquiry-dialog {
  position: relative;
  z-index: 1;

  width: min(100%, 420px);
  padding: 42px 36px 34px;

  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);

  text-align: center;

  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.inquiry-modal.is-open .inquiry-dialog {
  transform: translateY(0) scale(1);
}

.inquiry-close-button {
  position: absolute;
  top: 12px;
  right: 15px;

  width: 34px;
  height: 34px;

  border: 0;
  background: transparent;

  color: #777777;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}

.inquiry-icon {
  display: grid;
  place-items: center;

  width: 55px;
  height: 55px;
  margin: 0 auto 18px;

  border-radius: 50%;
  background: #fff0f0;
  color: var(--sensor-red);
}

.inquiry-icon svg,
.email-copy-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.inquiry-icon svg {
  width: 27px;
  height: 27px;
}

.inquiry-dialog h2 {
  margin: 0;

  color: #1b1b1b;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
}

.inquiry-description {
  margin: 12px 0 25px;

  color: #777777;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.5px;
}

.email-copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: 100%;
  min-height: 54px;
  padding: 12px 16px;

  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fafafa;

  color: #333333;
  font-family: inherit;
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 600;
  letter-spacing: -0.4px;

  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.email-copy-button:hover,
.email-copy-button.is-copied {
  border-color: var(--sensor-red);
  background: #fff5f5;
  color: var(--sensor-red);
}

.email-copy-button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.copy-guide,
.copy-feedback {
  min-height: 20px;
  margin: 12px 0 0;

  font-size: 12px;
  line-height: 1.5;
}

.copy-guide {
  color: #999999;
}

.copy-feedback {
  color: var(--sensor-red);
  font-weight: 600;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {
  .sensor-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(330px, 42dvh);
  }

  .sensor-hero-copy {
    padding:
      calc(var(--header-height, 64px) + 86px)
      clamp(30px, 8vw, 70px)
      74px;
  }

  .sensor-copy-inner {
    transform: none;
  }

  .sensor-bottom-copy {
    margin-top: 62px;
  }

  .sensor-hero-visual {
    min-height: 330px;

    /* 이미지를 빨간 영역 안에 그대로 담아 가운데 정렬 */
    display: grid;
    place-items: center;
    padding: 22px 18px;
  }

  .product-image-slot {
    /*
       절대배치도, 퍼센트 높이도 쓰지 않는다.
       부모 높이가 min-height뿐이라 퍼센트가 auto로 풀리면서
       이미지가 통째로 커져 영역을 넘어버린다.
    */
    position: static;

    width: min(82vw, 580px);
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;

    transform: none;
  }

  /* 330px(영역) - 44px(위아래 여백) */
  .product-image-slot img {
    height: auto;
    max-height: 286px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  .sensor-hero {
    grid-template-rows: auto 310px;
  }

  .sensor-hero-copy {
    padding:
      calc(var(--header-height, 64px) + 70px)
      24px
      62px;
  }

  .sensor-accent-line {
    width: clamp(220px, 42vw, 600px);
    max-width: 100%;
    height: 3px;
    margin-bottom: clamp(22px, 3vh, 34px);

    background: var(--sensor-red);
  }

  .sensor-title {
    font-size: clamp(29px, 9vw, 38px);
    letter-spacing: -1.5px;
  }

  .sensor-lead {
    margin: clamp(18px, 2.4vh, 27px) 0 0;

    color: #999999;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.3px;
  }

  .sensor-bottom-copy p {
    margin: 0;

    color: #a5a5a5;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.8px;
  }

  .sensor-actions {
    gap: 8px;
  }

  .sensor-tech-button,
  .sensor-inquiry-button {
    min-width: 130px;
    height: 44px;
    font-size: 14px;
  }

  .sensor-hero-visual {
    min-height: 310px;
    padding: 18px 16px;
  }

  .product-image-slot {
    width: min(88vw, 420px);
  }

  /* 310px(영역) - 36px(위아래 여백) */
  .product-image-slot img {
    max-height: 274px;
  }

  .inquiry-dialog {
    padding: 38px 22px 28px;
    border-radius: 15px;
  }
}

/* =========================
   PRODUCT AUTO SLIDER
========================= */

.sensor-hero {
  position: relative;
}

.product-slide {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr);

  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  scroll-margin-top: var(--header-height, 64px);
}

.product-slide:first-child {
  border-top: 0;

  margin-top: calc(var(--header-height, 64px) * -1);

  min-height: calc(100vh + var(--header-height, 64px));
  min-height: calc(100dvh + var(--header-height, 64px));
}

.vibration-technology-block {
  margin-top: clamp(70px, 10vw, 130px);
  padding-top: clamp(80px, 11vw, 150px);

  border-top: 1px solid #eeeeee;

  scroll-margin-top: calc(var(--header-height, 64px) + 40px);
}

@media (max-width: 900px) {
  .sensor-hero {
    min-height: auto;
  }

  .product-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(330px, 42dvh);

    min-height: auto;
  }

  .product-slide:first-child {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .product-slide {
    grid-template-rows: auto 310px;
  }
}

/* =========================
   PRODUCT SLIDER MOBILE FIX
========================= */

@media (max-width: 900px) {
  .sensor-hero-copy {
    min-width: 0;
  }

  .sensor-copy-inner {
    width: 100%;
    max-width: 620px;
  }

  .sensor-bottom-copy {
    margin-top: clamp(48px, 9vh, 75px);
  }

  .product-image-slot {
    max-width: calc(100vw - 36px);
  }
}

@media (max-width: 640px) {
  .sensor-hero-copy {
    padding:
      calc(var(--header-height, 64px) + 74px)
      24px
      52px;
  }

  .sensor-accent-line {
    width: min(100%, 280px);
    height: 2px;
    margin-top: 14px;
  }

  .sensor-title {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.18;
    letter-spacing: -1.5px;
  }

  .sensor-lead,
  .sensor-bottom-copy p {
    font-size: clamp(16px, 4.4vw, 20px);
    line-height: 1.45;
  }

  .sensor-bottom-copy {
    margin-top: 44px;
  }

  .sensor-actions {
    gap: 10px;
  }

  .sensor-tech-button,
  .sensor-inquiry-button {
    flex: 1 1 140px;

    min-width: 0;
    height: 44px;
    padding: 0 14px;

    font-size: 14px;
  }

  .product-image-slot {
    width: min(88vw, 420px);
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 380px) {
  .sensor-title {
    font-size: 27px;
  }

  .sensor-lead,
  .sensor-bottom-copy p {
    font-size: 16px;
  }

  .sensor-tech-button,
  .sensor-inquiry-button {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .vibration-technology-block {
    margin-top: 60px;
    padding-top: 70px;

    scroll-margin-top: calc(var(--header-height, 64px) + 24px);
  }
}
/* =========================
   PRODUCT SLIDER (PC 전용)
========================= */

/* 화살표 : 메인 슬라이더(.arrow)와 동일한 모양,
   흰 배경이므로 색상만 어둡게 조정 */
.product-arrow {
  display: none;

  padding: 0;
  border: 0;
  background: transparent;

  color: #c4c4c4;
  font-family: inherit;
  line-height: 1;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

@media (min-width: 901px) {
  /* 진입 시 슬라이드 영역만 화면에 꽉 차고, 스크롤해야 푸터가 보임 */
  .sensor-hero {
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 640px;

    overflow: hidden;
  }

  .product-slider-track {
    display: flex;

    width: 100%;
    height: 100%;

    transition: transform 0.75s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: transform;
  }

  /* 슬라이드 위치를 즉시 잡아야 할 때(최초 진입 등) */
  .product-slider-track.is-instant {
    transition: none;
  }

  .sensor-hero .product-slide,
  .sensor-hero .product-slide:first-child {
    flex: 0 0 100%;

    width: 100%;
    height: 100%;
    min-height: 0;
    margin-top: 0;

    border-top: 0;
  }

  .product-arrow {
    display: flex;
  }

  .product-arrow-prev {
    left: 40px;
  }

  .product-arrow-next {
    right: 40px;
  }

  .product-arrow:hover {
    color: #181818;
    transform: translateY(-50%) scale(1.12);
  }

  .product-arrow:focus-visible {
    outline: 3px solid rgba(39, 135, 217, 0.45);
    outline-offset: 4px;
    border-radius: 6px;
  }
}

/* 화면이 좁은 PC에서는 본문과 겹치지 않도록 안쪽으로 */
@media (min-width: 901px) and (max-width: 1280px) {
  .product-arrow-prev {
    left: 14px;
  }

  .product-arrow-next {
    right: 14px;
  }
}