/* =============================================
   BOOK DETAIL PAGE — /css/book-detail.css
   Depends on: /css/style.css (base styles)
   ============================================= */

/* ===== HEADER: always solid on this page ===== */
.book-detail-page #site-header,
.book-detail-page #site-header.header-solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74,94,26,0.12);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  animation: none;
}

/* Nav links dark on solid header */
.book-detail-page #site-header nav a {
  color: #222;
  animation: none;
}
.book-detail-page #site-header nav a:hover { color: var(--olive); }
.book-detail-page #site-header .header-icons svg { stroke: #333; }
.book-detail-page #site-header .hamburger span { background: #333; }

/* Page top padding to clear fixed header (header ~105px logo + padding) */
.book-detail-page { padding-top: 138px; }

/* ===== BREADCRUMB ===== */
.bd-breadcrumb {
  background: #f7f8f4;
  border-bottom: 1px solid rgba(74,94,26,0.08);
}
.bd-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bd-breadcrumb a {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.bd-breadcrumb a:hover { color: var(--olive); }
.bd-breadcrumb-sep {
  display: flex; align-items: center;
  color: #ccc;
}
.bd-breadcrumb-sep svg { width: 14px; height: 14px; }
.bd-breadcrumb-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--olive);
}

/* ===== MAIN LAYOUT ===== */
.bd-main {
  background: #fff;
  padding: 60px 0 80px;
}
.bd-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: start;
}

/* ===== COVER COLUMN ===== */
.bd-cover-col {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: bdSlideLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes bdSlideLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bd-cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 12px 32px rgba(0,0,0,0.14),
    0 32px 60px rgba(0,0,0,0.1),
    6px 6px 0 rgba(74,94,26,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: linear-gradient(135deg, #4a5a18, #2a3510);
  aspect-ratio: 3/4;
}
.bd-cover-wrapper:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow:
    0 8px 16px rgba(0,0,0,0.08),
    0 20px 50px rgba(0,0,0,0.18),
    0 48px 80px rgba(0,0,0,0.12),
    8px 8px 0 rgba(74,94,26,0.16);
}
.bd-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.bd-cover-wrapper:hover .bd-cover-img { transform: scale(1.03); }

/* Shine overlay */
.bd-cover-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 60%
  );
  pointer-events: none;
}

/* Placeholder if no image */
.bd-cover-placeholder::after {
  content: '📖';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: 0.3;
}

/* Cover badge */
.bd-cover-badge {
  position: absolute;
  top: 0; right: 0;
  width: 110px; height: 110px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.bd-cover-badge::before {
  content: attr(class);
  position: absolute;
  top: 22px; right: -28px;
  width: 130px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 6px 0;
  background: #e8420a;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Rating block */
.bd-rating-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.bd-stars {
  display: flex;
  gap: 2px;
}
.bd-stars svg {
  width: 18px; height: 18px;
}
.bd-rating-score {
  font-size: 17px;
  font-weight: 900;
  color: #222;
}
.bd-rating-count {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

/* ===== INFO COLUMN ===== */
.bd-info-col {
  animation: bdSlideRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes bdSlideRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Category tag */
.bd-category-tag {
  display: inline-block;
  background: rgba(74,94,26,0.1);
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(74,94,26,0.18);
}

/* Title */
.bd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #111;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Author line */
.bd-author {
  font-size: 15px;
  color: #888;
  margin-bottom: 28px;
}
.bd-author-by { margin-right: 4px; }
.bd-author-name {
  color: var(--olive);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.bd-author-name:hover { color: var(--olive-dark); text-decoration: underline; }

/* Divider */
.bd-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(74,94,26,0.2), transparent);
  margin: 24px 0;
}

/* Description */
.bd-description {
  color: #555;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 8px;
}
.bd-description p + p { margin-top: 14px; }
.bd-description em { color: var(--olive); font-style: italic; }

/* ===== META STATS ROW ===== */
.bd-meta-row {
  display: flex;
  gap: 0;
  margin: 28px 0;
  border: 1px solid rgba(74,94,26,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #f7f9f3;
}
.bd-meta-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-right: 1px solid rgba(74,94,26,0.1);
}
.bd-meta-item:last-child { border-right: none; }
.bd-meta-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,94,26,0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--olive);
}
.bd-meta-icon svg { width: 18px; height: 18px; }
.bd-meta-item > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bd-meta-value {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.bd-meta-label {
  font-size: 11px;
  color: #999;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== PURCHASE BLOCK ===== */
.bd-purchase-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.bd-purchase-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1.5px solid rgba(74,94,26,0.15);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.bd-purchase-option:hover {
  border-color: var(--olive);
  box-shadow: 0 4px 20px rgba(74,94,26,0.1);
  background: #fafdf5;
}

.bd-purchase-option-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bd-purchase-type {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
}
.bd-purchase-type svg { width: 15px; height: 15px; stroke: var(--olive); }

.bd-purchase-price-group { display: flex; flex-direction: column; gap: 2px; }

.bd-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--olive);
  font-family: 'Lato', sans-serif;
  line-height: 1;
}
.bd-price-note {
  font-size: 12px;
  color: #bbb;
  font-weight: 400;
}

/* Select region prompt (replaces price on paperback) */
.bd-price-select-region {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive);
  opacity: 0.75;
  font-style: italic;
  padding: 6px 0 2px;
}
.bd-price-select-region svg {
  width: 15px;
  height: 15px;
  stroke: var(--olive);
  flex-shrink: 0;
  opacity: 0.8;
}

