.product {
  width: 100%;
  height: 100%;
  min-width: var(--min-width);
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  color: var(--white);
  padding: 0 clamp(1.6rem, 3vw, 4rem);
  overflow: hidden;
}
/* product 공통 */
.product-container {
  width: 100%;
  /* max-width: 144rem; */

  padding: 14rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* product */
.product-title {
  width: 100%;
  max-width: 144rem;
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 6.4rem;
  line-height: 6.8rem;
  color: var(--main-font-color);
}
/* 전체보기/올리디아/실플란트 */
.product-nav {
  width: 100%;
  max-width: 144rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  list-style-type: none;
}
.product-nav li a {
  text-decoration: none;
  font-family: "Inter" sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.7rem;
  text-align: right;
  color: var(--main-font-color);
}
.product-nav li {
  position: relative;
}
.product-nav li.on a {
  font-weight: 600;
}
.product-nav li:not(:first-child)::after {
  content: "";
  position: absolute;
  width: 0.323rem;
  height: 0.323rem;
  left: -19%;
  top: 50%;
  background: var(--main-font-color);
  box-shadow: 0px 0px 12.2059px var(--main-font-color),
    0px 0px 6.97482px var(--main-font-color),
    0px 0px 4.06865px var(--main-font-color),
    0px 0px 2.03432px var(--main-font-color),
    0px 0px 0.581235px var(--main-font-color),
    0px 0px 0.290618px var(--main-font-color);
  transform: translateY(-50%) rotate(36.55deg);
}

/* item */
.product-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 45.6rem;
  height: 100%;
  min-height: 50.6rem;
  transition: all 1.5s ease;
}
.product-item dd {
  white-space: normal;
}

.product-thumb {
  display: flex;
  flex-direction: column;
  padding: 5%;
}
.product-num {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 17px;
  text-align: end;
  color: var(--main-font-color);
}
.product-name {
  display: flex;
  flex-direction: column;
}
.product-en {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 2rem;
  color: var(--sub-font-color);
}
.product-ko {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.7rem;
  color: var(--white);
}

.product-info {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  /* padding: 5%; */
  opacity: 0;
  transition: all 1.5s ease;
}
.product-info-name {
  font-family: "Pretendard", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 3.8rem;
  color: var(--main-font-color);
}
.product-info-list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.product-info-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  font-family: "Inter";
  font-style: normal;

  color: var(--sub-font-color);
}
.product-info-item dt {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 200;
  font-size: clamp(1.8rem, 1vw, 2rem);
  line-height: 2.4rem;
  color: var(--sub-font-color);
}
.product-info-item dd {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.8rem, 1vw, 2rem);
  line-height: 2.4rem;
  color: var(--sub-font-color);
}
.medical-device {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 1.8rem;
  color: var(--sub-font-color);
  padding-top: 1.6rem;
}
.back-list {
  width: 100%;
  max-width: 144rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.backtolist {
  background-color: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.2rem;
  text-align: right;
  color: var(--font-sub-color);
  cursor: pointer;
  padding: 1rem 0;
}

/* olidia */
.olidia {
  height: 100%;
}
.olidia-container {
  /* height: calc(100dvh - 29.7rem); */
  /*100dvh -  footer 높이*/
}
.olidia-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 10rem 0;
}
.olidia-items {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  /* transform: translateX(15vw); */
}

.olidia-item {
  width: 100%;
  /* position: absolute; */
  height: auto;
  top: 15%;
  grid-row: 1;
}
.olidia-items::after {
  content: "";
  grid-column: 12 / 15;
  grid-row: 1;
  pointer-events: auto;
  z-index: 999;
}
.olidia-item:nth-child(1) {
  grid-column: 4 / 9;
  z-index: 1;
}
.olidia-item:nth-child(2) {
  grid-column: 7 / 12;
  z-index: 2;
}
.olidia-item:nth-child(3) {
  grid-column: 10 / 15;
  z-index: 3;
}

.olidia-item:nth-child(2).active {
  transform: translateX(calc(-100vw / 14 * 3));
  z-index: 10;
}

.olidia-item:nth-child(3).active {
  transform: translateX(calc(-100vw / 14 * 6));
  z-index: 10;
}

.olidia-item.active .arrow {
  display: none;
}
.olidia-item.left {
  transform: translateX(-300%);
}
.olidia-item.right {
  transform: translateX(300%);
}

