/**
 * Global mobile overflow / responsive hard-fixes for MFF Elementor shells.
 * Stops horizontal left-right scroll on phones.
 */

html,
body {
	overflow-x: hidden !important;
	max-width: 100%;
	width: 100%;
	position: relative;
}

img,
video,
iframe,
embed,
object,
svg {
	max-width: 100%;
	height: auto;
}

.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.elementor-column,
.elementor-widget,
.elementor-widget-container {
	max-width: 100%;
	box-sizing: border-box;
}

/* Long admin HTML / unbroken strings */
.mff-post-body,
.elementor-widget-theme-post-content,
.elementor-widget-text-editor {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.mff-post-body table,
.elementor-widget-theme-post-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* Explore topics: force wrap instead of one wide row */
.mff-explore-topics {
	display: flex !important;
	flex-wrap: wrap !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.mff-explore-topics > .elementor-column {
	box-sizing: border-box;
	max-width: 100%;
}

.mff-home-cat-row,
.mff-home-cat-row .elementor-container {
	max-width: 100% !important;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	body.responsive-layout .rotate-270,
	.rotate-270 {
		transform: none !important;
	}

	/* Keep dropdown inside viewport without breaking aside/open state */
	.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		max-width: 100vw;
		box-sizing: border-box;
	}

	/* Hide native Elementor dropdown on mobile — we use #mff-mobile-nav instead */
	.elementor-nav-menu--toggle .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		display: none !important;
		max-height: 0 !important;
		transform: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.elementor-widget-nav-menu.elementor-nav-menu--stretch {
		position: relative;
		z-index: 10040;
	}

	.elementor-location-header,
	.elementor-4031,
	.elementor-4031 .elementor-section,
	.elementor-4031 .elementor-container,
	.elementor-4031 .elementor-widget-wrap,
	.elementor-4031 .elementor-column {
		overflow: visible !important;
	}

	.elementor-location-header,
	.elementor-4031,
	.elementor-4031 .elementor-container {
		max-width: 100% !important;
	}

	.mff-explore-topics > .elementor-column {
		width: 50% !important;
		flex: 0 0 50% !important;
		max-width: 50% !important;
	}

	.elementor-element-4206299 .mff-explore-topics > .elementor-column:first-child {
		width: 100% !important;
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}

	.mff-home-cat-row {
		padding-left: 16px !important;
		padding-right: 16px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.mff-home-cat-row .elementor-column {
		width: 100% !important;
		max-width: 100% !important;
	}

	.elementor-5103 .mff-post-main > .elementor-container {
		flex-wrap: wrap !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.elementor-5103 .mff-post-sidebar-col,
	.elementor-5103 .mff-post-content-col {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}

	.elementor-5103 .mff-post-sidebar {
		position: static !important;
		padding-right: 0 !important;
	}

	.elementor-posts-container,
	.elementor-grid,
	.elementor-post,
	.elementor-post__thumbnail img {
		max-width: 100% !important;
	}

	/* Decorative huge headings / quote marks (About “ ) */
	.elementor-widget-heading .elementor-heading-title {
		max-width: 100%;
		overflow: hidden;
	}

	.elementor-element-c5e17f8 .elementor-heading-title {
		font-size: clamp(72px, 22vw, 140px) !important;
		line-height: 0.9 !important;
		max-width: 100% !important;
		overflow: hidden !important;
	}

	.woocommerce ul.products,
	.elementor-wc-products {
		max-width: 100% !important;
	}
}

@media (max-width: 767px) {
	.mff-explore-topics > .elementor-column {
		width: 50% !important;
		flex: 0 0 50% !important;
		max-width: 50% !important;
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	.elementor-section.elementor-section-boxed > .elementor-container,
	.elementor-section-full_width > .elementor-container {
		max-width: 100% !important;
		padding-left: 12px;
		padding-right: 12px;
		box-sizing: border-box;
	}

	/* Related / shop leftover label columns full width */
	.elementor-5103 .elementor-element-9886d8a .elementor-col-50,
	.elementor-5103 .elementor-element-0c9b2f8 .elementor-col-50 {
		width: 100% !important;
	}
}

/* Desktop left menu drawer (popup 14362 fallback) */
.mff-side-panel {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.mff-side-panel.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.mff-side-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .45);
}

.mff-side-panel__sheet {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: min(420px, 92vw);
	background: #fff;
	box-shadow: 8px 0 30px rgba(0, 0, 0, .12);
	overflow: auto;
	transform: translateX(-104%);
	transition: transform .28s ease;
}

.mff-side-panel.is-open .mff-side-panel__sheet {
	transform: translateX(0);
}

.mff-side-panel__close {
	position: sticky;
	top: 12px;
	float: right;
	margin: 12px 12px 0 0;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	background: #f5f3f1;
	color: #191919;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.mff-side-panel__body {
	clear: both;
	padding: 8px 20px 40px;
}

.mff-side-panel__body .elementor-14362 {
	display: block !important;
}

.mff-side-panel__body .elementor-invisible {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

body.mff-side-panel-open {
	overflow: hidden;
}

/* Side drawer explore topics: restore card height + wrap (dynamic CTAs lack Elementor IDs) */
.mff-side-panel .mff-explore-topics,
.elementor-14362 .mff-explore-topics {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	gap: 0;
}

.mff-side-panel .mff-explore-topics > .elementor-column,
.elementor-14362 .elementor-element-eda7999 .mff-explore-topics > .elementor-column,
.elementor-14362 .mff-explore-topics > .mff-explore-topic-col {
	width: 33.333% !important;
	flex: 0 0 33.333% !important;
	max-width: 33.333% !important;
	padding: 0 8px 14px !important;
	float: none !important;
}

.mff-side-panel .mff-explore-topic-card .elementor-cta,
.elementor-14362 .mff-explore-topic-card .elementor-cta {
	display: block;
	width: 100%;
	text-decoration: none;
}

.mff-side-panel .mff-explore-topic-card .elementor-cta__bg-wrapper,
.elementor-14362 .mff-explore-topic-card .elementor-cta__bg-wrapper {
	min-height: 110px !important;
	height: 110px !important;
	position: relative;
	overflow: hidden;
	border-radius: 2px;
}

.mff-side-panel .mff-explore-topic-card .elementor-cta__bg,
.elementor-14362 .mff-explore-topic-card .elementor-cta__bg {
	position: absolute;
	inset: 0;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

.mff-side-panel .mff-explore-topic-card .elementor-cta__bg-overlay,
.elementor-14362 .mff-explore-topic-card .elementor-cta__bg-overlay {
	position: absolute;
	inset: 0;
}

.mff-side-panel .mff-explore-topic-card .elementor-cta__content,
.elementor-14362 .mff-explore-topic-card .elementor-cta__content {
	position: relative !important;
	padding: 10px 0 0 !important;
	text-align: left !important;
	background: transparent !important;
}

.mff-side-panel .mff-explore-topic-card .elementor-cta__title,
.elementor-14362 .mff-explore-topic-card .elementor-cta__title {
	font-size: 15px !important;
	line-height: 1.25 !important;
	margin: 0 !important;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.mff-side-panel .elementor-element-eda7999,
.mff-side-panel .elementor-element-eda7999 > .elementor-container,
.mff-side-panel .elementor-element-ca306e4 > .elementor-container,
.elementor-14362 .elementor-element-ca306e4 > .elementor-container {
	min-height: 0 !important;
}

.mff-side-panel .elementor-element-eda7999 {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.mff-side-panel .elementor-element-ca306e4 .elementor-widget-wrap {
	flex-wrap: wrap !important;
	row-gap: 8px;
}

@media (max-width: 420px) {
	.mff-side-panel .mff-explore-topics > .elementor-column,
	.elementor-14362 .mff-explore-topics > .mff-explore-topic-col {
		width: 50% !important;
		flex: 0 0 50% !important;
		max-width: 50% !important;
	}
}

/* Fixed mobile nav panel (site-wide, independent of Elementor dropdown) */
.mff-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 100080;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.mff-mobile-nav.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.mff-mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .35);
}

.mff-mobile-nav__sheet {
	position: absolute;
	top: var(--mff-mobile-nav-top, 56px);
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--mff-mobile-nav-top, 56px));
	overflow: auto;
	background: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
	-webkit-overflow-scrolling: touch;
}

.mff-mobile-nav__list {
	padding: 0;
}

.mff-mobile-nav__list .elementor-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mff-mobile-nav__list .elementor-nav-menu > li {
	margin: 0;
	border-bottom: 1px solid #ececec;
}

.mff-mobile-nav__list .elementor-nav-menu a.elementor-item {
	display: block;
	padding: 14px 20px;
	font-family: "Work Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #191919;
	line-height: 1.4;
}

.mff-mobile-nav__list .elementor-nav-menu a.elementor-item:hover,
.mff-mobile-nav__list .elementor-nav-menu a.elementor-item:focus {
	background: #f7f5f3;
	color: #191919;
}

body.mff-mobile-nav-open {
	overflow: hidden;
}

@media (min-width: 1025px) {
	.mff-mobile-nav {
		display: none !important;
	}
}
