/**
 * FM Farm – main styles
 */

/* -------------------------------------------------------------------------- */
/* Design tokens                                                              */
/* -------------------------------------------------------------------------- */
:root {
	--fm-honey: #e8b94d;
	--fm-honey-dark: #d4a017;
	--fm-honey-light: #f5d98a;
	--fm-cream: #fef9e7;
	--fm-cream-dark: #f5efd9;
	--fm-sidebar-bg: #fef9e7;
	--fm-brown: #42210b;
	--fm-brown-soft: #5c4033;
	--fm-brown-muted: #7a6355;
	--fm-accent-copper: #b4712c;
	--fm-nav-text: #42210b;
	--fm-nav-icon: #d4a017;
	--fm-nav-active-bg: #e8b94d;
	--fm-nav-active-text: #42210b;
	--fm-nav-hover-bg: rgba(232, 185, 77, 0.25);
	--fm-social-bg: #42210b;
	--fm-social-icon: #ffffff;
	--fm-social-hover: #b4712c;
	--fm-header-bg: #ffffff;
	--fm-header-text: #5c4033;
	--fm-header-icon: #e8b94d;
	--fm-header-border: rgba(61, 43, 31, 0.06);
	--fm-search-bg: #ffffff;
	--fm-search-border: rgba(61, 43, 31, 0.12);
	--fm-search-btn: #e8b94d;
	--fm-search-btn-icon: #42210b;
	--fm-header-action-hover: #f5efd9;
	--fm-footer-bg: #f5d98a;
	--fm-footer-bg-end: #f0d070;
	--fm-footer-text: #5c4033;
	--fm-footer-muted: #7a6355;
	--fm-footer-accent: #d4a017;
	--fm-footer-border: rgba(61, 43, 31, 0.18);
	--fm-white: #ffffff;
	--fm-red: #e53935;
	--fm-sidebar-w: 260px;
	--fm-header-h: 64px;
	--fm-radius: 10px;
	--fm-radius-sm: 6px;
	--fm-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
	/* System first for FCP; .fm-fonts-ready swaps in webfonts */
	--fm-font-heading: Georgia, "Times New Roman", serif;
	--fm-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fm-transition: 0.25s ease;
	/* WordPress content breakpoints (docs) + layout-driven extras */
	--fm-bp-mobile: 480px;
	--fm-bp-tablet: 782px;
	--fm-bp-laptop: 1024px;
	--fm-bp-desktop: 1200px;
	--fm-space: clamp(0.85rem, 2vw, 1.5rem);
	--fm-tap: 44px;
}

/* -------------------------------------------------------------------------- */
/* Reset / base                                                               */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--fm-font-body);
	font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
	line-height: 1.6;
	color: var(--fm-brown);
	background: var(--fm-cream);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
picture,
video,
canvas,
svg,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
	display: block;
}

iframe,
embed,
object,
video {
	width: 100%;
}

table {
	max-width: 100%;
}

.wp-block-table,
.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--fm-transition);
}

a:hover {
	color: var(--fm-honey-dark);
}

button,
input,
textarea,
select {
	font: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fm-font-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
	color: var(--fm-brown);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.fm-skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	background: var(--fm-honey);
	color: var(--fm-brown);
	padding: 0.75rem 1.25rem;
	border-radius: var(--fm-radius-sm);
	font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Icons                                                                      */
/* -------------------------------------------------------------------------- */
.fm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
	line-height: 0;
}

.fm-icon svg {
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------------------------------- */
/* Shell / layout                                                             */
/* -------------------------------------------------------------------------- */
.fm-shell {
	display: flex;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--fm-cream);
	overflow-x: clip;
}

.fm-content {
	flex: 1;
	min-width: 0;
	width: 100%;
	margin-left: var(--fm-sidebar-w);
	display: flex;
	flex-direction: column;
	background: var(--fm-cream);
}

.fm-main {
	flex: 1;
	padding: var(--fm-space) var(--fm-space) 0;
	padding-left: max(var(--fm-space), env(safe-area-inset-left));
	padding-right: max(var(--fm-space), env(safe-area-inset-right));
}

.fm-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 2rem;
}

.fm-container--narrow {
	max-width: 760px;
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */
.fm-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: var(--fm-sidebar-w);
	height: 100vh;
	height: 100dvh;
	background: var(--fm-sidebar-bg);
	color: var(--fm-brown);
	border-right: 1px solid rgba(66, 33, 11, 0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* WordPress admin bar offsets */
.admin-bar .fm-sidebar {
	top: 32px;
	height: calc(100vh - 32px);
	height: calc(100dvh - 32px);
}

.admin-bar .fm-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .fm-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}

	.admin-bar .fm-header {
		top: 46px;
	}

	.admin-bar .fm-smart-search__panel {
		top: calc(46px + var(--fm-header-h) + 0.35rem);
	}
}