.olidia-thumb {
  position: relative;
  gap: 1.8rem;
}
.olidia-item:not(:last-child) .olidia-thumb::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: 0;
  background: url("/home_assets/img/icon/round.svg") no-repeat center/cover;
  width: 4.7rem;
  height: 3.1rem;
}
.olidia-item.active .olidia-thumb::after {
  content: "";
  position: absolute;
  right: -2.6rem;
  top: 0;
  background: url("/home_assets/img/icon/round.svg") no-repeat center/cover;
  width: 4.7rem;
  height: 3.1rem;
}
.olidia-image {
  width: clamp(14.5rem, 10vw, 23rem);
  aspect-ratio: 230 / 392;
  background-color: #ede5db;
  border-radius: 138.5px 138.5px 138.5px 0;
  align-content: end;
  position: relative;
}
.olidia-image img {
  position: absolute;
  width: 55%;
  aspect-ratio: 121 / 282;
  bottom: 1.4rem;
  left: 1.4rem;
}
.olidia-info {
  transition: all 1.5s ease;
  pointer-events: none;
}
.olidia-item.active .olidia-info {
  opacity: 1;
}

.olidia-info-name {
  padding-bottom: 8rem;
}

@media (max-width: 768px) {
  .olidia {
    height: 100%;
    justify-content: flex-start;
  }
  .product-container {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
  .product-olidia {
    min-height: 100dvh;
    justify-content: flex-start;
  }
  .product-nav {
    justify-content: flex-start;
  }
  .product-title {
    font-weight: 400;
    font-size: 3.2rem;
    line-height: 3.4rem;
    color: var(--white);
  }
  .product-nav li.on {
    font-weight: 100;
    font-size: 1.2rem;
    line-height: 1.5rem;
    color: var(--white);
  }
  .product-nav li:not(.on),
  .product-nav li:not(:first-child)::after {
    display: none;
  }

  .product-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-width: calc(32rem - 1.6rem);
    height: 100%;
    min-height: auto;
    cursor: pointer;
  }
  .product-num {
    display: none;
  }
  .product-thumb {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
  }
  .product-info-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.1rem;
  }

  .product-info-name {
    order: 1;
  }
  .product-info-list {
    order: 3;
    padding-top: 3.6rem;
  }

  .olidia-container {
    transform: translate(0);
    height: 100%;
  }
  .olidia-content {
    margin: 0;
    padding-bottom: 5rem;
    min-height: 100vh;
    /* transform: translate(0, 5rem); */
  }
  .olidia-items {
    flex-direction: column;
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, calc(100% / 3));
    transform: translate(0, 0);
  }
  .olidia-item {
    height: 100%;
    top: 0;
    grid-column: 1 / -1;

    grid-row: auto;
  }
  .olidia-item:nth-child(1) {
    grid-column: 1 / -1;
  }
  .olidia-item:nth-child(2) {
    grid-column: 1 / -1;
  }
  .olidia-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .olidia-item.active {
    transform: translate(0%, 0);
  }
  .olidia-item:nth-child(2).active {
    transform: translateY(calc(-100% / 3 * 3));
  }
  .olidia-item:nth-child(3).active {
    transform: translateY(calc(-100% / 3 * 6));
  }
  .olidia-item.active .olidia-name {
    display: none;
  }
  .olidia-item.left {
    transform: translate(0, -500%);
  }
  .olidia-item.right {
    transform: translate(0, 500%);
  }

  .image-box {
    position: relative;
  }
  .image-box::after {
    content: "";
    background: url("/home_assets/img/icon/bigRound.svg");
    position: absolute;
    top: -5%;
    right: -5%;
    width: 9.4rem;
    height: 10rem;
  }
  .olidia-image {
    width: 16.1rem;
    aspect-ratio: 161 / 166;
    overflow: hidden;
    position: relative;
  }

  .olidia-image img {
    width: 70%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0%;
    left: 10%;
  }
  .olidia-item.active .olidia-image {
    width: 14.5rem;
    aspect-ratio: 145 / 248;
  }
  .olidia-item.active .olidia-image img {
    width: 55%;
    height: auto;
    aspect-ratio: 121 / 282;
    bottom: 5%;
    top: auto;
  }

  .olidia-item.active .image-box::after {
    content: "";
    background: none;
  }

  .olidia-thumb {
    width: 100%;
    flex-direction: row;
  }
  .olidia-item:not(:last-child) .olidia-thumb::after {
    content: "";
    background: none;
  }

  .olidia-item.active .olidia-thumb::after {
    content: "";
    background: none;
  }

  .olidia-name {
    justify-content: flex-end;
  }
  .olidia-info {
    width: 100%;
    gap: 0;
    padding: 5% 0;
    max-height: 0;
  }
  .olidia-info-name {
    padding: 0;
  }

  .medical-device {
    order: 2;
    border-bottom: 0.1rem solid var(--white);
    padding-bottom: 1rem;
    font-style: normal;
    font-weight: 200;
    font-size: 1rem;
    line-height: 1.2rem;
    color: var(--sub-font-color);
  }
}
/* @media (max-width: 320px) {
  .olidia {
    height: 150vh;
  }
  .olidia-item:nth-child(2) {
    transform: translate(0.8rem, calc(5% + 38%));
  }
  .olidia-item:nth-child(3) {
    transform: translate(0.8rem, calc(5% + 76%));
  }
} */
