/* =============================================================================
   MyFirstBook IL — Core stylesheet (RTL-first, logical properties only)
   Tokens mirror design-system/MASTER.md
   ========================================================================== */

:root {
	/* Brand */
	--mfb-brand: #4b9560;
	--mfb-brand-dark: #428455;
	--mfb-brand-light: #54a66b;
	--mfb-accent: #99d6ea;
	--mfb-accent-dark: #84cde6;

	/* Text + bg */
	--mfb-text: #1b3e14;
	--mfb-text-light: rgba(27, 62, 20, 0.7);
	--mfb-text-lighter: rgba(27, 62, 20, 0.55);
	--mfb-text-lightest: rgba(27, 62, 20, 0.2);
	--mfb-alt-text: #8b8b8b;
	--mfb-bg: #f1f2ed;
	--mfb-bg-light: #fdfdfc;
	--mfb-bg-dark: #e5e7de;

	/* Status */
	--mfb-sale: #cc0000;
	--mfb-in-stock: #4a9f53;
	--mfb-star: #6aab44;

	/* Effects */
	--mfb-shadow-card: 0 4px 16px rgba(27, 62, 20, 0.08);
	--mfb-shadow-card-hover: 0 8px 24px rgba(27, 62, 20, 0.12);
	--mfb-radius-card: 16px;
	--mfb-radius-pill: 999px;

	/* Layout */
	--mfb-container: 1280px;
	--mfb-gutter: 24px;
	--mfb-section-py: clamp(48px, 7vw, 96px);

	/* Type */
	--mfb-font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;
	--mfb-font-heading: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mfb-font-ar: "Tajawal", "Nunito", "Helvetica Neue", Arial, sans-serif;
	--mfb-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body,
body.mfb-home,
body.mfb-home .ct-main-styles,
body.mfb-home .site-main {
	background: var(--mfb-bg) !important;
	color: var(--mfb-text);
	font-family: var(--mfb-font-body);
	font-size: 15.6px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Arabic: Tajawal everywhere (body.mfb-home was overriding .mfb-locale-ar). */
body.mfb-locale-ar {
	--mfb-font-body: var(--mfb-font-ar);
	--mfb-font-heading: var(--mfb-font-ar);
	font-family: var(--mfb-font-ar);
}

/*
 * Arabic: Woo block cart & checkout — Blocksy/theme stacks (Poppins on h1–h3, etc.)
 * override inherited body font. Force Tajawal on the page chrome + entire WC Blocks tree.
 */
body.mfb-locale-ar.woocommerce-checkout .entry-title,
body.mfb-locale-ar.woocommerce-checkout .entry-content,
body.mfb-locale-ar.woocommerce-cart .entry-title,
body.mfb-locale-ar.woocommerce-cart .entry-content,
body.mfb-locale-ar.woocommerce-checkout .wp-block-woocommerce-checkout,
body.mfb-locale-ar.woocommerce-checkout .wp-block-woocommerce-checkout *,
body.mfb-locale-ar.woocommerce-cart .wp-block-woocommerce-cart,
body.mfb-locale-ar.woocommerce-cart .wp-block-woocommerce-cart *,
body.mfb-locale-ar.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
body.mfb-locale-ar.woocommerce-cart .wp-block-woocommerce-empty-cart-block * {
	font-family: var(--mfb-font-ar) !important;
}

html[lang^="ar"] body.woocommerce-checkout .entry-title,
html[lang^="ar"] body.woocommerce-checkout .entry-content,
html[lang^="ar"] body.woocommerce-cart .entry-title,
html[lang^="ar"] body.woocommerce-cart .entry-content,
html[lang^="ar"] body.woocommerce-checkout .wp-block-woocommerce-checkout,
html[lang^="ar"] body.woocommerce-checkout .wp-block-woocommerce-checkout *,
html[lang^="ar"] body.woocommerce-cart .wp-block-woocommerce-cart,
html[lang^="ar"] body.woocommerce-cart .wp-block-woocommerce-cart *,
html[lang^="ar"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
html[lang^="ar"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block * {
	font-family: var(--mfb-font-ar) !important;
}

/*
 * Arabic: classic Woo order-received (thank-you) — theme heading stacks override
 * body font on h2 (e.g. .woocommerce-column__title). Match block checkout strength.
 */
body.mfb-locale-ar.woocommerce-order-received .entry-title,
body.mfb-locale-ar.woocommerce-order-received .entry-content,
body.mfb-locale-ar.woocommerce-order-received .entry-content * {
	font-family: var(--mfb-font-ar) !important;
}

html[lang^="ar"] body.woocommerce-order-received .entry-title,
html[lang^="ar"] body.woocommerce-order-received .entry-content,
html[lang^="ar"] body.woocommerce-order-received .entry-content * {
	font-family: var(--mfb-font-ar) !important;
}

img { max-width: 100%; height: auto; }

/* ---- Container / section --------------------------------------------- */
.mfb-container {
	max-width: var(--mfb-container);
	margin-inline: auto;
	padding-inline: var(--mfb-gutter);
}
.mfb-section {
	padding-block: var(--mfb-section-py);
}
.mfb-section--alt { background: var(--mfb-bg-dark); }
.mfb-section--light { background: var(--mfb-bg-light); }
/* New tinted bg helpers — matches source's "Soft UI" color blocks. */
.mfb-section--cream  { background: #f1f2ed; }              /* warm off-white (source --color--bg) */
.mfb-section--mint   { background: #addc91; }              /* light brand-green band */
.mfb-section--sky    { background: #99d6ea; }              /* sky-blue accent band */
.mfb-section--dark   { background: #1b3e14; color: #fff; } /* dark-green band, white text */
.mfb-section--dark .mfb-section-title { color: #fff; }
.mfb-section--dark .mfb-section-title::after { background: #fff; }

.mfb-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--mfb-brand);
	margin-block-end: 12px;
}
.mfb-section-title {
	font-size: clamp(28px, 3vw + 1rem, 38px);
	font-weight: 800;
	margin-block-end: 16px;
	color: var(--mfb-text);
}
.mfb-section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	background: var(--mfb-brand);
	margin-block-start: 12px;
}
.mfb-section--center { text-align: center; }
.mfb-section--center .mfb-section-title::after { margin-inline: auto; }

body.mfb-locale-ar .mfb-section-title {
	font-family: var(--mfb-font-heading);
}

/* ---- Buttons --------------------------------------------------------- */
.mfb-btn,
a.mfb-btn,
a.mfb-btn:link,
a.mfb-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	border-radius: var(--mfb-radius-pill);
	background: var(--mfb-brand);
	color: #fff;
	font-weight: 600;
	letter-spacing: 1px;
	text-decoration: none;
	border: 2px solid var(--mfb-brand);
	transition: background var(--mfb-transition), transform var(--mfb-transition), box-shadow var(--mfb-transition);
	cursor: pointer;
}
.mfb-btn:hover,
a.mfb-btn:hover,
a.mfb-btn:focus,
a.mfb-btn:active {
	background: var(--mfb-brand-dark);
	border-color: var(--mfb-brand-dark);
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}
.mfb-btn:focus-visible,
a.mfb-btn:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: 3px; }

/* --- Primary (same as default but explicit class for parity with .us) --- */
.mfb-btn--primary,
a.mfb-btn--primary,
a.mfb-btn--primary:link,
a.mfb-btn--primary:visited {
	background: var(--mfb-brand);
	color: #fff;
	border-color: var(--mfb-brand);
}
.mfb-btn--primary:hover,
a.mfb-btn--primary:hover,
a.mfb-btn--primary:focus,
a.mfb-btn--primary:active {
	background: var(--mfb-brand-dark);
	border-color: var(--mfb-brand-dark);
	color: #fff;
}

/* --- Ghost / outline --- */
.mfb-btn--ghost,
a.mfb-btn--ghost,
a.mfb-btn--ghost:link,
a.mfb-btn--ghost:visited {
	background: transparent;
	color: var(--mfb-text);
	border-color: var(--mfb-text);
}
.mfb-btn--ghost:hover,
a.mfb-btn--ghost:hover,
a.mfb-btn--ghost:focus,
a.mfb-btn--ghost:active {
	background: var(--mfb-text);
	color: #fff;
	border-color: var(--mfb-text);
}

/* White pill CTA on dark / video heroes (matches .us image-banner Shop now) */
.mfb-btn.mfb-btn--white,
a.mfb-btn.mfb-btn--white,
a.mfb-btn.mfb-btn--white:link,
a.mfb-btn.mfb-btn--white:visited {
	background: #fff;
	color: var(--mfb-text);
	border: 1px solid #fff;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 700;
	min-height: 46px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 13px;
}
.mfb-btn.mfb-btn--white:hover,
a.mfb-btn.mfb-btn--white:hover,
a.mfb-btn.mfb-btn--white:focus,
a.mfb-btn.mfb-btn--white:active {
	background: transparent;
	color: #fff;
	border-color: #fff;
	transform: none;
	text-decoration: none;
}
.mfb-btn.mfb-btn--white:focus-visible,
a.mfb-btn.mfb-btn--white:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.mfb-btn--sm { padding: 10px 22px; font-size: 14px; }
.mfb-btn--block { width: 100%; justify-content: center; }

/* ---- Sticky site head (topbar + header): one stack so mobile collapse leaves no gap ---- */
.mfb-site-head {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	inset-block-start: 0;
	z-index: 101;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: transparent;
}

/* After scroll: announcement hidden; header occupies the top slot inside sticky .mfb-site-head (all breakpoints) */
.mfb-site-head.is-topbar-collapsed {
	background: #fff;
}
.mfb-site-head.is-topbar-collapsed #mfb-section-topbar.mfb-topbar,
.mfb-site-head.is-topbar-collapsed .mfb-topbar {
	display: none !important;
}
.mfb-site-head.is-topbar-collapsed .mfb-header {
	background: #fff !important;
	border-block-end-color: rgba(17, 17, 17, 0.06);
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
}
/* Home: scrolled stack — light chrome even if .is-mfb-header-solid lags one frame */
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header .mfb-header__logo,
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header .mfb-header__menu-toggle,
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header .mfb-header__cart {
	color: var(--mfb-text);
}
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header .mfb-header__logo-img {
	filter: none;
}
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header .mfb-header__menu li a {
	color: var(--mfb-text);
	text-shadow: none;
}
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header .mfb-lang-dd__btn {
	background: var(--mfb-bg-dark);
	color: var(--mfb-text);
	border-color: rgba(27, 62, 20, 0.12);
}

/* ---- Header (matches .us .header.header--sticky.header--transparent) --
   Source uses a transparent bar with: centered logo, primary-nav
   to one side, secondary-nav (account/cart/search) on the other.
   Nav items: UPPERCASE, letter-spaced (.us `.f-caps--true .f-space--1`).
   Stickiness is on .mfb-site-head (parent). On scroll, #mfb-section-topbar is
   hidden and #mfb-section-header is the first row — same viewport position as the bar was.
   ------------------------------------------------------------------- */
.mfb-header {
	/* Default: transparent over hero / page top (.us-style) */
	background: transparent;
	/* Sticky is on .mfb-site-head; this bar only needs to paint above page content */
	position: relative;
	top: auto;
	inset-block-start: auto;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	border-block-end: 1px solid transparent;
	transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
	isolation: isolate;
	z-index: 2;
}
/* White bar: hover / keyboard focus inside header, or after hero clears (see main.js .is-mfb-header-solid) */
.mfb-header:hover,
.mfb-header:focus-within,
.mfb-header.is-mfb-header-solid {
	background: #fff;
	border-block-end-color: rgba(17, 17, 17, 0.06);
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
}

/* Force transparent at top of home (overrides any parent / theme bleed) */
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) {
	background-color: transparent !important;
	background-image: none;
	box-shadow: none;
	border-block-end-color: transparent;
}

/* Scrolled: topbar hidden — white bar must win over the transparent-at-top home rule */
body.mfb-home .mfb-site-head.is-topbar-collapsed .mfb-header:not(:hover):not(:focus-within) {
	background-color: #fff !important;
	background-image: none;
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
	border-block-end-color: rgba(17, 17, 17, 0.06);
}

/* Home + transparent header over dark video: light controls until hover / scroll / focus */
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) .mfb-header__logo {
	color: #fff;
}
/* Logo image: show real asset colors (no brightness/invert over hero). */
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) .mfb-header__logo-img {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) .mfb-header__menu li a {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
body.mfb-home .mfb-header:hover .mfb-header__logo-img,
body.mfb-home .mfb-header:focus-within .mfb-header__logo-img,
body.mfb-home .mfb-header.is-mfb-header-solid .mfb-header__logo-img {
	filter: none;
}
body.mfb-home .mfb-header:hover .mfb-header__logo,
body.mfb-home .mfb-header:focus-within .mfb-header__logo,
body.mfb-home .mfb-header.is-mfb-header-solid .mfb-header__logo {
	color: var(--mfb-text);
}
body.mfb-home .mfb-header:hover .mfb-header__menu li a,
body.mfb-home .mfb-header:focus-within .mfb-header__menu li a,
body.mfb-home .mfb-header.is-mfb-header-solid .mfb-header__menu li a {
	color: var(--mfb-text);
	text-shadow: none;
}
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) .mfb-header__cart {
	color: #fff;
}
body.mfb-home .mfb-header:hover .mfb-header__cart,
body.mfb-home .mfb-header:focus-within .mfb-header__cart,
body.mfb-home .mfb-header.is-mfb-header-solid .mfb-header__cart {
	color: var(--mfb-text);
}
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) .mfb-header__menu-toggle {
	color: #fff;
}
body.mfb-home .mfb-header:hover .mfb-header__menu-toggle,
body.mfb-home .mfb-header:focus-within .mfb-header__menu-toggle,
body.mfb-home .mfb-header.is-mfb-header-solid .mfb-header__menu-toggle {
	color: var(--mfb-text);
}
body.mfb-home .mfb-header:not(.is-mfb-header-solid):not(:hover):not(:focus-within) .mfb-lang-dd__btn {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}
body.mfb-home .mfb-header:hover .mfb-lang-dd__btn,
body.mfb-home .mfb-header:focus-within .mfb-lang-dd__btn,
body.mfb-home .mfb-header.is-mfb-header-solid .mfb-lang-dd__btn {
	background: var(--mfb-bg-dark);
	color: var(--mfb-text);
	border-color: rgba(27, 62, 20, 0.12);
}
.mfb-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 7px; /* source: height 45px + 7px gutter */
	min-height: 52px;
}
.mfb-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--mfb-text);
	font-weight: 800;
	font-size: 20px;
	flex-shrink: 0;
}
.mfb-header__logo-img { max-height: 45px; width: auto; } /* source: max-height 45px */
@media (max-width: 767px) {
	.mfb-header__inner { padding-block: 5px; min-height: 40px; }
	.mfb-header__logo-img { max-height: 30px; }
}
.mfb-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.mfb-header__menu {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mfb-header__menu > li {
	position: relative;
}
.mfb-header__menu li a {
	color: var(--mfb-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em; /* matches source f-space--1 */
	transition: color var(--mfb-transition);
	display: inline-block;
}
/* Top-level links: .us-style animated underline only (no pill fill) */
.mfb-header__menu > li > a {
	position: relative;
	padding: 10px 8px 12px;
	margin: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}
.mfb-header__menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 6px;
	inset-block-end: 4px;
	height: 2px;
	background: #111;
	border-radius: 1px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}
.mfb-header__menu > li > a:hover::after,
.mfb-header__menu > li > a:focus-visible::after,
.mfb-header__menu > li:hover > a::after,
.mfb-header__menu > li:focus-within > a::after {
	transform: scaleX(1);
}
.mfb-header__menu > li > a:hover,
.mfb-header__menu > li > a:focus-visible {
	color: inherit;
	background: transparent;
	box-shadow: none;
}
.mfb-header__menu > li.current-menu-item > a::after,
.mfb-header__menu > li.current_page_item > a::after {
	transform: scaleX(1);
}
.mfb-header__menu .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	margin: 6px 0 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	border: 1px solid rgba(27, 62, 20, 0.1);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	z-index: 110;
}
.mfb-header__menu .sub-menu a {
	display: block;
	padding: 10px 16px;
	margin: 0;
	border-radius: 0;
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 600;
}
.mfb-header__menu .sub-menu a:hover,
.mfb-header__menu .sub-menu a:focus-visible {
	background: var(--mfb-bg-dark);
	box-shadow: none;
	color: var(--mfb-brand);
}
.mfb-header__menu > li:hover > .sub-menu,
.mfb-header__menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.mfb-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}
/* Language dropdown (Polylang) — shrink-wrap to button; panel matches trigger width */
.mfb-header__lang.mfb-lang-dd {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	width: fit-content;
	max-width: 100%;
}
.mfb-lang-dd__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	padding: 0 12px;
	margin: 0;
	background: var(--mfb-bg-dark);
	color: var(--mfb-text);
	border: 1px solid rgba(27, 62, 20, 0.12);
	border-radius: 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--mfb-transition), border-color 150ms ease, box-shadow 150ms ease;
}
.mfb-lang-dd__btn:hover {
	background: #fff;
	border-color: rgba(27, 62, 20, 0.2);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.mfb-lang-dd__btn[aria-expanded="true"] {
	background: #fff;
	border-color: rgba(27, 62, 20, 0.22);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.mfb-lang-dd__btn:focus-visible {
	outline: 2px solid var(--mfb-brand);
	outline-offset: 3px;
}
.mfb-lang-dd__current-name {
	max-width: 8em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mfb-lang-dd__chev {
	flex-shrink: 0;
	opacity: 0.55;
	transition: transform 180ms ease, opacity 150ms ease;
}
.mfb-lang-dd__btn[aria-expanded="true"] .mfb-lang-dd__chev {
	transform: rotate(180deg);
	opacity: 0.85;
}
.mfb-lang-dd__panel {
	position: absolute;
	inset-block-start: calc(100% + 6px);
	inset-inline-start: 0;
	inset-inline-end: 0;
	width: 100%;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
	padding: 6px;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.12);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	z-index: 12000;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mfb-lang-dd__panel[hidden] {
	display: none !important;
}
.mfb-lang-dd__opt {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--mfb-text);
	font-size: 14px;
	font-weight: 600;
	transition: background 120ms ease, color 120ms ease;
}
.mfb-lang-dd__opt:hover {
	background: var(--mfb-bg-dark);
	color: var(--mfb-text);
}
.mfb-lang-dd__opt.is-current {
	background: rgba(27, 62, 20, 0.08);
	color: var(--mfb-text);
}
.mfb-lang-dd__opt-name {
	flex: 1;
	min-width: 0;
}
.mfb-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--mfb-text);
	width: 40px;
	height: 40px;
	border-radius: 999px;
	transition: background var(--mfb-transition);
}
.mfb-header__cart:hover { background: var(--mfb-bg-dark); }
.mfb-header__cart-count {
	position: absolute;
	inset-block-start: -2px;
	inset-inline-end: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--mfb-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
/* Mobile menu toggle + slide-out drawer (nav hidden below; drawer uses Appearance → Menus) */
.mfb-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--mfb-text);
	cursor: pointer;
	transition: background var(--mfb-transition);
}
.mfb-header__menu-toggle:hover,
.mfb-header__menu-toggle:focus-visible {
	background: var(--mfb-bg-dark);
}
.mfb-header__menu-toggle:focus-visible {
	outline: 2px solid var(--mfb-brand);
	outline-offset: 2px;
}
/* Mobile nav drawer — parity with myfirstbook.us (.mobile-draw.mobile-draw--dark.has-borders) */
.mfb-header__drawer.mobile-draw {
	position: fixed;
	inset: 0;
	z-index: 20000;
	pointer-events: none;
	visibility: hidden;
}
.mfb-header__drawer.mobile-draw.is-open {
	pointer-events: auto;
	visibility: visible;
}
.mfb-header__drawer-scrim {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
	cursor: pointer;
}
.mfb-header__drawer.is-open .mfb-header__drawer-scrim {
	opacity: 1;
}
.mfb-header__drawer-panel.mobile-draw__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: calc(100% - 24px);
	max-width: 444px;
	height: 100%;
	max-height: 100%;
	background: #f1f2ed;
	color: #212121;
	box-shadow: 4px 0 28px rgba(0, 0, 0, 0.14);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translate3d(-100%, 0, 0);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="rtl"] .mfb-header__drawer-panel.mobile-draw__panel {
	inset-inline-start: auto;
	inset-inline-end: 0;
	transform: translate3d(100%, 0, 0);
	box-shadow: -4px 0 28px rgba(0, 0, 0, 0.14);
}
.mfb-header__drawer.is-open .mfb-header__drawer-panel.mobile-draw__panel {
	transform: translate3d(0, 0, 0);
}
.mfb-header__drawer.mobile-draw--dark .mfb-header__drawer-panel {
	--mfb-drawer-fg: #212121;
	--mfb-drawer-bg: #f1f2ed;
	--mfb-drawer-border: rgba(33, 33, 33, 0.1);
	--mfb-drawer-hover: rgba(33, 33, 33, 0.06);
}
.drawer-nav__empty-banner.mfb-mobile-draw__banner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 56px;
	padding: 10px 8px 12px 12px;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--mfb-drawer-bg, #f1f2ed);
}
@media (min-width: 640px) {
	.drawer-nav__empty-banner.mfb-mobile-draw__banner {
		min-height: 64px;
		padding-block-start: 14px;
	}
}
.mfb-header__drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--mfb-drawer-fg, #212121);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.mfb-header__drawer-close:hover,
.mfb-header__drawer-close:focus-visible {
	background: var(--mfb-drawer-hover, rgba(33, 33, 33, 0.06));
	color: var(--mfb-brand, #2d6a4f);
}
.mfb-header__drawer-close:focus-visible {
	outline: 2px solid var(--mfb-brand, #2d6a4f);
	outline-offset: 2px;
}
.mobile-draw__account {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 3;
	max-width: calc(100% - 120px);
}
@media (min-width: 640px) {
	.mobile-draw__account {
		top: 14px;
		inset-inline-end: 14px;
	}
}
.mobile-header__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 4px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--mfb-drawer-fg, #212121);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}
.mobile-header__link:hover,
.mobile-header__link:focus-visible {
	color: var(--mfb-brand, #2d6a4f);
	opacity: 0.95;
}
.mobile-draw__icon {
	display: inline-flex;
	flex-shrink: 0;
	color: currentColor;
}
.mobile-draw__icon svg {
	display: block;
}
.mobile-draw__wrapper {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-block-end: 120px;
}
.drawer-nav.drawer-nav--main {
	margin: 0;
	padding: 0 0 8px;
}
.mobile-draw.has-borders .list-menu > .list-menu__item {
	border-block-end: 1px solid var(--mfb-drawer-border, rgba(33, 33, 33, 0.1));
}
.mobile-draw.has-borders .list-menu > .list-menu__item:last-child {
	border-block-end: none;
}
.list-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.list-menu__link {
	display: block;
	padding: 18px 22px;
	color: var(--mfb-drawer-fg, #212121);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.01em;
	transition: background 0.18s ease, color 0.18s ease;
}
.list-menu__link:hover,
.list-menu__link:focus-visible {
	background: var(--mfb-drawer-hover, rgba(33, 33, 33, 0.06));
	color: var(--mfb-brand, #2d6a4f);
}
.list-menu__item--active > .list-menu__link {
	font-weight: 700;
	color: var(--mfb-brand, #2d6a4f);
}
.list-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 12px;
	padding-inline-start: 14px;
	border: none;
}
.list-menu .sub-menu .list-menu__link,
.list-menu__link--sub {
	padding: 10px 22px 10px 18px;
	font-size: 15px;
	font-weight: 500;
}
.mobile-draw__footer.mobile-footer {
	padding: 20px 22px 32px;
	flex-shrink: 0;
}
.mobile-footer__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mfb-drawer-fg, #212121);
}
.mobile-footer__text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	font-weight: 500;
	border-block-end: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.mobile-footer__text-link:hover,
.mobile-footer__text-link:focus-visible {
	color: var(--mfb-brand, #2d6a4f);
	border-block-end-color: currentColor;
}
body.mfb-header-drawer-open {
	overflow: hidden;
}
@media (max-width: 1023px) {
	/* Source uses .u-hidden@tab-down: hide inline nav; drawer replaces it */
	.mfb-header__nav { display: none; }
	.mfb-header__menu-toggle { display: inline-flex; }

	/*
	 * Mobile bar matches myfirstbook.us: physical left = menu + cart + language,
	 * physical right = logo (toolbar row is LTR so RTL site mirrors .us layout).
	 */
	.mfb-container.mfb-header__inner {
		direction: ltr;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
		width: 100%;
		max-width: var(--mfb-container);
		box-sizing: border-box;
	}
	.mfb-header__actions {
		order: 1;
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		gap: 6px;
		flex: 0 1 auto;
		min-width: 0;
	}
	.mfb-header__lang.mfb-lang-dd {
		max-width: min(42vw, 200px);
	}
	.mfb-header__logo {
		order: 2;
		margin-inline-start: auto;
		flex-shrink: 0;
	}
}
@media (min-width: 1024px) {
	/* Never show the drawer chrome on desktop even if class stuck */
	.mfb-header__drawer.mobile-draw {
		display: none;
	}
}

/* ---- Topbar / announcement (matches .us announcement-bar carousel layout) */
#mfb-section-topbar.mfb-topbar,
.mfb-topbar {
	position: relative;
	z-index: 1;
	background: var(--mfb-brand);
	background-color: var(--mfb-brand) !important;
	color: #fff;
	text-align: center;
	padding-block: 0;
}
@media (max-width: 1023px) {
	#mfb-section-topbar.mfb-topbar,
	.mfb-topbar {
		overflow: hidden;
		transition: max-height 0.3s ease, opacity 0.22s ease, visibility 0.22s ease;
	}
	.mfb-site-head:not(.is-topbar-collapsed) .mfb-topbar {
		max-height: 240px;
	}
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	#mfb-section-topbar.mfb-topbar,
	.mfb-topbar {
		transition: none;
	}
}
.mfb-topbar__bg {
	width: 100%;
	box-sizing: border-box;
}
/* announcement__container + announcement__container--carousel */
.mfb-topbar__container {
	position: relative;
	width: 90%;
	max-width: 100%;
	margin-inline: auto;
	overflow: hidden;
	box-sizing: border-box;
}
.mfb-topbar__container--carousel {
	padding-inline: 24px;
	/* Physical chevrons like .us (LTR); message track keeps dir from markup */
	direction: ltr;
}
.mfb-topbar__carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: block;
	line-height: 1;
	padding: 6px;
	margin: 0;
	border: none;
	background: none;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}
.mfb-topbar__carousel-button--prev {
	left: 0;
}
.mfb-topbar__carousel-button--next {
	right: 0;
}
.mfb-topbar__carousel-icon {
	display: block;
	line-height: 1;
	transition: opacity 0.2s ease-in-out;
}
.mfb-topbar__carousel-button:hover .mfb-topbar__carousel-icon,
.mfb-topbar__carousel-button:focus-visible .mfb-topbar__carousel-icon {
	opacity: 0.7;
}
.mfb-topbar__carousel-svg {
	display: block;
}
.mfb-topbar__carousel-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
/* Track: one slide; matches .us message + icon row */
.mfb-topbar__track.mfb-topbar--carousel {
	position: relative;
	min-height: 48px;
	overflow: hidden;
	box-sizing: border-box;
}
.mfb-topbar__track.mfb-topbar--carousel .mfb-topbar__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding-block: 12px;
	padding-inline: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	pointer-events: none;
	z-index: 0;
}
.mfb-topbar__track.mfb-topbar--carousel .mfb-topbar__item.is-active {
	opacity: 0.95;
	visibility: visible;
	z-index: 1;
}
/* announcement__text + announcement__text--body + announcement__icon */
.mfb-topbar__text {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	line-height: 24px;
	text-align: center;
}
.mfb-topbar__text--body,
.mfb-topbar__text-label {
	font-size: 0.85rem;
	letter-spacing: 0;
	font-weight: 400;
}
.mfb-topbar__text-label {
	white-space: nowrap;
}
.mfb-topbar__icon {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	color: #fff;
	flex-shrink: 0;
}
.mfb-topbar__icon-svg {
	display: block;
	width: 1.3rem;
	height: 1.3rem;
	color: inherit;
}
@media (max-width: 767px) {
	.mfb-topbar__text--body,
	.mfb-topbar__text-label {
		font-size: 0.8rem;
	}
	.mfb-topbar__icon-svg {
		width: 1.2rem;
		height: 1.2rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mfb-topbar__track.mfb-topbar--carousel .mfb-topbar__item {
		transition: none;
	}
}
.mfb-topbar__item {
	opacity: inherit;
}

/* ---- Hero ------------------------------------------------------------ */
.mfb-hero {
	background: linear-gradient(180deg, var(--mfb-bg) 0%, var(--mfb-bg-dark) 100%);
	padding-block: clamp(64px, 10vw, 120px);
}
.mfb-hero__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
	.mfb-hero__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.mfb-hero__title {
	font-size: clamp(36px, 5vw + 1rem, 64px);
	font-weight: 800;
	line-height: 1.05;
	margin-block: 0 24px;
}
.mfb-hero__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 28px; }
.mfb-chip {
	display: inline-flex;
	padding: 8px 18px;
	border-radius: var(--mfb-radius-pill);
	background: rgba(255, 255, 255, 0.6);
	color: var(--mfb-text);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--mfb-text-lightest);
	cursor: pointer;
	transition: all var(--mfb-transition);
}
.mfb-chip:hover, .mfb-chip[aria-pressed="true"] { background: var(--mfb-brand); color: #fff; border-color: var(--mfb-brand); }
.mfb-hero__image {
	border-radius: var(--mfb-radius-card);
	overflow: hidden;
	box-shadow: var(--mfb-shadow-card);
}

/* Home: pull full-bleed hero under topbar + sticky header so transparent bar sits over the video (not grey body bg) */
body.mfb-home {
	--mfb-hero-underlap: clamp(92px, 22vw, 132px);
}
body.mfb-home #mfb-section-hero.mfb-hero--video {
	position: relative;
	z-index: 0;
	margin-block-start: calc(-1 * var(--mfb-hero-underlap));
}
body.mfb-home #mfb-section-hero.mfb-hero--video .mfb-hero__inner {
	padding-block-start: calc(var(--mfb-hero-underlap) + 12px);
}

/* Video hero variant: full-bleed looping background with overlay for legibility. */
.mfb-hero--video {
	position: relative;
	overflow: hidden;
	min-height: clamp(420px, 70vh, 720px);
	display: flex;
	align-items: center;
	color: #fff;
}
.mfb-hero--video .mfb-hero__inner {
	position: relative;
	z-index: 2;
	display: block;
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
}
/* .us image-banner__content stack: logo → two-line headline → Shop now */
.mfb-hero--video .mfb-image-banner__content,
.mfb-hero--video .image-banner__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
}
/* Official .us wordmark PNG (not live type) */
.mfb-hero--video .mfb-image-banner__wordmark {
	display: block;
	margin-block-end: clamp(12px, 2.2vw, 22px);
	line-height: 0;
}
.mfb-hero--video .mfb-image-banner__wordmark-img {
	display: block;
	margin-inline: auto;
	width: min(280px, 72vw);
	max-width: 100%;
	height: auto;
	object-fit: contain;
}
.mfb-hero--video .mfb-image-banner__headline {
	margin: 0 0 clamp(18px, 3vw, 28px);
	padding: 0;
	font-family: var(--mfb-font-heading, "Poppins", system-ui, sans-serif);
	font-weight: 800;
	color: #fff;
	line-height: 1.08;
	letter-spacing: -0.02em;
	max-width: min(90vw, 22rem);
}
.mfb-hero--video .mfb-image-banner__line {
	display: block;
}
.mfb-hero--video .mfb-image-banner__line--1 {
	font-size: clamp(34px, 7vw, 40px);
}
.mfb-hero--video .mfb-image-banner__line--2 {
	font-size: clamp(30px, 6vw, 40px);
	font-weight: 600;
	opacity: 0.96;
	margin-block-start: 0.06em;
}
.mfb-hero--video .mfb-hero__cta {
	margin-block-start: 0;
}
.mfb-hero--video .mfb-section-title::after,
.mfb-hero--video .mfb-eyebrow { margin-inline: auto; }
.mfb-hero--video .mfb-hero__title { color: #fff; }
.mfb-hero--video .mfb-eyebrow { color: var(--mfb-accent); }
.mfb-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.mfb-hero__overlay {
	position: absolute;
	inset: 0;
	/* Matches the source: solid black at 30% opacity, no green tint. */
	background: rgba(0, 0, 0, 0.30);
	z-index: 1;
}
.mfb-hero--video .mfb-chip {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}
.mfb-hero--video .mfb-chip:hover,
.mfb-hero--video .mfb-chip[aria-pressed="true"] {
	background: #fff;
	color: var(--mfb-text);
	border-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
	.mfb-hero__video { display: none; }
	.mfb-hero--video {
		background-image: var(--mfb-hero-poster, none);
		background-size: cover;
		background-position: center;
	}
}

/* ---- Product grid + card (myfirstbook.us .product-card parity) ----- */
.mfb-product-grid,
.mfb-shop-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 18px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (min-width: 768px)  { .mfb-product-grid, .mfb-shop-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 22px; } }
@media (min-width: 1100px) { .mfb-product-grid, .mfb-shop-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }

