/**
 * Talal Books — frontend (scoped; RTL navy / gold, 3D cover).
 * All rules live under .talal-books-page to avoid breaking the theme.
 */

.talal-books-page {
	direction: rtl;
	text-align: right;
	color: rgba(255, 255, 255, 0.92);
}

.talal-books-page .talal-books-shell {
	width: 100%;
}

/* ----- Archive / المؤلفات — atmosphere + hero + grid + cards ----- */

.talal-books-archive {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	overflow-y: visible;
	font-family: 'Tajawal', system-ui, sans-serif;
}

.talal-books-archive__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
	padding-top: clamp(1rem, 2.5vw, 1.5rem);
	padding-bottom: clamp(2rem, 4vw, 2.75rem);
	box-sizing: border-box;
}

.talal-books-archive::before {
	content: '';
	position: absolute;
	inset: -20% -30% auto -30%;
	height: min(55vh, 420px);
	background:
		radial-gradient(ellipse 70% 55% at 50% 0%, rgba(212, 175, 55, 0.14), transparent 62%),
		radial-gradient(ellipse 45% 40% at 85% 15%, rgba(99, 102, 241, 0.06), transparent 55%);
	pointer-events: none;
	z-index: 0;
}

.talal-books-archive::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 40%;
	background: radial-gradient(ellipse 90% 70% at 50% 100%, rgba(15, 23, 42, 0.55), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

/* Hero */
.talal-books-archive__hero {
	text-align: center;
	width: 100%;
	max-width: 960px;
	margin: 0 auto clamp(3rem, 5vw, 4.5rem);
	padding: 2rem clamp(1rem, 3vw, 2rem) 2.25rem;
	box-sizing: border-box;
	border-radius: 1.35rem;
	border: 1px solid rgba(212, 175, 55, 0.18);
	box-shadow:
		0 0 0 1px rgba(212, 175, 55, 0.08),
		0 28px 56px -34px rgba(0, 0, 0, 0.85),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	background:
		linear-gradient(165deg, rgba(22, 30, 54, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(12, 18, 36, 0.65) 100%);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
}

.talal-books-archive__hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	max-width: 52rem;
	margin-inline: auto;
}

.talal-books-archive__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	line-height: 1.12;
	background: linear-gradient(135deg, #fdf6db 0%, #e8cf6a 38%, #c9a227 72%, #8a7018 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 24px rgba(212, 175, 55, 0.18));
}

.talal-books-archive__divider {
	display: block;
	width: min(12rem, 42%);
	height: 3px;
	margin: 0 auto 1.25rem;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), rgba(246, 235, 192, 0.95), rgba(212, 175, 55, 0.85), transparent);
	box-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}

.talal-books-archive__subtitle {
	margin: 0 0 1rem;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 700;
	line-height: 1.55;
	color: rgba(237, 214, 140, 0.94);
}

.talal-books-archive__desc {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.95;
	color: rgba(255, 255, 255, 0.62);
	max-width: 42rem;
	margin-inline: auto;
}

.talal-books-archive__collection {
	margin-top: 0;
	width: 100%;
}

.talal-books-archive__empty-wrap {
	margin-top: 1rem;
}

