/* Elrendezés: konténerek, szekciók, rácsok, fejléc, lábléc, mobil menü, tartalmi sablon. */

/* ---------- Konténerek ---------- */
.tf-container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Fotós sávok: a keret szélétől --wide-inset távolságra, 1440 felett középre zárva (1360 px). */
.tf-container--wide {
	width: auto;
	max-width: calc(var(--container) + 2 * (var(--gutter) - var(--wide-inset)));
	margin-inline: max(var(--wide-inset), (100% - (var(--container) + 2 * (var(--gutter) - var(--wide-inset)))) / 2);
}

.tf-container--narrow {
	max-width: calc(880px + 2 * var(--gutter));
}

.tf-container--text {
	max-width: calc(760px + 2 * var(--gutter));
}

.tf-section {
	padding-block: var(--s-section);
}

.tf-section--tight {
	padding-block: calc(var(--s-section) * 0.6);
}

.tf-section--sky {
	background: var(--c-sky-100);
}

.tf-section--surface {
	background: var(--c-surface);
}

.tf-section + .tf-section:not([class*="--sky"], [class*="--surface"]) {
	padding-top: 0;
}

/* ---------- Rácsok, segédek ---------- */
.tf-grid {
	display: grid;
	gap: var(--tf-gap, var(--s-6));
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.tf-grid--2,
	.tf-grid--3,
	.tf-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.tf-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tf-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Tartalom + oldalsáv (pl. kosár összesítő): mobilon egymás alatt. */
.tf-split {
	display: grid;
	gap: var(--s-8);
}

@media (min-width: 960px) {
	.tf-split {
		grid-template-columns: minmax(0, 1fr) var(--tf-aside, 400px);
		gap: var(--tf-split-gap, 48px);
		align-items: start;
	}
}

.tf-stack > * + * {
	margin-top: var(--tf-stack, var(--s-4));
}

.tf-cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tf-gap, var(--s-3));
	align-items: center;
}

@media (max-width: 959.98px) {
	.tf-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 960px) {
	.tf-hide-desktop {
		display: none !important;
	}
}

/* ---------- Fejléc ---------- */
.tf-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: var(--c-bg);
}

@media (max-width: 600px) {
	.admin-bar .tf-header {
		top: 0;
	}
}

.tf-header__inner {
	display: flex;
	gap: var(--s-6);
	align-items: center;
	min-height: var(--header-h);
}

.tf-logo {
	display: inline-flex;
	flex: none;
	align-items: baseline;
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.005em;
	text-decoration: none;
}

.tf-logo:hover {
	color: var(--c-navy);
}

.tf-logo__tld {
	color: var(--c-blue-bright);
}

.tf-header__nav {
	display: none;
	margin-left: auto;
}

.tf-nav {
	display: flex;
	gap: 28px;
	align-items: center;
}

.tf-nav a {
	display: block;
	padding-block: 8px;
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.tf-nav a:hover,
.tf-nav .current-menu-item > a,
.tf-nav .current-menu-ancestor > a,
.tf-nav a[aria-current="page"] {
	color: var(--c-blue-strong);
}

.tf-header__aside {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-left: auto;
}

.tf-header__contact {
	display: none;
}

.tf-header__cart {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-sky-100);
	color: var(--c-blue-strong);
	text-decoration: none;
}

.tf-header__cart .tf-icon {
	width: 22px;
	height: 22px;
}

.tf-header__cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--c-blue-strong);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.tf-header__toggle .tf-header__icon-close,
.tf-header__toggle[aria-expanded="true"] .tf-header__icon-open {
	display: none;
}

.tf-header__toggle[aria-expanded="true"] .tf-header__icon-close {
	display: block;
}

