/*
 * Termék adatlap (fólia, geotextília). Design: 12 Tófólia adatlap, 13 Geotextília adatlap.
 * Mobil először; a desktop méretek a design 1440-es keretéből (PDF egység / 0,75).
 */

/* ---------- Keret ---------- */
.tf-pdp__crumbs {
	padding-top: var(--s-4);
}

.tf-pdp__notices:empty {
	display: none;
}

.tf-pdp__notices .woocommerce-notices-wrapper:not(:empty) {
	margin-top: var(--s-4);
}

.tf-pdp__top {
	display: grid;
	gap: var(--s-6);
	margin-top: var(--s-4);
}

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

.tf-pdp__eyebrow {
	margin-bottom: 0;
}

.tf-pdp__title {
	color: var(--c-navy);
	font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
	line-height: 1.1;
}

.tf-pdp__price {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	align-items: baseline;
	margin-top: 10px;
	color: var(--c-muted);
	font-size: var(--fs-body);
}

/* Bruttó ár: „1 990 Ft/m²” + kis „bruttó, az áfát tartalmazza”. */
.tf-pdp__price-amount {
	color: var(--c-text);
}

.tf-pdp__price-note,
.tf-pdp__label-note {
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 400;
}

.tf-pdp__lead {
	margin-top: 12px;
	color: var(--c-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.tf-pdp__label {
	display: block;
	margin: 0 0 8px;
	line-height: 1.4;
	padding: 0;
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: 600;
}

.tf-pdp-config {
	display: grid;
	gap: 22px;
	margin-top: 22px;
}

.tf-pdp-error:empty {
	display: none;
}

.tf-pdp-error {
	margin-top: 6px;
	font-size: var(--fs-xs);
}

.tf-pdp-error--form {
	margin-top: -10px;
}

/* ---------- Galéria ---------- */
.tf-pdp-gallery {
	min-width: 0;
}

.tf-pdp-gallery__main {
	aspect-ratio: 4 / 3;
}

.tf-pdp-gallery__main > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tf-pdp-gallery__caption {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 2px 10px;
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-ink);
	font-family: var(--f-mono);
	font-size: 0.6875rem;
}

.tf-pdp-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.tf-pdp-gallery__thumb {
	display: block;
	aspect-ratio: 150 / 107;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: 14px;
	background: var(--c-surface);
}

.tf-pdp-gallery__thumb img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
}

.tf-pdp-gallery__thumb[aria-current="true"] {
	border-color: var(--c-blue-bright);
}

.tf-pdp-gallery__thumb:hover {
	border-color: var(--c-sky-300);
}

/* ---------- Fólia típus váltó (2×2) ---------- */
.tf-pdp-types__list {
	display: grid;
	gap: 10px;
}