.talal-books-archive .talal-books-archive-empty {
	padding: 3rem 1.75rem;
	border-radius: 1.25rem;
	background: linear-gradient(180deg, rgba(24, 32, 58, 0.55), rgba(15, 23, 42, 0.45));
	border: 1px solid rgba(212, 175, 55, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.talal-books-archive .talal-books-archive-empty p {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.48);
}

.talal-books-page .talal-books-glass {
	background: linear-gradient(180deg, rgba(20, 28, 52, 0.78), rgba(15, 23, 42, 0.55));
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid rgba(212, 175, 55, 0.18);
	border-radius: 1.25rem;
}

/* ----- Grid ----- */

.talal-books-archive .talal-books-grid,
.talal-books-page .talal-books-grid {
	display: grid;
	align-items: stretch;
	gap: clamp(1.25rem, 3vw, 1.75rem);
}

.talal-books-archive .talal-books-grid {
	justify-items: center;
	gap: clamp(24px, 3vw, 32px);
}

.talal-books-shortcode .talal-books-grid {
	justify-items: center;
	gap: clamp(24px, 3vw, 32px);
}

.talal-books-archive .talal-books-grid > .talal-book-card:only-child {
	grid-column: 1 / -1;
	justify-self: center;
}

.talal-books-archive .talal-books-grid--cols-2,
.talal-books-page .talal-books-grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.talal-books-archive .talal-books-grid--cols-3,
.talal-books-page .talal-books-grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.talal-books-archive .talal-books-grid--cols-4,
.talal-books-page .talal-books-grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199px) {
	.talal-books-archive .talal-books-grid--cols-3,
	.talal-books-archive .talal-books-grid--cols-4,
	.talal-books-page .talal-books-grid--cols-3,
	.talal-books-page .talal-books-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.talal-books-archive .talal-books-grid--cols-2,
	.talal-books-archive .talal-books-grid--cols-3,
	.talal-books-archive .talal-books-grid--cols-4,
	.talal-books-page .talal-books-grid--cols-2,
	.talal-books-page .talal-books-grid--cols-3,
	.talal-books-page .talal-books-grid--cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ----- Book card (archive + shortcode) ----- */

.talal-books-page .talal-book-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	overflow: hidden;
	width: 100%;
	max-width: 380px;
	height: 100%;
	min-height: 0;
	padding: 0;
	border-radius: 1.35rem;
	text-align: right;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s ease,
		border-color 0.35s ease;
	border: 1px solid rgba(212, 175, 55, 0.22);
	box-shadow:
		0 4px 0 rgba(212, 175, 55, 0.06),
		0 22px 48px -28px rgba(0, 0, 0, 0.75),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	background:
		linear-gradient(155deg, rgba(26, 34, 58, 0.92) 0%, rgba(17, 24, 48, 0.82) 42%, rgba(12, 18, 38, 0.78) 100%);
}

.talal-books-page .talal-book-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(120% 80% at 50% -15%, rgba(212, 175, 55, 0.18), transparent 52%);
	pointer-events: none;
	opacity: 0.65;
	z-index: 0;
}

.talal-books-page .talal-book-card:hover {
	transform: translateY(-8px);
	box-shadow:
		0 12px 0 rgba(212, 175, 55, 0.07),
		0 36px 60px -28px rgba(0, 0, 0, 0.82),
		0 0 60px -18px rgba(212, 175, 55, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
	border-color: rgba(212, 175, 55, 0.38);
}

@media (prefers-reduced-motion: reduce) {
	.talal-books-page .talal-book-card,
	.talal-books-archive .talal-book-card {
		transition: none;
		animation: none !important;
	}

	.talal-books-page .talal-book-card:hover {
		transform: none;
	}
}

.talal-books-archive .talal-book-card:nth-child(1) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 40ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(2) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 95ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(3) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 150ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(4) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 205ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(5) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 260ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(6) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 315ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(7) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 370ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(8) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 425ms;
	opacity: 0;
}

.talal-books-archive .talal-book-card:nth-child(9) {
	animation: talal-book-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 480ms;
	opacity: 0;
}