.mfb-card-wrap { list-style: none; }
.mfb-card {
	position: relative;
	display: block;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}
.mfb-card__top {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: rgba(27, 62, 20, 0.04);
}
.mfb-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.mfb-card__media {
	width: 100%;
	height: 100%;
	position: relative;
}
.mfb-card__img,
.mfb-card__img--hover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 350ms ease, transform 700ms ease;
}
.mfb-card__img--hover { opacity: 0; }
.mfb-card--has-hover:hover .mfb-card__img { opacity: 0; }
.mfb-card--has-hover:hover .mfb-card__img--hover { opacity: 1; }
.mfb-card:hover .mfb-card__img,
.mfb-card:hover .mfb-card__img--hover { transform: scale(1.03); }

/* Ribbon: top inline-start, tiny pill, .us colors */
.mfb-card__ribbon {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 3;
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.2;
}
.mfb-card__ribbon--beloved-ip      { background: rgba(255, 92, 122, 0.85); }
.mfb-card__ribbon--customer-favorite { background: rgba(75, 149, 96, 0.92); }
.mfb-card__ribbon--most-montessori { background: rgba(27, 62, 20, 0.92); }
.mfb-card__ribbon--new             { background: rgba(245, 180, 0, 0.95); color: #1b3e14; }

/* Add-to-cart overlay button on hover (desktop). On mobile, small pill at the bottom. */
.mfb-card__add {
	position: absolute;
	inset-inline: 12px;
	inset-block-end: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 16px;
	background: #fff;
	color: var(--mfb-text);
	border: 1px solid rgba(27, 62, 20, 0.15);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease, background 150ms ease, color 150ms ease;
}
.mfb-card:hover .mfb-card__add,
.mfb-card__add:focus-visible {
	opacity: 1;
	transform: translateY(0);
}
.mfb-card__add:hover { background: var(--mfb-text); color: #fff; border-color: var(--mfb-text); }
.mfb-card__add.loading::after,
.mfb-card__add.added::after { content: ""; }
.mfb-card__add.added { background: var(--mfb-brand); color: #fff; border-color: var(--mfb-brand); }
.mfb-card__add.added .mfb-card__add-label::after { content: " ✓"; }

/* Touch devices: always show the add-to-cart at the bottom edge, no hover */
@media (hover: none) {
	.mfb-card__add { opacity: 1; transform: none; }
}

/*
 * WooCommerce Blocks (Product Collection, legacy grids, Product Button block)
 * output `wp-block-button__link` + core theme.json colors — often default blue.
 * Scope to product CTAs only so random Button blocks on static pages stay unchanged.
 */
.wc-block-grid__product-add-to-cart .wp-block-button__link.add_to_cart_button,
.wc-block-grid__product-add-to-cart a.wp-block-button__link,
.wp-block-woocommerce-product-button .wp-block-button__link,
.wp-block-woocommerce-product-button .wc-block-components-product-button__button,
.wc-block-components-product-button .wc-block-components-product-button__button,
a.wp-block-button__link.add_to_cart_button.ajax_add_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	padding: 10px 18px;
	margin: 0;
	background: var(--mfb-text) !important;
	color: #fff !important;
	border: 1.5px solid var(--mfb-text) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	text-decoration: none !important;
	font-family: inherit;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 80ms ease;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link.add_to_cart_button:hover,
.wc-block-grid__product-add-to-cart a.wp-block-button__link:hover,
.wp-block-woocommerce-product-button .wp-block-button__link:hover,
.wp-block-woocommerce-product-button .wc-block-components-product-button__button:hover,
.wc-block-components-product-button .wc-block-components-product-button__button:hover,
a.wp-block-button__link.add_to_cart_button.ajax_add_to_cart:hover {
	background: var(--mfb-brand) !important;
	border-color: var(--mfb-brand) !important;
	color: #fff !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link.add_to_cart_button:active,
.wp-block-woocommerce-product-button .wc-block-components-product-button__button:active,
.wc-block-components-product-button .wc-block-components-product-button__button:active,
a.wp-block-button__link.add_to_cart_button.ajax_add_to_cart:active {
	transform: translateY(1px);
}

/* Details below the image */
.mfb-card__details {
	padding-block-start: 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mfb-card__title-link { color: inherit; text-decoration: none; }
.mfb-card__title {
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--mfb-text);
	letter-spacing: 0;
}
@media (min-width: 1024px) { .mfb-card__title { font-size: 15px; } }

/* Hover-revealed price + swatches (matches .us product-card__details__hover) */
.mfb-card__hover {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease;
}
.mfb-card:hover .mfb-card__hover,
.mfb-card:focus-within .mfb-card__hover {
	opacity: 1;
	transform: translateY(0);
}
@media (hover: none) {
	.mfb-card__hover { opacity: 1; transform: none; }
}

.mfb-card__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--mfb-text);
	line-height: 1.3;
}
.mfb-card__price del { color: rgba(27, 62, 20, 0.55); font-weight: 500; margin-inline-end: 6px; text-decoration: line-through; }
.mfb-card__price ins { background: transparent; text-decoration: none; font-weight: 700; }

/* Save % pill — pale yellow-green, matches .us .price__savings-pill */
.mfb-price-pill {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 1px 8px;
	background: #eafdb6;
	color: #1b3e14;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 3px;
	vertical-align: middle;
}
.mfb-save-pill {
	display: inline-block;
	background: var(--mfb-sale, #e53935);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}

/* Variant swatch dots */
.mfb-card__swatches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 6px;
}
.mfb-card__swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch-color, #ccc);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: inset 0 0 0 2px #fff;
}

/* Legacy ribbon class kept for back-compat (any old patterns) */
.mfb-ribbon {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	background: rgba(75, 149, 96, 0.92);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	z-index: 3;
}

/* ---- Trust strip (3 columns on homepage) ---------------------------- */
.mfb-trust {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	text-align: center;
}
.mfb-trust--3 {
	max-width: 1100px;
	margin-inline: auto;
}
@media (min-width: 640px) {
	.mfb-trust--3 {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px 32px;
		align-items: start;
	}
}
.mfb-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.mfb-trust__icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	margin-block-end: 12px;
	color: var(--mfb-brand);
}
.mfb-trust__title {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	margin-block-end: 6px;
}
.mfb-trust__body {
	color: var(--mfb-text-light);
	font-size: 14px;
	line-height: 1.5;
	max-width: 22em;
	margin-inline: auto;
}

/* ---- Feature cards (Montessori 4-card row) -------------------------- */
/* ---- Multi-column images section (matches .us section_multi_column_images_A47aYB)
   Source values, pinned exactly:
     background:         #addc91 (mint)
     image placeholder:  #4a9f53
     title + text color: #1b3e14
     title size desktop: 1.48rem; mobile: 1.43rem
     4 cols desk / 2 cols mob, 30px gap
   ------------------------------------------------------------------- */
.mfb-multicol {
	background: #addc91;
	padding-block: clamp(48px, 6vw, 80px);
	color: #1b3e14;
}
.mfb-multicol .mfb-section-title { color: #1b3e14; }
.mfb-multicol .mfb-section-title::after { background: #1b3e14; }
.mfb-multicol .mfb-feature__title { color: #1b3e14; }
.mfb-multicol .mfb-feature__text { color: #1b3e14; opacity: 0.9; }
.mfb-multicol .mfb-feature__media { background: #4a9f53; }
.mfb-multicol .mfb-feature__title {
	font-size: 1.48rem;
	line-height: 1.4;
	font-weight: 700;
}
@media (max-width: 767px) {
	.mfb-multicol .mfb-feature__title { font-size: 1.43rem; line-height: 1.42; }
}


.mfb-feature-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 15px;
	row-gap: 36px;
}
@media (min-width: 768px) {
	.mfb-feature-row {
		column-gap: 30px;
		row-gap: 30px;
	}
}
@media (min-width: 1024px) {
	.mfb-feature-row {
		grid-template-columns: repeat(4, 1fr);
	}
}
.mfb-feature {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	text-align: center;
	max-width: 400px;
	margin-inline: auto;
	width: 100%;
}
.mfb-feature__media {
	aspect-ratio: 1 / 1;
	background: var(--mfb-bg-dark);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}
.mfb-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mfb-feature__body {
	padding: 0;
	max-width: 400px;
	margin-inline: auto;
}
.mfb-feature__title {
	font-weight: 700;
	font-size: clamp(16px, 0.6vw + 0.85rem, 20px);
	line-height: 1.35;
	margin: 0;
	color: var(--mfb-text);
}
.mfb-feature__text {
	color: var(--mfb-text-light);
	font-size: 15px;
	line-height: 1.6;
	margin: 6px 0 0;
}

body.mfb-locale-ar .mfb-feature__title {
	font-family: var(--mfb-font-heading);
}

body.mfb-locale-ar .mfb-feature__text {
	font-family: var(--mfb-font-body);
}

/* ---- Shipped-globally banner ---------------------------------------- */
.mfb-shipped-band {
	background: var(--mfb-bg);
	overflow: hidden;
}
.mfb-shipped-band img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---- Image-with-text overlap bands (matches .us .image-with-text--overlap)
   Section bg cream (#f1f2ed). Each row: large video + small colored box
   that overlaps the video's inline edge by ~80px on desktop.
   Box position alternates via .mfb-iwt--reverse.
   ------------------------------------------------------------------- */
.mfb-iwt-section {
	background: #f1f2ed;
	padding-block: clamp(40px, 6vw, 80px);
	display: flex;
	flex-direction: column;
	gap: clamp(64px, 8vw, 120px);
}
/* Use the source's wider container--large (1400px) for these bands */
.mfb-iwt-section .mfb-container {
	max-width: 1400px;
	padding-inline: 30px;
}
.mfb-iwt { color: var(--iwt-text, var(--mfb-text)); }

/* Defaults (mobile-first ≤ 900px): stacked.
   Video full width, box centered below it, overlapping upward by -30px (source value). */
.mfb-iwt__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}
.mfb-iwt__media { width: 100%; position: relative; z-index: 1; }
.mfb-iwt__ratio {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: var(--mfb-bg-dark);
	box-shadow: 0 6px 24px rgba(27, 62, 20, 0.08);
}
.mfb-iwt__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mfb-iwt__box {
	position: relative;
	z-index: 2;
	background: var(--iwt-box-bg, #addc91);
	color: var(--iwt-text, var(--mfb-text));
	padding: 36px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(27, 62, 20, 0.15);
	width: min(88%, 480px);
	margin-block-start: -30px; /* source: ≤980px margin-top: -30px */
}

/* Desktop (≥ 901px): true overlap.
   Source layout = .o-layout with u-3/4@desk video + u-1/4@desk box,
   then box negative margin -100px slides it OVER the video edge.
   We replicate with flex (auto-RTL via flex-direction). */
@media (min-width: 901px) {
	.mfb-iwt__row {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0;
		width: 100%;
	}
	.mfb-iwt--reverse .mfb-iwt__row {
		flex-direction: row-reverse;
	}
	.mfb-iwt__media {
		flex: 0 0 66%;
		width: 66%;
	}
	.mfb-iwt__box {
		flex: 0 0 34%;
		width: 34%;
		max-width: none;
		padding: 60px; /* source desktop value */
		margin-block-start: 0;
	}
	/* Default row (media | box): box overlaps OVER the media's end edge.
	   In LTR that means box pulls left (margin-left: -100px);
	   in RTL that means box pulls right — both expressed as margin-inline-start. */
	.mfb-iwt:not(.mfb-iwt--reverse) .mfb-iwt__box {
		margin-inline-start: -100px;
	}
	/* Reversed row (box | media): box overlaps the other side of the video.
	   Now the overlap is on the box's inline-END side, not start. */
	.mfb-iwt--reverse .mfb-iwt__box {
		margin-inline-end: -100px;
	}
}

/* Very small screens: full width, no overlap */
@media (max-width: 560px) {
	.mfb-iwt__box {
		width: 100%;
		max-width: 100%;
		padding: 36px;
		margin-block-start: 0;
		border-radius: 0;
	}
}
.mfb-iwt__title {
	/* Source: .h2 = 31px × 1.2 (title--3) ≈ 37px */
	font-size: clamp(26px, 2.2vw + 0.6rem, 37px);
	font-weight: 800;
	line-height: 1.25;
	color: inherit;
	margin: 0 0 16px;
}

body.mfb-locale-ar .mfb-iwt__title {
	font-family: var(--mfb-font-heading);
}

.mfb-iwt__text {
	/* Source base 15.6px */
	font-size: clamp(15px, 0.4vw + 0.85rem, 17px);
	line-height: 1.6;
	color: inherit;
	opacity: 0.95;
	margin: 0 0 28px;
}
.mfb-iwt__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--iwt-text, var(--mfb-text));
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: opacity var(--mfb-transition);
}
.mfb-iwt__btn:hover { opacity: 0.85; color: #fff; }

/* ---- Image-compare section: media (left) + 3 features list (right)
   Mirrors .us .image-compare grid: 2fr media / 1fr features, gap 42px,
   stacks at ≤1080px with features below.
   ------------------------------------------------------------------- */
.mfb-imgcmp-container { max-width: 1400px; padding-inline: 30px; }
.mfb-imgcmp-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	column-gap: 42px;
	row-gap: 48px;
	align-items: center;
}
@media (max-width: 1080px) {
	.mfb-imgcmp-grid {
		grid-template-columns: 1fr;
	}
	.mfb-imgcmp-features { order: 1; }
}

.mfb-imgcmp-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	row-gap: 36px;
}
.mfb-imgcmp-feature {
	display: grid;
	grid-template-columns: 32px 1fr;
	column-gap: 16px;
	align-items: start;
	max-width: 380px;
}
.mfb-imgcmp-feature__icon {
	color: #1b3e14;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}
.mfb-imgcmp-feature__icon svg { width: 100%; height: 100%; }
.mfb-imgcmp-feature__content { display: grid; row-gap: 4px; }
.mfb-imgcmp-feature__title {
	font-size: 1.18rem;
	line-height: 1.4;
	font-weight: 700;
	color: #1b3e14;
	margin: 0;
}
.mfb-imgcmp-feature__text {
	font-size: 15px;
	line-height: 1.8;
	color: #1b3e14;
	opacity: 0.85;
	margin: 0;
}

body.mfb-locale-ar .mfb-imgcmp-feature__title {
	font-family: var(--mfb-font-heading);
}

body.mfb-locale-ar .mfb-imgcmp-feature__text {
	font-family: var(--mfb-font-body);
}

@media (max-width: 767px) {
	.mfb-imgcmp-feature__title { font-size: 1.08rem; line-height: 1.5; }
	.mfb-imgcmp-features { row-gap: 28px; }
}

/* ---- The compare media itself ---- */
.mfb-imgcmp {
	width: 100%;
}
.mfb-imgcmp__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--mfb-radius-card);
	overflow: hidden;
	box-shadow: var(--mfb-shadow-card);
	background: var(--mfb-bg-dark);
	user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
}
.mfb-imgcmp__item {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.mfb-imgcmp__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
}
/* The "after" layer is clipped on the physical right side.
   JS uses physical `left` to keep behaviour identical in LTR and RTL. */
.mfb-imgcmp__item--after {
	clip-path: inset(0 0 0 50%);
}
.mfb-imgcmp__label {
	position: absolute;
	inset-block-end: 18px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
	pointer-events: none;
}
.mfb-imgcmp__label--before { inset-inline-start: 18px; }
.mfb-imgcmp__label--after  { inset-inline-end: 18px; }

/* Vertical divider line, follows the clip edge */
.mfb-imgcmp__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 4px;
	background: #fff;
	transform: translateX(-50%);
	pointer-events: none;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
	z-index: 3;
}

/* Centered round drag handle, positioned by `left` to match the divider exactly */
.mfb-imgcmp__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #fff;
	color: #1b3e14;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	cursor: ew-resize;
	pointer-events: auto;
	transition: transform 120ms ease, box-shadow 120ms ease;
	z-index: 4;
}
.mfb-imgcmp__handle:hover,
.mfb-imgcmp__handle:focus-visible {
	transform: translate(-50%, -50%) scale(1.06);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

/* Hidden native range still drives keyboard accessibility */
.mfb-imgcmp__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	margin: 0;
	cursor: ew-resize;
	z-index: 4;
}

