/* Header og footer (kg-header-footer). Alt er afgrænset til .kghf, så temaets stile ikke trækker igennem. */

.kghf,
.kghf *,
.kghf *::before,
.kghf *::after {
	box-sizing: border-box;
}

.kghf {
	color: #141414;
	font-family: inherit;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
}

.kghf a,
.kghf a:visited {
	color: inherit;
	text-decoration: none;
}

.kghf a:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kghf a:focus-visible,
.kghf button:focus-visible {
	outline: 2px solid #141414;
	outline-offset: 2px;
}

.kghf ul,
.kghf ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kghf li {
	margin: 0;
	padding: 0;
}

.kghf p,
.kghf dl,
.kghf dd {
	margin: 0;
}

.kghf button {
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-height: 0;
}

.kghf .kghf-ico {
	display: block;
	flex: none;
}

/* Temaets og Elementors globale knapfarver ved hover/fokus må ikke slå igennem. */
.kghf .kghf-burger:hover,
.kghf .kghf-burger:focus,
.kghf .kghf-drawer__close:hover,
.kghf .kghf-drawer__close:focus,
.kghf .kghf-acc:focus {
	background: transparent;
	color: #141414;
	border-color: transparent;
	box-shadow: none;
}

.kghf .kghf-acc:hover {
	background: #FAF9F7;
	color: #141414;
	box-shadow: none;
}

.kghf .kghf-search__btn:hover,
.kghf .kghf-search__btn:focus {
	background: #000000;
	color: #FFFFFF;
	box-shadow: none;
}

.kghf-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}

.kghf .kghf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Topbjælke ---------- */

.kghf .kghf-top {
	background: #F4F2EE;
	border-bottom: 1px solid #E4E1DB;
	color: #3A3936;
	font-size: 13px;
}

