/* Moon Kids Home — front-end theme styles */

:root {
	/*
	 * Brand tokens = Global Styles palette (theme.json / Site Editor → Styles).
	 * Change colours there, not here. Brand source: moonkidshome.ae.
	 */
	--mkh-primary: var(--wp--preset--color--primary, #400080);
	--mkh-primary-dark: var(--wp--preset--color--primary-dark, #2e005c);
	--mkh-accent: var(--wp--preset--color--accent, #f4b011);
	--mkh-heading: var(--wp--preset--color--heading, #333333);
	--mkh-ink: var(--wp--preset--color--ink, #1e1e1e);
	--mkh-muted: var(--wp--preset--color--muted, #484848);
	--mkh-line: var(--wp--preset--color--mist, #e0dede);
	--mkh-soft: var(--wp--preset--color--paper, #f7f7f7);
	--mkh-white: var(--wp--preset--color--white, #ffffff);
	--mkh-black: var(--mkh-ink);
	--mkh-search: color-mix(in srgb, var(--mkh-line) 55%, var(--mkh-white));
	--mkh-utility: var(--mkh-primary);
	--mkh-radius: var(--wp--custom--mkh--radius, 12px);
	--mkh-header-max: var(--mkh-content-max, 1190px);
	--mkh-content-max: var(--wp--style--global--wide-size, 1190px);
	--mkh-header-gutter: 1.25rem;
}

.mkh-product-carousel__track[hidden] {
	display: none;
}

body {
	-webkit-font-smoothing: antialiased;
}

.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;
}

.mkh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--mkh-primary);
	color: var(--mkh-white);
	padding: 0.75rem 1rem;
	font-weight: 600;
	text-decoration: none;
}

.mkh-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

#mkh-main:focus {
	outline: none;
}

html.mkh-drawer-open {
	overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* IKEA-style 3-layer header                                                  */
/* -------------------------------------------------------------------------- */

.mkh-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--mkh-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Layer 1 — black utility bar */
.mkh-utility-bar {
	background: var(--mkh-utility);
	color: var(--mkh-white);
	font-size: 0.75rem;
	line-height: 1.2;
	transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

.mkh-site-header--scrolled .mkh-utility-bar {
	max-height: 0;
	opacity: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
}

.mkh-utility-bar__inner {
	width: 100%;
	max-width: var(--mkh-content-max, 1190px);
	margin-inline: auto;
	padding: 0.45rem var(--mkh-header-gutter);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.75rem;
}

.mkh-utility-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	background: transparent;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.mkh-utility-bar__item:hover {
	text-decoration: underline;
}

.mkh-utility-bar__icon {
	display: inline-flex;
	line-height: 0;
	opacity: 0.9;
}

.mkh-utility-bar__locale {
	justify-self: start;
}

.mkh-utility-bar__center {
	justify-self: center;
}

.mkh-utility-bar__right {
	justify-self: end;
}

/* Layer 2 — masthead */
.mkh-masthead {
	background: var(--mkh-white);
	position: relative;
	border-bottom: 1px solid transparent;
}

.mkh-masthead__inner {
	width: 100%;
	max-width: var(--mkh-content-max, 1190px);
	margin-inline: auto;
	padding: 0.75rem var(--mkh-header-gutter);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mkh-menu-toggle {
	display: none;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--mkh-ink);
	cursor: pointer;
	border-radius: 999px;
}

.mkh-menu-toggle:hover {
	background: var(--mkh-soft);
}

.mkh-masthead__brand {
	flex: 0 0 auto;
	min-width: 0;
}

.mkh-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--mkh-ink);
	line-height: 0;
}

/*
 * WooCommerce sets `.woocommerce img { height:auto; max-width:100% }` on shop/
 * product pages. That beats a single-class logo rule and blows the logo up to
 * its intrinsic width, crushing the search field. Keep header images scoped.
 */
.mkh-site-header .mkh-logo__img,
.mkh-site-header .mkh-logo img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.mkh-site-header .mkh-category-strip__media img,
.mkh-site-header .mkh-mega img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

.mkh-primary-nav {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex: 0 0 auto;
}

.mkh-primary-nav__item {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--mkh-primary);
	text-decoration: none;
	font: inherit;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.55rem 0.7rem;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
}

.mkh-primary-nav__item:hover,
.mkh-primary-nav__item[aria-expanded="true"] {
	background: var(--mkh-soft);
}

/* Dominant pill search */
.mkh-search {
	flex: 1 1 auto;
	display: flex;
	align-items: stretch;
	min-width: 0;
	max-width: 560px;
	margin-inline: 0.5rem auto;
	background: var(--mkh-search);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid transparent;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mkh-search:focus-within {
	border-color: var(--mkh-ink);
	box-shadow: 0 0 0 1px var(--mkh-ink);
	background: var(--mkh-white);
}

.mkh-search__icon {
	display: inline-flex;
	align-items: center;
	padding-inline-start: 1rem;
	color: var(--mkh-ink);
	line-height: 0;
}

.mkh-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.8rem 0.75rem;
	font-size: 0.95rem;
	color: var(--mkh-ink);
	outline: none;
}

.mkh-search__input::placeholder {
	color: var(--mkh-muted);
}

.mkh-search__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--mkh-primary);
	color: var(--mkh-white);
	cursor: pointer;
	padding: 0;
}

.mkh-search__submit:hover {
	opacity: 0.85;
}

.mkh-search__submit svg {
	display: block;
}

.mkh-search--rect {
	border-radius: 8px;
}

.mkh-search--rect .mkh-search__submit {
	border-radius: 6px;
	margin: 0.15rem;
}

.mkh-site-header .mkh-logo--lg .mkh-logo__img,
.mkh-site-header .mkh-logo--lg img {
	height: 48px;
	max-width: 190px;
}

/* Utility variants */
.mkh-utility-bar--light {
	background: var(--mkh-soft);
	color: var(--mkh-ink);
	border-bottom: 1px solid var(--mkh-line);
}

.mkh-utility-bar--paper {
	background: var(--mkh-soft);
	color: var(--mkh-ink);
}

.mkh-utility-bar--light .mkh-utility-bar__item,
.mkh-utility-bar--paper .mkh-utility-bar__item {
	color: inherit;
}

/* Dual browse toggle */
.mkh-browse-toggle {
	display: inline-flex;
	background: var(--mkh-soft);
	border-radius: 999px;
	padding: 0.2rem;
	flex: 0 0 auto;
}

.mkh-browse-toggle__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--mkh-ink);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
}