.mfb-imgcmp__hint {
	margin-block-start: 16px;
	color: var(--mfb-text-light);
	font-size: 14px;
}

/* ---- Closing full-bleed map banner (matches .us image-banner--full)
   Dark-green background with the world map centered on top.
   Heights mirror source: 390px desktop / 150px mobile.
   ------------------------------------------------------------------- */
.mfb-mapbanner {
	position: relative;
	width: 100%;
	background-color: #1b3e14;
	height: 390px;
	overflow: hidden;
}
/* Map fills the band edge-to-edge, cropped vertically as needed.
   Matches source where the map image is sized to 100vw and cover-fit. */
.mfb-mapbanner__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0.95;
	pointer-events: none;
	user-select: none;
}
@media (max-width: 767px) {
	.mfb-mapbanner { height: 150px; }
}

/* ---- Marquee (matches myfirstbook.us scrolling-marquee + theme-critical)
   Grid of 3 columns; each .mfb-marquee__set animates translate(calc(-100% - gap)).
   JS sets animation-duration per column: (offsetWidth + columnGap) / (speed*10),
   marquee-speed default 2 — same formula as .us scrolling-marquee.js.
   ------------------------------------------------------------------- */
.mfb-marquee {
	--mfb-marquee-gap: 5.25rem;
	position: relative;
	overflow: hidden;
	background: #4b9560;
	color: #f1f2ed;
	padding-block: 22px;
}
.mfb-marquee__viewport {
	position: relative;
	display: grid;
	grid: auto / auto-flow max-content;
	justify-content: center;
	overflow: hidden;
	column-gap: var(--mfb-marquee-gap);
	row-gap: 0;
	/* LTR grid so motion matches .us; copy reads RTL inside .mfb-marquee__item */
	direction: ltr;
}
.mfb-marquee__set {
	display: flex;
	justify-content: space-around;
	align-items: center;
	min-width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
	gap: var(--mfb-marquee-gap);
	animation-name: mfb-marquee-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	/* animation-duration set in main.js (matches .us scrolling-marquee.js) */
}
.mfb-marquee:hover .mfb-marquee--pause,
.mfb-marquee:focus-within .mfb-marquee--pause {
	animation-play-state: paused;
}
.mfb-marquee__item {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: var(--mfb-marquee-gap);
	direction: rtl;
}
.mfb-marquee__item::before {
	content: "★";
	opacity: 0.9;
	font-size: 1.2em;
}
@media (max-width: 767px) {
	.mfb-marquee {
		--mfb-marquee-gap: 3.0675rem;
	}
	.mfb-marquee__set {
		font-size: 1.35rem;
	}
}

@keyframes mfb-marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(calc(-100% - var(--mfb-marquee-gap)), 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.mfb-marquee__set {
		animation: none !important;
	}
}

/* ---- Banner band (Ready-to-give, Wide, Grow) ----------------------- */
.mfb-band {
	display: grid;
	gap: 32px;
	align-items: center;
}
@media (min-width: 900px) { .mfb-band { grid-template-columns: 1fr 1fr; gap: 64px; } }
.mfb-band__media { border-radius: var(--mfb-radius-card); overflow: hidden; box-shadow: var(--mfb-shadow-card); }
.mfb-band__body { padding-block: 24px; }
.mfb-band--reverse .mfb-band__media { order: 2; }
@media (max-width: 899px) { .mfb-band--reverse .mfb-band__media { order: 0; } }

/* ---- Footer (matches .us .footer.footer--dark exactly)
   Source values:
     background:          #addc91 (mint)
     text:                #212121cc (dark, 80% alpha)
     hover text:          #212121
     footer__content pad: 60px 0 18px
     footer__bottom pad:  12px 0 (min-height 66px)
     3 cols desktop (u-1/3), 2 cols tablet (u-1/2), 1 col mobile
   ------------------------------------------------------------------- */
.mfb-footer--dark {
	background: #addc91;
	color: rgba(33, 33, 33, 0.8);
}
.mfb-footer--dark a {
	color: rgba(33, 33, 33, 0.8);
	text-decoration: none;
	transition: color var(--mfb-transition);
}
.mfb-footer--dark a:hover { color: #212121; opacity: 1; }

.mfb-footer__content { padding: 60px 0 18px; }

.mfb-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
@media (min-width: 768px) {
	.mfb-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.mfb-footer__cols { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}

.mfb-footer__col { margin-bottom: 30px; }

.mfb-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mfb-footer__nav li { margin-bottom: 6px; }
.mfb-footer__nav a {
	font-size: 14px;
	line-height: 1.7;
}
.mfb-footer__nav .sub-menu {
	list-style: none;
	margin: 6px 0 0;
	padding-inline-start: 1rem;
}
.mfb-footer__nav .sub-menu li { margin-bottom: 4px; }

.mfb-footer__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #212121;
}

.mfb-footer__heading {
	color: #212121;
	font-weight: 700;
	margin: 0 0 12px;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Parent `h3` typography (e.g. Poppins) wins over body; match Arabic UI font. */
body.mfb-locale-ar .mfb-footer__heading {
	font-family: var(--mfb-font-heading);
}

.mfb-footer__social {
	display: flex;
	gap: 14px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mfb-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: rgba(33, 33, 33, 0.8);
}
.mfb-footer__social a:hover { color: #212121; }

.mfb-footer__bottom {
	background: #addc91;
	padding: 12px 0;
	min-height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	border-top: 1px solid rgba(33, 33, 33, 0.12);
}
.mfb-footer__pay {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}
.mfb-footer__pay img {
	width: 36px;
	height: 22px;
	object-fit: contain;
	opacity: 0.8;
}
.mfb-footer__copy {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(33, 33, 33, 0.8);
}

@media (max-width: 767px) {
	.mfb-footer__bottom {
		justify-content: center;
		align-items: center;
		flex-direction: column;
		text-align: center;
	}
	.mfb-footer__pay {
		justify-content: center;
	}
	.mfb-footer__copy {
		text-align: center;
		width: 100%;
	}
}

/* ---- Slideshow (full-width banner slider) -------------------------- */
.mfb-slideshow {
	position: relative;
	overflow: hidden;
	background: var(--mfb-bg-dark);
}
.mfb-slideshow__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mfb-slideshow__track::-webkit-scrollbar { display: none; }
.mfb-slideshow__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	display: block;
}
.mfb-slideshow__slide img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 560px;
	object-fit: cover;
}
.mfb-slideshow__dots {
	position: absolute;
	inset-block-end: 16px;
	inset-inline: 0;
	display: flex;
	gap: 8px;
	justify-content: center;
	z-index: 2;
}
.mfb-slideshow__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 1px solid #fff;
	background: rgba(255, 255, 255, 0.4);
	padding: 0;
	cursor: pointer;
	transition: background var(--mfb-transition), transform var(--mfb-transition);
}
.mfb-slideshow__dot.is-active {
	background: var(--mfb-brand);
	border-color: var(--mfb-brand);
	transform: scale(1.2);
}

/* ---- Video reels (TikTok-style horizontal carousel) ---------------- */
.mfb-reels__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-block-end: 8px;
	scrollbar-width: thin;
}
.mfb-reel {
	position: relative;
	flex: 0 0 auto;
	width: clamp(180px, 26vw, 240px);
	aspect-ratio: 9 / 16;
	border-radius: var(--mfb-radius-card);
	overflow: hidden;
	background: #000;
	scroll-snap-align: start;
	box-shadow: var(--mfb-shadow-card);
}
.mfb-reel__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mfb-reel__mute {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-end: 10px;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}
.mfb-reel.is-muted .mute-x { display: inline; }
.mfb-reel:not(.is-muted) .mute-x { display: none; }

