/* Textbook single product – scoped styles */
body.single-product .dd-textbook-page {
	--bg: #fbfaf7;
	--surface: #ffffff;
	--surface-2: #f6f3ec;
	--text: #151515;
	--muted: #5b5b5b;
	--line: rgba(0, 0, 0, 0.1);
	--gold: #d7ae55;
	--gold-2: #f2d38b;
	--teal: #31b8ad;
	--shadow: 0 20px 50px rgba(20, 20, 20, 0.1);
	--shadow-soft: 0 10px 30px rgba(20, 20, 20, 0.08);
	--r-lg: 26px;
	--r-md: 18px;
	--r-sm: 14px;
	--max: 1180px;
	--pad: 22px;
	--h1: clamp(30px, 3vw, 48px);
	--h2: clamp(22px, 2.1vw, 34px);
	--h3: 20px;
	--p: 16px;
	color: var(--text);
	background: linear-gradient(180deg, #ffffff, var(--bg));
}

body.single-product .dd-textbook-page * {
	box-sizing: border-box;
}

body.single-product {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.55;
	color: #151515;
	background: linear-gradient(180deg, #ffffff, #fbfaf7);
	overflow-x: hidden;
}

body.single-product header.wp-block-template-part {
	display: none;
}

body.single-product .dd-textbook-page a {
	color: inherit;
	text-decoration: none;
}

body.single-product .dd-textbook-page .container {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

body.single-product .dd-textbook-page .section {
	padding: 44px 0;
}

body.single-product .dd-textbook-page .card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-soft);
}

body.single-product .dd-textbook-page .card.pad {
	padding: 22px;
}

body.single-product .dd-textbook-page .muted {
	color: var(--muted);
}

body.single-product .dd-textbook-page .title {
	margin: 12px 0 10px;
	font-weight: 950;
	letter-spacing: -0.02em;
}

body.single-product .dd-textbook-page h1 {
	font-size: var(--h1);
	margin: 14px 0 12px;
	line-height: 1.08;
}

body.single-product .dd-textbook-page h2 {
	font-size: var(--h2);
	margin: 0 0 12px;
	line-height: 1.12;
}

body.single-product .dd-textbook-page h3 {
	font-size: var(--h3);
	margin: 0 0 10px;
	line-height: 1.2;
}

body.single-product .dd-textbook-page p {
	margin: 0 0 14px;
	font-size: var(--p);
}

body.single-product .dd-textbook-page .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 900;
	cursor: pointer;
	transition: 0.18s ease;
	background: transparent;
	white-space: nowrap;
}

body.single-product .dd-textbook-page .btn.primary {
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #1a140a;
	box-shadow: 0 12px 25px rgba(215, 174, 85, 0.28);
}

body.single-product .dd-textbook-page .btn.secondary {
	background: rgba(255, 255, 255, 0.82);
	border-color: rgba(0, 0, 0, 0.12);
}

body.single-product .dd-textbook-page .btn.ghost {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.12);
}

body.single-product .dd-textbook-page .kicker {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(215, 174, 85, 0.14);
	border: 1px solid rgba(215, 174, 85, 0.3);
	color: #6a4b12;
	font-weight: 900;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .dd-textbook-page .badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(49, 184, 173, 0.12);
	border: 1px solid rgba(49, 184, 173, 0.25);
	color: #0d5e58;
	font-weight: 950;
	font-size: 12px;
}

body.single-product .dd-textbook-page .pill {
	padding: 9px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.86);
	font-weight: 950;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.7);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

body.single-product .dd-textbook-page .pill.gold {
	background: rgba(215, 174, 85, 0.18);
	border-color: rgba(215, 174, 85, 0.35);
	color: #6a4b12;
}

body.single-product .dd-textbook-page .pill.teal {
	background: rgba(49, 184, 173, 0.12);
	border-color: rgba(49, 184, 173, 0.25);
	color: #0d5e58;
}

body.single-product .dd-textbook-page .dd-textbook-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.single-product .dd-textbook-page .nav {
	height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

body.single-product .dd-textbook-page .brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 950;
	letter-spacing: -0.02em;
}