.mkh-browse-toggle__btn.is-active,
.mkh-browse-toggle__btn[aria-expanded="true"] {
	background: var(--mkh-primary);
	color: var(--mkh-white);
}

.mkh-action-link--locale {
	font-size: 0.75rem;
	pointer-events: none;
}

/* Style-specific tweaks */
.mkh-site-header--search-hero .mkh-search {
	max-width: 720px;
	flex: 1 1 420px;
}

.mkh-site-header--compact .mkh-masthead__inner {
	padding-block: 0.65rem;
}

.mkh-site-header--editorial .mkh-search {
	border-radius: 8px;
}

@media (max-width: 1100px) {
	.mkh-browse-toggle {
		display: none;
	}
}

.mkh-masthead__actions {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	flex: 0 0 auto;
}

.mkh-action-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.65rem;
	border-radius: 999px;
	color: var(--mkh-ink);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	position: relative;
}

.mkh-action-link:hover {
	background: var(--mkh-soft);
}

.mkh-action-link__icon {
	display: inline-flex;
	line-height: 0;
}

.mkh-cart-count {
	position: absolute;
	top: 0.15rem;
	right: 0.15rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--mkh-accent);
	color: var(--mkh-ink);
	font-size: 0.65rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.mkh-cart-count[hidden] {
	display: none;
}

.mkh-logo--text {
	font-weight: 700;
	color: var(--mkh-ink);
	text-decoration: none;
}

/* Mega menus */
.mkh-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--mkh-white);
	border-bottom: 1px solid var(--mkh-line);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	z-index: 20;
}

.mkh-mega__inner {
	width: 100%;
	max-width: var(--mkh-content-max, 1190px);
	margin-inline: auto;
	padding: 1.5rem var(--mkh-header-gutter) 1.75rem;
	display: grid;
	grid-template-columns: 1fr 1fr minmax(220px, 280px);
	gap: 1.5rem 2rem;
}

.mkh-mega__heading {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mkh-muted);
}

.mkh-mega__col {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.mkh-mega__col a {
	color: var(--mkh-ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.mkh-mega__col a:hover {
	text-decoration: underline;
}

.mkh-mega__feature {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
	padding: 1.25rem;
	border-radius: 8px;
	background: var(--mkh-soft);
	color: var(--mkh-ink);
	text-decoration: none;
	min-height: 140px;
}

.mkh-mega__feature span {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--mkh-muted);
}

.mkh-mega__feature strong {
	font-size: 1.05rem;
	font-weight: 700;
}

.mkh-mega__feature:hover {
	background: var(--mkh-line);
}

/* Mobile drawer */
.mkh-drawer[hidden] {
	display: none !important;
}

.mkh-drawer {
	position: fixed;
	inset: 0;
	z-index: 1100;
}

.mkh-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.mkh-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(88vw, 360px);
	background: var(--mkh-white);
	box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	animation: mkh-drawer-in 0.2s ease;
}

@keyframes mkh-drawer-in {
	from {
		transform: translateX(-12px);
		opacity: 0.6;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.mkh-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem 0.75rem;
	border-bottom: 1px solid var(--mkh-line);
}

.mkh-drawer__close {
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mkh-drawer__close:hover {
	background: var(--mkh-soft);
}

.mkh-drawer__nav {
	display: flex;
	flex-direction: column;
	padding: 0.5rem 0;
	overflow-y: auto;
}

.mkh-drawer__nav a {
	padding: 0.95rem 1.15rem;
	color: var(--mkh-ink);
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 700;
	border-bottom: 1px solid var(--mkh-soft);
}

.mkh-drawer__nav a:hover {
	background: var(--mkh-soft);
}

/* Responsive */
@media (max-width: 1100px) {
	.mkh-primary-nav {
		display: none;
	}

	.mkh-menu-toggle {
		display: inline-flex;
	}

	.mkh-mega {
		display: none !important;
	}
}

@media (max-width: 991px) {
	.mkh-utility-bar__right {
		display: none;
	}

	.mkh-utility-bar__inner {
		grid-template-columns: 1fr auto;
	}

	.mkh-utility-bar__center {
		justify-self: end;
	}

	.mkh-masthead__inner {
		flex-wrap: wrap;
		gap: 0.65rem 0.75rem;
		padding: 0.65rem var(--mkh-header-gutter) 0.75rem;
	}

	.mkh-search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
		margin-inline: 0;
	}

	.mkh-action-link__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.mkh-action-link {
		padding: 0.5rem;
	}

	.mkh-site-header .mkh-logo__img,
	.mkh-site-header .mkh-logo img {
		height: 34px;
	}
}

@media (max-width: 600px) {
	.mkh-utility-bar__locale {
		font-size: 0.7rem;
	}

	.mkh-masthead__actions .mkh-action-link:nth-child(2),
	.mkh-masthead__actions .mkh-action-link:nth-child(3) {
		display: none;
	}
}

/* Keep page content clear of floating chat / call / bag widgets on small screens. */
@media (max-width: 781px) {
	body {
		padding-bottom: 5.5rem;
	}

	.mkh-site-footer {
		padding-bottom: 1rem;
	}
}

/* -------------------------------------------------------------------------- */
/* IKEA-style footer                                                          */
/* -------------------------------------------------------------------------- */

.mkh-site-footer {
	--mkh-ink: #ffffff;
	--mkh-muted: rgba(255, 255, 255, 0.78);
	--mkh-line: rgba(255, 255, 255, 0.22);
	--mkh-soft: rgba(255, 255, 255, 0.12);
	--mkh-white: transparent;
	background: var(--mkh-primary);
	color: var(--mkh-ink);
	border-top: 0;
	margin-top: 3rem;
}

.mkh-footer__inner {
	width: 100%;
	max-width: var(--mkh-content-max, 1190px);
	margin-inline: auto;
	padding: 2.5rem var(--mkh-header-gutter, 1.25rem) 2rem;
}

.mkh-footer__featured {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 2.25rem;
}

.mkh-footer__featured-link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--mkh-ink);
	border-radius: 4px;
	background: var(--mkh-white);
	color: var(--mkh-ink);
	text-decoration: none;
	transition: background 0.15s ease;
}

