/**
 * Sanatana Bodh – WooCommerce bookstore.
 * Books listing (shop / categories) and book page.
 *
 * Measurements follow sanatanabodh.com (Wix) at 1280px:
 * listing grid 3 × 300px, 40px column / 42px row gap, 3:4 images with 16px
 * corners, 240px sticky filter column; book page 76.6% wide, gallery 67% /
 * text 29%, Wix Madefor Display/Text typography.
 *
 * Loaded only on bookstore pages (inc/woocommerce/setup.php).
 */

:root {
	--sbs-brown: #4a2c2a;
	--sbs-muted: #7d6a68;
	--sbs-saffron: #d97706;
	--sbs-saffron-dark: #b45f04;
	--sbs-cream: #fffdf7;
	--sbs-line: rgba(74, 44, 42, .2);
	--sbs-frame: #f2e8d5;
	--sbs-sand: #e5d9c1;
	--sbs-tint: #f2ede1;
	--sbs-red: #fb3e3e;

	--sbs-display: "Wix Madefor Display", "Nirmala UI", "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sbs-text: "Wix Madefor Text", "Nirmala UI", "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;

	--sbs-header: 78px;
	--sbs-sticky-top: calc(var(--sbs-header) + 24px);
	--sbs-ease: cubic-bezier(.22, .61, .36, 1);
}
.admin-bar { --sbs-sticky-top: calc(var(--sbs-header) + 56px); }

.sbs-store .site-main { background: var(--sbs-cream); }

