/* ==========================================================================
   100 Fold — book product page (body.hf-book-page)
   Loaded only on single products in the Books category.
   Selectors start with body.hf-book-page so they beat Storefront, its
   Customizer CSS and the child theme's global rules.
   ========================================================================== */

body.hf-book-page {
	--hfb-gold: var(--gold, #9c7b32);
	--hfb-gold2: var(--gold2, #c9a24b);
	--hfb-ink: var(--ink, #1b1815);
	--hfb-ink2: var(--ink2, #463f35);
	--hfb-soft: var(--soft, #7c7264);
	--hfb-rule: var(--rule, #e2dccb);
	--hfb-paper2: var(--paper2, #FBF8F1);
	--hfb-display: 'Cormorant Garamond', Georgia, serif;
	--hfb-body: 'Source Serif 4', Georgia, serif;
	--hfb-ui: Inter, system-ui, sans-serif;
}

/* Storefront spacing between header, breadcrumb and content */
body.hf-book-page .site-header { margin-bottom: 0; }

/* ---------- Breadcrumb: Home / The Library / Title ---------- */
body.hf-book-page .storefront-breadcrumb {
	margin: 0;
	padding: 18px 0 16px;
	background: transparent;
	border: 0;
}
body.hf-book-page .storefront-breadcrumb .col-full {
	box-sizing: border-box; /* Storefront's .col-full is content-box */
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 34px;
}
body.hf-book-page .storefront-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
	font-family: var(--hfb-ui);
	font-weight: 400;
	font-size: 12px;
	line-height: 1.7;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hfb-soft);
}
body.hf-book-page .storefront-breadcrumb .woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
body.hf-book-page .storefront-breadcrumb .woocommerce-breadcrumb a:hover { color: var(--hfb-gold); }
/* Storefront swaps the "/" separators for icons; put the slashes back. */
body.hf-book-page .storefront-breadcrumb .woocommerce-breadcrumb a:first-of-type::before { content: none; }
body.hf-book-page .storefront-breadcrumb .breadcrumb-separator {
	display: inline;
	position: static;
	padding: 0 .35em;
	text-indent: 0;
}
body.hf-book-page .storefront-breadcrumb .breadcrumb-separator::after { content: none; }

/* ---------- Hero ---------- */
body.hf-book-page .hf-book-hero {
	position: relative;
	height: 544px;
	overflow: hidden;
	border-bottom: 1px solid var(--hfb-rule);
	background: #1a1612; /* shows while the image loads, or when there is none */
}
body.hf-book-page .hf-book-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
body.hf-book-page .hf-book-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 13, 10, .82) 0%, rgba(16, 13, 10, .56) 34%, rgba(16, 13, 10, .12) 62%, transparent 100%);
}
body.hf-book-page .hf-book-hero__text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
body.hf-book-page .hf-book-hero__wrap {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 34px;
}
body.hf-book-page .hf-book-hero__series {
	margin: 0;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.5;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--hfb-gold2);
}
body.hf-book-page .hf-book-hero__title {
	margin: 12px 0 6px;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 62px;
	line-height: 1.02;
	letter-spacing: 0;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}
body.hf-book-page .hf-book-hero__subtitle {
	max-width: 430px;
	margin: 0;
	font-family: var(--hfb-display);
	font-style: italic;
	font-size: 23px;
	line-height: 1.2;
	color: #efe9dd;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}
body.hf-book-page .hf-book-hero__blurb {
	max-width: 470px;
	margin-top: 16px;
	font-family: var(--hfb-body);
	font-size: 16.5px;
	line-height: 1.7;
	color: #e7e0d2;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
body.hf-book-page .hf-book-hero__blurb p { margin: 0 0 .6em; color: inherit; }
body.hf-book-page .hf-book-hero__blurb p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	body.hf-book-page .hf-book-hero { height: 470px; }
	body.hf-book-page .hf-book-hero__title { font-size: 44px; }
}
/* Added for phones: the text spans the full width, so darken the whole image
   (the design's left-to-right veil leaves the right half nearly clear). */
@media (max-width: 700px) {
	body.hf-book-page .hf-book-hero__veil {
		background: linear-gradient(180deg, rgba(16, 13, 10, .45) 0%, rgba(16, 13, 10, .72) 55%, rgba(16, 13, 10, .82) 100%);
	}
}
@media (max-width: 560px) {
	body.hf-book-page .storefront-breadcrumb .col-full,
	body.hf-book-page .hf-book-hero__wrap { padding: 0 22px; }
	body.hf-book-page .hf-book-hero__title { font-size: 38px; }
	body.hf-book-page .hf-book-hero__subtitle { font-size: 20px; }
}

/* ==========================================================================
   Page body (replaces WooCommerce's gallery / summary / tabs)
   ========================================================================== */

/* Full-width content area: sections set their own width. */
body.hf-book-page .site-content > .col-full { box-sizing: border-box; max-width: none; margin: 0; padding: 0; }
body.hf-book-page .content-area { width: 100%; float: none; margin: 0; }
body.hf-book-page .site-main { margin-bottom: 0; }
body.hf-book-page .hf-bwrap { box-sizing: border-box; max-width: 1080px; margin: 0 auto; padding: 0 34px; }
body.hf-book-page .hf-book {
	font-family: var(--hfb-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--hfb-ink);
}
body.hf-book-page .hf-book img { border-radius: 0; }
body.hf-book-page .hf-book .woocommerce-message,
body.hf-book-page .hf-book .woocommerce-error,
body.hf-book-page .hf-book .woocommerce-info { margin-bottom: 24px; }

/* ---------- Book card ---------- */
body.hf-book-page .hf-book-card-sec { padding: 60px 0; }
body.hf-book-page .hf-book-card {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 44px;
	padding: 36px;
	background: var(--hfb-paper2);
	border: 1px solid var(--hfb-rule);
	box-shadow: 0 26px 60px -34px rgba(20, 16, 10, .4);
}
body.hf-book-page .hf-book-card__cover img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--hfb-rule);
	box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .45);
}
body.hf-book-page .hf-book-card__title {
	margin: 0;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.05;
	letter-spacing: 0;
	color: var(--hfb-ink);
}
body.hf-book-page .hf-book-card__meta {
	margin: 8px 0 16px;
	font-family: var(--hfb-ui);
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--hfb-soft);
}
body.hf-book-page .hf-book-card__desc { margin-bottom: 16px; font-size: 16.5px; color: var(--hfb-ink2); }
body.hf-book-page .hf-book-card__desc p { margin: 0 0 .8em; color: inherit; }
body.hf-book-page .hf-book-card__desc p:last-child { margin-bottom: 0; }
body.hf-book-page .hf-book-card__epi {
	padding-left: 15px;
	border-left: 2px solid var(--hfb-gold);
	font-size: 15px;
	font-style: italic;
	color: var(--hfb-soft);
}
body.hf-book-page .hf-book-card__epi p { margin: 0; color: inherit; }

