/* ==========================================================================
   Salaam Books — design system
   Chronicle-style editorial colour on a Bookory-style bookstore architecture.
   Sections: 1 fonts · 2 tokens · 3 base · 4 components · 5 header · 6 drawers
   7 product cards & rails · 8 homepage · 9 footer · 10 catalogue
   11 product page · 12 cart/checkout/account · 13 pages & journal · 14 responsive
   ========================================================================== */

/* 1. Fonts (self-hosted, latin) ------------------------------------------ */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/dmsans-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/dmsans-italic.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/fraunces-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/fraunces-italic.woff2) format("woff2"); }

/* 2. Tokens -------------------------------------------------------------- */
:root {
	--white: #FFFFFF;
	--ivory: #FAF9F6;
	--teal: #1EA6E0;
	--teal-deep: #0B7FB8;
	--teal-soft: #E3F4FC;
	--ink: #222222;
	--ink-2: #4a4a47;
	--muted: #6b6b66;
	--grey: #F2F2F0;
	--line: #E6E6E3;
	--coral: #F28B83;
	--coral-soft: #FDE7E5;
	--pink: #F7C4D2;
	--pink-soft: #FCEBF0;
	--yellow: #F3D66B;
	--yellow-soft: #FBF1C9;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--r-sm: 8px;
	--r: 14px;
	--r-lg: 24px;
	--pill: 999px;
	--shadow-cover: 0 14px 28px -12px rgba(34, 34, 34, .45), 0 2px 6px rgba(34, 34, 34, .08);
	--shadow-pop: 0 24px 60px -20px rgba(34, 34, 34, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--container: 1360px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 84px;

	/* WooCommerce variables → brand palette */
	--woocommerce: var(--ink);
	--wc-primary: var(--ink);
	--wc-primary-text: var(--white);
	--wc-secondary: var(--grey);
	--wc-secondary-text: var(--ink);
	--wc-highlight: var(--coral);
	--wc-highligh-text: var(--ink);
	--wc-content-bg: var(--white);
	--wc-subtext: var(--muted);
	--wc-form-border-color: var(--line);
	--wc-form-border-radius: var(--r-sm);
	--wc-form-border-width: 1px;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.sb-locked { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s, opacity .2s; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	font-variation-settings: "opsz" 72;
	color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000; top: 8px; left: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .select2-container .select2-selection--single {
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: .72em .9em;
	width: 100%;
	transition: border-color .2s, box-shadow .2s;
	box-shadow: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(30, 166, 224, .25); }
.select2-container .select2-selection--single { height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.6; padding: 0; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
label { font-weight: 500; }

/* Layout */
.sb-container, .col-full { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.col-full::before, .col-full::after { content: none; }
.site-content { min-height: 50vh; }
.home .site-content > .col-full, .sb-pdp--editorial .site-content > .col-full { max-width: none; padding-inline: 0; }
.home .site-content > .col-full > .woocommerce,
.home .site-content > .col-full > .woocommerce-notices-wrapper { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.content-area, .site-main { width: 100%; float: none; margin: 0; }
.site-main { padding-block: clamp(24px, 4vw, 48px) var(--section); }
.sb-center { text-align: center; margin-top: 2rem; }

/* 4. Components ---------------------------------------------------------- */
.sb-btn, .button, button.button, a.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wp-block-button__link, .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	letter-spacing: .01em;
	padding: .9em 1.6em;
	border-radius: var(--pill);
	border: 1.5px solid var(--ink);
	background: var(--ink);
	color: var(--white);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
	-webkit-appearance: none;
}
body.salaam .button:hover, body.salaam a.button:hover, body.salaam button.button:hover, .sb-btn:hover, .wp-block-button__link:hover, .woocommerce #respond input#submit:hover {
	background: var(--teal);
	border-color: var(--teal);
	color: var(--ink);
	transform: translateY(-1px);
}
body.salaam .button.alt, body.salaam a.button.alt, body.salaam button.button.alt, body.salaam .checkout-button, body.salaam #place_order, body.salaam .single_add_to_cart_button {
	background: var(--teal);
	border-color: var(--teal);
	color: var(--ink);
}
body.salaam .button.alt:hover, body.salaam #place_order:hover, body.salaam .checkout-button:hover, body.salaam .single_add_to_cart_button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sb-btn--outline, body.salaam .sb-btn--outline { background: transparent; color: var(--ink); }
.sb-btn--outline:hover { background: var(--ink) !important; color: var(--white) !important; border-color: var(--ink) !important; }
.sb-btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.sb-btn--block { width: 100%; }
.button.loading { opacity: .6; pointer-events: none; }
.button.disabled, .button:disabled, button[disabled] { opacity: .45; cursor: not-allowed; }

.sb-kicker {
	display: inline-block;
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--teal-deep);
	margin: 0 0 .8em;
	text-decoration: none;
}
.sb-kicker--pill { background: var(--white); color: var(--ink); padding: .45em 1em; border-radius: var(--pill); box-shadow: 0 2px 0 var(--ink); border: 1.5px solid var(--ink); }
.sb-lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.sb-page-title { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .25em; }

.sb-badge {
	display: inline-block;
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .38em .75em;
	border-radius: var(--pill);
	background: var(--ink);
	color: var(--white);
	line-height: 1.2;
}
.sb-badge--new { background: var(--teal); color: var(--ink); }
.sb-badge--coral, body.salaam span.onsale.sb-badge { background: var(--coral); color: var(--ink); }
.sb-badge--pink { background: var(--pink); color: var(--ink); }
.sb-badge--yellow { background: var(--yellow); color: var(--ink); }
.sb-badge--muted { background: var(--white); color: var(--muted); border: 1px solid var(--line); }
body.salaam span.onsale.sb-badge { position: static; min-width: 0; min-height: 0; line-height: 1.2; margin: 0; border-radius: var(--pill); padding: .38em .75em; font-size: .72rem; }

.sb-pill {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .55em 1.05em;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--white);
	font-size: .92rem; font-weight: 500;
	text-decoration: none; white-space: nowrap;
	transition: border-color .2s, background .2s, transform .2s;
}
.sb-pill:hover, .sb-pill.is-active { border-color: var(--ink); color: var(--ink); background: var(--pill, var(--yellow-soft)); }
.sb-pill.is-active { background: var(--ink); color: var(--white); }
.sb-pill span:not(.sb-pill__dot) { color: var(--muted); font-size: .85em; }
.sb-pill__dot { width: .7em; height: .7em; border-radius: 50%; background: var(--pill, var(--teal)); border: 1px solid rgba(0,0,0,.15); }

.sb-link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 2px; font-size: .95rem; }
.sb-link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.sb-link-arrow:hover::after { transform: translateX(4px); }
.sb-link-arrow:hover { color: var(--ink); border-color: var(--ink); }

.sb-round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; padding: 0; }
.sb-round:hover { background: var(--ink); color: var(--white); }
.sb-round:disabled { opacity: .3; cursor: default; background: var(--white); color: var(--ink); }

.sb-stars { position: relative; display: inline-block; width: 5.4em; height: 1em; font-size: .9rem; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9Z' fill='%23E6E6E3'/%3E%3C/svg%3E") repeat-x 0 0 / 1.08em 1em; }
.sb-stars__fill { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9Z' fill='%23222'/%3E%3C/svg%3E") repeat-x 0 0 / 1.08em 1em; }
.sb-stars__count { font-size: .8rem; color: var(--muted); margin-left: .35em; vertical-align: middle; }

.sb-avatar { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--yellow); color: var(--ink); font-family: var(--serif); font-weight: 700; flex-shrink: 0; width: 88px; height: 88px; font-size: 2rem; text-decoration: none; }
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-avatar--xs { width: 32px; height: 32px; font-size: .9rem; }
.sb-avatar--sm { width: 52px; height: 52px; font-size: 1.3rem; }
.sb-avatar--xl { width: clamp(140px, 18vw, 220px); height: clamp(140px, 18vw, 220px); font-size: 4rem; }
.sb-avatar--hero { width: 100%; height: 100%; font-size: 8rem; }

.sb-doodle { position: absolute; pointer-events: none; z-index: 0; display: block; line-height: 0; }
.sb-doodle svg { width: 100%; height: auto; }
.sb-hp { position: absolute !important; left: -9999px; }
.sb-icon { flex-shrink: 0; }

/* Section scaffolding */
.sb-section { padding-block: var(--section) 0; position: relative; }
.sb-band { padding-block: var(--section); margin-top: var(--section); }
.sb-band--ivory { background: var(--ivory); }
.sb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.sb-section__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 0; }
.sb-section__sub { margin: .35em 0 0; color: var(--muted); font-size: 1.05rem; }
.sb-section__tools { display: flex; align-items: center; gap: 20px; }
.sb-rail-nav { display: flex; gap: 8px; }