/* ---------- Shared ---------- */
.sbs-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 8px 22px;
	font: 400 14px/1.4 var(--sbs-text);
	text-decoration: none; cursor: pointer;
	border: 1px solid var(--sbs-brown); border-radius: 0;
	transition: background-color .25s var(--sbs-ease), color .25s var(--sbs-ease), border-color .25s var(--sbs-ease);
}
.sbs-btn--outline { background: transparent; color: var(--sbs-brown); }
.sbs-btn--outline:hover { background: var(--sbs-brown); color: var(--sbs-cream); }
.sbs-btn--solid { background: var(--sbs-brown); color: var(--sbs-cream); }
.sbs-btn--solid:hover { background: var(--sbs-saffron); border-color: var(--sbs-saffron); color: #fff; }

.sbs-pm { display: inline-flex; width: 20px; height: 20px; flex: none; }
.sbs-pm svg { width: 20px; height: 20px; }
.sbs-pm__v { transform-origin: 10px 10.5px; transition: transform .3s var(--sbs-ease); }
[aria-expanded="true"] .sbs-pm__v { transform: scaleY(0); }

/* Accordion panels (filters, info boxes). Open unless JavaScript closes them. */
.sbs-filter__panel {
	display: grid; grid-template-rows: 1fr;
	transition: grid-template-rows .35s var(--sbs-ease), visibility .35s;
}
.sbs-filter__inner { min-height: 0; overflow: hidden; margin: 0; padding: 0; border: 0; min-width: 0; }
.sbs-js [data-sbs-acc]:not(.is-open) > .sbs-filter__panel { grid-template-rows: 0fr; visibility: hidden; }

/* ---------- Breadcrumb + title ---------- */
.sbs-shop {
	max-width: 1440px; margin: 0 auto;
	padding: 24px 24px 96px;
	color: var(--sbs-brown);
	font-family: var(--sbs-text);
}
.sbs-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.sbs-breadcrumb li { margin: 4px 0; font: 400 16px/22.4px var(--sbs-text); color: var(--sbs-brown); }
.sbs-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.sbs-breadcrumb a:hover { color: var(--sbs-saffron); }
.sbs-breadcrumb__sep { display: inline-flex; margin: 0 6px !important; }
.sbs-breadcrumb__sep svg { width: 20px; height: 20px; }

.sbs-shop__header { text-align: center; margin-top: 17px; }
.sbs-shop__title { margin: 0; font: 400 28px/1.4 var(--sbs-display); color: var(--sbs-brown); }
.sbs-shop__desc { max-width: 680px; margin: 8px auto 0; font-size: 15px; line-height: 1.6; color: var(--sbs-muted); }
.sbs-shop__desc:empty, .sbs-shop__desc > :empty { display: none; }
.sbs-shop__desc p { margin: 0 0 .6em; }

/* ---------- Layout ---------- */
.sbs-shop__layout {
	display: grid;
	grid-template-columns: 196px minmax(0, 1fr);
	column-gap: 40px;
	align-items: start;
	margin-top: 66px;
}

/* ---------- Sidebar / filters ---------- */
.sbs-filters { position: sticky; top: var(--sbs-sticky-top); font-family: var(--sbs-text); color: var(--sbs-brown); }
.sbs-filters__backdrop,
.sbs-filters__drawer-head,
.sbs-filter--sort { display: none; }
.sbs-js .sbs-filters__actions { display: none; }
.sbs-filters__actions { display: flex; gap: 16px; margin-top: 20px; }

.sbs-cats ul { list-style: none; margin: 0; padding: 0 0 48px; }
.sbs-cats li { font-size: 16px; line-height: 28px; }
.sbs-cats a { color: var(--sbs-brown); text-decoration: none; line-height: 20.8px; transition: color .2s; }
.sbs-cats a:hover { color: var(--sbs-saffron); }
.sbs-cats a.is-active { color: var(--sbs-saffron); text-decoration: underline; text-underline-offset: 3px; }

.sbs-filters__title {
	margin: 0; padding-bottom: 16px;
	font: 400 20px/28px var(--sbs-display); color: var(--sbs-brown);
	border-bottom: 1px solid var(--sbs-line);
}
.sbs-filters__list { list-style: none; margin: 0; padding: 0; }
.sbs-filter { padding: 16px 0; border-bottom: 1px solid var(--sbs-line); }
.sbs-filter__head { margin: 0; font: inherit; }
.sbs-filter__toggle,
.sbs-info__toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; padding: 0; margin: 0;
	background: none; border: 0; cursor: pointer; text-align: left;
	font: 400 16px/22.4px var(--sbs-text); color: var(--sbs-brown);
}
.sbs-filter__toggle:hover .sbs-pm,
.sbs-info__toggle:hover .sbs-pm { color: var(--sbs-saffron); }
.sbs-filter__range-label { display: none; }
.sbs-filter .sbs-filter__inner { padding-top: 11px; }

/* Price range slider */
.sbs-range { padding: 5px 3px 2px 0; }
.sbs-range__track { position: relative; height: 2px; margin: 6px 6px 0; background: var(--sbs-line); }
.sbs-range__fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: var(--sbs-brown); }
.sbs-range__input {
	position: absolute; left: -6px; top: -11px;
	width: calc(100% + 12px); height: 24px; margin: 0;
	background: none; pointer-events: none;
	-webkit-appearance: none; appearance: none;
}
.sbs-range__input:focus { outline: none; }
.sbs-range__input::-webkit-slider-runnable-track { background: none; border: 0; height: 24px; }
.sbs-range__input::-moz-range-track { background: none; border: 0; }
.sbs-range__input::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
	width: 12px; height: 12px; margin-top: 6px; border-radius: 50%;
	background: var(--sbs-brown); border: 0;
	box-shadow: 0 0 0 0 rgba(217, 119, 6, .25);
	transition: transform .2s var(--sbs-ease), box-shadow .2s;
}
.sbs-range__input::-moz-range-thumb {
	pointer-events: auto; cursor: grab;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--sbs-brown); border: 0;
	transition: transform .2s var(--sbs-ease), box-shadow .2s;
}
.sbs-range__input:hover::-webkit-slider-thumb,
.sbs-range__input:focus-visible::-webkit-slider-thumb { transform: scale(1.3); box-shadow: 0 0 0 5px rgba(217, 119, 6, .2); }
.sbs-range__input:hover::-moz-range-thumb,
.sbs-range__input:focus-visible::-moz-range-thumb { transform: scale(1.3); box-shadow: 0 0 0 5px rgba(217, 119, 6, .2); }
.sbs-range__input:active::-webkit-slider-thumb { cursor: grabbing; }
.sbs-range__values { display: flex; justify-content: space-between; margin-top: 15px; font-size: 16px; line-height: 22.4px; }
.sbs-range__values output { font: inherit; }

