/* ==========================================================================
   HTH Book Library — styles for /product-listing/ and /product/<book>/
   All selectors are scoped to .hth so theme styles are never affected.
   ========================================================================== */

.hth {
	--hth-navy: #1b2450;
	--hth-navy-dark: #08041a;
	--hth-gold: #e0a22b;
	--hth-gold-soft: #fbf3e2;
	--hth-text: #4a5169;
	--hth-line: #e6e8f0;
	--hth-soft: #f6f7fb;
	--hth-radius: 14px;
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--hth-text);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.hth *,
.hth *::before,
.hth *::after {
	box-sizing: border-box;
}

.hth-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Headings ---------------------------------------------------------------- */
.hth h1,
.hth h2,
.hth h3 {
	font-family: 'Mulish', sans-serif;
	color: var(--hth-navy-dark);
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 16px;
}

.hth h1 {
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.15;
}

.hth h2 {
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.25;
}

.hth .hth-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hth-gold);
	margin-bottom: 14px;
}

.hth .hth-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--hth-gold);
	display: block;
}

/* Hero -------------------------------------------------------------------- */
.hth .hth-hero {
	position: relative;
	background-position: center right;
	background-size: cover;
	background-repeat: no-repeat;
	padding: 78px 0 66px;
	border-bottom: 1px solid var(--hth-line);
}

.hth .hth-hero__title {
	margin: 0 0 14px;
	max-width: 620px;
}

.hth .hth-hero__lead {
	max-width: 520px;
	margin: 0 0 26px;
	font-size: 18px;
	color: #2e3350;
}

.hth .hth-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7290;
	padding: 18px 0;
}

.hth .hth-crumbs a {
	color: var(--hth-navy);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.hth .hth-crumbs a:hover {
	color: var(--hth-gold);
	border-bottom-color: var(--hth-gold);
}

.hth .hth-crumbs span[aria-hidden] {
	color: #b9bed0;
}

.hth .hth-crumbs span[aria-current] {
	color: #6b7290;
	font-weight: 700;
}

.hth .hth-crumbs--light {
	background: var(--hth-navy);
	color: #fff;
	border-radius: 6px;
	padding: 12px 18px;
	display: inline-flex;
	margin-bottom: 0;
}

.hth .hth-crumbs--light a {
	color: #fff;
}

.hth .hth-crumbs--light span[aria-current],
.hth .hth-crumbs--light span[aria-hidden] {
	color: #cdd2e6;
}

/* Intro ------------------------------------------------------------------- */
.hth .hth-intro {
	background: #fff;
	padding: 72px 0 34px;
}

.hth .hth-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.hth .hth-intro__media img {
	width: 100%;
	height: auto;
	border-radius: var(--hth-radius);
	display: block;
	box-shadow: 0 18px 40px rgba(11, 16, 48, 0.12);
}

.hth .hth-intro__copy p {
	margin: 0 0 16px;
	font-size: 16px;
}

.hth .hth-intro__hint {
	color: #6b7290;
	font-size: 15px;
	margin-bottom: 0 !important;
}

.hth .hth-jump {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 12px 20px;
	background: var(--hth-navy);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 4px;
	transition: background 0.2s;
}

.hth .hth-jump:hover {
	background: #0f1638;
	color: #fff !important;
}

/* Catalog ----------------------------------------------------------------- */
.hth .hth-catalog {
	background: #fff;
	padding: 34px 0 84px;
}

.hth .hth-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: var(--hth-soft);
	border: 1px solid var(--hth-line);
	border-radius: var(--hth-radius);
	margin-bottom: 34px;
}

.hth .hth-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 340px;
	max-width: 480px;
	background: #fff;
	border: 1px solid #d8dce9;
	border-radius: 999px;
	padding: 0 8px 0 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hth .hth-search:focus-within {
	border-color: var(--hth-navy);
	box-shadow: 0 0 0 4px rgba(27, 36, 80, 0.08);
}