.mkh-footer__featured-link:hover {
	background: var(--mkh-soft);
	color: var(--mkh-ink);
}

.mkh-footer__featured-title {
	font-size: 0.95rem;
	font-weight: 700;
}

.mkh-footer__featured-text {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--mkh-muted);
}

.mkh-footer__links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	margin-bottom: 2rem;
}

.mkh-footer__group {
	border: 0;
	margin: 0;
	padding: 0;
}

.mkh-footer__heading {
	list-style: none;
	cursor: default;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 0.85rem;
	color: var(--mkh-ink);
}

.mkh-footer__heading::-webkit-details-marker {
	display: none;
}

.mkh-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.mkh-footer__list a {
	color: var(--mkh-ink);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.35;
}

.mkh-footer__list a:hover {
	text-decoration: underline;
	color: var(--mkh-accent);
}

.mkh-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--mkh-line);
	border-bottom: 1px solid var(--mkh-line);
}

.mkh-footer__social {
	display: flex;
	gap: 0.5rem;
}

.mkh-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid var(--mkh-line);
	background: var(--mkh-white);
	color: var(--mkh-ink);
	text-decoration: none;
}

.mkh-footer__social-link:hover {
	background: var(--mkh-soft);
	color: var(--mkh-ink);
}

.mkh-footer__payments {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.mkh-footer__pay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.85rem;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--mkh-line);
	border-radius: 4px;
	background: var(--mkh-white);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--mkh-muted);
}

.mkh-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
}

.mkh-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.mkh-footer__legal a {
	color: var(--mkh-ink);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 600;
}

.mkh-footer__legal a:hover {
	text-decoration: underline;
	color: var(--mkh-accent);
}

.mkh-footer__copy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
}

.mkh-footer__locale {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid var(--mkh-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--mkh-ink);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
}

.mkh-footer__locale:hover {
	background: var(--mkh-white);
}

.mkh-footer__copyright {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--mkh-muted);
}

@media (max-width: 991px) {
	.mkh-footer__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.mkh-footer__featured {
		grid-template-columns: 1fr;
	}

	.mkh-footer__links {
		grid-template-columns: 1fr;
		gap: 0;
		margin-bottom: 1.25rem;
	}

	.mkh-footer__group {
		border-bottom: 1px solid var(--mkh-line);
	}

	.mkh-footer__heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 1rem 0;
		cursor: pointer;
	}

	.mkh-footer__heading::after {
		content: "";
		width: 0.55rem;
		height: 0.55rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.15s ease;
		margin-inline-end: 0.25rem;
	}

	.mkh-footer__group[open] > .mkh-footer__heading::after {
		transform: rotate(-135deg);
	}

	.mkh-footer__list {
		padding-bottom: 1rem;
	}

	.mkh-footer__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.mkh-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Promo + home helpers */
.mkh-promo-bar p {
	margin: 0;
	letter-spacing: 0.01em;
}

.mkh-category-rail .wp-block-button__link {
	border-radius: 999px;
	padding: 0.55rem 1rem;
}

.mkh-mosaic .wp-block-cover {
	overflow: hidden;
}

.mkh-woo.container,
.mkh-woo.container-fluid,
main.mkh-woo,
.mkh-woo {
	width: 100%;
	max-width: var(--mkh-content-max, 1190px) !important;
	margin-inline: auto;
	padding-block: 1.5rem;
	padding-inline: var(--mkh-header-gutter, 1.25rem);
	box-sizing: border-box;
}

body.mkh-width-full .mkh-woo.container-fluid,
body.mkh-width-full main.mkh-woo,
body.mkh-width-full .mkh-woo,
body.mkh-width-full .mkh-section,
body.mkh-width-full .mkh-product-carousel,
body.mkh-width-full .mkh-top-mosaic,
body.mkh-width-full .mkh-utility-bar__inner,
body.mkh-width-full .mkh-masthead__inner,
body.mkh-width-full .mkh-mega__inner,
body.mkh-width-full .mkh-footer__inner {
	max-width: none !important;
}

