/**
 * Mobile and tablet header.
 *
 * Everything below 1025px is owned by this file; the Elementor header is
 * hidden there. From 1025px up this file renders nothing.
 */

/* The header is hidden by default so it never flashes on desktop. */
.tm-site-header { display: none; }

@media (max-width: 1024px) {

	/* The Elementor header is desktop only. */
	#masthead,
	.ehf-header #masthead {
		display: none !important;
	}

	.tm-site-header {
		--tm-green: #72b900;
		--tm-green-dark: #4f8500;
		--tm-ink: #303238;
		--tm-muted: #71747b;
		--tm-line: rgba(56, 61, 50, .10);
		--tm-shadow: 0 14px 38px rgba(48, 40, 33, .13), 0 3px 10px rgba(48, 40, 33, .07);
		--tm-radius: 22px;
		--tm-header-h: 88px;
		--tm-bar-h: 34px;

		display: block;
		position: relative;
		z-index: 999;
		font-family: inherit;
	}

	.tm-site-header *,
	.tm-site-header *::before,
	.tm-site-header *::after {
		box-sizing: border-box;
	}

	body.tm-menu-open,
	body.tm-cart-open {
		overflow: hidden;
	}

	/* ---------- Shipping bar ---------- */

	.tm-shipping-bar {
		min-height: var(--tm-bar-h);
		display: grid;
		place-items: center;
		margin: 0;
		padding: 7px 16px;
		background: linear-gradient(90deg, #fff9f4, #f7f4ef, #fff9f4);
		color: #3d3d41;
		font-size: clamp(12px, 2.7vw, 14px);
		line-height: 1.3;
		text-align: center;
		border-bottom: 1px solid rgba(0, 0, 0, .035);
	}

	.tm-shipping-bar strong { font-weight: 700; }

	/* ---------- Header shell ---------- */

	.tm-header-shell {
		width: min(calc(100% - 24px), 1180px);
		min-height: var(--tm-header-h);
		margin: 10px auto 0;
		padding: 10px;
		display: grid;
		grid-template-columns: 54px 1fr 54px;
		align-items: center;
		gap: 10px;
		position: relative;
		border: 1px solid rgba(59, 64, 54, .09);
		border-radius: var(--tm-radius);
		background: rgba(255, 252, 248, .88);
		box-shadow: var(--tm-shadow);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		transition: min-height .25s ease, box-shadow .25s ease;
	}

	/*
	 * When scrolled the shell floats at the top of the viewport. The spacer
	 * below takes over its height in the document so nothing jumps.
	 */
	.tm-site-header.is-scrolled .tm-header-shell {
		position: fixed;
		top: 8px;
		left: 50%;
		transform: translateX(-50%);
		min-height: 72px;
		margin-top: 0;
		box-shadow: 0 16px 40px rgba(48, 40, 33, .16);
	}

	.tm-header-spacer { height: 0; }

	/* ---------- Icon buttons ---------- */

	.tm-site-header .tm-icon-button {
		width: 54px;
		height: 54px;
		margin: 0;
		padding: 0;
		display: inline-grid;
		place-items: center;
		position: relative;
		border: 1px solid rgba(95, 125, 38, .12);
		border-radius: 17px;
		color: var(--tm-green-dark);
		background: transparent;
		text-decoration: none;
		cursor: pointer;
		transition: transform .18s ease, box-shadow .18s ease;
	}

	.tm-site-header .tm-icon-button:hover {
		transform: translateY(-1px);
		box-shadow: 0 8px 18px rgba(81, 113, 24, .10);
	}

	.tm-site-header a:focus-visible,
	.tm-site-header button:focus-visible {
		outline: 3px solid rgba(114, 185, 0, .45);
		outline-offset: 3px;
	}

	.tm-hamburger {
		width: 24px;
		display: grid;
		gap: 5px;
	}

	.tm-hamburger span {
		height: 2px;
		border-radius: 999px;
		background: currentColor;
	}

	/* ---------- Logo ---------- */

	.tm-site-header .tm-logo {
		width: 80px;
		justify-self: center;
		margin-inline: auto;
		display: block;
		line-height: 0;
	}

	.tm-site-header .tm-logo img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* ---------- Cart ---------- */

	.tm-cart svg {
		width: 27px;
		height: 27px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.tm-cart-count {
		position: absolute;
		top: 5px;
		right: 4px;
		min-width: 22px;
		height: 22px;
		padding: 0 5px;
		display: grid;
		place-items: center;
		border: 2px solid #fffcf8;
		border-radius: 999px;
		color: #fff;
		background: var(--tm-green);
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
	}

	.tm-cart-count.is-empty {
		color: #6c7166;
		background: #e3e7d7;
	}

	/* ---------- Tablet inline navigation ---------- */

	.tm-tablet-nav { display: none; }

	/* ---------- Overlay and drawer ---------- */

	.tm-overlay {
		position: fixed;
		inset: 0;
		z-index: 998;
		background: rgba(34, 36, 31, .30);
		opacity: 0;
		visibility: hidden;
		backdrop-filter: blur(4px);
		transition: opacity .25s ease, visibility .25s ease;
	}

	.tm-drawer {
		width: min(92vw, 430px);
		height: 100vh;
		height: 100dvh;
		padding: 0 0 32px;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		color: var(--tm-ink);
		background: rgba(255, 251, 247, .98);
		border-right: 1px solid var(--tm-line);
		box-shadow: 24px 0 60px rgba(41, 35, 29, .18);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .32s cubic-bezier(.22, .75, .18, 1), visibility .32s;
	}

	.tm-menu-open .tm-overlay,
	.tm-cart-open .tm-overlay {
		opacity: 1;
		visibility: visible;
	}

	.tm-menu-open .tm-drawer {
		transform: translateX(0);
		visibility: visible;
	}

	.tm-drawer-head {
		min-height: 98px;
		padding: 16px;
		display: grid;
		grid-template-columns: 54px 1fr 54px;
		align-items: center;
		gap: 8px;
		position: sticky;
		top: 0;
		z-index: 2;
		background: rgba(255, 251, 247, .94);
		border-bottom: 1px solid var(--tm-line);
		backdrop-filter: blur(18px);
	}

	.tm-menu-close span,
	.tm-menu-close span::after {
		width: 22px;
		height: 2px;
		display: block;
		content: "";
		border-radius: 99px;
		background: currentColor;
	}

	.tm-menu-close span { transform: rotate(45deg); }
	.tm-menu-close span::after { transform: rotate(90deg); }

	.tm-site-header .tm-logo--drawer { width: 128px; }

	/* ---------- Drawer navigation accordion ---------- */

	.tm-mobile-nav { padding: 12px 12px 4px; }

	.tm-mobile-nav ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.tm-mnav-row {
		display: flex;
		align-items: stretch;
		gap: 2px;
		border-radius: 16px;
	}

	.tm-mnav-link {
		flex: 1;
		min-height: 54px;
		margin: 0;
		padding: 10px 14px;
		display: flex;
		align-items: center;
		color: var(--tm-ink);
		border: 0;
		border-radius: 16px;
		background: none;
		text-align: left;
		text-decoration: none;
		font-family: inherit;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.3;
		cursor: pointer;
	}

	a.tm-mnav-link:hover,
	button.tm-mnav-link:hover,
	.tm-mnav-item.is-current > .tm-mnav-row > .tm-mnav-link {
		color: #426d00;
		background: linear-gradient(90deg, #eff5df, #f7f8ed);
	}

	.tm-mnav-item.is-current > .tm-mnav-row > .tm-mnav-link { font-weight: 700; }

	/* Ancestor of the current page: marked, but not as loudly as the page itself. */
	.tm-mnav-item.is-ancestor > .tm-mnav-row > .tm-mnav-link { color: #4f7a10; }

	/* Menu entry with no URL and no children: a label, not a control. */
	.tm-mnav-link--plain {
		color: var(--tm-muted);
		font-weight: 500;
		cursor: default;
	}

	.tm-mnav-toggle {
		width: 52px;
		margin: 0;
		padding: 0;
		display: grid;
		place-items: center;
		flex: 0 0 auto;
		color: #6f7478;
		border: 0;
		border-radius: 16px;
		background: none;
		cursor: pointer;
	}

	.tm-mnav-toggle:hover { background: #f1f4e8; }

	.tm-chevron {
		width: 9px;
		height: 9px;
		display: block;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translate(-2px, -2px);
		transition: transform .22s ease;
	}

	.tm-mnav-toggle[aria-expanded="true"] .tm-chevron {
		transform: rotate(-135deg) translate(-3px, -3px);
	}

	/* Nested levels: progressively smaller and indented with a guide rail. */
	.tm-mnav-sub {
		margin: 2px 0 6px 18px !important;
		padding-left: 10px !important;
		border-left: 2px solid rgba(114, 185, 0, .22);
	}

	.tm-mnav-sub .tm-mnav-link {
		min-height: 46px;
		font-size: 15px;
		font-weight: 500;
	}

	.tm-mnav-sub .tm-mnav-sub .tm-mnav-link {
		font-size: 14.5px;
		color: #55585d;
	}

	.tm-mnav-item + .tm-mnav-item { margin-top: 2px; }

	/* ---------- Utility links ---------- */

	.tm-drawer-utility {
		margin: 10px 16px 0;
		padding: 8px 0 0;
		display: flex;
		flex-wrap: wrap;
		gap: 8px 18px;
		list-style: none;
		border-top: 1px solid var(--tm-line);
	}

	.tm-drawer-utility li { margin: 0; }

	.tm-drawer-utility a {
		display: inline-block;
		padding: 8px 0;
		color: var(--tm-muted);
		text-decoration: none;
		font-size: 14px;
		font-weight: 600;
	}

	.tm-drawer-utility a:hover { color: var(--tm-green-dark); }

	/* ---------- Language switcher ---------- */

	.tm-language {
		margin: 14px 16px 0;
		padding: 14px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		border: 1px solid rgba(77, 96, 51, .09);
		border-radius: 17px;
		background: #fff;
	}

	.tm-language-label {
		color: var(--tm-muted);
		font-size: 14px;
		font-weight: 700;
	}

	.tm-language-switcher {
		padding: 4px;
		display: inline-flex;
		gap: 4px;
		border-radius: 13px;
		background: #f0f2e9;
	}

	.tm-language-switcher a {
		min-width: 56px;
		padding: 9px 12px;
		border-radius: 10px;
		color: #656961;
		text-align: center;
		text-decoration: none;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: .04em;
	}

	.tm-language-switcher a.is-current {
		color: #fff;
		background: var(--tm-green);
		box-shadow: 0 5px 12px rgba(85, 139, 0, .20);
	}

	/* ---------- Shipping card ---------- */

	.tm-shipping-card {
		margin: 16px;
		padding: 17px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		color: #4e5d3e;
		border: 1px solid rgba(91, 112, 52, .09);
		border-radius: 18px;
		background: linear-gradient(135deg, #f8f8ef, #fff8f1);
		text-align: center;
		text-decoration: none;
		font-size: 14px;
	}

	.tm-shipping-card strong { color: var(--tm-green-dark); }

	/* ---------- Cart panel ---------- */

	.tm-cart-drawer {
		width: min(94vw, 440px);
		height: 100vh;
		height: 100dvh;
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		z-index: 999;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		color: var(--tm-ink);
		background: rgba(255, 251, 247, .98);
		border-left: 1px solid var(--tm-line);
		box-shadow: -24px 0 60px rgba(41, 35, 29, .18);
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .32s cubic-bezier(.22, .75, .18, 1), visibility .32s;
	}

	.tm-cart-open .tm-cart-drawer {
		transform: translateX(0);
		visibility: visible;
	}

	.tm-drawer-head--cart {
		grid-template-columns: 1fr 54px;
		flex: 0 0 auto;
		position: static;
	}

	.tm-cart-drawer__title {
		margin: 0;
		padding: 0;
		color: var(--tm-ink);
		font-size: 19px;
		font-weight: 700;
		line-height: 1.2;
	}

	.tm-cart-close span,
	.tm-cart-close span::after {
		width: 22px;
		height: 2px;
		display: block;
		content: "";
		border-radius: 99px;
		background: currentColor;
	}

	.tm-cart-close span { transform: rotate(45deg); }
	.tm-cart-close span::after { transform: rotate(90deg); }

	.tm-mini-cart {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.tm-mini-cart.is-busy {
		opacity: .55;
		pointer-events: none;
	}

	.tm-mini-cart__items {
		flex: 1 1 auto;
		margin: 0;
		padding: 8px 16px;
		list-style: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.tm-mini-cart__item {
		padding: 14px 0;
		display: grid;
		grid-template-columns: 64px 1fr 30px;
		align-items: start;
		gap: 12px;
		border-bottom: 1px solid var(--tm-line);
	}

	.tm-mini-cart__media img {
		width: 64px;
		height: 64px;
		display: block;
		border-radius: 12px;
		background: #fff;
		object-fit: contain;
	}

	.tm-mini-cart__body {
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.tm-mini-cart__name {
		color: var(--tm-ink);
		text-decoration: none;
		font-size: 14.5px;
		font-weight: 600;
		line-height: 1.35;
	}

	a.tm-mini-cart__name:hover { color: var(--tm-green-dark); }

	.tm-mini-cart__meta {
		color: var(--tm-muted);
		font-size: 12.5px;
	}

	.tm-mini-cart__meta p { margin: 0; }

	.tm-mini-cart__controls {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
	}

	.tm-qty {
		display: inline-flex;
		align-items: center;
		gap: 2px;
		border: 1px solid rgba(95, 125, 38, .18);
		border-radius: 11px;
		background: #fff;
	}

	.tm-qty__btn {
		width: 34px;
		height: 34px;
		padding: 0;
		display: grid;
		place-items: center;
		color: var(--tm-green-dark);
		border: 0;
		border-radius: 10px;
		background: none;
		font-family: inherit;
		font-size: 17px;
		line-height: 1;
		cursor: pointer;
	}

	.tm-qty__btn:hover:not([disabled]) { background: #eff5df; }
	.tm-qty__btn[disabled] { color: #b9bdb2; cursor: not-allowed; }

	.tm-qty__value {
		min-width: 26px;
		text-align: center;
		font-size: 14px;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
	}

	.tm-qty--fixed {
		color: var(--tm-muted);
		font-size: 14px;
		font-weight: 700;
	}

	.tm-mini-cart__price {
		color: var(--tm-ink);
		font-size: 14.5px;
		font-weight: 700;
		white-space: nowrap;
	}

	.tm-mini-cart__price del { color: var(--tm-muted); font-weight: 500; }

	.tm-mini-cart__remove {
		width: 30px;
		height: 30px;
		padding: 0;
		display: grid;
		place-items: center;
		color: #9aa08f;
		border: 0;
		border-radius: 50%;
		background: none;
		font-size: 19px;
		line-height: 1;
		cursor: pointer;
	}

	.tm-mini-cart__remove:hover { color: #b23c3c; background: rgba(178, 60, 60, .08); }

	.tm-mini-cart__empty {
		flex: 1 1 auto;
		padding: 40px 24px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 18px;
		color: var(--tm-muted);
		text-align: center;
	}

	.tm-mini-cart__empty p { margin: 0; }

	.tm-mini-cart__browse {
		padding: 13px 22px;
		color: #fff;
		border-radius: 999px;
		background: var(--tm-green);
		text-decoration: none;
		font-size: 14px;
		font-weight: 700;
	}

	.tm-mini-cart__footer {
		flex: 0 0 auto;
		padding: 16px;
		padding-bottom: max(16px, env(safe-area-inset-bottom));
		border-top: 1px solid var(--tm-line);
		background: rgba(255, 251, 247, .98);
	}

	.tm-mini-cart__total {
		margin-bottom: 12px;
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		font-size: 15px;
	}

	.tm-mini-cart__total strong { font-size: 19px; font-weight: 800; }

	.tm-mini-cart__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.tm-mini-cart__view,
	.tm-mini-cart__pay {
		min-height: 50px;
		padding: 12px 16px;
		display: grid;
		place-items: center;
		border-radius: 14px;
		text-align: center;
		text-decoration: none;
		font-size: 14.5px;
		font-weight: 700;
	}

	.tm-mini-cart__view {
		color: var(--tm-green-dark);
		border: 1px solid rgba(95, 125, 38, .28);
		background: #fff;
	}

	.tm-mini-cart__pay {
		color: #fff;
		background: var(--tm-green);
		box-shadow: 0 8px 18px rgba(85, 139, 0, .22);
	}

	.tm-mini-cart__pay:hover { background: #63a100; }

	.tm-mini-cart__error {
		margin: 0 0 12px;
		padding: 10px 12px;
		color: #8c2f2f;
		border-radius: 10px;
		background: #fbeaea;
		font-size: 13.5px;
	}
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) and (max-width: 1024px) {

	.tm-site-header {
		--tm-header-h: 92px;
	}

	.tm-header-shell.has-tablet-nav {
		width: min(calc(100% - 40px), 980px);
		grid-template-columns: 58px 1fr 96px 1fr 58px;
		padding-inline: 14px;
	}

	.tm-tablet-nav {
		display: flex;
		align-items: center;
		gap: clamp(14px, 2.3vw, 30px);
	}

	.tm-tablet-nav--left { justify-content: flex-end; }
	.tm-tablet-nav--right { justify-content: flex-start; }

	.tm-tablet-nav a {
		color: var(--tm-ink);
		text-decoration: none;
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
	}

	.tm-tablet-nav a:hover { color: var(--tm-green-dark); }

	.tm-header-shell.has-tablet-nav .tm-logo { width: 80px; }
}

/* ---------- Language suggestion banner ---------- */

.tm-geo-banner {
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	position: relative;
	z-index: 1000;
	color: #33372f;
	background: #f3f6e9;
	border-bottom: 1px solid rgba(56, 61, 50, .12);
	font-size: 14px;
	line-height: 1.4;
}

.tm-geo-banner[hidden] { display: none; }

.tm-geo-banner__cta {
	padding: 9px 16px;
	color: #fff;
	background: #72b900;
	border: 0;
	border-radius: 999px;
	text-decoration: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.tm-geo-banner__cta:hover { background: #63a100; }

.tm-geo-banner__close {
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	color: #5c6155;
	border: 0;
	border-radius: 50%;
	background: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.tm-geo-banner__close:hover { background: rgba(0, 0, 0, .06); }

@media (prefers-reduced-motion: reduce) {
	.tm-site-header *,
	.tm-site-header *::before,
	.tm-site-header *::after {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
	}
}
