/**
 * Mobile Bottom Navigation
 *
 * Hidden by default; each widget instance prints its own media query
 * so the "show below width" breakpoint is fully controllable from the
 * widget settings (default 767px = mobile only).
 */

.mn-root {
	display: none;
}

/* ----------------------------------------------------------------------
 * Bottom bar
 * -------------------------------------------------------------------- */

.mn-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	box-sizing: content-box;
	height: 62px;
	background: #fff;
	border-top: 1px solid #ececec;
	border-top-style: solid;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
	/* Safe area for notched devices; sits below any custom padding. */
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/*
 * Equal-width item system: every item is an identical flex column and
 * every icon lives in an identical fixed-size box, so no icon can ever
 * sit higher, lower, bigger or smaller than its neighbours.
 */
.mn-item {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 2px;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
}

.mn-item-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 21px;
	line-height: 1;
	color: #2b2b2b;
	box-sizing: content-box;
	border-style: solid;
	border-width: 0;
	will-change: transform;
}

.mn-item-icon i {
	line-height: 1;
}

.mn-item-icon svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: currentColor;
}

.mn-item-label {
	max-width: 100%;
	overflow: hidden;
	color: #2b2b2b;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: center;
}

/* Cart badge */

.mn-cart-count-badge {
	position: absolute;
	top: -7px;
	right: -9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 99px;
	background: #111;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
	pointer-events: none;
}

.mn-cart-count-badge.mn-badge-empty {
	display: none;
}

/* ----------------------------------------------------------------------
 * Animations
 *
 * All transforms run on the fixed-size .mn-item-icon box (or the whole
 * item for auto animations), never on the flex layout, so neighbouring
 * icons never move and there is zero layout shift.
 * -------------------------------------------------------------------- */

@keyframes mn-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(var(--mn-buzz-scale, 1.2));
	}
}

@keyframes mn-buzz {
	0%,
	100% {
		transform: rotate(0) scale(1);
	}
	15% {
		transform: rotate(-14deg) scale(var(--mn-buzz-scale, 1.2));
	}
	30% {
		transform: rotate(11deg) scale(var(--mn-buzz-scale, 1.2));
	}
	45% {
		transform: rotate(-8deg) scale(1.08);
	}
	60% {
		transform: rotate(6deg) scale(1.04);
	}
	75% {
		transform: rotate(-3deg) scale(1);
	}
}

/*
 * Auto (always-on) item animations. The keyframes above describe one
 * "active" burst; --mn-anim-active squeezes that burst into the first
 * part of the cycle so the remainder acts as the delay between repeats.
 */
.mn-anim-auto.mn-anim-pulse .mn-item-icon {
	animation: mn-pulse-cycle var(--mn-anim-dur, 2s) ease-in-out var(--mn-anim-iter, infinite);
}

.mn-anim-auto.mn-anim-buzz .mn-item-icon {
	animation: mn-buzz-cycle var(--mn-anim-dur, 2s) ease-in-out var(--mn-anim-iter, infinite);
}

@keyframes mn-pulse-cycle {
	0%,
	100% {
		transform: scale(1);
	}
	25% {
		transform: scale(var(--mn-anim-scale, 1.15));
	}
	50% {
		transform: scale(1);
	}
	/* 50% -> 100% = rest (the configurable delay between repeats). */
}

@keyframes mn-buzz-cycle {
	0%,
	50%,
	100% {
		transform: rotate(0) scale(1);
	}
	7% {
		transform: rotate(-14deg) scale(var(--mn-anim-scale, 1.15));
	}
	15% {
		transform: rotate(11deg) scale(var(--mn-anim-scale, 1.15));
	}
	22% {
		transform: rotate(-8deg) scale(1.08);
	}
	30% {
		transform: rotate(6deg) scale(1.04);
	}
	38% {
		transform: rotate(-3deg) scale(1);
	}
	/* 50% -> 100% = rest. */
}

/* One-shot add-to-cart animation, triggered by JS. */

.mn-item-icon.mn-buzzing.mn-buzz-buzz {
	animation: mn-buzz var(--mn-buzz-dur, 0.55s) ease-in-out var(--mn-buzz-iter, 1);
}

.mn-item-icon.mn-buzzing.mn-buzz-pulse {
	animation: mn-pulse var(--mn-buzz-dur, 0.55s) ease-in-out var(--mn-buzz-iter, 1);
}