/* ---- Footer v2 ----------------------------------------------------- */
.mfb-footer-v2 {
	background: #0e1f0a;
	color: rgba(255, 255, 255, 0.85);
	padding-block: 56px 24px;
	margin-block-start: 80px;
}
.mfb-footer-v2 a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color var(--mfb-transition);
}
.mfb-footer-v2 a:hover { color: var(--mfb-accent); }
.mfb-footer-v2__brand {
	display: grid;
	gap: 16px;
	max-width: 560px;
	margin-block-end: 48px;
}
.mfb-footer-v2__logo { max-height: 48px; width: auto; filter: brightness(0) invert(1); }
.mfb-footer-v2__logo-text { font-weight: 800; font-size: 22px; color: #fff; }
.mfb-footer-v2__tagline { font-size: 14px; line-height: 1.7; }
.mfb-footer-v2__social { display: flex; gap: 12px; }
.mfb-footer-v2__social a {
	width: 36px; height: 36px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mfb-footer-v2__social a:hover { background: var(--mfb-brand); color: #fff; }
.mfb-footer-v2__cols {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}
@media (min-width: 700px) { .mfb-footer-v2__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mfb-footer-v2__cols { grid-template-columns: repeat(4, 1fr); } }
.mfb-footer-v2__heading {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	letter-spacing: 0.5px;
}

body.mfb-locale-ar .mfb-footer-v2__heading {
	font-family: var(--mfb-font-heading);
}

.mfb-footer-v2__cols ul { list-style: none; padding: 0; margin: 0; }
.mfb-footer-v2__cols ul li { margin-block-end: 8px; font-size: 14px; }
.mfb-footer-v2__newsletter-text { font-size: 13px; margin-block-end: 12px; line-height: 1.6; }
.mfb-footer-v2__newsletter {
	display: flex;
	gap: 0;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	padding: 4px;
}
.mfb-footer-v2__newsletter input {
	flex: 1;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 8px 16px;
	font-size: 14px;
	outline: none;
}
.mfb-footer-v2__newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.mfb-footer-v2__newsletter button {
	border-radius: 999px;
	padding: 8px 18px;
}
.mfb-footer-v2__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-start: 20px;
	align-items: center;
}
.mfb-footer-v2__pay img {
	height: 16px;
	opacity: 0.8;
	transition: opacity var(--mfb-transition);
}
.mfb-footer-v2__pay img:hover { opacity: 1; }
.mfb-footer-v2__bottom {
	margin-block-start: 40px;
	padding-block-start: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 12px;
	align-items: center;
}
.mfb-footer-v2__lang ul {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mfb-footer-v2__lang a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

/* ---- Mini cart shipping bar ---------------------------------------- */
.mfb-shipbar { padding: 14px 18px; background: var(--mfb-bg-dark); border-radius: 12px; font-size: 13px; }
.mfb-shipbar__progress { height: 6px; background: rgba(0, 0, 0, 0.06); border-radius: 999px; overflow: hidden; margin-block-start: 8px; }
.mfb-shipbar__fill { height: 100%; background: var(--mfb-brand); transition: width 400ms ease; }

/* ---- Focus visible everywhere -------------------------------------- */
:focus-visible {
	outline: 2px solid var(--mfb-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ====================================================================
   NON-HOME PAGES (Phase 2)
   ==================================================================== */

/* ---- Container widths ---------------------------------------------- */
.mfb-container--tiny   { max-width: 740px; }
.mfb-container--medium { max-width: 1100px; }
.mfb-container--large  { max-width: 1400px; }

/* ---- Generic form inputs (used on cart/checkout/contact/account) --- */
.mfb-input,
.mfb-checkout input[type="text"],
.mfb-checkout input[type="email"],
.mfb-checkout input[type="tel"],
.mfb-checkout input[type="password"],
.mfb-checkout input[type="number"],
.mfb-checkout select,
.mfb-checkout textarea,
.mfb-cart input[type="text"],
.mfb-cart input[type="email"] {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	color: var(--mfb-text);
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.18);
	border-radius: 10px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	box-sizing: border-box;
}
.mfb-textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.mfb-input:focus,
.mfb-checkout input:focus,
.mfb-checkout select:focus,
.mfb-checkout textarea:focus {
	outline: none;
	border-color: var(--mfb-brand);
	box-shadow: 0 0 0 3px rgba(75, 149, 96, 0.18);
}
.mfb-field { display: block; margin-block-end: 16px; }
.mfb-field > span { display: block; font-size: 14px; font-weight: 600; margin-block-end: 6px; color: var(--mfb-text); }

/* ====================================================================
   WOOCOMMERCE — notices (.woocommerce-notices-wrapper)
   Card-style alerts for shop, cart, checkout, product, account.
   ==================================================================== */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-notices-wrapper {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--mfb-container);
	margin-inline: auto;
	margin-block: clamp(12px, 2vw, 24px);
	padding-inline: var(--mfb-gutter);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	box-sizing: border-box;
	position: relative;
	margin: 0;
	padding: 16px 20px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.55;
	font-weight: 600;
	color: var(--mfb-text);
	border: 1px solid rgba(27, 62, 20, 0.1);
	border-inline-start: 4px solid var(--mfb-brand);
	background: #fff;
	box-shadow: var(--mfb-shadow-card);
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
	display: none !important;
	content: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message {
	border-inline-start-color: var(--mfb-brand);
	background: rgba(75, 149, 96, 0.1);
	border-color: rgba(75, 149, 96, 0.22);
}

.woocommerce-notices-wrapper .woocommerce-info {
	border-inline-start-color: var(--mfb-accent-dark);
	background: rgba(153, 214, 234, 0.28);
	border-color: rgba(132, 205, 230, 0.35);
}

.woocommerce-notices-wrapper .woocommerce-error {
	border-inline-start-color: #b71c1c;
	background: rgba(204, 0, 0, 0.07);
	border-color: rgba(198, 40, 40, 0.2);
	list-style: none;
}

@supports (background: color-mix(in srgb, var(--mfb-brand) 10%, white)) {
	.woocommerce-notices-wrapper .woocommerce-message {
		background: color-mix(in srgb, var(--mfb-brand) 10%, #fff);
	}
	.woocommerce-notices-wrapper .woocommerce-info {
		background: color-mix(in srgb, var(--mfb-accent) 22%, #fff);
	}
	.woocommerce-notices-wrapper .woocommerce-error {
		background: color-mix(in srgb, var(--mfb-sale) 8%, #fff);
	}
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.woocommerce-notices-wrapper ul.woocommerce-error {
	display: block;
	padding-inline-start: 20px;
}

.woocommerce-notices-wrapper ul.woocommerce-error li {
	margin: 0;
	padding-block: 4px;
	font-weight: 600;
}

.woocommerce-notices-wrapper ul.woocommerce-error li:first-child {
	padding-block-start: 0;
}

.woocommerce-notices-wrapper .woocommerce-message a:not(.button),
.woocommerce-notices-wrapper .woocommerce-info a:not(.button),
.woocommerce-notices-wrapper .woocommerce-error a:not(.button) {
	color: var(--mfb-brand-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 700;
}

.woocommerce-notices-wrapper a.button,
.woocommerce-notices-wrapper .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 10px 22px !important;
	min-height: 0 !important;
	border-radius: var(--mfb-radius-pill) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.25 !important;
	background: var(--mfb-brand) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background var(--mfb-transition), transform 0.15s ease;
}

.woocommerce-notices-wrapper a.button:hover,
.woocommerce-notices-wrapper .button:hover {
	background: var(--mfb-brand-dark) !important;
	color: #fff !important;
}

.woocommerce-notices-wrapper a.button:focus-visible,
.woocommerce-notices-wrapper .button:focus-visible {
	background: var(--mfb-brand-dark) !important;
	color: #fff !important;
	outline: 2px solid var(--mfb-text);
	outline-offset: 3px;
}

/* Blocks (cart / checkout) */
.wc-block-components-notice-banner,
.wp-block-woocommerce-checkout-order-summary .wc-block-components-notice-banner {
	border-radius: 14px !important;
	font-weight: 600 !important;
	box-shadow: var(--mfb-shadow-card) !important;
}

/* ====================================================================
   SHOP / COLLECTION ARCHIVE  (#mfb-section-shop)
   Matches myfirstbook.us .template-collection (banner + drawer filter).
   ==================================================================== */
.mfb-shop-section { padding-block: 0 80px; background: #f1f2ed; }
.mfb-shop-container { max-width: 1400px; }

/* Banner: matches .us .collection__header — left-aligned title + intro
   inside a 50%-width cream card. Container is centred; the inner card is
   start-aligned. */
.mfb-shop-banner {
	padding-block: 48px 24px;
}
.mfb-shop-banner__inner {
	max-width: 600px;
	padding-block: 12px 4px;
}
.mfb-shop-banner__title {
	font-size: clamp(30px, 2.4vw + 0.6rem, 46px);
	font-weight: 800;
	color: var(--mfb-text);
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.1;
}
.mfb-shop-banner__text { margin-block-start: 14px; }
.mfb-shop-banner__text p {
	color: var(--mfb-text);
	margin-block: 0 8px;
	line-height: 1.55;
	font-size: clamp(15px, 0.4vw + 0.7rem, 17px);
}
.mfb-shop-banner__text p:last-child { margin-block-end: 0; }
.mfb-shop-banner__text strong { font-weight: 800; }

@media (max-width: 768px) {
	.mfb-shop-banner { padding-block: 28px 16px; }
	.mfb-shop-banner__inner { max-width: 100%; }
}

/* Actions row: "Filter and sort" button on the inline-start, result count on end */
.mfb-shop-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 16px 18px;
	margin-block-end: 18px;
	border-block-end: 1px solid rgba(27, 62, 20, 0.1);
	/* Only the filter control + result count belong here; hide stray WP menus/widgets. */
	contain: layout;
}
.mfb-shop-actions > *:not(.mfb-shop-filter-btn):not(.mfb-shop-toolbar) {
	display: none !important;
}
.mfb-shop-actions .page_item,
.mfb-shop-actions .page_item a,
.mfb-shop-actions ul.menu,
.mfb-shop-actions .menu-item-object-page,
.mfb-shop-actions .widget,
.mfb-shop-actions nav:has(.page_item),
.mfb-shop-actions nav:has(ul.menu) {
	display: none !important;
}
.mfb-shop-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	background: transparent;
	color: var(--mfb-text);
	border: 0;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 150ms ease;
}
.mfb-shop-filter-btn:hover { opacity: 0.75; }
.mfb-shop-filter-btn:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: 4px; border-radius: 6px; }
.mfb-shop-filter-btn svg { color: var(--mfb-text); }

.mfb-shop-toolbar {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}
.mfb-shop-toolbar .woo-listing-top {
	margin: 0;
	width: 100%;
	max-width: 100%;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px 16px;
}
html[dir="rtl"] .mfb-shop-toolbar .woo-listing-top {
	justify-content: flex-start;
}
.mfb-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--mfb-text-light);
	font-size: 13px;
}
.mfb-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

/* Active filter chips row (matches .us .collection__filters-active) */
.mfb-shop-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-end: 22px;
}
.mfb-shop-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff;
	color: var(--mfb-text);
	border: 1px solid rgba(27, 62, 20, 0.15);
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 150ms ease, color 150ms ease;
}
.mfb-shop-chip:hover { background: var(--mfb-text); color: #fff; border-color: var(--mfb-text); }
.mfb-shop-chip--clear { background: transparent; border-color: transparent; text-decoration: underline; }
.mfb-shop-chip--clear:hover { background: transparent; color: var(--mfb-brand); border-color: transparent; text-decoration: none; }

/* Full-width main column (no inline sidebar — sidebar lives in a drawer) */
.mfb-shop-main { min-width: 0; }

body.mfb-locale-ar .mfb-shop-banner__title,
body.mfb-locale-ar .mfb-shop-banner__text,
body.mfb-locale-ar .mfb-shop-filter-btn,
body.mfb-locale-ar .mfb-shop-toolbar,
body.mfb-locale-ar .mfb-shop-chip,
body.mfb-locale-ar .mfb-empty__title {
	font-family: var(--mfb-font-heading);
}

body.mfb-locale-ar .mfb-shop-sidebar {
	font-family: var(--mfb-font-body);
}

body.mfb-locale-ar .mfb-shop-sidebar__title {
	font-family: var(--mfb-font-heading);
}

body.mfb-locale-ar .mfb-shop-sidebar__body,
body.mfb-locale-ar .mfb-shop-sidebar__label,
body.mfb-locale-ar .mfb-shop-sidebar__check,
body.mfb-locale-ar .mfb-shop-sidebar__price,
body.mfb-locale-ar .mfb-shop-sidebar__apply,
body.mfb-locale-ar .mfb-shop-sidebar__reset,
body.mfb-locale-ar .mfb-shop-sidebar__clear,
body.mfb-locale-ar .mfb-empty__text,
body.mfb-locale-ar .mfb-shop-sidebar input,
body.mfb-locale-ar .mfb-shop-sidebar .widget {
	font-family: inherit;
}

body.mfb-locale-ar .mfb-shop-sidebar__price-cap,
body.mfb-locale-ar .mfb-shop-sidebar__price-sep {
	font-family: var(--mfb-font-body);
}

/* PDP — Arabic typography (parent theme can override generic h1 / price stacks). */
body.mfb-locale-ar.single-product .mfb-pdp__crumbs,
body.mfb-locale-ar.single-product .mfb-pdp__pills,
body.mfb-locale-ar.single-product .mfb-pdp__lede,
body.mfb-locale-ar.single-product .mfb-pdp__rating,
body.mfb-locale-ar.single-product .mfb-pdp__price,
body.mfb-locale-ar.single-product .mfb-pdp__qty-label,
body.mfb-locale-ar.single-product .mfb-pdp__qty-btn,
body.mfb-locale-ar.single-product .mfb-pdp__qty-input,
body.mfb-locale-ar.single-product .mfb-pdp__atc,
body.mfb-locale-ar.single-product .mfb-pdp__buy-now,
body.mfb-locale-ar.single-product .mfb-pdp__promise,
body.mfb-locale-ar.single-product .mfb-pdp__approved-title,
body.mfb-locale-ar.single-product .mfb-pdp__benefits-grid,
body.mfb-locale-ar.single-product .mfb-pdp-accordion__body,
body.mfb-locale-ar.single-product .mfb-page-body,
body.mfb-locale-ar.single-product .mfb-pdp-promo,
body.mfb-locale-ar.single-product .mfb-pdp-promo__body,
body.mfb-locale-ar.single-product .mfb-pdp-upsells,
body.mfb-locale-ar.single-product .mfb-pdp-lightbox,
body.mfb-locale-ar.single-product .mfb-pdp-reviews,
body.mfb-locale-ar.single-product .mfb-pdp-reviews .comment-form,
body.mfb-locale-ar.single-product .mfb-pdp-reviews .comment-form input,
body.mfb-locale-ar.single-product .mfb-pdp-reviews .comment-form textarea,
body.mfb-locale-ar.single-product .mfb-pdp-reviews .comment-form label,
body.mfb-locale-ar.single-product .mfb-pdp-reviews #respond input,
body.mfb-locale-ar.single-product .mfb-pdp-reviews #respond textarea,
body.mfb-locale-ar.single-product .mfb-pdp-reviews #respond label,
body.mfb-locale-ar.single-product .mfb-pdp-reviews .stars a,
body.mfb-locale-ar.single-product .mfb-pdp__summary table.variations,
body.mfb-locale-ar.single-product .mfb-pdp__summary .single_add_to_cart_button {
	font-family: var(--mfb-font-body);
}

body.mfb-locale-ar.single-product .mfb-pdp-upsells .mfb-card__title,
body.mfb-locale-ar.single-product .mfb-pdp-upsells .mfb-card__add-label {
	font-family: var(--mfb-font-body);
}

body.mfb-locale-ar.single-product .mfb-pdp__title,
body.mfb-locale-ar.single-product .mfb-pdp__benefits-title,
body.mfb-locale-ar.single-product .mfb-pdp-accordion summary,
body.mfb-locale-ar.single-product .mfb-pdp-promo__title,
body.mfb-locale-ar.single-product .mfb-pdp-upsells__title,
body.mfb-locale-ar.single-product .mfb-pdp-reviews .woocommerce-Reviews-title,
body.mfb-locale-ar.single-product .mfb-pdp-reviews #reviews .woocommerce-Reviews-title,
body.mfb-locale-ar.single-product .mfb-iwt__title {
	font-family: var(--mfb-font-heading);
}

/* PDP: benefits + accordion containers + Woo review form (Blocksy targets h3/label). */
body.mfb-locale-ar.single-product .mfb-pdp__benefits,
body.mfb-locale-ar.single-product .mfb-pdp-accordion,
body.mfb-locale-ar.single-product .mfb-pdp-accordion summary span {
	font-family: var(--mfb-font-body);
}
body.mfb-locale-ar.single-product #review_form_wrapper,
body.mfb-locale-ar.single-product #review_form_wrapper label,
body.mfb-locale-ar.single-product #review_form_wrapper input,
body.mfb-locale-ar.single-product #review_form_wrapper textarea,
body.mfb-locale-ar.single-product #review_form_wrapper select,
body.mfb-locale-ar.single-product #review_form_wrapper .comment-form-rating,
body.mfb-locale-ar.single-product #review_form_wrapper .stars,
body.mfb-locale-ar.single-product #review_form_wrapper .stars a,
body.mfb-locale-ar.single-product #review_form_wrapper p,
body.mfb-locale-ar.single-product #review_form_wrapper .form-submit {
	font-family: var(--mfb-font-body);
}
body.mfb-locale-ar.single-product #review_form_wrapper .comment-reply-title {
	font-family: var(--mfb-font-heading);
}

.mfb-shop-main .ct-pagination,
.mfb-shop-main .woocommerce-pagination {
	margin-block-start: 32px;
}

/* Catalog range (mobile + desktop) — Blocksy hides default result count on small screens. */
.mfb-shop-range {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mfb-text-light);
	text-align: start;
}

/* Mobile shop: infinite scroll — hide pagination / load-more buttons. */
@media (max-width: 1023px) {
	.mfb-shop-main[data-mfb-shop-infinite] .ct-pagination,
	.mfb-shop-main[data-mfb-shop-infinite] .woocommerce-pagination,
	.mfb-shop-main[data-mfb-shop-infinite] .mfb-shop-pagination-fallback {
		display: none !important;
	}
	.mfb-shop-infinite {
		margin-block: 20px 48px;
	}
	.mfb-shop-infinite__sentinel {
		height: 1px;
		width: 100%;
		pointer-events: none;
	}
	.mfb-shop-infinite__status {
		margin: 16px 0 0;
		text-align: center;
		font-size: 14px;
		font-weight: 600;
		color: var(--mfb-text-light);
	}
	.mfb-shop-infinite__status[hidden] {
		display: none;
	}
}

/* Mobile shop: result count + toolbar (Blocksy defaults hide count on mobile). */
@media (max-width: 1023px) {
	.mfb-shop-toolbar .woocommerce-result-count.ct-hidden-sm {
		display: block !important;
		width: 100%;
		flex: 1 1 100%;
		order: 10;
		margin-block-start: 4px;
		text-align: start;
	}
	.mfb-shop-actions {
		contain: none;
	}
	.mfb-shop-main:not([data-mfb-shop-infinite]) .ct-pagination {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		gap: 16px;
		margin-block: 28px 40px;
		padding-block: 20px 8px;
		border-block-start: 1px solid rgba(27, 62, 20, 0.1);
	}
	.mfb-shop-main:not([data-mfb-shop-infinite]) .ct-pagination .ct-load-more,
	.mfb-shop-main:not([data-mfb-shop-infinite]) .ct-pagination .wp-element-button {
		width: 100%;
		max-width: 340px;
		min-height: 48px;
		justify-content: center;
	}
	.mfb-shop-main:not([data-mfb-shop-infinite]) .mfb-shop-pagination-fallback {
		display: flex;
		justify-content: center;
		margin-block: 0 48px;
		padding-block: 0 8px;
	}
	.mfb-shop-pagination-fallback .page-numbers {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		padding: 0 12px;
		margin: 4px;
		border-radius: 999px;
		border: 1px solid rgba(27, 62, 20, 0.18);
		background: #fff;
		color: var(--mfb-text);
		font-weight: 700;
		text-decoration: none;
		list-style: none;
	}
	.mfb-shop-pagination-fallback .page-numbers.current {
		background: var(--mfb-text);
		color: #fff;
		border-color: var(--mfb-text);
	}
	.mfb-shop-pagination-fallback ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
		padding: 0;
		margin: 0;
		list-style: none;
	}
}

@media (min-width: 1024px) {
	.mfb-shop-pagination-fallback {
		display: none;
	}
}

/* Drawer (off-canvas filters), slides in from inline-start side */
.mfb-shop-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: auto;
	width: min(380px, 88vw);
	max-height: 100vh;
	background: #f1f2ed;
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.18);
	z-index: 9000;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
	visibility: hidden;
}
html[dir="rtl"] .mfb-shop-sidebar {
	left: auto;
	right: 0;
	transform: translateX(100%);
}
html[dir="rtl"] .mfb-shop-sidebar.is-open,
.mfb-shop-sidebar.is-open {
	transform: translateX(0);
	visibility: visible;
}
.mfb-shop-sidebar__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 26px;
	border-block-end: 1px solid rgba(27, 62, 20, 0.12);
	background: #f1f2ed;
}
.mfb-shop-sidebar__title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mfb-text);
}
.mfb-shop-sidebar__close {
	background: transparent;
	border: 0;
	color: var(--mfb-text);
	cursor: pointer;
	padding: 6px;
	display: inline-flex;
	border-radius: 50%;
	transition: background 150ms ease;
}
.mfb-shop-sidebar__close:hover { background: rgba(27, 62, 20, 0.08); }
.mfb-shop-sidebar__close:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: 2px; }
.mfb-shop-sidebar__body { padding: 22px 26px 32px; overflow-y: auto; flex: 1; }
.mfb-shop-sidebar__group {
	margin-block-end: 24px;
	padding-block-end: 22px;
	border-block-end: 1px solid rgba(27, 62, 20, 0.1);
}
.mfb-shop-sidebar__group:last-child { border-block-end: 0; }
.mfb-shop-sidebar__label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mfb-text);
	margin-block-end: 10px;
}
.mfb-shop-sidebar select,
.mfb-shop-sidebar .orderby {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	color: var(--mfb-text);
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.18);
	border-radius: 10px;
	appearance: none;
}
.mfb-shop-sidebar__hint { color: var(--mfb-text-light); font-size: 13px; line-height: 1.6; margin: 0; }

.mfb-shop-widget { padding-block: 16px; border-block-end: 1px solid rgba(27, 62, 20, 0.08); }
.mfb-shop-widget:last-child { border-block-end: 0; }
.mfb-shop-widget__title {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-block: 0 12px;
	color: var(--mfb-text);
}
.mfb-shop-widget ul { list-style: none; padding: 0; margin: 0; }
.mfb-shop-widget li { padding-block: 6px; font-size: 14px; }
.mfb-shop-widget a { color: var(--mfb-text); text-decoration: none; }
.mfb-shop-widget a:hover { color: var(--mfb-brand); }