.fm-sidebar__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.25rem 1rem 7.5rem;
	overflow: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fm-sidebar__inner::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.fm-sidebar__pattern {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 200px;
	z-index: 1;
	pointer-events: none;
	background-image: url("../images/sidebar-honeycomb.svg");
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 100% auto;
}

/* Branding */
.fm-branding {
	text-align: center;
	margin-bottom: 1.5rem;
}

.fm-branding__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	color: var(--fm-brown);
}

.fm-branding__link:hover {
	color: var(--fm-brown);
}

.fm-branding .custom-logo-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.fm-branding .custom-logo {
	display: block;
	max-width: 140px;
	max-height: 140px;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.fm-branding__badge {
	width: 120px;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-branding__hex {
	width: 110px;
	height: 120px;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	background: linear-gradient(160deg, #f0c45a 0%, #e8b94d 45%, #c9962a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(212, 160, 23, 0.35);
	position: relative;
}

.fm-branding__hex::before {
	content: "";
	position: absolute;
	inset: 4px;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	background: linear-gradient(180deg, #fff8e7, #ffe8a8);
}

.fm-branding__bee {
	position: relative;
	z-index: 1;
	width: 64px;
	height: 64px;
}

.fm-branding__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.fm-branding__title {
	font-family: var(--fm-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
}

.fm-branding__tagline {
	font-size: 0.7rem;
	color: var(--fm-brown-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Nav */
.fm-nav {
	margin-bottom: 1.5rem;
}

.fm-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fm-nav__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: var(--fm-radius-sm);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fm-nav-text);
	transition: background var(--fm-transition), color var(--fm-transition);
}

.fm-nav__link > span:not(.fm-icon) {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
}

.fm-nav__link .fm-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--fm-nav-icon);
	flex-shrink: 0;
}

.fm-nav__link:hover {
	background: var(--fm-nav-hover-bg);
	color: var(--fm-nav-text);
}

.fm-nav__item.is-active > .fm-nav__link,
.fm-nav__item.current-menu-item > .fm-nav__link {
	background: var(--fm-nav-active-bg);
	color: var(--fm-nav-active-text);
}

.fm-nav__item.is-active > .fm-nav__link .fm-icon,
.fm-nav__item.current-menu-item > .fm-nav__link .fm-icon {
	color: var(--fm-nav-active-text);
}

.fm-nav__link .fm-nav__chevron,
.fm-nav__chevron {
	margin-left: auto;
	width: 0.85rem;
	height: 0.85rem;
	opacity: 0.55;
	flex-shrink: 0;
}

.fm-nav .sub-menu {
	display: none;
	padding: 0.25rem 0 0.25rem 2.2rem;
}

.fm-nav__item.is-open > .sub-menu,
.fm-nav__item:focus-within > .sub-menu {
	display: block;
}

.fm-nav .sub-menu a {
	display: block;
	padding: 0.45rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--fm-brown-soft);
}

/* Contact list */
.fm-sidebar__contact {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(61, 43, 31, 0.08);
	margin-bottom: 1rem;
}

.fm-contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.fm-contact-list__item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.72rem;
	line-height: 1.4;
	color: var(--fm-brown-soft);
}

.fm-contact-list__item .fm-icon {
	width: 0.95rem;
	height: 0.95rem;
	margin-top: 0.1rem;
	color: var(--fm-brown);
}

.fm-contact-list__item.is-accent,
.fm-contact-list__item.is-accent .fm-icon,
.fm-contact-list__accent {
	color: var(--fm-accent-copper);
}

.fm-contact-list__item a:hover {
	color: var(--fm-honey-dark);
}

/* Social */
.fm-social {
	display: flex;
	gap: 0.55rem;
	justify-content: flex-start;
	position: relative;
	z-index: 2;
}

.fm-social__link {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: var(--fm-social-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--fm-social-icon);
	transition: background var(--fm-transition), transform var(--fm-transition);
}

.fm-social__link:hover {
	background: var(--fm-social-hover);
	color: var(--fm-social-icon);
	transform: translateY(-1px);
}

.fm-social__link .fm-icon {
	width: 0.95rem;
	height: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Top header                                                                 */
/* -------------------------------------------------------------------------- */
.fm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: var(--fm-header-h);
	background: var(--fm-header-bg);
	border-bottom: 1px solid var(--fm-header-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 1.5rem;
	box-shadow: 0 1px 0 rgba(61, 43, 31, 0.03);
}

.fm-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--fm-brown);
	cursor: pointer;
	border-radius: var(--fm-radius-sm);
}

.fm-header__toggle:hover {
	background: var(--fm-cream-dark);
}

.fm-header__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

.fm-header__contact-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--fm-header-text);
}

.fm-header__contact-item .fm-icon {
	width: 1rem;
	height: 1rem;
	color: var(--fm-header-icon);
}

.fm-header__actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.fm-search {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--fm-search-border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--fm-search-bg);
	min-width: 220px;
}