.tf-pdp-type {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 10px 18px;
	border: 2px solid transparent;
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	text-decoration: none;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.tf-pdp-type:hover {
	border-color: var(--c-sky-300);
	color: var(--c-ink);
}

.tf-pdp-type.is-selected {
	border-color: var(--c-blue-bright);
	background: var(--c-sky-200);
}

.tf-pdp-type__body {
	display: grid;
	min-width: 0;
	line-height: 1.25;
}

.tf-pdp-type__name {
	font-size: var(--fs-body);
	font-weight: 600;
}

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

.tf-pdp-type__price {
	flex: none;
	font-family: var(--f-head);
	font-size: 1.0625rem;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Méret doboz ---------- */
.tf-pdp-size {
	display: grid;
	gap: 0;
	min-width: 0;
	margin: 0;
	padding: 20px 18px;
	border: 0;
	border-radius: var(--r-lg);
	background: var(--c-sky-100);
}

.tf-pdp-size__title {
	float: left; /* a legend így a dobozon belül marad */
	width: 100%;
	margin-bottom: 16px;
	padding: 0;
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: 600;
}

.tf-pdp-dim + .tf-pdp-dim {
	margin-top: 14px;
}

.tf-pdp-dim__head {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.tf-pdp-dim__label {
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: 500;
}

.tf-pdp-dim__value {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	width: 96px;
	min-height: 42px;
	padding: 6px 12px;
	border: 1.5px solid transparent;
	border-radius: var(--r-sm);
	background: #fff;
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: text;
}

.tf-pdp-dim__value:focus-within {
	border-color: var(--c-blue);
	box-shadow: var(--sh-focus);
}

.tf-pdp-dim__value:has([aria-invalid="true"]) {
	border-color: var(--c-error);
}

.tf-pdp-dim__input {
	width: 100%;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: right;
}

.tf-pdp-dim__input:focus-visible {
	outline: none;
	box-shadow: none;
}

.tf-pdp-dim__unit {
	margin-left: 5px;
}

/* Csúszka: világoskék sáv, kék kitöltés (--tf-fill), fehér fogó kék kerettel. */
.tf-pdp-range {
	--tf-fill: 20%;
	display: block;
	width: 100%;
	height: 28px;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tf-pdp-range:focus-visible {
	outline: none;
	box-shadow: none;
}

.tf-pdp-range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: var(--r-pill);
	background: linear-gradient(90deg, var(--c-blue) var(--tf-fill), var(--c-sky-300) var(--tf-fill));
}

.tf-pdp-range::-moz-range-track {
	height: 8px;
	border-radius: var(--r-pill);
	background: var(--c-sky-300);
}

.tf-pdp-range::-moz-range-progress {
	height: 8px;
	border-radius: var(--r-pill);
	background: var(--c-blue);
}

.tf-pdp-range::-webkit-slider-thumb {
	width: 28px;
	height: 28px;
	margin-top: -10px;
	border: 3px solid var(--c-blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(8, 41, 52, 0.18);
	-webkit-appearance: none;
	appearance: none;
}

.tf-pdp-range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border: 3px solid var(--c-blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(8, 41, 52, 0.18);
}

.tf-pdp-range:focus-visible::-webkit-slider-thumb {
	box-shadow: var(--sh-focus);
}

.tf-pdp-range:focus-visible::-moz-range-thumb {
	box-shadow: var(--sh-focus);
}

.tf-pdp-dim__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 2px;
	color: var(--c-muted);
	font-size: var(--fs-3xs);
}

/* EPDM: gyári szélességek választó chipjei */
.tf-pdp-widths {
	margin: 0;
	padding: 0;
	border: 0;
}

.tf-pdp-widths .tf-pdp-dim__label {
	margin-bottom: 10px;
	padding: 0;
}

.tf-pdp-widths__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tf-pdp-width {
	position: relative;
	background: #fff;
	color: var(--c-ink);
}

.tf-pdp-width:has(input:checked) {
	background: var(--c-navy);
	color: #fff;
}

.tf-pdp-width:has(input:focus-visible) {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

.tf-pdp-size__help {
	clear: both;
	margin-top: 14px;
	color: var(--c-blue-ink);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

.tf-pdp-size__help a {
	color: inherit;
	white-space: nowrap;
}

/* ---------- Geotextília sor ---------- */
.tf-pdp-geo {
	display: flex;
	gap: 14px;
	align-items: center;
	min-height: 68px;
	padding: 12px 18px;
	border: 2px solid var(--c-line-2);
	border-radius: var(--r-md);
	background: #fff;
	cursor: pointer;
	transition: border-color var(--t-fast) var(--ease);
}

.tf-pdp-geo:has(input:checked) {
	border-color: var(--c-blue-bright);
}

.tf-pdp-geo:has(input:focus-visible) {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

.tf-pdp-geo__more {
	margin-top: -12px;
	padding-inline: 4px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.45;
}

.tf-pdp-geo__link {
	color: var(--c-blue-strong);
	font-weight: 600;
	white-space: nowrap;
}

.tf-pdp-geo__check {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border-radius: 5px;
	accent-color: var(--c-blue);
}

.tf-pdp-geo__check:focus-visible {
	outline: none;
}

.tf-pdp-geo__body {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.tf-pdp-geo__title {
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: 600;
}

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

.tf-pdp-geo__price {
	flex: none;
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: 700;
	white-space: nowrap;
}

.tf-pdp-geo:not(:has(input:checked)) .tf-pdp-geo__price {
	color: var(--c-muted);
	font-weight: 500;
}

.tf-pdp-replace {
	font-size: var(--fs-xs);
}

/* ---------- Végösszeg sáv ---------- */
.tf-pdp-total {
	position: sticky;
	bottom: 12px;
	z-index: 5;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 16px 20px;
	border-radius: var(--r-xl);
	background: var(--c-navy);
	box-shadow: var(--sh-float);
}

.tf-pdp-total__body {
	min-width: 0;
}

.tf-pdp-total__label {
	color: var(--c-sky-400);
	font-size: var(--fs-3xs);
	line-height: 1.35;
}

.tf-pdp-total__amount {
	color: #fff;
	font-family: var(--f-head);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
}

.tf-pdp-total.is-loading .tf-pdp-total__amount {
	opacity: 0.7;
}

.tf-pdp-total__ship {
	color: var(--c-sky-200);
	font-size: var(--fs-3xs);
	line-height: 1.35;
}

.tf-pdp-total__btn {
	flex: none;
	padding-inline: 24px;
}

.tf-pdp-total__btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.8;
}

.tf-pdp-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	color: var(--c-text-2);
	font-size: var(--fs-xs);
}

/* ---------- Fülek ---------- */
.tf-pdp-tabs {
	margin-top: var(--s-10);
}

.tf-pdp-tabs__list {
	display: flex;
	gap: 8px;
	margin-inline: calc(-1 * var(--gutter));
	padding: 3px var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.tf-pdp-tabs__list::-webkit-scrollbar {
	display: none;
}

.tf-pdp-tabs__tab {
	flex: none;
	min-height: 42px;
	padding: 8px 20px;
}

.tf-pdp-tabs__tab[aria-selected="true"] {
	background: var(--c-navy);
	color: #fff;
}

.tf-pdp-panel {
	display: grid;
	gap: var(--s-7);
	margin-top: var(--s-7);
}

.tf-pdp-panel[hidden] {
	display: none;
}

.tf-pdp-panel:focus-visible {
	border-radius: var(--r-md);
	outline-offset: 6px;
}

.tf-pdp-panel__title,
.tf-pdp-panel .tf-prose h2 {
	margin-top: 0;
	margin-bottom: 0;
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
	line-height: 1.25;
}

.tf-pdp-panel .tf-prose {
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	line-height: 1.65;
}

.tf-pdp-panel .tf-prose > h3 {
	margin-top: 0;
	margin-bottom: 0;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	line-height: 1.25;
}

.tf-pdp-panel .tf-prose > * + h3 {
	margin-top: 1.4em;
}

.tf-pdp-panel .tf-prose > h3 + * {
	margin-top: 0.75em;
}

.tf-pdp-panel .tf-prose > h2 + * {
	margin-top: 0.9em;
}

.tf-pdp-panel .tf-prose > * + h2 {
	margin-top: 1.4em;
}

.tf-pdp-panel__text {
	max-width: 640px;
}

/* Műszaki adatok táblázat */
.tf-pdp-spec {
	align-self: start;
	padding: 6px 20px;
	border-radius: var(--r-lg);
	background: var(--c-surface);
}

.tf-pdp-spec__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.tf-pdp-spec__caption {
	padding: 12px 0 4px;
	color: var(--c-ink);
	font-weight: 600;
	text-align: left;
}

.tf-pdp-spec th,
.tf-pdp-spec td {
	padding: 11px 0;
	border-bottom: 1px solid var(--c-line-soft);
	vertical-align: top;
}

.tf-pdp-spec tr:last-child :is(th, td) {
	border-bottom: 0;
}

.tf-pdp-spec th {
	padding-right: 16px;
	color: var(--c-muted);
	font-weight: 400;
	text-align: left;
}

.tf-pdp-spec td {
	color: var(--c-ink);
	font-weight: 600;
	text-align: right;
}

.tf-pdp-panel:not(.tf-pdp-panel--split) .tf-pdp-spec {
	width: 100%;
	max-width: 760px;
}

/* Változatonkénti tábla (geotextília): oszlopfejléc a változat neve. */
.tf-pdp-spec--multi thead th {
	padding-top: 14px;
	color: var(--c-ink);
	font-weight: 600;
	text-align: right;
}

.tf-pdp-spec--multi td + td {
	padding-left: 16px;
}

@media (max-width: 639.98px) {
	.tf-pdp-spec--multi {
		padding-inline: 14px;
	}

	.tf-pdp-spec--multi .tf-pdp-spec__table {
		font-size: var(--fs-xs);
	}

	.tf-pdp-spec--multi thead th {
		white-space: nowrap;
	}

	.tf-pdp-spec--multi th,
	.tf-pdp-spec--multi td + td {
		padding-right: 8px;
		padding-left: 8px;
	}

	.tf-pdp-spec--multi tr > :first-child {
		padding-left: 0;
	}

	.tf-pdp-spec--multi tr > :last-child {
		padding-right: 0;
	}
}

/* ---------- Geotextília adatlap ---------- */
.tf-pdp-gsm {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tf-pdp-gsm__option {
	min-height: 71px;
	padding: 14px 20px;
	border-width: 2px;
}

.tf-pdp-gsm__option input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--c-blue);
}

.tf-pdp-gsm__option .tf-option__title {
	font-size: 1.0625rem;
}

.tf-pdp-gsm__option .tf-option__sub {
	font-size: var(--fs-xs);
}

.tf-pdp-gsm__option .tf-option__price {
	font-size: 1.25rem;
	font-weight: 700;
}

.tf-pdp-qty__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
}

.tf-pdp-qty__stepper {
	padding: 6px;
}

.tf-pdp-qty__stepper .tf-stepper__btn {
	width: 48px;
	height: 48px;
}

.tf-pdp-qty__stepper input.tf-stepper__input {
	width: 2.1em;
	font-size: 1.75rem;
	font-weight: 700;
	text-align: right;
}

.tf-pdp-qty__stepper .tf-stepper__unit {
	margin-left: 0;
	padding-right: 8px;
	font-size: 1.125rem;
	font-weight: 700;
}

.tf-pdp-qty__hint {
	display: grid;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.3;
}

.tf-pdp-qty__quick {
	gap: 8px;
	margin-top: 10px;
}

.tf-pdp-qty__quick .tf-chip {
	min-height: 33px;
	padding: 4px 14px;
	font-size: var(--fs-xs);
}

.tf-pdp-cross {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 8px 16px;
	align-items: center;
	margin-top: 22px;
	padding: 18px;
	border-radius: var(--r-lg);
	background: var(--c-surface);
}

.tf-pdp-cross__img {
	width: 72px;
	height: 72px;
	border-radius: var(--r-sm);
	object-fit: cover;
}

.tf-pdp-cross__title {
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.tf-pdp-cross__text {
	color: var(--c-ink);
	font-size: var(--fs-sm);
	line-height: 1.25;
}

.tf-pdp-cross__link {
	grid-column: 2;
	white-space: nowrap;
}

/* ---------- Töréspontok ---------- */
@media (min-width: 480px) {
	.tf-pdp-types__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 640px) {
	.tf-pdp-size {
		padding: 22px 24px 18px;
	}

	.tf-pdp-total {
		padding: 19px 22px 19px 26px;
	}

	.tf-pdp-total__btn {
		padding-inline: 27px;
	}

	.tf-pdp-total__label,
	.tf-pdp-total__ship {
		font-size: var(--fs-2xs);
	}

	.tf-pdp-cross {
		grid-template-columns: 72px minmax(0, 1fr) auto;
	}

	.tf-pdp-cross__link {
		grid-column: auto;
	}

	.tf-pdp-spec {
		padding: 6px 26px;
	}
}

@media (min-width: 960px) {
	.tf-pdp__crumbs {
		padding-top: 10px;
	}

	.tf-pdp__top {
		grid-template-columns: minmax(0, 650fr) minmax(0, 590fr);
		gap: 56px;
		align-items: start;
		margin-top: 18px;
	}

	.tf-pdp-gallery__main {
		aspect-ratio: 650 / 600;
	}

	.tf-pdp-gallery__thumbs {
		gap: 15px;
		margin-top: 13px;
	}

	.tf-pdp__price {
		margin-top: 12px;
	}

	.tf-pdp-config {
		gap: 23px;
		margin-top: 16px;
	}

	.tf-pdp-types__list {
		gap: 10px;
	}

	.tf-pdp-total {
		position: static;
		box-shadow: none;
	}

	.tf-pdp-tabs {
		margin-top: 78px;
	}

	.tf-pdp-tabs__list {
		flex-wrap: wrap;
		margin-inline: 0;
		padding: 0;
		overflow: visible;
	}

	.tf-pdp-panel {
		margin-top: 40px;
	}

	.tf-pdp-panel--split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px;
	}

	.tf-pdp-panel--split .tf-pdp-panel__text {
		padding-top: 10px;
	}

	.tf-pdp--geotextile .tf-pdp__lead {
		max-width: 580px;
	}
}

/* 960–1199 px: a jobb oszlop keskeny, a típus kártyán az ár a név alá kerül. */
@media (min-width: 960px) and (max-width: 1199.98px) {
	.tf-pdp-type {
		flex-direction: column;
		gap: 2px;
		align-items: flex-start;
		justify-content: center;
	}
}

@media (min-width: 1200px) {
	.tf-pdp-panel--split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
		gap: 88px;
	}
}
