/*
Theme Name: Bookworld
Description: A catalogue-first block theme for Bookworld India.
Version: 0.1.39
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bookworld
*/

.bookworld-shell {
	max-width: 1280px;
	width: calc(100% - clamp(2rem, 7vw, 6rem));
	margin-inline: auto;
}

.bookworld-header {
	border-bottom: 1px solid #edf0f3;
}

.bookworld-header,
.bookworld-hero {
	font-family: "DM Sans", system-ui, sans-serif;
}

.bookworld-header-row,
.bookworld-navigation,
.bookworld-footer-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

.bookworld-header-row {
	padding-block: 1rem .75rem;
}

.bookworld-header-row img {
	width: 166px;
	height: auto;
	display: block;
}

.bookworld-navigation {
	gap: .5rem 1.5rem;
	padding-block: .8rem 1.5rem;
	font-size: .9rem;
	font-weight: 700;
}

.bookworld-navigation a { text-decoration: none; }
.bookworld-navigation a:hover { text-decoration: underline; }

.bookworld-navigation a,
.bookworld-footer-row a {
	text-underline-offset: .2em;
}

.bookworld-search {
	display: flex;
	align-items: stretch;
	gap: .4rem;
	flex: 1 1 18rem;
	min-width: 0;
	max-width: 42rem;
	margin: 0;
}

.bookworld-search input[type="search"] {
	box-sizing: border-box;
	min-width: 0;
	flex: 1;
	border: 1px solid #718298;
	border-radius: 999px;
	padding: .65rem .9rem;
	background: #fff;
	color: #122748;
	font: inherit;
}

.bookworld-search button {
	border: 0;
	border-radius: 999px;
	padding: .65rem .9rem;
	background: #122748;
	color: #fff;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.bookworld-hero {
	background: linear-gradient(110deg, #edf7fb, #f5fafb 54%, #dff7f1);
}

.bookworld-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: end;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	padding-top: clamp(2rem, 3.5vw, 3.5rem);
}

.bookworld-hero-copy { padding-block: 1rem clamp(2rem, 5vw, 4rem); }

.bookworld-hero .bookworld-eyebrow {
	margin: 0 0 .9rem;
	color: #4d6077;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bookworld-hero h1 {
	font-size: clamp(2.6rem, 5.7vw, 5.4rem);
	font-weight: 800;
	letter-spacing: -.078em;
	line-height: .95;
	margin: 0 0 1.05rem;
}

.bookworld-hero p {
	font-size: clamp(1rem, 1.8vw, 1.5rem);
	margin: 0 0 1.15rem;
}

.bookworld-popular-searches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem;
	margin-top: .7rem;
	font-size: .73rem;
}

.bookworld-popular-searches a {
	padding: .12rem .55rem;
	border: 1px solid #dce7ee;
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
}

.bookworld-arches {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(.4rem, 1vw, .85rem);
}

.bookworld-arches a {
	position: relative;
	display: flex;
	align-items: end;
	overflow: hidden;
	min-height: 0;
	aspect-ratio: 0.38;
	border-radius: 50% 50% 0 0 / 20% 20% 0 0;
	background: #122748;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 12px 25px #10264c22;
	transition: transform .22s ease, box-shadow .22s ease;
}

.bookworld-arches a:focus-visible {
	transform: translateY(-8px);
	box-shadow: 0 19px 32px #10264c38;
	outline: 3px solid #55cdba;
	outline-offset: 3px;
}