.fm-search__input {
	border: 0;
	outline: 0;
	padding: 0.5rem 0.9rem;
	min-width: 0;
	flex: 1;
	font-size: 0.8rem;
	background: transparent;
	color: var(--fm-brown);
}

.fm-search__input::placeholder {
	color: var(--fm-brown-muted);
}

.fm-search__btn {
	border: 0;
	background: var(--fm-search-btn);
	color: var(--fm-search-btn-icon);
	width: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background var(--fm-transition), filter var(--fm-transition);
}

.fm-search__btn:hover {
	filter: brightness(0.95);
}

.fm-search__btn .fm-icon {
	width: 1rem;
	height: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Smart search                                                               */
/* -------------------------------------------------------------------------- */
.fm-smart-search {
	position: relative;
	z-index: 120;
}

.fm-smart-search .fm-search {
	min-width: 260px;
	width: min(420px, 42vw);
}

.fm-smart-search.is-open .fm-search {
	border-color: var(--fm-honey);
	box-shadow: 0 0 0 3px rgba(232, 185, 77, 0.2);
}

.fm-smart-search__panel {
	position: absolute;
	top: calc(100% + 0.55rem);
	right: 0;
	width: min(720px, calc(100vw - 2rem - var(--fm-sidebar-w)));
	background: var(--fm-white);
	border: 1px solid rgba(61, 43, 31, 0.08);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(61, 43, 31, 0.14);
	overflow: hidden;
	animation: fm-fade-up 0.2s ease both;
}

.fm-smart-search__inner {
	display: grid;
	grid-template-columns: minmax(200px, 0.9fr) 1.35fr;
	max-height: min(70vh, 480px);
}

.fm-smart-search__col {
	overflow-y: auto;
	max-height: min(70vh, 480px);
}

.fm-smart-search__col--side {
	border-right: 1px solid rgba(61, 43, 31, 0.08);
	background: #fffdf7;
}

.fm-smart-search__block {
	padding-bottom: 0.35rem;
}

.fm-smart-search__heading,
.fm-smart-search__heading-row {
	margin: 0;
}

.fm-smart-search__heading {
	font-family: var(--fm-font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fm-brown);
	background: #f5e6b8;
	padding: 0.55rem 0.85rem;
}

.fm-smart-search__heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: #f5e6b8;
	padding-right: 0.85rem;
}

.fm-smart-search__heading-row .fm-smart-search__heading {
	background: transparent;
	flex: 1;
}

.fm-smart-search__all {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--fm-honey-dark);
	white-space: nowrap;
}

.fm-smart-search__all:hover {
	color: var(--fm-brown);
}

.fm-smart-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0.75rem 0.85rem;
}

.fm-smart-search__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid rgba(61, 43, 31, 0.14);
	background: var(--fm-white);
	border-radius: 999px;
	padding: 0.3rem 0.65rem;
	font-size: 0.75rem;
	color: var(--fm-brown);
	cursor: pointer;
	transition: border-color var(--fm-transition), background var(--fm-transition);
}

.fm-smart-search__chip:hover {
	border-color: var(--fm-honey);
	background: #fff8e6;
}

.fm-smart-search__chip-icon {
	display: inline-flex;
	color: var(--fm-honey-dark);
}

.fm-smart-search__cats,
.fm-smart-search__pages,
.fm-smart-search__products {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 0.6rem;
}

.fm-smart-search__cat,
.fm-smart-search__page,
.fm-smart-search__product {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.45rem 0.85rem;
	color: var(--fm-brown);
	text-decoration: none;
	transition: background var(--fm-transition);
}

.fm-smart-search__cat:hover,
.fm-smart-search__page:hover,
.fm-smart-search__product:hover {
	background: rgba(232, 185, 77, 0.12);
	color: var(--fm-brown);
}

.fm-smart-search__page {
	font-size: 0.85rem;
}

.fm-smart-search__thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--fm-cream-dark);
}

.fm-smart-search__thumb--lg {
	width: 56px;
	height: 56px;
}

.fm-smart-search__thumb--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--fm-brown-muted);
}

.fm-smart-search__product-title {
	flex: 1;
	min-width: 0;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.35;
}

.fm-smart-search__prices {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex-shrink: 0;
}

.fm-smart-search__price-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

.fm-smart-search__regular {
	font-size: 0.7rem;
	color: var(--fm-brown-muted);
	text-decoration: line-through;
}

.fm-smart-search__sale,
.fm-smart-search__price {
	font-size: 0.9rem;
	font-weight: 700;
	color: #c0392b;
	white-space: nowrap;
}

.fm-smart-search__price {
	color: var(--fm-brown);
	flex-shrink: 0;
}

.fm-smart-search__badge {
	display: inline-block;
	border: 1px solid #c0392b;
	color: #c0392b;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.15rem 0.35rem;
	border-radius: 4px;
	line-height: 1;
}