/* ---------- Buy box (light) ---------- */
body.hf-book-page .hf-buy {
	margin: 22px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--hfb-rule);
}
body.hf-book-page .hf-buy__fmt {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--hfb-rule);
	background: #efe7d6;
}
body.hf-book-page .hf-buy__opt { position: relative; margin: 0; cursor: pointer; }
body.hf-book-page .hf-buy__opt input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}
body.hf-book-page .hf-buy__opt span {
	display: block;
	padding: 10px 20px;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .04em;
	color: var(--hfb-soft);
	transition: background-color .15s, color .15s;
}
body.hf-book-page .hf-buy__opt input:checked + span { background: var(--hfb-ink); color: #fff; }
body.hf-book-page .hf-buy__opt input:focus-visible + span { outline: 2px solid var(--hfb-gold); outline-offset: -2px; }
body.hf-book-page .hf-buy__opt input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

body.hf-book-page .hf-buy__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 18px 22px;
	margin-top: 18px;
}
body.hf-book-page .hf-buy__qty-label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hfb-soft);
}
body.hf-book-page .hf-buy .hf-buy__qty {
	box-sizing: border-box;
	width: 104px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--hfb-rule);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: var(--hfb-body);
	font-size: 16px;
	line-height: 1.4;
	color: var(--hfb-ink);
}
body.hf-book-page .hf-buy__price { display: block; }
body.hf-book-page .hf-buy__total {
	display: block;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 32px;
	line-height: 1;
	color: var(--hfb-ink);
}
body.hf-book-page .hf-buy__unit {
	display: block;
	margin-top: 4px;
	font-family: var(--hfb-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .02em;
	color: var(--hfb-soft);
}
body.hf-book-page .hf-buy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* !important: the child theme's style.css forces gold/white on every button. */
body.hf-book-page .hf-buy .hf-buy__add {
	margin: 0;
	padding: 14px 26px;
	border: 0;
	border-radius: 0;
	background: var(--hfb-ink) !important;
	color: #f6efe0 !important;
	font-family: var(--hfb-ui) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s;
}
body.hf-book-page .hf-buy .hf-buy__add:hover,
body.hf-book-page .hf-buy .hf-buy__add:focus-visible { background: var(--hfb-gold) !important; }
body.hf-book-page .hf-buy .hf-buy__sample {
	display: inline-block;
	padding: 12px 20px;
	border: 1px solid var(--hfb-gold);
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hfb-ink);
	transition: background-color .15s, color .15s;
}
body.hf-book-page .hf-buy .hf-buy__sample:hover,
body.hf-book-page .hf-buy .hf-buy__sample:focus-visible { background: var(--hfb-gold); color: #fff; }
body.hf-book-page .hf-buy .hf-buy__note {
	margin: 14px 0 0;
	font-family: var(--hfb-ui);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--hfb-soft);
}