/* Buttons */
.bd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-width: 160px;
  width: 160px;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}
.bd-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.bd-btn:hover { transform: translateY(-2px); }

.bd-btn-primary {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,94,26,0.3);
}
.bd-btn-primary:hover {
  background: var(--olive-dark);
  box-shadow: 0 8px 24px rgba(74,94,26,0.4);
}

.bd-btn-secondary {
  background: #fff;
  color: var(--olive);
  border: 2px solid var(--olive);
}
.bd-btn-secondary:hover {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 6px 20px rgba(74,94,26,0.25);
}

/* ===== RETAILERS ROW — hidden ===== */
.bd-retailers { display: none; }

/* ===== REVIEWS BOTTOM (dots above, button below full-width) ===== */
.bd-reviews-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 40px 36px;
}

.bd-reviews-bottom .bd-reviews-dots {
  padding: 0;
}

/* Write Review trigger — full width */
.bd-open-review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1.5px solid rgba(74,94,26,0.3);
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 20px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--olive);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bd-open-review-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.bd-open-review-btn:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,94,26,0.25);
}

/* ===== REVIEW MODAL ===== */
.bd-review-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 4000;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: bdOverlayIn 0.25s ease both;
}
.bd-review-modal-overlay.open { display: block; }

@keyframes bdOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bd-review-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.1);
  z-index: 4001;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.bd-review-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.bd-review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 0;
  margin-bottom: 22px;
}
.bd-review-modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}
.bd-review-modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f3f4f0;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.bd-review-modal-close svg { width: 16px; height: 16px; stroke: #555; }
.bd-review-modal-close:hover { background: #e8e8e8; transform: scale(1.08); }

/* Modal body */
.bd-review-modal-body {
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Accent line under header */
.bd-review-modal-header::after {
  display: none;
}
.bd-review-modal {
  border-top: 4px solid var(--olive);
}
.bd-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bd-form-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #555;
  text-transform: uppercase;
}
.bd-form-input,
.bd-form-textarea {
  width: 100%;
  border: 1.5px solid rgba(74,94,26,0.18);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.bd-form-input:focus,
.bd-form-textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74,94,26,0.1);
}
.bd-form-input::placeholder,
.bd-form-textarea::placeholder { color: #bbb; }

/* Star picker */
.bd-star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bd-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  line-height: 0;
  transition: transform 0.15s;
}
.bd-star-btn:hover { transform: scale(1.2); }
.bd-star-btn svg {
  width: 30px; height: 30px;
  fill: #e0e0e0;
  stroke: none;
  transition: fill 0.15s;
}
.bd-star-btn.active svg,
.bd-star-btn.hover svg { fill: #f5a623; }
.bd-star-label {
  font-size: 13px;
  color: #aaa;
  margin-left: 8px;
  font-style: italic;
  min-width: 90px;
}

/* Submit row */
.bd-form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.bd-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: #aaa;
  line-height: 1.5;
  max-width: 340px;
}
.bd-form-notice svg {
  width: 15px; height: 15px;
  stroke: #bbb;
  flex-shrink: 0;
  margin-top: 1px;
}
.bd-form-submit-btn {
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(74,94,26,0.25);
}
.bd-form-submit-btn:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,94,26,0.35);
}