.fm-smart-search__empty,
.fm-smart-search__loading {
	padding: 1.25rem 0.85rem;
	margin: 0;
	font-size: 0.85rem;
	color: var(--fm-brown-muted);
	text-align: center;
}

.fm-smart-search__product .amount,
.fm-smart-search__price .amount,
.fm-smart-search__sale .amount,
.fm-smart-search__regular .amount {
	font-weight: inherit;
}

.fm-header__icon-btn {
	position: relative;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--fm-brown);
	transition: background var(--fm-transition);
}

.fm-header__icon-btn:hover {
	background: var(--fm-header-action-hover);
	color: var(--fm-brown);
}

.fm-header__icon-btn .fm-icon {
	width: 1.55rem;
	height: 1.55rem;
}

.fm-header__icon-btn .fm-icon svg {
	stroke-width: 2.45;
}

.fm-header__cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--fm-red);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	border: 0;
	font-family: var(--fm-font-body);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--fm-transition), transform var(--fm-transition), box-shadow var(--fm-transition);
}

.fm-btn--primary {
	background: var(--fm-honey);
	color: var(--fm-brown);
	box-shadow: 0 4px 14px rgba(232, 185, 77, 0.4);
}

.fm-btn--primary:hover {
	background: var(--fm-honey-dark);
	color: var(--fm-brown);
	transform: translateY(-1px);
}

.fm-btn--small {
	padding: 0.4rem 0.9rem;
	font-size: 0.75rem;
	background: var(--fm-honey);
	color: var(--fm-brown);
	border-radius: 999px;
}

.fm-btn--small:hover {
	background: var(--fm-honey-dark);
	color: var(--fm-brown);
}

.fm-btn .fm-icon {
	width: 0.95rem;
	height: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Showcase: hero + promos                                                    */
/* -------------------------------------------------------------------------- */
.fm-showcase {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 1rem;
	margin-bottom: 2.5rem;
	min-height: 420px;
}

.fm-hero {
	position: relative;
	border-radius: var(--fm-radius);
	overflow: hidden;
	min-height: 420px;
	background-color: #5a3d1a;
	display: flex;
	align-items: flex-end;
	box-shadow: var(--fm-shadow);
	contain: layout paint;
}

.fm-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.fm-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(105deg, rgba(40, 25, 10, 0.55) 0%, transparent 60%);
	pointer-events: none;
}

.fm-hero__content {
	position: relative;
	z-index: 2;
	padding: 2.25rem 2rem 3rem;
	max-width: 480px;
	color: #fff;
}

/* Avoid CLS: reserve hero space before image paints */
.fm-hero__media[width][height] {
	height: 100%;
}

.fm-hero__eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fm-honey);
}

.fm-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 3vw, 2.45rem);
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.fm-hero__text {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
	max-width: 36ch;
}

.fm-hero__dots {
	position: absolute;
	left: 2rem;
	bottom: 1.15rem;
	z-index: 2;
	display: flex;
	gap: 0.4rem;
}

.fm-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background var(--fm-transition), transform var(--fm-transition);
}

.fm-hero__dot.is-active,
.fm-hero__dot:hover {
	background: var(--fm-honey);
	transform: scale(1.15);
}

/* Promo cards */
.fm-promos {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.fm-promo {
	position: relative;
	flex: 1;
	min-height: 128px;
	border-radius: var(--fm-radius);
	overflow: hidden;
	background-color: #6b4a22;
	box-shadow: var(--fm-shadow);
	contain: layout paint;
}

.fm-promo__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.fm-promo__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(25, 15, 5, 0.55), transparent 70%);
	pointer-events: none;
}

.fm-promo__body {
	position: relative;
	z-index: 2;
	padding: 1rem 1.1rem;
	color: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.35rem;
}

.fm-promo__title {
	margin: 0;
	font-size: 1.05rem;
	color: #fff;
	line-height: 1.2;
}

.fm-promo__text {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.88);
	max-width: 22ch;
}

/* -------------------------------------------------------------------------- */
/* Features – „Miért válasszon minket?”                                       */
/* -------------------------------------------------------------------------- */
.fm-features {
	padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
	position: relative;
	background: var(--fm-cream);
	content-visibility: auto;
	contain-intrinsic-size: 1px 360px;
}

html.fm-fonts-ready {
	--fm-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--fm-font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.fm-features__header {
	text-align: center;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.fm-features__icon {
	display: inline-flex;
	color: var(--fm-honey);
	margin-bottom: 0.55rem;
}

.fm-features__icon .fm-icon {
	width: 2.1rem;
	height: 1.85rem;
}

.fm-features__title {
	margin: 0;
	font-family: var(--fm-font-heading);
	font-size: clamp(1.55rem, 2.6vw, 2.05rem);
	font-weight: 700;
	color: var(--fm-brown);
	line-height: 1.25;
}

.fm-features__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-feature {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.35rem 1.15rem;
	text-align: left;
	position: relative;
}

.fm-feature:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 12%;
	bottom: 12%;
	width: 1px;
	background: rgba(61, 43, 31, 0.14);
}

.fm-feature__icon {
	flex-shrink: 0;
	width: 58px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fm-brown);
	background: var(--fm-honey);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	transition: transform var(--fm-transition), background var(--fm-transition);
}