@media (min-width: 1200px) {
	.tf-header {
		position: relative;
		top: auto;
	}

	.tf-logo {
		font-size: 1.75rem;
	}

	.tf-header__inner {
		gap: 40px;
	}

	.tf-header__nav {
		display: block;
	}

	.tf-header__aside {
		gap: 24px;
		margin-left: 0;
	}

	.tf-header__contact {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		line-height: 1.2;
	}

	.tf-header__hours {
		color: var(--c-muted);
		font-size: var(--fs-3xs);
	}

	.tf-header__phone {
		color: var(--c-navy);
		font-size: 1.1875rem;
		font-weight: 700;
		letter-spacing: -0.005em;
		text-decoration: none;
		white-space: nowrap;
	}

	.tf-header__phone:hover {
		color: var(--c-blue-strong);
	}

	.tf-header .tf-header__call,
	.tf-header .tf-header__toggle {
		display: none;
	}
}

/* Pénztár fejléc */
.tf-header--checkout {
	position: relative;
	top: auto;
	border-bottom: 1px solid var(--c-line);
}

.tf-header__secure {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	color: var(--c-muted);
	font-size: var(--fs-2xs);
	text-align: right;
}

.tf-header__secure a {
	color: var(--c-ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.tf-header__lock {
	width: 15px;
	height: 15px;
	color: var(--c-muted);
}

@media (max-width: 639.98px) {
	.tf-header__secure-text {
		display: none;
	}
}

@media (min-width: 1200px) {
	.tf-header__secure {
		font-size: var(--fs-xs);
	}
}

/* ---------- Mobil menü ---------- */
.tf-mobile-menu {
	position: fixed;
	inset: var(--tf-menu-top, var(--header-h)) 0 0;
	z-index: 49;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--c-bg);
}

.tf-mobile-menu__inner {
	display: flex;
	flex-direction: column;
	gap: var(--s-7);
	padding-top: var(--s-4);
	padding-bottom: var(--s-8);
}

.tf-mobile-nav {
	display: grid;
	gap: 2px;
}

.tf-mobile-nav a {
	display: block;
	padding-block: 6px;
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.tf-mobile-nav .current-menu-item > a,
.tf-mobile-nav a[aria-current="page"],
.tf-mobile-nav a:hover {
	color: var(--c-blue-strong);
}

.tf-mobile-menu__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 200px;
	overflow: hidden;
	border-radius: var(--r-xl);
	background: var(--c-navy);
	isolation: isolate;
}

.tf-mobile-menu__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tf-mobile-menu__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(8, 41, 52, 0) 35%, rgba(8, 41, 52, 0.78) 100%);
}

.tf-mobile-menu__card-body {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
}

.tf-mobile-menu__contact {
	display: flex;
	flex-direction: column;
	color: #fff;
	line-height: 1.2;
}

.tf-mobile-menu__hours {
	color: var(--c-sky-200);
	font-size: var(--fs-2xs);
}

.tf-mobile-menu__phone {
	color: #fff;
	font-size: 1.3125rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.tf-mobile-menu__phone:hover {
	color: var(--c-sky-300);
}

.tf-menu-open {
	overflow: hidden;
}

@media (min-width: 1200px) {
	.tf-mobile-menu {
		display: none !important;
	}
}

/* ---------- Fő tartalom és CTA sáv a lábléc előtt ---------- */
.tf-main {
	display: block;
}

.tf-cta-wrap {
	padding-top: var(--s-section);
}

/* ---------- Lábléc ---------- */
.tf-footer {
	background: var(--c-bg);
	color: var(--c-muted);
}

.tf-footer a {
	text-decoration: none;
}

.tf-footer__top {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	padding-top: 28px;
	padding-bottom: var(--s-4);
}

.tf-footer__logo {
	font-size: 1.375rem;
}

.tf-footer__company {
	max-width: 46ch;
	font-size: var(--fs-xs);
	line-height: 1.3;
}

.tf-footer__brand {
	display: contents;
}

.tf-footer__brand .tf-footer__logo {
	order: 1;
}

.tf-footer__nav {
	order: 2;
}

.tf-footer__company {
	order: 3;
}

.tf-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

/* Mobilon 28 px-es sorok, mint a designban. */
.tf-footer__links a {
	display: inline-block;
	padding-block: 4px;
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 20px;
}

/* A mobil design linksora csak a saját oldalakat mutatja (a testvér webáruház desktopon látszik). */
@media (max-width: 959.98px) {
	.tf-footer__links .menu-item--external {
		display: none;
	}
}

.tf-footer__links a:hover {
	color: var(--c-blue-strong);
}

.tf-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	align-items: center;
	padding-bottom: var(--s-6);
	color: var(--c-muted-2);
	font-size: var(--fs-2xs);
	line-height: 1.35;
}