/* ---------- Workbook band (dark) ---------- */
body.hf-book-page .hf-wb {
	padding: 80px 0;
	background: var(--deep, #201d18);
	color: #f1ebe0;
}
body.hf-book-page .hf-wb__kicker {
	margin: 0 0 12px;
	text-align: center;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--hfb-gold2);
}
body.hf-book-page .hf-wb__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
body.hf-book-page .hf-wb__title {
	margin: 0;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.15;
	color: #fff;
}
body.hf-book-page .hf-wb__intro { margin-top: 12px; font-size: 16.5px; color: #c8bfae; }
body.hf-book-page .hf-wb__intro p { margin: 0 0 .8em; color: inherit; }
body.hf-book-page .hf-wb__intro p:last-child { margin-bottom: 0; }

body.hf-book-page .hf-wb__vols {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin: 6px 0 46px;
}
body.hf-book-page .hf-wb__vol { width: 152px; margin: 0; }
body.hf-book-page .hf-wb__mat {
	padding: 8px;
	background: #f3ece0;
	box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .6);
}
body.hf-book-page .hf-wb__mat img { display: block; width: 100%; height: auto; }
body.hf-book-page .hf-wb__vol figcaption {
	margin-top: 12px;
	text-align: center;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #efe7d9;
}
body.hf-book-page .hf-wb__vol figcaption span {
	display: block;
	margin-top: 3px;
	font-family: var(--hfb-display);
	font-weight: 400;
	font-style: italic;
	font-size: 14px;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: #b3a893;
}