.fm-feature:hover .fm-feature__icon {
	transform: translateY(-3px);
	background: var(--fm-honey-dark);
}

.fm-feature__icon .fm-icon {
	width: 28px;
	height: 28px;
}

.fm-feature__body {
	min-width: 0;
	padding-top: 0.15rem;
}

.fm-feature__title {
	margin: 0 0 0.3rem;
	font-family: var(--fm-font-heading);
	font-size: clamp(0.95rem, 1.1vw, 1.08rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--fm-brown);
}

.fm-feature__text {
	margin: 0;
	font-family: var(--fm-font-body);
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--fm-brown-muted);
}

/* -------------------------------------------------------------------------- */
/* Homepage product sliders                                                   */
/* -------------------------------------------------------------------------- */
.fm-pslide {
	padding: clamp(1.5rem, 3.5vw, 2.75rem) 0;
	background: var(--fm-cream);
}

.fm-pslide + .fm-pslide {
	padding-top: 0.5rem;
}

.fm-pslide__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.fm-pslide__heading {
	margin: 0;
	font-family: var(--fm-font-heading);
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 700;
	color: var(--fm-brown);
	line-height: 1.25;
}

.fm-pslide__more {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fm-accent-copper);
	text-decoration: none;
	white-space: nowrap;
}

.fm-pslide__more:hover,
.fm-pslide__more:focus-visible {
	color: var(--fm-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fm-pslide__viewport {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.5rem;
}

.fm-pslide__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.35rem 0.15rem 0.85rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--fm-honey) transparent;
}

.fm-pslide__track:focus-visible {
	outline: 2px solid var(--fm-honey-dark);
	outline-offset: 2px;
}

.fm-pslide__card {
	flex: 0 0 min(220px, 72vw);
	scroll-snap-align: start;
	background: #fff;
	border-radius: var(--fm-radius);
	box-shadow: var(--fm-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fm-pslide__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--fm-cream-dark);
	overflow: hidden;
}

.fm-pslide__media img,
.fm-pslide__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--fm-transition);
}

.fm-pslide__card:hover .fm-pslide__media img {
	transform: scale(1.04);
}

.fm-pslide__badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 1;
	background: var(--fm-red);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	line-height: 1.2;
}

.fm-pslide__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.9rem 0.95rem 1.05rem;
	flex: 1;
}

.fm-pslide__title {
	margin: 0;
	font-family: var(--fm-font-heading);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
}

.fm-pslide__title a {
	color: var(--fm-brown);
	text-decoration: none;
}

.fm-pslide__title a:hover,
.fm-pslide__title a:focus-visible {
	color: var(--fm-honey-dark);
}

.fm-pslide__price {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fm-honey-dark);
	margin-top: auto;
}

.fm-pslide__price del {
	opacity: 0.55;
	font-weight: 500;
	margin-right: 0.35rem;
	color: var(--fm-brown-muted);
}

.fm-pslide__price ins {
	text-decoration: none;
}

.fm-pslide__actions {
	margin-top: 0.35rem;
}

.fm-pslide__actions .button,
.fm-pslide__actions a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--fm-honey);
	color: var(--fm-brown);
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.8rem;
	padding: 0.65rem 0.9rem;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--fm-transition);
}

.fm-pslide__actions .button:hover,
.fm-pslide__actions a.button:hover {
	background: var(--fm-honey-dark);
	color: var(--fm-brown);
}

.fm-pslide__nav {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--fm-brown);
	box-shadow: var(--fm-shadow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background var(--fm-transition), color var(--fm-transition), opacity var(--fm-transition);
}

.fm-pslide__nav:hover,
.fm-pslide__nav:focus-visible {
	background: var(--fm-honey);
	color: var(--fm-brown);
}

.fm-pslide__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 782px) {
	.fm-pslide__viewport {
		grid-template-columns: 1fr;
	}

	.fm-pslide__nav {
		display: none;
	}

	.fm-pslide__card {
		flex-basis: min(200px, 70vw);
	}
}

/* -------------------------------------------------------------------------- */
/* Footer – honey wave + honeycomb (4-column layout)                          */
/* -------------------------------------------------------------------------- */
.fm-footer {
	margin-top: auto;
	position: relative;
	color: var(--fm-footer-text);
	content-visibility: auto;
	contain-intrinsic-size: 1px 420px;
}

.fm-footer__wave {
	position: relative;
	height: clamp(56px, 7vw, 110px);
	overflow: hidden;
	color: var(--fm-footer-bg);
	line-height: 0;
}