body.single-product .dd-textbook-page .logo {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(215, 174, 85, 0.35), rgba(49, 184, 173, 0.18));
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 12px 20px rgba(20, 20, 20, 0.06);
	display: grid;
	place-items: center;
	font-weight: 950;
	color: #6a4b12;
}

body.single-product .dd-textbook-page .menu {
	display: flex;
	gap: 16px;
	align-items: center;
}

body.single-product .dd-textbook-page .menu a {
	padding: 10px 10px;
	border-radius: 12px;
	color: rgba(0, 0, 0, 0.72);
	font-weight: 900;
	font-size: 14px;
}

body.single-product .dd-textbook-page .menu a.active {
	background: rgba(215, 174, 85, 0.14);
	border: 1px solid rgba(215, 174, 85, 0.28);
	color: #6a4b12;
}

body.single-product .dd-textbook-page .nav-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

body.single-product .dd-textbook-page .lang {
	display: flex;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.1);
}

body.single-product .dd-textbook-page .lang button {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 7px 10px;
	border-radius: 999px;
	font-weight: 950;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.62);
}

body.single-product .dd-textbook-page .lang button.active {
	background: rgba(215, 174, 85, 0.24);
	color: #6a4b12;
}

body.single-product .dd-textbook-page .crumbs {
	font-size: 13px;
	font-weight: 900;
	color: rgba(0, 0, 0, 0.55);
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 22px 0 10px;
}

body.single-product .dd-textbook-page .crumbs span {
	opacity: 0.7;
}

body.single-product .dd-textbook-page .page {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 22px;
	align-items: start;
	padding-bottom: 42px;
}

body.single-product .dd-textbook-page .sticky {
	position: sticky;
	top: 98px;
}

body.single-product .dd-textbook-page .hero {
	padding: 22px;
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: var(--shadow);
}

body.single-product .dd-textbook-page .hero-top {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

body.single-product .dd-textbook-page .hero-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 18px;
	align-items: start;
	margin-top: 12px;
}

body.single-product .dd-textbook-page .cover {
	height: 280px;
	border-radius: 22px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background:
		linear-gradient(135deg, rgba(215, 174, 85, 0.18), rgba(255, 255, 255, 0.95)),
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 16px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px;
	font-weight: 950;
}

body.single-product .dd-textbook-page .cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

body.single-product .dd-textbook-page .cover .mini {
	font-size: 12px;
	opacity: 0.7;
}

body.single-product .dd-textbook-page .cover .big {
	font-size: 26px;
	color: #6a4b12;
	line-height: 1;
}

body.single-product .dd-textbook-page .meta-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
}

body.single-product .dd-textbook-page .hero-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

body.single-product .dd-textbook-page .tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
}

body.single-product .dd-textbook-page .tab {
	height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.86);
	font-weight: 950;
	font-size: 12px;
	cursor: pointer;
}

body.single-product .dd-textbook-page .tab.active {
	background: rgba(215, 174, 85, 0.18);
	border-color: rgba(215, 174, 85, 0.35);
	color: #6a4b12;
}

body.single-product .dd-textbook-page .panes {
	margin-top: 12px;
}

body.single-product .dd-textbook-page .pane {
	display: none;
}

body.single-product .dd-textbook-page .pane.show {
	display: block;
}

body.single-product .dd-textbook-page .list {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

body.single-product .dd-textbook-page .item {
	padding: 12px 14px;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.88);
	font-weight: 850;
	color: rgba(0, 0, 0, 0.72);
}

body.single-product .dd-textbook-page .item small {
	display: block;
	margin-top: 6px;
	color: rgba(0, 0, 0, 0.55);
	font-weight: 750;
}

body.single-product .dd-textbook-page .promo-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

body.single-product .dd-textbook-page .promo-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

body.single-product .dd-textbook-page .promo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

body.single-product .dd-textbook-page .pagePrev {
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.9);
	overflow: hidden;
	cursor: pointer;
	transition: 0.18s ease;
}