/* Backdrop (separate fixed element so we can attach click handler reliably) */
.mfb-shop-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.42);
	z-index: 8500;
	opacity: 0;
	visibility: hidden;
	transition: opacity 280ms ease, visibility 0s linear 280ms;
}
body.mfb-shop-sidebar-open { overflow: hidden; }
body.mfb-shop-sidebar-open .mfb-shop-backdrop {
	opacity: 1;
	visibility: visible;
	transition: opacity 280ms ease, visibility 0s linear 0s;
}
.mfb-shop-pagination,
.woocommerce-pagination,
.mfb-blog-pagination {
	display: flex;
	justify-content: center;
	margin-block-start: 48px;
}
.woocommerce-pagination ul,
.mfb-blog-pagination .nav-links,
.mfb-blog-pagination .page-numbers,
.mfb-shop-pagination .page-numbers,
.mfb-shop-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.woocommerce-pagination .page-numbers,
.mfb-blog-pagination .page-numbers,
.mfb-shop-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(27, 62, 20, 0.18);
	color: var(--mfb-text);
	text-decoration: none;
	font-weight: 700;
	background: #fff;
}
.woocommerce-pagination .page-numbers.current,
.mfb-blog-pagination .page-numbers.current,
.mfb-shop-pagination .page-numbers.current {
	background: var(--mfb-text);
	color: #fff;
	border-color: var(--mfb-text);
}

/* ====================================================================
   PDP — Single product  (#mfb-section-pdp)
   Matches myfirstbook.us .product-single--media-left
   (gallery ~60% start, sticky info ~40% end)
   ==================================================================== */
.mfb-pdp__wrap { padding-block: 24px 64px; background: #f1f2ed; }
.mfb-pdp-container { max-width: 1320px; }
.mfb-pdp__crumbs { font-size: 13px; color: var(--mfb-text-light); margin-block-end: 18px; }
.mfb-pdp__crumbs a { color: inherit; text-decoration: none; }
.mfb-pdp__crumbs a:hover { color: var(--mfb-brand); }
.mfb-pdp__crumbs .breadcrumb-separator { margin-inline: 6px; opacity: 0.5; }

.mfb-pdp__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 48px;
	align-items: flex-start;
}

/* Gallery: main 1:1 image + horizontal thumbs row */
.mfb-pdp__gallery { position: relative; }
.mfb-pdp__ribbon {
	position: absolute;
	z-index: 4;
	inset-block-start: 16px;
	inset-inline-start: 16px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	border-radius: 4px;
}
.mfb-pdp__gallery-main {
	aspect-ratio: 1 / 1;
	background: rgba(27, 62, 20, 0.04);
	border-radius: 12px;
	overflow: hidden;
}
.mfb-pdp__gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mfb-pdp__gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}
.mfb-pdp__gallery-thumbs li {
	width: 78px;
	height: 78px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: rgba(27, 62, 20, 0.04);
	border: 2px solid transparent;
	transition: border-color 150ms ease;
}
.mfb-pdp__gallery-thumbs li img { width: 100%; height: 100%; object-fit: cover; }
.mfb-pdp__gallery-thumbs li:hover,
.mfb-pdp__gallery-thumbs li.is-active { border-color: var(--mfb-text); }
.mfb-pdp__gallery-thumbs li:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: 2px; }

/* Summary column (sticky on desktop) */
.mfb-pdp__summary {
	position: sticky;
	inset-block-start: 100px;
	padding-block-start: 0;
	padding-inline-start: 4px;
}
@media (max-width: 1023px) {
	.mfb-pdp__summary { position: static; padding-inline-start: 0; }
}
.mfb-pdp__title,
.mfb-pdp__summary .product_title {
	font-size: clamp(22px, 1.4vw + 0.6rem, 30px);
	line-height: 1.2;
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 10px;
	letter-spacing: -0.005em;
}
.mfb-pdp__rating,
.mfb-pdp__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-block-end: 14px;
	color: var(--mfb-text-light);
	font-size: 13px;
}
.mfb-pdp__stars { display: inline-flex; gap: 2px; }
.mfb-star { color: #d8dad5; }
.mfb-star--full { fill: #f5b400; color: #f5b400; }
.mfb-star--half { fill: #f5b400; color: #f5b400; opacity: 0.6; }
.mfb-pdp__rating-count { color: var(--mfb-text-light); text-decoration: none; border-block-end: 1px dotted; }

.mfb-pdp__summary .price,
.mfb-pdp__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--mfb-text);
	margin-block-end: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.mfb-pdp__summary .price del,
.mfb-pdp__price del { color: var(--mfb-text-light); font-weight: 500; font-size: 16px; text-decoration: line-through; }
.mfb-pdp__summary .price ins,
.mfb-pdp__price ins { text-decoration: none; font-weight: 800; }

.mfb-pdp__summary .woocommerce-product-details__short-description {
	color: var(--mfb-text);
	line-height: 1.65;
	margin-block-end: 18px;
	font-size: 15px;
}

/* Variations table */
.mfb-pdp__summary table.variations {
	width: 100%;
	border-collapse: collapse;
	margin-block-end: 14px;
}
.mfb-pdp__summary table.variations th,
.mfb-pdp__summary table.variations td { padding-block: 6px; vertical-align: middle; }
.mfb-pdp__summary table.variations th {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mfb-text);
	width: 100px;
	text-align: start;
}
.mfb-pdp__summary table.variations select {
	min-height: 42px;
	padding: 6px 12px;
	border: 1px solid rgba(27, 62, 20, 0.2);
	border-radius: 8px;
	background: #fff;
	width: 100%;
	max-width: 280px;
}
.mfb-pdp__summary .reset_variations { font-size: 12px; color: var(--mfb-text-light); }

/* Add to cart row — qty stepper (− / qty / +) then full-width CTA stack */
.mfb-pdp__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin-block-end: 14px;
}
.mfb-pdp__summary form.cart .quantity {
	display: inline-flex;
	align-items: stretch;
	height: 54px;
	min-width: 140px;
	border: 1px solid rgba(27, 62, 20, 0.18);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	padding: 0;
}
.mfb-qty-btn {
	width: 44px;
	min-width: 44px;
	border: 0;
	background: transparent;
	color: var(--mfb-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 150ms ease, color 150ms ease;
	user-select: none;
}
.mfb-qty-btn:hover { background: rgba(27, 62, 20, 0.06); }
.mfb-qty-btn:active { background: rgba(27, 62, 20, 0.12); }
.mfb-qty-btn:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: -2px; border-radius: 999px; }
.mfb-pdp__summary form.cart .qty {
	flex: 1;
	width: 52px;
	height: 100%;
	text-align: center;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 800;
	font-size: 16px;
	color: var(--mfb-text);
	padding: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}
.mfb-pdp__summary form.cart .qty::-webkit-outer-spin-button,
.mfb-pdp__summary form.cart .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mfb-pdp__summary form.cart .quantity:focus-within { border-color: var(--mfb-brand); box-shadow: 0 0 0 3px rgba(75, 149, 96, 0.15); }

.mfb-pdp__summary form.cart .single_add_to_cart_button,
.mfb-pdp__summary .single_add_to_cart_button {
	flex: 1 1 240px;
	min-height: 54px;
	padding-inline: 24px;
	border: 0;
	border-radius: 999px;
	background: var(--mfb-text);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
	box-shadow: 0 4px 14px rgba(27, 62, 20, 0.18);
}
.mfb-pdp__summary form.cart .single_add_to_cart_button:hover {
	background: #112c0c;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(27, 62, 20, 0.28);
}
.mfb-pdp__summary form.cart .single_add_to_cart_button:active { transform: translateY(0); }
.mfb-pdp__summary form.cart .single_add_to_cart_button.loading { opacity: 0.7; pointer-events: none; }
.mfb-pdp__summary form.cart .single_add_to_cart_button.added::after { content: " ✓"; }

.mfb-pdp__buy-now {
	width: 100%;
	min-height: 54px;
	padding-inline: 24px;
	margin-block-end: 18px;
	border: 0;
	border-radius: 999px;
	background: var(--mfb-brand);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
	box-shadow: 0 4px 14px rgba(75, 149, 96, 0.25);
}
.mfb-pdp__buy-now:hover {
	background: var(--mfb-brand-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(75, 149, 96, 0.35);
}
.mfb-pdp__buy-now:active { transform: translateY(0); }

@media (max-width: 480px) {
	.mfb-pdp__summary form.cart { flex-direction: column; }
	.mfb-pdp__summary form.cart .quantity,
	.mfb-pdp__summary form.cart .single_add_to_cart_button { width: 100%; }
}

.mfb-pdp__trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding-block: 16px;
	margin-block: 14px 18px;
	border-block: 1px solid rgba(27, 62, 20, 0.12);
	color: var(--mfb-text);
	font-size: 12px;
}
.mfb-pdp__trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mfb-pdp__trust-item svg { color: var(--mfb-text); }

/* Accordion under summary (matches .us product-single__accordion) */
.mfb-pdp-accordion { border-block-start: 1px solid rgba(27, 62, 20, 0.12); margin-block-start: 4px; }
.mfb-pdp-accordion details { border-block-end: 1px solid rgba(27, 62, 20, 0.12); }
.mfb-pdp-accordion summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 16px;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mfb-text);
	cursor: pointer;
	list-style: none;
}
.mfb-pdp-accordion summary::-webkit-details-marker { display: none; }
.mfb-pdp-accordion__chev { transition: transform 200ms ease; flex-shrink: 0; }
.mfb-pdp-accordion details[open] .mfb-pdp-accordion__chev { transform: rotate(180deg); }
.mfb-pdp-accordion__body {
	padding-block: 0 18px;
	color: var(--mfb-text);
	line-height: 1.7;
	font-size: 14px;
}
.mfb-pdp-accordion__body ul,
.mfb-pdp-accordion__body ol { padding-inline-start: 1.4rem; margin: 0; }
.mfb-pdp-accordion__body li { margin-block-end: 6px; }

/* PDP FAQ + Longform / related */
.mfb-pdp__faq {
	margin-block: 48px 16px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(27, 62, 20, 0.08);
	padding: 28px clamp(20px, 3vw, 40px);
}
.mfb-pdp__faq-inner { max-width: 920px; margin-inline: auto; }
.mfb-pdp__faq-title {
	font-size: clamp(22px, 1.4vw + 0.8rem, 28px);
	font-weight: 800;
	margin-block: 0 18px;
	color: var(--mfb-text);
}
.mfb-pdp__longform { margin-block-start: 56px; }
.mfb-pdp__longform .related.products,
.mfb-pdp__longform .upsells.products { margin-block-start: 8px; }
.mfb-pdp__longform .related.products > h2,
.mfb-pdp__longform .upsells.products > h2 {
	font-size: clamp(22px, 1.4vw + 0.8rem, 28px);
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 22px;
	text-align: center;
}

@media (max-width: 1023px) {
	.mfb-pdp__grid { grid-template-columns: 1fr; gap: 28px; }
	/* mfb-pdp__summary mobile rule now handled inline above */
}
@media (max-width: 600px) {
	.mfb-pdp__gallery-thumbs li { width: 60px; height: 60px; }
}

/* ====================================================================
   FAQ ACCORDION  (used by PDP + FAQ page + others)
   ==================================================================== */
.mfb-faq { display: flex; flex-direction: column; gap: 36px; }
.mfb-faq__group { background: transparent; }
.mfb-faq__heading {
	font-size: clamp(20px, 1vw + 0.8rem, 24px);
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 12px;
}

body.mfb-locale-ar .mfb-pdp__faq-title,
body.mfb-locale-ar .mfb-pdp__longform .related.products > h2,
body.mfb-locale-ar .mfb-pdp__longform .upsells.products > h2,
body.mfb-locale-ar .mfb-faq__heading,
body.mfb-locale-ar .mfb-faq-accordion__q {
	font-family: var(--mfb-font-heading);
}

body.mfb-locale-ar .mfb-faq-accordion__a {
	font-family: var(--mfb-font-body);
}

.mfb-faq-accordion { border-block-start: 1px solid rgba(27, 62, 20, 0.12); }
.mfb-faq-accordion__item { border-block-end: 1px solid rgba(27, 62, 20, 0.12); }
.mfb-faq-accordion__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 16px;
	font-weight: 700;
	font-size: 16px;
	color: var(--mfb-text);
	cursor: pointer;
	list-style: none;
}
.mfb-faq-accordion__q::-webkit-details-marker { display: none; }
.mfb-faq-accordion__chevron { transition: transform 200ms ease; flex-shrink: 0; }
.mfb-faq-accordion__item[open] .mfb-faq-accordion__chevron { transform: rotate(180deg); }
.mfb-faq-accordion__a {
	padding-block: 0 18px;
	color: var(--mfb-text-light);
	line-height: 1.7;
	font-size: 15px;
}

/* ====================================================================
   CART PAGE
   ==================================================================== */
.mfb-cart-form { margin-block: 32px 24px; }
.mfb-cart-items {
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.1);
	border-radius: 14px;
	padding-block: clamp(20px, 3vw, 28px);
	padding-inline: clamp(20px, 3.6vw, 32px);
	box-shadow: var(--mfb-shadow-card);
}
.mfb-cart__title {
	font-size: clamp(28px, 2vw + 0.8rem, 36px);
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 22px;
}
.mfb-cart-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	align-items: flex-start;
}
.mfb-cart-items { min-width: 0; }
.mfb-cart-table { width: 100%; border-collapse: collapse; }
.mfb-cart-row { border-block-end: 1px solid rgba(27, 62, 20, 0.12); }
.mfb-cart-row td { padding-block: 16px; vertical-align: middle; }
.mfb-cart-row__thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.mfb-cart-row__name a { color: var(--mfb-text); font-weight: 700; text-decoration: none; }
.mfb-cart-row__name a:hover { color: var(--mfb-brand); }
.mfb-cart-row__remove {
	display: inline-block;
	margin-inline-start: 8px;
	color: var(--mfb-text-light);
	text-decoration: none;
	font-size: 22px;
	line-height: 1;
}
.mfb-cart-row__remove:hover { color: #c0392b; }
.mfb-cart-row__qty .quantity { display: inline-flex; align-items: center; border: 1px solid rgba(27, 62, 20, 0.2); border-radius: 999px; padding: 0 8px; height: 40px; }
.mfb-cart-row__qty .qty { width: 50px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 700; }
.mfb-cart-actions { padding-block: 20px; }
.mfb-cart-coupon { display: inline-flex; gap: 8px; align-items: center; margin-inline-end: 12px; }
.mfb-cart-coupon .mfb-input { width: 180px; min-height: 42px; }

.mfb-cart-summary { position: sticky; top: 100px; }
.mfb-cart-summary__inner {
	background: linear-gradient(165deg, #fff 0%, #f7f9f4 100%);
	border: 1px solid color-mix(in srgb, var(--mfb-brand) 22%, rgba(27, 62, 20, 0.12));
	border-radius: 14px;
	padding-block: clamp(22px, 3vw, 30px);
	padding-inline: clamp(20px, 3.6vw, 32px);
	box-shadow: var(--mfb-shadow-card);
}
.mfb-totals__title { font-size: 20px; font-weight: 800; margin-block: 0 14px; color: var(--mfb-text); }
.mfb-totals__table { width: 100%; }
.mfb-totals__table th,
.mfb-totals__table td { padding-block: 10px; text-align: start; font-size: 15px; }
.mfb-totals__table th { font-weight: 500; color: var(--mfb-text-light); }
.mfb-totals__table td { text-align: end; font-weight: 700; color: var(--mfb-text); }
.mfb-totals__grand th,
.mfb-totals__grand td { font-size: 18px; font-weight: 800; border-block-start: 1px solid rgba(27, 62, 20, 0.12); padding-block-start: 14px; }
.mfb-totals__checkout { margin-block-start: 18px; }
.mfb-totals__checkout .wc-forward,
.mfb-totals__checkout .checkout-button {
	display: block;
	width: 100%;
	padding: 16px 24px;
	border-radius: 999px;
	background: var(--mfb-brand);
	color: #fff;
	text-align: center;
	font-weight: 800;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border: 0;
}
.mfb-totals__checkout .checkout-button:hover { background: var(--mfb-brand-dark); }

.mfb-cart-crosssells { margin-block-start: 56px; }

@media (max-width: 900px) {
	.mfb-cart-grid { grid-template-columns: 1fr; }
	.mfb-cart-summary { position: static; }
	.mfb-cart-row__thumb { display: block; margin-block-end: 8px; }
}

/* ====================================================================
   CHECKOUT
   ==================================================================== */
.mfb-checkout { margin-block: 32px 64px; }
.mfb-checkout__title {
	font-size: clamp(28px, 2vw + 0.8rem, 36px);
	font-weight: 800;
	margin-block: 0 22px;
	color: var(--mfb-text);
}
.mfb-checkout-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: flex-start;
}
.mfb-checkout-card {
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.1);
	border-radius: 14px;
	padding-block: clamp(22px, 3vw, 30px);
	padding-inline: clamp(20px, 3.6vw, 32px);
	margin-block-end: 22px;
	box-shadow: var(--mfb-shadow-card);
}
.mfb-checkout-card__title {
	font-size: 18px;
	font-weight: 800;
	margin-block: 0 16px;
	color: var(--mfb-text);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.mfb-checkout label,
.mfb-checkout .form-row label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-block-end: 6px;
	color: var(--mfb-text);
}
.mfb-checkout .form-row { margin-block-end: 14px; }
.mfb-checkout .form-row .select2-container--default .select2-selection--single {
	min-height: 48px;
	border-radius: 10px;
	border: 1px solid rgba(27, 62, 20, 0.18);
	padding: 8px 6px;
}
.mfb-checkout-summary { position: sticky; top: 100px; }
.mfb-checkout-summary__inner {
	background: linear-gradient(165deg, #fff 0%, #f7f9f4 100%);
	border: 1px solid color-mix(in srgb, var(--mfb-brand) 22%, rgba(27, 62, 20, 0.12));
	border-radius: 14px;
	padding-block: clamp(22px, 3vw, 30px);
	padding-inline: clamp(20px, 3.6vw, 32px);
	box-shadow: var(--mfb-shadow-card);
}
.mfb-checkout-summary__title {
	font-size: 18px;
	font-weight: 800;
	margin-block: 0 14px;
	color: var(--mfb-text);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.mfb-checkout #place_order,
.mfb-checkout .place-order .button {
	display: block;
	width: 100%;
	padding: 18px 24px;
	border-radius: 999px;
	background: var(--mfb-brand);
	color: #fff;
	text-align: center;
	font-weight: 800;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: 0;
	margin-block-start: 14px;
	cursor: pointer;
}
.mfb-checkout #place_order:hover { background: var(--mfb-brand-dark); }
.mfb-checkout .woocommerce-checkout-payment {
	background: transparent;
	border-radius: 0;
	padding: 0;
}
.mfb-checkout .wc_payment_methods { list-style: none; padding: 0; margin: 0; }
.mfb-checkout .wc_payment_method {
	border: 1px solid rgba(27, 62, 20, 0.14);
	border-radius: 10px;
	padding: 14px;
	margin-block-end: 10px;
}
.mfb-checkout .wc_payment_method label { display: inline-block; margin-inline-start: 8px; font-weight: 700; }

.mfb-checkout .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.mfb-checkout .woocommerce-checkout-review-order-table th,
.mfb-checkout .woocommerce-checkout-review-order-table td {
	padding-block: 10px;
	border-block-end: 1px solid rgba(27, 62, 20, 0.08);
}
.mfb-checkout .woocommerce-checkout-review-order-table th {
	text-align: start;
	font-weight: 600;
	color: var(--mfb-text-light);
}
.mfb-checkout .woocommerce-checkout-review-order-table td {
	text-align: end;
	font-weight: 700;
	color: var(--mfb-text);
}
.mfb-checkout .woocommerce-checkout-review-order-table .order-total th,
.mfb-checkout .woocommerce-checkout-review-order-table .order-total td {
	border-block-end: 0;
	padding-block-start: 16px;
	font-size: 18px;
	font-weight: 800;
	color: var(--mfb-text);
}

/* Classic cart / checkout: theme or Woo “alt” blue buttons → brand */
body.woocommerce-cart .woocommerce .button.alt,
body.woocommerce-checkout .woocommerce .button.alt,
body.woocommerce-cart .woocommerce button.button.alt,
body.woocommerce-checkout .woocommerce button.button.alt,
body.woocommerce-cart .woocommerce a.button.alt,
body.woocommerce-checkout .woocommerce a.button.alt {
	background: var(--mfb-brand) !important;
	color: #fff !important;
	border: 0 !important;
}
body.woocommerce-cart .woocommerce .button.alt:hover,
body.woocommerce-checkout .woocommerce .button.alt:hover,
body.woocommerce-cart .woocommerce button.button.alt:hover,
body.woocommerce-checkout .woocommerce button.button.alt:hover,
body.woocommerce-cart .woocommerce a.button.alt:hover,
body.woocommerce-checkout .woocommerce a.button.alt:hover {
	background: var(--mfb-brand-dark) !important;
	color: #fff !important;
}

@media (max-width: 900px) {
	.mfb-checkout-grid { grid-template-columns: 1fr; }
	.mfb-checkout-summary { position: static; }
	.mfb-checkout .col2-set { display: block; }
}

/* Cart / checkout: hide theme “previous/next page” chrome if it appears on Woo pages. */
body.woocommerce-cart .post-navigation,
body.woocommerce-checkout .post-navigation,
body.woocommerce-page.woocommerce-order-received .post-navigation {
	display: none !important;
}

/* WooCommerce Blocks — replace default WP/Woo blue primary buttons with brand green */
body.woocommerce-cart .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline),
body.woocommerce-checkout .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline),
.wp-block-woocommerce-mini-cart-contents .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline) {
	background-color: var(--mfb-brand) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
body.woocommerce-cart .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline):hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline):hover,
.wp-block-woocommerce-mini-cart-contents .wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.is-style-outline):hover {
	background-color: var(--mfb-brand-dark) !important;
	color: #fff !important;
}
body.woocommerce-cart .wc-block-components-button:not(.is-link):focus,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):focus,
.wp-block-woocommerce-mini-cart-contents .wc-block-components-button:not(.is-link):focus {
	box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px var(--mfb-brand) !important;
	outline: none !important;
}