.fm-footer__wave-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fm-footer__main {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--fm-footer-bg) 0%, var(--fm-footer-bg-end) 100%);
	padding: clamp(1.25rem, 3vw, 2.25rem) max(var(--fm-space), env(safe-area-inset-left)) 0 max(var(--fm-space), env(safe-area-inset-right));
}

.fm-footer__honeycomb {
	position: absolute;
	inset: 0;
	opacity: 0.4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42' viewBox='0 0 48 42'%3E%3Cpath fill='%23D4A017' fill-opacity='0.35' d='M24 0l12 7v14L24 28 12 21V7L24 0z'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 0;
}

.fm-footer__bee {
	position: absolute;
	right: 10%;
	top: 18%;
	width: 28px;
	height: 28px;
	z-index: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='22' rx='8' ry='10' fill='%233D2B1F'/%3E%3Cellipse cx='20' cy='20' rx='7' ry='5' fill='%23E8B94D'/%3E%3Ccircle cx='20' cy='12' r='4' fill='%233D2B1F'/%3E%3Cellipse cx='10' cy='16' rx='6' ry='3.5' fill='%23F5EFD9' transform='rotate(-20 10 16)'/%3E%3Cellipse cx='30' cy='16' rx='6' ry='3.5' fill='%23F5EFD9' transform='rotate(20 30 16)'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: fm-bee-fly 6s ease-in-out infinite;
	pointer-events: none;
}

.fm-footer__bee::before {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	width: 70px;
	height: 1px;
	border-top: 2px dotted rgba(61, 43, 31, 0.35);
	transform: rotate(-12deg);
	transform-origin: right center;
}

.fm-footer__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.15fr 1fr 0.85fr 1.1fr;
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	align-items: start;
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.fm-footer__heading {
	margin: 0 0 0.85rem;
	font-family: var(--fm-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--fm-brown);
}

.fm-footer__info-list,
.fm-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-footer__info-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.fm-footer__info-list li {
	position: relative;
	padding-left: 0.95rem;
	font-size: 0.88rem;
	line-height: 1.45;
}

.fm-footer__info-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--fm-footer-accent);
}

.fm-footer__info-list a {
	color: var(--fm-footer-text);
	text-decoration: none;
	transition: color var(--fm-transition);
}

.fm-footer__info-list a:hover,
.fm-footer__info-list a:focus-visible {
	color: var(--fm-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fm-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.fm-footer__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--fm-footer-text);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1.4;
	transition: color var(--fm-transition);
}

.fm-footer__contact-link .fm-icon {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	color: var(--fm-footer-accent);
}

.fm-footer__contact-link .fm-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fm-footer__contact-link:hover,
.fm-footer__contact-link:focus-visible {
	color: var(--fm-brown);
}

.fm-footer__map {
	position: relative;
	width: 100%;
	border-radius: var(--fm-radius-sm);
	overflow: hidden;
}

.fm-footer__map:not(.fm-footer__map--empty) {
	min-height: 150px;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 0 1px rgba(61, 43, 31, 0.08);
}

.fm-footer__map iframe {
	display: block;
	width: 100%;
	height: 170px;
	border: 0;
}

.fm-footer__map-link,
.fm-footer__map-placeholder {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--fm-footer-muted);
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
}

.fm-footer__map-link:hover,
.fm-footer__map-link:focus-visible {
	color: var(--fm-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fm-footer__map:not(.fm-footer__map--empty) .fm-footer__map-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 1rem;
	text-align: center;
}

.fm-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.fm-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--fm-brown);
	color: #fff;
	transition: background var(--fm-transition), transform var(--fm-transition);
}

.fm-footer__social-link .fm-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.fm-footer__social-link .fm-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fm-footer__social-link:hover,
.fm-footer__social-link:focus-visible {
	background: var(--fm-accent-copper);
	transform: translateY(-2px);
}

.fm-footer__social-link.is-placeholder {
	opacity: 0.45;
	pointer-events: none;
}

.fm-footer__bar {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--fm-footer-border);
	padding: 0.95rem max(var(--fm-space), env(safe-area-inset-left)) max(1.1rem, env(safe-area-inset-bottom)) max(var(--fm-space), env(safe-area-inset-right));
	text-align: center;
}

.fm-footer__copy {
	margin: 0 auto;
	max-width: 1200px;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--fm-footer-muted);
}

.fm-back-top {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--fm-radius-sm);
	background: var(--fm-brown);
	color: #fff;
	box-shadow: 0 4px 16px rgba(66, 33, 11, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity var(--fm-transition), visibility var(--fm-transition), transform var(--fm-transition), background var(--fm-transition), color var(--fm-transition);
}

.fm-back-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.fm-back-top:hover,
.fm-back-top:focus-visible {
	background: var(--fm-honey);
	color: var(--fm-brown);
}