@media (prefers-reduced-motion: reduce) {
	.mn-anim-auto .mn-item-icon,
	.mn-item-icon.mn-buzzing,
	.mn-crawler-pulse {
		animation: none !important;
	}
}

/* ----------------------------------------------------------------------
 * Overlay + body scroll lock
 * -------------------------------------------------------------------- */

.mn-overlay {
	position: fixed;
	inset: 0;
	z-index: 99995;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mn-overlay.mn-open {
	opacity: 1;
	pointer-events: auto;
}

body.mn-scroll-lock {
	overflow: hidden;
}

/* ----------------------------------------------------------------------
 * Category side drawer (left, like the reference)
 * -------------------------------------------------------------------- */

.mn-drawer {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99996;
	display: flex;
	flex-direction: column;
	width: 82%;
	max-width: 340px;
	height: 100dvh;
	background: #fff;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.14);
	transform: translateX(-105%);
	transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.mn-drawer.mn-open {
	transform: translateX(0);
}

body.admin-bar .mn-drawer {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

.mn-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e9e9e9;
}

.mn-drawer-header h3 {
	margin: 0;
	color: #1c1c1c;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
}

.mn-drawer-close,
.mn-drawer .mn-drawer-close {
	display: inline-grid !important;
	place-items: center;
	flex: 0 0 34px;
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	color: #1c1c1c !important;
	font-family: Arial, sans-serif !important;
	font-size: 24px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: color 0.2s ease;
}

.mn-drawer .mn-drawer-close:hover {
	background: transparent !important;
	color: #777 !important;
}

.mn-drawer-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 4px 20px 20px;
	-webkit-overflow-scrolling: touch;
}

.mn-category-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mn-category-list li {
	border-bottom: 1px solid #eee;
	border-bottom-style: solid;
}

.mn-category-list li:last-child {
	border-bottom: 0;
}

.mn-category-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 0;
	color: #222;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none !important;
}

.mn-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	line-height: 1;
}

.mn-cat-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.mn-cat-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * WordPress menu output (wp_nav_menu) inside the drawer: normalise the
 * generated markup so it looks identical to the custom list, with a
 * lightly indented second level for sub-menu items.
 */
.mn-drawer-body .mn-category-list .sub-menu {
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
	border-top: 1px solid #eee;
}

.mn-drawer-body .mn-category-list .sub-menu li:last-child {
	border-bottom: 0;
}

.mn-drawer-body .mn-category-list .sub-menu a {
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 14px;
	font-weight: 400;
}

.mn-drawer-note {
	padding: 20px 0;
	color: #777;
	font-size: 14px;
}

/* ----------------------------------------------------------------------
 * Crawler / arrow tab (right edge, like the reference)
 * -------------------------------------------------------------------- */

.mn-crawler,
button.mn-crawler {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 99994;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 56px;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e3e3e3;
	border-right: 0 !important;
	border-radius: 30px 0 0 30px;
	background: #fff;
	background-image: none !important;
	box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.12);
	color: #444;
	font-size: 14px;
	line-height: 1 !important;
	cursor: pointer;
	transform: translateY(-50%);
	-webkit-tap-highlight-color: transparent;
}

.mn-crawler i {
	line-height: 1;
}

.mn-crawler svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: currentColor;
	stroke: currentColor;
}

@keyframes mn-crawler-pulse {
	0%,
	100% {
		transform: translateY(-50%) scale(1);
	}
	50% {
		transform: translateY(-50%) scale(1.08);
	}
}

.mn-crawler-pulse {
	animation: mn-crawler-pulse 2s ease-in-out infinite;
}

/* ----------------------------------------------------------------------
 * Built-in AJAX cart drawer
 *
 * Full copy of the Woo AJAX Menu Cart drawer styles, scoped under
 * .mn-root so this widget is completely self-contained and looks
 * identical, without touching any other cart widget on the site.
 * -------------------------------------------------------------------- */

.mn-root .wmc-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(18, 28, 30, 0.34);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
}

.mn-root .wmc-drawer-overlay.wmc-open {
	opacity: 1;
	pointer-events: auto;
}