body.woocommerce-cart .wc-block-components-button.is-style-outline:not(.is-link),
body.woocommerce-checkout .wc-block-components-button.is-style-outline:not(.is-link),
.wp-block-woocommerce-mini-cart-contents .wc-block-components-button.is-style-outline:not(.is-link) {
	background: transparent !important;
	color: var(--mfb-brand) !important;
	border: 2px solid var(--mfb-brand) !important;
}

/* Block cart/checkout summary cards — align with classic MFB cards */
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block .wc-block-cart__totals-title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	color: var(--mfb-text);
	font-weight: 800;
}
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button {
	border-radius: var(--mfb-radius-pill) !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Block checkout / cart — order summary: one card; generous logical inset (Woo often zeros panel padding) */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
	--mfb-order-summary-pad: clamp(18px, 3.8vw, 30px);
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border-radius: 16px;
	border: 1px solid rgba(27, 62, 20, 0.12) !important;
	background: linear-gradient(165deg, #fff 0%, #f8faf6 100%) !important;
	box-shadow: var(--mfb-shadow-card) !important;
	padding-block: clamp(12px, 2.4vw, 18px) clamp(16px, 2.8vw, 22px) !important;
	padding-inline: var(--mfb-order-summary-pad) !important;
	margin-block: 0 20px !important;
	overflow: hidden;
}

/* Nested “fill” box duplicates the outer border — flatten */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Collapsible “Order summary” bar (inherits horizontal inset from card) */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
	border: 0 !important;
	border-block-end: 1px solid rgba(27, 62, 20, 0.08) !important;
	padding-block: 14px 16px !important;
	padding-inline: 0 !important;
	margin: 0 !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title.is-open {
	border-block-end-color: transparent !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	margin: 0 !important;
	font-weight: 800 !important;
	color: var(--mfb-text) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__content.is-open {
	border: 0 !important;
	padding-inline: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-order-summary {
	padding-block: 14px 16px !important;
	padding-inline: 0 !important;
	margin: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-title {
	margin-block: 0 14px !important;
	margin-inline: 0 !important;
}

/* Cart: Woo zeros panel padding — neutralise so we don’t double with card inset */
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-panel,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item {
	padding-inline: 0 !important;
}

/* Remove stray WP / template separators inside the summary card */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > hr,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block > hr,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block hr,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block hr,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wp-block-separator,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wp-block-separator {
	display: none !important;
}

/* Totals subsection (card already has inline inset) */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block {
	border: 0 !important;
	border-block-start: 1px solid rgba(27, 62, 20, 0.1) !important;
	margin: 0 !important;
	padding-block: 16px 4px !important;
	padding-inline: 0 !important;
	background: transparent !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wp-block-woocommerce-checkout-order-summary-cart-items-block.wc-block-components-totals-wrapper {
	border: 0 !important;
	padding-block-start: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-wrapper {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Line items */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-order-summary-item {
	border-block-end: 1px solid rgba(27, 62, 20, 0.06);
	padding-block-end: 16px;
	margin-block-end: 14px;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item:last-child,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-order-summary-item:last-child {
	border-block-end: 0;
	margin-block-end: 0;
	padding-block-end: 0;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item:after,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-order-summary-item:after {
	content: none !important;
	display: none !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-order-summary-item__description {
	padding-block: 6px 14px !important;
	padding-inline: 12px clamp(16px, 3.5vw, 28px) !important;
}

/* Cart: Woo adds a full-width border under the block — redundant with our card; keep room above CTAs */
body.woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
	border-bottom: 0 !important;
	padding-block-end: clamp(22px, 3.2vw, 36px) !important;
	margin-block-end: clamp(16px, 2.6vw, 28px) !important;
}

/* Block cart sidebar — gutter only */
body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar {
	padding-inline: clamp(12px, 2.8vw, 22px) !important;
	box-sizing: border-box;
}

/*
 * Block checkout: single column, full-width (no side-by-side main + sticky sidebar).
 * Woo’s second column is a duplicate order summary; the main column already includes
 * summary inside the actions block — hide the sidebar column to match one-page checkout.
 */
body.woocommerce-checkout .wc-block-components-sidebar-layout {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout:has(>:last-child.wp-block-woocommerce-checkout-fields-block) {
	flex-direction: column !important;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	box-sizing: border-box !important;
	padding-inline: clamp(12px, 2.8vw, 24px) !important;
	padding-block: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar.wc-block-components-sidebar {
	display: none !important;
}
body.woocommerce-checkout .wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/*
 * Block cart: single column — cart lines full width, then totals / coupon / checkout below.
 * (Filled cart root can carry `wp-block-woocommerce-filled-cart-block` on the same node as the layout.)
 */
body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > .wc-block-components-sidebar-layout.wc-block-cart {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
}
body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-sidebar,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-main,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block > .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-sidebar {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	box-sizing: border-box !important;
	padding-inline: clamp(12px, 2.8vw, 24px) !important;
	padding-block: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/* Block checkout/cart: Woo `is-medium` + theme cap — force full usable width */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-cart .wc-block-components-sidebar-layout {
	width: 100% !important;
	max-width: min(1240px, 100%) !important;
	margin-inline: auto !important;
	box-sizing: border-box !important;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout.is-small,
body.woocommerce-checkout .wc-block-components-sidebar-layout.is-medium,
body.woocommerce-checkout .wc-block-components-sidebar-layout.is-large,
body.woocommerce-cart .wc-block-components-sidebar-layout.is-small,
body.woocommerce-cart .wc-block-components-sidebar-layout.is-medium,
body.woocommerce-cart .wc-block-components-sidebar-layout.is-large {
	width: 100% !important;
	max-width: min(1240px, 100%) !important;
}
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
	width: 100% !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	min-width: 0 !important;
}

/* Break Woo’s inline-size containment so checkout/cart layout follows the viewport, not a narrow content column. */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-cart .wp-block-woocommerce-cart {
	container-type: normal !important;
	max-width: none !important;
	width: 100% !important;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .wp-block-post-content,
body.woocommerce-checkout main#main article.post,
body.woocommerce-checkout main#main article.type-page,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .wp-block-post-content,
body.woocommerce-cart main#main article.post,
body.woocommerce-cart main#main article.type-page {
	max-width: none !important;
	width: 100% !important;
}

/* ====================================================================
   MY ACCOUNT
   ==================================================================== */
.mfb-account { padding-block: 32px 64px; }
.mfb-account__title {
	font-size: clamp(28px, 2vw + 0.8rem, 36px);
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 22px;
}
.mfb-account__layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 36px;
	align-items: flex-start;
}
.mfb-account-nav { position: sticky; top: 100px; }
.mfb-account-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mfb-account-nav a {
	display: block;
	padding: 12px 16px;
	border-radius: 10px;
	color: var(--mfb-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	transition: background 150ms ease, color 150ms ease;
}
.mfb-account-nav a:hover { background: rgba(27, 62, 20, 0.06); }
.mfb-account-nav .is-active a,
.mfb-account-nav .woocommerce-MyAccount-navigation-link--dashboard.is-active a,
.mfb-account-nav li.is-active > a {
	background: var(--mfb-text);
	color: #fff;
}
.mfb-account__content {
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.12);
	border-radius: 14px;
	padding: 32px;
	min-width: 0;
}
.mfb-account__content table { width: 100%; border-collapse: collapse; }
.mfb-account__content th { text-align: start; padding-block: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mfb-text-light); border-block-end: 1px solid rgba(27, 62, 20, 0.12); }
.mfb-account__content td { padding-block: 12px; border-block-end: 1px solid rgba(27, 62, 20, 0.08); }

.mfb-account-auth { padding-block: 48px; }
.mfb-account-auth__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 0 auto; }
.mfb-account-auth__card {
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.12);
	border-radius: 14px;
	padding: 36px;
}
.mfb-account-auth__card h2 { margin-block: 0 18px; font-size: 24px; font-weight: 800; color: var(--mfb-text); }
.mfb-remember { display: flex; align-items: center; gap: 8px; margin-block-end: 14px; font-size: 14px; }

@media (max-width: 900px) {
	.mfb-account__layout { grid-template-columns: 1fr; }
	.mfb-account-nav { position: static; }
	.mfb-account-auth__cols { grid-template-columns: 1fr; }
}

/* ====================================================================
   STATIC PAGES (FAQ / About / Contact / legal)
   ==================================================================== */
.mfb-static-hero {
	background: var(--mfb-bg-cream, #f1f2ed);
	padding-block: 56px 36px;
	text-align: center;
}
.mfb-static-hero__title {
	font-size: clamp(32px, 2.6vw + 0.5rem, 48px);
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 10px;
	letter-spacing: -0.01em;
}
.mfb-static-hero__subtitle { color: var(--mfb-text-light); font-size: clamp(15px, 0.4vw + 0.7rem, 18px); max-width: 720px; margin: 0 auto; line-height: 1.6; }

/* Arabic static template: Blocksy heading stacks override body Tajawal on h1–h3. */
body.mfb-locale-ar.mfb-static .mfb-static-hero,
body.mfb-locale-ar.mfb-static .mfb-static-hero *,
body.mfb-locale-ar.mfb-static .mfb-static-body,
body.mfb-locale-ar.mfb-static .mfb-static-body * {
	font-family: var(--mfb-font-ar) !important;
}
html[lang^="ar"] body.mfb-static .mfb-static-hero,
html[lang^="ar"] body.mfb-static .mfb-static-hero *,
html[lang^="ar"] body.mfb-static .mfb-static-body,
html[lang^="ar"] body.mfb-static .mfb-static-body * {
	font-family: var(--mfb-font-ar) !important;
}

.mfb-static-body { padding-block: 36px 64px; }

.mfb-page-body { color: var(--mfb-text); line-height: 1.75; }
.mfb-page-body h2 { font-size: clamp(22px, 1.4vw + 0.8rem, 30px); font-weight: 800; margin-block: 32px 12px; color: var(--mfb-text); }
.mfb-page-body h3 { font-size: clamp(18px, 0.6vw + 0.9rem, 22px); font-weight: 700; margin-block: 24px 8px; color: var(--mfb-text); }
.mfb-page-body p { margin-block-end: 16px; font-size: 16px; }
.mfb-page-body ul,
.mfb-page-body ol { padding-inline-start: 1.5rem; margin-block-end: 16px; }
.mfb-page-body li { margin-block-end: 6px; }
.mfb-page-body a { color: var(--mfb-brand); }
.mfb-page-body blockquote {
	border-inline-start: 3px solid var(--mfb-brand);
	padding-inline-start: 18px;
	margin: 24px 0;
	font-style: italic;
	color: var(--mfb-text-light);
}
.mfb-page-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* Contact pattern (mirrors myfirstbook.us contact layout) */
.mfb-contact { padding-block: 8px 56px; max-width: 920px; margin-inline: auto; }
.mfb-contact__intro {
	margin: 0 0 28px;
	font-size: clamp(16px, 0.5vw + 0.75rem, 18px);
	line-height: 1.75;
	color: var(--mfb-text);
	text-align: start;
}
.mfb-contact__rule {
	border: 0;
	border-block-start: 1px solid rgba(27, 62, 20, 0.14);
	margin: 0 0 28px;
}
.mfb-contact__touch {
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.12);
	border-radius: 16px;
	padding: 24px 26px;
	margin-block-end: 28px;
	box-shadow: 0 8px 28px rgba(27, 62, 20, 0.06);
}
.mfb-contact__touch h3 {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 800;
	color: var(--mfb-text);
}
.mfb-contact__touch-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mfb-text);
}
.mfb-contact__touch-lines li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.mfb-contact__touch-lines a {
	color: var(--mfb-brand);
	font-weight: 700;
	text-decoration: none;
	border-block-end: 1px solid transparent;
}
.mfb-contact__touch-lines a:hover { border-block-end-color: var(--mfb-brand); }
.mfb-contact__touch-note {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mfb-text);
}
.mfb-contact__touch-note a { color: var(--mfb-brand); font-weight: 700; text-decoration: none; }
.mfb-contact__touch-note a:hover { text-decoration: underline; }
.mfb-contact__form-lede {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--mfb-text);
}
.mfb-contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: flex-start; }
.mfb-contact--elementor { max-width: 920px; margin-inline: auto; }
.mfb-contact__form {
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.12);
	border-radius: 16px;
	padding: 28px 26px 32px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.mfb-contact__form .mfb-field {
	display: block;
	width: 100%;
	max-width: 100%;
}
.mfb-contact__form .mfb-field:last-of-type { margin-block-end: 20px; }
.mfb-contact__form .mfb-input,
.mfb-contact__form .mfb-textarea,
.mfb-contact__form .mfb-btn--block {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border-radius: 10px;
	box-sizing: border-box;
}
.mfb-contact__form .mfb-textarea { min-height: 140px; resize: vertical; }
.mfb-contact__notice { padding: 14px 18px; border-radius: 12px; margin-block-end: 20px; font-weight: 600; }
.mfb-contact__notice--success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
/* Contact Form 7 — brand green (override CF7 / WP / Elementor blue defaults) */
.mfb-contact .wpcf7-form p,
.mfb-contact__form--cf7 .wpcf7-form p {
	margin: 0 0 16px;
}
.mfb-contact .wpcf7 label,
.mfb-contact__form--cf7 label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-block-end: 6px;
	color: var(--mfb-text);
}
.mfb-contact .wpcf7 input.wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.mfb-contact .wpcf7 select.wpcf7-form-control,
.mfb-contact .wpcf7 textarea.wpcf7-form-control,
.mfb-contact__form--cf7 input.wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.mfb-contact__form--cf7 select.wpcf7-form-control,
.mfb-contact__form--cf7 textarea.wpcf7-form-control {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(27, 62, 20, 0.18);
	box-sizing: border-box;
	font: inherit;
	color: var(--mfb-text);
	background: #fff;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.mfb-contact .wpcf7 input.wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):focus,
.mfb-contact .wpcf7 select.wpcf7-form-control:focus,
.mfb-contact .wpcf7 textarea.wpcf7-form-control:focus,
.mfb-contact__form--cf7 input.wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):focus,
.mfb-contact__form--cf7 select.wpcf7-form-control:focus,
.mfb-contact__form--cf7 textarea.wpcf7-form-control:focus {
	outline: none;
	border-color: var(--mfb-brand);
	box-shadow: 0 0 0 3px rgba(75, 149, 96, 0.2);
}
/* Checkbox / radio — no field box (CF7 uses span.wpcf7-checkbox.wpcf7-form-control) */
.mfb-contact .wpcf7-checkbox,
.mfb-contact .wpcf7-radio,
.mfb-contact span.wpcf7-checkbox,
.mfb-contact span.wpcf7-radio {
	width: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.mfb-contact .wpcf7-checkbox label,
.mfb-contact .wpcf7-radio label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	cursor: pointer;
}
.mfb-contact .wpcf7-list-item {
	margin: 0;
}
.mfb-contact .wpcf7-checkbox input[type="checkbox"],
.mfb-contact .wpcf7-radio input[type="radio"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	min-width: 18px;
	margin: 0.2em 0 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	flex-shrink: 0;
	accent-color: var(--mfb-brand);
}
.mfb-contact .wpcf7-list-item-label {
	flex: 1;
}
.mfb-contact textarea.wpcf7-form-control,
.mfb-contact__form--cf7 textarea.wpcf7-form-control {
	min-height: 140px;
	resize: vertical;
}
.mfb-contact .wpcf7 input[type="submit"],
.mfb-contact .wpcf7 button[type="submit"],
.mfb-contact .wpcf7 .wpcf7-submit,
.mfb-contact__form--cf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 14px 28px;
	border-radius: var(--mfb-radius-pill, 999px);
	background: var(--mfb-brand) !important;
	background-color: var(--mfb-brand) !important;
	color: #fff !important;
	border: 2px solid var(--mfb-brand) !important;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: none;
	transition: background 150ms ease, border-color 150ms ease, transform 80ms ease;
	-webkit-appearance: none;
	appearance: none;
}
.mfb-contact .wpcf7 input[type="submit"]:hover,
.mfb-contact .wpcf7 button[type="submit"]:hover,
.mfb-contact .wpcf7 .wpcf7-submit:hover,
.mfb-contact__form--cf7 .wpcf7-submit:hover {
	background: var(--mfb-brand-dark) !important;
	background-color: var(--mfb-brand-dark) !important;
	border-color: var(--mfb-brand-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
.mfb-contact .wpcf7 input[type="submit"]:focus-visible,
.mfb-contact .wpcf7 .wpcf7-submit:focus-visible,
.mfb-contact__form--cf7 .wpcf7-submit:focus-visible {
	outline: 2px solid var(--mfb-brand);
	outline-offset: 3px;
}
.mfb-contact .wpcf7 a {
	color: var(--mfb-brand);
	font-weight: 600;
}
.mfb-contact .wpcf7 a:hover {
	color: var(--mfb-brand-dark);
}
.mfb-contact .wpcf7-not-valid {
	border-color: #c62828 !important;
}
.mfb-contact .wpcf7-not-valid:focus {
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
.mfb-contact .wpcf7-not-valid-tip {
	color: #b71c1c;
	font-size: 13px;
	margin-block-start: 6px;
}
.mfb-contact .wpcf7-response-output {
	margin: 16px 0 0;
	border-radius: 10px;
	padding: 12px 14px;
	border-width: 1px;
	border-style: solid;
}
.mfb-contact .wpcf7 form.sent .wpcf7-response-output,
.mfb-contact .wpcf7 form.invalid .wpcf7-response-output {
	border-color: rgba(75, 149, 96, 0.45);
	background: rgba(75, 149, 96, 0.1);
	color: var(--mfb-text);
}
.mfb-contact .wpcf7 form.failed .wpcf7-response-output,
.mfb-contact .wpcf7 form.aborted .wpcf7-response-output {
	border-color: rgba(198, 40, 40, 0.35);
	background: rgba(198, 40, 40, 0.08);
	color: #7f1d1d;
}
.mfb-contact .wpcf7 form.spam .wpcf7-response-output {
	border-color: rgba(27, 62, 20, 0.2);
	background: rgba(27, 62, 20, 0.06);
	color: var(--mfb-text);
}
.mfb-contact .wpcf7-spinner {
	background-color: var(--mfb-brand);
	opacity: 0.85;
}
.mfb-contact__form .mfb-btn--block {
	background: var(--mfb-brand);
	color: #fff;
	border: 2px solid var(--mfb-brand);
	border-radius: var(--mfb-radius-pill, 999px);
	font-weight: 600;
	cursor: pointer;
}
.mfb-contact__form .mfb-btn--block:hover {
	background: var(--mfb-brand-dark);
	border-color: var(--mfb-brand-dark);
	color: #fff;
}
.mfb-contact__form .mfb-input,
.mfb-contact__form .mfb-textarea {
	border: 1px solid rgba(27, 62, 20, 0.18);
	color: var(--mfb-text);
	background: #fff;
}
.mfb-contact__form .mfb-input:focus,
.mfb-contact__form .mfb-textarea:focus {
	outline: none;
	border-color: var(--mfb-brand);
	box-shadow: 0 0 0 3px rgba(75, 149, 96, 0.2);
}
.mfb-contact__aside { background: var(--mfb-bg-cream, #f1f2ed); border-radius: 16px; padding: 26px 24px; }
/* Elementor contact: two columns in .mfb-contact__grid section only */
.mfb-contact--elementor .elementor-section.mfb-contact__grid .elementor-column { min-width: 0; }
.mfb-contact--elementor .elementor-section.mfb-contact__grid .mfb-contact__form,
.mfb-contact--elementor .elementor-section.mfb-contact__grid .mfb-contact__aside { width: 100%; box-sizing: border-box; }
.mfb-contact__aside h3 { font-size: 17px; font-weight: 800; margin-block: 0 12px; color: var(--mfb-text); }
.mfb-contact__aside ul { list-style: none; margin: 0; padding: 0; }
.mfb-contact__aside li {
	position: relative;
	padding-inline-start: 22px;
	margin-block-end: 12px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--mfb-text);
}
.mfb-contact__aside li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.45em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mfb-brand);
	opacity: 0.85;
}

/* Contact — RTL (Hebrew + Arabic) */
html[dir="rtl"] .mfb-contact,
body.mfb-rtl .mfb-contact,
.mfb-contact--rtl,
.mfb-contact[dir="rtl"] {
	direction: rtl;
	text-align: right;
}
html[dir="rtl"] .mfb-contact__form,
body.mfb-rtl .mfb-contact__form,
.mfb-contact__form--rtl,
.mfb-contact__form[dir="rtl"],
.mfb-contact__form--rtl .wpcf7,
.mfb-contact__form--rtl .wpcf7-form,
.mfb-contact__form--rtl form.mfb-contact__native {
	direction: rtl;
	text-align: right;
}
html[dir="rtl"] .mfb-contact__form .mfb-field > span,
body.mfb-rtl .mfb-contact__form .mfb-field > span,
.mfb-contact__form--rtl label {
	display: block;
	text-align: right;
}
html[dir="rtl"] .mfb-contact__form .mfb-input,
html[dir="rtl"] .mfb-contact__form .mfb-textarea,
body.mfb-rtl .mfb-contact__form .mfb-input,
body.mfb-rtl .mfb-contact__form .mfb-textarea,
.mfb-contact__form--rtl .wpcf7-form-control:not([type="email"]) {
	text-align: right;
}
/* Email addresses stay LTR for typing */
.mfb-contact__form .mfb-input--email,
.mfb-contact__form--rtl input[type="email"],
.mfb-contact__form--rtl .wpcf7 input[type="email"] {
	direction: ltr;
	text-align: left;
}
html[dir="rtl"] .mfb-contact__form .mfb-btn,
body.mfb-rtl .mfb-contact__form .mfb-btn,
.mfb-contact__form--rtl .wpcf7-submit {
	direction: rtl;
}
html[dir="rtl"] .mfb-contact__form--cf7 .wpcf7-response-output,
body.mfb-rtl .mfb-contact__form--cf7 .wpcf7-response-output {
	text-align: right;
}
html[dir="rtl"] .mfb-contact__touch-lines li,
body.mfb-rtl .mfb-contact__touch-lines li {
	justify-content: flex-start;
}
html[dir="rtl"] .mfb-contact__aside li,
body.mfb-rtl .mfb-contact__aside li {
	padding-inline-start: 22px;
	padding-inline-end: 0;
}

/* Contact — Arabic typography */
body.mfb-locale-ar .mfb-contact {
	font-family: var(--mfb-font-body);
}
body.mfb-locale-ar .mfb-contact h3 {
	font-family: var(--mfb-font-heading);
}
body.mfb-locale-he .mfb-contact h3,
body.mfb-locale-ar .mfb-contact h3 {
	font-family: var(--mfb-font-heading);
}
body.mfb-locale-he .mfb-contact .mfb-field span,
body.mfb-locale-he .mfb-contact .mfb-input,
body.mfb-locale-he .mfb-contact .mfb-textarea,
body.mfb-locale-he .mfb-contact .mfb-btn,
body.mfb-locale-ar .mfb-contact .mfb-field span,
body.mfb-locale-ar .mfb-contact .mfb-input,
body.mfb-locale-ar .mfb-contact .mfb-textarea,
body.mfb-locale-ar .mfb-contact .mfb-btn {
	font-family: inherit;
}

@media (max-width: 768px) {
	.mfb-contact__grid { grid-template-columns: 1fr; }
	.mfb-contact { padding-block-end: 40px; }
}

/* About + Wholesale */
.mfb-about { padding-block: 24px 20px; }
.mfb-about__lead {
	font-size: clamp(17px, 0.6vw + 0.75rem, 20px);
	line-height: 1.75;
	color: var(--mfb-text);
	max-width: 760px;
	margin: 0 auto 28px;
	text-align: center;
	font-weight: 600;
}
.mfb-about__body {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: start;
	font-size: 16px;
	line-height: 1.8;
	color: var(--mfb-text);
}
.mfb-about__body p { margin: 0 0 1.1em; }
.mfb-about__body p:last-child { margin-block-end: 0; }
.mfb-about__tagline {
	text-align: center;
	font-size: clamp(17px, 0.5vw + 0.8rem, 21px);
	font-weight: 800;
	color: var(--mfb-text);
	margin: 0 auto 36px;
	max-width: 640px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.mfb-wholesale { padding-block: 32px; }
.mfb-wholesale__perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mfb-wholesale__perk { text-align: center; padding: 28px 20px; background: #fff; border-radius: 14px; border: 1px solid rgba(27, 62, 20, 0.1); }
.mfb-wholesale__icon { color: var(--mfb-brand); display: inline-flex; }
.mfb-wholesale__title { font-size: 17px; font-weight: 800; margin-block: 8px 6px; color: var(--mfb-text); }
.mfb-wholesale__text { color: var(--mfb-text-light); font-size: 14px; line-height: 1.6; margin: 0; }
.mfb-wholesale-form-section { padding-block: 16px 48px; }
.mfb-wholesale-form { background: #fff; border-radius: 14px; border: 1px solid rgba(27, 62, 20, 0.12); padding: 36px; }
.mfb-wholesale-form h2 { font-size: 22px; font-weight: 800; margin-block: 0 18px; }
@media (max-width: 768px) { .mfb-wholesale__perks { grid-template-columns: 1fr; } }

/* ====================================================================
   BLOG  (#mfb-section-blog-hero / -grid)
   ==================================================================== */
.mfb-blog-hero {
	background: var(--mfb-bg-cream, #f1f2ed);
	padding-block: 56px 28px;
	text-align: center;
}
.mfb-blog-hero__title { font-size: clamp(32px, 2.4vw + 0.5rem, 46px); font-weight: 800; color: var(--mfb-text); margin-block: 0 8px; }
.mfb-blog-hero__subtitle { color: var(--mfb-text-light); }

.mfb-blog-grid-section { padding-block: 36px 64px; }
.mfb-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mfb-blog-card { background: transparent; }
.mfb-blog-card__link { display: block; color: inherit; text-decoration: none; }
.mfb-blog-card__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: rgba(27, 62, 20, 0.06); margin-block-end: 14px; }
.mfb-blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.mfb-blog-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #addc91 0%, #4b9560 100%); }
.mfb-blog-card__link:hover .mfb-blog-card__media img { transform: scale(1.04); }
.mfb-blog-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--mfb-text-light); margin-block-end: 8px; }
.mfb-blog-card__chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #addc91; color: #1b3e14; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.mfb-blog-card__title { font-size: 19px; font-weight: 800; color: var(--mfb-text); line-height: 1.3; margin-block: 0 6px; }
.mfb-blog-card__link:hover .mfb-blog-card__title { color: var(--mfb-brand); }
.mfb-blog-card__excerpt { color: var(--mfb-text-light); font-size: 14px; line-height: 1.6; margin: 0; }

.mfb-post { padding-block: 0 56px; }
.mfb-post__hero { width: 100%; max-height: 520px; overflow: hidden; }
.mfb-post__hero img { width: 100%; height: 100%; object-fit: cover; }
.mfb-post__header { padding-block: 28px 22px; text-align: center; }
.mfb-post__title { font-size: clamp(28px, 2vw + 0.8rem, 40px); font-weight: 800; color: var(--mfb-text); margin-block: 10px 10px; line-height: 1.2; }
body.mfb-locale-ar .mfb-post__title,
html[lang^="ar"] .mfb-post__title {
	font-family: var(--mfb-font-ar) !important;
	letter-spacing: normal;
}
.mfb-post__meta { display: inline-flex; gap: 8px; align-items: center; color: var(--mfb-text-light); font-size: 13px; }
.mfb-post__body { margin-block: 0 36px; }
/* Blog single only: previous/next post links (not cart/checkout). */
.mfb-post__footer { padding-block: 22px; border-block-start: 1px solid rgba(27, 62, 20, 0.12); }
.mfb-post__footer .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	flex-wrap: wrap;
}
.mfb-post__footer .nav-previous,
.mfb-post__footer .nav-next { flex: 1 1 42%; min-width: 0; }
.mfb-post__footer .nav-previous a,
.mfb-post__footer .nav-next a { text-decoration: none; color: inherit; display: block; }
.mfb-post__footer .nav-previous a:hover .nav-title,
.mfb-post__footer .nav-next a:hover .nav-title { color: var(--mfb-brand); }
.mfb-post__footer .nav-subtitle { display: block; color: var(--mfb-text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.mfb-post__footer .nav-title { display: block; margin-block-start: 4px; font-weight: 700; color: var(--mfb-text); line-height: 1.35; }

.mfb-blog-related { padding-block: 48px; background: var(--mfb-bg-cream, #f1f2ed); }
.mfb-blog-related__title { font-size: clamp(22px, 1.4vw + 0.8rem, 28px); font-weight: 800; margin-block: 0 22px; color: var(--mfb-text); }

@media (max-width: 1023px) { .mfb-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mfb-blog-grid { grid-template-columns: 1fr; } }

/* ====================================================================
   EMPTY STATES (404 + Search + Empty cart)
   ==================================================================== */
.mfb-empty {
	text-align: center;
	padding-block: 64px 80px;
	color: var(--mfb-text);
}
.mfb-empty .mfb-container { max-width: 640px; }
.mfb-empty__icon { display: inline-block; margin-block-end: 12px; }
.mfb-empty__bigmark { display: inline-block; }
.mfb-empty__title { font-size: clamp(26px, 1.6vw + 0.8rem, 36px); font-weight: 800; margin-block: 0 8px; color: var(--mfb-text); }
.mfb-empty__text { color: var(--mfb-text-light); font-size: 16px; line-height: 1.6; margin-block: 0 24px; max-width: 480px; margin-inline: auto; }
.mfb-empty__search { display: inline-flex; gap: 8px; max-width: 480px; width: 100%; margin-block-end: 18px; }
.mfb-empty__search .mfb-input { flex: 1; }
.mfb-empty__ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.mfb-empty--cart { padding-block: 48px; }

/* ====================================================================
   SEARCH RESULTS
   ==================================================================== */
.mfb-search-hero { background: var(--mfb-bg-cream, #f1f2ed); padding-block: 48px 28px; text-align: center; }
.mfb-search-hero__title { font-size: clamp(24px, 1.6vw + 0.8rem, 34px); font-weight: 800; color: var(--mfb-text); margin-block: 0 6px; }
.mfb-search-hero__title span { color: var(--mfb-brand); }
.mfb-search-hero__count { color: var(--mfb-text-light); margin-block-end: 18px; }
.mfb-search-hero__form { display: inline-flex; gap: 8px; max-width: 520px; width: 100%; }
.mfb-search-hero__form .mfb-input { flex: 1; }
.mfb-search-results { padding-block: 36px 64px; }


/* ====================================================================
   FEATURED PRODUCTS (#mfb-section-featured-products)
   Tabbed carousel matching myfirstbook.us <tabbed-content>
   ==================================================================== */
.mfb-featured { padding-block: 56px 72px; background: #fff; }
.mfb-featured__title {
	text-align: center;
	font-size: clamp(28px, 2.4vw + 0.6rem, 44px);
	font-weight: 800;
	color: var(--mfb-text);
	margin-block: 0 22px;
	letter-spacing: -0.01em;
}
body.mfb-locale-ar .mfb-featured__title,
body.mfb-locale-ar #mfb-featured-title {
	font-family: var(--mfb-font-heading);
	letter-spacing: normal;
}
.mfb-featured__cta { text-align: center; margin-block-start: 28px; }

/* Tabs */
.mfb-tabs__triggers {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-block-end: 28px;
}
.mfb-tabs__trigger {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 22px;
	border: 1px solid rgba(27, 62, 20, 0.2);
	background: transparent;
	color: var(--mfb-text);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.mfb-tabs__trigger:hover { border-color: var(--mfb-text); }
.mfb-tabs__trigger.is-active {
	background: var(--mfb-text);
	color: #fff;
	border-color: var(--mfb-text);
}
.mfb-tabs__trigger:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: 2px; }

.mfb-tabs__panel[hidden] { display: none; }

/* Carousel */
.mfb-carousel {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0;
}
.mfb-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(27, 62, 20, 0.18);
	background: #fff;
	color: var(--mfb-text);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(27, 62, 20, 0.06);
	transition: background 150ms ease, color 150ms ease, opacity 150ms ease, transform 150ms ease;
	z-index: 2;
	flex-shrink: 0;
}
.mfb-carousel__btn:hover { background: var(--mfb-text); color: #fff; }
.mfb-carousel__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.mfb-carousel__btn--prev { margin-inline-end: -22px; }
.mfb-carousel__btn--next { margin-inline-start: -22px; }
/* Flip the chevron icons so prev/next read right in RTL */
html[dir="rtl"] .mfb-carousel__btn svg { transform: scaleX(-1); }

.mfb-carousel__track {
	list-style: none;
	margin: 0;
	padding: 8px 4px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 24px * 3) / 4);
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mfb-carousel__track::-webkit-scrollbar { display: none; }
.mfb-carousel__track > .mfb-card-wrap { scroll-snap-align: start; min-width: 0; }

@media (max-width: 1100px) {
	.mfb-carousel__track { grid-auto-columns: calc((100% - 18px * 2) / 3); gap: 18px; }
}
@media (max-width: 768px) {
	.mfb-carousel__track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
	.mfb-carousel__btn { display: none; }
}
@media (max-width: 480px) {
	.mfb-carousel__track { grid-auto-columns: 78%; gap: 12px; }
}

/* Page dots */
.mfb-carousel__dots {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-block-start: 22px;
}
.mfb-carousel__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	background: rgba(27, 62, 20, 0.22);
	padding: 0;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}
.mfb-carousel__dot:hover { background: rgba(27, 62, 20, 0.4); }
.mfb-carousel__dot.is-active { background: var(--mfb-text); transform: scale(1.15); }
.mfb-carousel__dot:focus-visible { outline: 2px solid var(--mfb-brand); outline-offset: 2px; }

/* ====================================================================
   FILTER DRAWER (.us collection sidebar parity)
   ==================================================================== */
.mfb-shop-sidebar { width: min(440px, 92vw); background: #f1f2ed; }
.mfb-shop-sidebar__form { display: flex; flex-direction: column; height: 100%; }
.mfb-shop-sidebar__header {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 22px 26px;
	border-block-end: 1px solid rgba(27, 62, 20, 0.12);
}
.mfb-shop-sidebar__clear {
	font-size: 13px;
	font-weight: 600;
	color: var(--mfb-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mfb-shop-sidebar__clear:hover { color: var(--mfb-brand); }

.mfb-shop-sidebar__select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	color: var(--mfb-text);
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.18);
	border-radius: 10px;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='14' height='14' fill='%231b3e14'><path d='M3 6l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: left 14px center;
	padding-inline-start: 14px;
	padding-inline-end: 38px;
}
html[dir="rtl"] .mfb-shop-sidebar__select { background-position: left 14px center; }

.mfb-shop-sidebar__check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-block: 6px;
	font-size: 15px;
	color: var(--mfb-text);
	cursor: pointer;
}
.mfb-shop-sidebar__check input[type="checkbox"] {
	width: 18px; height: 18px;
	accent-color: var(--mfb-text);
	cursor: pointer;
}
.mfb-shop-sidebar__count { margin-inline-start: auto; color: rgba(27, 62, 20, 0.55); font-size: 13px; }

.mfb-shop-sidebar__price {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 8px;
}
.mfb-shop-sidebar__price label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(27, 62, 20, 0.6); }
.mfb-shop-sidebar__price input[type="number"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	background: #fff;
	border: 1px solid rgba(27, 62, 20, 0.18);
	border-radius: 10px;
	color: var(--mfb-text);
	-moz-appearance: textfield;
}
.mfb-shop-sidebar__price input[type="number"]::-webkit-outer-spin-button,
.mfb-shop-sidebar__price input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mfb-shop-sidebar__price-sep { font-size: 18px; color: rgba(27, 62, 20, 0.5); align-self: center; padding-block-start: 18px; }
.mfb-shop-sidebar__price-cap { font-weight: 600; }

.mfb-shop-sidebar__footer {
	margin-block-start: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 18px 26px 24px;
	background: #f1f2ed;
	border-block-start: 1px solid rgba(27, 62, 20, 0.12);
}
.mfb-shop-sidebar__reset,
.mfb-shop-sidebar__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	font: inherit;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, transform 80ms ease;
}
.mfb-shop-sidebar__reset {
	background: transparent;
	border: 1px solid var(--mfb-text);
	color: var(--mfb-text);
}
.mfb-shop-sidebar__reset:hover { background: rgba(27, 62, 20, 0.06); }
.mfb-shop-sidebar__apply {
	background: var(--mfb-text);
	color: #fff;
	border: 1px solid var(--mfb-text);
}
.mfb-shop-sidebar__apply:hover { background: var(--mfb-brand); border-color: var(--mfb-brand); }
.mfb-shop-sidebar__apply:active { transform: translateY(1px); }

/* ====================================================================
   SHOP PROMO BANNERS (post-grid, .us collection parity)
   ==================================================================== */
.mfb-shop-promos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 80px clamp(16px, 4vw, 56px) 100px;
	background: #fff;
}
@media (max-width: 900px) {
	.mfb-shop-promos { grid-template-columns: 1fr; gap: 14px; padding-block: 56px 72px; }
}
.mfb-shop-promo {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	isolation: isolate;
}
@media (max-width: 900px) { .mfb-shop-promo { min-height: 440px; } }

.mfb-shop-promo__media,
.mfb-shop-promo__video,
.mfb-shop-promo__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mfb-shop-promo__media { z-index: 0; }
.mfb-shop-promo__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0) 75%);
	pointer-events: none;
}
.mfb-shop-promo__body {
	position: relative;
	z-index: 2;
	padding: 32px clamp(20px, 3vw, 36px) 36px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	text-align: start;
}
html[dir="rtl"] .mfb-shop-promo__body { align-items: flex-start; text-align: right; }

.mfb-shop-promo__title {
	margin: 0;
	font-family: var(--mfb-font-heading, "Poppins", system-ui, sans-serif);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}
.mfb-shop-promo__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.94);
	max-width: 36ch;
}
.mfb-shop-promo__cta.mfb-btn--white {
	background: #fff;
	color: var(--mfb-text);
	border: 1px solid #fff;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 700;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	margin-block-start: 6px;
	transition: background 150ms ease, color 150ms ease, transform 80ms ease;
}
.mfb-shop-promo__cta.mfb-btn--white:hover {
	background: transparent;
	color: #fff;
}
.mfb-shop-promo__cta.mfb-btn--white:active { transform: translateY(1px); }

