/* ═══════════════════════════════════════════════
   book-single.css — Детальная страница книги
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.breadcrumb { margin: 0; font-size: 12px; font-family: 'Montserrat', sans-serif; }
.breadcrumb-item a { color: var(--green-mid); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-gray); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-gray); }

/* ── Wrap ── */
.book-single-wrap {
  padding: 40px 0 60px;
  background: var(--gray-bg);
}

/* ══ COVER COLUMN ══════════════════════════════ */
.book-single-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.book-single-cover-box {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.book-single-cover-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.book-single-cover-link img {
  width: 100%;
  display: block;
  object-fit: cover;
}


.book-single-no-cover {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4f0;
}
.book-single-no-cover i { font-size: 72px; color: rgba(27,77,53,0.15); }

/* Availability badge */
.book-availability {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}
.book-availability.available { color: #1e6640; }
.book-availability.available i { color: #27ae60; font-size: 16px; }
.book-availability.unavailable { color: #8a3a2a; }
.book-availability.unavailable i { color: #c0392b; font-size: 16px; }

/* ══ INFO COLUMN ═══════════════════════════════ */
.book-single-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
}

.book-single-title {
  font-family: 'KZBookman', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: normal;
  color: var(--green-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.book-single-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-single-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--green-mid) 0%, transparent 100%);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* Meta table */
.book-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.book-meta-table tr {
  border-bottom: 1px solid var(--border-light);
}
.book-meta-table tr:last-child { border-bottom: none; }
.book-meta-table td {
  padding: 9px 0;
  font-size: 13px;
  vertical-align: top;
}
.book-meta-label {
  color: var(--text-gray);
  font-weight: 600;
  width: 140px;
  flex-shrink: 0;
  white-space: nowrap;
}
.book-meta-label i { color: var(--gold); margin-right: 5px; }
.book-meta-value {
  color: var(--text-dark);
  font-weight: 500;
  padding-left: 12px;
}
.book-meta-value .book-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f2ec;
  color: var(--green-dark);
}

/* Annotation */
.book-single-annotation-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-gray);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.book-single-annotation {
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 28px;
}
.book-single-annotation p { margin-bottom: 10px; }
.book-single-annotation p:last-child { margin-bottom: 0; }

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 2px solid var(--green-mid);
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: all var(--tr);
  cursor: pointer;
  text-decoration: none;
}
.btn-back:hover { background: var(--green-mid); color: #fff; }

/* ══ RELATED BOOKS ══════════════════════════════ */
.related-books-section {
  margin-top: 48px;
}
.related-books-title {
  font-family: 'KZBookman', serif;
  font-size: 22px;
  font-weight: normal;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.related-books-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--green-mid) 0%, transparent 100%);
  border-radius: 2px;
}

.related-book-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--tr), transform var(--tr);
  height: 100%;
}
.related-book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.related-book-card-img {
  height: 200px;
  overflow: hidden;
  background: #eef4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.related-book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-book-card:hover .related-book-card-img img { transform: scale(1.05); }
.related-book-card-img i { font-size: 36px; color: rgba(27,77,53,0.15); }

.related-book-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.related-book-card-title {
  font-family: 'KZBookman', serif;
  font-size: 14px;
  font-weight: normal;
  color: var(--green-dark);
  line-height: 1.4;
  margin-bottom: 5px;
}
.related-book-card-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 10px;
}
.related-book-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.related-book-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray);
}
.related-book-read-more {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--tr);
}
.related-book-card:hover .related-book-read-more { gap: 7px; }

/* ── Read online button ── */
.btn-read-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-mid);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background var(--tr), transform .2s;
}
.btn-read-online:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .book-single-cover-col { flex-direction: row; flex-wrap: wrap; }
  .book-single-cover-box, .book-availability { max-width: 240px; }
  .book-single-info { padding: 22px 20px; }
}
@media (max-width: 767px) {
  .book-single-cover-col { align-items: flex-start; }
  .book-meta-label { width: 120px; }
}