body.single-product .dd-textbook-page .pagePrev .img {
	height: 190px;
	background:
		linear-gradient(135deg, rgba(49, 184, 173, 0.1), rgba(215, 174, 85, 0.1)),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 18px);
	display: grid;
	place-items: center;
	color: rgba(0, 0, 0, 0.35);
	font-weight: 950;
}

body.single-product .dd-textbook-page .pagePrev img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.single-product .dd-textbook-page .pagePrev .cap {
	padding: 10px 12px;
	font-weight: 950;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.72);
}

body.single-product .dd-textbook-page .promo-note {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
	font-weight: 750;
	margin-top: 10px;
}

body.single-product .dd-textbook-page .buy-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: flex-start;
	flex-wrap: wrap;
}

body.single-product .dd-textbook-page .price {
	font-weight: 950;
	font-size: 30px;
	color: #6a4b12;
	letter-spacing: -0.02em;
}

body.single-product .dd-textbook-page .buy-meta {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

body.single-product .dd-textbook-page .buy-line {
	padding: 10px 12px;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.88);
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 850;
	color: rgba(0, 0, 0, 0.72);
	font-size: 13px;
}

body.single-product .dd-textbook-page .dot {
	width: 22px;
	height: 22px;
	border-radius: 8px;
	background: rgba(49, 184, 173, 0.12);
	border: 1px solid rgba(49, 184, 173, 0.25);
	display: grid;
	place-items: center;
	font-weight: 950;
	color: #0d5e58;
	flex: 0 0 auto;
	margin-top: 1px;
}

body.single-product .dd-textbook-page .buy-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

body.single-product .dd-textbook-page .buy-actions .button {
	all: unset;
}

body.single-product .dd-textbook-page .buy-actions .single_add_to_cart_button,
body.single-product .dd-textbook-page .buy-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 900;
	cursor: pointer;
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #1a140a;
	box-shadow: 0 12px 25px rgba(215, 174, 85, 0.28);
}

body.single-product .dd-textbook-page .divider {
	height: 1px;
	background: rgba(0, 0, 0, 0.08);
	margin: 14px 0;
}

body.single-product .dd-textbook-page .buy-back {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

body.single-product .dd-textbook-page .related {
	grid-template-columns: repeat(3, 1fr);
}

body.single-product .dd-textbook-page .bookCard {
	overflow: hidden;
}

body.single-product .dd-textbook-page .bookCard .thumb {
	height: 140px;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	margin: 0 18px;
	background:
		linear-gradient(135deg, rgba(215, 174, 85, 0.18), rgba(255, 255, 255, 0.95)),
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 16px);
	display: grid;
	place-items: center;
	color: rgba(0, 0, 0, 0.35);
	font-weight: 950;
	overflow: hidden;
}

body.single-product .dd-textbook-page .bookCard .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.single-product .dd-textbook-page .bookCard .body {
	padding: 14px 18px 18px;
	display: grid;
	gap: 8px;
}

body.single-product .dd-textbook-page .related-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

body.single-product .dd-textbook-page .related-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

body.single-product .dd-textbook-page .modal {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

body.single-product .dd-textbook-page .modal.show {
	display: flex;
}

body.single-product .dd-textbook-page .modalCard {
	width: min(920px, 100%);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 26px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

body.single-product .dd-textbook-page .modalTop {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.single-product .dd-textbook-page .modalBody {
	padding: 14px;
}

body.single-product .dd-textbook-page .modalImg {
	height: min(72vh, 780px);
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background: rgba(0, 0, 0, 0.03);
}

body.single-product .dd-textbook-page .modalImg img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	display: block;
}

@media (max-width: 980px) {
	body.single-product .dd-textbook-page .menu {
		display: none;
	}
	body.single-product .dd-textbook-page .page {
		grid-template-columns: 1fr;
	}
	body.single-product .dd-textbook-page .sticky {
		position: static;
	}
	body.single-product .dd-textbook-page .hero-grid {
		grid-template-columns: 1fr;
	}
	body.single-product .dd-textbook-page .promo-grid {
		grid-template-columns: 1fr 1fr;
	}
	body.single-product .dd-textbook-page .related {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	body.single-product .dd-textbook-page .promo-grid {
		grid-template-columns: 1fr;
	}
}