/* Checkboxes / radios */
.sbs-check,
.sbs-radio {
	position: relative; display: flex; align-items: center; gap: 12px;
	margin: 0 0 8px; font-size: 16px; line-height: 24px; cursor: pointer;
}
.sbs-check:last-child, .sbs-radio:last-of-type { margin-bottom: 0; }
.sbs-check input,
.sbs-radio input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.sbs-check__box,
.sbs-radio__dot {
	flex: none; width: 16px; height: 16px;
	border: 1px solid var(--sbs-brown); background: transparent;
	transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.sbs-radio__dot { border-radius: 50%; }
.sbs-check:hover .sbs-check__box,
.sbs-radio:hover .sbs-radio__dot { border-color: var(--sbs-saffron); }
.sbs-check input:checked + .sbs-check__box {
	background: var(--sbs-brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.6 11l5.9-6' fill='none' stroke='%23fffdf7' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sbs-radio input:checked + .sbs-radio__dot { box-shadow: inset 0 0 0 3px var(--sbs-cream); background: var(--sbs-brown); }
.sbs-check input:focus-visible + .sbs-check__box,
.sbs-radio input:focus-visible + .sbs-radio__dot { outline: 2px solid var(--sbs-saffron); outline-offset: 2px; }

/* ---------- Toolbar: count + sort ---------- */
.sbs-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 48px; padding-bottom: 8px;
}
.sbs-toolbar__count { margin: 0; font-size: 14px; line-height: 19.6px; color: var(--sbs-muted); }
.sbs-toolbar__filter-btn { display: none; }

.sbs-sort { position: relative; }
.sbs-sort__button {
	display: flex; align-items: center; gap: 4px;
	padding: 8px 0; list-style: none; cursor: pointer; user-select: none;
	font: 400 16px/24px var(--sbs-text); color: var(--sbs-brown);
}
.sbs-sort__button::-webkit-details-marker { display: none; }
.sbs-sort__button::marker { content: ""; }
.sbs-sort__label { margin-right: 4px; }
.sbs-sort__button svg { width: 20px; height: 20px; transition: transform .3s var(--sbs-ease); }
.sbs-sort[open] .sbs-sort__button svg { transform: rotate(180deg); }
.sbs-sort__button:hover .sbs-sort__value { color: var(--sbs-saffron); }
.sbs-sort__list {
	position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
	min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
	background: var(--sbs-cream); border: 1px solid var(--sbs-sand);
	box-shadow: 0 12px 28px rgba(74, 44, 42, .12);
	animation: sbs-pop .22s var(--sbs-ease);
}
.sbs-sort__list a {
	display: block; padding: 8px 18px;
	font-size: 16px; line-height: 24px; color: var(--sbs-brown); text-decoration: none;
	transition: background-color .15s, color .15s;
}
.sbs-sort__list a:hover,
.sbs-sort__list a:focus-visible { background: var(--sbs-frame); outline: none; }
.sbs-sort__list [aria-selected="true"] a { color: var(--sbs-saffron); }
@keyframes sbs-pop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Product grid ---------- */
.sbs-shop__main { min-width: 0; transition: opacity .25s; }
.sbs-shop__main.is-loading { opacity: .45; pointer-events: none; }
.sbs-shop__main ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	/* 3 columns of ≥240px; fewer when the space is narrower (same as Wix). */
	grid-template-columns: repeat(auto-fill, minmax(max(240px, calc((100% - 80px) / 3)), 1fr));
	gap: 42px 40px;
}
.sbs-shop__main ul.products::before,
.sbs-shop__main ul.products::after { content: none; }

.sbs-card { position: relative; margin: 0; padding: 0; min-width: 0; }
.sbs-card__link { display: block; color: var(--sbs-brown); text-decoration: none; }
.sbs-card__link:focus-visible { outline: none; }
.sbs-card__link:focus-visible .sbs-card__media { outline: 2px solid var(--sbs-saffron); outline-offset: 3px; }
.sbs-card__media {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 3 / 4; border-radius: 16px;
	background: var(--sbs-tint);
	transform: translateZ(0); /* keeps rounded corners while the image zooms (Safari) */
	transition: box-shadow .5s var(--sbs-ease);
}
.sbs-card__img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 50%;
	transition: transform .8s var(--sbs-ease), opacity .6s ease;
}
.sbs-card__link:hover .sbs-card__media { box-shadow: 0 14px 30px rgba(74, 44, 42, .16); }
.sbs-card__link:hover .sbs-card__img { transform: scale(1.05); }
.sbs-card__body { display: block; padding: 16px 8px 0; }
.sbs-card__ribbons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sbs-ribbon {
	display: inline-block; padding: 2px 12px;
	font: 400 14px/19.6px var(--sbs-text);
	color: var(--sbs-cream); background: var(--sbs-brown);
	border: 1px solid var(--sbs-brown); border-radius: 8px;
}
.sbs-ribbon--sale { background: var(--sbs-saffron); border-color: var(--sbs-saffron); color: #fff; }
.sbs-card__title {
	margin: 0; font: 400 16px/20.8px var(--sbs-text); color: var(--sbs-brown);
	transition: color .25s;
}
.sbs-card__link:hover .sbs-card__title { color: var(--sbs-saffron-dark); }
.sbs-card__price { display: block; margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--sbs-brown); }
.sbs-card__price del,
.sbs-product__price del { color: var(--sbs-muted); opacity: .85; margin-right: 6px; font-weight: 400; }
.sbs-card__price ins,
.sbs-product__price ins { text-decoration: none; }

