/**
 * FlexMart Header Manager — Frontend Styles
 *
 * Every color/size value reads from a CSS custom property injected
 * inline per-request from the admin's Settings (see
 * FHM_Assets::enqueue_frontend()), so the whole header re-themes from
 * one settings save with no CSS edits.
 */

:root {
	--fhm-height: 72px;
	--fhm-menu-width: 340px;
	--fhm-bg: #f8fafc;
	--fhm-text: #111827;
	--fhm-accent: #2563eb;
	--fhm-logo-w: 140px;
	--fhm-logo-h: 40px;
	--fhm-danger: #dc2626;
	--fhm-radius-pill: 999px;
	--fhm-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
	--fhm-shadow-md: 0 14px 30px rgba(15, 23, 42, 0.16);
	--fhm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fhm-header,
.fhm-header *,
.fhm-menu-panel,
.fhm-menu-panel *,
.fhm-search-overlay,
.fhm-search-overlay *,
.fhm-logout-confirm,
.fhm-logout-confirm * {
	box-sizing: border-box;
}

/* ==========================================================================
   Header shell
   ========================================================================== */

.fhm-header {
	position: relative;
	width: 100%;
	height: var(--fhm-height);
	background: var(--fhm-bg);
	font-family: var(--fhm-font);
	z-index: 9999;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/**
 * Root cause of "Sticky Header stopped working": position: sticky is
 * silently disabled the moment ANY ancestor element — anywhere between
 * the header and the viewport, including <body> or <html> — has
 * overflow-x/overflow-y set to anything other than "visible", or has a
 * transform/filter/will-change applied. This is an extremely common
 * thing for a theme, a caching plugin, or an unrelated CSS snippet to
 * do (a very typical example: a global "fix" for mobile horizontal
 * scroll that sets overflow-x: hidden on <body>) — and since it's
 * something entirely outside this plugin's own markup, no amount of
 * z-index, positioning, or !important inside this plugin could ever
 * reliably prevent it happening again from some unrelated change
 * elsewhere on the site, now or in the future.
 *
 * The fix: don't depend on position: sticky's ancestor-sensitive
 * behavior at all. position: fixed is anchored to the viewport
 * unconditionally — it is NOT affected by an ancestor's overflow
 * property, which is the entire class of bug this is defending
 * against. Since this header is already the very first thing on every
 * page, a permanently fixed header combined with a spacer element of
 * the same height (added right after it in templates/frontend/
 * header.php, only when this setting is enabled) produces an
 * end result completely indistinguishable from position: sticky for
 * this specific case — there's nothing "above" the header on the page
 * for it to visibly detach from before locking to the top, so the two
 * approaches are behaviorally identical here, just with fixed being
 * the genuinely robust one.
 */
.fhm-header--sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.fhm-header-spacer {
	height: var(--fhm-height);
}

body.admin-bar .fhm-header--sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .fhm-header--sticky {
		top: 46px;
	}
}

.fhm-header--glass {
	background: color-mix( in srgb, var(--fhm-bg) 86%, transparent );
}

.fhm-header--blur {
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}

.fhm-header--shadow.is-scrolled {
	box-shadow: var(--fhm-shadow-md);
}

.fhm-header {
	transition: box-shadow 0.25s ease;
}

.fhm-header__inner {
	max-width: 1280px;
	height: 100%;
	margin: 0 auto;
	padding: 0 clamp(10px, 3.5vw, 16px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(6px, 2.5vw, 12px);
}

@media (min-width: 900px) {
	.fhm-header__inner {
		padding: 0 32px;
		gap: 12px;
	}
}

/* ==========================================================================
   Logo
   ========================================================================== */

.fhm-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none !important;
}

.fhm-logo__img {
	width: var(--fhm-logo-w);
	height: var(--fhm-logo-h);
	object-fit: contain;
}

@media (max-width: 639px) {
	.fhm-logo__img {
		width: clamp(72px, 24vw, var(--fhm-logo-w));
	}
}

.fhm-logo__img--mobile {
	display: block;
}

.fhm-logo__img--desktop {
	display: none;
}

@media (min-width: 640px) {
	.fhm-logo__img--mobile {
		display: none;
	}

	.fhm-logo__img--desktop {
		display: block;
	}
}

.fhm-logo__text {
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fhm-accent) !important;
}

