/* ==========================================================================
   Homoeo At Home — site-wide: base, header, navigation, footer
   ========================================================================== */

/* ---- Base: one font everywhere --------------------------------------- */
body.hah-site,
body.hah-site button,
body.hah-site input,
body.hah-site select,
body.hah-site textarea,
body.hah-site h1,
body.hah-site h2,
body.hah-site h3,
body.hah-site h4,
body.hah-site h5,
body.hah-site h6 {
	font-family: var(--hah-font);
}
/* Elementor-built pages pick the same font up through Elementor's own settings. */
body.hah-site[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: "Figtree";
	--e-global-typography-secondary-font-family: "Figtree";
	--e-global-typography-text-font-family: "Figtree";
	--e-global-typography-accent-font-family: "Figtree";
}
body.hah-site {
	background: var(--hah-bg);
	color: var(--hah-ink);
	-webkit-font-smoothing: antialiased;
}

/* ---- Armour: stop the parent theme's generic button/link/input styles
        from leaking into our components ---------------------------------- */
.hah-site .hah a,
.hah-site .hah a:hover,
.hah-site .hah a:focus {
	text-decoration: none;
}
.hah-site .hah button {
	font-family: inherit;
	line-height: 1;
	box-shadow: none;
}
.hah-site .hah-btn {
	color: var(--btn-fg);
	border: 1.5px solid var(--btn-bd);
	border-radius: var(--hah-r-md);
	padding: 0 var(--hah-5);
}
/* Touched, pressed or focused: colours only. Never size, padding or border width here: on a
   phone the "hover" look is applied at the moment of the tap, and a button that grows under
   the finger makes the phone drop the tap. */