/* Entrance animation (books fade up as they scroll into view). */
.sbs-js .sbs-card.sbs-reveal { opacity: 0; transform: translateY(26px); }
.sbs-js .sbs-card.sbs-reveal.is-in {
	opacity: 1; transform: none;
	transition: opacity .7s var(--sbs-ease) var(--sbs-delay, 0s), transform .7s var(--sbs-ease) var(--sbs-delay, 0s);
}
.sbs-js .sbs-card__img.is-pending { opacity: 0; }

/* Pagination / load more */
.sbs-pagination { margin-top: 56px; text-align: center; }
.sbs-pagination ul { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sbs-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px; padding: 0 8px;
	font-size: 15px; color: var(--sbs-brown); text-decoration: none;
	border: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.sbs-pagination a.page-numbers:hover { border-color: var(--sbs-brown); }
.sbs-pagination .current { background: var(--sbs-brown); color: var(--sbs-cream); }
.sbs-js .sbs-pagination[data-mode="infinite"],
.sbs-js .sbs-pagination[data-mode="button"] { display: none; }
.sbs-loadmore { margin: 48px 0 0; text-align: center; }
.sbs-loadmore .sbs-btn { min-width: 180px; }
.sbs-spinner { display: flex; justify-content: center; gap: 6px; padding: 40px 0 0; }
.sbs-spinner span { width: 8px; height: 8px; border-radius: 50%; background: var(--sbs-saffron); animation: sbs-dot 1s infinite ease-in-out; }
.sbs-spinner span:nth-child(2) { animation-delay: .15s; }
.sbs-spinner span:nth-child(3) { animation-delay: .3s; }
@keyframes sbs-dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.sbs-empty { padding: 48px 0; text-align: center; font-size: 16px; color: var(--sbs-muted); }
.sbs-empty p { margin: 0 0 20px; }

/* WooCommerce notices (WooCommerce's own CSS is not loaded). */
.sbs-store .woocommerce-info,
.sbs-store .woocommerce-message,
.sbs-store .woocommerce-error,
.sbs-store .woocommerce-notice {
	list-style: none; margin: 0 0 24px; padding: 12px 16px;
	font: 400 15px/1.5 var(--sbs-text);
	background: var(--sbs-tint); border-left: 3px solid var(--sbs-saffron); color: var(--sbs-brown);
}
.sbs-store .woocommerce-error { border-color: #b42318; }

/* ---------- Book page ---------- */
.sbs-product {
	width: min(100% - 48px, 76.6vw);
	max-width: 1180px;
	margin: 63px auto 0;
	font-family: var(--sbs-text);
	color: var(--sbs-brown);
}
.sbs-product__grid {
	display: grid;
	grid-template-columns: minmax(0, 67.1fr) minmax(0, 28.8fr);
	column-gap: 4.1%;
	align-items: start;
}
.sbs-product__media { position: sticky; top: var(--sbs-sticky-top); }

.sbs-gallery__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.sbs-gallery__item { position: relative; margin: 0; aspect-ratio: 1; border: 1px solid var(--sbs-frame); overflow: hidden; background: transparent; }
.sbs-gallery__link { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.sbs-gallery__img,
.sbs-gallery__item img {
	display: block; width: 100%; height: 100%;
	object-fit: contain;
	transition: transform .7s var(--sbs-ease);
}
.sbs-gallery__link:hover .sbs-gallery__img { transform: scale(1.04); }
.sbs-gallery__link:focus-visible { outline: 2px solid var(--sbs-saffron); outline-offset: -2px; }
.sbs-gallery__dots { display: none; }

.sbs-product__title {
	margin: 0 0 24px;
	font: 400 28px/33.6px var(--sbs-text); color: var(--sbs-brown);
	overflow-wrap: anywhere;
}
.sbs-product__price { margin: 0 0 24px; font: 700 16px/24px var(--sbs-text); color: var(--sbs-brown); }
.sbs-product__price .woocommerce-Price-amount { font-weight: 700; }
.sbs-product__price-sep { margin: 0 4px; font-weight: 400; }

/* External purchase buttons */
.sbs-buy { margin: 0 0 28px; }
.sbs-buy__label { margin: 0 0 10px; font: 700 16px/24px var(--sbs-text); color: var(--sbs-red); }
.sbs-buy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sbs-buy__btn {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 10px 16px;
	font: 500 15px/1.3 var(--sbs-text); letter-spacing: .01em; text-align: center;
	color: var(--sbs-brown); background: transparent; text-decoration: none;
	border: 1px solid var(--sbs-brown);
	transition: color .3s var(--sbs-ease), border-color .3s var(--sbs-ease), transform .15s;
	isolation: isolate;
}
.sbs-buy__btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--sbs-brown);
	transform: scaleX(0); transform-origin: left center;
	transition: transform .4s var(--sbs-ease), background-color .3s;
}
.sbs-buy__btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--sbs-ease); }
.sbs-buy__btn:hover { color: var(--sbs-cream); }
.sbs-buy__btn:hover::before { transform: scaleX(1); }
.sbs-buy__btn:hover svg { transform: translate(2px, -2px); }
.sbs-buy__btn:active { transform: translateY(1px); }
.sbs-buy__btn:focus-visible { outline: 2px solid var(--sbs-saffron); outline-offset: 2px; }
.sbs-buy__btn.is-primary { color: var(--sbs-cream); background: var(--sbs-brown); }
.sbs-buy__btn.is-primary::before { background: var(--sbs-saffron); }
.sbs-buy__btn.is-primary:hover { border-color: var(--sbs-saffron); color: #fff; }

.sbs-admin-hint { margin: 0 0 24px; padding: 10px 12px; font-size: 13px; line-height: 1.5; border: 1px dashed var(--sbs-saffron); background: #fff8ec; }

.sbs-product__excerpt { margin: 0 0 24px; font-size: 16px; line-height: 24px; }
.sbs-product__excerpt p { margin: 0 0 12px; }
.sbs-product__info-title { margin: 0; font: 700 16px/24px var(--sbs-text); color: var(--sbs-brown); }
.sbs-product__description { font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.sbs-product__description > :first-child { margin-top: 0; }
.sbs-product__description p { margin: 0 0 24px; }
.sbs-product__description h2,
.sbs-product__description h3,
.sbs-product__description h4 { margin: 24px 0 8px; font: 700 16px/24px var(--sbs-text); }
.sbs-product__description ul,
.sbs-product__description ol { margin: 0 0 24px; padding-left: 20px; }
.sbs-product__description a { color: var(--sbs-brown); text-decoration: underline; }
.sbs-product__description strong,
.sbs-product__description b { font-weight: 700; }
.sbs-product__description img { height: auto; }
.sbs-product__details { margin: 0 0 24px; font-size: 16px; line-height: 24px; }
.sbs-product__details dt { display: inline; font-weight: 700; }
.sbs-product__details dd { display: inline; margin: 0 0 0 4px; overflow-wrap: anywhere; }

.sbs-infos { list-style: none; margin: 0; padding: 0; }
.sbs-info { padding: 16px 0; border-bottom: 1px solid var(--sbs-sand); }
.sbs-info__head { margin: 0; font: inherit; }
.sbs-info__toggle { font: 400 16px/22.4px var(--sbs-display); }
.sbs-info__text { font-size: 15px; line-height: 24px; white-space: pre-line; }
.sbs-info__text p { margin: 0; padding-top: 12px; }

.sbs-share { list-style: none; margin: 32px 0 0; padding: 0; display: flex; gap: 12px; }
.sbs-share a { display: flex; width: 24px; height: 24px; color: #000; transition: color .2s, transform .25s var(--sbs-ease); }
.sbs-share a:hover { color: var(--sbs-saffron); transform: translateY(-2px); }
.sbs-share svg { width: 24px; height: 24px; }

/* Book sections (About the Book, Sample Chapters, Table of Contents) – rich content */
.sbs-info__text--rich { white-space: normal; overflow-wrap: anywhere; }
.sbs-info__text--rich > :first-child { margin-top: 0; padding-top: 12px; }
.sbs-info__text--rich p { margin: 0 0 12px; padding: 0; }
.sbs-info__text--rich > p:first-child { padding-top: 12px; }
.sbs-info__text--rich h2,
.sbs-info__text--rich h3,
.sbs-info__text--rich h4 { margin: 16px 0 6px; font: 700 15px/1.4 var(--sbs-text); color: var(--sbs-brown); }
.sbs-info__text--rich ul,
.sbs-info__text--rich ol { margin: 0 0 12px; padding-left: 20px; }
.sbs-info__text--rich li { margin: 0 0 4px; }
.sbs-info__text--rich ol li::marker { color: var(--sbs-saffron); font-weight: 700; }
.sbs-info__text--rich a { color: var(--sbs-brown); text-decoration: underline; text-underline-offset: 2px; }
.sbs-info__text--rich a:hover { color: var(--sbs-saffron); }
.sbs-info__text--rich img { max-width: 100%; height: auto; display: block; margin: 8px 0 12px; border: 1px solid var(--sbs-frame); }
.sbs-info__text--rich .aligncenter { margin-left: auto; margin-right: auto; }
.sbs-info__text--rich figure { margin: 8px 0 12px; }
.sbs-info__text--rich figcaption,
.sbs-info__text--rich .wp-caption-text { font-size: 13px; color: var(--sbs-muted); margin-top: 4px; }
.sbs-info__text--rich .wp-caption { max-width: 100%; }
.sbs-info__text--rich blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--sbs-saffron); font-style: italic; }
.sbs-info__text--rich table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.sbs-info__text--rich th,
.sbs-info__text--rich td { padding: 6px 8px; border-bottom: 1px solid var(--sbs-sand); text-align: left; vertical-align: top; }
.sbs-info__text--rich hr { border: 0; border-top: 1px solid var(--sbs-sand); margin: 12px 0; }
.sbs-pdfs { list-style: none; margin: 4px 0 12px; padding: 0 !important; display: grid; gap: 8px; }
.sbs-pdf {
	display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center;
	padding: 10px 12px; border: 1px solid var(--sbs-brown); text-decoration: none !important;
	color: var(--sbs-brown) !important; background: transparent;
	transition: background-color .25s, color .25s, border-color .25s;
}
.sbs-pdf svg { grid-row: span 2; width: 28px; height: 28px; color: #b42318; transition: color .25s; }
.sbs-pdf__name { font: 500 14px/1.3 var(--sbs-text); }
.sbs-pdf__meta { font-size: 12px; line-height: 1.3; color: var(--sbs-muted); transition: color .25s; }
.sbs-pdf:hover, .sbs-pdf:focus-visible { background: var(--sbs-brown); color: var(--sbs-cream) !important; }
.sbs-pdf:hover svg, .sbs-pdf:hover .sbs-pdf__meta { color: var(--sbs-cream); }

/* "What Makes Our Books Different" under the book */
.sb-why.sbs-why { margin-top: 64px; }
.sbs-why .sb-title { font-family: "Playfair Display", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(28px, 3.3vw, 42px); }
.sbs-why .sb-why__card { transition: transform .35s var(--sbs-ease), box-shadow .35s var(--sbs-ease); }
.sbs-why .sb-why__card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(74, 44, 42, .12); }

/* Lightbox */
.sbs-lightbox {
	position: fixed; inset: 0; z-index: 2000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 253, 247, .97);
	opacity: 0; transition: opacity .3s var(--sbs-ease);
}
.sbs-lightbox.is-open { opacity: 1; }
.sbs-lightbox__img {
	max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto;
	object-fit: contain; box-shadow: 0 20px 50px rgba(74, 44, 42, .2);
	transform: scale(.96); transition: transform .35s var(--sbs-ease), opacity .25s;
}
.sbs-lightbox.is-open .sbs-lightbox__img { transform: none; }
.sbs-lightbox button {
	position: absolute; display: grid; place-items: center;
	width: 48px; height: 48px; padding: 0;
	background: none; border: 0; color: var(--sbs-brown); cursor: pointer;
	transition: color .2s, transform .2s;
}
.sbs-lightbox button:hover { color: var(--sbs-saffron); }
.sbs-lightbox__close { top: 16px; right: 16px; }
.sbs-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.sbs-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.sbs-lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font: 400 14px var(--sbs-text); color: var(--sbs-muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
	.sbs-shop__layout { grid-template-columns: 180px minmax(0, 1fr); column-gap: 24px; }
	.sbs-shop__main ul.products { gap: 32px 24px; }

	.sbs-product { width: calc(100% - 48px); margin-top: 40px; }
	.sbs-product__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
	.sbs-gallery__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phones: filters become a drawer ---------- */
@media (max-width: 767px) {
	.sbs-shop { padding: 20px 20px 72px; }
	.sbs-shop__layout { display: block; margin-top: 24px; }
	.sbs-shop__main ul.products { padding: 0 19px; gap: 16px 24px; }
	.sbs-sort { display: none; }
	.sbs-toolbar { padding: 0 19px 16px; }
	.sbs-toolbar__filter-btn {
		display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
		background: none; border: 0; cursor: pointer;
		font: 400 16px/22px var(--sbs-text); color: var(--sbs-brown);
	}
	.sbs-toolbar__filter-btn::after {
		content: ""; width: 18px; height: 18px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='16' cy='7' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='10' cy='17' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='16' cy='7' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='10' cy='17' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* Without JavaScript the filters simply sit above the books. */
	.sbs-filters { position: static; margin-bottom: 32px; }
	.sbs-filters__actions { display: flex; }

	.sbs-js .sbs-filters {
		position: fixed; inset: 0; z-index: 1000; margin: 0;
		visibility: hidden; transition: visibility 0s linear .4s;
	}
	.sbs-js .sbs-filters.is-open { visibility: visible; transition: none; }
	.sbs-js .sbs-filters__backdrop {
		display: block; position: absolute; inset: 0;
		background: rgba(29, 20, 19, .45); opacity: 0; transition: opacity .35s var(--sbs-ease);
	}
	.sbs-js .sbs-filters.is-open .sbs-filters__backdrop { opacity: 1; }
	.sbs-js .sbs-filters__panel {
		position: absolute; top: 0; right: 0; bottom: 0;
		width: 100%; max-width: 480px;
		display: flex; flex-direction: column;
		background: var(--sbs-cream);
		transform: translateX(100%); transition: transform .4s var(--sbs-ease);
		outline: none;
	}
	.sbs-js .sbs-filters.is-open .sbs-filters__panel { transform: none; }
	.sbs-js .sbs-filters__drawer-head {
		display: block; position: relative;
		padding: 18px 64px 14px 20px; border-bottom: 1px solid var(--sbs-line);
	}
	.sbs-filters__drawer-title { margin: 0; font: 400 20px/24px var(--sbs-display); color: var(--sbs-brown); }
	.sbs-filters__drawer-count { display: block; margin-top: 4px; font-size: 14px; line-height: 18px; color: var(--sbs-muted); }
	.sbs-filters__close {
		position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
		display: grid; place-items: center; padding: 0;
		background: none; border: 0; color: var(--sbs-brown); cursor: pointer;
	}
	.sbs-js .sbs-filters__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 20px 24px; overscroll-behavior: contain; }
	.sbs-js .sbs-filters__title { display: none; }
	.sbs-js .sbs-filter--sort { display: block; }
	.sbs-filter__range-label { display: inline; margin-left: 2px; }
	.sbs-cats ul { padding: 12px 0 20px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
	.sbs-js .sbs-filters__actions {
		display: flex; justify-content: center; gap: 16px; margin: 0;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--sbs-line); background: var(--sbs-cream);
	}
	.sbs-filters__actions .sbs-btn { min-width: 132px; min-height: 36px; padding: 6px 16px; }
	html.sbs-lock, html.sbs-lock body { overflow: hidden; }

	/* Book page */
	.sbs-product { width: calc(100% - 40px); margin-top: 24px; }
	.sbs-product__grid { display: block; }
	.sbs-product__media { position: static; margin-bottom: 24px; }
	.sbs-gallery__grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%;
		gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	}
	.sbs-gallery__grid::-webkit-scrollbar { display: none; }
	.sbs-gallery__item { scroll-snap-align: center; }
	.sbs-gallery--multi .sbs-gallery__dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
	.sbs-gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--sbs-sand); transition: background-color .2s, transform .2s; }
	.sbs-gallery__dots span.is-active { background: var(--sbs-brown); transform: scale(1.2); }
	.sbs-buy__btn { min-height: 48px; }
	.sb-why.sbs-why { margin-top: 40px; }
	.sbs-lightbox__prev, .sbs-lightbox__next { top: auto; bottom: 8px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sbs-card__img, .sbs-gallery__img, .sbs-buy__btn, .sbs-buy__btn::before,
	.sbs-filter__panel, .sbs-js .sbs-filters__panel, .sbs-lightbox, .sbs-lightbox__img { transition: none !important; }
	.sbs-js .sbs-card.sbs-reveal { opacity: 1; transform: none; }
	.sbs-card__link:hover .sbs-card__img, .sbs-gallery__link:hover .sbs-gallery__img { transform: none; }
	.sbs-sort__list { animation: none; }
}