@media (min-width: 900px) {
	.fhm-logo__text {
		font-size: 1.55rem;
	}
}

/* ==========================================================================
   Center / Right
   ========================================================================== */

.fhm-header__center {
	flex: 1;
	display: flex;
	justify-content: center;
}

.fhm-header__right {
	display: flex;
	align-items: center;
	gap: clamp(3px, 1.5vw, 6px);
	flex-shrink: 0;
}

@media (min-width: 900px) {
	.fhm-header__right {
		gap: 8px;
	}
}

.fhm-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(34px, 9vw, 38px);
	height: clamp(34px, 9vw, 38px);
	border-radius: 50%;
	border: none;
	background: none;
	color: var(--fhm-text);
	cursor: pointer;
	position: relative;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.15s ease;
	flex-shrink: 0;
}

@media (min-width: 900px) {
	.fhm-icon-btn {
		width: 42px;
		height: 42px;
	}
}

.fhm-icon-btn:hover {
	background: color-mix( in srgb, var(--fhm-accent) 10%, transparent );
}

.fhm-icon-btn:active {
	transform: scale(0.93);
}

/* SVG rendering fix: many themes (including Kadence) apply a global icon
   reset such as "svg{fill:currentColor}", sometimes !important — which
   would silently override this file's fill="none" stroke="currentColor"
   icons. A solid-shape icon (the account silhouette, the cart body)
   still looks roughly right even filled solid, but a pure line-art icon
   (the search magnifying glass, the hamburger's three bars) has zero
   fillable area and renders as nothing — a magnifying glass loses its
   handle and keeps only a filled dot for the lens, the hamburger's bars
   vanish outright. Deliberately broad — every <svg> anywhere inside
   these three containers, not narrowly scoped to specific sub-classes —
   so no icon (including ones not yet visible in every state, like the
   wallet pill or menu-list icons) can slip through this same failure
   mode. Scoped to these unique IDs specifically so it wins even against
   a competing !important rule, since ID-scoped selectors are very hard
   for a generic theme-wide class rule to out-rank. */
#fhm-header svg,
#fhm-menu-panel svg,
#fhm-search-overlay svg,
#fhm-logout-confirm svg {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2px;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The WhatsApp glyph is a genuinely solid icon by design — restoring
   the line-art defaults above would hollow it out incorrectly. */
#fhm-menu-panel .fhm-menu-footer__btn--whatsapp svg {
	fill: currentColor !important;
	stroke: none !important;
}

/* search and menu are fill-based icons (see the comment in
   class-fhm-icons.php for why) — this exception must out-specificity
   the broad #fhm-header svg rule above (two IDs beat one), or that
   rule would force fill:none back onto them and hollow them out
   exactly like the bug it's meant to prevent. */
#fhm-header #fhm-search-trigger svg,
#fhm-header #fhm-menu-trigger svg {
	fill: currentColor !important;
	stroke: none !important;
}

.fhm-icon-btn svg {
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	flex-shrink: 0;
}

@media (min-width: 900px) {
	.fhm-icon-btn svg {
		width: 24px;
		height: 24px;
		min-width: 24px;
		min-height: 24px;
	}
}

/* ==========================================================================
   Wallet pill
   ========================================================================== */

.fhm-wallet-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: var(--fhm-radius-pill);
	background: color-mix( in srgb, var(--fhm-accent) 10%, transparent );
	color: var(--fhm-accent) !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.85rem;
	white-space: nowrap;
	transition: background-color 0.2s ease;
	flex-shrink: 0;
}