.hth .hth-search__icon {
	color: #9aa1b8;
	font-size: 15px;
	margin-right: 10px;
}

.hth .hth-search input[type="search"] {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 13px 0;
	font-family: inherit;
	font-size: 15px;
	color: var(--hth-navy-dark);
	box-shadow: none;
	-webkit-appearance: none;
}

.hth .hth-search input[type="search"]::placeholder {
	color: #98a0b8;
}

.hth .hth-count {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--hth-navy);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* Grid -------------------------------------------------------------------- */
.hth .hth-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.hth .hth-card {
	margin: 0;
	border: 1px solid var(--hth-line);
	border-radius: var(--hth-radius);
	background: #fff;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hth .hth-card:hover,
.hth .hth-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(11, 16, 48, 0.12);
	border-color: #cfd5e6;
}

.hth .hth-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.hth .hth-card__cover {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #f7f8fc 0%, #eceff8 100%);
	padding: 22px 18px;
	min-height: 210px;
}

.hth .hth-card__cover img {
	width: auto;
	max-width: 100%;
	height: 168px;
	object-fit: contain;
	display: block;
	border-radius: 3px;
	box-shadow: 0 10px 22px rgba(11, 16, 48, 0.22);
	transition: transform 0.3s ease;
}

.hth .hth-card:hover .hth-card__cover img {
	transform: translateY(-3px) scale(1.02);
}

.hth .hth-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 22px;
	border-top: 1px solid var(--hth-line);
}

.hth .hth-card__title {
	display: block;
	font-family: 'Mulish', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--hth-navy-dark);
	margin-bottom: 8px;
}

.hth .hth-card__text {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	color: #626a85;
	margin-bottom: 14px;
	flex: 1;
}

.hth .hth-card__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hth-navy);
	margin-top: auto;
}

.hth .hth-card:hover .hth-card__more {
	color: var(--hth-gold);
}

.hth .hth-arrow {
	transition: transform 0.25s ease;
}

.hth .hth-card:hover .hth-arrow {
	transform: translateX(4px);
}

.hth .hth-card.is-hidden {
	display: none;
}

.hth .hth-empty {
	margin: 30px 0 0;
	padding: 22px;
	background: var(--hth-gold-soft);
	border: 1px solid #f0e0bd;
	border-radius: var(--hth-radius);
	color: #6b5220;
	font-size: 15px;
}

.hth .hth-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--hth-navy);
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.hth .hth-foot-note {
	margin: 36px 0 0;
	font-size: 14px;
	color: #6b7290;
	text-align: center;
}

/* Product page ------------------------------------------------------------ */
.hth .hth-product {
	background: #fff;
	padding-bottom: 20px;
}

.hth .hth-book__main {
	display: grid;
	grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	padding: 12px 0 64px;
}

.hth .hth-book__cover {
	margin: 0;
	background: linear-gradient(160deg, #f7f8fc 0%, #eceff8 100%);
	border-radius: var(--hth-radius);
	padding: 34px 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: sticky;
	top: 24px;
}

.hth .hth-book__cover img {
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 460px;
	display: block;
	border-radius: 4px;
	box-shadow: 0 24px 48px rgba(11, 16, 48, 0.26);
}

.hth .hth-book__title {
	margin: 0 0 18px;
}

.hth .hth-book__desc {
	font-size: 16.5px;
	line-height: 1.78;
	color: #464d66;
}

.hth .hth-book__desc p {
	margin: 0 0 16px;
}

.hth .hth-book__desc em {
	font-style: italic;
}

.hth .hth-book__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: var(--hth-line);
	border: 1px solid var(--hth-line);
	border-radius: 12px;
	overflow: hidden;
	margin: 26px 0 28px;
	padding: 0;
}

.hth .hth-book__meta div {
	background: #fff;
	padding: 14px 18px;
	margin: 0;
}

.hth .hth-book__meta dt {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8b93ab;
	margin-bottom: 4px;
	display: block;
}