.hah-site .hah-btn:hover,
.hah-site .hah-btn:focus {
	color: var(--btn-fg);
	border-color: var(--btn-bd);
}
.hah-site .hah-btn { background: var(--btn-bg); }
.hah-site .hah-btn:hover,
.hah-site .hah-btn:focus { background: var(--btn-bg-hover); }
.hah-site .hah-btn--sm { padding: 0 var(--hah-3); border-radius: var(--hah-r-sm); }
.hah-site .hah-btn--ghost { padding-inline: var(--hah-3); }
.hah-site .hah-btn[disabled] { background: var(--hah-line); color: var(--hah-muted); }
.hah-site .hah-add,
.hah-site .hah-add:focus {
	background: #fff;
	color: var(--hah-accent-600);
	border: 1.5px solid var(--hah-accent-600);
	border-radius: var(--hah-r-sm);
	padding: 0 var(--hah-3);
}
.hah-site .hah-add:hover { background: var(--hah-accent-600); color: #fff; }
.hah-site .hah-stepper button,
.hah-site .hah-stepper button:focus { background: transparent; color: inherit; padding: 0; border: 0; border-radius: 0; }
.hah-site .hah-stepper button:hover { background: rgba(0, 0, 0, 0.12); color: inherit; }
.hah-site .hah-chip,
.hah-site .hah-chip:focus { background: #fff; color: var(--hah-ink-2); border: 1.5px solid var(--hah-line-strong); border-radius: var(--hah-r-pill); padding: 0 var(--hah-3); }
.hah-site .hah-chip:hover { background: #fff; color: var(--hah-green-700); border-color: var(--hah-green-600); }
.hah-site .hah-chip.is-active { background: var(--hah-green-50); color: var(--hah-green-700); border-color: var(--hah-green-600); }
.hah-site .hah-option,
.hah-site .hah-option:hover,
.hah-site .hah-option:focus { background: #fff; color: var(--hah-ink); border: 1.5px solid var(--hah-line-strong); border-radius: var(--hah-r-md); padding: 6px var(--hah-3); }
.hah-site .hah-option.is-active { background: var(--hah-green-50); border-color: var(--hah-green-600); }
.hah-site .hah-pcard__title,
.hah-site .hah-pcard__title:hover,
.hah-site .hah-pcard__title:focus { color: var(--hah-ink); }
.hah-site .hah-pcard__title:hover { color: var(--hah-green-700); }
.hah-site .hah-tile,
.hah-site .hah-tile:hover,
.hah-site .hah-tile:focus { color: var(--hah-ink); }
.hah-site .hah .hah-input,
.hah-site .hah .hah-input:focus {
	height: auto;
	min-height: 48px;
	padding: 0 var(--hah-4);
	border: 1.5px solid var(--hah-line-strong);
	border-radius: var(--hah-r-md);
	background: #fff;
	color: var(--hah-ink);
	font-size: var(--hah-fs-body);
	box-shadow: none;
}
.hah-site .hah .hah-input:focus { border-color: var(--hah-green-600); box-shadow: 0 0 0 4px var(--hah-green-100); }

/* ==========================================================================
   Header
   ========================================================================== */
/* The black WordPress bar that a logged-in admin sees is pinned to the top of the
   screen. --hah-bar is its height (0 for customers), so the header and the side
   panels that stay in view while scrolling sit below it instead of under it. */
:root { --hah-bar: 0px; }
body.admin-bar { --hah-bar: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { --hah-bar: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar { --hah-bar: 0px; } } /* here the bar scrolls away with the page */
/* With many plugins the bar's items do not fit on one line and "Howdy, name" used to drop
   onto the header. The bar now grows to hold its second line; a few lines of script in
   inc/setup.php (printed for logged-in admins only) measure it and move the page down. */
body.admin-bar #wpadminbar { height: auto; display: flow-root; }
.hah-header {
	--row1: 54px;
	--rowpin: 36px;
	position: sticky;
	top: calc(var(--hah-bar) - (var(--row1) + var(--rowpin))); /* on phones only the search row stays pinned */
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--hah-line);
	transition: box-shadow var(--hah-med) var(--hah-ease);
}
.hah-header.is-stuck { box-shadow: 0 6px 18px rgba(16, 40, 28, 0.08); }
.hah-topstrip { display: none; }

.hah-header__main {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	grid-template-areas:
		"menu logo cart"
		"pin pin pin"
		"search search search";
	align-items: center;
	column-gap: var(--hah-2);
}
.hah-header .hah-header__icon,
.hah-drawer .hah-header__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--hah-r-md);
	background: transparent;
	color: var(--hah-ink);
	cursor: pointer;
}
.hah-header .hah-header__icon:hover,
.hah-header .hah-header__icon:focus,
.hah-drawer .hah-header__icon:hover,
.hah-drawer .hah-header__icon:focus { background: var(--hah-green-50); color: var(--hah-green-700); }
.hah-header__menu { grid-area: menu; margin-left: -10px; }
.hah-header__logo { grid-area: logo; display: flex; align-items: center; height: var(--row1); min-width: 0; }
.hah-site .hah-header .hah-header__logo img { height: 27px; width: auto; max-width: 100%; }

.hah-header .hah-pinchip {
	grid-area: pin;
	display: flex;
	align-items: center;
	gap: 6px;
	height: var(--rowpin);
	margin-inline: calc(-1 * var(--hah-4));
	padding: 0 var(--hah-4);
	border: 0;
	border-radius: 0;
	background: var(--hah-green-50);
	color: var(--hah-green-800);
	font-size: var(--hah-fs-sm);
	text-align: left;
	cursor: pointer;
}
.hah-header .hah-pinchip:hover,
.hah-header .hah-pinchip:focus { background: var(--hah-green-100); color: var(--hah-green-800); }
.hah-pinchip__text { display: flex; align-items: baseline; gap: 5px; min-width: 0; flex: 1; }
.hah-pinchip__text small { font-size: var(--hah-fs-sm); color: var(--hah-ink-2); font-weight: 500; }
.hah-pinchip__text b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hah-header .hah-header__search {
	grid-area: search;
	display: flex;
	align-items: center;
	gap: var(--hah-2);
	height: 44px;
	margin-block: 7px;
	padding: 0 6px 0 14px;
	border: 1.5px solid var(--hah-line);
	border-radius: var(--hah-r-pill);
	background: var(--hah-bg);
	color: var(--hah-muted);
	transition: border-color var(--hah-fast), background var(--hah-fast), box-shadow var(--hah-fast);
}
.hah-header .hah-header__search:focus-within { background: #fff; border-color: var(--hah-green-600); box-shadow: 0 0 0 4px var(--hah-green-100); }
.hah-header .hah-header__search input[type="search"] {
	flex: 1;
	min-width: 0;
	width: auto;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
	color: var(--hah-ink);
	font-size: 1rem; /* 16px stops phones zooming in on focus */
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}
.hah-header .hah-header__search input[type="search"]::placeholder { color: var(--hah-muted); font-weight: 400; }
.hah-header .hah-header__search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hah-header .hah-header__searchbtn,
.hah-header .hah-header__searchbtn:focus {
	display: none;
	height: 34px;
	padding: 0 var(--hah-4);
	border: 0;
	border-radius: var(--hah-r-pill);
	background: var(--hah-green-600);
	color: #fff;
	font-size: var(--hah-fs-sm);
	font-weight: 700;
	cursor: pointer;
}
.hah-header .hah-header__searchbtn:hover { background: var(--hah-green-700); color: #fff; }

.hah-header .hah-header__action,
.hah-header .hah-header__action:focus {
	display: flex;
	align-items: center;
	gap: var(--hah-2);
	color: var(--hah-ink);
	font-size: var(--hah-fs-sm);
	font-weight: 600;
}
.hah-header .hah-header__action:hover { color: var(--hah-green-700); }
.hah-header__account { display: none !important; }
.hah-header__cart { grid-area: cart; justify-content: center; height: 44px; margin-right: -8px; }
.hah-header__cart > span:last-child { display: none; }
.hah-header__cartic,
.hah-tabbar__ic { position: relative; display: grid; place-items: center; }
.hah-cart-count {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--hah-accent-600);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}
.hah-cart-count.is-empty { display: none; }

.hah-nav { display: none; }

/* ---- Desktop header --------------------------------------------------- */
@media (min-width: 900px) {
	.hah-header { top: calc(var(--hah-bar) - 34px); } /* the thin top strip scrolls away; the rest stays */
	.hah-topstrip { display: block; height: 34px; background: var(--hah-green-800); color: #fff; font-size: var(--hah-fs-xs); font-weight: 500; }
	.hah-topstrip__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
	.hah-topstrip span { display: inline-flex; align-items: center; gap: 6px; }
	.hah-topstrip__links { gap: var(--hah-5) !important; }
	.hah-site .hah-topstrip a,
	.hah-site .hah-topstrip a:focus { color: #fff; display: inline-flex; align-items: center; gap: 6px; opacity: 0.92; }
	.hah-site .hah-topstrip a:hover { color: #d9ef8a; opacity: 1; }

	.hah-header__main {
		grid-template-columns: auto auto minmax(0, 1fr) auto auto;
		grid-template-areas: "logo pin search account cart";
		column-gap: var(--hah-5);
		height: 80px;
	}
	.hah-header__menu { display: none !important; }
	.hah-header__logo { height: auto; }
	.hah-site .hah-header .hah-header__logo img { height: 40px; }
	.hah-header .hah-pinchip {
		height: 48px;
		margin: 0;
		padding: 0 var(--hah-3);
		border: 1.5px solid var(--hah-line);
		border-radius: var(--hah-r-md);
		background: #fff;
		max-width: 190px;
	}
	.hah-header .hah-pinchip:hover,
	.hah-header .hah-pinchip:focus { background: var(--hah-green-50); border-color: var(--hah-green-200); }
	.hah-pinchip__text { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
	.hah-pinchip__text small { font-size: 0.6875rem; }
	.hah-header .hah-header__search { height: 48px; margin: 0; max-width: 640px; width: 100%; justify-self: center; padding-left: 18px; }
	.hah-header .hah-header__searchbtn { display: inline-block; height: 36px; }
	.hah-header__account { display: flex !important; grid-area: account; }
	.hah-header__cart {
		margin: 0;
		height: 48px;
		padding: 0 var(--hah-4);
		border-radius: var(--hah-r-md);
		background: var(--hah-green-50);
	}
	.hah-header .hah-header__cart,
	.hah-header .hah-header__cart:focus { color: var(--hah-green-800); }
	.hah-header .hah-header__cart:hover { background: var(--hah-green-100); color: var(--hah-green-800); }
	.hah-header__cart > span:last-child { display: inline; font-weight: 700; }

	.hah-nav { display: block; border-top: 1px solid var(--hah-line); }
	.hah-nav__in { position: relative; }
	.hah-nav__list { display: flex; align-items: center; gap: 2px; margin: 0 0 0 -12px; padding: 0; list-style: none; height: 46px; }
	.hah-nav__item { margin: 0; height: 100%; display: flex; align-items: center; }
	.hah-header .hah-nav__link,
	.hah-header .hah-nav__link:focus {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: 36px;
		padding: 0 12px;
		border: 0;
		border-radius: var(--hah-r-sm);
		background: transparent;
		color: var(--hah-ink);
		font-size: 0.9375rem;
		font-weight: 600;
		white-space: nowrap;
		cursor: pointer;
	}
	.hah-header .hah-nav__link:hover,
	.hah-header .has-panel.is-open > .hah-nav__link,
	.hah-header .has-panel:focus-within > .hah-nav__link { background: var(--hah-green-50); color: var(--hah-green-700); }
	.hah-nav__link .hah-icon:last-child { transition: transform var(--hah-fast) var(--hah-ease); }
	.has-panel.is-open > .hah-nav__link .hah-icon:last-child { transform: rotate(180deg); }
	.hah-nav__item:first-child .hah-nav__link { color: var(--hah-green-700); }

	.hah-mega {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 5;
		padding-top: 1px;
		visibility: hidden;
		opacity: 0;
		transform: translateY(6px);
		transition: opacity var(--hah-fast) var(--hah-ease), transform var(--hah-fast) var(--hah-ease), visibility 0s linear var(--hah-fast);
	}
	.hah-mega--narrow { right: auto; left: 300px; width: 520px; }
	.has-panel.is-open > .hah-mega {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}
	.hah-mega__in {
		background: #fff;
		border: 1px solid var(--hah-line);
		border-top: 0;
		border-radius: 0 0 var(--hah-r-lg) var(--hah-r-lg);
		box-shadow: var(--hah-shadow-3);
		padding: var(--hah-6);
		max-height: calc(100vh - 190px);
		overflow: auto;
	}
	.hah-mega__in--brands { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--hah-8); }
	.hah-mega__title { margin: 0 0 var(--hah-3); font-size: var(--hah-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hah-muted); }
	.hah-mega ul { list-style: none; margin: 0; padding: 0; }
	.hah-mega__popular { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.hah-site .hah-mega__popular a { display: block; padding: 8px 10px; border-radius: var(--hah-r-sm); background: var(--hah-green-50); color: var(--hah-ink); line-height: 1.25; }
	.hah-site .hah-mega__popular a:hover { background: var(--hah-green-100); color: var(--hah-green-800); }
	.hah-mega__popular b { display: block; font-size: var(--hah-fs-sm); }
	.hah-mega__popular small { font-size: 0.6875rem; color: var(--hah-muted); }
	.hah-mega__az { columns: 4; column-gap: var(--hah-5); }
	.hah-mega__az li { break-inside: avoid; margin: 0; }
	.hah-site .hah-mega__az a { display: block; padding: 5px 8px; margin-inline: -8px; border-radius: 6px; color: var(--hah-ink-2); font-size: var(--hah-fs-sm); }
	.hah-site .hah-mega__az a:hover { background: var(--hah-green-50); color: var(--hah-green-700); }
	.hah-mega__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.hah-mega__types { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
	.hah-site .hah-mega__types a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--hah-r-sm); color: var(--hah-ink); font-size: var(--hah-fs-sm); font-weight: 600; }
	.hah-site .hah-mega__types a:hover { background: var(--hah-green-50); color: var(--hah-green-700); }
	.hah-mega__types span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--hah-green-100); color: var(--hah-green-700); flex: none; }
}
/* Small laptops and tablets held sideways (900 to 1023 wide): the menu row was about 20px
   wider than the screen, which let the whole page slide sideways. Slightly tighter links fit. */
@media (min-width: 900px) and (max-width: 1023px) {
	.hah-header .hah-nav__link,
	.hah-header .hah-nav__link:focus { padding: 0 8px; gap: 4px; font-size: 0.875rem; }
	.hah-nav__list { margin-left: -8px; }
}
@media (min-width: 1160px) {
	.hah-site .hah-header .hah-header__logo img { height: 48px; }
}

/* ==========================================================================
   Dialogs: pincode popup and slide-out menu
   ========================================================================== */
dialog.hah-dialog,
dialog.hah-drawer {
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--hah-ink);
	max-width: none;
	max-height: none;
	overflow: visible;
}
dialog.hah-dialog::backdrop,
dialog.hah-drawer::backdrop { background: rgba(19, 37, 27, 0.55); animation: hah-fade var(--hah-med) var(--hah-ease); }
@keyframes hah-fade { from { opacity: 0; } }

dialog.hah-dialog { width: 100%; margin: auto auto 0; }
.hah-dialog__box {
	position: relative;
	display: grid;
	gap: var(--hah-2);
	padding: var(--hah-6) var(--hah-5) calc(var(--hah-6) + env(safe-area-inset-bottom));
	background: #fff;
	border-radius: var(--hah-r-xl) var(--hah-r-xl) 0 0;
	box-shadow: var(--hah-shadow-3);
	margin: 0;
}
dialog.hah-dialog[open] .hah-dialog__box { animation: hah-sheet var(--hah-med) var(--hah-ease); }
@keyframes hah-sheet { from { transform: translateY(40px); opacity: 0; } }
.hah-dialog__art { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--hah-green-100); color: var(--hah-green-700); margin-bottom: 4px; }
.hah-dialog .hah-dialog__close,
.hah-dialog .hah-dialog__close:focus { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--hah-bg); color: var(--hah-ink); cursor: pointer; }
.hah-dialog .hah-dialog__close:hover { background: var(--hah-green-100); color: var(--hah-green-800); }
.hah-dialog .hah-inline { margin-top: var(--hah-2); }
.hah-dialog__result { min-height: 1.5em; margin: 4px 0 0; font-size: var(--hah-fs-sm); font-weight: 600; }
.hah-dialog__result.is-ok { color: var(--hah-green-700); }
.hah-dialog__result.is-err { color: var(--hah-danger); }
@media (min-width: 600px) {
	dialog.hah-dialog { width: 420px; margin: auto; }
	.hah-dialog__box { border-radius: var(--hah-r-xl); padding: var(--hah-8); }
}

dialog.hah-drawer { inset: 0 auto 0 0; margin: 0; width: min(88vw, 360px); height: 100%; }
.hah-drawer__panel { display: flex; flex-direction: column; height: 100%; background: #fff; box-shadow: var(--hah-shadow-3); }
dialog.hah-drawer[open] .hah-drawer__panel { animation: hah-slide var(--hah-med) var(--hah-ease); }
dialog.hah-drawer.is-closing .hah-drawer__panel { animation: hah-slide var(--hah-fast) var(--hah-ease) reverse forwards; }
@keyframes hah-slide { from { transform: translateX(-100%); } }
.hah-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--hah-3); padding: 8px 8px 8px var(--hah-4); border-bottom: 1px solid var(--hah-line); }
.hah-site .hah-drawer .hah-drawer__head img { height: 26px; width: auto; }
.hah-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--hah-3) var(--hah-4) calc(var(--hah-6) + env(safe-area-inset-bottom)); }
.hah-site .hah-drawer__account { display: flex; align-items: center; gap: var(--hah-3); padding: var(--hah-3); border-radius: var(--hah-r-md); background: var(--hah-green-50); color: var(--hah-ink); margin-bottom: var(--hah-3); }
.hah-drawer__account > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.hah-drawer__account small { color: var(--hah-muted); font-size: var(--hah-fs-xs); }
.hah-drawer__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--hah-green-700); }
.hah-drawer__group { border-bottom: 1px solid var(--hah-line); }
.hah-drawer__group summary { display: flex; align-items: center; gap: var(--hah-3); min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; color: var(--hah-ink); }
.hah-drawer__group summary::-webkit-details-marker { display: none; }
.hah-drawer__group summary > .hah-icon:first-child { color: var(--hah-green-700); }
.hah-drawer__chev { margin-left: auto; color: var(--hah-muted); transition: transform var(--hah-fast) var(--hah-ease); }
.hah-drawer__group[open] .hah-drawer__chev { transform: rotate(180deg); }
.hah-drawer__list { list-style: none; margin: 0; padding: 0 0 var(--hah-3); display: grid; gap: 2px; }
.hah-drawer__list--2 { grid-template-columns: 1fr 1fr; column-gap: var(--hah-3); }
.hah-drawer__list li { margin: 0; min-width: 0; }
.hah-site .hah-drawer__list a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; margin-inline: -8px; border-radius: var(--hah-r-sm); color: var(--hah-ink-2); font-size: var(--hah-fs-sm); font-weight: 500; }
.hah-site .hah-drawer__list a:hover,
.hah-site .hah-drawer__list a:active { background: var(--hah-green-50); color: var(--hah-green-700); }
.hah-drawer__list a .hah-icon { color: var(--hah-green-700); }
.hah-drawer__links { list-style: none; margin: var(--hah-2) 0 0; padding: 0; }
.hah-drawer__links li { margin: 0; }
.hah-site .hah-drawer__links a { display: flex; align-items: center; gap: var(--hah-3); min-height: 48px; color: var(--hah-ink); font-weight: 600; }
.hah-drawer__links .hah-icon { color: var(--hah-green-700); }