.fhm-wallet-pill:hover {
	background: color-mix( in srgb, var(--fhm-accent) 18%, transparent );
}

.fhm-wallet-pill__icon {
	display: flex;
	flex-shrink: 0;
}

.fhm-wallet-pill__icon svg {
	width: 16px;
	height: 16px;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2px;
}

.fhm-wallet-pill__amount .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

@media (max-width: 480px) {
	.fhm-wallet-pill span:not(.fhm-wallet-pill__icon) {
		display: none;
	}

	.fhm-wallet-pill {
		width: clamp(34px, 9vw, 38px);
		height: clamp(34px, 9vw, 38px);
		padding: 0;
		justify-content: center;
		gap: 0;
	}
}

/* ==========================================================================
   Cart badge
   ========================================================================== */

.fhm-cart-badge {
	position: absolute;
	top: 1px;
	right: 1px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: var(--fhm-radius-pill);
	background: var(--fhm-danger);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	border: 2px solid var(--fhm-bg);
	transition: transform 0.2s ease;
}

.fhm-cart-badge.is-hidden {
	display: none;
}

.fhm-cart-badge.fhm-bump {
	animation: fhm-badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fhm-cart-btn.fhm-shake {
	animation: fhm-cart-shake 0.5s ease;
}

@keyframes fhm-badge-pop {
	0% { transform: scale(1); }
	35% { transform: scale(1.55); }
	65% { transform: scale(0.9); }
	100% { transform: scale(1); }
}

@keyframes fhm-cart-shake {
	0%, 100% { transform: translateX(0) rotate(0); }
	20% { transform: translateX(-2px) rotate(-8deg); }
	40% { transform: translateX(2px) rotate(8deg); }
	60% { transform: translateX(-2px) rotate(-5deg); }
	80% { transform: translateX(2px) rotate(5deg); }
}

/* ==========================================================================
   Slide-out menu
   ========================================================================== */

.fhm-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(15, 23, 42, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fhm-menu-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.fhm-menu-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 86%;
	max-width: var(--fhm-menu-width);
	background: #fff;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: -8px 0 30px rgba(15, 23, 42, 0.15);
	font-family: var(--fhm-font);
	color: var(--fhm-text);
}

.fhm-menu-panel.is-open {
	transform: translateX(0);
}

.fhm-menu-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.fhm-menu-top__title {
	font-weight: 800;
	font-size: 1.1rem;
}

.fhm-menu-close {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #f8fafc;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.fhm-menu-close:hover {
	background: #e5e7eb;
}

.fhm-menu-close svg {
	width: 16px;
	height: 16px;
}

.fhm-menu-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

/* Logged-in user card */

.fhm-menu-user {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	margin-bottom: 18px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--fhm-accent) 6%, transparent), color-mix(in srgb, var(--fhm-accent) 2%, transparent));
	border: 1px solid color-mix(in srgb, var(--fhm-accent) 12%, transparent);
	border-radius: 16px;
}

.fhm-menu-user__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	background: #f1f5f9;
	flex-shrink: 0;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.fhm-menu-user__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.fhm-menu-user__name {
	font-weight: 700;
	font-size: 1rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fhm-menu-user__wallet {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--fhm-accent);
}

.fhm-menu-dashboard-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: 12px;
	background: var(--fhm-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 20px;
}

.fhm-menu-dashboard-btn svg {
	width: 16px;
	height: 16px;
}

/* Guest actions — sits where Logout sits for logged-in users */

.fhm-menu-guest-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

.fhm-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 1;
	padding: 11px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.86rem;
	text-decoration: none !important;
	border: 2px solid transparent;
	cursor: pointer;
}

.fhm-btn svg {
	width: 15px;
	height: 15px;
}

.fhm-btn--primary {
	background: var(--fhm-accent);
	color: #fff !important;
}