.kghf .kghf-top__in {
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.kghf .kghf-top__group {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	white-space: nowrap;
}

.kghf .kghf-top__group--end {
	gap: 28px;
}

.kghf .kghf-top__sep {
	width: 1px;
	height: 14px;
	background: #D6D3CD;
}

.kghf .kghf-top a {
	color: #3A3936;
}

.kghf .kghf-top__phone {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

/* ---------- Hovedrække ---------- */

.kghf .kghf-main {
	background: #FFFFFF;
}

.kghf .kghf-main__in {
	height: 80px;
	display: flex;
	align-items: center;
	gap: 48px;
}

.kghf .kghf-burger {
	display: none;
}

.kghf .kghf-logo {
	display: flex;
	flex: none;
}

.kghf .kghf-logo img {
	display: block;
	width: var(--kghf-logo-w, 140px);
	max-width: none;
	height: auto;
}

.kghf .kghf-logo__text {
	font-size: 22px;
	font-weight: 700;
}

/* Søgning: Advanced Woo Search-feltet får designets udseende. */
.kghf .kghf-search {
	position: relative;
	flex: 1;
	max-width: 600px;
	display: flex;
	align-items: stretch;
	color: #5E5E5E;
}

.kghf .kghf-search > .kghf-ico {
	position: absolute;
	left: 14px;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	pointer-events: none;
}

.kghf .kghf-search .aws-container,
.kghf .kghf-search .kghf-search__form {
	flex: 1;
	min-width: 0;
	margin: 0;
}

/* Temaet giver form en margin forneden, som ellers skubber ikonet ned. */
.kghf .kghf-search .aws-container .aws-search-form,
.kghf .kghf-search .kghf-search__form {
	height: 46px;
	margin: 0;
	background: transparent;
}

.kghf .kghf-search .aws-container .aws-search-field,
.kghf .kghf-search .kghf-search__form input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 40px 0 42px;
	border: 1px solid #D6D3CD;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	background: #FFFFFF;
	color: #141414;
	font-family: inherit;
	font-size: 15px;
	line-height: 44px;
	box-shadow: none;
}

.kghf .kghf-search .aws-container .aws-search-field:focus,
.kghf .kghf-search .kghf-search__form input[type="search"]:focus {
	border-color: #141414;
	outline: none;
}

.kghf .kghf-search .aws-container .aws-search-field::placeholder {
	color: #6B6A66;
	opacity: 1;
}

.kghf .kghf-search .aws-container .aws-search-form .aws-form-btn {
	display: none;
}

/* WoodMarts AJAX-søgning (lokecykler.dk) får samme udseende. */
.kghf .kghf-search .wd-search-form {
	position: relative;
	flex: 1;
	min-width: 0;
	margin: 0;
}

.kghf .kghf-search .wd-search-form .searchform {
	height: 46px;
	margin: 0;
	background: transparent;
}

.kghf .kghf-search .wd-search-form .searchform input.s {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 40px 0 42px;
	border: 1px solid #D6D3CD;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	background: #FFFFFF;
	color: #141414;
	font-family: inherit;
	font-size: 15px;
	line-height: 44px;
	box-shadow: none;
}

.kghf .kghf-search .wd-search-form .searchform input.s:focus {
	border-color: #141414;
	outline: none;
}

.kghf .kghf-search .wd-search-form .searchform input.s::placeholder {
	color: #6B6A66;
	opacity: 1;
}

.kghf .kghf-search .wd-search-form .searchform .searchsubmit {
	display: none;
}

.kghf .kghf-search .wd-search-form .wd-search-results {
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	width: auto;
	z-index: 60;
}

.kghf .kghf-search__btn {
	flex: none;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 0 4px 4px 0;
	background: #141414;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 46px;
	cursor: pointer;
}

.kghf .kghf-search__btn:hover {
	background: #000000;
	color: #FFFFFF;
}

/* Konto og kurv */
.kghf .kghf-tools {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 15px;
	font-weight: 500;
}

.kghf .kghf-tool {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #141414;
}

.kghf .kghf-tool--cart {
	gap: 10px;
}

.kghf .kghf-tool__icon {
	position: relative;
	display: flex;
}

.kghf .kghf-count {
	position: absolute;
	top: -7px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--kghf-accent, #D6B46A);
	color: var(--kghf-accent-ink, #141414);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.kghf .kghf-count[data-count="0"] {
	display: none;
}

/* ---------- Kategorimenu ---------- */

.kghf .kghf-nav {
	position: relative;
	z-index: 50;
	background: #FFFFFF;
	border-top: 1px solid #ECEAE6;
	border-bottom: 1px solid #ECEAE6;
}

.kghf .kghf-nav__list {
	height: 52px;
	display: flex;
	align-items: stretch;
	gap: 30px;
}

.kghf .kghf-nav__item {
	display: flex;
}

.kghf .kghf-nav__item.is-end {
	margin-left: auto;
}

.kghf .kghf-nav__link {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #141414;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.kghf .kghf-nav__link .kghf-ico {
	transition: transform 0.15s ease;
}

.kghf .kghf-nav__item.is-sale > .kghf-nav__link {
	color: #B3261E;
}

.kghf .kghf-nav__item.is-end > .kghf-nav__link {
	color: #5E5E5E;
	font-weight: 500;
}

.kghf .kghf-nav__link:hover,
.kghf .kghf-nav__link[aria-current="page"],
.kghf .kghf-nav__item.is-open > .kghf-nav__link {
	text-decoration: none;
	box-shadow: inset 0 -2px 0 currentColor;
}

.kghf .kghf-nav__item.is-open > .kghf-nav__link .kghf-ico {
	transform: rotate(180deg);
}

.kghf .kghf-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #FFFFFF;
	border-top: 1px solid #ECEAE6;
	border-bottom: 1px solid #ECEAE6;
	box-shadow: 0 14px 28px rgba(20, 20, 20, 0.08);
}

.kghf .kghf-nav__item.is-open > .kghf-panel,
.kghf .kghf-nav__item:focus-within > .kghf-panel {
	display: block;
}

.kghf .kghf-panel__in {
	padding-top: 32px;
	padding-bottom: 36px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
}

.kghf .kghf-panel__col {
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kghf .kghf-panel__col.is-wide {
	flex: 1 1 560px;
}

.kghf .kghf-panel__col--end {
	justify-content: flex-end;
}

.kghf .kghf-panel__title {
	margin-bottom: 4px;
	color: #141414;
	font-size: 14px;
	font-weight: 700;
}

.kghf .kghf-panel__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kghf .kghf-panel__list.is-multi {
	display: block;
	columns: 3 180px;
	column-gap: 48px;
}

.kghf .kghf-panel__list.is-xl {
	columns: 5 160px;
	column-gap: 40px;
}

.kghf .kghf-panel__list.is-multi li {
	break-inside: avoid;
	margin-bottom: 10px;
}

.kghf .kghf-panel__list a {
	color: #3A3936;
	font-size: 15px;
}

.kghf .kghf-panel__list .is-deep a {
	padding-left: 12px;
}

.kghf .kghf-panel__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	color: #141414;
	font-size: 15px;
	font-weight: 600;
}

/* ---------- Mobilmenu ---------- */

/* Skuffen flyttes ud i <body> af JS (et tema med transform på headeren ville ellers fange position: fixed). */
.kghf.kghf-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: #FFFFFF;
	-webkit-overflow-scrolling: touch;
}

