/**
 * GFCH site design tokens + inner-page chrome (purple/gold) + shared components.
 * Aligned with screenshot design and gfch-core dashboard green accents.
 */

:root {
	/* Brand — screenshots + dashboard */
	--gfch-green: #005028;
	--gfch-green-dark: #003d1e;
	--gfch-green-ui: #006719;
	--gfch-gold: #e9b44c;
	--gfch-gold-dark: #d49a2e;
	--gfch-purple: #7d4c8d;
	--gfch-purple-dark: #5e3566;
	--gfch-cream: #faf8f4;
	--gfch-beige: #f9f4ed;
	--gfch-alert: #e35656;
	--gfch-text: #1a1a1a;
	--gfch-muted: #5c5c5c;
	--gfch-white: #ffffff;
	--gfch-link: #c47a1a;

	/* Dashboard slate tokens (auth / forms) */
	--gfch-sl-50: #f8fafc;
	--gfch-sl-100: #f1f5f9;
	--gfch-sl-200: #e2e8f0;
	--gfch-sl-400: #94a3b8;
	--gfch-sl-500: #64748b;
	--gfch-sl-700: #334155;
	--gfch-sl-800: #1e293b;

	--gfch-max: min(1280px, calc(100% - 3rem));
	--gfch-radius: 10px;
	--gfch-r-lg: 12px;
	--gfch-r-xl: 16px;
	--gfch-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--gfch-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html {
	overflow-x: clip;
}

body {
	overflow-x: clip;
	min-width: 0;
}

@media (min-width: 1600px) {
	:root {
		--gfch-max: min(1400px, calc(100% - 5rem));
	}
}

/* Never show numeric “X in stock” messages site-wide (OOS status may remain). */
.stock.in-stock,
p.stock.in-stock,
.woocommerce-variation-availability .stock.in-stock {
	display: none !important;
}

.woocommerce .stock.in-stock {
	display: none !important;
}

/* —— Icon flip (cart / wishlist): icon face → count on hover —— */
.gfch-icon-flip {
	perspective: 700px;
	-webkit-tap-highlight-color: transparent;
}

.gfch-icon-flip__inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.gfch-icon-flip:hover .gfch-icon-flip__inner,
.gfch-icon-flip:focus-visible .gfch-icon-flip__inner {
	transform: rotateY(180deg);
}

.gfch-icon-flip__face {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.gfch-icon-flip__face--front {
	transform: rotateY(0deg);
}

.gfch-icon-flip__face--back {
	transform: rotateY(180deg);
}

/* Count fills the flipped face and stays centered (override badge absolute styles). */
.gfch-icon-flip__face--back .gfch-header__cart-count,
.gfch-icon-flip__face--back .gfch-header__wishlist-count,
.gfch-icon-flip__face--back .gfch-header__cart-count.is-active,
.gfch-icon-flip__face--back .gfch-header__wishlist-count.is-active,
.gfch-icon-flip__face--back .gfch-side-cart-fab__count,
.gfch-icon-flip__face--back .gfch-wishlist-fab__count {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-align: center;
	box-shadow: none !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: none;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.gfch-icon-flip__inner {
		transition: none;
	}

	.gfch-icon-flip:hover .gfch-icon-flip__face--front,
	.gfch-icon-flip:focus-visible .gfch-icon-flip__face--front {
		opacity: 0;
	}

	.gfch-icon-flip:hover .gfch-icon-flip__face--back,
	.gfch-icon-flip:focus-visible .gfch-icon-flip__face--back {
		opacity: 1;
	}

	.gfch-icon-flip__face--back {
		opacity: 0;
		transform: none;
	}

	.gfch-icon-flip:hover .gfch-icon-flip__inner,
	.gfch-icon-flip:focus-visible .gfch-icon-flip__inner {
		transform: none;
	}
}

.gfch-site-body,
.gfch-home-body {
	margin: 0;
	font-family: var(--gfch-font);
	color: var(--gfch-text);
	background: var(--gfch-white);
	-webkit-font-smoothing: antialiased;
}

.gfch-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.gfch-page,
.gfch-home {
	flex: 1;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* —— Top bar —— */
.gfch-topbar--purple {
	background: var(--gfch-purple-dark);
	color: var(--gfch-white);
	font-size: 0.8125rem;
}

.gfch-topbar--purple .gfch-topbar__inner {
	max-width: var(--gfch-max);
	margin: 0 auto;
	padding: 0.45rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

.gfch-topbar--purple .gfch-topbar__phone {
	color: var(--gfch-white);
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.gfch-topbar--purple .gfch-topbar__phone:hover {
	text-decoration: underline;
}

/* —— Purple header —— */
.gfch-header--purple {
	background: var(--gfch-purple);
	border-bottom: 0;
	position: relative;
	z-index: 100;
}

.gfch-header--purple .gfch-header__inner {
	max-width: var(--gfch-max);
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.gfch-header--purple .gfch-header__logo {
	color: var(--gfch-gold);
}

.gfch-header--purple .gfch-header__logo img {
	max-height: 52px;
	width: auto;
	filter: brightness(1.05);
}

.gfch-header--purple .gfch-header__logo-mark {
	color: var(--gfch-gold);
}

.gfch-header--purple .gfch-header__logo-title {
	color: var(--gfch-gold);
	font-weight: 700;
}

.gfch-header--purple .gfch-nav-list a {
	color: var(--gfch-white);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.gfch-header--purple .gfch-nav-list a:hover,
.gfch-header--purple .gfch-nav-list .is-active > a,
.gfch-header--purple .gfch-nav-list .current-menu-item > a {
	color: var(--gfch-gold);
}

.gfch-header--purple .gfch-header__icon-btn {
	color: var(--gfch-white);
}

.gfch-header--purple .gfch-header__icon-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

.gfch-header--purple .gfch-header__menu-toggle span {
	background: var(--gfch-white);
}

.gfch-header--purple .gfch-header__search,
.gfch-mobile-nav--purple {
	background: var(--gfch-purple-dark);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gfch-mobile-nav--purple a {
	color: var(--gfch-white);
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.gfch-header--purple .gfch-header__nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.gfch-header--purple .gfch-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.35rem;
}

.gfch-header--purple .gfch-header__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.gfch-header--purple .gfch-header__icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
	border-radius: 999px;
}

.gfch-header--purple .gfch-header__cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--gfch-gold);
	color: var(--gfch-purple-dark);
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.gfch-header--purple .gfch-header__menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 8px;
}

.gfch-header--purple .gfch-header__menu-toggle span {
	display: block;
	height: 2px;
	border-radius: 2px;
}

.gfch-header--purple .gfch-header__search[hidden],
.gfch-mobile-nav--purple[hidden] {
	display: none !important;
}

.gfch-header--purple .gfch-header__search {
	padding: 0.75rem 1.25rem 1rem;
}

.gfch-mobile-nav--purple {
	padding: 0.75rem 1.25rem 1.25rem;
}

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

.gfch-mobile-nav--purple a {
	display: block;
	padding: 0.65rem 0;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* —— Gold sub-bar (breadcrumb + search) —— */
.gfch-subbar {
	background: var(--gfch-gold);
}

.gfch-subbar__inner {
	max-width: var(--gfch-max);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.gfch-breadcrumbs {
	font-size: 1.02rem;
	color: var(--gfch-green, #005028);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
}

.gfch-breadcrumbs a {
	color: var(--gfch-green, #005028);
	text-decoration: none;
	font-size: inherit;
	font-weight: inherit;
}

.gfch-breadcrumbs a:hover {
	text-decoration: underline;
}

.gfch-breadcrumbs__current {
	font-size: inherit;
	font-weight: 800;
	color: inherit;
}

.gfch-breadcrumbs__sep {
	opacity: 0.55;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.gfch-search-form--subbar {
	max-width: 320px;
	margin-left: auto;
}

.gfch-search-form--subbar button {
	border-radius: 0 999px 999px 0;
	width: 44px;
	padding: 0;
	justify-content: center;
	background: var(--gfch-green);
}

/* Shared search / buttons (used by home + inner) */
.gfch-search-form {
	display: flex;
	width: 100%;
	background: var(--gfch-white);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gfch-search-form input[type="search"] {
	flex: 1;
	border: 0;
	padding: 0.7rem 1.1rem;
	font-size: 0.95rem;
	outline: none;
	background: transparent;
	min-width: 0;
}

.gfch-search-form button {
	border: 0;
	background: var(--gfch-green);
	color: var(--gfch-white);
	padding: 0 1.1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

.gfch-search-form button:hover {
	background: #f7941d;
}

.gfch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.35rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	font-family: inherit;
}

.gfch-btn--primary {
	background: var(--gfch-green);
	color: var(--gfch-white);
}

.gfch-btn--primary:hover {
	background: #f7941d;
	color: var(--gfch-white);
}

.gfch-btn--block {
	width: 100%;
	border-radius: 4px;
}

.gfch-btn--pill {
	border-radius: 999px;
}

.gfch-btn--ghost {
	background: transparent;
	color: var(--gfch-green);
	box-shadow: inset 0 0 0 1.5px rgba(0, 80, 40, 0.28);
}

.gfch-btn--ghost:hover {
	background: #f7941d;
	color: var(--gfch-white);
	box-shadow: none;
}

/* —— Page shell —— */
.gfch-page__inner {
	max-width: var(--gfch-max);
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

body:has(.gfch-preview-wrap) .gfch-page {
	display: flex;
	flex-direction: column;
	background: transparent;
}

body:has(.gfch-preview-wrap) .gfch-page__inner,
body:has(.gfch-preview-wrap) .gfch-page__inner--elementor,
body:has(.gfch-preview-wrap) .gfch-page-article,
body:has(.gfch-preview-wrap) .entry-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

body:has(.gfch-preview-wrap) .gfch-preview-wrap {
	flex: 1 1 auto;
	margin-bottom: 0;
}

.gfch-page__title {
	margin: 0 0 1.5rem;
	color: var(--gfch-green);
	font-size: clamp(1.85rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
}

.gfch-page__content a {
	color: var(--gfch-link);
}

/* —— Footer —— */
.gfch-footer {
	background: var(--gfch-gold);
	margin-top: auto;
	flex: 0 0 auto;
	color: var(--gfch-text);
	padding-left: env(safe-area-inset-left, 0);
	padding-right: env(safe-area-inset-right, 0);
}

.gfch-footer__inner {
	max-width: var(--gfch-max);
	margin: 0 auto;
	padding: 2.5rem 1.25rem 1.75rem;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.2fr 1fr;
	gap: 1.75rem;
	align-items: stretch;
}

.gfch-footer__col {
	min-width: 0;
}

.gfch-footer__brand {
	/* Let sibling columns define row height; logo fills that height. */
	height: 0;
	min-height: 100%;
	display: flex;
	align-items: center;
	align-self: stretch;
}

.gfch-footer__logo {
	display: flex;
	align-items: center;
	align-self: stretch;
	height: 100%;
	max-height: 100%;
	text-decoration: none;
	line-height: 0;
}

.gfch-footer__logo-img {
	display: block;
	width: auto;
	height: 100%;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

.gfch-footer__logo--badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--gfch-white);
	font-weight: 700;
	background: var(--gfch-green);
	padding: 1.25rem 1rem;
	border-radius: 6px;
	text-align: center;
	min-width: 140px;
}

.gfch-footer__logo--badge .gfch-footer__logo-mark {
	color: var(--gfch-gold);
	background: transparent;
	width: auto;
	height: auto;
}

.gfch-footer__logo--badge .gfch-footer__logo-text {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.gfch-footer__heading {
	margin: 0 0 0.85rem;
	font-size: 1.12rem;
	font-weight: 800;
	color: var(--gfch-green);
}

.gfch-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gfch-footer__links a,
.gfch-footer__contact a {
	color: var(--gfch-green-dark, #003d1e);
	text-decoration: none;
	font-size: 1.02rem;
	font-weight: 700;
}

.gfch-footer__links a:hover,
.gfch-footer__links a.is-active,
.gfch-footer__contact a:hover {
	color: var(--gfch-green);
	text-decoration: underline;
}

.gfch-footer__links li {
	margin-bottom: 0.5rem;
}

.gfch-footer__contact p {
	margin: 0 0 0.85rem;
	line-height: 1.55;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--gfch-green-dark, #003d1e);
}

.gfch-footer__contact strong {
	font-weight: 800;
	color: var(--gfch-green);
}

.gfch-footer__follow-text {
	margin: 0 0 0.85rem;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--gfch-green-dark, #003d1e);
}

.gfch-footer__social {
	display: flex;
	gap: 0.65rem;
}

.gfch-footer__social a {
	color: var(--gfch-green-dark, #003d1e);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--gfch-green-dark, #003d1e);
	border-radius: 999px;
}

.gfch-footer__social a:hover {
	color: var(--gfch-green);
	border-color: var(--gfch-green);
}

.gfch-footer__bottom {
	border-top: 1px solid rgba(0, 80, 40, 0.15);
	padding: 0.95rem 1.25rem;
	padding-bottom: max(0.95rem, env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
}

.gfch-footer__bottom p {
	margin: 0;
}

/* Back to top */
.gfch-back-to-top {
	position: fixed;
	right: max(1.25rem, env(safe-area-inset-right, 0px));
	bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
	z-index: 90;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--gfch-green);
	color: var(--gfch-white);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--gfch-shadow-sm);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.gfch-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 1100px) {
	.gfch-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 1.35rem 1.25rem;
	}

	.gfch-footer__brand {
		height: auto;
		min-height: 0;
		grid-column: 1 / -1;
		justify-content: center;
	}

	.gfch-footer__logo {
		height: auto;
		max-height: none;
		align-self: center;
	}

	.gfch-footer__logo-img {
		height: auto;
		max-height: 160px;
		width: auto;
		max-width: min(280px, 100%);
		object-position: center;
	}

	/* Avoid empty cell beside Follow Us on 2-col layouts */
	.gfch-footer__inner > .gfch-footer__col:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 980px) {
	.gfch-footer__inner {
		grid-template-columns: 1fr 1fr;
		padding: 2rem 1.25rem 1.25rem;
		padding-right: max(1.25rem, 3.75rem);
		gap: 1.25rem 1.15rem;
	}

	.gfch-footer__brand {
		height: auto;
		min-height: 0;
		grid-column: 1 / -1;
		justify-content: center;
	}

	.gfch-footer__logo {
		height: auto;
		max-height: none;
		align-self: center;
	}

	.gfch-footer__logo-img {
		height: auto;
		max-height: 155px;
		width: auto;
		max-width: min(270px, 100%);
		object-position: center;
	}

	.gfch-footer__inner > .gfch-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.gfch-footer__bottom {
		padding: 0.8rem 1.25rem;
		padding-right: max(1.25rem, 3.75rem);
		padding-bottom: max(0.8rem, env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 720px) {
	.gfch-header--purple .gfch-header__nav {
		display: none;
	}

	.gfch-header--purple .gfch-header__menu-toggle {
		display: flex;
	}

	.gfch-subbar__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.gfch-search-form--subbar {
		max-width: none;
		margin-left: 0;
	}

	.gfch-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 1.15rem 1rem;
		padding: 1.65rem 1rem 1.1rem;
		padding-right: max(1rem, 3.5rem);
	}

	.gfch-footer__brand {
		grid-column: 1 / -1;
		height: auto;
		min-height: 0;
	}

	.gfch-footer__inner > .gfch-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.gfch-footer__heading {
		font-size: 1.05rem;
		margin-bottom: 0.55rem;
	}

	.gfch-footer__links li {
		margin-bottom: 0.35rem;
	}

	.gfch-footer__contact p {
		margin-bottom: 0.55rem;
	}

	.gfch-footer__follow-text {
		margin-bottom: 0.55rem;
	}

	.gfch-footer__links a,
	.gfch-footer__contact a,
	.gfch-footer__contact p,
	.gfch-footer__follow-text {
		font-size: 0.95rem;
	}

	.gfch-footer__logo-img {
		max-height: 140px;
		max-width: min(250px, 100%);
		object-position: center;
	}

	.gfch-footer__bottom {
		padding: 0.7rem 1rem;
		padding-right: max(1rem, 3.5rem);
		padding-bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
		font-size: 0.88rem;
	}

	.gfch-back-to-top {
		right: max(0.85rem, env(safe-area-inset-right, 0px));
		bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 520px) {
	.gfch-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 1.05rem 0.85rem;
		padding: 1.4rem 0.9rem 0.95rem;
		padding-right: max(0.9rem, 3.35rem);
	}

	.gfch-footer__brand,
	.gfch-footer__inner > .gfch-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.gfch-footer__logo-img {
		max-height: 130px;
		max-width: min(230px, 100%);
		object-position: center;
	}

	.gfch-footer__social a {
		width: 42px;
		height: 42px;
	}

	.gfch-footer__bottom {
		padding: 0.65rem 0.9rem;
		padding-right: max(0.9rem, 3.35rem);
		padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
		font-size: 0.82rem;
		text-align: left;
	}
}