body.hf-book-page .hf-wb__sets {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	max-width: 900px;
	margin: 0 auto;
}
body.hf-book-page .hf-wb__sets--single { grid-template-columns: 1fr; max-width: 440px; }
body.hf-book-page .hf-wb__card {
	padding: 30px;
	background: #2c2822;
	border: 1px solid rgba(201, 162, 75, .22);
	box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6);
}
body.hf-book-page .hf-wb__tag {
	margin: 0;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hfb-gold2);
}
body.hf-book-page .hf-wb__card-title {
	margin: 3px 0 0;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 25px;
	line-height: 1.2;
	color: #fff;
}
body.hf-book-page .hf-wb__card-title a { color: inherit; text-decoration: none; }
body.hf-book-page .hf-wb__card-title a:hover { color: var(--hfb-gold2); }
body.hf-book-page .hf-wb__desc { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: #c6bdad; }
body.hf-book-page .hf-wb__desc p { margin: 0 0 .6em; color: inherit; }
body.hf-book-page .hf-wb__desc p:last-child { margin-bottom: 0; }

/* Buy box on the dark cards */
body.hf-book-page .hf-wb__card .hf-buy { border-top-color: rgba(255, 255, 255, .1); }
body.hf-book-page .hf-wb__card .hf-buy__fmt { background: #413a30; border-color: rgba(255, 255, 255, .12); }
body.hf-book-page .hf-wb__card .hf-buy__opt span { color: #c3b8a5; }
body.hf-book-page .hf-wb__card .hf-buy__opt input:checked + span { background: var(--hfb-gold2); color: #241d10; }
body.hf-book-page .hf-wb__card .hf-buy__qty-label,
body.hf-book-page .hf-wb__card .hf-buy__unit,
body.hf-book-page .hf-wb__card .hf-buy .hf-buy__note { color: #a99f8c; }
body.hf-book-page .hf-wb__card .hf-buy .hf-buy__qty {
	background: #413a30;
	border-color: rgba(255, 255, 255, .16);
	color: #fff;
}
body.hf-book-page .hf-wb__card .hf-buy__total { color: #fff; }
body.hf-book-page .hf-wb__card .hf-buy .hf-buy__add { background: var(--hfb-gold2) !important; color: #241d10 !important; }
body.hf-book-page .hf-wb__card .hf-buy .hf-buy__add:hover,
body.hf-book-page .hf-wb__card .hf-buy .hf-buy__add:focus-visible { background: #dcb968 !important; }

/* ---------- Continue in the series ---------- */
body.hf-book-page .hf-rel { padding: 80px 0; }
body.hf-book-page .hf-rel__head { margin-bottom: 36px; text-align: center; }
body.hf-book-page .hf-rel__lab {
	margin: 0 0 12px;
	font-family: var(--hfb-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--hfb-gold);
}
body.hf-book-page .hf-rel__title {
	margin: 0;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.2;
	color: var(--hfb-ink);
}
body.hf-book-page .hf-rel__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 760px;
	margin: 0 auto;
}
body.hf-book-page .hf-rel__item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px;
	background: var(--hfb-paper2);
	border: 1px solid var(--hfb-rule);
	color: var(--hfb-ink);
	text-decoration: none;
	transition: border-color .15s;
}
body.hf-book-page .hf-rel__item:hover,
body.hf-book-page .hf-rel__item:focus-visible { border-color: var(--hfb-gold); color: var(--hfb-ink); }
body.hf-book-page .hf-rel__item img { flex: none; width: 70px; height: auto; border: 1px solid var(--hfb-rule); }
body.hf-book-page .hf-rel__name {
	display: block;
	font-family: var(--hfb-display);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.2;
}
body.hf-book-page .hf-rel__sub {
	display: block;
	margin-top: 2px;
	font-family: var(--hfb-display);
	font-style: italic;
	font-size: 14px;
	line-height: 1.3;
	color: var(--hfb-soft);
}

/* ---------- Responsive (body) ---------- */
@media (max-width: 900px) {
	body.hf-book-page .hf-book-card { grid-template-columns: 1fr; gap: 28px; }
	body.hf-book-page .hf-book-card__cover { max-width: 300px; }
	body.hf-book-page .hf-wb__sets,
	body.hf-book-page .hf-rel__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	body.hf-book-page .hf-bwrap { padding: 0 22px; }
	body.hf-book-page .hf-book-card-sec { padding: 36px 0; }
	body.hf-book-page .hf-book-card { padding: 22px; }
	body.hf-book-page .hf-wb { padding: 60px 0; }
	body.hf-book-page .hf-wb__card { padding: 22px; }
	body.hf-book-page .hf-wb__vols { gap: 14px; }
	body.hf-book-page .hf-wb__vol { width: calc(50% - 7px); max-width: 152px; }
	body.hf-book-page .hf-rel { padding: 60px 0; }
}