.kghf.kghf-drawer[hidden] {
	display: none;
}

html.kghf-lock,
html.kghf-lock body {
	overflow: hidden;
}

.kghf .kghf-drawer__head {
	flex: none;
	height: 60px;
	padding: 0 6px 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #ECEAE6;
}

.kghf .kghf-drawer__title {
	font-size: 17px;
	font-weight: 700;
}

.kghf .kghf-drawer__close,
.kghf .kghf-burger {
	border: 0;
	background: transparent;
	color: #141414;
	cursor: pointer;
}

.kghf .kghf-drawer__close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.kghf .kghf-drawer__link,
.kghf .kghf-acc {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 0;
	border-bottom: 1px solid #F0EEEA;
	background: transparent;
	color: #141414;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.kghf .kghf-drawer__link.is-sale {
	color: #B3261E;
}

.kghf .kghf-acc .kghf-ico {
	transition: transform 0.15s ease;
}

.kghf .kghf-acc[aria-expanded="true"] .kghf-ico {
	transform: rotate(90deg);
}

.kghf .kghf-sub {
	background: #FAF9F7;
	border-bottom: 1px solid #F0EEEA;
}

.kghf .kghf-sub a {
	min-height: 44px;
	padding: 0 16px 0 28px;
	display: flex;
	align-items: center;
	color: #3A3936;
	font-size: 15px;
}

.kghf .kghf-sub a.is-deep {
	padding-left: 42px;
}

.kghf .kghf-sub .kghf-sub__all {
	color: #141414;
	font-weight: 600;
}

.kghf .kghf-drawer__extra {
	display: flex;
	gap: 24px;
	padding: 16px;
	font-size: 15px;
	font-weight: 500;
}

.kghf .kghf-drawer__extra a {
	color: #3A3936;
}

.kghf .kghf-drawer__store {
	margin-top: auto;
	padding: 20px 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #F4F2EE;
	color: #3A3936;
	font-size: 15px;
}

.kghf .kghf-drawer__store-title {
	color: #141414;
	font-size: 16px;
	font-weight: 700;
}

.kghf .kghf-hours {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 24px;
	max-width: 280px;
}

/* WoodMart giver dt sin egen farve og vægt. */
.kghf .kghf-hours dt,
.kghf .kghf-hours dd {
	margin: 0;
	color: inherit;
	font-weight: 400;
}

.kghf .kghf-drawer__call {
	height: 48px;
	margin-top: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 4px;
	background: #141414;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 600;
}

.kghf .kghf-drawer__call:hover,
.kghf .kghf-drawer__call:visited {
	color: #FFFFFF;
}

.kghf .kghf-drawer__mail {
	align-self: center;
	color: #3A3936;
}

/* ---------- Footer ---------- */

.kghf.kghf-footer {
	background: #171717;
	color: #ECEAE6;
	font-size: 15px;
}

.kghf.kghf-footer a,
.kghf.kghf-footer a:visited {
	color: #ECEAE6;
}

.kghf.kghf-footer a:hover {
	color: #FFFFFF;
}

.kghf .kghf-footer__in {
	padding-top: 64px;
}

.kghf .kghf-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
}

