/* Book Single Page -- matches Author Profile visual language (Step 5.3) */

body.single-book {
	background: #FAF8F3;
}

.book-profile-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 24px;
}

/* -- Hero: cover left, content right -- */
.book-hero {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	margin-bottom: 48px;
	padding-bottom: 44px;
	border-bottom: 1px solid #E4DFD3;
}

.book-hero-cover {
	flex: 0 0 260px;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
}

.book-hero-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.book-hero-content {
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

.book-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 2.4rem;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #242018;
	margin: 0 0 10px;
}

.book-author-line {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 1.05rem;
	color: #6E6659;
	margin: 0 0 20px;
}

.book-author-line a {
	color: #1F5D50;
	text-decoration: none;
	font-weight: 600;
}

.book-author-line a:hover,
.book-author-line a:focus-visible {
	text-decoration: underline;
}

.book-short-desc {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #242018;
	max-width: 60ch;
	margin: 0 0 24px;
}

/* -- Pricing -- */
.book-pricing {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 24px;
	flex-wrap: wrap;
}

.book-current-price {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.6rem;
	color: #242018;
}

.book-old-price {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 1.05rem;
	color: #A39C8C;
	text-decoration: line-through;
}

.book-discount {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	color: #1F5D50;
	background: #E7F0EC;
	padding: 4px 10px;
	border-radius: 6px;
}

/* -- Buy button -- */
.book-buy-button {
	display: inline-block;
	background: #1F5D50;
	color: #FFFFFF;
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	padding: 13px 28px;
	border-radius: 7px;
	transition: background 0.18s ease, transform 0.18s ease;
}

.book-buy-button:hover,
.book-buy-button:focus-visible {
	background: #17473D;
	color: #FFFFFF;
	transform: translateY(-1px);
}

.book-buy-unavailable {
	display: inline-block;
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	font-style: italic;
	color: #A39C8C;
	padding: 13px 0;
	margin: 0;
}

.book-browse-all-link {
	text-align: center;
	margin-top: 8px;
}

.book-browse-all-link a {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1F5D50;
	text-decoration: none;
}

.book-browse-all-link a:hover,
.book-browse-all-link a:focus-visible {
	text-decoration: underline;
}

.book-buy-button:focus-visible {
	outline: 2px solid #1F5D50;
	outline-offset: 2px;
}

/* -- Book Information -- */
.book-info-section {
	margin-bottom: 48px;
}

.book-info-title,
.book-about-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.5rem;
	color: #242018;
	margin: 0 0 20px;
}

.book-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 32px;
	margin: 0;
}

.book-info-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #E9E4D8;
}

.book-info-row dt {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: #6E6659;
	margin: 0;
}

.book-info-row dd {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	color: #242018;
	margin: 0;
	text-align: right;
}

.book-info-row dd a {
	color: #1F5D50;
	text-decoration: none;
}

.book-info-row dd a:hover {
	text-decoration: underline;
}

/* -- About This Book -- */
.book-about-section {
	margin-bottom: 24px;
}

.book-about-content {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #242018;
	max-width: 100ch;
}

.book-about-content p {
	margin: 0 0 16px;
}

/* -- Author Section -- */
.book-author-section {
	margin-bottom: 48px;
}

.book-author-section-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.5rem;
	color: #242018;
	margin: 0 0 20px;
}

.book-author-card {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
}

.book-author-photo img {
	width: 112px;
	height: 112px;
	object-fit: cover;
	object-position: center top;
	border-radius: 50%;
	border: 3px solid #FFFFFF;
	outline: 1px solid #E4DFD3;
	display: block;
}

.book-author-info {
	min-width: 0;
}

.book-author-name {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.15rem;
	margin: 0 0 6px;
}

.book-author-name a {
	color: #242018;
	text-decoration: none;
}

.book-author-name a:hover,
.book-author-name a:focus-visible {
	color: #1F5D50;
}

.book-author-bio {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #6E6659;
	margin: 0;
}

.book-author-name a:focus-visible {
	outline: 2px solid #1F5D50;
	outline-offset: 2px;
}

/* -- Responsive -- */
@media (max-width: 900px) {
	.book-hero-cover {
		flex: 0 0 220px;
	}

	.book-info-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.book-profile-wrap {
		padding: 36px 18px;
	}

	.book-hero {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 24px;
		margin-bottom: 40px;
		padding-bottom: 32px;
	}

	.book-hero-cover {
		flex: 0 0 auto;
		width: 200px;
	}

	.book-title {
		font-size: 1.9rem;
	}

	.book-short-desc {
		max-width: 100%;
	}

	.book-pricing {
		justify-content: center;
	}

	.book-info-row {
		flex-direction: column;
		gap: 4px;
	}

	.book-info-row dd {
		text-align: left;
	}

	.book-about-content {
		max-width: 100%;
	}

	.book-buy-button {
		display: block;
		width: 100%;
		text-align: center;
	}

	.book-author-card {
		flex-direction: column;
		text-align: center;
		gap: 14px;
	}

	.book-author-photo img {
		width: 100px;
		height: 100px;
	}
}
/* -- Related Books (Step 5.4) -- reuses the same card visual language -- */
.related-books-section {
	margin-top: 8px;
}

.related-books-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.5rem;
	color: #242018;
	margin: 0 0 24px;
}

.related-books-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.related-book-card {
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-book-card:hover {
	box-shadow: 0 4px 10px rgba(36, 32, 24, 0.08);
	border-color: #1F5D50;
}

.related-book-cover {
	display: block;
	margin-bottom: 14px;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #FAF8F3;
}

.related-book-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.related-book-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0 0 8px;
}