/* Undo block-theme constrained padding on shop templates. */
.woocommerce-page main.wp-block-group.alignfull.has-global-padding,
.woocommerce main.wp-block-group.alignfull.has-global-padding {
	padding-left: 0;
	padding-right: 0;
}

/* MKH sections follow global content width (beats WP alignwide defaults). */
.wp-block-mkh-top-seller-mosaic.alignwide,
.wp-block-mkh-top-seller-mosaic.alignfull,
.wp-block-mkh-playroom-sets.alignwide,
.wp-block-mkh-playroom-sets.alignfull,
.wp-block-mkh-exclusive-offers.alignwide,
.wp-block-mkh-exclusive-offers.alignfull,
.wp-block-mkh-basic-essentials.alignwide,
.wp-block-mkh-basic-essentials.alignfull,
.wp-block-mkh-featured-products.alignwide,
.wp-block-mkh-featured-products.alignfull,
.wp-block-mkh-bestseller-products.alignwide,
.wp-block-mkh-bestseller-products.alignfull,
.wp-block-mkh-season-must-haves.alignwide,
.wp-block-mkh-season-must-haves.alignfull,
.wp-block-mkh-brand-story.alignwide,
.wp-block-mkh-brand-story.alignfull,
.wp-block-mkh-more-from.alignwide,
.wp-block-mkh-more-from.alignfull,
.wp-block-mkh-trending-now.alignwide,
.wp-block-mkh-trending-now.alignfull,
.wp-block-mkh-shop-services.alignwide,
.wp-block-mkh-shop-services.alignfull,
.mkh-top-mosaic.alignwide,
.mkh-top-mosaic.alignfull,
.mkh-section.alignwide,
.mkh-section.alignfull,
.mkh-product-carousel.alignwide,
.mkh-product-carousel.alignfull {
	width: 100% !important;
	max-width: var(--mkh-content-max, 1190px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.mkh-width-full .wp-block-mkh-top-seller-mosaic.alignwide,
body.mkh-width-full .wp-block-mkh-top-seller-mosaic.alignfull,
body.mkh-width-full .wp-block-mkh-playroom-sets.alignwide,
body.mkh-width-full .wp-block-mkh-playroom-sets.alignfull,
body.mkh-width-full .wp-block-mkh-exclusive-offers.alignwide,
body.mkh-width-full .wp-block-mkh-exclusive-offers.alignfull,
body.mkh-width-full .wp-block-mkh-basic-essentials.alignwide,
body.mkh-width-full .wp-block-mkh-basic-essentials.alignfull,
body.mkh-width-full .wp-block-mkh-featured-products.alignwide,
body.mkh-width-full .wp-block-mkh-featured-products.alignfull,
body.mkh-width-full .wp-block-mkh-bestseller-products.alignwide,
body.mkh-width-full .wp-block-mkh-bestseller-products.alignfull,
body.mkh-width-full .wp-block-mkh-season-must-haves.alignwide,
body.mkh-width-full .wp-block-mkh-season-must-haves.alignfull,
body.mkh-width-full .wp-block-mkh-brand-story.alignwide,
body.mkh-width-full .wp-block-mkh-brand-story.alignfull,
body.mkh-width-full .wp-block-mkh-more-from.alignwide,
body.mkh-width-full .wp-block-mkh-more-from.alignfull,
body.mkh-width-full .wp-block-mkh-trending-now.alignwide,
body.mkh-width-full .wp-block-mkh-trending-now.alignfull,
body.mkh-width-full .wp-block-mkh-shop-services.alignwide,
body.mkh-width-full .wp-block-mkh-shop-services.alignfull,
body.mkh-width-full .mkh-top-mosaic.alignwide,
body.mkh-width-full .mkh-top-mosaic.alignfull,
body.mkh-width-full .mkh-section.alignwide,
body.mkh-width-full .mkh-section.alignfull,
body.mkh-width-full .mkh-product-carousel.alignwide,
body.mkh-width-full .mkh-product-carousel.alignfull {
	max-width: none !important;
}

.woocommerce ul.products li.product,
.wc-block-product {
	border-radius: var(--mkh-radius);
}

/* Hide template page title when option is off */
body.mkh-hide-page-title main > .wp-block-post-title,
body.mkh-hide-page-title .wp-block-post-title {
	display: none !important;
}

/* Floating Call / WhatsApp (replaces Chaty + Click to Chat) */
.mkh-float-chat {
	position: fixed;
	right: 0.65rem;
	/* Sit just above Woo side-cart basket */
	bottom: 5.5rem;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	pointer-events: none;
}

.mkh-float-chat__btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mkh-float-chat__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	text-decoration: none;
}

.mkh-float-chat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	color: #fff;
	flex: 0 0 auto;
}