/* 5. Header -------------------------------------------------------------- */
.sb-announce { background: var(--teal); color: var(--ink); font-size: .88rem; font-weight: 600; position: relative; z-index: 60; }
.sb-announce__inner { display: flex; align-items: center; justify-content: center; min-height: 40px; }
.sb-announce__list { list-style: none; margin: 0; padding: 0; display: grid; text-align: center; }
.sb-announce__list li { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); visibility: hidden; padding: 8px 0; }
.sb-announce__list li.is-active { opacity: 1; transform: none; visibility: visible; }
.sb-announce a { text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.sb-announce a:hover { color: var(--ink); text-decoration: underline; }

.sb-header { background: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.admin-bar .sb-header { top: 32px; }
.sb-header.is-stuck { box-shadow: 0 8px 30px -18px rgba(0,0,0,.35); }
.sb-header__main { display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 48px); min-height: var(--header-h); }
.sb-burger { display: none; }
.sb-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sb-brand__slogan { margin: 0; font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--ink-2); max-width: 15em; line-height: 1.25; padding-left: 18px; border-left: 1.5px solid var(--line); }
.sb-logo, .custom-logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sb-logo:hover { color: var(--ink); }
.sb-logo__mark { width: 48px; height: 48px; transition: transform .5s var(--ease); }
.sb-logo:hover .sb-logo__mark { transform: rotate(-8deg) scale(1.05); }
.sb-logo__type { display: flex; flex-direction: column; line-height: 1; }
.sb-logo__name { font-family: var(--serif); font-weight: 700; font-size: 1.95rem; letter-spacing: -.03em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.sb-logo__sub { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 700; margin-top: 4px; color: var(--teal-deep); }
.custom-logo { max-height: 64px; width: auto; }

.sb-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 620px; justify-self: center; }
.sb-search input[type="search"] { border-radius: var(--pill); border: 1.5px solid var(--ink); padding: .8em 3.4em .8em 1.3em; background: var(--white); }
.sb-search input[type="search"]::placeholder { color: #8b8b86; }
.sb-search__btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--teal); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sb-search__btn:hover { background: var(--ink); color: var(--white); }
.sb-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-pop); z-index: 80; padding: 10px; max-height: 70vh; overflow: auto; }
.sb-search__group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px 4px; }
.sb-search__item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; }
.sb-search__item:hover, .sb-search__item.is-active { background: var(--grey); color: var(--ink); }
.sb-search__item img { width: 40px; height: 56px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sb-search__item strong { display: block; font-weight: 600; line-height: 1.25; }
.sb-search__item small { color: var(--muted); }
.sb-search__item--author { grid-template-columns: 1fr auto; }
.sb-search__all { display: block; text-align: center; font-weight: 600; padding: 10px; margin-top: 6px; border-top: 1px solid var(--line); text-decoration: none; }
.sb-search__empty { padding: 14px 10px; color: var(--muted); margin: 0; }

.sb-actions { display: flex; align-items: center; gap: 6px; }
.sb-icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; border-radius: var(--r-sm); }
.sb-icon-btn:hover { color: var(--teal-deep); }
.sb-icon-btn__label { font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.sb-actions__search { display: none; }
.sb-count { position: absolute; top: 0; right: 4px; min-width: 19px; height: 19px; border-radius: var(--pill); background: var(--coral); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; line-height: 1; }
.sb-count.is-empty, .sb-count:empty, .wishlist_products_counter_number:empty, .sb-count.wishlist_products_counter_number[data-count="0"] { display: none; }
.sb-cart-count { background: var(--teal); }
.sb-pop { animation: sb-pop .5s var(--ease); }
@keyframes sb-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.sb-nav { border-top: 1px solid var(--line); position: relative; }
.sb-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(4px, 1.4vw, 22px); }
.sb-menu > li { position: static; display: flex; align-items: center; }
.sb-menu > li > a { display: block; padding: 15px 6px; font-weight: 600; font-size: .97rem; text-decoration: none; position: relative; }
.sb-menu > li > a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 3px; border-radius: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.sb-menu > li:hover > a::after, .sb-menu > li:focus-within > a::after, .sb-menu > li.current-menu-item > a::after, .sb-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.sb-menu > li.is-highlight > a { color: #c2463c; }
.sb-menu .sb-sub-toggle { border: 0; background: none; padding: 4px; margin-left: -4px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.sb-menu li.menu-item-has-children { position: relative; }
.sb-menu li.mega { position: static; }
.sb-menu > li > .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-pop); list-style: none; margin: 0; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 60; }
.sb-menu > li > .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; }
.sb-menu > li > .sub-menu a:hover { background: var(--grey); color: var(--ink); }
.sb-menu > li:hover > .sub-menu, .sb-menu > li:focus-within > .sub-menu, .sb-menu > li.is-open > .sub-menu,
.sb-menu > li:hover > .sb-mega, .sb-menu > li:focus-within > .sb-mega, .sb-menu > li.is-open > .sb-mega { opacity: 1; visibility: visible; transform: none; }
.sb-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 60; }
.sb-mega__inner { display: grid; grid-template-columns: 1fr 260px; gap: 40px; padding-block: 34px 40px; }
.sb-mega__cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.sb-mega__cols > li > a { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 10px; }
.sb-mega__cols > li > a:hover { color: var(--teal-deep); }
.sb-mega__cols .sub-menu { list-style: none; margin: 0; padding: 0; }
.sb-mega__cols .sub-menu a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.sb-mega__cols .sub-menu a:hover { color: var(--ink); text-decoration: underline; }
.sb-mega__promo { background: var(--yellow-soft); border-radius: var(--r); padding: 20px; text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; overflow: hidden; }
.sb-mega__promo img { width: 110px; box-shadow: var(--shadow-cover); border-radius: 2px 4px 4px 2px; margin-bottom: 8px; transform: rotate(-3deg); transition: transform .3s var(--ease); }
.sb-mega__promo:hover img { transform: rotate(0) translateY(-4px); }
.sb-mega__promo strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.sb-mega__promo-author { color: var(--muted); font-size: .9rem; }
.sb-mega__promo .sb-kicker { margin: 0; }
.sb-mega__promo .sb-link-arrow { margin-top: 6px; }

/* 6. Drawers, overlay, toast, tab bar ------------------------------------ */
.sb-overlay { position: fixed; inset: 0; background: rgba(34, 34, 34, .45); z-index: 90; opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.sb-overlay.is-visible { opacity: 1; }
.sb-drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--white); z-index: 100; display: flex; flex-direction: column; transition: transform .35s var(--ease); box-shadow: var(--shadow-pop); }
.sb-drawer[hidden] { display: flex !important; visibility: hidden; }
.sb-drawer--left { left: 0; transform: translateX(-102%); }
.sb-drawer--right { right: 0; transform: translateX(102%); }
.sb-drawer.is-open { transform: none; visibility: visible; }
.sb-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sb-drawer__title { font-size: 1.4rem; margin: 0; }
.sb-drawer__body { flex: 1; overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; }
.sb-drawer .sb-logo__mark { width: 38px; height: 38px; }
.sb-drawer .sb-logo__name { font-size: 1.5rem; }
.sb-search--drawer { margin-bottom: 16px; }
.sb-mobile-menu { list-style: none; margin: 0; padding: 0; }
.sb-mobile-menu li { border-bottom: 1px solid var(--line); position: relative; }
.sb-mobile-menu a { display: block; padding: 14px 44px 14px 4px; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.sb-mobile-menu .sb-sub-toggle { position: absolute; right: 0; top: 6px; width: 40px; height: 40px; border: 0; background: var(--grey); border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: transform .25s; }
.sb-mobile-menu .sb-sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.sb-mobile-menu .sub-menu, .sb-mobile-menu .sb-mega { display: none; list-style: none; padding: 0 0 10px 12px; margin: 0; }
.sb-mobile-menu .is-open > .sub-menu, .sb-mobile-menu .is-open > .sb-mega { display: block; }
.sb-mobile-menu .sb-mega__inner { display: block; padding: 0; }
.sb-mobile-menu .sb-mega__cols { display: block; }
.sb-mobile-menu .sb-mega__cols > li > a { font-family: var(--sans); font-size: 1rem; margin: 0; }
.sb-mobile-menu .sub-menu li { border: 0; }
.sb-mobile-menu .sub-menu a { padding: 9px 4px; font-weight: 500; color: var(--ink-2); font-size: .97rem; }
.sb-mobile-menu .sb-mega__promo { display: none; }
.sb-drawer__extra { display: grid; gap: 4px; margin-top: 18px; }
.sb-drawer__extra a { display: flex; gap: 10px; align-items: center; padding: 10px 4px; text-decoration: none; font-weight: 500; }

.sb-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--pill); font-weight: 600; z-index: 120; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); font-size: .95rem; }
.sb-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.sb-tabbar { display: none; }

/* Mini cart */
.widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; padding: 14px 28px 14px 0; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 600; text-decoration: none; }
.woocommerce-mini-cart-item img { grid-row: span 2; width: 64px !important; height: auto; border-radius: 3px; box-shadow: var(--shadow-cover); float: none !important; margin: 0 !important; }
.woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--muted); font-size: .9rem; }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 14px; width: 24px; height: 24px; display: grid !important; place-items: center; border-radius: 50%; background: var(--grey); color: var(--ink) !important; text-decoration: none; font-size: 1rem; line-height: 1; }
.woocommerce-mini-cart-item .remove:hover { background: var(--coral) !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: 1.1rem; padding: 18px 0 8px; margin: 0; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 8px 0 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .checkout { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.woocommerce-mini-cart__empty-message { text-align: center; padding: 40px 0; color: var(--muted); }
.sb-ship-progress { background: var(--teal-soft); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
.sb-ship-progress.is-hidden { display: none; }
.sb-ship-progress p { margin: 0 0 8px; }
.sb-ship-progress__bar { display: block; height: 6px; border-radius: 6px; background: var(--white); overflow: hidden; }
.sb-ship-progress__bar span { display: block; height: 100%; background: var(--teal-deep); border-radius: 6px; transition: width .6s var(--ease); }

/* 7. Product cards & grids ----------------------------------------------- */
body.salaam ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); list-style: none; margin: 0 0 2em; padding: 0; }
body.salaam ul.products::before, body.salaam ul.products::after { content: none; display: none; }
body.salaam ul.products li.product { width: auto; float: none; margin: 0; padding: 0; text-align: left; display: flex; flex-direction: column; min-width: 0; }
body.salaam ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.salaam ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.salaam ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.salaam ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.sb-card__media { position: relative; background: var(--grey); border-radius: var(--r); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 11% 13%; overflow: hidden; transition: background .35s; }
.sb-card:nth-child(4n+1) .sb-card__media:hover { background: var(--pink-soft); }
.sb-card:nth-child(4n+2) .sb-card__media:hover { background: var(--teal-soft); }
.sb-card:nth-child(4n+3) .sb-card__media:hover { background: var(--yellow-soft); }
.sb-card:nth-child(4n+4) .sb-card__media:hover { background: var(--coral-soft); }
.sb-card__cover { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.salaam ul.products li.product .sb-card__cover img { width: auto; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; margin: 0; box-shadow: var(--shadow-cover); border-radius: 2px 5px 5px 2px; transition: transform .45s var(--ease), box-shadow .45s; }
.sb-card__media:hover .sb-card__cover img { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 24px 34px -14px rgba(34,34,34,.5); }
.sb-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.sb-card__wish { position: absolute; top: 10px; right: 10px; z-index: 3; }
.sb-card__body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.sb-card__author { margin: 0; font-size: .82rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-card__author a { text-decoration: none; }
.sb-card__author a:hover { text-decoration: underline; color: var(--ink); }
body.salaam ul.products li.product .sb-card__title { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; margin: 2px 0 4px; padding: 0; letter-spacing: -.005em; }
.sb-card__title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-card__rating { line-height: 1; margin: 2px 0 4px; }
.sb-card__rating .sb-stars { font-size: .78rem; }
.sb-card__more { display: none; }
.sb-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
body.salaam ul.products li.product .price { color: var(--ink); font-weight: 700; font-size: 1rem; margin: 0; display: flex; gap: .45em; align-items: baseline; flex-wrap: wrap; }
.price del { color: var(--muted); font-weight: 400; font-size: .88em; opacity: 1; }
.price ins { text-decoration: none; color: #c2463c; }
body.salaam ul.products li.product .sb-card__add { margin: 0; padding: .55em 1em; font-size: .82rem; background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
body.salaam ul.products li.product .sb-card__add:hover { background: var(--ink); color: var(--white); }
body.salaam ul.products li.product .sb-card__add.added { background: var(--teal); border-color: var(--teal); }
body.salaam ul.products li.product .sb-card__add.added::after { content: " ✓"; margin-left: 0; font-family: inherit; }
body.salaam ul.products li.product .added_to_cart { display: none; }

/* TI Wishlist heart in cards */
.sb-card__wish .tinv-wraper { margin: 0 !important; }
.sb-card__wish .tinvwl_add_to_wishlist_button { width: 38px; height: 38px; border-radius: 50%; background: var(--white); display: grid !important; place-items: center; margin: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.08); color: var(--ink) !important; font-size: 0 !important; transition: transform .2s, background .2s; }
.sb-card__wish .tinvwl_add_to_wishlist_button::before { font-size: 18px !important; margin: 0 !important; position: static !important; }
.sb-card__wish .tinvwl_add_to_wishlist_button:hover { transform: scale(1.08); background: var(--pink); }
.sb-card__wish .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { background: var(--coral); }
.sb-card__wish .tinvwl-tooltip { display: none !important; }

/* Rails (horizontal scrolling rows) */
.sb-rail-wrap { position: relative; }
body.salaam ul.products.sb-rail, ul.sb-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(168px, 17vw, 232px); grid-template-columns: none; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 0 0 18px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
.sb-rail > li { scroll-snap-align: start; }
.sb-rail::-webkit-scrollbar { height: 6px; }
.sb-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

/* 8. Homepage ------------------------------------------------------------ */
/* Hero */
.sb-hero { background: var(--hero, var(--pink)); position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) 28px; isolation: isolate; }
.sb-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.sb-hero__title { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; margin: .3em 0 .35em; font-variation-settings: "opsz" 144, "SOFT" 50; }
.sb-hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 31em; color: var(--ink); }
.sb-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sb-hero__art { position: relative; min-height: clamp(320px, 38vw, 520px); display: grid; place-items: center; }
.sb-hero__photo { margin: 0; border-radius: 48% 48% var(--r-lg) var(--r-lg); overflow: hidden; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); width: 100%; aspect-ratio: 4 / 4.4; }
.sb-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.sb-fan { position: relative; width: 100%; height: clamp(320px, 36vw, 500px); }
.sb-fan__sun { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); left: 13%; top: 6%; border: 2px solid var(--ink); }
.sb-fan__book { position: absolute; bottom: 6%; left: 50%; width: 36%; transform-origin: 50% 120%; transition: transform .5s var(--ease); }
.sb-fan__book img { width: 100%; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 0 20px 34px -16px rgba(0,0,0,.6); }
.sb-fan__book--0 { transform: translateX(-50%) rotate(-24deg) translateX(-62%); z-index: 1; }
.sb-fan__book--1 { transform: translateX(-50%) rotate(-12deg) translateX(-30%); z-index: 2; }
.sb-fan__book--2 { transform: translateX(-50%) translateY(-6%); z-index: 5; }
.sb-fan__book--3 { transform: translateX(-50%) rotate(12deg) translateX(30%); z-index: 2; }
.sb-fan__book--4 { transform: translateX(-50%) rotate(24deg) translateX(62%); z-index: 1; }
.sb-fan:hover .sb-fan__book--0 { transform: translateX(-50%) rotate(-30deg) translateX(-72%); }
.sb-fan:hover .sb-fan__book--4 { transform: translateX(-50%) rotate(30deg) translateX(72%); }
.sb-fan__book:hover { z-index: 6 !important; }
.sb-sticker { position: absolute; top: 4%; right: 2%; width: 116px; height: 116px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.1; padding: 16px; transform: rotate(12deg); z-index: 7; animation: sb-wobble 6s ease-in-out infinite; }
@keyframes sb-wobble { 50% { transform: rotate(-6deg) scale(1.04); } }
.sb-hero__star { color: var(--yellow); width: 64px; left: 4%; top: 12%; }
.sb-hero__squiggle { color: var(--teal); width: 180px; left: 38%; bottom: 120px; }
.sb-hero__ring { color: var(--ink); width: 90px; right: 46%; top: 8%; opacity: .25; }
.sb-quicklinks { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; overflow-x: auto; margin-top: clamp(32px, 4vw, 56px); padding-bottom: 6px; position: relative; z-index: 1; scrollbar-width: none; }
.sb-quicklinks::-webkit-scrollbar { display: none; }
.sb-quicklinks__label { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-right: 6px; white-space: nowrap; }
.sb-quicklinks .sb-pill { border-color: var(--ink); }