.fhm-btn--outline {
	background: transparent;
	border-color: #e5e7eb;
	color: var(--fhm-text) !important;
}

.fhm-btn--danger {
	background: var(--fhm-danger);
	color: #fff !important;
}

/* Menu links */

.fhm-menu-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.fhm-menu-list a {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 13px 12px;
	border-radius: 12px;
	color: var(--fhm-text) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.fhm-menu-list a:hover {
	background: color-mix( in srgb, var(--fhm-accent) 7%, transparent );
	color: var(--fhm-accent) !important;
}

.fhm-menu-list a:hover .fhm-menu-list__icon {
	transform: scale(1.08);
}

.fhm-menu-list a:active {
	background: color-mix( in srgb, var(--fhm-accent) 14%, transparent );
	transform: scale(0.98);
}

.fhm-menu-list__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--fhm-accent);
	transition: transform 0.18s ease;
}

.fhm-menu-list__icon svg {
	width: 18px;
	height: 18px;
}

/* Menu Groups */

.fhm-menu-group {
	margin-bottom: 6px;
}

.fhm-menu-group__heading {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 10px 12px 8px;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fhm-accent);
	background: none;
	border: none;
	text-align: left;
	cursor: default;
}

.fhm-menu-group__heading--toggle {
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.15s ease;
}

.fhm-menu-group__heading--toggle:hover {
	background: color-mix( in srgb, var(--fhm-accent) 6%, transparent );
}

.fhm-menu-group__chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.fhm-menu-group__chevron svg {
	width: 12px;
	height: 12px;
}

.fhm-menu-group--collapsible .fhm-menu-group__heading--toggle .fhm-menu-group__chevron {
	transform: rotate(90deg);
}

.fhm-menu-group--collapsible.is-collapsed .fhm-menu-group__heading--toggle .fhm-menu-group__chevron {
	transform: rotate(0deg);
}

.fhm-menu-group__list-wrap {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.22s ease;
}

.fhm-menu-group__list-wrap > .fhm-menu-list {
	overflow: hidden;
	min-height: 0;
}

.fhm-menu-group--collapsible.is-collapsed .fhm-menu-group__list-wrap {
	grid-template-rows: 0fr;
}

/* Logout */

.fhm-logout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: 12px;
	background: #fef2f2;
	color: var(--fhm-danger);
	border: none;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	margin-bottom: 18px;
}

.fhm-logout-btn:hover {
	background: #fee2e2;
}

.fhm-logout-btn svg {
	width: 16px;
	height: 16px;
}

/* Menu footer contact */

.fhm-menu-footer {
	padding-top: 18px;
	border-top: 1px solid #e5e7eb;
}

.fhm-menu-footer__heading {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.fhm-menu-footer__row {
	display: flex;
	gap: 10px;
}

.fhm-menu-footer__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f8fafc;
	color: var(--fhm-text) !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.fhm-menu-footer__btn:hover {
	background: var(--fhm-accent);
	color: #fff !important;
	transform: translateY(-2px);
}

.fhm-menu-footer__btn svg {
	width: 17px;
	height: 17px;
}

.fhm-menu-footer__btn--whatsapp {
	background: rgba(37, 211, 102, 0.12);
	color: #25d366 !important;
}

.fhm-menu-footer__btn--whatsapp:hover {
	background: #25d366;
	color: #fff !important;
}

/* ==========================================================================
   Logout confirmation
   ========================================================================== */

.fhm-logout-confirm {
	position: fixed;
	inset: 0;
	z-index: 10003;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	font-family: var(--fhm-font);
}

.fhm-logout-confirm.is-open {
	display: flex;
}

.fhm-logout-confirm__box {
	background: #fff;
	border-radius: 20px;
	box-shadow: var(--fhm-shadow-md);
	padding: 26px;
	max-width: 360px;
	width: 100%;
	text-align: center;
	animation: fhm-modal-in 0.16s ease;
}

@keyframes fhm-modal-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.fhm-logout-confirm__box h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
	color: var(--fhm-text);
}

