/* E-Books listing page */
.books-page {
  width: 100%;
  max-width: 100%;
  padding-bottom: 2.5rem;
}

.books-page .attention-message {
  background: linear-gradient(135deg, var(--c-brand-wash) 0%, var(--c-brand-soft) 100%);
  border-left: 5px solid var(--orang);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--orang) 8%, transparent);
}

.books-page .attention-message p {
  color: var(--c-brand-ink);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.books-page .books-breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--grayHeader);
  font-weight: 700;
}

.books-page .books-breadcrumb a {
  color: var(--orang);
  text-decoration: none;
}

.books-page .books-breadcrumb svg {
  margin: 0 4px;
  vertical-align: -2px;
}

.books-page .books-intro h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--grayHeader);
  margin-bottom: 0.75rem;
}

.books-page .books-intro p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--grayHeader);
  max-width: 62rem;
  margin-bottom: 0;
}

.books-page .books-intro strong {
  color: var(--orang);
}

.books-page .books-grid {
  margin-top: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.books-page .book-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--c-line);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--c-ink) 5%, transparent);
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: stretch;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  min-width: 0;
}

.books-page .book-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-line-2);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--c-ink) 12%, transparent);
}

.books-page .book-img-wrap {
  flex: 0 0 158px;
  width: 158px;
  max-width: 36%;
}

.books-page .book-img {
  display: block;
  width: 100%;
  height: 252px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--c-bg-2);
  transition: transform 0.3s ease;
}

.books-page .book-card:hover .book-img {
  transform: scale(1.03) rotate(-1deg);
}

.books-page .book-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.books-page .book-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.books-page .book-para {
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.books-page .book-para p {
  margin: 0;
}

.books-page .book-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.books-page .book-detail-item p {
  color: var(--c-text-2);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.books-page .more-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orang);
  font-weight: 700;
  font-size: 0.98rem;
  transition: gap 0.2s ease, color 0.2s ease;
  text-decoration: none;
  padding-top: 12px;
}

.books-page .more-button:hover {
  gap: 12px;
  color: var(--c-brand-strong);
}

@media (max-width: 575.98px) {
  .books-page .book-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 20px;
  }

  .books-page .book-img-wrap {
    flex-basis: auto;
    width: 140px;
    max-width: 140px;
  }

  .books-page .book-img {
    height: 224px;
  }

  .books-page .book-body {
    width: 100%;
  }
}

/* E-Book detail page */
.book-detail {
  padding-bottom: 2rem;
}

.book-detail .attention-message {
  background: linear-gradient(135deg, var(--c-brand-wash) 0%, var(--c-brand-soft) 100%);
  border-left: 5px solid var(--kira-brand, var(--orang));
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--orang) 8%, transparent);
}

.book-detail .attention-message p {
  color: var(--c-brand-ink);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.book-detail .page-title {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--c-charcoal);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.book-detail .page-img {
  border-radius: 12px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--c-ink) 15%, transparent);
  max-width: 100%;
  height: auto;
}

.book-detail .page-para {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.7;
}

.book-detail .page-para p {
  margin-bottom: 1rem;
}

.book-detail .page-list p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  color: var(--c-charcoal);
  font-size: 0.98rem;
  line-height: 1.5;
}

.book-detail .page-list p img {
  display: none !important;
}

.book-detail .page-list p::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background-color: var(--kira-brand, var(--orang));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.2l2.4 2.4L12 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.book-detail .book-buy-card {
  position: relative;
  z-index: 3;
  margin-top: 1.5rem;
  padding: 1.25rem 1.1rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--c-ink) 8%, transparent);
}

.book-detail .page-price {
  display: block;
  font-size: 1.25rem;
  color: var(--c-charcoal);
  margin-bottom: 12px;
}

.book-detail .page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  background: var(--kira-brand, var(--orang));
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 12px 36px;
  font-weight: 600;
  font-family: Roboto, sans-serif;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.book-detail .page-button:hover {
  background: var(--kira-brand-dark, var(--c-brand-strong));
  transform: translateY(-1px);
  color: #fff !important;
}

.book-detail .page-descrp {
  color: var(--c-text);
  line-height: 1.7;
}

.book-detail .page-descrp ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
  list-style: disc;
}

.book-detail .page-descrp li {
  margin-bottom: 0.75rem;
}

.book-detail .book-breadcrumb a {
  font-weight: 700;
  color: var(--kira-brand, var(--orang));
  text-decoration: none;
}

.book-detail .book-breadcrumb svg {
  margin: 0 6px;
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .book-detail .book-buy-card {
    position: sticky;
    top: calc(var(--kira-header-h, 72px) + 8px);
  }
}