@media (hover: hover) {
	.bookworld-arches a:hover {
		transform: translateY(-8px);
		box-shadow: 0 19px 32px #10264c38;
		outline: 3px solid #55cdba;
		outline-offset: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bookworld-arches a { transition: none; }
}

.bookworld-arches img,
.bookworld-arches a::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.bookworld-arches img { object-fit: cover; }

.bookworld-arches a::after {
	content: "";
	background: linear-gradient(0deg, #0b1b36 2%, #0b1b3600 56%);
}

.bookworld-arches span {
	position: relative;
	z-index: 1;
	padding: .6rem .75rem 1rem;
	line-height: 1.2;
}

.bookworld-arches strong { display: block; font-size: clamp(.9rem, 1.65vw, 1.45rem); }
.bookworld-arches small { font-size: .72rem; }

@media (max-width: 760px) {
	.bookworld-header-row { gap: .65rem; }
	.bookworld-header-row img { width: 134px; }
	.bookworld-header-row .bookworld-search { flex-basis: 100%; }
	.bookworld-navigation { padding-block: .25rem .85rem; }
	.bookworld-hero-layout { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
	.bookworld-hero-copy { padding-block: 0 1.4rem; }
	.bookworld-arches a { aspect-ratio: .62; }
	.bookworld-arches span { padding: .3rem .38rem .55rem; }
	.bookworld-arches small { display: none; }
}

.bookworld-section {
	padding-block: clamp(2rem, 5vw, 4rem);
}

.bookworld-genres {
	background: #eaf6f8;
}

.bookworld-genre-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
	gap: .75rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.bookworld-genre-list a {
	display: flex;
	align-items: end;
	min-height: 3.5rem;
	padding: .75rem;
	border-radius: .8rem;
	background: #b9e9df;
	font-weight: 650;
}

.bookworld-genre-list li:nth-child(3n + 2) a { background: #c4def0; }
.bookworld-genre-list li:nth-child(3n + 3) a { background: #f6ddae; }

.bookworld-footer {
	margin-top: 2rem;
	padding-block: 2.5rem;
	background: #122748;
	color: #fff;
}

.bookworld-footer-row img {
	display: block;
	width: 105px;
	height: auto;
}

.bookworld-content {
	box-sizing: border-box;
	padding: clamp(1rem, 4vw, 3rem);
	overflow-wrap: anywhere;
}

.bookworld-cover img,
.bookworld-content .wc-block-components-product-image img {
	object-fit: contain;
}

:where(a, button, input, select, summary):focus-visible {
	outline: 3px solid #236ca1;
	outline-offset: 3px;
}

.bookworld-footer a:focus-visible { outline-color: #b9e9df; }

/* Storefront navigation and catalogue presentation. */
.bookworld-header { position: relative; z-index: 5; }
.bookworld-header-row { gap: 1rem 1.5rem; }
.bookworld-header-row .bookworld-search,
.bookworld-hero .bookworld-search {
	position: relative;
	max-width: 43rem;
	margin-inline-start: auto;
}
.bookworld-header-row .bookworld-search input,
.bookworld-hero .bookworld-search input {
	min-height: 2.75rem;
	border-color: #dce5ef;
	padding: .5rem 3.15rem .5rem 1.2rem;
}
.bookworld-header-row .bookworld-search button,
.bookworld-hero .bookworld-search button {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: 2.75rem;
	padding: 0;
	display: grid;
	place-items: center;
}
.bookworld-header-row .bookworld-search button::before,
.bookworld-hero .bookworld-search button::before {
	content: "";
	width: .53rem;
	height: .53rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	transform: translate(.07rem, -.07rem);
}
.bookworld-header-row .bookworld-search button::after,
.bookworld-hero .bookworld-search button::after {
	content: "";
	position: absolute;
	width: .35rem;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transform: translate(-.23rem, .24rem) rotate(-45deg);
}
.bookworld-hero .bookworld-search { margin-inline-start: 0; }
.bookworld-hero .bookworld-search input { min-height: 3.55rem; box-shadow: 0 .4rem 1.2rem #10264c14; font-size: .9rem; }
.bookworld-hero .bookworld-search button { inset: .32rem .32rem .32rem auto; width: 2.9rem; }
.bookworld-header-row .bookworld-brand img { width: clamp(8.25rem, 15vw, 13rem); }
.bookworld-header-actions { display: flex; align-items: center; gap: clamp(.55rem, 1.7vw, 1.6rem); }
.bookworld-header-actions a, .bookworld-header-actions .bookworld-wishlist-open:not([hidden]) {
	display: grid;
	justify-items: center;
	gap: .15rem;
	font-size: .7rem;
	line-height: 1.2;
	text-decoration: none;
}
.bookworld-action-icon { font-size: 1rem; line-height: 1; }
.bookworld-wishlist-open, .bookworld-wishlist-heart {
	border: 0;
	background: transparent;
	color: #10264c;
	cursor: pointer;
	font-family: inherit;
}
.bookworld-wishlist-heart { min-width: 2rem; min-height: 2rem; border-radius: 50%; font-size: 1.4rem; }
.bookworld-wishlist-heart[aria-pressed="true"] { color: #a22b51; }
.bookworld-wishlist {
	box-sizing: border-box;
	width: min(34rem, calc(100% - 2rem));
	max-height: 85vh;
	border: 1px solid #dce5ef;
	border-radius: 1rem;
	padding: 1.5rem;
	color: #10264c;
}
.bookworld-wishlist::backdrop { background: #10264c80; }
.bookworld-wishlist form { float: inline-end; }
.bookworld-wishlist h2 { margin: 0 0 1rem; }
.bookworld-wishlist-books { padding: 0; list-style: none; }
.bookworld-wishlist-books li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid #dce5ef; }
.bookworld-wishlist button { cursor: pointer; border: 1px solid #dce5ef; border-radius: .5rem; padding: .35rem .65rem; background: #fff; color: #10264c; }
.bookworld-account-login #customer_login .u-column2,
.bookworld-account-register #customer_login .u-column1 { display: none; }
.bookworld-account-login #customer_login .u-column1,
.bookworld-account-register #customer_login .u-column2 { float: none; width: min(100%, 32rem); margin-inline: auto; }
.bookworld-cart-link { position: relative; }
.bookworld-cart-count {
	position: absolute;
	inset-block-start: -.35rem;
	inset-inline-start: 65%;
	min-width: 1rem;
	padding: .1rem .2rem;
	border-radius: 999px;
	background: #89d8c7;
	color: #10264c;
	font-size: .6rem;
	font-weight: 800;
	text-align: center;
}
.bookworld-nav-toggle { display: none; }
.bookworld-navigation { justify-content: space-between; gap: .55rem 1rem; }
.bookworld-navigation a { text-decoration: none; }
.bookworld-navigation a:hover { text-decoration: underline; }
.bookworld-navigation .bookworld-offers-link { color: #b23237; }
.bookworld-nav-group { position: relative; }
.bookworld-nav-group summary { cursor: pointer; white-space: nowrap; }
.bookworld-nav-panel {
	position: absolute;
	inset-inline-end: 0;
	width: min(32rem, calc(100vw - 2rem));
	box-sizing: border-box;
	z-index: 5;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid #e0e8ef;
	border-radius: .8rem;
	box-shadow: 0 12px 24px #10264c20;
	background: #fff;
}
.bookworld-nav-panel h2 { margin: 0 0 .5rem; font-size: 1rem; }
.bookworld-nav-panel a { display: block; color: #526b85; font-size: .85rem; font-weight: 500; padding-block: .3rem; }
.bookworld-nav-panel a:is(:hover, :focus-visible) { color: #10264c; }

.bookworld-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bookworld-section-heading h2, .bookworld-moods h2, .bookworld-editorial h2 {
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -.04em;
}
.bookworld-section-heading { flex-wrap: wrap; }
.bookworld-shelf-actions, .bookworld-shelf-controls:not([hidden]) { display: flex; align-items: center; gap: .65rem; }
.bookworld-shelf-actions > a { white-space: nowrap; }
.bookworld-shelf-controls { font-size: .85rem; font-variant-numeric: tabular-nums; }
.bookworld-shelf-controls button { width: 2.5rem; height: 2.5rem; border: 1px solid #dce7ee; border-radius: 50%; background: #fff; color: #10264c; cursor: pointer; }
.bookworld-shelf-controls button:disabled { opacity: .48; cursor: default; }
.bookworld-shelf:has(.bookworld-shelf-controls:not([hidden])) .bookworld-book-rail { scrollbar-width: none; }
.bookworld-book-rail, .bookworld-mood-grid {
	display: grid;
	grid-auto-flow: column;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: .5rem .25rem 1rem;
}
.bookworld-book-rail { grid-auto-columns: clamp(9rem, 17%, 14rem); margin: 0; list-style: none; scroll-padding-inline: .25rem; }
.bookworld-book-rail li, .bookworld-mood-grid a { scroll-snap-align: start; }
.bookworld-book-rail a, .bookworld-mood-grid a, .bookworld-promos a { text-decoration: none; }
.bookworld-rail-cover {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 4;
	padding: .75rem;
	margin-bottom: .55rem;
	background: #f3f6f8;
	border-radius: .65rem;
}
.bookworld-rail-cover img { width: 100%; height: 100%; object-fit: contain; }
.bookworld-book-rail p { margin: .25rem 0 0; }
.bookworld-moods { background: #edf7f8; border-radius: 1rem; padding-inline: clamp(1rem, 3vw, 2.5rem); box-sizing: border-box; }
.bookworld-moods .bookworld-section-heading { align-items: end; margin-bottom: 1rem; }
.bookworld-mood-eyebrow {
	margin: 0 0 .45rem;
	color: #566e86;
	font: 400 1rem/1.4 ui-monospace, Consolas, monospace;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.bookworld-mood-heading h2 {
	margin: 0;
	color: #10264c;
	font-size: clamp(1.85rem, 3.1vw, 2.5rem);
	line-height: 1.1;
}
.bookworld-mood-intro {
	margin: .45rem 0 0;
	color: #476481;
	font: 400 clamp(1rem, 1.6vw, 1.25rem)/1.4 "DM Sans", system-ui, sans-serif;
}
.bookworld-mood-grid { grid-auto-columns: clamp(8rem, calc((100% - 4rem) / 5), 14rem); scroll-padding-inline: .25rem; }
.bookworld-moods:has(.bookworld-shelf-controls:not([hidden])) .bookworld-mood-grid { scrollbar-width: none; }
.bookworld-moods:has(.bookworld-shelf-controls:not([hidden])) .bookworld-mood-grid::-webkit-scrollbar { display: none; }
.bookworld-mood-grid a { border-radius: .6rem; text-align: center; }
.bookworld-mood-arch {
	display: block;
	aspect-ratio: 300 / 389;
	overflow: hidden;
	border-radius: .55rem;
}
.bookworld-mood-arch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.bookworld-mood-grid strong { display: block; padding: .55rem .2rem; font-size: .9rem; }
.bookworld-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.bookworld-promo {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	min-height: clamp(10rem, 12.8vw, 13rem);
	overflow: hidden;
	border-radius: .9rem;
	background: #edf7f8;
	color: #10264c;
}
.bookworld-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.bookworld-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #ffffff52, #ffffff32 49%, transparent 64%); }
.bookworld-promo-copy { display: block; box-sizing: border-box; width: 56%; padding: .9rem 0 .9rem clamp(.75rem, 1.5vw, 1.5rem); }
.bookworld-promo strong { display: block; font-size: clamp(1.05rem, 1.55vw, 1.65rem); line-height: 1.08; letter-spacing: -.035em; }
.bookworld-promo-description { display: block; margin: .35rem 0 .65rem; font-size: clamp(.75rem, .88vw, .88rem); line-height: 1.3; }
.bookworld-promo .bookworld-editorial-button { background: #10264c; color: #fff; padding: .45rem .75rem; font-size: .76rem; }
.bookworld-editorial { box-sizing: border-box; border-radius: 1rem; padding: clamp(1.5rem, 6vw, 5rem); background: linear-gradient(90deg, #eaf6f8 32%, #eaf6f830), url(assets/recommends-editorial.jpg) center / cover; }
.bookworld-editorial p { max-width: 32ch; }
.bookworld-reading-pair {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(.85rem, 1.3vw, 1.5rem);
	margin-block: 2.5rem;
}
.bookworld-reading-pair > section {
	box-sizing: border-box;
	min-height: clamp(24rem, 34vw, 38rem);
	padding: clamp(1.5rem, 2.5vw, 3rem);
	border-radius: 1rem;
}
.bookworld-recommends-card {
	background: linear-gradient(90deg, #10264c 0%, #10264cd9 36%, #10264c15 100%), url(assets/recommends-editorial.jpg) right center / cover;
	color: #fff;
}
.bookworld-recommends-card .bookworld-mood-eyebrow { color: #c2d3e5; }
.bookworld-recommends-card h2 { color: inherit; margin: .6rem 0 0; font-size: clamp(2rem, 3.4vw, 3.8rem); line-height: .98; }
.bookworld-editorial-button {
	display: inline-block;
	padding: .6rem 1rem;
	border-radius: 999px;
	background: #fff;
	color: #10264c;
	font-weight: 700;
	text-decoration: none;
}
.bookworld-little-readers { display: flex; flex-direction: column; background: #f6f0e6; }
.bookworld-little-readers h2 {
	margin: 0;
	font: 800 clamp(1.85rem, 2.8vw, 3rem)/1.08 "DM Sans", system-ui, sans-serif;
	letter-spacing: -.04em;
}
.bookworld-little-readers .bookworld-popular-searches { margin-top: 1rem; }
.bookworld-little-readers .bookworld-popular-searches a { padding: .55rem 1rem; background: #fff; }
.bookworld-little-readers .bookworld-popular-searches a[aria-current] { background: #10264c; color: #fff; }
.bookworld-age-empty { margin: auto 0; max-width: 32ch; padding-block: 1.5rem; text-align: center; color: #476481; }
.bookworld-age-empty a { color: #10264c; font-weight: 700; }
.bookworld-age-status { margin: 0; text-align: right; color: #476481; }
.bookworld-featured-shelf { padding-block: clamp(2rem, 4vw, 4rem); }
.bookworld-featured-shelf h2, .bookworld-signature h2, #bookworld-publishers h2 { margin: 0; }
.bookworld-featured-shelf h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.bookworld-featured-shelf .bookworld-shelf-actions a { font-weight: 750; text-decoration: none; }
.bookworld-featured-shelf-empty { margin: 1.5rem 0 0; color: #476481; }
.bookworld-featured-shelf-empty a { color: #10264c; font-weight: 750; }
.bookworld-signature {
	display: grid;
	grid-template-columns: minmax(4rem, .55fr) minmax(0, 1.6fr) minmax(0, 2fr);
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	box-sizing: border-box;
	padding: clamp(1.4rem, 3.3vw, 3.25rem);
	border-radius: 1rem;
	background: linear-gradient(110deg, #eaf6f8, #e4f5f1);
}
.bookworld-signature-mark { display: flex; align-items: end; gap: 10%; aspect-ratio: 1; }
.bookworld-signature-mark i { width: 27%; height: 74%; border-radius: 999px 999px 999px .12rem; background: #384f9e; }
.bookworld-signature-mark i:nth-child(2) { height: 86%; background: #7591c6; }
.bookworld-signature-mark i:nth-child(3) { height: 100%; background: #92d1bc; }
.bookworld-signature .bookworld-section-heading { display: grid; gap: .9rem; }
.bookworld-signature h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
.bookworld-signature-intro { margin: .6rem 0 0; color: #476481; max-width: 38ch; }
.bookworld-signature .bookworld-editorial-button { background: #10264c; color: #fff; }
.bookworld-signature-empty { box-sizing: border-box; margin: 0; padding: 1.3rem; border-inline-start: 1px solid #b5cbd9; color: #315677; font: 1.25rem/1.5 Georgia, serif; }
.bookworld-signature .bookworld-book-rail { grid-auto-columns: minmax(7rem, 33%); }
#bookworld-publishers { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
#bookworld-publishers .bookworld-mood-eyebrow { margin: 0; }
#bookworld-publishers h2 { font-family: Georgia, serif; }
#bookworld-publishers > a { border: 1px solid #ccdbe7; border-radius: .55rem; padding: .65rem .85rem; font-weight: 650; text-decoration: none; }
@media (max-width: 700px) {
	.bookworld-signature { grid-template-columns: 3rem minmax(0, 1fr); }
	.bookworld-signature > :last-child { grid-column: 1 / -1; }
	.bookworld-signature-empty { border-inline-start: 0; border-top: 1px solid #b5cbd9; padding: 1rem 0 0; }
}
@media (max-width: 700px) {
	.bookworld-reading-pair { grid-template-columns: 1fr; }
	.bookworld-reading-pair > section { min-height: 18rem; }
}
.bookworld-india-reads {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: clamp(17rem, 22vw, 25rem);
	padding: clamp(1.5rem, 3vw, 3.5rem);
	background: linear-gradient(90deg, #eaf6f84d, transparent 65%), url(assets/india-reads-final-approved-bg.jpg) right center / cover;
}
.bookworld-india-reads .bookworld-mood-eyebrow { max-width: none; }
.bookworld-india-reads h2 { margin: .3rem 0 0; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.1; }
.bookworld-india-reads p:not(.bookworld-mood-eyebrow) { max-width: 53ch; margin: .9rem 0 1.3rem; }
.bookworld-india-reads .bookworld-editorial-button { background: #10264c; color: #fff; }
@media (max-width: 700px) {
	.bookworld-india-reads {
		background-image: linear-gradient(90deg, #eaf6f8f5 8%, #eaf6f8d9 65%, #eaf6f840), url(assets/india-reads-final-approved-bg.jpg);
	}
}
.bookworld-content .wc-block-product-template .wc-block-components-product-image {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 4;
	padding: .75rem;
	background: #f3f6f8;
	border-radius: .65rem;
}
.bookworld-content .wc-block-product-template .wc-block-components-product-image a { width: 100%; height: 100%; }
.bookworld-content .wc-block-product-template .wc-block-components-product-image img { width: 100%; height: 100%; object-fit: contain; }
.bookworld-content .wc-block-product-template .wp-block-post-title { font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.25; }

.bookworld-footer-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	align-items: start;
}
.bookworld-footer-row h2 { margin: 0 0 .5rem; font-size: 1rem; }
.bookworld-footer-row nav a { display: block; color: inherit; margin-top: .35rem; }
.bookworld-footer-row p { max-width: 30ch; }

@media (max-width: 760px) {
	.bookworld-header-row { column-gap: .6rem; }
	.bookworld-header-actions { margin-inline-start: auto; gap: .65rem; }
	.bookworld-menu-ready .bookworld-nav-toggle {
		display: block;
		border: 1px solid #dce7ee;
		border-radius: .65rem;
		background: #fff;
		color: #122748;
		min-width: 2.5rem;
		min-height: 2.5rem;
		font-size: 1.15rem;
	}
	.bookworld-menu-ready:not(:has(.bookworld-nav-toggle[aria-expanded="true"])) .bookworld-navigation { display: none; }
	.bookworld-navigation { display: block; border-top: 1px solid #e0e8ef; padding-block: 0 .6rem; }
	.bookworld-navigation > a, .bookworld-nav-group summary { display: block; padding: .75rem .5rem; font-size: 1rem; }
	.bookworld-nav-group summary::after { content: "⌄"; float: right; }
	.bookworld-nav-group[open] summary::after { content: "⌃"; }
	.bookworld-nav-group { border-bottom: 1px solid #e0e8ef; }
	.bookworld-nav-panel { position: static; width: 100%; grid-template-columns: 1fr 1fr; border: 0; box-shadow: none; padding: .5rem; }
	.bookworld-promos { grid-template-columns: 1fr; }
	.bookworld-footer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bookworld-catalogue-controls { margin-block: 1rem; }
.woocommerce-checkout form.checkout { color: #10264c; }
.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row textarea,
.woocommerce-checkout form.checkout .form-row select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	padding: .6rem .75rem;
	border: 1px solid #b8ccd9;
	border-radius: .45rem;
	background: #fff;
	color: #10264c;
	font: inherit;
}
.woocommerce-checkout form.checkout .form-row label { display: block; margin-bottom: .3rem; }
.woocommerce-checkout .woocommerce-checkout-review-order { overflow-wrap: anywhere; }
.bookworld-checkout-book { display: inline-flex; align-items: center; gap: .65rem; }
.bookworld-checkout-book img { flex: 0 0 auto; width: 48px; height: 64px; object-fit: contain; }
@media (max-width: 700px) {
	.woocommerce-checkout form.checkout .col2-set .col-1,
	.woocommerce-checkout form.checkout .col2-set .col-2,
	.woocommerce-checkout form.checkout .form-row-first,
	.woocommerce-checkout form.checkout .form-row-last { width: 100%; float: none; }
}
.bookworld-catalogue-layout { display: grid; grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 3rem); }
.bookworld-catalogue-sidebar { min-width: 0; padding: 1rem; border: 1px solid #dce7ee; border-radius: .75rem; }
.bookworld-catalogue-results { min-width: 0; }
.bookworld-catalogue-results .bookworld-catalogue-controls { margin-top: 0; }
.bookworld-recommendation-layout { margin-top: 1.25rem; }
.bookworld-recommendation-layout .bookworld-directory-filter { margin: 0; }
.bookworld-recommendation-layout select { display: block; max-width: 100%; margin: 0 0 .6rem; padding: .35rem; color: inherit; }
.bookworld-recommendation-layout .bookworld-browse-books { margin-top: 0; }
@media (max-width: 780px) {
	.bookworld-catalogue-layout { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.bookworld-catalogue-sidebar { padding: 0; border: 0; }
}
.bookworld-catalogue-controls select { padding: .55rem .75rem; border-radius: .45rem; border: 1px solid #dce7ee; color: inherit; }
.bookworld-product-detail .wp-block-columns { margin-top: 2rem; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.bookworld-product-detail .wp-block-column.bookworld-cover {
	display: grid;
	place-items: center;
	padding: clamp(1rem, 3vw, 2rem);
	background: #f0f6f8;
	border-radius: 1rem;
}
.bookworld-product-detail .wp-block-column.bookworld-cover img { display: block; max-width: 100%; max-height: 460px; margin: auto; }
.bookworld-product-detail h1 { font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.02; }
.bookworld-specs { display: grid; grid-template-columns: repeat(auto-fit,minmax(7rem,1fr)); gap: .75rem; padding: 1rem; background: #f0f6f8; border-radius: .65rem; }
.bookworld-specs dt { font-size: .8rem; font-weight: 700; }
.bookworld-specs dd { margin: 0; }
.bookworld-preview-reader { box-sizing: border-box; width: min(68rem, 96vw); max-height: 94dvh; padding: clamp(.55rem, 2vw, 1.25rem); border: 0; border-radius: 1rem; color: #122748; background: #f4f7f9; }
.bookworld-preview-reader::backdrop { background: #10264cd0; }
.bookworld-reader-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem 0 .75rem; font: 600 .92rem "DM Sans", Arial, sans-serif; }
.bookworld-reader-zoom { display: flex; align-items: center; gap: .25rem; }
.bookworld-reader-zoom output { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.bookworld-reader-controls button, .bookworld-reader-stage > button { min-height: 2.5rem; min-width: 2.5rem; padding: .3rem .55rem; border: 1px solid #cbd9e5; border-radius: .55rem; background: #fff; color: #122748; cursor: pointer; }
.bookworld-preview-reader button:disabled { opacity: .45; cursor: default; }
.bookworld-reader-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.2rem, 1vw, .8rem); }
.bookworld-reader-stage > button { border-radius: 50%; font-size: 1.25rem; }
.bookworld-reader-controls [data-action="close"] { inline-size: 2.5rem; block-size: 2.5rem; padding: 0; border-radius: 50%; font-size: 1.35rem; line-height: 1; }
.bookworld-reader-page { overflow: auto; height: min(70dvh, 48rem); background: #e9eef3; overscroll-behavior: contain; }
.bookworld-reader-page, .bookworld-peek .bookworld-preview-pages { scrollbar-width: none; }
.bookworld-reader-page::-webkit-scrollbar, .bookworld-peek .bookworld-preview-pages::-webkit-scrollbar { display: none; }
.bookworld-reader-canvas { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; }
.bookworld-reader-page img { display: block; max-width: none; height: auto; user-select: none; }
.bookworld-preview-reader.is-zoomed .bookworld-reader-page { cursor: grab; touch-action: none; }
.bookworld-preview-reader .bookworld-reader-page.is-dragging { cursor: grabbing; }
.bookworld-reader-tip { font: .78rem "DM Sans", Arial, sans-serif; color: #405d7b; margin: .65rem 0 0; }
.bookworld-content .bookworld-directory {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
	gap: .75rem;
	padding: 0;
	list-style: none;
}
.bookworld-directory a { display: block; height: 100%; box-sizing: border-box; padding: .75rem; border: 1px solid #dce7ee; border-radius: .6rem; }
.bookworld-directory-pages { display: flex; gap: 1rem; margin-block: 1rem; }
.bookworld-browse-page { color: #10264c; font-family: "DM Sans", system-ui, sans-serif; }
.bookworld-browse-intro {
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border-radius: 1rem;
	background: linear-gradient(110deg, #eaf6f8, #e4f5f1);
}
.bookworld-browse-intro p { margin: 0; max-width: 37ch; font-size: clamp(1.1rem, 2.1vw, 1.45rem); }
.bookworld-browse-editorial {
	color: #fff;
	background: linear-gradient(90deg, #10264c 0%, #10264ce8 42%, #10264c55 100%), url(assets/recommends-editorial.jpg) right center / cover;
}
.bookworld-directory-filter { margin-block: 1.5rem; }
.bookworld-directory-filter label { display: block; margin-bottom: .4rem; font-weight: 750; }
.bookworld-directory-filter > div { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.bookworld-directory-filter input { min-width: 0; flex: 0 1 22rem; max-width: 100%; padding: .5rem .8rem; border: 1px solid #b8ccd9; border-radius: 999px; font: inherit; }
.bookworld-directory-filter button { padding: .55rem .9rem; border: 0; border-radius: 999px; background: #10264c; color: #fff; font: inherit; cursor: pointer; }
.bookworld-browse-page .bookworld-directory { grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); }
.bookworld-browse-page .bookworld-directory a { display: grid; gap: .25rem; align-content: start; background: #f6fafb; text-decoration: none; }
.bookworld-browse-page .bookworld-directory a:hover strong { text-decoration: underline; }
.bookworld-directory a span { color: #476481; font-size: .85rem; }
.bookworld-directory-pages { align-items: center; flex-wrap: wrap; }
.bookworld-subject-page { max-width: 1280px; margin-inline: auto; }
.bookworld-subject-page > h1 { margin: .3rem 0 1rem; font: 800 clamp(2.55rem, 5vw, 4.7rem)/1 "DM Sans", system-ui, sans-serif; letter-spacing: -.06em; }
.bookworld-subject-page .bookworld-browse-intro { padding: 0; background: none; color: #476481; }
.bookworld-subject-page .bookworld-browse-intro p { max-width: none; }
.bookworld-subject-tree, .bookworld-subject-children { display: grid; gap: .5rem; list-style: none; padding: 0; }
.bookworld-subject-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1.4rem; margin: clamp(1.5rem, 4vw, 3rem) 0 0; }
.bookworld-subject-children { border-inline-start: 2px solid #d4e9e6; margin: .45rem 0 0 .85rem; padding-inline-start: .65rem; }
.bookworld-subject-link { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; min-height: 3.2rem; padding: .65rem .8rem; border: 1px solid #dce7ee; border-radius: .65rem; text-decoration: none; }
.bookworld-subject-tree > li > .bookworld-subject-link { min-height: 4rem; }
.bookworld-subject-link:hover strong { text-decoration: underline; }
.bookworld-subject-index, .bookworld-subject-count { color: #536e88; font-size: .8rem; }
.bookworld-subject-arrow { color: #2c6596; }
@media (max-width: 680px) {
	.bookworld-subject-tree { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.bookworld-subject-link { grid-template-columns: 1.5rem minmax(0, 1fr) auto auto; padding-inline: .55rem; }
}
.bookworld-browse-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.bookworld-browse-books li { border: 1px solid #dce7ee; padding: .65rem; border-radius: .65rem; }
.bookworld-browse-books a { display: block; text-decoration: none; }
.bookworld-browse-books a:hover strong { text-decoration: underline; }

/* Book detail and footer follow the original Bookworld page bands. */
.bookworld-product-detail { font-family: "DM Sans", Arial, sans-serif; }
.bookworld-product-detail > .woocommerce-breadcrumb { margin: 0; padding: 24px 5vw; color: #405d7b; font-size: 13px; }
.bookworld-product-detail > .bookworld-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
	justify-content: space-between;
	align-items: start;
	gap: min(12.5vw, 180px);
	padding: 32px 12vw 48px;
	margin: 0;
}
.bookworld-detail-cover img { display: block; width: 100%; height: auto; max-height: 500px; object-fit: contain; }
.bookworld-detail-info h1 { margin: .5rem 0 .75rem; font-size: clamp(1.5rem, 2.7vw, 2.375rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.bookworld-detail-cover .bookworld-specs { margin-block: .85rem 0; }
.bookworld-detail-info .wp-block-post-terms { color: #365472; font-size: .95rem; }
.bookworld-detail-info .bookworld-detail-subject { text-transform: uppercase; font-size: .78rem; }
.bookworld-detail-info > .bookworld-buy-box { border-block: 1px solid #d4e0ea; padding: .85rem 0; margin-top: 1rem; }
.bookworld-buy-box > * { margin-block: 0 .5rem; }
.bookworld-product-detail .bookworld-buy-box form.cart { margin-bottom: 0; }
.bookworld-buy-box .price, .bookworld-sale-state { font-size: 1.7rem; font-weight: 750; }
.bookworld-sale-state p { margin: 0 0 .55rem; }
.bookworld-sale-state button { padding: .7rem 1.15rem; min-width: min(100%, 18rem); border: 0; border-radius: 999px; background: #10264c; color: #fff; font: 700 .95rem "DM Sans", Arial, sans-serif; text-align: left; }
.bookworld-detail-kicker { color: #4d6782; font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .55rem; }
.bookworld-classifications { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem; margin: 0; padding: 0; }
.bookworld-classifications li { border: 1px solid #d0e1ee; border-radius: .6rem; background: #f2f7fa; padding: .45rem .7rem; font-size: .8rem; }
.bookworld-classifications li.is-primary { border-color: #10264c; background: #eaf5fb; }
.bookworld-classifications small { display: block; margin-top: .15rem; font-family: ui-monospace, monospace; }
.bookworld-about { background: #f0f7f8; color: #203958; padding: 68px 20vw; }
.bookworld-about h2, .bookworld-peek h2 { font-family: "Newsreader", Georgia, serif; line-height: 1.12; font-weight: 600; font-size: clamp(1.9rem, 4vw, 3.5rem); margin: 0 0 1rem; }
.bookworld-about p { max-width: 66ch; }
.bookworld-peek { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 1rem 3vw; background: #112548; color: #fff; padding: clamp(2.5rem, 5.3vw, 6rem) 10.5vw clamp(2.5rem, 5.3vw, 6rem) 5vw; }
.bookworld-peek h2 { font-size: clamp(2.1rem, 4vw, 4.25rem); }
.bookworld-peek .bookworld-detail-kicker { color: #abc4da; }
.bookworld-peek .bookworld-preview-pages { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .7rem; }
.bookworld-peek .bookworld-preview-pages figure { flex: 0 0 41%; margin: 0; scroll-snap-align: start; }
.bookworld-peek .bookworld-preview-pages a { display: block; }
.bookworld-peek .bookworld-preview-pages img { width: 100%; aspect-ratio: .7; object-fit: contain; background: #fff; display: block; }
.bookworld-peek .bookworld-preview-pages figcaption { color: #d5e3f0; font-size: .82rem; }
.bookworld-preview-track-controls { display: flex; align-items: center; align-self: start; gap: .8rem; margin: 0 0 1rem; }
.bookworld-preview-track-controls button { color: #10264c; background: #fff; border: 0; border-radius: 50%; width: clamp(2.5rem, 3.4vw, 3.25rem); height: clamp(2.5rem, 3.4vw, 3.25rem); cursor: pointer; }
.bookworld-preview-track-controls button:last-child { margin-inline-start: auto; }
.bookworld-preview-track-controls button:disabled { opacity: .55; cursor: default; }
.bookworld-related { padding: 52px 5vw 56px; background: #f3f8fb; }
.bookworld-related + .bookworld-related { border-top: 1px solid #e1eaf1; }
.bookworld-related h2 { font-family: "DM Sans", Arial, sans-serif; margin: 0 0 1rem; }

.bookworld-footer { background: #112548; color: #d0dced; padding: 3.75rem 0 1.5rem; font-family: "DM Sans", Arial, sans-serif; }
.bookworld-footer-row, .bookworld-footer-legal { width: 91%; max-width: none; margin-inline: auto; }
.bookworld-footer-row { grid-template-columns: minmax(0, 1.66fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.32fr); gap: 2rem; }
.bookworld-footer-row img { width: min(100%, 20rem); }
.bookworld-footer-row h2 { color: #fff; font-weight: 750; font-size: 1.2rem; margin-bottom: .9rem; }
.bookworld-footer-row p { margin-block: 1.25rem 0; max-width: 31ch; }
.bookworld-footer-row nav p { margin: 0 0 .55rem; }
.bookworld-footer-row nav a { color: #c4d0df; text-decoration: none; padding: .15rem 0; }
.bookworld-footer-row nav a:hover { text-decoration: underline; color: #fff; }
.bookworld-footer-legal { border-top: 1px solid #ffffff33; margin-top: 2.5rem; padding-top: .8rem; font-size: .88rem; }
.bookworld-footer-legal p { margin: 0; }
.bookworld-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.5rem; }
.bookworld-footer-legal nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

@media (max-width: 960px) {
	.bookworld-footer { padding-top: 1.4rem; }
	.bookworld-footer-row, .bookworld-footer-legal { width: 86%; }
	.bookworld-footer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.2rem; }
	.bookworld-footer-brand { grid-column: 1 / -1; }
	.bookworld-footer-row img { width: min(100%, 16rem); }
	.bookworld-product-detail > .bookworld-product-layout { padding-inline: 6vw; gap: 5vw; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); }
	.bookworld-about { padding: 48px 8vw; }
	.bookworld-peek { padding: 48px 6vw; }
}
@media (max-width: 600px) {
	.bookworld-product-detail > .bookworld-product-layout { grid-template-columns: minmax(0, 1fr); padding-block: 1rem 2.5rem; }
	.bookworld-product-layout > .bookworld-detail-cover { display: contents; }
	.bookworld-product-layout > .bookworld-detail-info { order: 1; }
	.bookworld-detail-cover .bookworld-specs { order: 2; margin: 0; }
	.bookworld-detail-cover img { max-height: 390px; }
	.bookworld-about, .bookworld-peek, .bookworld-related { padding: 2.2rem 6vw; }
	.bookworld-peek { grid-template-columns: minmax(0, 1fr); }
	.bookworld-peek .bookworld-preview-pages figure { flex-basis: calc((100% - 1rem) / 2); }
	.bookworld-footer-row img { width: min(100%, 14rem); }
}
