/* Manto Online footer (boxed columns) + fixed social buttons. Markup: home-sections.php. */

/* ================= Footer ================= */
html .wd-footer {
	padding: 0 !important;
	background: var(--mo-cream) !important;
	border: 0 !important;
}
.mo-foot {
	position: relative;
	width: min(1222px, 100% - 32px);
	margin: 32px auto 20px;
	padding: 12px;
	border: 1px solid rgba(140, 117, 98, .28);       /* frame around all boxes */
	border-radius: 34px;
	background: rgba(216, 197, 173, .38);
	box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .45), 0 24px 44px -38px rgba(51, 40, 33, .55);
}
.mo-foot::before {                                   /* inner hairline: double-frame look */
	content: "";
	position: absolute;
	inset: 6px;
	border: 1px dashed rgba(140, 117, 98, .3);
	border-radius: 29px;
	pointer-events: none;
}
.mo-foot__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.55fr 1fr 1fr 1.2fr .95fr;
	gap: 10px;
}
.mo-foot__box {
	position: relative;
	padding: 16px 18px 14px;
	border: 1px solid rgba(140, 117, 98, .22);
	border-radius: 22px;
	background: var(--mo-white);
	transition: transform .35s var(--mo-ease), box-shadow .35s var(--mo-ease);
}
.mo-foot__box:hover {
	transform: translateY(-3px);
	box-shadow: 0 22px 36px -28px rgba(51, 40, 33, .45);
}
.mo-foot__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.5 !important;
	color: var(--mo-brown) !important;
}
.mo-foot__title::before,
.mo-foot__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to var(--d, left), var(--mo-soft), transparent);
}
.mo-foot__title::after { --d: right; }
.mo-foot__title span { white-space: nowrap; }

/* link lists */
.mo-foot__links,
.mo-foot__contact {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.mo-foot__links li,
.mo-foot__contact li { margin: 0 !important; }
.mo-foot__links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 4px;
	border-radius: 10px;
	color: var(--mo-deep) !important;
	font-size: 14px;
	font-weight: 500;
	transition: color .2s ease, padding .25s var(--mo-ease), background-color .2s ease;
}
.mo-foot__links a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mo-soft);
	transition: background-color .2s ease, transform .25s var(--mo-ease);
}
.mo-foot__links a:hover {
	color: var(--mo-brown) !important;
	padding-inline-start: 10px;
	background: var(--mo-cream);
}
.mo-foot__links a:hover::before { background: var(--mo-brown); transform: scale(1.3); }

.mo-foot__contact a,
.mo-foot__plain {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 0;
	color: var(--mo-deep) !important;
	font-size: 14px;
	font-weight: 500;
	transition: color .2s ease;
}
.mo-foot__contact svg {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 6px;
	border-radius: 10px;
	background: var(--mo-cream);
	fill: none;
	stroke: var(--mo-brown);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: background-color .25s ease, stroke .25s ease;
}
.mo-foot__contact .mo-fill { fill: var(--mo-brown); stroke: none; }
.mo-foot__contact a:hover { color: var(--mo-brown) !important; }
.mo-foot__contact a:hover svg { background: var(--mo-brown); stroke: var(--mo-cream); }
.mo-foot__contact a:hover .mo-fill { fill: var(--mo-cream); }
.mo-foot__contact span[dir="ltr"] { font-size: 13px; }

/* about */
.mo-foot__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	text-decoration: none !important;
}
.mo-foot__brand .mo-logo { width: 46px; }
.mo-foot__about {
	margin: 0 0 10px !important;
	font-size: 13px;
	line-height: 1.85;
	color: var(--mo-deep);
}
.mo-foot__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-foot__stats span {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--mo-cream);
	color: var(--mo-taupe);
	font-size: 12px;
	font-weight: 600;
}
.mo-foot__stats b { color: var(--mo-brown); font-size: 14px; font-weight: 800; }