/* Success message */
.bd-form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(74,94,26,0.08);
  border: 1.5px solid rgba(74,94,26,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--olive);
}
.bd-form-success svg {
  width: 20px; height: 20px;
  stroke: var(--olive);
  flex-shrink: 0;
}
.bd-form-success.visible { display: flex; }

@media (max-width: 680px) {
  .bd-write-review-inner { padding: 0 20px; }
  .bd-form-submit-row { flex-direction: column; align-items: stretch; }
  .bd-form-notice { max-width: 100%; }
  .bd-form-submit-btn { width: 100%; text-align: center; }
}

/* ===== YOU MAY ALSO LIKE — SLIDER ===== */
.bd-related-section {
  background: #f7f9f3;
  padding: 60px 0;
  border-top: 1px solid rgba(74,94,26,0.08);
}
.bd-related-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}
.bd-related-header { margin-bottom: 36px; }
.bd-related-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.6;
  margin-bottom: 8px;
}
.bd-related-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #111;
}

/* Slider */
.bd-related-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}
.bd-related-slider-wrap::before,
.bd-related-slider-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.bd-related-slider-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f7f9f3, transparent);
}
.bd-related-slider-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f7f9f3, transparent);
}

.bd-related-track {
  display: flex;
  gap: 22px;
  padding: 10px 0 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: grab;
}
.bd-related-track:active { cursor: grabbing; }

/* Each book card in slider — fixed width */
.bd-related-card {
  min-width: 240px !important;
  max-width: 240px !important;
  flex-shrink: 0;
}

/* Arrows */
.bd-related-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(74,94,26,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: var(--olive);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.bd-related-arrow svg { width: 20px; height: 20px; }
.bd-related-arrow:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  box-shadow: 0 6px 22px rgba(74,94,26,0.3);
}
.bd-related-arrow:hover svg { stroke: #fff; }
.bd-related-arrow:disabled { opacity: 0.3; cursor: default; }
.bd-related-prev { left: 2px; }
.bd-related-next { right: 2px; }

/* Footer */
.bd-related-footer {
  text-align: center;
  margin-top: 36px;
}
.bd-related-all-btn {
  display: inline-block;
  padding: 13px 34px;
  border: 2px solid var(--olive);
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.bd-related-all-btn:hover {
  background: var(--olive);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .bd-related-track { padding: 10px 0 20px; gap: 16px; }
  .bd-related-inner { padding: 0 20px; }
  .bd-related-slider-wrap { padding: 0 20px; }
  .bd-related-card { min-width: 200px !important; max-width: 200px !important; }
}

/* ===== READERS REVIEWS SLIDER ===== */
.bd-reviews-section {
  background: #f7f9f3;
  padding: 70px 0 60px;
  border-top: 1px solid rgba(74,94,26,0.08);
  position: relative;
  overflow: hidden;
}

/* Header */
.bd-reviews-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px 40px;
}
.bd-reviews-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.6;
  margin-bottom: 8px;
}
.bd-reviews-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}
.bd-reviews-overall {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bd-reviews-overall-score {
  font-size: 52px;
  font-weight: 900;
  color: var(--olive);
  line-height: 1;
  font-family: 'Lato', sans-serif;
}
.bd-reviews-overall-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}
.bd-reviews-overall-stars svg { width: 20px; height: 20px; }
.bd-reviews-overall-count {
  font-size: 13px;
  color: #aaa;
  font-weight: 500;
}

/* Slider wrapper */
.bd-reviews-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

/* Track — scrollable row of cards */
.bd-reviews-track {
  display: flex;
  gap: 24px;
  padding: 10px 0 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: grab;
}
.bd-reviews-track:active { cursor: grabbing; }

/* Fade edges */
.bd-reviews-slider-wrap::before,
.bd-reviews-slider-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.bd-reviews-slider-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f7f9f3, transparent);
}
.bd-reviews-slider-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f7f9f3, transparent);
}

/* Individual card */
.bd-review-card {
  min-width: 360px;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(74,94,26,0.1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
.bd-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(74,94,26,0.12);
  border-color: rgba(74,94,26,0.2);
}

/* Stars inside card */
.bd-review-stars {
  display: flex;
  gap: 2px;
}
.bd-review-stars svg { width: 16px; height: 16px; }

/* Review text */
.bd-review-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  flex: 1;
  font-style: italic;
}
.bd-review-text em { font-style: normal; font-weight: 700; color: var(--olive); }

