@charset "utf-8";

/* ======================
   제품 페이지 (product.css)
   ====================== */

/* ======================
   비주얼 섹션
   ====================== */

.pd-visual {}

.pd-visual__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pd-visual__heading {}

/* ======================
   제품 목록 섹션
   ====================== */

.pd-list {
  padding: 8rem 0 28rem;
}

/* 탭 네비게이션 */
.pd-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #dddddd;
  margin-bottom: 4.8rem;
}

.pd-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: #381010;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s;
  margin-bottom: -1px;
  letter-spacing: 0;
  line-height: 1em;
}

.pd-tabs__btn.is-active {
  border-bottom-color: #381010;
}

.pd-tabs__btn:not(.is-active) {
  /* color: rgba(56, 16, 16, 0.45); */
}

/* 제품 탭 패널 */
.pd-panel {
  display: none;
}

.pd-panel.is-active {
  display: block;
}

/* 제품 그리드 */
.pd-grid {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
}

.pd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4.8rem 3.6rem;
}

/* 제품 카드 */
.pd-card {
  flex: 0 0 calc(33.33% - 2.4rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.pd-card__img-wrap {
  aspect-ratio: 421 / 500;
  background-color: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.pd-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.pd-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pd-card__name {
  font-size: 2.2rem;
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.03em;
  line-height: 1.3em;
}

.pd-card__desc {
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: -0.04em;
  line-height: 1.4em;
}

/* ======================
   반응형 (모바일 768px 이하)
   ====================== */

/* ======================
   제품 상세 모달
   ====================== */

/* 오버레이 + 컨테이너 */
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-modal[hidden] {
  display: none;
}

.pd-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* 패널 */
.pd-modal__panel {
  position: relative;
  z-index: 1;
  width: 70rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  padding: 5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* 헤더 */
.pd-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pd-modal__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 2rem;
}

.pd-modal__name {
  font-size: 3.2rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pd-modal__subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: #958b82;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.pd-modal__close {
  flex-shrink: 0;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.pd-modal__close:hover {
  opacity: 0.5;
}

/* 본문 */
.pd-modal__body {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.pd-modal__img-wrap {
  position: relative;
  width: 100%;
  height: 35.8rem;
  overflow: hidden;
  background: #f5f5f5;
}

.pd-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.pd-modal__badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  padding: 0.2rem 1.6rem;
  background: #ffcc5d;
  border-radius: 9.9rem;
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #000000;
  text-transform: uppercase;
  display: none;
}

.pd-modal__badge:not(:empty) {
  /* display: inline-flex; */
  /* align-items: center; */
}

.pd-modal__detail {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.pd-modal__volume {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: -0.04em;
  line-height: 1.4em;
}

.pd-modal__desc {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: -0.04em;
  line-height: 1.6em;
  word-break: keep-all;
}

/* 푸터 */
.pd-modal__footer {
  display: flex;
  justify-content: center;
}

.pd-modal__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 5.2rem;
  background: #381010;
  border: 1px solid #ffffff;
  border-radius: 9.9rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.pd-modal__buy:hover {
  opacity: 0.85;
}

/* 카드 이미지 클릭 커서 */
.pd-card__img-wrap {
  cursor: pointer;
}

/* ======================
   반응형 (모바일 768px 이하)
   ====================== */

@media (max-width: 1024px) {

  /* 비주얼 */

  /* 제품 목록 */
  .pd-list {
    padding: 3.2rem 0 12rem;
  }

  .pd-tabs {
    margin-bottom: 2.4rem;
  }

  .pd-tabs__btn {
    font-size: 1.8rem;
    padding: 1.2rem 2.4rem;
  }

  .pd-row {
    gap: 2.4rem 1.6rem;
  }

  .pd-card {
    flex: 0 0 calc(50% - 0.8rem);
    gap: 1.6rem;
  }

  .pd-card__name {
    font-size: 1.8rem;
  }

  .pd-card__desc {
    font-size: 1.4rem;
  }

  /* 모달 */
  .pd-modal__panel {
    width: 90%;
    max-height: 85vh;
    padding: 1.6rem;
    gap: 2.4rem;

  }

  .pd-modal__detail {
    gap: 0.8rem;
  }

  .pd-modal__name {
    font-size: 2.4rem;
  }

  .pd-modal__subtitle {
    font-size: 1.6rem;
  }

  .pd-modal__img-wrap {
    height: 24rem;
    height: auto;
  }

  .pd-modal__img {
    height: auto;
  }

  .pd-modal__badge {
    font-size: 1.4rem;
    top: 1.2rem;
    right: 1.2rem;
  }

  .pd-modal__volume {
    font-size: 1.6rem;
  }

  .pd-modal__desc {
    font-size: 1.4rem;
  }

  .pd-modal__buy {
    font-size: 1.6rem;
    padding: 1.2rem 3.2rem;
  }
}