.mn-root .wmc-side-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: 400px;
	max-width: 100vw;
	height: 100dvh;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.13);
	transform: translateX(105%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mn-root .wmc-side-drawer.wmc-open {
	transform: translateX(0);
}

body.admin-bar .mn-root .wmc-side-drawer {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

/* Header */

.mn-root .wmc-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid #dedfe0;
}

.mn-root .wmc-drawer-title {
	margin: 0;
	color: #252525;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.mn-root .wmc-side-drawer .wmc-close-drawer {
	display: inline-grid !important;
	place-items: center;
	flex: 0 0 29px;
	width: 29px !important;
	min-width: 29px !important;
	height: 29px !important;
	min-height: 29px !important;
	padding: 0 !important;
	border: 2px solid #4b9d90 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #397f75;
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 20px;
	cursor: pointer;
}

.mn-root .wmc-side-drawer .wmc-close-drawer:hover {
	border-color: #007b68 !important;
	background: #007b68 !important;
	color: #fff !important;
}

/* Loading */

.mn-root .wmc-drawer-body {
	position: relative;
	display: flex;
	min-height: 0;
	flex: 1;
	flex-direction: column;
	overflow-y: auto;
	padding: 0;
}

.mn-root .wmc-drawer-body.wmc-loading {
	pointer-events: none;
}

.mn-root .wmc-drawer-body.wmc-loading::after {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(255, 255, 255, 0.66);
	content: "";
}

.mn-root .wmc-drawer-body.wmc-loading::before {
	position: absolute;
	top: 45%;
	left: 50%;
	z-index: 4;
	width: 26px;
	height: 26px;
	margin: -13px;
	border: 3px solid #d5e8e4;
	border-top-color: #007b68;
	border-radius: 50%;
	content: "";
	animation: mn-wmc-spin 0.65s linear infinite;
}

@keyframes mn-wmc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Product list */

.mn-root .wmc-drawer-products {
	flex: 1;
	padding: 18px 24px;
}

.mn-root .wmc-cart-item {
	position: relative;
	display: flex;
	gap: 13px;
	padding: 0 0 17px;
	margin: 0 0 18px;
	border-bottom: 1px solid #eee;
}

.mn-root .wmc-cart-item:last-child {
	margin-bottom: 0;
}

.mn-root .wmc-item-thumb {
	flex: 0 0 90px;
}

.mn-root .wmc-item-thumb img {
	display: block;
	width: 90px;
	height: 90px;
	border-radius: 16px;
	object-fit: cover;
}

.mn-root .wmc-item-details {
	min-width: 0;
	flex: 1;
}

.mn-root .wmc-item-title {
	margin: 1px 28px 11px 0;
	color: #232526;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.mn-root .wmc-item-title a {
	color: inherit;
	text-decoration: none;
}

.mn-root .wmc-item-title a:hover {
	color: #007b68;
}

.mn-root .wmc-item-price-row {
	position: absolute;
	right: 0;
	bottom: 23px;
	margin: 0;
}

.mn-root .wmc-item-price {
	color: #007b68;
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
}

.mn-root .wmc-item-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Quantity selector */

.mn-root .wmc-side-drawer .wmc-qty-selector {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	height: 37px;
	border: 1px solid #dce1e2;
	border-radius: 99px;
	background: transparent !important;
	box-shadow: none !important;
}

.mn-root .wmc-side-drawer .wmc-qty-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	min-width: 34px !important;
	height: 35px !important;
	min-height: 35px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #4d5658;
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.mn-root .wmc-side-drawer .wmc-qty-btn:hover {
	background: #f1f8f6 !important;
	color: #007b68;
}

.mn-root .wmc-side-drawer .wmc-qty-input {
	width: 35px !important;
	min-width: 35px !important;
	height: 35px !important;
	min-height: 35px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #282c2d;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 35px;
	text-align: center;
	appearance: textfield;
}

.mn-root .wmc-qty-input::-webkit-inner-spin-button,
.mn-root .wmc-qty-input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Remove X */

.mn-root .wmc-side-drawer .wmc-remove-item {
	position: absolute;
	top: -2px;
	right: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 25px !important;
	min-width: 25px !important;
	height: 25px !important;
	min-height: 25px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #70797d;
	font-family: Arial, sans-serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.mn-root .wmc-side-drawer .wmc-remove-item:hover {
	background: transparent !important;
	color: #cf3030;
}

/* Footer */

.mn-root .wmc-drawer-footer {
	padding: 18px 24px 20px;
	border-top: 1px solid #dfe1e2;
	background: #fff;
}

.mn-root .wmc-coupon-section {
	display: flex;
	gap: 9px;
	margin: 0 0 18px;
}

.mn-root .wmc-coupon-input {
	min-width: 0;
	flex: 1;
	padding: 11px 13px;
	border: 1px solid #daddde;
	border-radius: 99px;
	background: #fff;
	color: #667076;
	font-family: inherit;
	font-size: 16px;
	outline: 0;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.09);
}

.mn-root .wmc-coupon-input:focus {
	border-color: #66aa9f;
	box-shadow: 0 0 0 3px rgba(0, 123, 104, 0.1);
}

.mn-root .wmc-side-drawer .wmc-coupon-btn {
	min-height: 0 !important;
	padding: 10px 19px !important;
	border: 1px solid #a5d3cc !important;
	border-radius: 99px !important;
	background: #fff !important;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08) !important;
	color: #007b68;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.mn-root .wmc-side-drawer .wmc-coupon-btn:hover {
	background: #007b68 !important;
	color: #fff !important;
}

.mn-root .wmc-summary {
	margin: 0 0 17px;
}

.mn-root .wmc-summary-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 8px 0;
	color: #5f686e;
	font-size: 15px;
	line-height: 1.3;
}