/* Author row */
.bd-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(74,94,26,0.08);
}
.bd-review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--av-color, #4a5e1a);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bd-review-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}
.bd-review-date {
  font-size: 12px;
  color: #bbb;
  margin-top: 2px;
}

/* Navigation arrows */
.bd-reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(74,94,26,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: var(--olive);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bd-reviews-arrow svg { width: 20px; height: 20px; }
.bd-reviews-arrow:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  box-shadow: 0 6px 22px rgba(74,94,26,0.3);
}
.bd-reviews-arrow:hover svg { stroke: #fff; }
.bd-reviews-arrow:active { transform: translateY(-50%) scale(0.93); }
.bd-reviews-arrow:disabled { opacity: 0.3; cursor: default; }
.bd-reviews-prev { left: 2px; }
.bd-reviews-next { right: 2px; }

/* Dots */
.bd-reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 28px;
}
.bd-reviews-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(74,94,26,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, width 0.25s;
}
.bd-reviews-dot.active {
  background: var(--olive);
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 680px) {
  .bd-reviews-section { padding: 50px 0 40px; }
  .bd-reviews-header { padding: 0 20px 30px; }
  .bd-review-card { min-width: 290px; max-width: 290px; }
  .bd-reviews-track { padding: 10px 0 20px; gap: 16px; }
  .bd-reviews-slider-wrap { padding: 0 20px; }
  .bd-reviews-overall-score { font-size: 40px; }
}

/* ===== ABOUT THE AUTHOR SECTION ===== */
.bd-author-section {
  background: linear-gradient(160deg, #3a4a14 0%, var(--olive) 55%, #5a7020 100%);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.bd-author-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.bd-author-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.bd-author-avatar {
  flex-shrink: 0;
}
.bd-author-avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}
.bd-author-text { flex: 1; }
.bd-author-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.bd-author-section-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.bd-author-section-bio {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin-bottom: 20px;
}
.bd-author-section-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
}
.bd-author-section-link:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .bd-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 30px;
  }
  .bd-cover-col {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }
  .bd-cover-wrapper { max-width: 100%; }
  .bd-author-inner { flex-direction: column; gap: 28px; text-align: center; }
  .bd-author-section-bio { max-width: 100%; }
}

@media (max-width: 680px) {
  .book-detail-page { padding-top: 90px; }
  .bd-breadcrumb-inner { padding: 10px 20px; }
  .bd-main { padding: 36px 0 60px; }
  .bd-container { padding: 0 20px; gap: 30px; }
  .bd-title { font-size: 30px; }
  .bd-meta-row { flex-direction: column; border-radius: 10px; }
  .bd-meta-item { border-right: none; border-bottom: 1px solid rgba(74,94,26,0.1); }
  .bd-meta-item:last-child { border-bottom: none; }
  .bd-purchase-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .bd-btn { width: 100%; justify-content: center; }
  .bd-author-section { padding: 44px 20px; }
}

@media (max-width: 500px) {
  .bd-retailers { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =============================================
   PAPERBACK BUY MODAL
   ============================================= */

.bd-paperback-modal {
  max-width: 480px;
  max-height: 82vh;
  overflow: hidden;
}

.bd-paperback-modal.open {
  display: flex !important;
  flex-direction: column;
}

.bd-paperback-modal .bd-review-modal-header {
  flex-shrink: 0;
}

.bd-paperback-modal .bd-review-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Price badge row */
.bd-pb-price-row {
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f7f9f3 0%, #eef2e6 100%);
}

.bd-pb-price-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--olive, #4a5e1a);
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  flex-shrink: 0;
}

.bd-pb-price-badge svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.bd-pb-price-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.bd-pb-price-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
}

.bd-pb-price-note {
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.bd-pb-divider {
  height: 1px;
  background: rgba(74,94,26,0.1);
  margin: 0;
}

/* Stores label */
.bd-pb-stores-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  padding: 18px 28px 10px;
  margin: 0;
}

/* Stores list */
.bd-pb-stores {
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Individual store row */
.bd-pb-store-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.bd-pb-store-item:hover {
  background: #f0f4e8;
  border-color: rgba(74,94,26,0.18);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(74,94,26,0.08);
}

.bd-pb-store-item:active {
  transform: translateX(2px) scale(0.99);
}

.bd-pb-store-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bd-pb-store-flag {
  font-size: 26px;
  line-height: 1;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.bd-pb-store-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #1a2a08;
  line-height: 1.3;
}

.bd-pb-store-region {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 1px;
}

.bd-pb-store-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bd-pb-store-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--olive, #4a5e1a);
  font-family: 'Lato', sans-serif;
  letter-spacing: -0.02em;
  min-width: 58px;
  text-align: right;
}

