/* taoflow-ui-header.css · custom main-site header + slim footer */
body.tf-has-custom-header {
	--tf-header-h: 64px;
	--tf-notice-h: 32px;
}

body.tf-has-custom-header .whb-header,
body.tf-has-custom-header .wd-toolbar,
body.tf-has-custom-header .wd-sticky-nav,
body.tf-has-custom-header .woodmart-sticky-toolbar,
body.tf-has-custom-header .wd-header-mobile-nav {
	display: none !important;
}

.tf-header-notice {
	background: var(--tf-ink);
	color: rgba(242, 231, 207, 0.85);
	font-size: var(--tf-fs-tiny);
	letter-spacing: 0.06em;
	text-align: center;
	padding: 0.45rem 1rem;
	border-bottom: 1px solid rgba(200, 164, 92, 0.18);
}

.tf-site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--tf-ink);
	color: var(--tf-cream);
	border-bottom: 1px solid rgba(200, 164, 92, 0.18);
}

.tf-site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
	min-height: var(--tf-header-h);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	column-gap: 1.25rem;
}

.tf-header__logo {
	display: flex;
	align-items: center;
	justify-self: start;
	grid-column: 1;
}

.tf-header__logo img {
	display: block;
	height: 36px;
	width: auto;
	max-width: 180px;
}

.tf-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	grid-column: 2;
}

.tf-header__menu,
.tf-header-drawer__menu,
.tf-header__sub {
	--list-mb: 0;
	--li-mb: 0;
	--li-pl: 0;
	list-style: none;
}

/* Woodmart base sets margin-bottom: var(--li-mb) on li; kill it so flex align-items stays true. */
.tf-header__menu > li,
.tf-header-drawer__menu > li,
.tf-header__sub > li {
	margin: 0 !important;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
}

.tf-header__menu {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem 1.5rem;
}

.tf-header__menu > li > a,
.tf-header__sub-toggle,
.tf-header__account {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
	color: #f2e7cf;
	text-decoration: none;
	font-size: var(--tf-fs-small);
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.35rem 0;
	font-family: inherit;
	min-height: 2rem;
}

.tf-header__menu > li > a:hover,
.tf-header__sub-toggle:hover,
.tf-header__account:hover,
.tf-header__menu > li > a[aria-current="page"] {
	color: var(--tf-gold);
}

.tf-header__has-sub {
	position: relative;
}

.tf-header__sub {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #1a1714;
	border: 1px solid rgba(200, 164, 92, 0.22);
	box-shadow: var(--tf-shadow-lift);
	z-index: 30;
}

.tf-header__has-sub.is-open .tf-header__sub,
.tf-header__has-sub:hover .tf-header__sub {
	display: block;
}

.tf-header__sub a {
	display: block;
	padding: 0.65rem 1rem;
	color: #f2e7cf;
	text-decoration: none;
}

.tf-header__sub a:hover {
	background: rgba(200, 164, 92, 0.1);
	color: var(--tf-gold);
}

.tf-header__sub-label {
	display: block;
	font-size: var(--tf-fs-small);
}

.tf-header__sub-desc {
	display: block;
	font-size: var(--tf-fs-tiny);
	color: rgba(242, 231, 207, 0.55);
	margin-top: 0.15rem;
}

.tf-header__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.85rem;
	justify-self: end;
	grid-column: 3;
}

/* Menu button sits before logo in markup; keep it in the left column on mobile. */
.tf-header__menu-btn {
	grid-column: 1;
	justify-self: start;
}

.tf-header__search-btn,
.tf-header__menu-btn {
	background: none;
	border: 0;
	color: #f2e7cf;
	cursor: pointer;
	padding: 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tf-header__search-btn:hover,
.tf-header__menu-btn:hover {
	color: var(--tf-gold);
}

.tf-header__menu-btn {
	display: none;
}

.tf-header__menu-icon,
.tf-header__menu-icon::before,
.tf-header__menu-icon::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	position: relative;
}

.tf-header__menu-icon::before,
.tf-header__menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.tf-header__menu-icon::before { top: -6px; }
.tf-header__menu-icon::after { top: 6px; }

.tf-header__cart {
	position: relative;
	color: #f2e7cf;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.tf-header__cart:hover { color: var(--tf-gold); }

.tf-header__cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--tf-cinnabar);
	color: var(--tf-cream);
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}

.tf-header__search {
	border-top: 1px solid rgba(200, 164, 92, 0.18);
	background: #161310;
	padding: 0.75rem 1.25rem 1rem;
}