/* Bestseller chart */
.sb-chart { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.sb-chart__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 40px); position: relative; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--teal); }
.sb-chart__cover img { width: 100%; height: auto; box-shadow: var(--shadow-cover); border-radius: 3px 6px 6px 3px; transform: rotate(-3deg); transition: transform .4s var(--ease); }
.sb-chart__cover:hover img { transform: rotate(0) scale(1.02); }
.sb-chart__rank { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--teal-deep); min-width: 1.4em; font-variation-settings: "opsz" 144; }
.sb-chart__rank--big { position: absolute; top: -28px; left: -14px; font-size: 5rem; color: var(--ink); background: var(--yellow); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); z-index: 2; }
.sb-chart__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .1em 0 .2em; }
.sb-chart__title a { text-decoration: none; }
.sb-chart__author { color: var(--muted); margin-bottom: .5em; }
.sb-chart__author a { text-decoration: none; }
.sb-chart__excerpt { margin: .8em 0; color: var(--ink-2); }
.sb-chart__info .price { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; display: block; }
.sb-chart__info .added_to_cart { display: none; }
.sb-chart__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sb-chart__row { display: grid; grid-template-columns: auto 52px 1fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sb-chart__row:first-child { padding-top: 0; }
.sb-chart__thumb img { width: 52px; height: auto; box-shadow: 0 6px 12px -6px rgba(0,0,0,.4); border-radius: 2px 4px 4px 2px; }
.sb-chart__row-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; text-decoration: none; line-height: 1.25; }
.sb-chart__row-author { font-size: .87rem; color: var(--muted); }
.sb-chart__row .price { font-weight: 700; white-space: nowrap; }
.sb-chart__row .price del { display: block; font-size: .8em; }

/* Collection tiles */
.sb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.sb-tiles--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
.sb-tiles--mosaic .sb-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.sb-tiles--mosaic .sb-tile:nth-child(4) { grid-column: span 2; }
.sb-tile { --tile: var(--teal); position: relative; display: flex; flex-direction: column; justify-content: space-between; background: var(--tile); border-radius: var(--r-lg); padding: 24px; text-decoration: none; overflow: hidden; min-height: 220px; color: var(--ink); isolation: isolate; transition: transform .35s var(--ease); }
.sb-tile:hover { transform: translateY(-4px); color: var(--ink); }
.sb-tile[style*="#222222"], .sb-tile[style*="#0B7FB8"], .sb-tile[style*="#5B4B8A"], .sb-tile[style*="#2E7D5B"] { color: var(--white); }
.sb-tile[style*="#222222"]:hover, .sb-tile[style*="#0B7FB8"]:hover, .sb-tile[style*="#5B4B8A"]:hover, .sb-tile[style*="#2E7D5B"]:hover { color: var(--white); }
.sb-tile__text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; max-width: 70%; }
.sb-tile__name { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.sb-tiles--mosaic .sb-tile:nth-child(1) .sb-tile__name { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.sb-tile__tagline { font-size: .95rem; opacity: .85; }
.sb-tile__count { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.sb-tile__art { position: absolute; right: -6px; bottom: -14px; display: flex; align-items: flex-end; z-index: 1; height: 70%; }
.sb-tile__art img { height: 100%; width: auto; max-width: none; box-shadow: var(--shadow-cover); border-radius: 2px 5px 5px 2px; margin-left: -34%; transition: transform .4s var(--ease); }
.sb-tile__art img:nth-child(1) { transform: rotate(-8deg) translateY(8%); }
.sb-tile__art img:nth-child(2) { transform: rotate(2deg); z-index: 1; position: relative; }
.sb-tile__art img:nth-child(3) { transform: rotate(10deg) translateY(10%); }
.sb-tile:hover .sb-tile__art img:nth-child(1) { transform: rotate(-12deg) translateY(4%); }
.sb-tile:hover .sb-tile__art img:nth-child(3) { transform: rotate(14deg) translateY(4%); }
.sb-tile__art .sb-tile__photo { height: 100%; width: auto; }
.sb-tiles--mosaic .sb-tile:nth-child(1) .sb-tile__art { height: 62%; right: 6%; }

/* Editor's picks */
.sb-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sb-pick { display: grid; grid-template-columns: 42% 1fr; gap: 20px; padding: 24px; border-radius: var(--r-lg); align-items: center; position: relative; }
.sb-pick--pink { background: var(--pink-soft); }
.sb-pick--yellow { background: var(--yellow-soft); }
.sb-pick--teal { background: var(--teal-soft); }
.sb-pick__cover img { width: 100%; height: auto; box-shadow: var(--shadow-cover); border-radius: 2px 5px 5px 2px; transition: transform .4s var(--ease); }
.sb-pick:hover .sb-pick__cover img { transform: translateY(-6px) rotate(-2deg); }
.sb-pick__note { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.4; position: relative; padding: 0; border: 0; }
.sb-pick__title { font-size: 1.2rem; margin: 0 0 2px; }
.sb-pick__title a { text-decoration: none; }
.sb-pick__author { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.sb-pick__author a { text-decoration: none; }
.sb-pick .price { font-weight: 700; margin: 0; }

/* Book of the month */
.sb-botm { background: var(--yellow); margin-top: var(--section); padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.sb-botm__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
.sb-botm__art { position: relative; display: grid; place-items: center; }
.sb-botm__art::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.sb-botm__cover { position: relative; width: min(62%, 340px); transform: rotate(-4deg); transition: transform .5s var(--ease); }
.sb-botm__cover:hover { transform: rotate(0) scale(1.03); }
.sb-botm__cover img { width: 100%; height: auto; box-shadow: 0 30px 50px -20px rgba(0,0,0,.55); border-radius: 3px 8px 8px 3px; }
.sb-botm__badge { position: absolute; z-index: 2; top: 0; left: 4%; width: 120px; height: 120px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); display: grid; place-content: center; text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 12px; transform: rotate(-12deg); line-height: 1.2; }
.sb-botm__badge span { display: block; font-family: var(--serif); font-size: 1.5rem; text-transform: none; letter-spacing: -.01em; }
.sb-botm .sb-kicker { color: var(--ink); }
.sb-botm__title { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 .2em; }
.sb-botm__title a { text-decoration: none; }
.sb-botm__author { font-size: 1.15rem; margin-bottom: 1.2em; }
.sb-botm__author a { font-weight: 600; }
.sb-botm__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; margin: 0 0 1em; padding: 0 0 0 20px; border-left: 4px solid var(--ink); }
.sb-botm__desc { max-width: 36em; }
.sb-botm__buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.sb-botm__buy .price { font-size: 1.6rem; font-weight: 700; }
.sb-botm__buy .added_to_cart { display: none; }
.sb-botm__more a { font-weight: 600; text-decoration: none; }
.sb-botm__arc { color: var(--white); width: 260px; right: -40px; bottom: -10px; opacity: .7; }
.sb-botm__star { color: var(--white); width: 56px; right: 10%; top: 12%; }

/* Kids & teens */
.sb-kids { margin-top: var(--section); color: var(--teal-soft); position: relative; }
.sb-wave { display: block; width: 100%; height: 40px; }
.sb-kids__inner { background: var(--teal-soft); color: var(--ink); padding-block: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.sb-kids .sb-section__title { font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.sb-kids__star1 { color: var(--yellow); width: 48px; left: 3%; top: 16%; }
.sb-kids__star2 { color: var(--coral); width: 30px; right: 30%; top: 10%; }
.sb-kids__dots { color: var(--teal); width: 80px; right: 3%; bottom: 10%; opacity: .5; }
.sb-ages { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 1; }
.sb-age { padding: .6em 1.2em; border-radius: var(--pill); background: var(--white); border: 1.5px solid var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.sb-age:nth-child(1) { background: var(--pink); }
.sb-age:nth-child(2) { background: var(--yellow); }
.sb-age:nth-child(3) { background: var(--coral); }
.sb-age:nth-child(4) { background: var(--teal); }
.sb-age:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); color: var(--ink); }
.sb-kids .sb-card__media { background: var(--white); }

/* Author spotlight */
.sb-spotlight__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sb-spotlight__portrait { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.sb-spotlight__portrait .sb-avatar { position: relative; z-index: 1; border: 2px solid var(--ink); background: var(--pink); }
.sb-spotlight__blob { position: absolute; inset: 8% -8% -8% 8%; border-radius: 50%; background: var(--teal); z-index: 0; }
.sb-spotlight__ring { color: var(--coral); width: 110px; top: -16px; left: -16px; z-index: 2; }
.sb-spotlight__name { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 .15em; }
.sb-spotlight__tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.sb-spotlight__bio { color: var(--ink-2); max-width: 38em; margin-bottom: 1.4em; }
.sb-spotlight__books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.sb-spotlight__book { text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.25; display: flex; flex-direction: column; gap: 10px; }
.sb-spotlight__book img { width: 100%; height: auto; box-shadow: var(--shadow-cover); border-radius: 2px 4px 4px 2px; transition: transform .3s var(--ease); }
.sb-spotlight__book:hover img { transform: translateY(-5px); }

/* Special offers */
.sb-offer { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; background: var(--coral); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 48px); border: 1.5px solid var(--ink); }
.sb-offer .sb-kicker { color: var(--ink); }
.sb-offer__title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .3em; }
.sb-offer__text p { font-size: 1.1rem; margin: 0; max-width: 32em; }
.sb-offer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; position: relative; z-index: 1; }
.sb-offer__squiggle { color: var(--white); width: 200px; right: 40%; top: 18px; opacity: .55; }
.sb-coupon { display: grid; text-align: center; background: var(--white); border: 2px dashed var(--ink); border-radius: var(--r); padding: 12px 22px; cursor: pointer; font: inherit; color: var(--ink); transition: transform .2s; }
.sb-coupon:hover { transform: rotate(-2deg); }
.sb-coupon strong { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .04em; }
.sb-coupon__label, .sb-coupon__hint { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sb-countdown { display: flex; gap: 8px; }
.sb-countdown span { display: grid; text-align: center; background: var(--ink); color: var(--white); border-radius: var(--r-sm); padding: 8px 10px; min-width: 62px; }
.sb-countdown b { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sb-countdown small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* Gifts */
.sb-gifts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.sb-gifts__feature { position: relative; overflow: hidden; background: var(--pink); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; min-height: 420px; border: 1.5px solid var(--ink); }
.sb-gifts__feature:hover { color: var(--ink); }
.sb-gifts__feature .sb-kicker { color: var(--ink); margin: 0; }
.sb-gifts__icon { position: absolute; top: 28px; left: 28px; width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; border: 1.5px solid var(--ink); transform: rotate(-8deg); }
.sb-gifts__title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.sb-gifts__sub { font-size: 1.05rem; margin-bottom: 10px; }
.sb-gifts__star { color: var(--white); width: 90px; right: 28px; top: 28px; }
body.salaam .sb-gifts__grid ul.products { grid-template-columns: repeat(2, 1fr); margin: 0; }
.sb-gifts__grid .sb-card__media { aspect-ratio: 5 / 4; }

/* Journal cards */
.sb-journal { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 3vw, 44px); }
.sb-journal__side { display: grid; gap: 22px; align-content: start; }
.sb-post-card { display: flex; flex-direction: column; gap: 14px; }
.sb-post-card__media { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--grey); }
.sb-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sb-post-card:hover .sb-post-card__media img { transform: scale(1.04); }
.sb-post-card__ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.sb-post-card .sb-kicker { margin-bottom: .3em; }
.sb-post-card__title { font-size: 1.35rem; line-height: 1.2; margin: 0 0 .35em; }
.sb-post-card__title a { text-decoration: none; background-image: linear-gradient(var(--teal), var(--teal)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease); }
.sb-post-card:hover .sb-post-card__title a { background-size: 100% 3px; color: var(--ink); }
.sb-post-card__excerpt { color: var(--ink-2); margin: 0 0 .5em; }
.sb-post-card__meta { font-size: .82rem; color: var(--muted); margin: 0; }
.sb-post-card--lead .sb-post-card__media, .sb-post-card--feature .sb-post-card__media { aspect-ratio: 16 / 11; }
.sb-post-card--lead .sb-post-card__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.sb-post-card--row { display: grid; grid-template-columns: 40% 1fr; gap: 18px; align-items: center; }
.sb-post-card--row .sb-post-card__media { aspect-ratio: 4 / 3; }
.sb-post-card--row .sb-post-card__title { font-size: 1.15rem; }
.sb-post-card--row .sb-post-card__excerpt { display: none; }

/* Testimonials */
.sb-testimonials { background: var(--pink-soft); padding-block: var(--section); margin-top: var(--section); overflow: hidden; }
.sb-testimonials__squiggle { color: var(--coral); width: 160px; right: 6%; top: 40px; }
ul.sb-quotes { grid-auto-columns: clamp(280px, 30vw, 420px); }
.sb-quote { background: var(--white); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--coral); margin: 0 6px 6px 0; }
.sb-quote > .sb-icon { color: var(--teal); }
.sb-quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; flex: 1; border: 0; padding: 0; }
.sb-quote__who { display: flex; align-items: center; gap: 12px; margin: 0; }
.sb-quote__who strong { display: block; }
.sb-quote__who small { color: var(--muted); }

