/**
 * Modern GFCH header — sticky white bar, brand logo, dashboard, cart, account menu.
 */

.gfch-topbar--modern {
	background: var(--gfch-green, #005028);
	color: #fff;
	font-size: 0.9375rem;
	width: 100%;
	box-sizing: border-box;
}

.gfch-topbar--modern .gfch-topbar__inner {
	max-width: var(--gfch-max, 1180px);
	margin: 0 auto;
	padding: 0.65rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.25rem;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
}

.gfch-topbar--modern .gfch-topbar__hours {
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0.98;
}

.gfch-topbar--modern .gfch-topbar__phone {
	color: #fff;
	text-decoration: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.gfch-topbar--modern .gfch-topbar__phone-icon {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

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

/* —— Main header —— */
.gfch-header--modern {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	border-bottom: 0;
	box-shadow: none;
	width: 100%;
	box-sizing: border-box;
}

.gfch-header--modern.is-scrolled {
	box-shadow: none;
}

.gfch-header--modern .gfch-header__inner {
	max-width: var(--gfch-max, 1180px);
	margin: 0 auto;
	padding: 1.1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.15rem 1.75rem;
	min-height: 76px;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.gfch-header--modern .gfch-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 1;
	min-width: 0;
	text-decoration: none;
	line-height: 0;
}

.gfch-header--modern .gfch-header__logo img,
.gfch-header--modern .gfch-logo-img,
.gfch-header--modern .custom-logo {
	display: block;
	max-height: 54px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gfch-header--modern .gfch-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.gfch-header--modern .gfch-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	white-space: nowrap;
}

.gfch-header--modern .gfch-nav-list > li {
	display: flex;
	min-width: 0;
}

.gfch-header--modern .gfch-nav-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.85rem;
	border: 0;
	border-radius: 999px;
	color: var(--gfch-green, #005028);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.98rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.gfch-header--modern .gfch-nav-list a:hover,
.gfch-header--modern .gfch-nav-list .is-active > a,
.gfch-header--modern .gfch-nav-list .current-menu-item > a {
	background: #f7941d;
	color: #fff;
}

.gfch-header--modern .gfch-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	flex-shrink: 0;
	min-width: 0;
	overflow: visible;
}

.gfch-header--modern .gfch-header__icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--gfch-green, #005028);
	cursor: pointer;
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
	overflow: hidden;
}

.gfch-header--modern .gfch-header__icon-btn svg {
	width: 24px;
	height: 24px;
	display: block;
}

.gfch-header--modern .gfch-header__icon-btn:hover,
.gfch-header--modern .gfch-header__icon-btn:focus-visible {
	background: #f7941d;
	color: #fff;
}

.gfch-header--modern .gfch-header__cart-count,
.gfch-header--modern .gfch-header__wishlist-count {
	/* Count lives on the flip back-face; no badge overlay. */
	position: static;
	opacity: 1;
	transform: none;
}

.gfch-header--modern .gfch-header__dashboard {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: var(--gfch-green, #005028);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.98rem;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gfch-header--modern .gfch-header__dashboard svg {
	width: 18px;
	height: 18px;
}

.gfch-header--modern .gfch-header__dashboard.is-active {
	background: var(--gfch-green, #005028);
	color: #fff;
}

.gfch-header--modern .gfch-header__dashboard:hover,
.gfch-header--modern .gfch-header__dashboard.is-active:hover {
	background: #fff;
	color: var(--gfch-green, #005028);
	border: 0;
	box-shadow: none;
}

.gfch-header--modern .gfch-header__dashboard--ghost {
	background: transparent;
	color: var(--gfch-green, #005028);
	box-shadow: inset 0 0 0 1.5px rgba(0, 80, 40, 0.25);
}

.gfch-header--modern .gfch-header__dashboard--ghost:hover {
	background: var(--gfch-green, #005028);
	color: #fff;
	box-shadow: none;
}

.gfch-header--modern .gfch-header__menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 10px;
	border-radius: 999px;
}

.gfch-header--modern .gfch-header__menu-toggle span {
	display: block;
	height: 2px;
	background: var(--gfch-green, #005028);
	border-radius: 2px;
}

.gfch-header--modern .gfch-header__search {
	border-top: 1px solid rgba(0, 80, 40, 0.08);
	padding: 0.85rem 1.25rem 1rem;
	background: #fff;
}

.gfch-header--modern .gfch-search-form {
	display: flex;
	max-width: 520px;
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 80, 40, 0.12);
}

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

.gfch-header--modern .gfch-search-form button {
	border: 0;
	background: var(--gfch-green, #005028);
	color: #fff;
	padding: 0 1.15rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

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

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

.gfch-header--modern .gfch-mobile-nav {
	border-top: 1px solid rgba(0, 80, 40, 0.08);
	background: #faf8f4;
	padding: 0.75rem 1.25rem 1.25rem;
	max-height: min(70vh, 32rem);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

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

.gfch-header--modern .gfch-mobile-nav a {
	display: block;
	padding: 0.85rem 0.15rem;
	color: var(--gfch-green, #005028);
	font-weight: 700;
	font-size: 1.02rem;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 80, 40, 0.08);
}

.gfch-header--modern .gfch-mobile-nav a:hover {
	color: #f7941d;
}

.gfch-header--modern .gfch-mobile-nav .gfch-mobile-nav__list > li:last-child > a {
	border-bottom: 0;
}

.gfch-mobile-nav__account {
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 80, 40, 0.1);
}

.gfch-mobile-nav__auth {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.gfch-mobile-nav__dashboard {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.45rem 0.75rem !important;
	min-height: 2.25rem;
	border-radius: 999px;
	background: var(--gfch-green, #005028);
	color: #fff !important;
	border: 0 !important;
	font-weight: 700 !important;
	font-size: 0.88rem !important;
	text-align: center;
}

.gfch-mobile-nav__dashboard:hover {
	background: #fff !important;
	color: var(--gfch-green, #005028) !important;
	border: 0 !important;
	box-shadow: none !important;
}

.gfch-mobile-nav__register {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.45rem 0.75rem !important;
	min-height: 2.25rem;
	border-radius: 999px;
	background: transparent !important;
	color: var(--gfch-green, #005028) !important;
	border: 1.5px solid rgba(0, 80, 40, 0.28) !important;
	font-weight: 700 !important;
	font-size: 0.88rem !important;
	text-align: center;
}

.gfch-mobile-nav__register:hover {
	background: #f7941d !important;
	border-color: #f7941d !important;
	color: #fff !important;
}

.gfch-mobile-nav__account .gfch-account-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* —— Account dropdown —— */
.gfch-account {
	position: relative;
}

.gfch-account__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.25rem 0.45rem 0.25rem 0.25rem;
	border: 1px solid rgba(0, 80, 40, 0.12);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	color: var(--gfch-green, #005028);
	font: inherit;
	max-width: 200px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gfch-account__toggle:hover,
.gfch-account__toggle[aria-expanded="true"] {
	border-color: rgba(0, 80, 40, 0.28);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.gfch-account__avatar {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: linear-gradient(145deg, #f7941d, #e07a1a);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.gfch-account__label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	line-height: 1.15;
	text-align: left;
}

.gfch-account__name {
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 110px;
}

.gfch-account__meta {
	font-size: 0.68rem;
	color: #64748b;
	font-weight: 500;
}

.gfch-account__chevron {
	flex-shrink: 0;
	opacity: 0.65;
	transition: transform 0.15s ease;
}

.gfch-account__toggle[aria-expanded="true"] .gfch-account__chevron {
	transform: rotate(180deg);
}

.gfch-account__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.55rem);
	width: min(280px, calc(100vw - 2rem));
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
	padding: 0.65rem;
	z-index: 220;
}

.gfch-account__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.35rem 0.5rem 0.65rem;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 0.35rem;
}

.gfch-account__panel-title {
	font-weight: 700;
	font-size: 0.85rem;
	color: #0f172a;
}

.gfch-account__panel-dash {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gfch-green, #005028);
	text-decoration: none;
}

.gfch-account__panel-dash:hover {
	text-decoration: underline;
}

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

.gfch-account-menu a {
	display: block;
	padding: 0.65rem 0.7rem;
	border-radius: 10px;
	color: #334155;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.gfch-account-menu a:hover {
	background: #f8fafc;
	color: var(--gfch-green, #005028);
}

.gfch-account-menu .is-logout > a,
.gfch-account-menu .menu-item-logout > a {
	color: #b91c1c;
}

.gfch-account-menu .is-logout > a:hover,
.gfch-account-menu .menu-item-logout > a:hover {
	background: #fff1f2;
	color: #991b1b;
}

/* —— Sub-bar —— */
.gfch-subbar--modern {
	background: var(--gfch-gold, #e9b44c);
}

.gfch-subbar--modern .gfch-subbar__inner {
	max-width: var(--gfch-max, 1180px);
	margin: 0 auto;
	padding: 0.7rem 1.25rem;
	box-sizing: border-box;
	width: 100%;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
	.gfch-header--modern .gfch-nav-list a {
		padding: 0.5rem 0.65rem;
		font-size: 0.92rem;
	}

	.gfch-header--modern .gfch-header__dashboard span {
		display: none;
	}

	.gfch-header--modern .gfch-header__dashboard {
		padding: 0;
		width: 48px;
		height: 48px;
		justify-content: center;
	}

	.gfch-header--modern .gfch-account__label {
		display: none;
	}
}

@media (max-width: 860px) {
	.gfch-topbar--modern {
		font-size: 0.8125rem;
		padding-left: env(safe-area-inset-left, 0);
		padding-right: env(safe-area-inset-right, 0);
	}

	.gfch-topbar--modern .gfch-topbar__inner {
		padding: 0.55rem 1rem;
		gap: 0.45rem 1rem;
		align-items: center;
		justify-content: space-between;
	}

	.gfch-topbar--modern .gfch-topbar__hours {
		flex: 1 1 auto;
		min-width: 0;
		line-height: 1.25;
		font-size: 0.78rem;
		white-space: nowrap;
	}

	.gfch-topbar--modern .gfch-topbar__phone {
		flex: 0 1 auto;
		max-width: 100%;
		font-size: inherit;
		font-weight: 700;
		min-height: 2rem;
	}

	.gfch-header--modern {
		padding-left: env(safe-area-inset-left, 0);
		padding-right: env(safe-area-inset-right, 0);
	}

	.gfch-header--modern .gfch-header__nav {
		display: none;
	}

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

	.gfch-header--modern .gfch-header__dashboard--ghost {
		display: none;
	}

	.gfch-header--modern .gfch-header__inner {
		padding: 0.8rem 1rem;
		min-height: 70px;
		gap: 0.65rem;
		justify-content: space-between;
	}

	.gfch-header--modern .gfch-header__logo {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
	}

	.gfch-header--modern .gfch-header__logo img,
	.gfch-header--modern .gfch-logo-img,
	.gfch-header--modern .custom-logo {
		max-height: 42px;
		max-width: min(100%, 200px);
		width: auto;
		height: auto;
		object-fit: contain;
	}

	.gfch-header--modern .gfch-header__actions {
		flex: 0 0 auto;
		gap: 0.2rem;
		margin-left: 0;
	}

	.gfch-header--modern .gfch-header__icon-btn,
	.gfch-header--modern .gfch-header__menu-toggle,
	.gfch-header--modern .gfch-header__dashboard {
		width: 42px;
		height: 42px;
	}

	.gfch-header--modern .gfch-header__icon-btn svg {
		width: 22px;
		height: 22px;
	}

	.gfch-header--modern .gfch-header__search,
	.gfch-header--modern .gfch-mobile-nav {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.gfch-mobile-nav__dashboard,
	.gfch-mobile-nav__register {
		width: auto;
		justify-content: center;
		min-height: 2.2rem;
		padding: 0.4rem 0.7rem !important;
		font-size: 0.86rem !important;
	}
}

@media (max-width: 640px) {
	.gfch-topbar--modern .gfch-topbar__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 0.55rem 0.9rem;
		gap: 0.35rem;
	}

	.gfch-topbar--modern .gfch-topbar__hours {
		flex: none;
		width: 100%;
		font-size: clamp(0.62rem, 3.1vw, 0.76rem);
		line-height: 1.25;
		white-space: nowrap;
	}

	.gfch-topbar--modern .gfch-topbar__phone {
		align-self: stretch;
		justify-content: flex-start;
		font-size: inherit;
		font-weight: 700;
		padding: 0.2rem 0 0.05rem;
	}
}

@media (max-width: 520px) {
	.gfch-topbar--modern .gfch-topbar__inner {
		padding: 0.55rem 0.8rem;
	}

	.gfch-header--modern .gfch-header__inner {
		padding: 0.65rem 0.75rem;
		min-height: 62px;
		gap: 0.45rem;
	}

	.gfch-header--modern .gfch-header__logo img,
	.gfch-header--modern .gfch-logo-img,
	.gfch-header--modern .custom-logo {
		max-height: 36px;
		max-width: min(100%, 170px);
	}

	.gfch-header--modern .gfch-header__icon-btn,
	.gfch-header--modern .gfch-header__menu-toggle,
	.gfch-header--modern .gfch-header__dashboard {
		width: 40px;
		height: 40px;
	}

	.gfch-header--modern .gfch-header__icon-btn svg {
		width: 20px;
		height: 20px;
	}

	.gfch-header--modern .gfch-header__search,
	.gfch-header--modern .gfch-mobile-nav {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.gfch-subbar--modern .gfch-subbar__inner {
		padding: 0.55rem 0.75rem;
	}

	.gfch-breadcrumbs {
		font-size: 0.82rem;
		line-height: 1.4;
		flex-wrap: wrap;
	}
}

@media (max-width: 380px) {
	.gfch-header--modern .gfch-header__inner {
		padding: 0.55rem 0.5rem;
		gap: 0.25rem;
	}

	.gfch-header--modern .gfch-header__logo img,
	.gfch-header--modern .gfch-logo-img,
	.gfch-header--modern .custom-logo {
		max-height: 32px;
		max-width: min(100%, 140px);
	}

	.gfch-header--modern .gfch-header__icon-btn,
	.gfch-header--modern .gfch-header__menu-toggle,
	.gfch-header--modern .gfch-header__dashboard {
		width: 36px;
		height: 36px;
	}

	.gfch-header--modern .gfch-header__actions {
		gap: 0;
	}

	.gfch-topbar--modern .gfch-topbar__phone {
		font-size: inherit;
		font-weight: 700;
		gap: 0.35rem;
	}
}