/* -------------------------------------------------------------------------- */
/* Page / posts                                                               */
/* -------------------------------------------------------------------------- */
.fm-page-header {
	margin-bottom: 1.5rem;
}

.fm-page-header__title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.fm-entry__content {
	font-size: 1rem;
	line-height: 1.7;
}

.fm-entry__content > *:last-child {
	margin-bottom: 0;
}

.fm-entry__thumb {
	margin: 0 0 1.5rem;
	border-radius: var(--fm-radius);
	overflow: hidden;
}

.fm-entry__meta {
	font-size: 0.85rem;
	color: var(--fm-brown-muted);
}

.fm-posts {
	display: grid;
	gap: 1.5rem;
}

.fm-card-post {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1.25rem;
	background: var(--fm-white);
	border-radius: var(--fm-radius);
	overflow: hidden;
	box-shadow: var(--fm-shadow);
}

.fm-card-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 160px;
}

.fm-card-post__body {
	padding: 1.25rem 1.25rem 1.25rem 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.fm-card-post__title {
	margin: 0;
	font-size: 1.25rem;
}

.fm-page-content {
	padding: 0 0 2rem;
	content-visibility: auto;
	contain-intrinsic-size: 1px 400px;
}

.fm-404,
.fm-no-results {
	text-align: center;
	padding: 3rem 1rem;
}

/* Overlay for mobile menu */
.fm-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(30, 20, 10, 0.45);
	z-index: 999;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

body.fm-menu-open {
	overflow: hidden;
	touch-action: none;
}

body.fm-menu-open .fm-overlay {
	display: block;
}

/* -------------------------------------------------------------------------- */
/* Animations                                                                 */
/* -------------------------------------------------------------------------- */
@keyframes fm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fm-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fm-bee-fly {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(-10px, -6px) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* Breakpoints aligned with WordPress docs + layout needs:                    */
/*   mobile ≤480 · tablet ≤782 · laptop ≤1024 · desktop ≤1200 · PC >1200     */
/* -------------------------------------------------------------------------- */

/* --- Laptop / small desktop (< 1200) --- */
@media (max-width: 1200px) {
	:root {
		--fm-sidebar-w: 240px;
	}

	.fm-showcase {
		grid-template-columns: 1fr minmax(200px, 240px);
		gap: 0.85rem;
	}

	.fm-smart-search .fm-search {
		width: min(360px, 38vw);
	}
}

/* --- Laptop portrait / large tablet landscape (< 1024) --- */
@media (max-width: 1024px) {
	.fm-showcase {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.fm-hero {
		min-height: min(52vh, 420px);
	}

	.fm-promos {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
	}

	.fm-promo {
		min-height: 150px;
	}

	.fm-features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 0;
	}

	.fm-feature:nth-child(2n)::after {
		display: none;
	}

	.fm-feature:nth-child(-n+2) {
		padding-bottom: 0.5rem;
	}

	.fm-smart-search__panel {
		width: min(680px, calc(100vw - var(--fm-sidebar-w) - 2rem));
	}
}

/* --- Tablet (WordPress ≤782px) — off-canvas főmenü --- */
@media (max-width: 782px) {
	:root {
		--fm-sidebar-w: 0px;
	}

	.fm-sidebar {
		transform: translateX(-105%);
		width: min(320px, 88vw);
		max-width: 100%;
		padding-top: env(safe-area-inset-top);
		padding-bottom: env(safe-area-inset-bottom);
		transition: transform 0.3s ease;
		box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
		will-change: transform;
	}

	body.fm-menu-open .fm-sidebar {
		transform: translateX(0);
	}

	.fm-content {
		margin-left: 0;
	}

	.fm-header {
		padding: 0.55rem max(0.85rem, env(safe-area-inset-right)) 0.55rem max(0.85rem, env(safe-area-inset-left));
		top: env(safe-area-inset-top, 0);
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	.fm-header__toggle {
		display: inline-flex;
		min-width: var(--fm-tap);
		min-height: var(--fm-tap);
		flex-shrink: 0;
	}

	.fm-header__contact {
		flex: 1;
		min-width: 0;
		gap: 0.35rem;
	}

	.fm-header__contact-item {
		min-height: var(--fm-tap);
		padding: 0 0.25rem;
	}

	.fm-header__contact-item span {
		display: none;
	}

	.fm-header__actions {
		flex-shrink: 0;
		gap: 0.25rem;
	}

	.fm-header__icon-btn {
		min-width: var(--fm-tap);
		min-height: var(--fm-tap);
	}

	.fm-smart-search {
		position: static;
	}

	.fm-smart-search .fm-search {
		width: min(220px, 36vw);
		min-width: 140px;
	}

	.fm-smart-search__panel {
		position: fixed;
		top: calc(var(--fm-header-h) + env(safe-area-inset-top, 0px) + 0.35rem);
		left: 0.75rem;
		right: 0.75rem;
		width: auto;
		max-height: calc(100dvh - var(--fm-header-h) - 1.5rem);
		z-index: 200;
	}

	.fm-smart-search__inner {
		grid-template-columns: minmax(160px, 0.85fr) 1.25fr;
		max-height: inherit;
	}

	.fm-smart-search__col {
		max-height: inherit;
	}

	.fm-nav__link {
		min-height: var(--fm-tap);
	}

	.fm-card-post {
		grid-template-columns: 1fr;
	}

	.fm-card-post__body {
		padding: 1.15rem;
	}

	.fm-promos {
		grid-template-columns: repeat(3, 1fr);
	}

	.fm-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem 1.5rem;
	}

	.fm-footer__col--map {
		grid-column: 1 / -1;
	}
}

/* --- Small tablet / large phone (< 600) --- */
@media (max-width: 600px) {
	.fm-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.fm-footer__col--map {
		grid-column: auto;
	}

	.fm-footer__map iframe {
		height: 200px;
	}

	.fm-footer__copy {
		font-size: 0.72rem;
	}

	.fm-promos {
		grid-template-columns: 1fr;
	}

	.fm-promo {
		min-height: 140px;
	}

	.fm-features__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.fm-feature {
		padding: 0.25rem 0;
	}

	.fm-feature::after {
		display: none;
	}

	.fm-hero {
		min-height: min(58vh, 380px);
		border-radius: 8px;
	}

	.fm-hero__content {
		padding: 1.35rem 1.1rem 2.6rem;
		max-width: none;
	}

	.fm-hero__title {
		font-size: clamp(1.45rem, 6.5vw, 2rem);
	}

	.fm-hero__text {
		font-size: 0.85rem;
		max-width: none;
	}

	.fm-btn--primary {
		width: 100%;
		justify-content: center;
		min-height: var(--fm-tap);
	}

	.fm-header {
		flex-wrap: wrap;
	}

	.fm-smart-search {
		order: 3;
		flex: 1 1 100%;
		width: 100%;
	}

	.fm-smart-search .fm-search,
	.fm-search {
		min-width: 0;
		width: 100%;
	}

	.fm-smart-search__panel {
		left: 0.5rem;
		right: 0.5rem;
	}

	.fm-smart-search__inner {
		grid-template-columns: 1fr;
	}

	.fm-smart-search__col--side {
		border-right: 0;
		border-bottom: 1px solid rgba(61, 43, 31, 0.08);
		max-height: 40%;
	}

	.fm-smart-search__product {
		flex-wrap: wrap;
	}

	.fm-smart-search__prices,
	.fm-smart-search__price {
		margin-left: auto;
	}

	.fm-page-header__title {
		font-size: clamp(1.35rem, 6vw, 1.85rem);
	}
}

/* --- Mobile (WordPress ≤480px) --- */
@media (max-width: 480px) {
	:root {
		--fm-space: 0.85rem;
	}

	.fm-header__contact {
		display: none;
	}

	.fm-branding__badge {
		width: 100px;
		height: 108px;
	}

	.fm-branding__hex {
		width: 92px;
		height: 100px;
	}

	.fm-sidebar__inner {
		padding: 1rem 0.85rem 6.5rem;
	}

	.fm-features__title {
		font-size: 1.35rem;
	}

	.fm-feature__icon {
		width: 52px;
		height: 58px;
	}

	.fm-feature__icon .fm-icon {
		width: 24px;
		height: 24px;
	}

	.fm-social__link {
		min-width: var(--fm-tap);
		min-height: var(--fm-tap);
	}

	.fm-showcase {
		margin-bottom: 1.5rem;
	}
}

/* --- Very small phones --- */
@media (max-width: 360px) {
	.fm-header__actions {
		gap: 0;
	}

	.fm-search__input {
		font-size: 0.75rem;
		padding-left: 0.65rem;
		padding-right: 0.5rem;
	}
}

/* --- Desktop / PC enhancement (> 1200) --- */
@media (min-width: 1201px) {
	.fm-showcase {
		min-height: 440px;
	}

	.fm-hero {
		min-height: 440px;
	}

	.fm-smart-search .fm-search {
		width: min(440px, 42vw);
	}
}

/* Touch devices: remove hover-dependent transforms that feel laggy */
@media (hover: none) and (pointer: coarse) {
	.fm-feature:hover .fm-feature__icon,
	.woocommerce ul.products li.product:hover {
		transform: none;
	}

	.fm-btn--primary:hover {
		transform: none;
	}
}

/* Landscape phones: keep hero usable */
@media (max-height: 480px) and (orientation: landscape) {
	.fm-hero {
		min-height: 280px;
	}

	.fm-hero__content {
		padding-top: 1rem;
		padding-bottom: 2rem;
	}

	.fm-smart-search__panel {
		max-height: calc(100dvh - 4rem);
	}
}