/* Newsletter */
.sb-newsletter { background: var(--teal); padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.sb-newsletter__inner { max-width: 760px; position: relative; z-index: 1; }
.sb-newsletter__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); display: grid; place-items: center; margin: 0 auto 18px; transform: rotate(-8deg); }
.sb-newsletter__title { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; }
.sb-newsletter__text { font-size: 1.1rem; max-width: 34em; margin: 0 auto 26px; }
.sb-newsletter-form { display: flex; gap: 8px; max-width: 540px; margin: 0 auto; background: var(--white); border-radius: var(--pill); padding: 6px; border: 1.5px solid var(--ink); }
.sb-newsletter-form input[type="email"] { border: 0; background: transparent; padding: .7em 1.1em; border-radius: var(--pill); box-shadow: none; }
.sb-newsletter-form .sb-btn { white-space: nowrap; }
.sb-newsletter-msg { margin-top: 14px; font-weight: 600; }
.sb-newsletter__star { color: var(--yellow); width: 70px; left: 8%; top: 22%; }
.sb-newsletter__dots { color: var(--white); width: 90px; right: 7%; bottom: 18%; opacity: .6; }
.sb-newsletter__arc { color: var(--teal-deep); width: 280px; left: -60px; bottom: -40px; }

/* 9. Footer -------------------------------------------------------------- */
.sb-footer { background: var(--ivory); border-top: 1px solid var(--line); font-size: .95rem; }
.sb-perks { border-bottom: 1px solid var(--line); background: var(--white); }
.sb-perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.sb-perk { display: flex; gap: 14px; align-items: center; }
.sb-perk .sb-icon { color: var(--teal-deep); width: 34px; height: 34px; padding: 6px; background: var(--teal-soft); border-radius: 50%; box-sizing: content-box; }
.sb-perk strong { display: block; font-size: .95rem; }
.sb-perk span { font-size: .85rem; color: var(--muted); }
.sb-footer__main { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr; gap: clamp(24px, 3vw, 48px); padding-block: clamp(40px, 5vw, 72px); }
.sb-footer__brand p { color: var(--ink-2); margin: 16px 0; max-width: 26em; }
.sb-footer__title { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.sb-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sb-footer__menu a { text-decoration: none; color: var(--ink-2); }
.sb-footer__menu a:hover { color: var(--ink); text-decoration: underline; }
.sb-footer__visit p { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); margin-bottom: 12px; }
.sb-footer__visit .sb-icon { margin-top: 3px; color: var(--teal-deep); }
.sb-footer__visit a { text-decoration: none; }
.sb-social { display: flex; gap: 8px; }
.sb-social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.sb-social a:hover { background: var(--ink); color: var(--white); }
.sb-footer__bottom { border-top: 1px solid var(--line); }
.sb-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.sb-footer__bottom p { margin: 0; color: var(--muted); font-size: .88rem; }
.sb-payments { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.sb-pay { height: 30px; min-width: 50px; padding: 0 10px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.sb-pay--mpesa { color: #2a9d3c; }
.sb-pay--visa { color: #1a1f71; font-style: italic; font-size: .85rem; }
.sb-pay--paypal { color: #003087; font-style: italic; }
.sb-pay--mc { display: flex; padding: 0 12px; }
.sb-pay--mc span { width: 16px; height: 16px; border-radius: 50%; background: #eb001b; }
.sb-pay--mc span + span { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }

/* 10. Catalogue ---------------------------------------------------------- */
.woocommerce-breadcrumb, body.salaam .woocommerce-breadcrumb { font-size: .85rem; color: var(--muted); padding-block: 18px 0; margin: 0 auto; }
.woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.sb-crumb-sep { margin: 0 .55em; opacity: .5; }
.sb-catalog .site-main, .sb-catalog.content-area .site-main { padding-top: 20px; }

.sb-shop-head { padding-bottom: 12px; }
.sb-subcats { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 18px 0 8px; padding: 0; }
.sb-cat-hero { --hero: var(--teal); position: relative; overflow: hidden; background: var(--hero); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; min-height: 260px; isolation: isolate; }
.sb-cat-hero[style*="#222222"], .sb-cat-hero[style*="#0B7FB8"], .sb-cat-hero[style*="#5B4B8A"], .sb-cat-hero[style*="#2E7D5B"] { color: var(--white); }
.sb-cat-hero[style*="#222222"] h1, .sb-cat-hero[style*="#0B7FB8"] h1, .sb-cat-hero[style*="#5B4B8A"] h1, .sb-cat-hero[style*="#2E7D5B"] h1, .sb-cat-hero[style*="#222222"] .sb-kicker, .sb-cat-hero[style*="#0B7FB8"] .sb-kicker { color: var(--white); }
.sb-cat-hero .sb-kicker { color: var(--ink); }
.sb-cat-hero__tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: 0; }
.sb-cat-hero__desc { margin-top: 12px; max-width: 40em; }
.sb-cat-hero__covers { display: flex; justify-content: center; align-items: flex-end; height: 220px; }
.sb-cat-hero__covers img { height: 100%; width: auto; box-shadow: var(--shadow-cover); border-radius: 2px 5px 5px 2px; margin-left: -12%; }
.sb-cat-hero__covers img:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.sb-cat-hero__covers img:nth-child(2) { transform: translateY(-12px); position: relative; z-index: 1; }
.sb-cat-hero__covers img:nth-child(3) { transform: rotate(9deg) translateY(10px); }
.sb-cat-hero__squiggle { color: var(--white); width: 150px; left: 45%; top: 26px; opacity: .6; }
.sb-cat-hero__dots { color: var(--white); width: 70px; right: 3%; top: 12%; opacity: .5; }

.sb-author-hero { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--ivory); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.sb-author-hero__photo { border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--teal); }
.sb-author-hero__tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-2); }
.sb-author-hero__bio { max-width: 44em; color: var(--ink-2); }
.sb-author-hero__meta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; font-weight: 600; }
.sb-author-hero__star { color: var(--yellow); width: 64px; right: 5%; top: 12%; }
.sb-catalog__subhead { margin: clamp(32px, 4vw, 56px) 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.sb-shop { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: 28px; align-items: start; }
.sb-shop--grid4 .sb-shop, .sb-shop--grid5 .sb-shop, .sb-shop--list .sb-shop { grid-template-columns: minmax(0, 1fr); }
.sb-shop--grid4 .sb-shop__filters, .sb-shop--grid5 .sb-shop__filters, .sb-shop--list .sb-shop__filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); z-index: 100; background: var(--white); overflow-y: auto; padding: 0 20px 20px; transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: var(--shadow-pop); }
.sb-shop__filters.is-open { transform: none !important; }
.sb-shop--sidebar .sb-shop__filters { position: sticky; top: calc(var(--header-h) + 72px); max-height: calc(100vh - var(--header-h) - 90px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.sb-shop--sidebar .sb-toolbar__filter { display: none; }
.sb-shop--sidebar .sb-shop__results ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-shop--grid4 .sb-shop__results ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-shop--grid5 .sb-shop__results ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* List view */
.sb-shop--list .sb-shop__results ul.products { grid-template-columns: minmax(0, 1fr); gap: 0; }
.sb-shop--list ul.products li.product.sb-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.sb-shop--list .sb-card__body { padding-top: 0; justify-content: center; }
.sb-shop--list ul.products li.product .sb-card__title { font-size: 1.45rem; }
.sb-shop--list .sb-card__more { display: block; margin: 6px 0; }
.sb-shop--list .sb-card__excerpt { color: var(--ink-2); margin: 0 0 6px; max-width: 46em; }
.sb-shop--list .sb-card__facts { font-size: .85rem; color: var(--muted); margin: 0; }
.sb-shop--list .sb-card__foot { justify-content: flex-start; gap: 20px; margin-top: 10px; }
.sb-shop--list .sb-card__foot .price { font-size: 1.2rem !important; }

.sb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sb-toolbar__left, .sb-toolbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.salaam .woocommerce-result-count { margin: 0; color: var(--muted); font-size: .92rem; float: none; }
body.salaam .woocommerce-ordering { margin: 0; float: none; }
.woocommerce-ordering select { width: auto; border-radius: var(--pill); padding: .55em 2.4em .55em 1.1em; font-size: .92rem; font-weight: 600; border: 1.5px solid var(--ink); appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9em center / 14px; cursor: pointer; }
.sb-toolbar__filter { padding: .55em 1.1em; font-size: .92rem; }
.sb-view { display: flex; border: 1.5px solid var(--line); border-radius: var(--pill); padding: 3px; }
.sb-view__btn { width: 38px; height: 34px; display: grid; place-items: center; border-radius: var(--pill); color: var(--muted); }
.sb-view__btn.is-active { background: var(--ink); color: var(--white); }
.sb-view__btn:hover:not(.is-active) { color: var(--ink); background: var(--grey); }
.sb-results-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

.sb-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 12px; border-bottom: 1.5px solid var(--ink); position: sticky; top: 0; background: var(--white); z-index: 2; padding-top: 4px; }
.sb-filters__title { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.sb-filters__clear { font-size: .85rem; font-weight: 600; color: #c2463c; }
.sb-filters__close { display: none; border: 0; background: var(--grey); width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sb-shop--grid4 .sb-filters__close, .sb-shop--grid5 .sb-filters__close, .sb-shop--list .sb-filters__close { display: block; }
.sb-shop--grid4 .sb-filters__head, .sb-shop--grid5 .sb-filters__head, .sb-shop--list .sb-filters__head { padding-top: 18px; }
.sb-filter { border-bottom: 1px solid var(--line); }
.sb-filter__label { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 0; font-weight: 700; cursor: pointer; font-size: .95rem; }
.sb-filter__label::-webkit-details-marker { display: none; }
.sb-filter__label::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s; margin-left: auto; }
.sb-filter[open] > .sb-filter__label::after { transform: rotate(-135deg) translateY(-2px); }
.sb-filter__label small { font-weight: 400; color: var(--muted); }
.sb-filter__count { background: var(--teal); border-radius: var(--pill); font-size: .72rem; padding: 1px 8px; }
.sb-filter__body { padding-bottom: 16px; }
.sb-filter__search { padding: .5em .8em !important; font-size: .9rem !important; margin-bottom: 8px; }
.sb-filter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sb-filter__list.is-scroll { max-height: 236px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.sb-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-weight: 400; font-size: .93rem; position: relative; }
.sb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-check__box { width: 20px; height: 20px; border: 1.5px solid #b9b9b4; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; transition: background .15s, border-color .15s; background: var(--white); }
.sb-check--radio .sb-check__box { border-radius: 50%; }
.sb-check input:checked + .sb-check__box { background: var(--ink); border-color: var(--ink); }
.sb-check input:checked + .sb-check__box::after { content: ""; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sb-check--radio input:checked + .sb-check__box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--white); transform: none; }
.sb-check input:focus-visible + .sb-check__box { outline: 3px solid var(--teal); outline-offset: 2px; }
.sb-check:hover .sb-check__box { border-color: var(--ink); }
.sb-check__name { flex: 1; }
.sb-check__num { font-size: .78rem; color: var(--muted); }
.sb-price { display: flex; align-items: center; gap: 8px; }
.sb-price input { padding: .55em .7em !important; font-size: .9rem !important; }
.sb-price__go { border: 1.5px solid var(--ink); background: var(--white); border-radius: var(--r-sm); padding: .5em .8em; font-weight: 700; cursor: pointer; }
.sb-price__go:hover { background: var(--ink); color: var(--white); }
.sb-filters__actions { padding: 18px 0 0; }
.js .sb-shop--sidebar .sb-filters__actions { display: none; }
.sb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; padding: 0; }
.sb-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: var(--pill); padding: .3em .85em; font-size: .85rem; font-weight: 600; text-decoration: none; }
.sb-chip:hover { background: var(--yellow); color: var(--ink); }

body.salaam .woocommerce-pagination, body.salaam nav.navigation.pagination { margin-top: 32px; text-align: center; }
body.salaam .woocommerce-pagination ul.page-numbers, body.salaam .nav-links { border: 0; display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
body.salaam .woocommerce-pagination ul.page-numbers li { border: 0; }
body.salaam .page-numbers a, body.salaam .page-numbers span, body.salaam .nav-links .page-numbers { min-width: 44px; height: 44px; display: inline-grid !important; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); padding: 0 6px; font-weight: 600; text-decoration: none; background: var(--white); color: var(--ink); }
body.salaam .page-numbers .current, body.salaam .nav-links .page-numbers.current { background: var(--ink) !important; color: var(--white) !important; border-color: var(--ink); }
body.salaam .page-numbers a:hover { border-color: var(--ink); background: var(--grey); }
.sb-empty { text-align: center; padding: 60px 20px; position: relative; }
.sb-empty__doodle { color: var(--teal); width: 80px; position: relative; margin: 0 auto 16px; }

/* Directories */
.sb-directory__bar { position: sticky; top: calc(var(--header-h) + 52px); background: var(--white); z-index: 5; padding: 12px 0; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.sb-directory__search { max-width: 420px; border-radius: var(--pill) !important; }
.sb-az { display: flex; flex-wrap: wrap; gap: 4px; }
.sb-az a, .sb-az span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: .9rem; text-decoration: none; }
.sb-az a { background: var(--grey); }
.sb-az a:hover { background: var(--teal); color: var(--ink); }
.sb-az span { color: #c6c6c1; }
.sb-directory__group { padding-top: 28px; scroll-margin-top: calc(var(--header-h) + 160px); }
.sb-directory__letter { font-size: 2.6rem; color: var(--teal-deep); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sb-directory__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sb-person { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); text-decoration: none; transition: background .2s; }
.sb-person:hover { background: var(--ivory); color: var(--ink); }
.sb-person__text strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.sb-person__text small { color: var(--muted); }
.sb-publishers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sb-publisher { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .2s, transform .2s; }
.sb-publisher:hover { border-color: var(--ink); transform: translateY(-3px); color: var(--ink); }
.sb-publisher img { max-height: 64px; width: auto; }
.sb-publisher__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; }
.sb-publisher strong { font-family: var(--serif); font-size: 1.15rem; }
.sb-publisher small { color: var(--muted); }

/* 11. Product page ------------------------------------------------------- */
body.salaam div.product { position: relative; }
.sb-pdp__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: 18px; }
body.salaam div.product div.images, body.salaam div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.sb-pdp__gallery { position: relative; }
.sb-pdp__gallery > .onsale { position: absolute !important; top: 16px; left: 16px; z-index: 10; }
body.salaam div.product div.images .woocommerce-product-gallery__wrapper { background: var(--grey); border-radius: var(--r-lg); }
body.salaam div.product div.images .woocommerce-product-gallery__image { text-align: center; }
body.salaam div.product div.images .woocommerce-product-gallery__image > a { display: block; padding: clamp(24px, 6%, 64px); }
body.salaam div.product div.images .woocommerce-product-gallery__image img { width: auto !important; max-height: 640px; margin: 0 auto; box-shadow: var(--shadow-cover); border-radius: 3px 8px 8px 3px; }
body.salaam div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; }
body.salaam div.product div.images .flex-control-thumbs li { width: 72px !important; float: none !important; margin: 0 !important; background: var(--grey); border-radius: var(--r-sm); padding: 8px; }
body.salaam div.product div.images .flex-control-thumbs li img { opacity: .55; border-radius: 2px; }
body.salaam div.product div.images .flex-control-thumbs li img.flex-active, body.salaam div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { top: 16px !important; right: 16px !important; background: var(--white) !important; border-radius: 50% !important; width: 40px !important; height: 40px !important; }
.sb-pdp__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sb-pdp__kicker > a { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); text-decoration: none; }
body.salaam div.product .product_title { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .2em; }
.sb-pdp__subtitle { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-2); margin: 0 0 .4em; }
.sb-pdp__author { font-size: 1.12rem; margin-bottom: .8em; }
.sb-pdp__author a { font-weight: 600; }
body.salaam div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
body.salaam .star-rating { color: var(--ink); font-size: .95em; }
body.salaam .star-rating::before { color: var(--line); opacity: 1; }
body.salaam div.product p.price, body.salaam div.product span.price { color: var(--ink); font-size: 1.9rem; font-weight: 700; margin: 8px 0 14px; font-family: var(--sans); }
body.salaam div.product p.price del { font-size: .6em; }
.woocommerce-product-details__short-description { font-size: 1.06rem; color: var(--ink-2); }
.sb-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; }
.sb-facts li { background: var(--grey); border-radius: var(--pill); padding: .35em .9em; font-size: .87rem; font-weight: 600; }
.sb-facts a { text-decoration: none; }
.sb-staff-note { margin: 18px 0; background: var(--yellow-soft); border-radius: var(--r); padding: 16px 18px 16px 52px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; position: relative; border: 0; }
.sb-staff-note::before { content: "“"; position: absolute; left: 16px; top: 2px; font-size: 3rem; line-height: 1; color: var(--coral); font-style: normal; }
body.salaam div.product .stock { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; }
body.salaam div.product .stock.in-stock { color: #1f7a3a; }
body.salaam div.product .stock.in-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2bb24c; box-shadow: 0 0 0 4px rgba(43, 178, 76, .15); }
body.salaam div.product .stock.out-of-stock { color: #c2463c; }
body.salaam div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 18px 0 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.salaam div.product form.cart::before, body.salaam div.product form.cart::after { content: none; }
body.salaam div.product form.cart .quantity { margin: 0 !important; float: none !important; display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--pill); overflow: hidden; }
body.salaam .quantity .qty { width: 54px; border: 0; text-align: center; font-weight: 700; padding: .7em 0; -moz-appearance: textfield; background: transparent; }
body.salaam .quantity .qty::-webkit-outer-spin-button, body.salaam .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sb-qty-btn { width: 40px; height: 100%; min-height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.sb-qty-btn:hover { background: var(--grey); }
body.salaam div.product form.cart .single_add_to_cart_button { flex: 1 1 180px; float: none; padding-block: 1em; font-size: 1rem; }
body.salaam .sb-buy-now { flex: 1 1 140px; background: var(--ink); color: var(--white); padding-block: 1em; font-size: 1rem; }
body.salaam div.product form.cart .tinv-wraper, body.salaam div.product .tinv-wishlist { flex-basis: 100%; margin: 4px 0 0 !important; }
body.salaam div.product .tinvwl_add_to_wishlist_button { font-weight: 600; text-decoration: none; display: inline-flex !important; align-items: center; gap: 6px; color: var(--ink) !important; }
body.salaam div.product .tinvwl_add_to_wishlist_button::before { color: var(--coral); }
body.salaam div.product .product_meta { font-size: .88rem; color: var(--muted); display: grid; gap: 4px; margin-top: 16px; }
body.salaam div.product .product_meta a { color: var(--ink-2); }
.sb-service { list-style: none; padding: 16px 18px; margin: 18px 0 0; display: grid; gap: 10px; background: var(--ivory); border-radius: var(--r); font-size: .92rem; }
.sb-service li { display: flex; gap: 10px; align-items: center; }
.sb-service .sb-icon { color: var(--teal-deep); }

/* Tabs */
body.salaam div.product .woocommerce-tabs { margin-top: clamp(48px, 6vw, 80px); padding: 0; }
body.salaam div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 0; margin: 0 0 28px; border-bottom: 1.5px solid var(--line); overflow: visible; }
body.salaam div.product .woocommerce-tabs ul.tabs::before, body.salaam div.product .woocommerce-tabs ul.tabs::after, body.salaam div.product .woocommerce-tabs ul.tabs li::before, body.salaam div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.salaam div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
body.salaam div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; font-size: 1rem; }
body.salaam div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
body.salaam div.product .woocommerce-tabs ul.tabs li.active a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; background: var(--teal); border-radius: 3px; }
body.salaam div.product .woocommerce-tabs .panel { max-width: 860px; font-size: 1.05rem; margin: 0; }
.sb-details-table { width: 100%; border-collapse: collapse; max-width: 720px; }
.sb-details-table th, .sb-details-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sb-details-table th { width: 38%; font-weight: 600; color: var(--muted); font-size: .95rem; }
.sb-author-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 8px 0 24px; }
.sb-author-card__name { font-size: 1.5rem; margin: 0 0 4px; }
.sb-author-card__name a { text-decoration: none; }
.sb-author-card__tagline { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 0 0 10px; }
.sb-author-card__bio { color: var(--ink-2); }