.mkh-float-chat__label {
	display: none;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	background: #fff;
	color: var(--mkh-ink);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.mkh-float-chat__btn:hover .mkh-float-chat__label,
.mkh-float-chat__btn:focus-visible .mkh-float-chat__label {
	display: inline-block;
}

.mkh-float-chat__btn--whatsapp .mkh-float-chat__icon {
	background: #25d366;
}

.mkh-float-chat__btn--call .mkh-float-chat__icon {
	background: var(--mkh-primary);
}

@media (max-width: 600px) {
	.mkh-float-chat {
		right: 0.75rem;
		bottom: 5.25rem;
	}

	.mkh-float-chat__icon {
		width: 50px;
		height: 50px;
	}
}

/* ==========================================================================
   Layout overflow fixes (28 Oct 2026)
   Stops the page scrolling sideways on desktop and mobile.
   ========================================================================== */

/*
 * The header/footer containers had width:100% + horizontal padding with
 * content-box sizing, so each one was 100% + 2 × gutter wide (e.g. 415px on a
 * 375px phone). width:auto fills the parent and keeps max-width + centring.
 */
.mkh-utility-bar__inner,
.mkh-masthead__inner,
.mkh-category-strip__track,
.mkh-mega__inner,
.mkh-footer__inner {
	width: auto;
	min-width: 0;
}

/*
 * Make the horizontal scrollers the containing block for absolutely
 * positioned children (e.g. .screen-reader-text in product cards), so those
 * stay clipped inside the scroller instead of stretching the page.
 */
.mkh-product-carousel__track,
.mkh-category-strip__list {
	position: relative;
}

/* Mobile: keep the cart (shopping bag) icon in the header. */
@media (max-width: 600px) {
	.mkh-masthead__actions .mkh-action-link.mkh-action-link--cart {
		display: flex;
	}
}

/*
 * Product grid buttons: width:100% plus padding made them ~26px wider than
 * the card on phones (e.g. "Select options" in shop/category grids).
 */
body.mkh-catalog ul.products li.product .button {
	box-sizing: border-box;
	max-width: 100%;
}

/*
 * Brand story image: min-height + 16/10 aspect-ratio forced it to 352px wide
 * on a 375px phone. Let the aspect-ratio set the height on small screens.
 */
@media (max-width: 560px) {
	.mkh-story .mkh-story__media {
		min-height: 0;
	}
}

/* ==========================================================================
   Responsive layout helpers for editor-built pages (28 Oct 2026)
   Add these class names under Block → Advanced → Additional CSS class(es).
   ========================================================================== */

/* Grid block: 2 columns on phones, 4 from tablet up (1 on very small phones). */
.mkh-grid-2-4.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 359px) {
	.mkh-grid-2-4.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 768px) {
	.mkh-grid-2-4.is-layout-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Grid block: 1 column on phones, 2 on tablets, 4 on desktop (no orphans). */
.mkh-grid-1-2-4.is-layout-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.mkh-grid-1-2-4.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.mkh-grid-1-2-4.is-layout-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Media & Text: stack image above text below 782px (core only stacks below 600px). */
@media (max-width: 781px) {
	.wp-block-media-text.mkh-stack-tablet {
		grid-template-columns: 100% !important;
	}

	.wp-block-media-text.mkh-stack-tablet > .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 1;
		min-height: 260px;
	}

	.wp-block-media-text.mkh-stack-tablet > .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 2;
		padding: 1.5rem 0.5rem 0.75rem;
	}
}

/* ==========================================================================
   Header fit with the Projects menu item (28 Oct 2026)
   ========================================================================== */

/*
 * Laptop widths (992–1399px): show the account / track order / bag actions as
 * icons only (labels stay available to screen readers), so the search box keeps
 * a usable width next to Products · Spaces · Projects · Offers · Inspiration · Services.
 */
@media (min-width: 992px) and (max-width: 1399px) {
	.mkh-masthead__actions .mkh-action-link__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

/* Never let the search box collapse while the desktop nav is visible. */
@media (min-width: 1101px) {
	.mkh-search {
		min-width: 9rem;
	}
}

/*
 * Product carousel arrows sit 3.25rem outside the carousel; below 1200px that
 * pushed the page sideways. Tuck them inside the carousel edges instead.
 */
@media (max-width: 1199px) {
	.mkh-product-carousel__stage .mkh-product-carousel__btn--prev {
		left: 0.25rem;
	}

	.mkh-product-carousel__stage .mkh-product-carousel__btn--next {
		right: 0.25rem;
	}
}

/* ==========================================================================
   Rich mega menus — Products & Spaces (28 Oct 2026)
   Markup: mkh_mega_rich_panel_html() in inc/header-styles.php
   ========================================================================== */

.mkh-mega__inner.mkh-mega__rich {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	align-items: start;
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
}

.mkh-mega__label {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mkh-slate, #747474);
}

.mkh-mega__cols {
	display: grid;
	grid-template-columns: repeat(var(--mkh-mega-cols, 4), minmax(0, 1fr));
	gap: 1.5rem;
}

.mkh-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.1rem;
}

.mkh-mega__list a,
.mkh-mega__all {
	display: inline-block;
	padding: 0.3rem 0;
	color: var(--mkh-ink);
	font-size: 0.95rem;
	text-decoration: none;
}

.mkh-mega__list a:hover,
.mkh-mega__list a:focus-visible {
	color: var(--mkh-primary);
}

.mkh-mega__all {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--mkh-primary);
}

.mkh-mega__all:hover {
	text-decoration: underline;
}

/* Side column: feature cards + quick pills */
.mkh-mega__side {
	display: grid;
	gap: 0.9rem;
}

.mkh-mega__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	padding: 1.1rem;
	border-radius: 20px;
	overflow: hidden;
	background: var(--mkh-primary-dark, #2e005c);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.mkh-site-header .mkh-mega .mkh-mega__card-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.mkh-mega__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(46, 0, 92, 0) 30%, rgba(46, 0, 92, 0.88));
}