.fhm-logout-confirm__box p {
	color: #6b7280;
	font-size: 0.9rem;
	margin: 0 0 20px;
}

.fhm-logout-confirm__actions {
	display: flex;
	gap: 10px;
}

/* ==========================================================================
   Search overlay
   ========================================================================== */

.fhm-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 10002;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 8vh 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	font-family: var(--fhm-font);
}

.fhm-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.fhm-search-panel {
	width: 100%;
	max-width: 600px;
	background: #fff;
	border-radius: 20px;
	box-shadow: var(--fhm-shadow-md);
	padding: 20px;
	transform: translateY(-16px) scale(0.98);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.fhm-search-overlay.is-open .fhm-search-panel {
	transform: translateY(0) scale(1);
}

.fhm-search-input-row {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid #e5e7eb;
	border-radius: var(--fhm-radius-pill);
	padding: 10px 18px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fhm-search-input-row:focus-within {
	border-color: var(--fhm-accent);
	box-shadow: 0 0 0 3px color-mix( in srgb, var(--fhm-accent) 14%, transparent );
}

.fhm-search-input-row svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #6b7280;
}

.fhm-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1rem;
	font-family: var(--fhm-font);
	background: transparent;
	color: var(--fhm-text);
}

.fhm-search-close {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #f8fafc;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.fhm-search-close:hover {
	background: #e5e7eb;
}

.fhm-search-close svg {
	width: 16px;
	height: 16px;
}

.fhm-search-results {
	margin-top: 14px;
	max-height: 56vh;
	overflow-y: auto;
}

.fhm-search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 14px;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.fhm-search-result:hover {
	background: #f8fafc;
}

.fhm-search-result img {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f8fafc;
}

.fhm-search-result-name {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--fhm-text);
	line-height: 1.3;
}

.fhm-search-result-price {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--fhm-accent);
	margin-top: 2px;
}

.fhm-search-empty,
.fhm-search-hint {
	text-align: center;
	color: #6b7280;
	font-size: 0.85rem;
	padding: 24px 8px;
}

@media (max-width: 480px) {
	.fhm-search-panel {
		padding: 16px;
		border-radius: 16px;
	}

	.fhm-search-overlay {
		padding: 6vh 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fhm-header,
	.fhm-menu-panel,
	.fhm-menu-backdrop,
	.fhm-search-overlay,
	.fhm-search-panel,
	.fhm-cart-badge,
	.fhm-icon-btn {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}

/* ==========================================================================
   Add-to-cart toast notifications
   ========================================================================== */

.fhm-toast-container {
	position: fixed;
	top: calc(var(--fhm-height) + 14px);
	right: 16px;
	z-index: 10004;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	max-width: calc(100vw - 32px);
}

body.admin-bar .fhm-toast-container {
	top: calc(var(--fhm-height) + 32px + 14px);
}

.fhm-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--fhm-shadow-md);
	font-family: var(--fhm-font);
	font-size: 0.88rem;
	font-weight: 600;
	color: #111827;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: auto;
	max-width: 360px;
}

.fhm-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.fhm-toast.is-leaving {
	opacity: 0;
	transform: translateY(-8px);
}

.fhm-toast__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	flex-shrink: 0;
}

.fhm-toast__icon svg {
	width: 16px;
	height: 16px;
}

.fhm-toast--success .fhm-toast__icon {
	background: #dcfce7;
	color: #16a34a;
}

.fhm-toast--error .fhm-toast__icon {
	background: #fee2e2;
	color: #dc2626;
}

.fhm-toast__message {
	line-height: 1.35;
}

@media (max-width: 480px) {
	.fhm-toast-container {
		left: 16px;
		right: 16px;
		max-width: none;
	}

	.fhm-toast {
		max-width: none;
	}
}