/* Reviews */
body.salaam #reviews #comments ol.commentlist { padding: 0; }
body.salaam #reviews #comments ol.commentlist li { border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; }
body.salaam #reviews #comments ol.commentlist li img.avatar { width: 44px; border-radius: 50%; padding: 0; border: 0; background: none; }
body.salaam #reviews #comments ol.commentlist li .comment-text { margin-left: 60px; border: 0; padding: 0; border-radius: 0; }
body.salaam #review_form_wrapper { background: var(--ivory); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); margin-top: 24px; }
body.salaam #review_form .comment-reply-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
body.salaam p.stars a { color: var(--coral); }

/* FBT */
.sb-fbt { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); background: var(--white); box-shadow: 8px 8px 0 var(--yellow); }
.sb-fbt__title { font-size: 1.6rem; }
.sb-fbt form { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.sb-fbt__covers { display: flex; align-items: center; gap: 12px; }
.sb-fbt__cover { width: 96px; }
.sb-fbt__cover img { width: 100%; height: auto; box-shadow: var(--shadow-cover); border-radius: 2px 4px 4px 2px; }
.sb-fbt__plus { font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.sb-fbt__list { list-style: none; margin: 0; padding: 0; }
.sb-fbt__list .sb-check__name { font-size: .97rem; }
.sb-fbt__price { font-weight: 700; white-space: nowrap; }
.sb-fbt__price del { font-weight: 400; color: var(--muted); }
.sb-fbt__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.sb-fbt__total { margin: 0; font-size: 1.15rem; }
.sb-fbt__total strong { font-size: 1.4rem; }

/* Related, upsells, recently viewed */
body.salaam .related.products, body.salaam .upsells.products, .sb-recent { margin-top: clamp(48px, 6vw, 88px); clear: both; }
body.salaam .related.products > h2, body.salaam .upsells.products > h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 28px; }

/* Layout: classic (default stage) */
.sb-pdp--classic .sb-pdp__stage { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }

/* Layout: editorial — full-bleed coloured stage */
.sb-pdp--editorial .woocommerce-breadcrumb { max-width: var(--container); }
.sb-pdp--editorial .site-main { padding-top: 0; }
.sb-pdp--editorial div.product { max-width: none; }
.sb-pdp--editorial .sb-pdp__stage { margin-top: 0; padding: clamp(28px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); background: var(--pink-soft); position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sb-pdp--editorial .sb-pdp__stage::before { content: ""; position: absolute; width: clamp(260px, 32vw, 480px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); left: max(4%, calc((100vw - var(--container)) / 2 + 6%)); top: 50%; transform: translateY(-50%); border: 2px solid var(--ink); }
.sb-pdp--editorial div.product div.images .woocommerce-product-gallery__wrapper { background: transparent; }
.sb-pdp--editorial div.product div.images .woocommerce-product-gallery__image img { max-height: 560px; box-shadow: 0 40px 60px -26px rgba(0,0,0,.55); transform: rotate(-2deg); }
.sb-pdp--editorial div.product div.images .flex-control-thumbs { justify-content: center; position: relative; }
.sb-pdp--editorial div.product div.images .flex-control-thumbs li { background: var(--white); }
.sb-pdp--editorial div.product div.summary { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); border: 1.5px solid var(--ink); position: relative; z-index: 1; }
.sb-pdp--editorial div.product > .woocommerce-tabs, .sb-pdp--editorial div.product > .sb-fbt, .sb-pdp--editorial div.product > .related, .sb-pdp--editorial div.product > .upsells, .sb-pdp--editorial div.product > section, .sb-pdp--editorial .sb-recent, .sb-pdp--editorial .woocommerce-notices-wrapper { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sb-pdp--editorial div.product > .sb-fbt { margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); margin-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }

/* Layout: wide gallery + sticky details */
.sb-pdp--wide .sb-pdp__stage { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); }
.sb-pdp--wide div.product div.summary { position: sticky !important; top: calc(var(--header-h) + 70px); }
.sb-pdp--wide div.product div.images .woocommerce-product-gallery__wrapper { background: var(--teal-soft); }
.sb-pdp--wide div.product div.images .woocommerce-product-gallery__image > a { padding: clamp(32px, 9%, 96px); }
.sb-pdp--wide div.product div.images .woocommerce-product-gallery__image img { max-height: 720px; }