.tf-footer__bottom-inner::before {
	content: "";
	flex: 1 0 100%;
	height: 1px;
	margin-bottom: 8px;
	background: var(--c-line);
}

.tf-footer__copy-company {
	display: none;
}

.tf-footer__legal,
.tf-footer__legal-links,
.tf-footer__social {
	display: contents;
}

.tf-footer__legal a {
	display: inline-block;
	padding-block: 2px;
	color: var(--c-muted-2);
}

.tf-footer__legal a:hover {
	color: var(--c-navy);
}

@media (min-width: 960px) {
	.tf-footer__top {
		flex-direction: row;
		gap: var(--s-4);
		justify-content: space-between;
		align-items: flex-start;
		padding-top: var(--s-9);
		padding-bottom: var(--s-8);
	}

	.tf-footer__brand {
		display: flex;
		flex-direction: column;
		gap: var(--s-3);
	}

	.tf-footer__logo {
		font-size: 1.5rem;
	}

	.tf-footer__company {
		max-width: none;
		line-height: 1.45;
	}

	.tf-footer__links {
		gap: 6px 26px;
		justify-content: flex-end;
	}

	.tf-footer__links a {
		padding-block: 0;
		font-size: var(--fs-xs);
		font-weight: 500;
		line-height: inherit;
	}

	/* Desktopon a vonal a teljes szélességben fut. */
	.tf-footer__bottom {
		border-top: 1px solid var(--c-line);
	}

	.tf-footer__bottom-inner {
		gap: 6px 16px;
		justify-content: space-between;
		padding-block: 22px;
		line-height: inherit;
	}

	.tf-footer__bottom-inner::before {
		display: none;
	}

	.tf-footer__copy-company {
		display: inline;
	}

	.tf-footer__legal {
		display: flex;
		gap: 20px;
		align-items: center;
	}

	.tf-footer__legal-links,
	.tf-footer__social {
		display: flex;
		gap: 20px;
	}

	.tf-footer__legal a {
		padding-block: 0;
	}
}

.tf-footer--checkout .tf-footer__bottom-inner {
	padding-top: var(--s-6);
}

/* ---------- Tartalmi sablon (page.php) ---------- */
.tf-legal__head {
	padding-top: var(--s-7);
	text-align: center;
}

.tf-legal__breadcrumbs {
	display: none;
}

.tf-legal__title {
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
}

/* Hatályosság sor: a mobil design nem mutatja (keskeny kijelzőn a dátum közepén tört). */
.tf-legal__meta {
	display: none;
	margin-top: var(--s-3);
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.tf-legal__layout {
	display: grid;
	gap: var(--s-8);
	padding-top: var(--s-5);
}

.tf-legal__main {
	min-width: 0;
}

.tf-legal__aside {
	order: 2;
}

.tf-legal__aside .tf-toc {
	display: none;
}

/* Mobilon a kivonat egyszerű, középre zárt bevezető. */
.tf-legal .tf-legal__note {
	margin-bottom: var(--s-5);
	padding: 0;
	background: none;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	text-align: center;
}

.tf-legal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	padding-bottom: var(--s-5);
	border-bottom: 1px solid var(--c-line);
}

.tf-legal__chips .tf-chip {
	min-height: 28px;
	padding: 4px 12px;
	font-size: var(--fs-2xs);
}

.tf-legal__chips .tf-chip.is-active {
	background: var(--c-navy);
	color: #fff;
}

/* Sok fejezetnél (pl. a teljes ÁSZF) a chip felhő helyett lenyitható lista. */
.tf-legal__toc-m {
	margin-bottom: var(--s-6);
	border-radius: var(--r-md);
	background: var(--c-surface);
}