/* ====================================================================
   PDP v2 — .us product page parity
   ==================================================================== */

/* Make sure the PDP wrap is full width and not constrained by Blocksy. */
body.single-product main#main,
body.single-product .ct-container,
body.single-product .entry-content,
body.single-product .post-39,
body.single-product .product { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }

/* Hide Codevz Plus / Blocksy injected PDP markup we don't want. */
body.single-product .ct-product-divider,
body.single-product .codevz-woo-add-to-cart,
body.single-product .codevz-pm-cats,
body.single-product h2.product_title.entry-title { display: none !important; }
/* But keep our own .mfb-pdp__title which uses class .mfb-pdp__title  */

.mfb-pdp__wrap { padding: 32px 0 80px; background: #fff; }
/* Blocksy main / full-width container often uses a soft gray. Keep it #fff so transparent margins
   (e.g. under .mfb-pdp-story) read as open space, not a gray band. */
body.single-product #main,
body.single-product main#main,
body.single-product .ct-container-full {
	background-color: #fff;
}
.mfb-pdp-container { max-width: 1320px; padding-inline: clamp(16px, 4vw, 56px); }
.mfb-pdp__crumbs {
	font-size: 13px;
	color: var(--mfb-text-light, #6f7a6d);
	margin-block-end: 22px;
}
.mfb-pdp__crumbs a { color: inherit; text-decoration: none; }
.mfb-pdp__crumbs a:hover { color: var(--mfb-brand); }

/* ---- Two-column grid ---- */
.mfb-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}
@media (max-width: 1023px) {
	.mfb-pdp__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Gallery ---- */
.mfb-pdp__gallery { position: relative; min-width: 0; }
.mfb-pdp__pills {
	position: absolute;
	z-index: 4;
	inset-block-start: 16px;
	inset-inline-start: 16px;
	inset-inline-end: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
	max-width: min(52%, 240px);
	text-align: start;
}
.mfb-pdp__pills li {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(27, 62, 20, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
}
.mfb-pdp__pills li:nth-child(3n + 1) {
	background: linear-gradient(142deg, #c8ef9e 0%, #addc91 55%, #9fd67e 100%);
	color: #1b3e14;
}
.mfb-pdp__pills li:nth-child(3n + 2) {
	background: linear-gradient(142deg, #ffd8a8 0%, #fecb8b 50%, #f5b87a 100%);
	color: #4a3b2a;
}
.mfb-pdp__pills li:nth-child(3n) {
	background: linear-gradient(142deg, #2d5a24 0%, #1b3e14 55%, #142f0f 100%);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.12);
}
.mfb-pdp__gallery-main {
	aspect-ratio: 1 / 1;
	background: #f4f5f1;
	border-radius: 18px;
	overflow: hidden;
}
button.mfb-pdp__gallery-main.mfb-pdp__gallery-zoom {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: start;
	font: inherit;
	color: inherit;
}
button.mfb-pdp__gallery-main.mfb-pdp__gallery-zoom:focus-visible {
	outline: 3px solid var(--mfb-brand);
	outline-offset: 3px;
}
.mfb-pdp__gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mfb-pdp__thumbs-carousel.mfb-carousel {
	margin-block-start: 14px;
}
.mfb-pdp__thumbs-carousel .mfb-carousel__track.mfb-pdp__gallery-thumbs {
	grid-auto-columns: 88px;
	gap: 10px;
	padding-block: 8px;
	padding-inline: 2px;
}
.mfb-pdp__thumbs-carousel .mfb-pdp__gallery-thumbs > li {
	scroll-snap-align: start;
	width: 88px;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: #f4f5f1;
	border: 2px solid transparent;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	flex-shrink: 0;
}
.mfb-pdp__thumbs-carousel .mfb-pdp__gallery-thumbs > li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mfb-pdp__thumbs-carousel .mfb-pdp__gallery-thumbs > li:hover,
.mfb-pdp__thumbs-carousel .mfb-pdp__gallery-thumbs > li.is-active {
	border-color: var(--mfb-text);
	box-shadow: 0 2px 10px rgba(27, 62, 20, 0.12);
}
.mfb-pdp-lightbox {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	margin: 0;
}
.mfb-pdp-lightbox::backdrop {
	background: rgba(12, 18, 12, 0.88);
	backdrop-filter: blur(5px);
}
.mfb-pdp-lightbox__shell {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(8px, 2vw, 20px);
	min-height: min(100dvh, 100vh);
	width: min(100vw, 1400px);
	margin: 0 auto;
	padding: clamp(12px, 3vw, 28px);
	box-sizing: border-box;
}
.mfb-pdp-lightbox__close {
	position: fixed;
	z-index: 3;
	inset-block-start: 12px;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}
.mfb-pdp-lightbox__close:hover {
	background: rgba(0, 0, 0, 0.6);
	transform: scale(1.05);
}
.mfb-pdp-lightbox__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	transition: background 150ms ease, opacity 150ms ease, transform 150ms ease;
	z-index: 2;
}
.mfb-pdp-lightbox__nav:hover:not([disabled]) {
	background: rgba(0, 0, 0, 0.55);
	transform: scale(1.05);
}
.mfb-pdp-lightbox__nav[disabled] {
	opacity: 0.25;
	cursor: not-allowed;
	transform: none;
}
html[dir="rtl"] .mfb-pdp-lightbox__nav svg {
	transform: scaleX(-1);
}
.mfb-pdp-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	touch-action: pan-y pinch-zoom;
	outline: none;
}
.mfb-pdp-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: min(82dvh, 82vh, 1000px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}
.mfb-pdp-lightbox__count {
	grid-column: 1 / -1;
	justify-self: center;
	margin: 0;
	padding-block-start: 4px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.04em;
}
.mfb-pdp-lightbox--single .mfb-pdp-lightbox__nav,
.mfb-pdp-lightbox--single .mfb-pdp-lightbox__count {
	display: none !important;
}
@media (max-width: 640px) {
	.mfb-pdp-lightbox__shell {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto;
		justify-items: center;
	}
	.mfb-pdp-lightbox__nav--prev {
		grid-row: 1;
	}
	.mfb-pdp-lightbox__stage {
		grid-row: 2;
		width: 100%;
	}
	.mfb-pdp-lightbox__nav--next {
		grid-row: 3;
	}
	.mfb-pdp-lightbox__count {
		grid-row: 4;
	}
}

/* ---- Summary column ---- */
.mfb-pdp__summary {
	position: sticky;
	inset-block-start: 96px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
@media (max-width: 1023px) { .mfb-pdp__summary { position: static; } }

.mfb-pdp__title {
	margin: 0;
	font-family: var(--mfb-font-heading, "Poppins", system-ui, sans-serif);
	font-size: clamp(26px, 2vw + 0.6rem, 34px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--mfb-text);
}
.mfb-pdp__lede {
	margin: 0;
	color: var(--mfb-text);
	font-size: 15.5px;
	line-height: 1.55;
}
.mfb-pdp__lede p { margin: 0; }

.mfb-pdp__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.mfb-pdp__stars { display: inline-flex; gap: 2px; align-items: center; }
.mfb-pdp__rating-count {
	color: var(--mfb-text);
	text-decoration: none;
	border-block-end: 1px dotted currentColor;
}
.mfb-pdp__rating-count:hover { color: var(--mfb-brand); }

.mfb-pdp__price {
	font-size: clamp(22px, 1.8vw, 28px);
	font-weight: 700;
	color: var(--mfb-text);
	margin-block-start: 4px;
}
.mfb-pdp__price del { color: var(--mfb-text-light); font-weight: 500; margin-inline-end: 8px; }
.mfb-pdp__price ins { text-decoration: none; }

/* Cart: quantity row, then two CTAs in one row (Shopify-style PDP) */
.mfb-pdp__cart { margin: 8px 0 0; }
.mfb-pdp__summary form.cart.mfb-pdp__cart:has(.mfb-pdp__cart-stack) {
	display: block;
	margin-block-end: 14px;
}
.mfb-pdp__cart-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	align-items: stretch;
}
.mfb-pdp__cart-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 0;
	width: 100%;
}
.mfb-pdp__qty-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--mfb-text);
}
.mfb-pdp__qty {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	border: 1px solid rgba(27, 62, 20, 0.22);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}
.mfb-pdp__qty-btn {
	flex: 0 0 48px;
	background: transparent;
	border: 0;
	width: 48px;
	min-height: 48px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--mfb-text);
	transition: background 120ms ease;
}
.mfb-pdp__qty-btn:hover { background: rgba(27, 62, 20, 0.06); }
.mfb-pdp__qty-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 48px;
	border: 0;
	border-inline: 1px solid rgba(27, 62, 20, 0.1);
	background: transparent;
	text-align: center;
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	color: var(--mfb-text);
	-moz-appearance: textfield;
	appearance: textfield;
}
.mfb-pdp__qty-input::-webkit-outer-spin-button,
.mfb-pdp__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mfb-pdp__buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	margin: 0;
	align-items: stretch;
}
.mfb-pdp__atc,
.mfb-pdp__buy-now,
button.mfb-pdp__atc,
button.mfb-pdp__buy-now {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	min-width: 0;
	width: 100%;
	height: 100%;
	padding: 8px 10px;
	font: inherit;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	word-break: break-word;
	hyphens: auto;
	border-radius: 999px;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, transform 80ms ease, border-color 150ms ease;
}
.mfb-pdp__atc {
	background: var(--mfb-text);
	color: #fff;
	border: 1.5px solid var(--mfb-text);
}
.mfb-pdp__atc:hover { background: var(--mfb-brand); border-color: var(--mfb-brand); color: #fff; }
.mfb-pdp__buy-now {
	background: transparent;
	color: var(--mfb-text);
	border: 1.5px solid var(--mfb-text);
}
.mfb-pdp__buy-now:hover { background: var(--mfb-text); color: #fff; }
.mfb-pdp__atc:active, .mfb-pdp__buy-now:active { transform: translateY(1px); }

/* After AJAX/block add-to-cart: “View cart” (Woo default link is theme blue .button). */
.single-product .mfb-pdp__summary a.added_to_cart,
.single-product .mfb-pdp__summary a.added_to_cart.wc_forward,
.single-product .mfb-pdp__summary a.added_to_cart.wc-forward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	padding: 8px 18px;
	margin-block-start: 10px;
	font: inherit;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none !important;
	border-radius: 999px;
	color: var(--mfb-text) !important;
	background: transparent !important;
	border: 1.5px solid var(--mfb-text) !important;
	box-shadow: none !important;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 80ms ease;
}
.single-product .mfb-pdp__summary a.added_to_cart:hover,
.single-product .mfb-pdp__summary a.added_to_cart.wc_forward:hover,
.single-product .mfb-pdp__summary a.added_to_cart.wc-forward:hover {
	color: #fff !important;
	background: var(--mfb-text) !important;
	border-color: var(--mfb-text) !important;
}

.single-product .woocommerce-message a.wc-forward.button,
.single-product .woocommerce-message a.wc-forward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	margin-inline-start: 8px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none !important;
	border-radius: 999px;
	color: var(--mfb-text) !important;
	background: transparent !important;
	border: 1.5px solid var(--mfb-text) !important;
	box-shadow: none !important;
}