.bd-pb-arrow {
  width: 16px; height: 16px;
  stroke: #bbb;
  transition: stroke 0.18s, transform 0.18s;
  flex-shrink: 0;
}

.bd-pb-store-item:hover .bd-pb-arrow {
  stroke: var(--olive, #4a5e1a);
  transform: translateX(2px);
}

/* Mobile */
@media (max-width: 520px) {
  .bd-paperback-modal { max-width: calc(100vw - 32px); max-height: 85vh; }
  .bd-pb-price-row { padding: 18px 20px 14px; }
  .bd-pb-stores-label { padding: 14px 20px 8px; }
  .bd-pb-stores { padding: 0 8px 12px; }
  .bd-pb-store-flag { font-size: 22px; }
}

/* =============================================
   SCROLL & ENTRANCE ANIMATIONS
   ============================================= */

/* ── Base invisible state ── */
.anim-fade-up,
.anim-fade-left,
.anim-fade-right,
.anim-fade-in,
.anim-scale-up {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-fade-up    { transform: translateY(40px); }
.anim-fade-left  { transform: translateX(-40px); }
.anim-fade-right { transform: translateX(40px); }
.anim-scale-up   { transform: scale(0.92); }
.anim-fade-in    { transform: none; }

.anim-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Breadcrumb entrance ── */
.bd-breadcrumb-inner {
  animation: bdSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
@keyframes bdSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reviews section header ── */
.bd-reviews-header-inner .bd-reviews-label,
.bd-reviews-header-inner .bd-reviews-title,
.bd-reviews-header-inner .bd-reviews-overall {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd-reviews-header-inner.anim-visible .bd-reviews-label  { opacity:1; transform:none; transition-delay:0s; }
.bd-reviews-header-inner.anim-visible .bd-reviews-title  { opacity:1; transform:none; transition-delay:0.1s; }
.bd-reviews-header-inner.anim-visible .bd-reviews-overall{ opacity:1; transform:none; transition-delay:0.2s; }

/* score pop */
.bd-reviews-header-inner.anim-visible .bd-reviews-overall-score {
  animation: bdScorePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}
@keyframes bdScorePop {
  from { opacity:0; transform:scale(0.4); }
  to   { opacity:1; transform:scale(1); }
}

/* ── Reviews slider ── */
.bd-reviews-slider-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s;
}
.bd-reviews-slider-wrap.anim-visible { opacity:1; transform:none; }

/* ── Reviews bottom ── */
.bd-reviews-bottom {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1) 0.45s,
              transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.45s;
}
.bd-reviews-bottom.anim-visible { opacity:1; transform:none; }

/* ── Review card hover ── */
.bd-review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.bd-review-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 32px rgba(74,94,26,0.13) !important;
}

/* ── Write review btn hover ── */
.bd-open-review-btn {
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
}
.bd-open-review-btn:hover { transform: translateY(-2px) scale(1.03); }
.bd-open-review-btn:active { transform: scale(0.96); }

/* ── Related section header ── */
.bd-related-header .bd-related-label,
.bd-related-header .bd-related-title {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.bd-related-header.anim-visible .bd-related-label { opacity:1; transform:none; transition-delay:0s; }
.bd-related-header.anim-visible .bd-related-title { opacity:1; transform:none; transition-delay:0.1s; }

/* ── Related slider ── */
.bd-related-slider-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.bd-related-slider-wrap.anim-visible { opacity:1; transform:none; }

/* ── Related footer ── */
.bd-related-footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}
.bd-related-footer.anim-visible { opacity:1; transform:none; }

/* ── Related card hover ── */
.bd-related-card {
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.28s cubic-bezier(0.22,1,0.36,1) !important;
}
.bd-related-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.13) !important;
}

