/**
 * Book detail page — scoped to .book-detail-page only.
 */
.book-detail-page #tim-vine {
  margin-left: 0;
  margin-right: 0;
}

.book-detail-page #tim-vine > [class*='col-'] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.book-detail-page .book-detail-card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

.book-detail-page .book-detail-info {
  min-width: 0;
}

.book-detail-page .book-detail-price {
  width: 100%;
  max-width: 280px;
}

.book-detail-page .book-detail-price-inner {
  background-color: #f0f0f0;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  height: 100%;
}

.book-detail-page .book-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.book-detail-page .book-price-label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.85rem;
}

.book-detail-page .book-price-value {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
}

.book-detail-page .book-detail-price .old-price {
  display: inline-block;
  margin-bottom: 0;
}

.book-detail-page .book-detail-price .badge {
  vertical-align: middle;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

.book-detail-page .content-right .rounded.bg-white {
  min-height: auto;
}

.book-detail-page .content-left .card {
  height: auto;
}

.book-detail-page .content-left .card-body {
  min-height: 0;
}

.book-detail-page .book-tab-content .description {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.book-detail-page .book-tab-content .description img {
  max-width: 100%;
  height: auto;
}

.book-detail-page .book-tags {
  gap: 0.35rem;
}

.book-detail-page .book-tags .badge {
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.book-detail-page .best-sellers {
  padding-left: 0;
  padding-right: 0;
}

.book-detail-page .best-sellers-title {
  width: auto !important;
  min-width: 0;
  flex: 1 1 auto;
}

.book-detail-page .best-sellers .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

@media (min-width: 768px) {
  .book-detail-page .book-detail-card-body {
    display: grid !important;
    direction: ltr;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas: 'price info';
    width: 100%;
    gap: 1.5rem;
    align-items: start;
  }

  .book-detail-page .book-detail-price {
    grid-area: price;
    width: 280px;
    max-width: 280px;
    direction: rtl;
  }

  .book-detail-page .book-detail-info {
    grid-area: info;
    direction: rtl;
    text-align: right;
  }
}

@media (max-width: 991.98px) {
  .book-detail-page #tim-vine > [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .book-detail-page .content-right .rounded.bg-white {
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }

  .book-detail-page .content-right section.w-50 {
    width: 70% !important;
    max-width: 280px;
  }
}

@media (max-width: 575.98px) {
  .book-detail-page .content-right section.w-50 {
    width: 55% !important;
  }

  .book-detail-page .category-breadcrumb h2 {
    font-size: 14px;
  }
}