body.mfb-locale-ar.single-product .mfb-pdp__summary a.added_to_cart,
body.mfb-locale-ar.single-product .mfb-pdp__summary a.added_to_cart.wc_forward,
body.mfb-locale-ar.single-product .woocommerce-message a.wc-forward,
html[lang^="ar"] .single-product .mfb-pdp__summary a.added_to_cart,
html[lang^="ar"] .single-product .mfb-pdp__summary a.added_to_cart.wc_forward,
html[lang^="ar"] .single-product .woocommerce-message a.wc-forward {
	font-family: var(--mfb-font-ar) !important;
}

/* Product reviews: Woo default .submit is generic theme blue. */
.mfb-pdp-reviews #review_form_wrapper .mfb-wc-review-submit,
.mfb-pdp-reviews #review_form_wrapper input.mfb-wc-review-submit,
.mfb-pdp-reviews #review_form_wrapper button.mfb-wc-review-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	border-radius: 999px;
	cursor: pointer;
	color: #fff !important;
	background: var(--mfb-text) !important;
	border: 1.5px solid var(--mfb-text) !important;
	box-shadow: none !important;
	transition: background 150ms ease, border-color 150ms ease, transform 80ms ease;
}
.mfb-pdp-reviews #review_form_wrapper .mfb-wc-review-submit:hover,
.mfb-pdp-reviews #review_form_wrapper input.mfb-wc-review-submit:hover,
.mfb-pdp-reviews #review_form_wrapper button.mfb-wc-review-submit:hover {
	background: var(--mfb-brand) !important;
	border-color: var(--mfb-brand) !important;
	color: #fff !important;
}

body.mfb-locale-ar.single-product .mfb-pdp-reviews #review_form_wrapper .mfb-wc-review-submit,
html[lang^="ar"] .single-product .mfb-pdp-reviews #review_form_wrapper .mfb-wc-review-submit {
	font-family: var(--mfb-font-ar) !important;
}

.mfb-pdp__promise {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--mfb-text-light, #6f7a6d);
	text-align: center;
}

/* Approved-by-moms tag */
.mfb-pdp__approved {
	margin-block-start: 8px;
	padding-block-start: 16px;
	border-block-start: 1px solid rgba(27, 62, 20, 0.12);
}
.mfb-pdp__approved-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--mfb-text);
	letter-spacing: 0.02em;
}

/* Benefits 2x2 */
.mfb-pdp__benefits {
	margin-block-start: 16px;
	padding-block-start: 16px;
	border-block-start: 1px solid rgba(27, 62, 20, 0.12);
}
.mfb-pdp__benefits-title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--mfb-text);
}
.mfb-pdp__benefits-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 18px;
}
.mfb-pdp__benefits-grid li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--mfb-text);
	line-height: 1.4;
}
.mfb-pdp__benefits-grid svg { color: var(--mfb-brand); flex-shrink: 0; }

/* Accordion */
.mfb-pdp-accordion {
	margin-block-start: 20px;
	border-block-start: 1px solid rgba(27, 62, 20, 0.12);
}
.mfb-pdp-accordion details {
	border-block-end: 1px solid rgba(27, 62, 20, 0.12);
}
.mfb-pdp-accordion summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0;
	cursor: pointer;
	font-weight: 600;
	color: var(--mfb-text);
}
.mfb-pdp-accordion summary::-webkit-details-marker { display: none; }
.mfb-pdp-accordion__chev { transition: transform 200ms ease; }
.mfb-pdp-accordion details[open] .mfb-pdp-accordion__chev { transform: rotate(180deg); }
.mfb-pdp-accordion__body {
	padding: 0 0 18px;
	color: var(--mfb-text);
	font-size: 15px;
	line-height: 1.6;
}
.mfb-pdp-accordion__body ul { padding-inline-start: 20px; margin: 0; }
.mfb-pdp-accordion__body p { margin: 0 0 8px; }

/* ====== Upsells "Goes well with" carousel ====== */
.mfb-pdp-upsells {
	margin-block-start: 80px;
	padding-block: 0;
}
.mfb-pdp-upsells__title {
	margin: 0 0 24px;
	font-family: var(--mfb-font-heading, "Poppins", system-ui, sans-serif);
	font-size: clamp(24px, 2vw, 30px);
	font-weight: 800;
	color: var(--mfb-text);
	text-align: center;
}
.mfb-shop-grid--carousel {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 1023px) { .mfb-shop-grid--carousel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mfb-shop-grid--carousel { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* ====== PDP per-product promo / offer band ====== */
.mfb-pdp-promo {
	margin-block-start: clamp(40px, 5vw, 64px);
}
.mfb-pdp-promo__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 24px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid rgba(27, 62, 20, 0.1);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: 0 8px 32px rgba(27, 62, 20, 0.06);
}
.mfb-pdp-promo__media {
	flex: 0 0 auto;
	border-radius: 14px;
	overflow: hidden;
	background: var(--mfb-bg-cream, #f1f2ed);
}
.mfb-pdp-promo__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: cover;
}
.mfb-pdp-promo__title {
	margin: 0 0 12px;
	font-family: var(--mfb-font-heading, "Poppins", system-ui, sans-serif);
	font-size: clamp(20px, 1.6vw, 26px);
	font-weight: 800;
	color: var(--mfb-text);
	line-height: 1.25;
}
.mfb-pdp-promo__body {
	font-size: 15px;
	line-height: 1.65;
	color: var(--mfb-text);
}
.mfb-pdp-promo__body p:last-child {
	margin-block-end: 0;
}
@media (min-width: 768px) {
	.mfb-pdp-promo__inner {
		flex-direction: row;
		align-items: center;
		gap: clamp(24px, 4vw, 40px);
	}
	.mfb-pdp-promo__media {
		flex: 0 0 min(38%, 280px);
		max-width: 320px;
	}
	.mfb-pdp-promo__media img {
		max-height: none;
		aspect-ratio: 1 / 1;
	}
	.mfb-pdp-promo__content {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* ====== PDP long-form story — reuses home `.mfb-iwt` overlap (myfirstbook.us image-with-text) ====== */
.mfb-pdp-story.mfb-iwt-section {
	margin-block-start: 0;
	/* Outer gap: transparent — parent stack uses #fff (see PDP v2 rules) so this is not theme gray. */
	margin-block-end: clamp(48px, 6vw, 96px);
	padding-block-start: clamp(40px, 6vw, 72px);
	padding-block-end: clamp(40px, 6vw, 72px);
	gap: clamp(56px, 7vw, 100px);
}
.mfb-pdp-story .mfb-pdp-story__ratio {
	aspect-ratio: 1 / 1;
}
.mfb-pdp-story .mfb-iwt__text p {
	margin: 0 0 0.85em;
}
.mfb-pdp-story .mfb-iwt__text p:last-child {
	margin-block-end: 0;
}
@media (min-width: 901px) {
	.mfb-pdp-story .mfb-iwt__media {
		flex: 0 0 60%;
		width: 60%;
	}
	.mfb-pdp-story .mfb-iwt__box {
		flex: 0 0 40%;
		width: 40%;
	}
}

/* ====== PDP reviews (Woo template) ====== */
.mfb-pdp-reviews {
	margin-block-start: 72px;
	padding-block: 48px 72px;
	background: var(--mfb-bg-cream, #f1f2ed);
	border-block-start: 1px solid rgba(27, 62, 20, 0.08);
}
.mfb-pdp-reviews__inner {
	max-width: 920px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}
.mfb-pdp-reviews .woocommerce-Reviews-title,
.mfb-pdp-reviews #reviews .woocommerce-Reviews-title {
	font-family: var(--mfb-font-heading, "Poppins", system-ui, sans-serif);
	font-size: clamp(22px, 1.8vw, 28px);
	font-weight: 800;
	margin-block: 0 20px;
	color: var(--mfb-text);
}
.mfb-pdp-reviews #review_form_wrapper,
.mfb-pdp-reviews #comments {
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(27, 62, 20, 0.1);
	padding: 24px 22px;
	margin-block-end: 20px;
}

/* ====== Back to top (myfirstbook.us–style control; SVG up-arrow) ====== */
.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;
	width: 1px;
	word-wrap: normal !important;
}
.back-to-top-button.back-to-top-button--dark {
	position: fixed;
	inset-block-end: max(20px, env(safe-area-inset-bottom, 0px));
	inset-inline-end: max(16px, env(safe-area-inset-end, 0px));
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top-button.back-to-top-button--dark.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}
.back-to-top-button.back-to-top-button--dark:hover,
.back-to-top-button.back-to-top-button--dark:focus-visible {
	background: #1a1a1a;
	color: #fff;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.back-to-top-button.back-to-top-button--dark:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
body.admin-bar .back-to-top-button.back-to-top-button--dark {
	inset-block-end: max(28px, env(safe-area-inset-bottom, 0px));
}
@media (max-width: 782px) {
	body.admin-bar .back-to-top-button.back-to-top-button--dark {
		inset-block-end: max(40px, env(safe-area-inset-bottom, 0px));
	}
}
/* Up arrow (SVG in markup — avoids RTL / border hacks showing as “right”) */
.back-to-top-button__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.back-to-top-button__svg {
	display: block;
}