/* ── Author section ── */
.bd-author-avatar {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.bd-author-text {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.bd-author-avatar.anim-visible { opacity:1; transform:none; }
.bd-author-text.anim-visible   { opacity:1; transform:none; }

/* author text children stagger */
.bd-author-text .bd-author-section-label,
.bd-author-text .bd-author-section-name,
.bd-author-text .bd-author-section-bio,
.bd-author-text .bd-author-section-link {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.bd-author-text.anim-visible .bd-author-section-label { opacity:1; transform:none; transition-delay:0.15s; }
.bd-author-text.anim-visible .bd-author-section-name  { opacity:1; transform:none; transition-delay:0.25s; }
.bd-author-text.anim-visible .bd-author-section-bio   { opacity:1; transform:none; transition-delay:0.35s; }
.bd-author-text.anim-visible .bd-author-section-link  { opacity:1; transform:none; transition-delay:0.45s; }

/* author avatar hover */
.bd-author-avatar-placeholder {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.bd-author-avatar:hover .bd-author-avatar-placeholder {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ── Footer ── */
footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
footer.anim-visible { opacity:1; transform:none; }

/* ── Buy buttons hover ── */
.bd-btn {
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s,
              opacity 0.65s cubic-bezier(0.22,1,0.36,1) !important;
}
.bd-btn:hover  { transform: translateY(-2px) scale(1.02); }
.bd-btn:active { transform: scale(0.97); }

/* ── Modal entrance ── */
.bd-review-modal.open {
  animation: bdModalIn 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes bdModalIn {
  from { opacity:0; transform:translate(-50%,-46%) scale(0.95); }
  to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-left, .anim-fade-right,
  .anim-fade-in, .anim-scale-up,
  .bd-reviews-slider-wrap, .bd-reviews-bottom,
  .bd-related-slider-wrap, .bd-related-footer,
  .bd-author-avatar, .bd-author-text, footer,
  .bd-reviews-header-inner .bd-reviews-label,
  .bd-reviews-header-inner .bd-reviews-title,
  .bd-reviews-header-inner .bd-reviews-overall,
  .bd-related-header .bd-related-label,
  .bd-related-header .bd-related-title,
  .bd-author-text .bd-author-section-label,
  .bd-author-text .bd-author-section-name,
  .bd-author-text .bd-author-section-bio,
  .bd-author-text .bd-author-section-link {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
/* =============================================
   E-BOOK PURCHASE MODAL
   ============================================= */

/* Overlay */
.bd-ebook-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bd-ebook-modal-overlay.open {
  display: block;
  opacity: 1;
}

/* Modal box */
.bd-ebook-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%) scale(0.96);
  z-index: 2001;
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.bd-ebook-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.bd-ebook-modal::-webkit-scrollbar { width: 4px; }
.bd-ebook-modal::-webkit-scrollbar-track { background: transparent; }
.bd-ebook-modal::-webkit-scrollbar-thumb { background: rgba(74,94,26,0.2); border-radius: 4px; }

/* Header */
.bd-ebook-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(74,94,26,0.1);
  background: linear-gradient(135deg, #f7f8f4 0%, #eef0e8 100%);
  border-radius: 20px 20px 0 0;
}
.bd-ebook-modal-header-icon {
  width: 38px;
  height: 38px;
  background: var(--olive, #4a5e1a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bd-ebook-modal-header-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}
.bd-ebook-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}
.bd-ebook-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.bd-ebook-modal-close:hover { background: rgba(0,0,0,0.14); }
.bd-ebook-modal-close svg { width: 14px; height: 14px; stroke: #555; }

/* Body */
.bd-ebook-modal-body { padding: 22px 24px 28px; }

/* Book Summary */
.bd-ebook-book-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f9faf6;
  border: 1px solid rgba(74,94,26,0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 4px;
}
.bd-ebook-book-thumb {
  width: 52px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(74,94,26,0.08);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.bd-ebook-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bd-ebook-book-info { flex: 1; }
.bd-ebook-book-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 3px;
}
.bd-ebook-book-author {
  font-size: 12.5px;
  color: #888;
  margin: 0 0 8px;
}
.bd-ebook-book-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--olive, #4a5e1a);
  margin: 0;
  font-family: 'Lato', sans-serif;
}

/* Divider */
.bd-ebook-divider {
  height: 1px;
  background: rgba(74,94,26,0.09);
  margin: 18px 0;
}

/* Section Label */
.bd-ebook-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin: 0 0 12px;
}
.bd-ebook-section-label svg {
  width: 15px;
  height: 15px;
  stroke: #aaa;
  flex-shrink: 0;
}

/* Format Cards */
.bd-ebook-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.bd-ebook-format-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px 16px;
  border: 2px solid rgba(74,94,26,0.12);
  border-radius: 14px;
  cursor: pointer;
  background: #fafbf8;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
}
.bd-ebook-format-card:hover {
  border-color: rgba(74,94,26,0.35);
  background: #f3f5ed;
}
.bd-ebook-format-card.selected {
  border-color: var(--olive, #4a5e1a);
  background: #f0f3e8;
  box-shadow: 0 0 0 4px rgba(74,94,26,0.08);
}
.bd-ebook-format-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bd-ebook-format-icon {
  width: 44px;
  height: 44px;
  background: rgba(74,94,26,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.bd-ebook-format-card.selected .bd-ebook-format-icon {
  background: rgba(74,94,26,0.15);
}
.bd-ebook-format-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--olive, #4a5e1a);
}
.bd-ebook-format-info { text-align: center; }
.bd-ebook-format-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.bd-ebook-format-desc {
  display: block;
  font-size: 11px;
  color: #999;
  line-height: 1.3;
}
/* Checkmark badge */
.bd-ebook-format-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--olive, #4a5e1a);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.bd-ebook-format-card.selected .bd-ebook-format-check {
  opacity: 1;
  transform: scale(1);
}
.bd-ebook-format-check svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
}

/* Format Error */
.bd-ebook-format-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 4px;
}
.bd-ebook-format-error.visible { display: flex; }
.bd-ebook-format-error svg { width: 14px; height: 14px; stroke: #c0392b; flex-shrink: 0; }

/* Payment */
.bd-ebook-payment {
  background: #f0f6ff;
  border: 1.5px solid #cce0ff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.bd-ebook-paypal-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bd-ebook-paypal-badge-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a6b1a;
  background: #d4f0d4;
  border-radius: 20px;
  padding: 3px 8px;
}
.bd-ebook-paypal-note {
  font-size: 12.5px;
  color: #5a6a7a;
  line-height: 1.55;
  margin: 0;
}

/* Pay Button */
.bd-ebook-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #4a5e1a 0%, #6b8a26 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 6px 20px rgba(74,94,26,0.35);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.bd-ebook-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74,94,26,0.42);
}
.bd-ebook-pay-btn:active { transform: translateY(0); }
.bd-ebook-pay-btn svg { width: 18px; height: 18px; }

/* Secure Note */
.bd-ebook-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #aaa;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}
.bd-ebook-secure-note svg { width: 13px; height: 13px; stroke: #bbb; flex-shrink: 0; }

/* Responsive */
@media (max-width: 520px) {
  .bd-ebook-modal { max-height: 95vh; border-radius: 18px 18px 0 0; top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: translateY(40px) scale(0.99); }
  .bd-ebook-modal.open { transform: translateY(0) scale(1); }
  .bd-ebook-modal-header { border-radius: 18px 18px 0 0; }
  .bd-ebook-formats { grid-template-columns: 1fr 1fr; }
}
/* ===== FREE CHAPTER DOWNLOAD ===== */
.bd-free-chapter-wrap {
  margin-top: 20px;
  background: #f7f9f2;
  border: 1.5px solid rgba(74,94,26,0.15);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bd-free-chapter-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bd-free-chapter-icon {
  width: 44px; height: 44px;
  background: rgba(74,94,26,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bd-free-chapter-icon svg {
  width: 22px; height: 22px;
  stroke: var(--olive);
}

.bd-free-chapter-title {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 2px;
}
.bd-free-chapter-sub {
  font-size: 0.8rem;
  color: #888;
}

.bd-free-chapter-badge {
  margin-left: auto;
  background: var(--olive);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 50px;
  flex-shrink: 0;
}

.bd-free-chapter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  border: 2px solid var(--olive);
  border-radius: 10px;
  color: var(--olive-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s;
  box-sizing: border-box;
}
.bd-free-chapter-btn svg {
  width: 17px; height: 17px;
  stroke: var(--olive);
  transition: stroke 0.2s;
  flex-shrink: 0;
}
.bd-free-chapter-btn:hover {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 6px 20px rgba(74,94,26,0.25);
  transform: translateY(-2px);
}
.bd-free-chapter-btn:hover svg { stroke: #fff; }
.bd-free-chapter-btn:active { transform: scale(0.98); }

@media (max-width: 600px) {
  .bd-free-chapter-wrap { padding: 14px 16px; }
  .bd-free-chapter-title { font-size: 0.88rem; }
  .bd-free-chapter-btn { font-size: 0.85rem; padding: 11px 16px; }
}