.hth .hth-book__meta dd {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--hth-navy-dark);
}

.hth .hth-book__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px;
	padding: 22px 24px;
	background: var(--hth-soft);
	border: 1px solid var(--hth-line);
	border-radius: var(--hth-radius);
}

.hth .hth-price {
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.hth .hth-price__amount {
	font-family: 'Mulish', sans-serif;
	font-size: 30px;
	font-weight: 800;
	color: var(--hth-navy-dark);
}

.hth .hth-price__note {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8b93ab;
	margin-top: 4px;
}

.hth .hth-btn {
	display: inline-flex;
	align-items: stretch;
	background: var(--hth-navy);
	color: #fff !important;
	font-family: 'Mulish', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	border-radius: 4px;
	overflow: hidden;
	transition: background 0.25s, color 0.25s;
	min-height: 52px;
}

.hth .hth-btn__label {
	display: flex;
	align-items: center;
	padding: 0 22px;
}

.hth .hth-btn__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	margin-left: 18px;
	background: #fff;
	color: var(--hth-navy);
	font-size: 17px;
	transition: transform 0.25s;
}

.hth .hth-btn:hover {
	background: #0f1638;
}

.hth .hth-btn:hover .hth-btn__arrow {
	transform: translateX(3px);
	color: var(--hth-gold);
}

.hth .hth-book__note {
	font-size: 13.5px;
	color: #7b8299;
	margin: 16px 0 0;
}

.hth .hth-book__note a {
	color: var(--hth-navy);
	font-weight: 700;
	text-decoration: underline;
}

.hth .hth-backlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	font-size: 14px;
	font-weight: 700;
	color: var(--hth-navy);
	text-decoration: none;
}

.hth .hth-backlink:hover {
	color: var(--hth-gold);
}

/* Related ----------------------------------------------------------------- */
.hth .hth-related {
	background: var(--hth-soft);
	border-top: 1px solid var(--hth-line);
	padding: 56px 0 72px;
}

.hth .hth-related h2 {
	margin-bottom: 26px;
}

.hth .hth-grid--related {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
	.hth .hth-grid,
	.hth .hth-grid--related {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.hth .hth-intro__grid,
	.hth .hth-book__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.hth .hth-book__cover {
		position: static;
		max-width: 320px;
		justify-self: start;
	}

	.hth .hth-grid,
	.hth .hth-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hth .hth-hero {
		padding: 56px 0 48px;
		background-position: center;
	}
}

@media (max-width: 560px) {
	.hth .hth-grid,
	.hth .hth-grid--related {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.hth .hth-card__cover img {
		height: 190px;
	}

	.hth .hth-book__buy {
		gap: 18px;
	}

	.hth .hth-btn {
		width: 100%;
		justify-content: space-between;
	}

	.hth .hth-hero {
		padding: 40px 0 34px;
	}
}

/* A–Z index (parent /product/ page) --------------------------------------- */
.hth .hth-index {
padding: 56px 0 70px;
background: #fff;
}

.hth .hth-index__lead {
max-width: 720px;
margin-bottom: 34px;
font-size: 16px;
}

.hth .hth-index__lead a {
color: var(--hth-navy);
font-weight: 700;
text-decoration: underline;
}

.hth .hth-index__group {
display: grid;
grid-template-columns: 56px minmax(0, 1fr);
gap: 12px;
padding: 18px 0;
border-top: 1px solid var(--hth-line);
}

.hth .hth-index__group h3 {
margin: 0;
font-size: 22px;
color: var(--hth-gold);
}

.hth .hth-index__group ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 8px 26px;
}

.hth .hth-index__group li {
margin: 0;
}

.hth .hth-index__group a {
color: var(--hth-navy-dark);
font-weight: 600;
font-size: 15px;
text-decoration: none;
border-bottom: 1px solid transparent;
}

.hth .hth-index__group a:hover {
color: var(--hth-gold);
border-bottom-color: var(--hth-gold);
}
