#single-book-wrapper {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background-color: var(--bs-body-bg);
}

.book-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--bs-gray-600);
}

.book-breadcrumb a {
  color: var(--bs-gray-600);
  text-decoration: none;
  transition: color 0.18s;
}

.book-breadcrumb a:hover {
  color: var(--bs-primary);
}

.book-breadcrumb span:last-child {
  max-width: 28ch;
  overflow: hidden;
  color: var(--bs-gray-500);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.book-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.book-cover-col {
  position: sticky;
  top: 2rem;
}

.book-cover-wrap {
  position: relative;
  overflow: visible;
  border-radius: var(--bs-border-radius-lg);
}

.book-cover-wrap::before,
.book-cover-wrap::after {
  position: absolute;
  right: -4px;
  bottom: -6px;
  left: 4px;
  z-index: -1;
  height: 100%;
  background: var(--bs-gray-300);
  border-radius: var(--bs-border-radius-lg);
  content: "";
}

.book-cover-wrap::after {
  right: -8px;
  bottom: -12px;
  left: 8px;
  z-index: -2;
  background: var(--bs-gray-200);
}

.book-cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--bs-border-radius-lg);
  box-shadow:
    0 8px 24px rgba(var(--bs-dark-rgb), 0.18),
    0 2px 6px rgba(var(--bs-dark-rgb), 0.1);
}

.book-cover-shadow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(var(--bs-dark-rgb), 0.12) 0%,
    transparent 18%,
    transparent 85%,
    rgba(var(--bs-white-rgb), 0.06) 100%
  );
  border-radius: var(--bs-border-radius-lg);
  pointer-events: none;
}

.book-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 3;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--bs-gray-200) 0%,
    var(--bs-gray-300) 100%
  );
}

.book-cover-placeholder span {
  color: var(--bs-gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.book-meta-col {
  padding-top: 0.25rem;
}

.book-title {
  margin-bottom: 0.75rem;
  color: var(--bs-dark);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.book-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.book-genre-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  color: var(--bs-info);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  background-color: rgba(var(--bs-info-rgb), 0.12);
  border: 1px solid rgba(var(--bs-info-rgb), 0.25);
  border-radius: var(--bs-border-radius-sm);
  transition:
    background-color 0.18s,
    color 0.18s;
}

.book-genre-tag:hover {
  color: var(--bs-white);
  background-color: var(--bs-info);
  border-color: var(--bs-info);
}

.book-divider {
  width: 3.5rem;
  height: 2px;
  margin: 1.25rem 0 1.5rem;
  background-color: var(--bs-primary);
  border-radius: 1px;
}

.book-purchase {
  margin-top: 0.5rem;
}

.book-purchase-label {
  margin-bottom: 0.875rem;
  color: var(--bs-gray-600);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-purchase-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-purchase {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  color: var(--bs-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: none;
  background-color: transparent;
  border: 1.5px solid var(--bs-primary);
  border-radius: var(--bs-border-radius);
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.btn-purchase span {
  font-weight: 700;
}

.btn-purchase .btn-purchase-arrow {
  opacity: 0.7;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.btn-purchase:hover,
.btn-purchase:focus-visible {
  color: var(--bs-white);
  background-color: var(--bs-primary);
  box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), 0.28);
  transform: translateY(-2px);
}

.btn-purchase:hover .btn-purchase-arrow,
.btn-purchase:focus-visible .btn-purchase-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.btn-purchase:active {
  box-shadow: none;
  transform: translateY(0);
}

.btn-purchase:first-child {
  color: var(--bs-white);
  background-color: var(--bs-primary);
}

.btn-purchase:first-child:hover,
.btn-purchase:first-child:focus-visible {
  background-color: var(--bs-link-hover-color);
  border-color: var(--bs-link-hover-color);
}

.book-bio-section {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--bs-border-color);
}

.book-bio-heading {
  position: relative;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  color: var(--bs-gray-600);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-bio-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 1.5px;
  background-color: var(--bs-primary);
  border-radius: 1px;
  content: "";
}

.book-bio-body {
  max-width: 70ch;
  color: var(--bs-gray-700);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.book-bio-body p {
  margin-bottom: 1.25rem;
}

.book-bio-body p:last-child {
  margin-bottom: 0;
}

.book-bio-body a {
  color: var(--bs-primary);
  text-underline-offset: 3px;
}

.book-bio-body a:hover {
  color: var(--bs-link-hover-color);
}

.book-bio-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  color: var(--bs-gray-800);
  font-style: italic;
  background-color: var(--bs-gray-100);
  border-left: 3px solid var(--bs-info);
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.book-bio-body blockquote p {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-cover-col {
    position: static;
    max-width: 220px;
    margin: 0 auto;
  }

  .book-title {
    font-size: 1.875rem;
    text-align: center;
  }

  .book-breadcrumb,
  .book-genres,
  .book-divider,
  .book-purchase {
    justify-content: center;
    text-align: center;
  }

  .book-divider {
    margin-right: auto;
    margin-left: auto;
  }

  .book-bio-section {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .btn-purchase {
    width: 100%;
    justify-content: center;
  }

  .book-purchase-btns {
    flex-direction: column;
  }
}