.kghf .kghf-footer__brand,
.kghf .kghf-footer__col {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.kghf .kghf-footer__col {
	gap: 28px;
}

.kghf nav.kghf-footer__col {
	gap: 0;
}

.kghf .kghf-footer__logo img {
	display: block;
	width: 132px;
	max-width: 100%;
	height: auto;
}

.kghf .kghf-footer__logo img.is-invert {
	filter: brightness(0) invert(1);
}

.kghf .kghf-footer__person {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #ECEAE6;
	font-size: 14px;
	line-height: 1.45;
}

.kghf .kghf-footer__person img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.kghf .kghf-footer__person span {
	color: #A9A6A0;
}

.kghf .kghf-footer__muted {
	color: #A9A6A0;
	line-height: 1.6;
}

.kghf .kghf-footer__note {
	max-width: 300px;
	font-size: 14px;
	line-height: 1.55;
}

.kghf .kghf-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kghf.kghf-footer .kghf-footer__phone {
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 600;
}

.kghf .kghf-footer__title {
	margin: 0 0 12px;
	padding: 0;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
}

.kghf .kghf-footer__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kghf .kghf-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.kghf.kghf-footer .kghf-hours {
	color: #CFCCC6;
}

.kghf .kghf-footer__bottom {
	margin-top: 56px;
	padding: 20px 0 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	border-top: 1px solid #2E2D2B;
}

.kghf .kghf-footer__copy {
	color: #A9A6A0;
	font-size: 13px;
}

.kghf .kghf-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
}

.kghf .kghf-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Logoerne er SVG-kort med egen hvid baggrund (fra Frisbii-pluginet). */
.kghf .kghf-pay li {
	display: flex;
}

.kghf .kghf-pay img {
	display: block;
	width: auto;
	height: 30px;
	border-radius: 3px;
}

/* [kg_payments] på lys baggrund: tynd kant om de hvide kort. */
.kghf.kghf-payments .kghf-pay {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kghf.kghf-payments .kghf-pay img {
	box-shadow: 0 0 0 1px #E4E1DB;
}

.kghf .kghf-emaerket img {
	display: block;
	width: auto;
	height: 44px;
	border-radius: 4px;
}

/* ---------- Mindre skærme ---------- */

@media (max-width: 1099px) {
	.kghf-wrap {
		padding: 0 16px;
	}

	.kghf .kghf-top__store,
	.kghf .kghf-top__sep,
	.kghf .kghf-top__usp {
		display: none;
	}

	.kghf .kghf-top__in {
		height: 34px;
	}

	.kghf .kghf-main__in {
		height: auto;
		padding-top: 8px;
		padding-bottom: 12px;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas: "burger logo tools" "search search search";
		align-items: center;
		gap: 8px 0;
	}

	.kghf .kghf-burger {
		grid-area: burger;
		justify-self: start;
		height: 44px;
		padding: 0 10px 0 0;
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 15px;
		font-weight: 600;
	}

	.kghf .kghf-logo {
		grid-area: logo;
		justify-self: center;
	}

	.kghf .kghf-logo img {
		width: var(--kghf-logo-w-m, 112px);
	}

	.kghf .kghf-tools {
		grid-area: tools;
		justify-self: end;
		gap: 0;
	}

	.kghf .kghf-tool {
		position: relative;
		width: 44px;
		height: 44px;
		justify-content: center;
	}

	.kghf .kghf-tool__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.kghf .kghf-search {
		grid-area: search;
		max-width: none;
	}

	.kghf .kghf-search .aws-container .aws-search-field,
	.kghf .kghf-search .kghf-search__form input[type="search"] {
		height: 44px;
		border-right: 1px solid #D6D3CD;
		border-radius: 4px;
		font-size: 16px;
		line-height: 42px;
	}

	.kghf .kghf-search .aws-container .aws-search-form,
	.kghf .kghf-search .wd-search-form .searchform {
		height: 44px;
	}

	.kghf .kghf-search .wd-search-form .searchform input.s {
		height: 44px;
		border-right: 1px solid #D6D3CD;
		border-radius: 4px;
		font-size: 16px;
		line-height: 42px;
	}

	.kghf .kghf-search__btn {
		display: none;
	}

	.kghf .kghf-nav {
		display: none;
	}

	.kghf .kghf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.kghf .kghf-footer__in {
		padding-top: 40px;
	}

	.kghf .kghf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}

	.kghf .kghf-footer__brand,
	.kghf .kghf-footer__col:not(nav) {
		grid-column: 1 / -1;
	}

	.kghf .kghf-footer__links {
		gap: 0;
	}

	.kghf .kghf-footer__links a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.kghf .kghf-footer__bottom {
		margin-top: 32px;
		flex-direction: column;
		align-items: flex-start;
	}

	.kghf .kghf-footer__copy {
		order: 2;
	}
}