/* trust seal */
.mo-foot__trust {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.mo-foot__seal {
	display: grid;
	place-items: center;
	width: 104px;
	height: 104px;
	border: 1px solid var(--mo-line);
	border-radius: 22px;
	background: var(--mo-white);
	box-shadow: 0 14px 26px -20px rgba(51, 40, 33, .5);
	transition: transform .35s var(--mo-ease);
}
.mo-foot__seal:hover { transform: scale(1.04) rotate(-2deg); }
.mo-foot__seal img { max-width: 86px; max-height: 86px; height: auto; }
.mo-foot__trust span { font-size: 12px; line-height: 1.7; color: var(--mo-taupe); }

/* bottom bar */
.mo-foot__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: relative;
	margin-top: 10px;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--mo-brown);
	color: rgba(248, 239, 227, .85);
	font-size: 13px;
}
.mo-foot__top {
	color: var(--mo-cream) !important;
	font-weight: 700;
	white-space: nowrap;
}
.mo-foot a:focus-visible { outline: 2px solid var(--mo-taupe); outline-offset: 2px; }

@media (max-width: 1100px) {
	.mo-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mo-foot__box--about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.mo-foot { width: calc(100% - 20px); margin: 20px auto 14px; padding: 8px; border-radius: 26px; }
	.mo-foot::before { inset: 4px; border-radius: 22px; }
	.mo-foot__grid { gap: 8px; }
	.mo-foot__box { padding: 13px 13px 11px; border-radius: 18px; }
	.mo-foot__trust { flex-direction: row; justify-content: center; text-align: right; }
	.mo-foot__seal { width: 84px; height: 84px; border-radius: 16px; }
	.mo-foot__seal img { max-width: 70px; max-height: 70px; }
	.mo-foot__box:nth-child(4),
	.mo-foot__box--trust { grid-column: 1 / -1; }
	.mo-foot__links a { font-size: 13px; padding: 6px 2px; }
	.mo-foot__about { font-size: 13px; }
	.mo-foot__bar { flex-direction: column; gap: 6px; text-align: center; border-radius: 18px; padding: 10px 14px; font-size: 12px; }
}