.tf-legal__toc-m summary {
	display: flex;
	gap: var(--s-3);
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 12px 18px;
	color: var(--c-ink);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.tf-legal__toc-m summary::-webkit-details-marker {
	display: none;
}

.tf-legal__toc-m summary:focus-visible {
	border-radius: var(--r-md);
}

.tf-legal__toc-m-count {
	margin-left: auto;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 400;
}

.tf-legal__toc-m .tf-icon {
	width: 20px;
	height: 20px;
	color: var(--c-blue);
	transition: transform var(--t-fast) var(--ease);
}

.tf-legal__toc-m[open] summary .tf-icon {
	transform: rotate(180deg);
}

.tf-legal__toc-m .tf-toc__list {
	max-height: min(60vh, 480px);
	overflow-y: auto;
	padding: 0 8px 12px;
	overscroll-behavior: contain;
}

/* Mobilon fejezetenként vonal, a design térközeivel. */
.tf-legal .tf-legal__content h2 {
	margin-top: 18px;
	padding-top: var(--s-4);
	border-top: 1px solid var(--c-line);
}

.tf-legal .tf-legal__content > h2:first-child {
	margin-top: 0;
	padding-top: var(--s-6);
	border-top: 0;
}

.tf-legal__content > :first-child {
	margin-top: 0;
}

/* A jogi szövegben kiírt hosszú URL-ek mobilon se nyújtsák szélesebbre az oldalt. */
.tf-legal__content a {
	overflow-wrap: anywhere;
}

@media (min-width: 960px) {
	.tf-legal__head {
		padding-top: var(--s-9);
		text-align: left;
	}

	.tf-legal__breadcrumbs {
		display: block;
		margin-bottom: var(--s-4);
	}

	.tf-legal__meta {
		display: block;
		margin-top: var(--s-2);
		font-size: var(--fs-sm);
	}

	.tf-legal__layout {
		grid-template-columns: 298px minmax(0, 760px);
		gap: 73px;
		align-items: start;
		padding-top: var(--s-8);
	}

	/* Hosszú tartalomjegyzéknél (ÁSZF: ~25 fejezet) az oldalsáv magában görgethető. */
	.tf-legal__aside {
		position: sticky;
		top: var(--s-6);
		order: 0;
		display: grid;
		gap: var(--s-5);
		max-height: calc(100vh - 2 * var(--s-6));
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--c-control) transparent;
	}

	.admin-bar .tf-legal__aside {
		top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--s-6));
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px) - 2 * var(--s-6));
	}

	.tf-legal__aside .tf-toc {
		display: block;
	}

	.tf-legal__chips,
	.tf-legal__toc-m {
		display: none;
	}

	.tf-legal .tf-legal__note {
		margin-bottom: var(--s-9);
		padding: 22px 24px;
		border-radius: var(--r-lg);
		background: var(--c-sky-100);
		color: var(--c-blue-ink);
		font-size: var(--fs-body);
		line-height: 1.75;
		text-align: left;
	}

	.tf-legal .tf-legal__content h2 {
		margin-top: 1.8em;
		padding-top: 0;
		border-top: 0;
	}

	.tf-legal .tf-legal__content > h2:first-child {
		margin-top: 0;
		padding-top: 0;
	}
}

/* Tartalomjegyzék doboz */
.tf-toc {
	padding: 18px 20px 14px;
	border-radius: var(--r-lg);
	background: var(--c-surface);
}

.tf-toc__title,
.tf-docs__title {
	margin-bottom: 10px;
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: 600;
}

.tf-toc__list {
	display: grid;
	gap: 6px;
}

.tf-toc__list .tf-toc__link {
	display: block;
	padding: 5px 12px;
	border-radius: var(--r-sm);
	color: var(--c-text-2);
	font-size: var(--fs-sm);
	line-height: 1.45;
	text-decoration: none;
}

.tf-toc__list .tf-toc__link:hover {
	color: var(--c-navy);
}

.tf-toc__list .tf-toc__link.is-active {
	background: var(--c-bg);
	color: var(--c-navy);
	font-weight: 600;
}