@keyframes talal-book-card-enter {
	from {
		opacity: 0;
		transform: translateY(22px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.talal-book-card__cover {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 1rem 1rem 0.65rem;
	min-height: 0;
	background:
		radial-gradient(ellipse 85% 75% at 50% 100%, rgba(212, 175, 55, 0.14), transparent 62%),
		linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(12, 18, 36, 0.15) 100%);
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.talal-book-card__cover-link {
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.talal-book-card:hover .talal-book-card__cover-link {
	transform: translateY(-4px) scale(1.02);
}

.talal-books-page .talal-book-card .talal-book-3d--card {
	max-width: min(200px, 100%);
	width: 100%;
	filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 44px rgba(212, 175, 55, 0.28));
}

.talal-books-page .talal-book-card .talal-book-3d--lg {
	max-width: min(220px, 100%);
}

.talal-books-page .talal-book-card .talal-book-3d__front {
	max-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.talal-books-page .talal-book-card .talal-book-3d__front img {
	max-height: min(300px, 42vh);
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.talal-books-page .talal-book-card .talal-book-3d__front--placeholder {
	max-height: 280px;
	min-height: 200px;
}

.talal-books-page .talal-book-card .talal-book-3d__inner {
	filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 36px rgba(212, 175, 55, 0.22));
}

.talal-book-card__content {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem 1.35rem;
	gap: 0;
	min-height: 0;
}

.talal-book-card__status {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	margin-bottom: 0.65rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.talal-book-card__status--free {
	color: #bbf7d0;
	background: rgba(22, 101, 52, 0.35);
	border-color: rgba(134, 239, 172, 0.35);
}

.talal-book-card__status--custom {
	color: #fde68a;
	background: rgba(120, 53, 15, 0.35);
	border-color: rgba(253, 224, 71, 0.28);
}

.talal-book-card__status--new {
	color: #fef3c7;
	background: rgba(30, 58, 138, 0.45);
	border-color: rgba(129, 140, 248, 0.35);
}

.talal-book-card__status--stock {
	color: rgba(255, 255, 255, 0.88);
	background: rgba(212, 175, 55, 0.12);
	border-color: rgba(212, 175, 55, 0.35);
}

.talal-book-card__title {
	font-size: clamp(1.05rem, 2.4vw, 1.25rem);
	font-weight: 900;
	line-height: 1.3;
	margin: 0 0 0.45rem;
}

.talal-book-card__title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.talal-book-card__title a:hover {
	color: #f6ebc0;
}

.talal-book-card__tagline,
.talal-book-card__excerpt {
	font-size: 0.88rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.58);
	margin: 0 0 0.85rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.talal-book-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.75rem;
	background: rgba(8, 12, 28, 0.45);
	border: 1px solid rgba(212, 175, 55, 0.12);
	font-size: 0.78rem;
	line-height: 1.45;
}

.talal-book-card__meta-item {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.35rem;
	color: rgba(255, 255, 255, 0.82);
}

.talal-book-card__meta-key {
	color: rgba(212, 175, 55, 0.78);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.talal-book-card__meta-val {
	font-weight: 700;
	font-size: 0.82rem;
}

.talal-book-card__price {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: rgba(246, 235, 192, 0.98);
	letter-spacing: 0.02em;
}

.talal-book-card__actions {
	margin-top: auto;
	padding-top: 0.25rem;
}

.talal-book-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.72rem 1.25rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
	color: #0a0f1e;
	background: linear-gradient(180deg, #fdf6db 0%, #e8cf6a 42%, #c9a227 100%);
	box-shadow:
		0 4px 0 rgba(145, 114, 19, 0.35),
		0 14px 32px -12px rgba(212, 175, 55, 0.65);
	transition: filter 0.2s ease, transform 0.2s ease;
}

.talal-book-card__btn:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.talal-books-page .talal-books-empty {
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
	padding: 2rem;
}

/* ----- Single book (scoped) ----- */

.talal-book-single .talal-books-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 2rem;
}

.talal-book-single__hero {
	margin-bottom: 1.25rem;
}

/* RTL desktop: details column first in DOM = visual right; cover = visual left */
.talal-book-single__hero-inner {
	display: flex;
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 1.25rem;
}

@media (min-width: 900px) {
	.talal-book-single__hero-inner {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(240px, 340px);
		align-items: stretch;
		gap: 1.5rem;
		flex-direction: unset;
	}
}

.talal-book-single__cover-card {
	padding: 1.25rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	box-shadow:
		0 0 0 1px rgba(212, 175, 55, 0.12),
		0 24px 48px -28px rgba(0, 0, 0, 0.65),
		0 0 80px -20px rgba(212, 175, 55, 0.35);
}

.talal-book-single__cover-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 280px;
	margin-inline: auto;
	padding: 0.25rem;
}

.talal-book-single__details-card {
	padding: 1.5rem 1.35rem;
	text-align: right;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55);
}

@media (min-width: 900px) {
	.talal-book-single__details-card {
		padding: 1.75rem 1.75rem;
	}
}

.talal-book-single__details-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-height: 100%;
}

.talal-book-single__badge {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.7rem;
	letter-spacing: 0.25em;
	color: rgba(212, 175, 55, 0.95);
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-radius: 999px;
	padding: 0.35rem 0.85rem;
	margin-bottom: 0.85rem;
}

.talal-book-single__title {
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	font-weight: 900;
	margin: 0 0 0.45rem;
	line-height: 1.15;
	color: #fff;
}

.talal-book-single__subtitle {
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 1.25rem;
}

.talal-book-single__meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 1rem;
	margin: 0 0 1.25rem;
	padding: 0.85rem 0;
	border-block: 1px solid rgba(212, 175, 55, 0.14);
}