.mn-root .wmc-summary-row span:last-child {
	color: #34383a;
	font-weight: 500;
	white-space: nowrap;
}

.mn-root .wmc-summary-coupon span:last-child {
	color: #007b68;
}

.mn-root .wmc-grand-total {
	margin-top: 11px;
	padding-top: 11px;
	border-top: 1px solid #d9dcdd;
	color: #242627;
	font-size: 18px;
	font-weight: 800;
}

.mn-root .wmc-grand-total span:last-child {
	color: #007b68;
	font-weight: 800;
}

/* Checkout + continue buttons */

.mn-root .wmc-buttons {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.mn-root .wmc-side-drawer .wmc-btn {
	display: block !important;
	width: 100%;
	min-height: 0 !important;
	box-sizing: border-box;
	padding: 15px;
	border: 0 !important;
	border-radius: 99px;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.mn-root .wmc-side-drawer .wmc-btn-checkout {
	background: #007b68 !important;
	color: #fff !important;
}

.mn-root .wmc-side-drawer .wmc-btn-checkout:hover {
	background: #006553 !important;
	transform: translateY(-1px);
}

.mn-root .wmc-side-drawer .wmc-btn-continue-shopping {
	background: transparent !important;
	color: #242526;
}

.mn-root .wmc-side-drawer .wmc-btn-continue-shopping:hover {
	background: transparent !important;
	color: #007b68;
}

/* Empty cart */

.mn-root .wmc-empty-cart-state {
	padding: 70px 24px;
	text-align: center;
}

.mn-root .wmc-empty-icon {
	display: block;
	margin: 0 0 14px;
	color: #9caaa9;
	font-size: 50px;
}

.mn-root .wmc-empty-text {
	margin: 0 0 20px;
	color: #657075;
	font-size: 15px;
}

.mn-root .wmc-empty-msg {
	padding: 24px;
	color: #657075;
	text-align: center;
}

/* Cart drawer mobile sizing */

@media (max-width: 782px) {
	body.admin-bar .mn-root .wmc-side-drawer {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}

@media (max-width: 480px) {
	.mn-root .wmc-side-drawer {
		width: 100vw;
	}

	.mn-root .wmc-drawer-header,
	.mn-root .wmc-drawer-footer {
		padding-right: 18px;
		padding-left: 18px;
	}

	.mn-root .wmc-drawer-products {
		padding-right: 18px;
		padding-left: 18px;
	}

	.mn-root .wmc-item-thumb,
	.mn-root .wmc-item-thumb img {
		width: 78px;
		height: 78px;
		flex-basis: 78px;
	}

	.mn-root .wmc-item-title {
		font-size: 15px;
	}

	.mn-root .wmc-item-price-row {
		bottom: 22px;
	}

	.mn-root .wmc-coupon-input {
		font-size: 14px;
	}
}

/* ----------------------------------------------------------------------
 * Editor helpers
 * -------------------------------------------------------------------- */

.elementor-editor-active .mn-root {
	display: block;
}

.elementor-editor-active .mn-bar {
	position: sticky;
}