/* 12. Cart, checkout, account, notices ----------------------------------- */
body.salaam .woocommerce-message, body.salaam .woocommerce-info, body.salaam .woocommerce-error, body.salaam .woocommerce-noreviews, body.salaam p.no-comments {
	background: var(--teal-soft); color: var(--ink); border: 0; border-left: 4px solid var(--teal-deep); border-radius: var(--r); padding: 1em 1.2em 1em 3.2em; margin: 0 0 1.5em; font-size: .97rem; list-style: none;
}
body.salaam .woocommerce-error { background: var(--coral-soft); border-left-color: #c2463c; }
body.salaam .woocommerce-message::before, body.salaam .woocommerce-info::before, body.salaam .woocommerce-error::before { color: var(--ink); top: 1em; left: 1.1em; }
body.salaam .woocommerce-message .button, body.salaam .woocommerce-info .button { float: right; padding: .5em 1em; font-size: .85rem; margin-left: 12px; }
body.salaam .woocommerce-notices-wrapper:empty { display: none; }

body.salaam .site-main .entry-header { margin-bottom: 28px; }
body.salaam .site-main .entry-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.woocommerce-cart .site-main, .woocommerce-checkout .site-main, .woocommerce-account .site-main { padding-top: 24px; }
body.salaam table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; margin-bottom: 24px; }
body.salaam table.shop_table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 12px; border: 0; border-bottom: 1.5px solid var(--ink); }
body.salaam table.shop_table td { border: 0; border-bottom: 1px solid var(--line); padding: 16px 12px; vertical-align: middle; }
body.salaam table.cart img { width: 64px; box-shadow: var(--shadow-cover); border-radius: 2px 4px 4px 2px; }
body.salaam table.cart .product-name a { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
body.salaam table.cart td.actions { padding-top: 22px; }
body.salaam table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; }
body.salaam table.cart td.actions .coupon .input-text { width: 200px; border-radius: var(--pill); padding: .75em 1.1em; }
body.salaam a.remove { color: var(--ink) !important; background: var(--grey); border-radius: 50%; width: 28px; height: 28px; line-height: 28px; font-size: 1.1rem; display: grid; place-items: center; }
body.salaam a.remove:hover { background: var(--coral) !important; color: var(--ink) !important; }
body.salaam .cart-collaterals .cart_totals, body.salaam .woocommerce-checkout-review-order { background: var(--ivory); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
body.salaam .cart-collaterals .cart_totals h2, body.salaam #order_review_heading { font-size: 1.5rem; }
body.salaam .cart-collaterals .cart_totals table th, body.salaam .cart-collaterals .cart_totals table td { border-bottom: 1px solid var(--line); background: none; }
body.salaam .cart-collaterals .cross-sells h2 { font-size: 1.5rem; }
body.salaam .wc-proceed-to-checkout .checkout-button { width: 100%; font-size: 1.05rem; padding: 1.1em; }
body.salaam #shipping_method li { margin-bottom: 6px; }
body.salaam form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0 clamp(24px, 4vw, 64px); }
body.salaam form.checkout > .woocommerce-NoticeGroup, body.salaam form.checkout > .wc_coupon_message_wrap { grid-column: 1 / -1; }
body.salaam form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
body.salaam form.checkout #customer_details .col-1, body.salaam form.checkout #customer_details .col-2 { width: 100%; float: none; }
body.salaam form.checkout #order_review_heading, body.salaam form.checkout #order_review { grid-column: 2; }
body.salaam form.checkout #order_review_heading { margin-top: 0; }
body.salaam form.checkout #order_review { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; }
body.salaam .woocommerce-billing-fields h3, body.salaam .woocommerce-shipping-fields h3, body.salaam .woocommerce-additional-fields h3 { font-size: 1.4rem; margin-top: 12px; }
body.salaam form .form-row label { font-size: .9rem; margin-bottom: 4px; }
body.salaam form .form-row { margin-bottom: 14px; padding: 0; }
body.salaam #payment { background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
body.salaam #payment ul.payment_methods { padding: 16px; border-bottom: 1px solid var(--line); }
body.salaam #payment ul.payment_methods li { padding: 8px 0; }
body.salaam #payment ul.payment_methods li label { font-weight: 600; }
body.salaam #payment div.payment_box { background: var(--teal-soft); border-radius: var(--r-sm); font-size: .92rem; }
body.salaam #payment div.payment_box::before { border-bottom-color: var(--teal-soft); }
body.salaam #payment div.form-row { padding: 16px; }
body.salaam #place_order { width: 100%; font-size: 1.08rem; padding: 1.1em; }
body.salaam .woocommerce-form-coupon-toggle .woocommerce-info, body.salaam .woocommerce-form-login-toggle .woocommerce-info { background: var(--ivory); border-left-color: var(--line); }
body.salaam form.checkout_coupon, body.salaam form.woocommerce-form-login { border: 1.5px dashed var(--line); border-radius: var(--r); }
.sb-mpesa-status { display: flex; gap: 16px; align-items: center; background: var(--yellow-soft); border-radius: var(--r); padding: 18px 20px; margin: 0 0 24px; }
.sb-mpesa-status p { margin: 0; }
.sb-mpesa-status.is-paid { background: #e3f6e8; }
.sb-mpesa-status.is-failed { background: var(--coral-soft); }
.sb-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal-deep); animation: sb-spin 1s linear infinite; flex-shrink: 0; }
.is-paid .sb-spinner, .is-failed .sb-spinner { display: none; }
@keyframes sb-spin { to { transform: rotate(360deg); } }
body.salaam ul.order_details { display: flex; flex-wrap: wrap; gap: 0; padding: 0; background: var(--ivory); border-radius: var(--r); }
body.salaam ul.order_details li { padding: 16px 20px; border-right: 1px solid var(--line); margin: 0; font-size: .8rem; }
body.salaam .woocommerce-order-received .woocommerce-thankyou-order-received { font-family: var(--serif); font-size: 1.6rem; }