.mkh-mega__card:hover .mkh-mega__card-img,
.mkh-mega__card:focus-visible .mkh-mega__card-img {
	transform: scale(1.04);
}

.mkh-mega__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: var(--mkh-accent, #f4b011);
	color: #1e1e1e;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mkh-mega__card-title {
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 1.2rem;
	line-height: 1.25;
}

.mkh-mega__card-cta {
	margin-top: 0.3rem;
	font-size: 0.88rem;
	opacity: 0.92;
}

.mkh-mega__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mkh-mega__quick a {
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--mkh-soft);
	color: var(--mkh-primary);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.mkh-mega__quick a:hover {
	background: var(--mkh-line, #e0dede);
}

/* Spaces: photo tiles */
.mkh-mega__tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.mkh-mega__tile {
	display: block;
	color: var(--mkh-ink);
	text-decoration: none;
}

.mkh-site-header .mkh-mega .mkh-mega__tile-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	background: var(--mkh-soft);
	transition: transform 0.3s ease;
}

.mkh-mega__tile:hover .mkh-mega__tile-img,
.mkh-mega__tile:focus-visible .mkh-mega__tile-img {
	transform: translateY(-3px);
}

.mkh-mega__tile-text {
	display: flex;
	flex-direction: column;
	padding: 0.6rem 0.2rem 0;
}

.mkh-mega__tile-text strong {
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	font-size: 1rem;
	line-height: 1.3;
}

.mkh-mega__tile-text small {
	color: var(--mkh-slate, #747474);
	font-size: 0.82rem;
}

.mkh-mega__tile:hover strong {
	color: var(--mkh-primary);
}

/* Spaces: age chips */
.mkh-mega__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--mkh-line, #e0dede);
}

.mkh-mega__chips .mkh-mega__label {
	margin: 0 0.5rem 0 0;
}