@media (min-width: 640px) {
	.talal-book-single__meta-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem 1.1rem;
	}
}

.talal-book-single__meta-item {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
}

.talal-book-single__meta-label {
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(212, 175, 55, 0.88);
	font-weight: 700;
}

.talal-book-single__meta-value {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.35;
	word-break: break-word;
}

.talal-book-single__preview {
	margin-bottom: 1.35rem;
	padding-top: 0.25rem;
}

.talal-book-single__preview-label {
	font-size: 0.82rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	color: rgba(212, 175, 55, 0.92);
	letter-spacing: 0.06em;
}

.talal-book-single__preview-text {
	font-size: 0.95rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
}

.talal-book-single__preview-text p {
	margin: 0 0 0.6rem;
}

.talal-book-single__preview-text p:last-child {
	margin-bottom: 0;
}

.talal-book-single__cta-wrap {
	margin-top: auto;
	padding-top: 0.25rem;
}

.talal-book-single .talal-books-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(180deg, #f6ebc0, #d4af37);
	color: #070b16;
	box-shadow: 0 16px 36px -14px rgba(212, 175, 55, 0.75);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.talal-book-single a.talal-books-cta-btn:hover {
	transform: translateY(-2px);
}

.talal-book-single .talal-books-cta-btn--disabled {
	opacity: 0.85;
	pointer-events: none;
	cursor: not-allowed;
	background: rgba(30, 41, 72, 0.85);
	color: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(212, 175, 55, 0.22);
	box-shadow: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.talal-book-single__about {
	padding: 1.65rem 1.35rem;
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.talal-book-single__about {
		padding: 1.75rem 1.75rem;
	}
}

.talal-book-single__about-title {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 1rem;
	color: rgba(212, 175, 55, 0.95);
	letter-spacing: 0.08em;
}

.talal-book-single__about-content.talal-books-entry-content {
	font-size: 1rem;
	line-height: 1.95;
	color: rgba(255, 255, 255, 0.78);
	max-width: none;
}

.talal-book-single__about-content.talal-books-entry-content a {
	color: #e2c75b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.talal-book-single__empty {
	margin: 0;
	padding: 1rem 1.1rem;
	border-radius: 0.75rem;
	background: rgba(15, 23, 42, 0.45);
	border: 1px dashed rgba(212, 175, 55, 0.22);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.98rem;
	line-height: 1.7;
	text-align: right;
}

.talal-book-single .talal-books-page-links {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(212, 175, 55, 0.15);
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
}

.talal-book-single .talal-books-page-links__label {
	display: inline-block;
	margin-inline-end: 0.5rem;
	color: rgba(212, 175, 55, 0.85);
	font-weight: 700;
}

.talal-book-single .talal-books-page-links a {
	color: #e2c75b;
	text-decoration: underline;
	margin-inline-start: 0.35rem;
}

/* Single hero: stronger product-style book mockup */
.talal-book-single .talal-book-3d {
	max-width: 260px;
	filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.15));
}

.talal-book-single .talal-book-3d__inner {
	filter: drop-shadow(0 32px 45px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 50px rgba(212, 175, 55, 0.42))
		drop-shadow(0 0 100px rgba(212, 175, 55, 0.12));
}

.talal-book-single .talal-book-3d:hover .talal-book-3d__inner {
	filter: drop-shadow(0 42px 58px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.48))
		drop-shadow(0 0 120px rgba(212, 175, 55, 0.16));
}

/* ----- Pagination (archive) ----- */