.tf-header__search-form {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.tf-header__search-input {
	flex: 1 1 auto;
	min-height: 42px;
	padding: 0 0.85rem;
	border: 1px solid rgba(200, 164, 92, 0.28);
	border-radius: var(--tf-radius);
	background: var(--tf-white);
	color: var(--tf-ink);
}

.tf-header__search-submit {
	min-height: 42px;
	padding: 0 1rem;
	border: 0;
	border-radius: var(--tf-radius);
	background: var(--tf-cinnabar);
	color: var(--tf-cream);
	cursor: pointer;
}

.tf-header__search-close,
.tf-header-drawer__close {
	background: none;
	border: 0;
	color: #f2e7cf;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}

.tf-header-drawer[hidden],
.tf-header__search[hidden] {
	display: none !important;
}

.tf-header-drawer {
	position: fixed;
	inset: 0;
	z-index: 400;
}

.tf-header-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 16, 14, 0.55);
}

.tf-header-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	width: min(86vw, 320px);
	height: 100%;
	background: var(--tf-ink);
	color: var(--tf-cream);
	padding: 1.25rem 1rem 2rem;
	overflow: auto;
	border-right: 1px solid rgba(200, 164, 92, 0.18);
}

.tf-header-drawer__menu {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.tf-header-drawer__menu a {
	display: block;
	padding: 0.75rem 0.35rem;
	color: #f2e7cf;
	text-decoration: none;
	border-bottom: 1px solid rgba(200, 164, 92, 0.12);
}

.tf-header-drawer__menu a:hover { color: var(--tf-gold); }

.tf-header-drawer__group-label {
	margin-top: 0.75rem;
	padding: 0.5rem 0.35rem 0.25rem;
	font-size: var(--tf-fs-tiny);
	letter-spacing: 0.12em;
	color: rgba(242, 231, 207, 0.5);
}

html.tf-nav-open,
html.tf-nav-open body {
	overflow: hidden;
}

/* Full-bleed home main (no WoodMart container frame).
   WoodMart .wd-content-layout sets padding-block:40px — that cream strip
   between sticky header and dark hero is not a bar, just this padding. */
body.tf-has-custom-header .tf-main--flush {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	padding-block: 0;
}

body.tf-has-custom-header .tf-main--flush > .tf-home {
	margin: 0;
}

/* Home hero replaces Woodmart page title — hide residual bar under sticky header. */
body.tf-has-custom-header.home .wd-page-title,
body.tf-has-custom-header.home .page-title,
body.tf-has-custom-header.front-page .wd-page-title,
body.tf-has-custom-header.front-page .page-title {
	display: none !important;
}

body.tf-has-custom-header .tf-hero {
	min-height: calc(100vh - var(--tf-header-h) - var(--tf-notice-h));
	display: flex;
	align-items: center;
	padding-top: clamp(56px, 8vw, 96px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

/* Slim footer */
.tf-site-footer {
	background: var(--tf-ink);
	color: rgba(242, 231, 207, 0.78);
	border-top: 1px solid rgba(200, 164, 92, 0.18);
	padding: 2.5rem 1.25rem 2rem;
}

.tf-site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.tf-site-footer__brand {
	display: flex;
	justify-content: center;
	gap: 0.65rem;
	align-items: baseline;
	margin-bottom: 0.85rem;
	color: var(--tf-cream);
}

.tf-site-footer__brand span {
	font-size: var(--tf-fs-small);
	letter-spacing: 0.12em;
	color: rgba(242, 231, 207, 0.65);
}

.tf-site-footer__nav {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
}

.tf-site-footer__nav a {
	color: #f2e7cf;
	text-decoration: none;
	font-size: var(--tf-fs-small);
}

.tf-site-footer__nav a:hover { color: var(--tf-gold); }

.tf-site-footer__copy,
.tf-site-footer__trust {
	margin: 0.35rem 0;
	font-size: var(--tf-fs-tiny);
	letter-spacing: 0.04em;
}

.tf-skip-link.screen-reader-text:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	clip: auto;
	width: auto;
	height: auto;
	padding: 0.5rem 0.75rem;
	background: var(--tf-cream);
	color: var(--tf-ink);
}

@media (max-width: 960px) {
	.tf-header__nav { display: none; }
	.tf-header__account { display: none; }
	.tf-header__menu-btn { display: inline-flex; }
	.tf-site-header__inner { gap: 0.75rem; }
	.tf-header__logo { margin-right: auto; }
	.tf-header__logo img { height: 30px; max-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
	.tf-site-header,
	.tf-header-drawer__panel {
		transition: none !important;
	}
}