/* ==========================================================================
   Bottom bar (phones and small tablets)
   ========================================================================== */
.hah-tabbar--fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; }
.hah-site .hah-tabbar a,
.hah-site .hah-tabbar a:hover,
.hah-site .hah-tabbar a:focus { color: var(--hah-muted); }
.hah-site .hah-tabbar a.is-active { color: var(--hah-green-700); }
.hah-tabbar .hah-cart-count { top: -5px; right: -10px; }
@media (max-width: 899px) {
	body.hah-site { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
	.hah-tabbar--fixed { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hah-footer { margin-top: var(--hah-12); background: #fff; border-top: 1px solid var(--hah-line); color: var(--hah-ink-2); }
.hah-footer__trust { padding-block: var(--hah-6); }
.hah-footer__trust .hah-trust__item { background: var(--hah-bg); border-color: transparent; }

.hah-footer__help { display: grid; gap: var(--hah-3); }
.hah-footer__wa,
.hah-footer__signup { border-radius: var(--hah-r-lg); padding: var(--hah-5); }
.hah-footer__wa { display: flex; gap: var(--hah-4); align-items: center; background: var(--hah-green-50); border: 1px solid var(--hah-green-100); }
.hah-footer__waart { width: 84px; height: 84px; flex: none; }
.hah-footer__wa p,
.hah-footer__signup p { margin: 4px 0 var(--hah-3); color: var(--hah-ink-2); }
.hah-footer .hah-h3 { color: var(--hah-ink); }
.hah-footer__signup { background: var(--hah-lime-100); border: 1px solid #e0ebb9; }
@media (min-width: 860px) {
	.hah-footer__help { grid-template-columns: 1.1fr 0.9fr; gap: var(--hah-4); }
	.hah-footer__wa,
	.hah-footer__signup { padding: var(--hah-6) var(--hah-8); }
	.hah-footer__waart { width: 112px; height: 112px; }
}
@media (max-width: 420px) {
	.hah-footer__waart { width: 64px; height: 64px; align-self: flex-start; }
}

/* Offer sign-up form (Fluent Forms) restyled to match */
.hah-footer__signup .fluentform,
.hah-footer__signup form { margin: 0; }
.hah-footer__signup fieldset { display: flex; flex-wrap: wrap; gap: var(--hah-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.hah-footer__signup .ff-el-group { margin: 0; flex: 1 1 180px; min-width: 0; }
.hah-footer__signup .ff-el-input--label { display: none; }
.hah-footer__signup .ff_submit_btn_wrapper { flex: 0 0 auto; }
.hah-site .hah-footer__signup .ff-el-form-control,
.hah-site .hah-footer__signup input[type="text"],
.hah-site .hah-footer__signup input[type="tel"],
.hah-site .hah-footer__signup input[type="email"] {
	width: 100%;
	height: 48px;
	padding: 0 var(--hah-4);
	border: 1.5px solid #cfdc9f;
	border-radius: var(--hah-r-md);
	background: #fff;
	color: var(--hah-ink);
	font-family: var(--hah-font) !important;
	font-size: 1rem;
	box-shadow: none;
}
.hah-site .hah-footer__signup .ff-el-form-control::placeholder { font-family: var(--hah-font); }
.hah-site .hah-footer__signup .ff-btn-submit,
.hah-site .hah-footer__signup .ff-message-success,
.hah-site .hah-footer__signup .text-danger { font-family: var(--hah-font) !important; }
.hah-site .hah-footer__signup .ff-el-form-control:focus { border-color: var(--hah-green-600); box-shadow: 0 0 0 4px rgba(0, 128, 53, 0.15); outline: 0; }
.hah-site .hah-footer__signup .ff-btn-submit,
.hah-site .hah-footer__signup .ff-btn-submit:focus,
.hah-site .hah-footer__signup form .ff-btn-submit:not(.ff_btn_no_style) {
	height: 48px;
	min-height: 48px;
	padding: 0 var(--hah-5);
	border: 0;
	border-radius: var(--hah-r-md);
	background: var(--hah-green-600);
	color: #fff;
	font: 700 1rem / 1 var(--hah-font);
	cursor: pointer;
	white-space: nowrap;
}
.hah-site .hah-footer__signup .ff-btn-submit:hover,
.hah-site .hah-footer__signup form .ff-btn-submit:not(.ff_btn_no_style):hover { background: var(--hah-green-700); color: #fff; opacity: 1; }
.hah-footer__signup .ff-message-success { margin-top: var(--hah-2); padding: var(--hah-3); border: 1px solid var(--hah-green-200); border-radius: var(--hah-r-md); background: #fff; color: var(--hah-green-800); font-weight: 600; box-shadow: none; }
.hah-footer__signup .error.text-danger,
.hah-footer__signup .ff-el-is-error .text-danger { color: var(--hah-danger); font-size: var(--hah-fs-xs); font-weight: 600; margin-top: 4px; }

.hah-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hah-6) var(--hah-4); padding-block: var(--hah-8); }
.hah-footer__brand { grid-column: 1 / -1; }
.hah-site .hah-footer .hah-footer__brand img { height: 34px; width: auto; margin-bottom: var(--hah-3); }
.hah-footer__brand p { margin: 0 0 var(--hah-2); max-width: 36ch; }
.hah-footer__addr { display: flex; gap: 6px; align-items: flex-start; color: var(--hah-muted); }
.hah-footer__addr .hah-icon { margin-top: 1px; color: var(--hah-green-700); }
.hah-footer__title { margin: 0 0 var(--hah-3); font-size: var(--hah-fs-sm); font-weight: 700; color: var(--hah-ink); letter-spacing: 0.01em; }
.hah-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hah-footer__cols li { margin: 0; }
.hah-site .hah-footer__cols nav a,
.hah-site .hah-footer__cols nav a:focus { display: inline-block; padding: 5px 0; color: var(--hah-ink-2); font-size: var(--hah-fs-sm); }
.hah-site .hah-footer__cols nav a:hover { color: var(--hah-green-700); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 860px) {
	.hah-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--hah-8); padding-block: var(--hah-12); }
	.hah-footer__brand { grid-column: auto; }
	.hah-site .hah-footer .hah-footer__brand img { height: 40px; }
}

.hah-footer__bottom { border-top: 1px solid var(--hah-line); background: var(--hah-bg); }
.hah-footer__bottomin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hah-3); padding-block: var(--hah-4); }
.hah-footer__bottom p { margin: 0; color: var(--hah-muted); }
.hah-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--hah-fs-xs); color: var(--hah-muted); }
.hah-pay li { margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.hah-pay li:first-child { margin-right: 4px; font-weight: 600; color: var(--hah-green-700); }
.hah-pay__m { height: 26px; padding: 0 9px; border: 1px solid var(--hah-line-strong); border-radius: 6px; background: #fff; color: var(--hah-ink-2); font-weight: 700; letter-spacing: 0.01em; }

/* Screen-reader helper used by the skip link */
.hah-site .skip-link:focus { z-index: 1000; }

/* Sign-up form: hide the duplicate label, keep field and button on one line */
.hah-site .hah-footer__signup .ff-el-group .ff-el-input--label { display: none !important; }
.hah-site .hah-footer__signup fieldset { align-items: flex-start; }
.hah-site .hah-footer__signup .ff-el-group,
.hah-site .hah-footer__signup .ff_submit_btn_wrapper { margin-bottom: 0 !important; }

/* Back-to-top button (from the parent theme) in our colours, clear of the bottom bar */
.hah-site #ast-scroll-top { background: var(--hah-green-600); border-radius: var(--hah-r-md); width: 40px; height: 40px; line-height: 40px; right: 16px; bottom: 60px; box-shadow: var(--hah-shadow-2); }
.hah-site #ast-scroll-top:hover { background: var(--hah-green-700); }
@media (max-width: 899px) {
	.hah-site #ast-scroll-top { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; }
}

/* Back-to-top button: not shown on phones (it covered footer labels and buttons) */
@media (max-width: 899px) {
	.hah-site #ast-scroll-top { display: none !important; }
}
.hah-footer__wabtns { display: flex; flex-wrap: wrap; gap: var(--hah-2); }
.hah-site .hah-footer__addr a { color: var(--hah-ink-2); font-weight: 600; }
.hah-header .hah-pinchip .hah-pinchip__text small { white-space: nowrap; }

/* ---- Settings-driven pieces (22 Nov 2026) ---- */
/* Top strip: extra messages show on wide screens only. */
.hah-topstrip__msg--more { display: none !important; }
@media (min-width: 1100px) {
	.hah-topstrip__msgs { gap: var(--hah-5) !important; }
	.hah-topstrip__msg--more { display: inline-flex !important; }
}
/* Logo link: the design-system focus ring when reached by keyboard. */
.hah-header__logo:focus-visible,
.hah-site .hah-header .hah-header__logo:focus-visible { outline: 3px solid var(--hah-green-200); outline-offset: 4px; border-radius: var(--hah-r-sm); }
/* A group's own picture instead of an icon. */
.hah-tile__art .hah-tile__img { position: relative; width: 62%; height: 62%; object-fit: contain; }
.hah-mega__types .hah-tile__img, .hah-drawer__list .hah-tile__img { width: 20px; height: 20px; object-fit: contain; }
.hah-tile.hah-tile--own .hah-tile__art { color: var(--hah-green-700); }
/* Footer: social links. */
.hah-footer__social { display: flex; flex-wrap: wrap; gap: var(--hah-3); margin-top: var(--hah-2); }
.hah-footer__social a { font-size: var(--hah-fs-sm); font-weight: 600; }
.hah-footer__help--one { grid-template-columns: 1fr !important; }
@media (min-width: 1000px) { .hah-footer__cols--4 { grid-template-columns: 1.4fr repeat(4, 1fr); } }

/* While a popup, the menu or the cart drawer is open the page behind does not scroll.
   This is done on <body> (not on <html>): locking <html> made the pinned header let go and
   the page jump. The width of the scrollbar (measured by site.js) is kept as padding, so the
   page does not move sideways when the scrollbar goes. */
html.hah-lock body { overflow: hidden !important; padding-right: var(--hah-sbw, 0px); }
/* Back-to-top button fades out while it would cover the buy buttons (product page, desktop) */
.hah-site #ast-scroll-top { transition: opacity 0.15s ease; }
.hah-site #ast-scroll-top.hah-top-away { opacity: 0 !important; pointer-events: none !important; }

/* Second safety against sideways scroll. Product rows bleed 16px past their box on phones on
   purpose (the row runs to the screen edge); if broken text ever puts a row or a video
   outside the page wrapper, the wrapper cuts it off instead of letting the whole page slide.
   "clip" (not "hidden") keeps the pinned header working. */
body.hah-site #page,
body.hah-site .site-content { overflow-x: clip; }
body.hah-site .site-content > .hah-carousel,
body.hah-site .site-content > .ast-container > .hah-carousel,
body.hah-site .site-content > section,
body.hah-site .site-content > .hah-sec { max-width: 100%; overflow-x: clip; }
body.hah-site .site-content > .hah-carousel .hah-carousel__track,
body.hah-site .site-content > .ast-container > .hah-carousel .hah-carousel__track { margin-inline: 0; }
.hah-site .hah-prose iframe,
.hah-site .hah-prose video,
.hah-site .hah-prose embed,
.hah-site .hah-prose object,
.hah-site .hah-prose img,
.hah-site .hah-prose table,
.hah-site .site-content iframe { max-width: 100%; }
.hah-site .hah-prose iframe[src*="youtube"],
.hah-site .hah-prose iframe[src*="youtu.be"],
.hah-site .site-content > iframe[src*="youtube"] { width: min(100%, 640px); height: auto; aspect-ratio: 16 / 9; }
.hah-site .hah-prose { overflow-wrap: break-word; }

/* Tables inside descriptions on phones: a long word (for example "Phosphoricum") made a
   three-column table wider than a 320px screen. Cells may now break a long word when there is
   no other way to fit, the table never grows past its box, and boxes copied in with the text
   (for example "w-fit" wrappers) cannot be wider than the page either. */
@media (max-width: 599px) {
	.hah-site .hah-prose table { width: 100%; max-width: 100%; table-layout: auto; }
	.hah-site .hah-prose th,
	.hah-site .hah-prose td { overflow-wrap: anywhere; word-break: break-word; padding-left: 6px; padding-right: 6px; }
	.hah-site .hah-prose div,
	.hah-site .hah-prose section,
	.hah-site .hah-prose figure,
	.hah-site .hah-prose pre { max-width: 100%; min-width: 0; }
	.hah-site .hah-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