/* ================= Fixed social buttons (bottom-left, above "back to top") ================= */
.mo-float {
	position: fixed;
	left: 20px;
	bottom: 84px;
	z-index: 349;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.mo-float__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #FFFFFF !important;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55);
	animation: mo-float-in .6s var(--mo-ease) calc(.8s + var(--i, 0) * .12s) both;
	transition: transform .3s var(--mo-ease), box-shadow .3s var(--mo-ease);
}
.mo-float__btn--tg { background: linear-gradient(135deg, #37AEE2, #1E88C8); }
.mo-float__btn--bl { background: linear-gradient(135deg, #3FD8A3, #10A77A); }
.mo-float__btn--bl .mo-cut { stroke: #10A77A; stroke-width: 2.2; }
.mo-float__btn--ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.mo-float__btn--rb { background: linear-gradient(135deg, #00B4FF 0%, #7B61FF 50%, #FF3D7F 100%); }
.mo-float__btn svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mo-float__btn .mo-fill { fill: currentColor; stroke: none; }
.mo-float__btn--tg .mo-cut { stroke: #1E88C8; stroke-width: 1.4; }
.mo-float__btn--ig::after {                    /* soft attention ring */
	content: "";
	position: absolute;
	inset: -4px;
	border: 2px solid rgba(214, 36, 159, .55);
	border-radius: 50%;
	animation: mo-float-ring 2.6s ease-out infinite;
}
.mo-float__btn:hover,
.mo-float__btn:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .6);
}
.mo-float__btn:focus-visible { outline: 3px solid var(--mo-taupe); outline-offset: 3px; }
.mo-float__label {
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--mo-white);
	color: var(--mo-brown);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 10px 20px -12px rgba(51, 40, 33, .5);
	opacity: 0;
	pointer-events: none;
	transform: translate(-6px, -50%);
	transition: opacity .2s ease, transform .3s var(--mo-ease);
}
@media (hover: hover) {
	.mo-float__btn:hover .mo-float__label { opacity: 1; transform: translate(0, -50%); }
}
@keyframes mo-float-in {
	from { opacity: 0; transform: translateX(-20px) scale(.7); }
	to { opacity: 1; transform: none; }
}
@keyframes mo-float-ring {
	0% { transform: scale(.9); opacity: .9; }
	80%, 100% { transform: scale(1.35); opacity: 0; }
}

/* phones/tablets: WoodMart's bottom toolbar and back-to-top button sit lower, so start higher */
@media (max-width: 1024px) {
	.mo-float { left: 12px; bottom: 156px; gap: 8px; }
	.mo-float__btn { width: 44px; height: 44px; }
	.mo-float__btn svg { width: 22px; height: 22px; }
}

/* ================= Mobile bottom bar (replaces WoodMart's toolbar) ================= */
.mo-tbar { display: none; }
@media (max-width: 1024px) {
	html body.sticky-toolbar-on { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
	html .scrollToTop { bottom: calc(100px + env(safe-area-inset-bottom)) !important; left: 14px !important; }
	.mo-tbar {
		position: fixed;
		right: 10px;
		left: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		z-index: 360;
		display: flex;
		align-items: center;
		gap: 2px;
		max-width: 560px;
		margin: 0 auto;
		padding: 8px;
		border: 1px solid rgba(140, 117, 98, .14);
		border-radius: 28px;
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 18px 40px -16px rgba(51, 40, 33, .45);
		animation: mo-tbar-in .55s var(--mo-ease) .2s both;
	}
	.mo-tbar__item {
		position: relative;
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		min-width: 0;
		padding: 6px 2px 4px;
		border-radius: 18px;
		color: var(--mo-taupe) !important;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.3;
		white-space: nowrap;
		transition: color .2s ease, background-color .2s ease;
	}
	.mo-tbar__item svg,
	.mo-tbar__cart svg {
		width: 25px;
		height: 25px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.7;
		stroke-linecap: round;
		stroke-linejoin: round;
		transition: transform .3s var(--mo-ease);
	}
	.mo-tbar__item.is-active { color: var(--mo-brown) !important; font-weight: 800; }
	.mo-tbar__item.is-active svg { stroke-width: 2.1; }
	.mo-tbar__item.is-active::after {
		content: "";
		position: absolute;
		top: 0;
		width: 18px;
		height: 3px;
		border-radius: 3px;
		background: var(--mo-brown);
	}
	.mo-tbar__item:active svg { transform: scale(.88); }
	.mo-tbar__cartwrap { flex: none; margin-inline-start: 4px; }
	.mo-tbar__cart {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		height: 56px;
		padding: 0 16px;
		border-radius: 20px;
		background: var(--mo-brown);
		color: var(--mo-cream) !important;
		font-size: 15px;
		font-weight: 800;
		white-space: nowrap;
		box-shadow: 0 12px 22px -14px rgba(51, 40, 33, .9);
		transition: background-color .25s ease, transform .25s var(--mo-ease);
	}
	.mo-tbar__cart:active { transform: scale(.97); }
	.mo-tbar__bag { position: relative; display: grid; }
	.mo-tbar__bag svg { width: 22px; height: 22px; }
	.mo-tbar__count {
		position: absolute;
		top: -8px;
		right: -9px;
		display: grid;
		place-items: center;
		min-width: 18px;
		height: 18px;
		padding: 0 4px;
		border-radius: 999px;
		background: var(--mo-soft);
		color: var(--mo-brown);
		font-size: 11px;
		font-weight: 800;
		line-height: 1;
		box-shadow: 0 0 0 2px var(--mo-brown);
	}
	.mo-tbar__count[hidden] { display: none; }
	.mo-tbar__count.is-bump { animation: mo-tbar-bump .5s var(--mo-ease); }
}
@media (max-width: 380px) {
	.mo-tbar { padding: 7px; }
	.mo-tbar__item { font-size: 11px; }
	.mo-tbar__item svg { width: 23px; height: 23px; }
	.mo-tbar__cart { height: 52px; font-size: 14px; gap: 6px; padding: 0 12px; }
}
@keyframes mo-tbar-in {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}
@keyframes mo-tbar-bump {
	40% { transform: scale(1.35); }
}

/* ================= Welcome popup ================= */
.mo-pop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
}
.mo-pop[hidden] { display: none; }
.mo-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(51, 40, 33, .55);
	animation: mo-pop-fade .3s ease both;
}
.mo-pop__card {
	position: relative;
	width: min(320px, 100%);
	padding: 22px 18px 16px;
	border-radius: 24px;
	background: var(--mo-white);
	text-align: center;
	box-shadow: 0 40px 80px -30px rgba(51, 40, 33, .6);
	animation: mo-pop-in .45s var(--mo-ease) both;
}
.mo-pop__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 70px;
	border-radius: 24px 24px 0 0;
	background: linear-gradient(180deg, var(--mo-cream), rgba(248, 239, 227, 0));
	pointer-events: none;
}
.mo-pop.is-closing .mo-pop__backdrop { animation: mo-pop-fade .2s ease reverse both; }
.mo-pop.is-closing .mo-pop__card { animation: mo-pop-out .2s ease both; }
.mo-pop__x {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mo-cream);
	color: var(--mo-brown);
	cursor: pointer;
	transition: background-color .2s ease, transform .3s var(--mo-ease);
}
.mo-pop__x:hover { background: var(--mo-soft); transform: rotate(90deg); }
.mo-pop__x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mo-pop__logo {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: var(--mo-white);
	box-shadow: 0 14px 28px -18px rgba(51, 40, 33, .6), 0 0 0 1px rgba(140, 117, 98, .15);
}
.mo-pop__logo img { width: 42px; height: auto; }
.mo-pop__eyebrow {
	margin: 10px 0 0 !important;
	font-size: 12px;
	font-weight: 600;
	color: var(--mo-taupe);
}
html .mo-pop__title {
	margin: 0 0 10px !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	line-height: 1.5 !important;
	color: var(--mo-brown) !important;
}
.mo-pop__note {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px dashed rgba(140, 117, 98, .45);
	border-radius: 14px;
	background: var(--mo-cream);
	text-align: right;
}
.mo-pop__note svg {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 6px;
	border-radius: 10px;
	background: var(--mo-brown);
	fill: none;
	stroke: var(--mo-cream);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mo-pop__note .mo-fill { fill: var(--mo-cream); stroke: none; }
.mo-pop__note p {
	margin: 0 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
	color: var(--mo-deep);
}
.mo-pop__note b { color: var(--mo-brown); font-weight: 800; }
.mo-pop__ok {
	width: 100%;
	height: 42px;
	margin-top: 12px;
	border: 0;
	border-radius: 13px;
	background: var(--mo-brown);
	color: var(--mo-cream);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background-color .25s ease;
}
.mo-pop__ok:hover { background: var(--mo-hover); color: var(--mo-white); }
.mo-pop__ok:focus-visible,
.mo-pop__x:focus-visible { outline: 2px solid var(--mo-taupe); outline-offset: 3px; }
@keyframes mo-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mo-pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mo-pop-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
	.mo-float__btn, .mo-float__btn--ig::after, .mo-tbar, .mo-tbar__count, .mo-pop__backdrop, .mo-pop__card { animation: none !important; }
}

/* Phones: on login and checkout the floating buttons covered the phone-number field — hide them there. */
@media (max-width: 1024px) {
	body.woocommerce-account:not(.logged-in) .mo-float,
	body.woocommerce-checkout .mo-float { display: none !important; }
}
/* Bale & Rubika: official logos on a white circle */
html .mo-float__btn--bl,
html .mo-float__btn--rb {
	background: #FFFFFF;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(51, 40, 33, .08);
}
.mo-float__logo {
	display: block;
	width: 30px;
	height: 30px;
	object-fit: contain;
	pointer-events: none;
}
.mo-float__btn--rb .mo-float__logo { width: 32px; height: 32px; }
@media (max-width: 1024px) {
	.mo-float__logo { width: 26px; height: 26px; }
	.mo-float__btn--rb .mo-float__logo { width: 28px; height: 28px; }
}