body.salaam .woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
body.salaam.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
body.salaam .woocommerce-MyAccount-navigation, body.salaam .woocommerce-MyAccount-content { width: auto; float: none; }
body.salaam .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 12px; background: var(--ivory); border-radius: var(--r-lg); }
body.salaam .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: var(--pill); text-decoration: none; font-weight: 600; }
body.salaam .woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: var(--white); }
body.salaam .woocommerce-MyAccount-navigation li a:hover { background: var(--white); color: var(--ink); }
body.salaam .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
body.salaam .u-columns.col2-set .u-column1, body.salaam .u-columns.col2-set .u-column2 { width: auto; float: none; background: var(--ivory); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
body.salaam form.login, body.salaam form.register { border: 0; padding: 0; margin: 0; }
body.salaam .woocommerce-form-login .woocommerce-form-login__rememberme { display: block; margin-bottom: 12px; }
body.salaam form.track_order { max-width: 560px; background: var(--ivory); padding: 28px; border-radius: var(--r-lg); }
body.salaam form.track_order .form-row { width: 100%; float: none; }

/* 13. Pages & journal ---------------------------------------------------- */
body.salaam .hentry { margin: 0; }
body.salaam .site-main .entry-content { font-size: 1.06rem; }
body.salaam .page .entry-content > *:not(.alignfull):not(.alignwide):not(.woocommerce):not(.wp-block-shortcode) { max-width: 820px; }
.sb-store-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 24px 0; }
.sb-store-details > div { background: var(--ivory); border-radius: var(--r); padding: 20px; }
.sb-store-details dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.sb-store-details dd { margin: 6px 0 0; }

.sb-journal-head { position: relative; padding: 8px 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sb-journal-head__squiggle { color: var(--coral); width: 120px; right: 0; top: 10px; }
.sb-post-card--feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.sb-post-card--feature .sb-post-card__title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.sb-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 36px); }

.sb-article { max-width: 1100px; margin: 0 auto; }
.sb-article__head { max-width: 820px; margin: 0 auto; text-align: center; padding: 12px 0 28px; }
.sb-article__title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; margin: .4em 0 .3em; }
.sb-article__head .sb-lede { margin: 0 auto 1em; }
.sb-article__meta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; justify-content: center; }
.sb-article__meta .sb-avatar img { width: 32px; height: 32px; }
.sb-article__hero { margin: 0 0 clamp(28px, 4vw, 56px); border-radius: var(--r-lg); overflow: hidden; }
.sb-article__hero img { width: 100%; height: auto; }
.sb-article__body { max-width: 720px; margin: 0 auto; font-size: 1.14rem; line-height: 1.75; }
.sb-article__body h2 { font-size: 1.9rem; margin-top: 1.6em; }
.sb-article__body blockquote, .sb-article__body .wp-block-quote { margin: 2em 0; padding: 0 0 0 1.2em; border-left: 4px solid var(--teal); font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; font-style: italic; }
.sb-article__body blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.sb-article__body .woocommerce { max-width: none; margin: 1.5em -12%; }
.sb-article__body a { color: var(--teal-deep); }
.sb-article__body .sb-card a { color: inherit; }
.sb-article__foot { max-width: 720px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sb-article__tags a { display: inline-block; background: var(--grey); border-radius: var(--pill); padding: .25em .8em; font-size: .85rem; text-decoration: none; margin: 0 4px 4px 0; }
.sb-share { display: flex; align-items: center; gap: 8px; }
.sb-share span { font-weight: 700; font-size: .85rem; margin-right: 4px; }
.sb-share a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.sb-share a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.sb-article__related { max-width: 1100px; margin: 0 auto; }
.sb-article__comments { max-width: 720px; margin: 48px auto 0; }

.sb-404 { text-align: center; position: relative; padding-block: clamp(48px, 8vw, 120px); }
.sb-404__code { font-family: var(--serif); font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -.05em; }
.sb-404__code span { color: var(--coral); display: inline-block; transform: rotate(-10deg); }
.sb-404 .sb-lede { margin: 0 auto 24px; }
.sb-404__star { color: var(--yellow); width: 70px; left: 20%; top: 18%; }
.sb-search--inline { margin: 0 auto 24px; }

/* Comments (journal) */
.comment-list { list-style: none; padding: 0; }
.comment-respond, #respond { background: var(--ivory); padding: 28px; border-radius: var(--r-lg); }

/* 14. Responsive ---------------------------------------------------------- */
@media (min-width: 1500px) {
	.sb-shop--sidebar .sb-shop__results ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
	.sb-shop--grid5 .sb-shop__results ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sb-shop--sidebar .sb-shop__results ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.salaam ul.products.columns-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sb-brand__slogan { display: none; }
	.sb-footer__main { grid-template-columns: 1.4fr repeat(3, 1fr); }
	.sb-footer__visit { grid-column: 1 / -1; display: flex; gap: 32px; flex-wrap: wrap; }
	.sb-footer__visit .sb-footer__title { width: 100%; margin-bottom: 0; }
	.sb-picks { grid-template-columns: 1fr 1fr; }
	.sb-picks .sb-pick:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 20% 1fr; }
}

@media (max-width: 1024px) {
	:root { --header-h: 68px; }
	.sb-header__main { grid-template-columns: auto 1fr auto; gap: 8px; }
	.sb-burger { display: inline-flex; }
	.sb-brand { justify-self: start; }
	.sb-nav { display: none; }
	.sb-header__main > .sb-search { display: none; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px var(--gutter) 14px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px -14px rgba(0,0,0,.25); }
	.sb-header.is-searching .sb-header__main > .sb-search { display: flex; }
	.sb-header__main > .sb-search .sb-search__btn { right: calc(var(--gutter) + 5px); }
	.sb-header__main > .sb-search .sb-search__results { left: var(--gutter); right: var(--gutter); }
	.sb-actions__search { display: inline-flex; }
	.sb-icon-btn__label { display: none; }
	.sb-logo__mark { width: 40px; height: 40px; }
	.sb-logo__name { font-size: 1.6rem; }

	.sb-shop, .sb-shop--sidebar .sb-shop { grid-template-columns: minmax(0, 1fr); }
	.sb-shop--sidebar .sb-shop__filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); max-height: none; z-index: 100; background: var(--white); overflow-y: auto; padding: 0 20px 20px; transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: var(--shadow-pop); }
	.sb-shop--sidebar .sb-toolbar__filter { display: inline-flex; }
	.sb-shop--sidebar .sb-filters__close { display: block; }
	.sb-shop--sidebar .sb-filters__head { padding-top: 18px; }
	.js .sb-shop--sidebar .sb-filters__actions { display: block; position: sticky; bottom: 0; background: var(--white); padding-bottom: 4px; }
	.sb-shop--sidebar .sb-shop__results ul.products, .sb-shop--grid4 .sb-shop__results ul.products, .sb-shop--grid5 .sb-shop__results ul.products, body.salaam ul.products, body.salaam ul.products.columns-5, body.salaam ul.products.columns-4, body.salaam ul.products.columns-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.sb-hero__grid { grid-template-columns: 1fr; }
	.sb-hero__text { text-align: left; }
	.sb-hero__art { min-height: 0; }
	.sb-chart { grid-template-columns: 1fr; }
	.sb-tiles--mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
	.sb-tiles--mosaic .sb-tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
	.sb-tiles--mosaic .sb-tile:nth-child(4) { grid-column: span 1; }
	.sb-botm__grid, .sb-spotlight__grid, .sb-gifts, .sb-journal, .sb-offer { grid-template-columns: 1fr; }
	.sb-offer__side { align-items: flex-start; }
	.sb-spotlight__portrait { max-width: 340px; }
	.sb-perks__grid { grid-template-columns: repeat(2, 1fr); }
	.sb-footer__main { grid-template-columns: repeat(3, 1fr); }
	.sb-footer__brand { grid-column: 1 / -1; }
	.sb-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-post-card--feature { grid-template-columns: 1fr; }

	.sb-pdp__stage, .sb-pdp--classic .sb-pdp__stage, .sb-pdp--wide .sb-pdp__stage, .sb-pdp--editorial .sb-pdp__stage { grid-template-columns: 1fr; }
	.sb-pdp--wide div.product div.summary { position: static !important; }
	.sb-pdp--editorial .sb-pdp__stage::before { top: 34%; left: 50%; transform: translate(-50%, -50%); }
	body.salaam form.checkout { grid-template-columns: 1fr; }
	body.salaam form.checkout #customer_details, body.salaam form.checkout #order_review_heading, body.salaam form.checkout #order_review { grid-column: 1; grid-row: auto; }
	body.salaam form.checkout #order_review { position: static; }
	body.salaam .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	body.salaam .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; }
	body.salaam .woocommerce-MyAccount-navigation li a { white-space: nowrap; }
}

