
/* 기본 설정 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  cursor: url("../assets/images/custom-cursor-small.png") 25 25, auto;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: url("../assets/images/custom-cursor-small.png") 25 25, pointer;
}


/* 상단 헤더 */
.site-header {
  width: 100%;
  height: 70px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #e650d3;
  color: #000;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #000;
  transition: color 0.2s ease;
}

.contact-info {
  display: flex;
  gap: 45px;
}

.contact-info a {
  font-size: 18px;
  color: #000;
  transition: color 0.2s ease;
}

.site-logo:hover,
.contact-info a:hover {
  color: #fff;
}


/* 상세 페이지 전체 레이아웃 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 70px;
}


/* 왼쪽 이미지 영역 */
.image-gallery {
  padding: 20px 15px 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* 오른쪽 텍스트 영역 */
.detail-info {
  position: relative;
  padding: 50px 40px 60px;
}

.detail-content {
  position: sticky;
  top: 120px;
  max-width: 600px;
}

.category {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 25px;
}

.detail-info h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 16px;
  line-height: 1.15;
  color: #999;
  margin-bottom: 0;
}


/* 책 제목 영역 */
.book-heading {
  margin-bottom: 30px;
}

.book-heading h1 {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 2px;
}

.publisher {
  font-size: 16px;
  line-height: 1.15;
  margin-bottom: 2px;
}


/* 장바구니 링크 */
.add-to-cart {
  display: inline-block;
  margin-top: 20px;
  color: #e650d3;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  transition: opacity 0.2s ease;
}

.add-to-cart:hover {
  opacity: 0.65;
}


/* 소개 문단 */
.description {
  font-size: 16px;
  line-height: 1.2;
  color: #ddd;
  word-break: keep-all;
}

.description p {
  margin-bottom: 14px;
}


/* 목차 */
.table-of-contents {
  margin-top: 25px;
  font-size: inherit;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.table-of-contents p {
  margin: 0;
  line-height: inherit;
}


/* 책 정보 */
.book-details {
  margin-top: 35px;
  padding-top: 0;
  border-top: none;
}

.book-details p {
  display: flex;
  gap: 25px;
  font-size: 14px;
  line-height: 2;
  color: #ddd;
}

.book-details span {
  width: 90px;
  flex-shrink: 0;
  color: #888;
}


/* 사진가 인스타그램 링크 */
.description a.person-link {
  display: inline;
  position: relative;
  z-index: 9999;
  color: #00ffff !important;
  text-decoration: none;
  pointer-events: auto;
}

.description a.person-link:hover {
  opacity: 0.6;
}


/* 홈으로 돌아가기 */
.back-link {
  display: inline-block;
  margin-top: 55px;
  font-size: 13px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #e650d3;
}


/* 모바일 화면 */
@media (max-width: 768px) {

  .site-header {
    height: 55px;
    padding: 0 15px;
  }

  .site-logo {
    font-size: 16px;
  }

  .contact-info {
    gap: 16px;
  }

  .contact-info a {
    font-size: 12px;
  }

  .detail-layout {
    display: flex;
    flex-direction: column;
    padding-top: 55px;
  }

  .image-gallery {
    padding: 10px 15px 20px;
    gap: 10px;
  }

  .detail-info {
    padding: 35px 20px 50px;
  }

  .detail-content {
    position: static;
    max-width: none;
  }

  .detail-info h1 {
    font-size: 32px;
  }

  .subtitle {
    margin-bottom: 30px;
  }

  .description {
    font-size: 14px;
  }

  .book-details {
    margin-top: 35px;
  }

  .back-link {
    margin-top: 40px;
  }
}


/* 상세 페이지 커서 */
body,
.detail-info,
.description,
.detail-content {
  cursor: url("../assets/images/custom-cursor-small.png") 25 25, auto;
}

a,
button {
  cursor: url("../assets/images/custom-cursor-small.png") 25 25, pointer;
}