.talal-books-archive .navigation.pagination,
.talal-books-page .navigation.pagination {
	margin-top: 2.75rem;
	padding-top: 1.5rem;
	text-align: center;
	border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.talal-books-archive .navigation.pagination .nav-links,
.talal-books-page .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.talal-books-archive .navigation.pagination a,
.talal-books-archive .navigation.pagination span,
.talal-books-page .navigation.pagination a,
.talal-books-page .navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.45rem 0.72rem;
	border-radius: 0.55rem;
	border: 1px solid rgba(212, 175, 55, 0.22);
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.talal-books-archive .navigation.pagination a:hover,
.talal-books-page .navigation.pagination a:hover {
	border-color: rgba(212, 175, 55, 0.45);
	background: rgba(212, 175, 55, 0.08);
}

.talal-books-archive .navigation.pagination span.current,
.talal-books-page .navigation.pagination span.current {
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.12));
	color: #fdf6db;
	font-weight: 700;
	border-color: rgba(212, 175, 55, 0.45);
}

/* ----- 3D Book ----- */

.talal-books-page .talal-book-3d {
	perspective: 1200px;
	width: 100%;
	max-width: 280px;
	margin-inline: auto;
}

.talal-books-page .talal-book-3d--sm {
	max-width: 140px;
}

.talal-books-page .talal-book-3d__inner {
	position: relative;
	transform-style: preserve-3d;
	transform: rotateY(-22deg) rotateX(6deg);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
	filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 45px rgba(212, 175, 55, 0.22));
}

.talal-books-page .talal-book-3d:hover .talal-book-3d__inner {
	transform: rotateY(-14deg) rotateX(4deg) translateY(-10px) scale(1.02);
	filter: drop-shadow(0 40px 55px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 55px rgba(212, 175, 55, 0.35));
}

.talal-books-page .talal-book-3d__front {
	position: relative;
	z-index: 3;
	border-radius: 4px 12px 12px 4px;
	overflow: hidden;
	box-shadow: inset -2px 0 0 rgba(255, 255, 255, 0.06);
}

.talal-books-page .talal-book-3d__front img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.talal-books-page .talal-book-3d__front--placeholder {
	aspect-ratio: 3 / 4;
	background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, 0.18), transparent 55%),
		linear-gradient(145deg, rgba(30, 41, 72, 0.98), rgba(15, 23, 42, 0.99));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	border: 1px solid rgba(212, 175, 55, 0.35);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.talal-books-page .talal-book-3d__placeholder-title {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.45;
	text-align: center;
	color: rgba(255, 255, 255, 0.88);
}

.talal-books-page .talal-book-3d__spine {
	position: absolute;
	top: 2%;
	right: 100%;
	width: var(--talal-book-depth, 18px);
	height: 96%;
	background: linear-gradient(90deg, #1a2238 0%, #0f172a 55%, #1e293b 100%);
	transform-origin: right center;
	transform: rotateY(-90deg);
	z-index: 2;
	border-radius: 4px 0 0 4px;
	box-shadow: inset -6px 0 12px rgba(0, 0, 0, 0.45);
}

.talal-books-page .talal-book-3d__pages {
	position: absolute;
	top: 3%;
	left: 100%;
	width: calc(var(--talal-book-depth, 18px) * 0.85);
	height: 94%;
	background: linear-gradient(90deg, #f8fafc 0%, #e2e8f0 35%, #cbd5e1 100%);
	transform-origin: left center;
	transform: rotateY(90deg);
	z-index: 1;
	opacity: 0.92;
	border-radius: 0 6px 6px 0;
	box-shadow: inset 4px 0 8px rgba(15, 23, 42, 0.15);
}

@media (prefers-reduced-motion: reduce) {
	.talal-books-page .talal-book-3d__inner,
	.talal-books-page .talal-book-card {
		transition: none;
	}

	.talal-books-page .talal-book-3d:hover .talal-book-3d__inner {
		transform: rotateY(-22deg) rotateX(6deg);
	}
}

/* WooCommerce product price HTML embedded in book cards / single meta */
.talal-books-page .talal-book-card__price--wc,
.talal-books-page .talal-book-single__meta-value--wc-price {
	color: rgba(246, 235, 192, 0.95);
}

.talal-books-page .talal-book-card__price--wc ins,
.talal-books-page .talal-book-single__meta-value--wc-price ins {
	text-decoration: none;
}