@media (max-width: 767px) {
	body { font-size: 15.5px; padding-bottom: 64px; }
	.admin-bar .sb-header { top: 0; }
	.sb-announce { font-size: .8rem; }
	.sb-actions__account, .sb-actions__wishlist { display: none; }
	.sb-actions { gap: 0; }
	.sb-icon-btn { padding: 6px 8px; }

	body.salaam ul.products, body.salaam ul.products.columns-3, body.salaam ul.products.columns-4, body.salaam ul.products.columns-5, body.salaam ul.products.columns-6,
	.sb-shop--sidebar .sb-shop__results ul.products, .sb-shop--grid4 .sb-shop__results ul.products, .sb-shop--grid5 .sb-shop__results ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
	.sb-card__media { padding: 10% 12%; border-radius: var(--r-sm); }
	body.salaam ul.products li.product .sb-card__title { font-size: .98rem; }
	.sb-card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
	body.salaam ul.products li.product .sb-card__add { width: 100%; padding: .6em .8em; }
	.sb-card__wish .tinvwl_add_to_wishlist_button { width: 34px; height: 34px; }
	.sb-shop--list ul.products li.product.sb-card { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
	.sb-shop--list ul.products li.product .sb-card__title { font-size: 1.1rem; }
	.sb-shop--list .sb-card__foot { flex-direction: row; align-items: center; }
	.sb-shop--list .sb-card__excerpt { display: none; }
	.sb-view__btn[href*="grid5"] { display: none; }
	.sb-toolbar { gap: 10px; }
	.sb-toolbar__left { width: 100%; justify-content: space-between; }
	.sb-toolbar__right { width: 100%; justify-content: space-between; }
	body.salaam .woocommerce-ordering select { max-width: 190px; }

	body.salaam ul.products.sb-rail, ul.sb-rail { grid-auto-columns: 44vw; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
	ul.sb-quotes { grid-auto-columns: 82vw; }
	.sb-rail-nav { display: none; }
	.sb-section__head { align-items: flex-start; flex-direction: column; gap: 10px; }

	.sb-hero { padding-top: 32px; }
	.sb-hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
	.sb-hero__ctas .sb-btn { flex: 1 1 auto; }
	.sb-fan { height: 300px; }
	.sb-sticker { width: 88px; height: 88px; font-size: .85rem; padding: 10px; }
	.sb-chart__top { grid-template-columns: 1fr; text-align: left; padding-top: 48px; }
	.sb-chart__cover { max-width: 220px; margin: 0 auto; }
	.sb-chart__rank--big { width: 72px; height: 72px; font-size: 3.4rem; top: -20px; left: 12px; }
	.sb-chart__row { grid-template-columns: auto 44px 1fr; }
	.sb-chart__row .price { grid-column: 3; font-size: .92rem; }
	.sb-tiles--mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
	.sb-tile { padding: 16px; min-height: 0; border-radius: var(--r); }
	.sb-tile__name { font-size: 1.2rem; }
	.sb-tile__tagline { display: none; }
	.sb-tile__art { height: 56%; }
	.sb-picks { grid-template-columns: 1fr; }
	.sb-picks .sb-pick:nth-child(3) { grid-column: auto; grid-template-columns: 38% 1fr; }
	.sb-pick { grid-template-columns: 38% 1fr; padding: 18px; }
	.sb-botm__badge { width: 96px; height: 96px; font-size: .62rem; }
	.sb-botm__badge span { font-size: 1.2rem; }
	.sb-spotlight__books { grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.sb-spotlight__book span { display: none; }
	.sb-countdown span { min-width: 54px; padding: 6px; }
	.sb-countdown b { font-size: 1.3rem; }
	.sb-gifts__feature { min-height: 320px; }
	.sb-post-card--row { grid-template-columns: 36% 1fr; gap: 14px; }
	.sb-post-grid { grid-template-columns: 1fr; }
	.sb-newsletter-form { flex-direction: column; border-radius: var(--r-lg); }
	.sb-newsletter-form .sb-btn { width: 100%; }
	.sb-perks__grid { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
	.sb-footer__main { grid-template-columns: 1fr 1fr; }
	.sb-footer__visit { display: block; }
	.sb-footer__bottom-inner { flex-direction: column; align-items: flex-start; }

	.sb-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -18px rgba(0,0,0,.35); }
	.sb-tabbar a, .sb-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; text-decoration: none; color: var(--muted); background: none; border: 0; font-family: inherit; padding: 4px 0; cursor: pointer; }
	.sb-tabbar [aria-current="page"] { color: var(--ink); }
	.sb-tabbar [aria-current="page"] .sb-icon { color: var(--teal-deep); }
	.sb-toast { bottom: 84px; }

	.sb-cat-hero, .sb-author-hero { grid-template-columns: 1fr; border-radius: var(--r); }
	.sb-cat-hero__covers { height: 150px; }
	.sb-author-hero { text-align: left; }
	.sb-directory__bar { top: var(--header-h); }

	.sb-pdp--editorial .sb-pdp__stage { padding-top: 24px; }
	body.salaam div.product .product_title { font-size: 2rem; }
	body.salaam div.product form.cart { position: sticky; bottom: 64px; background: var(--white); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); box-shadow: 0 -10px 20px -16px rgba(0,0,0,.35); }
	.sb-pdp--editorial div.product form.cart { margin-inline: calc(clamp(22px, 3vw, 40px) * -1); padding-inline: clamp(22px, 3vw, 40px); }
	body.salaam div.product .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; }
	body.salaam div.product .woocommerce-tabs ul.tabs li a { white-space: nowrap; padding: 12px 12px; }
	.sb-fbt form { grid-template-columns: 1fr; }
	.sb-fbt__cover { width: 72px; }
	.sb-author-card { grid-template-columns: 1fr; }
	body.salaam table.shop_table_responsive tr td { padding: 10px 0; }
	body.salaam table.cart td.actions .coupon { flex-wrap: wrap; }
	body.salaam table.cart td.actions .coupon .input-text { width: 100% !important; }
	body.salaam .u-columns.col2-set { grid-template-columns: 1fr; }
	.sb-article__body .woocommerce { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.sb-announce, .sb-header, .sb-footer, .sb-tabbar, .sb-drawer, .sb-overlay { display: none !important; }
}

/* 15. Salaam blue brand (from the Salaam Bookstore logo) ------------------
   Logo blue + white lead everywhere; coral/yellow remain small accents only. */
.sb-logo__mark { width: 56px; height: auto; }
.sb-logo:hover .sb-logo__mark { transform: translateY(-2px) scale(1.05); }
.sb-logo__name { font-family: var(--sans); font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; color: var(--teal); white-space: nowrap; font-variation-settings: normal; }
.sb-logo__name sup { font-size: .5em; font-weight: 700; margin-left: 2px; }
.sb-logo__sub { font-family: var(--serif); font-style: italic; font-size: .74rem; letter-spacing: 0; text-transform: none; font-weight: 500; margin-top: 5px; color: var(--teal-deep); white-space: nowrap; }
.sb-brand__slogan { font-style: italic; color: var(--teal-deep); }
.sb-botm { background: var(--teal-soft); }
.sb-botm__art::before { background: var(--teal); }
.sb-botm__arc, .sb-botm__star { color: var(--teal); }
.sb-fan__sun { background: var(--white); }
.sb-sticker { background: var(--teal); color: var(--white); }
.sb-chart__rank--big { background: var(--teal); color: var(--white); }
.sb-testimonials { background: var(--teal-soft); }
.sb-quote { box-shadow: 6px 6px 0 var(--teal); }
.sb-gifts__feature { background: var(--teal-soft); }
.sb-gifts__icon { background: var(--white); color: var(--teal-deep); }
.sb-spotlight__portrait .sb-avatar { background: var(--teal-soft); }
.sb-pick--pink, .sb-pick--yellow { background: var(--ivory); }
.sb-pdp--editorial .sb-pdp__stage { background: var(--teal-soft); }
.sb-pdp--editorial .sb-pdp__stage::before { background: var(--white); }
.sb-mega__promo { background: var(--teal-soft); }
.sb-staff-note { background: var(--teal-soft); }
.sb-staff-note::before { color: var(--teal-deep); }
.sb-chip { background: var(--teal-soft); border-color: var(--teal); }
.sb-chip:hover { background: var(--teal); }
.sb-fbt { box-shadow: 8px 8px 0 var(--teal); }
.sb-newsletter__star { color: var(--white); }
.sb-author-hero__star, .sb-hero__star, .sb-404__star { color: var(--teal); }
::selection { background: var(--teal); color: var(--white); }
@media (max-width: 1024px) {
	.sb-logo__mark { width: 44px; }
	.sb-logo__name { font-size: 1.2rem; }
}
@media (max-width: 480px) {
	.sb-logo__name { font-size: 1.02rem; }
	.sb-logo__sub { display: none; }
	.sb-logo__mark { width: 38px; }
}

/* 16. Layout fixes --------------------------------------------------------- */
.sb-header .sb-burger { display: none; }
@media (max-width: 1024px) { .sb-header .sb-burger { display: inline-flex; } }

/* Collection tile cover fan: fixed-proportion box, absolutely placed covers. */
.sb-tile__art { position: absolute; right: 14px; bottom: -18px; width: min(58%, 250px); height: auto; aspect-ratio: 5 / 4; display: block; }
.sb-tile__art img { position: absolute; bottom: 0; width: 50%; height: auto; max-width: none; margin: 0; }
.sb-tile__art img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.sb-tile__art img:nth-child(2) { left: 25%; transform: translateY(-8%) rotate(1deg); z-index: 2; }
.sb-tile__art img:nth-child(3) { left: 50%; transform: rotate(9deg); }
.sb-tile:hover .sb-tile__art img:nth-child(1) { transform: rotate(-14deg) translateX(-6%); }
.sb-tile:hover .sb-tile__art img:nth-child(3) { transform: rotate(14deg) translateX(6%); }
.sb-tiles--mosaic .sb-tile:nth-child(1) .sb-tile__art { width: min(70%, 420px); right: 8%; height: auto; }
.sb-tile__art .sb-tile__photo { position: static; width: 100%; }
@media (max-width: 767px) { .sb-tile__art { width: 62%; } }
/* Rails must never inherit a responsive column template (it would collapse the first cards). */
body.salaam ul.products.sb-rail, body.salaam ul.sb-rail { grid-template-columns: none !important; }
.sb-spotlight { overflow: hidden; }
.sb-toast { max-width: calc(100vw - 32px); }
.sb-toast:empty { display: none; }
/* Keep absolutely-positioned helpers (screen-reader text, badges) inside their card/scroller. */
body.salaam ul.products, body.salaam ul.products li.product { position: relative; }
/* WooCommerce's float grid (".woocommerce-page ul.products.columns-4 li.product { width: 22% }") must not size our grid cards. */
body.salaam ul.products li.product, body.salaam ul.products[class*="columns-"] li.product { width: auto !important; float: none !important; clear: none !important; margin: 0 !important; }
body.salaam div.product div.images .woocommerce-product-gallery__image img { display: inline-block; }
body.salaam ul.products li.product .sb-card__add { white-space: nowrap; }
/* Gallery: slider height follows the tallest cover; gallery sits above the decorative circle. */
.sb-pdp__gallery { position: relative; z-index: 1; }
body.salaam .woocommerce-product-gallery .flex-viewport { height: auto !important; }
@media (max-width: 1024px) { .sb-pdp--editorial .sb-pdp__stage::before { display: none; } }
body.salaam .page .entry-content > .sb-directory, body.salaam .page .entry-content > .sb-publishers, body.salaam .page .entry-content > .sb-tiles, body.salaam .page .entry-content > .sb-store-details, body.salaam .page .entry-content > .sb-section__title { max-width: none; }