.mkh-mega__chips a {
	padding: 0.4rem 0.9rem;
	border: 1.5px solid var(--mkh-line, #e0dede);
	border-radius: 999px;
	color: var(--mkh-ink);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.mkh-mega__chips a:hover {
	border-color: var(--mkh-primary);
	color: var(--mkh-primary);
}

/* Narrow laptops: slimmer side column */
@media (max-width: 1240px) {
	.mkh-mega__inner.mkh-mega__rich {
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 1.75rem;
	}

	.mkh-mega__cols {
		gap: 1rem;
	}
}

/* Mobile drawer: expandable Products / Spaces */
.mkh-drawer__group {
	border-bottom: 1px solid var(--mkh-soft);
}

.mkh-drawer__group > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.95rem 1.15rem;
	color: var(--mkh-ink);
	font-size: 1.05rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.mkh-drawer__group > summary::-webkit-details-marker {
	display: none;
}

.mkh-drawer__group > summary::after {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.mkh-drawer__group[open] > summary::after {
	transform: rotate(-135deg);
}

.mkh-drawer__sub {
	padding: 0 1.15rem 1rem;
}

.mkh-drawer__heading {
	margin: 0.9rem 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mkh-slate, #747474);
}

.mkh-drawer__links {
	display: flex;
	flex-direction: column;
}

.mkh-drawer__nav .mkh-drawer__links a {
	padding: 0.55rem 0;
	border: 0;
	font-size: 0.98rem;
	font-weight: 500;
}

.mkh-drawer__nav .mkh-drawer__links a.mkh-drawer__all {
	color: var(--mkh-primary);
	font-weight: 700;
}

.mkh-drawer__links--chips {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.mkh-drawer__nav .mkh-drawer__links--chips a {
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--mkh-soft);
	color: var(--mkh-primary);
	font-size: 0.88rem;
	font-weight: 600;
}

/* Columns block: when the text column comes first on desktop (alternating
   image/text rows), show the image first once the columns stack on phones.
   Add the class "mkh-cols-reverse" to the Columns block. */
@media (max-width: 781px) {
	.wp-block-columns.mkh-cols-reverse {
		flex-direction: column-reverse;
	}
}

/* ==========================================================================
   Header actions: icons only at every screen size (28 Oct 2026)
   Log in/out, Track order and Shopping bag show just their icons. The text
   stays in the page for screen readers and appears as a small tooltip on
   hover or keyboard focus.
   ========================================================================== */
.mkh-masthead__actions .mkh-action-link {
	position: relative;
}

.mkh-masthead__actions .mkh-action-link__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (hover: hover) {
	.mkh-masthead__actions .mkh-action-link:hover .mkh-action-link__label,
	.mkh-masthead__actions .mkh-action-link:focus-visible .mkh-action-link__label {
		top: calc(100% + 6px);
		left: 50%;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0.3rem 0.55rem;
		overflow: visible;
		clip: auto;
		transform: translateX(-50%);
		border-radius: 6px;
		background: var(--mkh-ink, #1e1e1e);
		color: #fff;
		font-size: 0.75rem;
		font-weight: 600;
		line-height: 1.2;
		z-index: 40;
		pointer-events: none;
	}
}

/* ==========================================================================
   GCC store selector (28 Oct 2026) — utility bar dropdown + drawer section
   Markup: mkh_store_selector_html() / mkh_store_drawer_html()
   ========================================================================== */
.mkh-store {
	position: relative;
	justify-self: end;
}

.mkh-store__toggle {
	gap: 0.45rem;
	padding: 0.15rem 0.35rem;
	border-radius: 6px;
}

.mkh-store__toggle:hover,
.mkh-store__toggle[aria-expanded="true"] {
	text-decoration: none;
	background: rgba(255, 255, 255, 0.14);
}

.mkh-store__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mkh-flag {
	flex: 0 0 auto;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.mkh-store__caret {
	transition: transform 0.15s ease;
}

.mkh-store__toggle[aria-expanded="true"] .mkh-store__caret {
	transform: rotate(180deg);
}

.mkh-store__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	width: 260px;
	padding: 0.5rem;
	border-radius: 14px;
	background: var(--mkh-white, #fff);
	color: var(--mkh-ink, #1e1e1e);
	box-shadow: 0 18px 40px rgba(30, 0, 60, 0.22);
	font-size: 0.9rem;
}

.mkh-store__title {
	margin: 0.35rem 0.6rem 0.4rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mkh-slate, #747474);
}

.mkh-store__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mkh-store__option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.6rem;
	border-radius: 9px;
	color: inherit;
	text-decoration: none;
}

.mkh-store__option:hover,
.mkh-store__option:focus-visible {
	background: var(--mkh-soft, #f1ecf7);
	outline: none;
}

.mkh-store__option.is-current {
	font-weight: 700;
	color: var(--mkh-primary, #400080);
}

.mkh-store__name {
	flex: 1;
}

.mkh-store__cur {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--mkh-slate, #747474);
	font-variant-numeric: tabular-nums;
}

/* Below 992px the utility-bar slot is hidden; the drawer section is used instead. */
/* Mobile placement: see "Utility bar: two rows on mobile" below. */

.mkh-store__summary {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.mkh-drawer__group--store .mkh-drawer__links a.mkh-store__option {
	display: flex;
	padding: 0.55rem 0.4rem;
}

/* =========================================================
 * Store messages (rotating top-bar announcements) — 28 Oct 2026
 * ========================================================= */
.mkh-msgs {
	display: grid;
	min-width: 0;
	max-width: 100%;
}

.mkh-msg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
	min-width: 0;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.mkh-msg.is-active {
	opacity: 1;
	transform: none;
}

.mkh-msg.is-leaving {
	opacity: 0;
	transform: translateY(-4px);
}

.mkh-msg[hidden] {
	display: none;
}

.mkh-msg__text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

a.mkh-msg:hover .mkh-msg__text,
a.mkh-msg:focus-visible .mkh-msg__text {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.mkh-msg {
		transition: none;
		transform: none;
	}
}

/* =========================================================
 * Language selector (28 Oct 2026) — reuses .mkh-store__* styles
 * ========================================================= */
.mkh-lang {
	position: relative;
	justify-self: start;
	min-width: 0;
}

.mkh-lang .mkh-store__menu {
	left: 0;
	right: auto;
	width: 220px;
}

.mkh-lang .mkh-store__name[dir="rtl"] {
	font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
	font-size: 1rem;
}

/* Short label not needed: the language switcher has its own row on mobile. */
.mkh-lang__short {
	display: none;
}

/* Language

/* =========================================================
 * Mobile/tablet (28 Oct 2026, revised):
 * - Top bar shows only the rotating store message.
 * - Language switcher (left) and GCC store dropdown (right) sit in a
 *   bar fixed to the bottom of the screen; their menus open upwards.
 * - Floating buttons are lifted above that bar.
 * ========================================================= */
:root {
	--mkh-switchbar-h: 48px;
}

@media (max-width: 991px) {
	.mkh-utility-bar .mkh-utility-bar__inner {
		grid-template-columns: 1fr;
	}

	.mkh-utility-bar .mkh-msgs {
		justify-self: center;
		text-align: center;
	}

	/* Long messages wrap to a second line instead of being cut off. */
	.mkh-utility-bar .mkh-msg__text {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		line-height: 1.35;
	}

	/* The header collapses the top bar on scroll (max-height 0, opacity 0).
	   Keep opacity so the fixed bottom bar inside it stays visible;
	   max-height + overflow still hide the top bar itself. */
	.mkh-site-header .mkh-utility-bar {
		opacity: 1 !important;
	}

	/* Bottom switcher bar: two fixed halves on one purple strip. */
	.mkh-utility-bar .mkh-lang,
	.mkh-utility-bar .mkh-store {
		position: fixed;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		width: 50%;
		height: calc(var(--mkh-switchbar-h) + env(safe-area-inset-bottom, 0px));
		padding: 0 16px env(safe-area-inset-bottom, 0px);
		background: var(--mkh-primary, #4b1691);
		color: #fff;
		box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
	}

	.mkh-utility-bar .mkh-lang {
		left: 0;
		justify-content: flex-start;
	}

	.mkh-utility-bar .mkh-store {
		right: 0;
		justify-content: flex-end;
	}

	.mkh-utility-bar .mkh-lang .mkh-store__toggle,
	.mkh-utility-bar .mkh-store .mkh-store__toggle {
		color: #fff;
		font-size: 0.85rem;
		min-height: 40px;
	}

	/* While a menu is open, lift it above the floating chat/cart buttons. */
	.mkh-site-header:has(.mkh-utility-bar .mkh-store__toggle[aria-expanded="true"]),
	.mkh-utility-bar .mkh-lang:has(.mkh-store__toggle[aria-expanded="true"]),
	.mkh-utility-bar .mkh-store:has(.mkh-store__toggle[aria-expanded="true"]) {
		z-index: 2147483000;
	}

	/* Menus open upwards from the bottom bar. */
	.mkh-utility-bar .mkh-lang .mkh-store__menu,
	.mkh-utility-bar .mkh-store .mkh-store__menu {
		top: auto;
		bottom: calc(100% + 8px);
		max-width: calc(100vw - 32px);
		color: var(--mkh-ink, #1d1d1f);
	}

	.mkh-utility-bar .mkh-lang .mkh-store__menu {
		left: 16px;
		right: auto;
	}

	.mkh-utility-bar .mkh-store .mkh-store__menu {
		right: 16px;
		left: auto;
	}

	.mkh-utility-bar .mkh-store__toggle[aria-expanded="true"] .mkh-store__caret {
		transform: rotate(0deg);
	}

	.mkh-utility-bar .mkh-store__toggle[aria-expanded="false"] .mkh-store__caret {
		transform: rotate(180deg);
	}

	/* Keep page content clear of the bar. */
	body {
		padding-bottom: calc(var(--mkh-switchbar-h) + env(safe-area-inset-bottom, 0px));
	}

	/* Lift floating buttons above the bar. */
	.mkh-float-chat {
		bottom: calc(84px + var(--mkh-switchbar-h)) !important;
	}

	.xoo-wsc-basket {
		bottom: calc(12px + var(--mkh-switchbar-h)) !important;
	}

	.cky-btn-revisit-wrapper {
		bottom: calc(15px + var(--mkh-switchbar-h)) !important;
	}

	.grecaptcha-badge {
		bottom: calc(14px + var(--mkh-switchbar-h)) !important;
	}

	/* The store dropdown is in the bottom bar, so drop the drawer copy. */
	.mkh-drawer__group--store {
		display: none;
	}
}

/* =========================================================
 * Footer payment logos (28 Oct 2026)
 * Visa / Mastercard / Apple Pay: official WooCommerce marks (inline SVG).
 * Tabby: official logo from the Tabby plugin (media library).
 * ========================================================= */
.mkh-footer__payments .mkh-footer__pay--logo {
	box-sizing: border-box;
	width: 52px;
	height: 34px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	overflow: hidden;
	flex: 0 0 auto;
}

.mkh-footer__payments .mkh-pay-logo {
	display: block;
	width: 100%;
	height: 100%;
}

.mkh-footer__payments .mkh-footer__pay--card {
	background: #fff;
	padding: 0 6px;
}

.mkh-footer__payments .mkh-footer__pay--card img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 18px;
	object-fit: contain;
}

.mkh-footer__payments .mkh-footer__pay--text {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0;
	color: #000;
	text-transform: lowercase;
}

/* =========================================================
 * Brand story ("Moon Kids Home is here to be part of your story"):
 * full-width text, badges in a row below (30 Oct 2026).
 * The stretched 656x50 banner image is hidden.
 * ========================================================= */
.mkh-story-wrap .mkh-story {
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.mkh-story-wrap .mkh-story__copy,
.mkh-story-wrap .mkh-story__copy h2,
.mkh-story-wrap .mkh-story__copy p {
	max-width: none;
}

.mkh-story-wrap .mkh-story__media {
	min-height: 0;
	height: auto;
	aspect-ratio: auto;
	background: none;
	padding: 0;
	overflow: visible;
}

.mkh-story-wrap .mkh-story__media img {
	display: none;
}

.mkh-story-wrap .mkh-story__badges {
	position: static;
	inset: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
}

.mkh-story-wrap .mkh-story__badge {
	position: static;
	max-width: none;
}

/* ==========================================================================
 * Footer rebuilt as editable core blocks (30 Oct 2026)
 * parts/footer.html now uses Group / Details / List / Paragraph / Social Icons
 * instead of one Custom HTML block. These rules map the old styling onto the
 * block markup. Append to assets/css/theme.css.
 * ========================================================================== */
.mkh-site-footer .is-layout-flow > *,
.mkh-site-footer .is-layout-constrained > * {
	margin-block-start: 0;
}
.mkh-site-footer p {
	margin: 0;
}

/* Featured CTA cards: whole card stays clickable (stretched link). */
.mkh-footer__featured-link {
	position: relative;
}
.mkh-footer__featured-title a {
	color: inherit;
	text-decoration: none;
}
.mkh-footer__featured-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.mkh-footer__featured-link:focus-within {
	outline: 2px solid var(--mkh-ink);
	outline-offset: 2px;
}

/* Details block summary = old .mkh-footer__heading */
.mkh-footer__group > summary {
	list-style: none;
	cursor: default;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 0.85rem;
	color: var(--mkh-ink);
}
.mkh-footer__group > summary::-webkit-details-marker {
	display: none;
}
.mkh-footer__group > summary::marker {
	content: "";
}
.mkh-footer__list li {
	margin: 0;
}

/* Social Icons block = old round outline buttons */
.mkh-site-footer .mkh-footer__social {
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}
.mkh-site-footer .mkh-footer__social .wp-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	border: 1px solid var(--mkh-line);
	border-radius: 999px;
	background: transparent;
	color: var(--mkh-ink);
}
.mkh-site-footer .mkh-footer__social .wp-social-link:hover {
	background: var(--mkh-soft);
	transform: none;
}
.mkh-site-footer .mkh-footer__social .wp-social-link a {
	padding: 0;
	color: inherit;
}
.mkh-site-footer .mkh-footer__social .wp-social-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (max-width: 781px) {
	.mkh-footer__group > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 1rem 0;
		cursor: pointer;
	}
	.mkh-footer__group > summary::after {
		content: "";
		width: 0.55rem;
		height: 0.55rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.15s ease;
		margin-inline-end: 0.25rem;
	}
	.mkh-footer__group[open] > summary::after {
		transform: rotate(-135deg);
	}
}