.related-book-title a {
	color: #242018;
	text-decoration: none;
	transition: color 0.15s ease;
}

.related-book-title a:hover,
.related-book-title a:focus-visible {
	color: #1F5D50;
}

.related-book-author {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.9rem;
	color: #6E6659;
	margin: 0 0 8px;
}

.related-book-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
}

.related-book-current-price {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: #242018;
}

.related-book-old-price {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.85rem;
	color: #A39C8C;
	text-decoration: line-through;
}

.related-book-discount {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.75rem;
	color: #1F5D50;
	background: #E7F0EC;
	padding: 2px 7px;
	border-radius: 6px;
}

.related-book-title a:focus-visible {
	outline: 2px solid #1F5D50;
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.related-books-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.related-books-grid {
		grid-template-columns: 1fr;
	}
}
/* -- Reader Reviews (lwb-review-*) -- scoped to avoid any collision with existing site styles -- */
.lwb-review-section {
	margin-top: 8px;
	padding-top: 44px;
	border-top: 1px solid #E4DFD3;
}

.lwb-review-heading {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.5rem;
	color: #242018;
	margin: 0 0 4px;
}

.lwb-review-subheading {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	color: #6E6659;
	margin: 0 0 28px;
}

.lwb-review-notice {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.92rem;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 0 0 24px;
}

.lwb-review-notice-pending {
	background: #E7F0EC;
	color: #17473D;
	border: 1px solid #C7DED6;
}

.lwb-review-notice-error {
	background: #FBEAEA;
	color: #8A2E2E;
	border: 1px solid #EFC9C9;
}

.lwb-review-summary {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 32px;
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 10px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
	margin-bottom: 32px;
}

.lwb-review-summary-score {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	justify-content: center;
}

.lwb-review-average {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 2.2rem;
	color: #242018;
	line-height: 1;
}

.lwb-review-stars {
	font-size: 1.25rem;
	color: #1F5D50;
	letter-spacing: 2px;
}

.lwb-review-count {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.9rem;
	color: #6E6659;
}

.lwb-review-distribution {
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.lwb-review-dist-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.85rem;
	color: #6E6659;
}

.lwb-review-dist-label {
	flex: 0 0 34px;
}

.lwb-review-dist-bar-track {
	flex: 1;
	height: 8px;
	background: #F1EDE2;
	border-radius: 4px;
	overflow: hidden;
}

.lwb-review-dist-bar-fill {
	display: block;
	height: 100%;
	background: #1F5D50;
	border-radius: 4px;
}

.lwb-review-dist-count {
	flex: 0 0 20px;
	text-align: right;
}

.lwb-review-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 32px;
}

.lwb-review-item {
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 10px;
	padding: 20px 24px;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
}

.lwb-review-item-stars {
	color: #1F5D50;
	font-size: 1.05rem;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.lwb-review-item-meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.lwb-review-item-name {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1rem;
	color: #242018;
}

.lwb-review-item-date {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.82rem;
	color: #A39C8C;
}

.lwb-review-item-text {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.97rem;
	line-height: 1.6;
	color: #242018;
	margin: 0;
}

.lwb-review-empty {
	text-align: center;
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 10px;
	padding: 40px 24px;
	margin-bottom: 32px;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
}

.lwb-review-empty-text {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.98rem;
	line-height: 1.6;
	color: #6E6659;
	margin: 0 0 18px;
}

.lwb-review-empty-cta {
	display: inline-block;
	background: #1F5D50;
	color: #FFFFFF;
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 7px;
}

.lwb-review-empty-cta:hover {
	background: #17473D;
}

.lwb-review-form-wrap {
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 10px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
}

.lwb-review-form-heading {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.2rem;
	color: #242018;
	margin: 0 0 20px;
}

.lwb-review-form-rating {
	border: 0;
	padding: 0;
	margin: 0 0 18px;
}

.lwb-review-form-rating legend {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: #242018;
	margin-bottom: 8px;
	padding: 0;
}

.lwb-review-star-input {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
	width: fit-content;
}

.lwb-review-star-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.lwb-review-star-input label {
	font-size: 1.6rem;
	line-height: 1;
	color: #E4DFD3;
	cursor: pointer;
	transition: color 0.12s ease;
}

.lwb-review-star-input input:checked ~ label,
.lwb-review-star-input label:hover,
.lwb-review-star-input label:hover ~ label {
	color: #1F5D50;
}

.lwb-review-star-input input:focus-visible ~ label {
	outline: 2px solid #1F5D50;
	outline-offset: 2px;
}

.lwb-review-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 16px;
}

.lwb-review-field label {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: #242018;
}

.lwb-review-field input,
.lwb-review-field textarea {
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	color: #242018;
	background: #FAF8F3;
	border: 1px solid #E4DFD3;
	border-radius: 7px;
	padding: 10px 12px;
}

.lwb-review-field input:focus-visible,
.lwb-review-field textarea:focus-visible {
	outline: 2px solid #1F5D50;
	outline-offset: 1px;
	border-color: #1F5D50;
}

.lwb-review-field textarea {
	resize: vertical;
	min-height: 100px;
}

.lwb-review-submit-btn {
	display: inline-block;
	background: #1F5D50;
	color: #FFFFFF;
	font-family: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.98rem;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 7px;
	transition: background 0.18s ease;
}

.lwb-review-submit-btn:hover,
.lwb-review-submit-btn:focus-visible {
	background: #17473D;
}

@media (max-width: 640px) {
	.lwb-review-summary {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 22px;
	}

	.lwb-review-item,
	.lwb-review-form-wrap,
	.lwb-review-empty {
		padding: 18px 16px;
	}
}