/* Jogi dokumentumok doboz */
.tf-docs {
	padding: 18px 20px 10px;
	border-radius: var(--r-lg);
	background: var(--c-sky-100);
}

.tf-docs__list li + li {
	border-top: 1px solid rgba(8, 41, 52, 0.07);
}

.tf-docs__list li:last-child {
	border-bottom: 1px solid rgba(8, 41, 52, 0.07);
}

.tf-docs__link {
	display: flex;
	flex-direction: column;
	padding-block: 8px;
	color: var(--c-ink);
	text-decoration: none;
}

.tf-docs__name {
	font-size: var(--fs-sm);
}

.tf-docs__path {
	color: var(--c-muted-2);
	font-family: var(--f-mono);
	font-size: 0.6875rem;
}

.tf-docs__link:hover .tf-docs__name {
	color: var(--c-navy);
	text-decoration: underline;
}

/* Aktív dokumentum: sötét felirat a világoskék alapon (AA kontraszt). */
.tf-docs__link[aria-current="page"] .tf-docs__name {
	color: var(--c-navy);
	font-weight: 700;
}

/* Kapcsolat doboz a tartalom végén */
.tf-contact-box {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4) var(--s-6);
	align-items: center;
	justify-content: space-between;
	margin-top: var(--s-9);
	padding: 24px 26px;
	border-radius: var(--r-md);
	background: var(--c-navy);
	color: var(--c-sky-300);
	font-size: var(--fs-sm);
}

.tf-contact-box__title {
	margin-bottom: 4px;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
}

.tf-contact-box a:not(.tf-btn) {
	color: var(--c-sky-300);
	text-decoration: none;
}

.tf-contact-box a:not(.tf-btn):hover {
	color: #fff;
	text-decoration: underline;
}

/* WooCommerce oldalak és fiók: egyszerű keret */
.tf-page-shell {
	padding-top: var(--s-8);
}

.tf-page-shell__title {
	margin-bottom: var(--s-7);
}

/* ---------- Általános lista (index.php) ---------- */
.tf-index__title {
	margin: var(--s-4) 0 var(--s-8);
}

.tf-index__list {
	display: grid;
	gap: var(--s-4);
}

.tf-index__link {
	display: flex;
	gap: var(--s-5);
	align-items: center;
	padding: var(--s-4);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	color: var(--c-text);
	text-decoration: none;
}

.tf-index__thumb {
	flex: none;
	width: 96px;
	height: 96px;
	border-radius: var(--r-md);
	object-fit: cover;
}

.tf-index__body {
	display: grid;
	gap: 4px;
}

.tf-index__meta {
	color: var(--c-muted);
	font-size: var(--fs-2xs);
}

.tf-index__name {
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: var(--fs-card);
	font-weight: 700;
	line-height: 1.25;
}

.tf-index__link:hover .tf-index__name {
	color: var(--c-blue-strong);
}

.tf-index__excerpt {
	font-size: var(--fs-sm);
}

/* ---------- 404 ---------- */
.tf-404 {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(70vh, 560px);
	margin-top: var(--s-2);
	overflow: hidden;
	border-radius: var(--r-xl);
	background: var(--c-navy);
	isolation: isolate;
}

.tf-404__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tf-404::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(8, 41, 52, 0.85) 0%, rgba(8, 41, 52, 0.55) 55%, rgba(8, 41, 52, 0.2) 100%);
}

.tf-404__body {
	max-width: 640px;
	padding: var(--s-7) var(--s-6);
	color: var(--c-sky-200);
}

.tf-404__title {
	margin: var(--s-3) 0 var(--s-4);
	color: #fff;
	font-size: var(--fs-hero);
	line-height: var(--lh-tight);
}

.tf-404__text {
	margin-bottom: var(--s-7);
	font-size: var(--fs-lead);
}

.tf-404__text a {
	color: #fff;
	font-weight: 600;
}

@media (min-width: 960px) {
	.tf-404 {
		align-items: center;
	}

	.tf-404__body {
		padding: var(--s-10);
	}
}
