/* A termékoldal. Terv: „fogy tervek” vászon, Termékoldal lap. */

body.single-product { background: #f7f8f9; }

body.single-product .site,
body.single-product .site-content { padding: 0; background: transparent; }

.fgy-termek {
	--t-szin: #566559;
	--t-ido: #dff0de;
	--t-akcio: #e00000;
	--t-gomb: #afd9ad;
	--t-gomb-hover: #f2acbf;
	--t-gomb-ink: #000;
	--t-piros: #e00000;
}

.fgy-termek.fgy-k-szepseg {
	--t-szin: #d81b9a;
	--t-ido: #f9e0f1;
	--t-akcio: #d81b9a;
	--t-gomb: #d81b9a;
	--t-gomb-hover: #b01580;
	--t-gomb-ink: #fff;
}

/* Felső rész: galéria és információ */
.fgy-t-fo {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-top: 4px;
}

.fgy-t-kep { position: relative; overflow: hidden; background: #fff; border-radius: 20px; }
.fgy-t-kep img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.fgy-t-jel {
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 6px 12px;
	color: #212121;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: #fff;
	border-radius: 20px;
}

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

.fgy-ui .fgy-t-kisk-gomb {
	display: block;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
}

.fgy-ui .fgy-t-kisk-gomb:hover,
.fgy-ui .fgy-t-kisk-gomb:focus { background: #fff; }
.fgy-ui .fgy-t-kisk-gomb.fgy-t-on { border-color: var(--t-szin); }
.fgy-t-kisk-gomb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.fgy-t-info { position: sticky; top: 90px; }
.fgy-ui .fgy-t-kat { display: inline-block; margin-bottom: 4px; color: #666; font-size: 13px; line-height: 20px; text-decoration: none; }
.fgy-ui .fgy-t-kat:hover { color: #212121; }

.fgy-termek .fgy-t-h1 {
	margin: 0;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 38px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.08;
	text-transform: uppercase;
}

.fgy-t-rovid { margin-top: 10px; font-size: 15px; line-height: 24px; }
.fgy-t-rovid p { margin: 0 0 6px; }
.fgy-t-rovid > :last-child { margin-bottom: 0; }

.fgy-ui .fgy-t-reszlet {
	display: inline-block;
	margin-top: 8px;
	color: #212121;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fgy-t-cimkek,
.fgy-t-tul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.fgy-ui .fgy-t-cimke {
	display: inline-block;
	padding: 5px 10px;
	color: #333;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	background: #f0f0f0;
	border-radius: 20px;
}

.fgy-t-kisz {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}

.fgy-t-kisz-egy { grid-template-columns: minmax(0, 1fr); }
.fgy-t-kisz span { display: flex; align-items: center; justify-content: center; padding: 10px; background: #f0f0f0; border-radius: 8px; }
.fgy-t-kisz .fgy-t-ido { background: var(--t-ido); }

.fgy-t-adag { margin-top: 8px; padding: 10px 12px; font-size: 14px; line-height: 21px; background: #fff; border-radius: 8px; }
.fgy-t-adag p { margin: 0; }
.fgy-t-adag strong { font-weight: 600; }

/* Vásárló doboz */
.fgy-t-doboz { margin-top: 14px; padding: 18px; background: #fff; border-radius: 20px; }
.fgy-t-ar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }

.fgy-t-ar-uj {
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 36px;
	font-style: italic;
	font-weight: 800;
	line-height: 40px;
}

.fgy-t-ar-akcio { color: var(--t-akcio); font-size: 40px; line-height: 44px; }
.fgy-t-ar-nincs { color: #666; font-size: 28px; }
.fgy-t-ar-regi { color: #888; font-size: 16px; }

.fgy-t-szaz {
	padding: 5px 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: var(--t-akcio);
	border-radius: 5px;
}

.fgy-t-lejar { margin: 2px 0 0; color: #856404; font-size: 13px; font-weight: 600; line-height: 20px; }

/* Változatok: a gombok a rejtett WooCommerce mezőket állítják. */
.fgy-t-valt { margin-top: 14px; }
.fgy-t-valt b { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.fgy-t-valt-sor { display: flex; flex-wrap: wrap; gap: 8px; }

.fgy-ui .fgy-t-valt-e {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 48px;
	padding: 7px 14px;
	color: #212121;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	text-align: left;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
}

.fgy-ui .fgy-t-valt-e:hover,
.fgy-ui .fgy-t-valt-e:focus { color: #212121; background: #fff; border-color: var(--t-szin); }
.fgy-ui .fgy-t-valt-e[aria-pressed="true"] { padding: 6px 13px; border: 2px solid var(--t-szin); }
.fgy-ui .fgy-t-valt-e:disabled { opacity: 0.45; cursor: not-allowed; }
.fgy-t-valt-e small { color: #666; font-size: 12px; font-weight: 400; }

.fgy-termek .variations_form table.variations,
.fgy-termek .variations_form .reset_variations,
.fgy-termek .single_variation .woocommerce-variation-price { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fgy-termek .single_variation .woocommerce-variation-availability p { margin: 10px 0 0; font-size: 14px; }
.fgy-termek .single_variation .woocommerce-variation-description p { margin: 10px 0 0; font-size: 14px; line-height: 21px; }

/* Mennyiség és kosár gomb */
.fgy-termek form.cart {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	margin: 14px 0 0;
}

.fgy-termek form.variations_form { display: block; }
.fgy-termek .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.fgy-termek form.cart::before,
.fgy-termek form.cart::after { display: none; }

.fgy-termek .quantity {
	display: flex;
	align-items: center;
	float: none;
	margin: 0;
	border: 1px solid #ddd;
	border-radius: 15px;
}

.fgy-termek .quantity .qty {
	width: 36px;
	min-height: 50px;
	padding: 0;
	color: #212121;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	background: transparent;
	border: 0;
	-moz-appearance: textfield;
}

.fgy-termek .quantity .qty::-webkit-inner-spin-button,
.fgy-termek .quantity .qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.fgy-ui .fgy-t-menny-gomb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 50px;
	padding: 0;
	color: #212121;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.fgy-ui .fgy-t-menny-gomb:hover,
.fgy-ui .fgy-t-menny-gomb:focus { color: var(--t-szin); background: transparent; }

.fgy-ui.fgy-termek .single_add_to_cart_button.button,
.fgy-ui .fgy-t-gomb,
.fgy-ui .fgy-t-sav-gomb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 18px;
	color: var(--t-gomb-ink);
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 19px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--t-gomb);
	border: 0;
	border-radius: 15px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease;
}

.fgy-ui.fgy-termek .single_add_to_cart_button.button:hover,
.fgy-ui.fgy-termek .single_add_to_cart_button.button:focus,
.fgy-ui .fgy-t-gomb:hover,
.fgy-ui .fgy-t-sav-gomb:hover { color: var(--t-gomb-ink); background: var(--t-gomb-hover); transform: translateY(-1px); }

.fgy-ui.fgy-termek .single_add_to_cart_button.button.disabled,
.fgy-ui.fgy-termek .single_add_to_cart_button.button.disabled:hover { color: var(--t-gomb-ink); background: var(--t-gomb); opacity: 0.5; transform: none; cursor: not-allowed; }
.fgy-ui.fgy-termek .single_add_to_cart_button.button.loading { opacity: 0.7; pointer-events: none; }
.fgy-termek .single_add_to_cart_button.added::after,
.fgy-termek .fgy-t-doboz .added_to_cart { display: none; }
.fgy-ui .fgy-t-gomb { margin-top: 14px; }
.fgy-ui .fgy-t-gomb-keret { color: #212121; background: transparent; box-shadow: inset 0 0 0 2px #000; }
.fgy-ui .fgy-t-gomb-keret:hover { color: #212121; background: #f7f8f9; }

.fgy-t-keszlet { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14px; line-height: 24px; }
.fgy-t-keszlet svg { flex: none; margin-top: 4px; color: var(--t-szin); }
.fgy-t-keszlet b { font-weight: 600; }

.fgy-t-datum {
	display: inline-block;
	padding: 1px 8px;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 800;
	line-height: 24px;
	white-space: nowrap;
	background: var(--t-ido);
	border-radius: 5px;
}

/* Bizalmi sorok */
.fgy-t-biz { margin-top: 12px; background: #fff; border-radius: 20px; }

.fgy-ui .fgy-t-biz-e {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	color: #212121;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}

.fgy-ui .fgy-t-biz-e:last-child { border-bottom: 0; }
.fgy-ui a.fgy-t-biz-e:hover { color: var(--t-szin); }
.fgy-t-biz-e svg { flex: none; color: var(--t-szin); }
.fgy-t-biz-e b { display: block; font-weight: 600; }
.fgy-t-biz-e span { display: block; color: #666; font-size: 13px; line-height: 18px; }

/* Felhívó dobozok */
.fgy-t-felh {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	align-items: stretch;
	margin-top: 40px;
}

.fgy-t-fh { display: flex; flex-direction: column; overflow: hidden; color: #212121; background: #fff; border-radius: 8px; }
.fgy-t-fh-fej { display: flex; align-items: center; gap: 15px; padding: 28px 30px 0; }

.fgy-t-fh-ikon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	color: #212121;
	background: #afd9ad;
	border-radius: 50%;
}

.fgy-termek .fgy-t-fh h2 {
	margin: 0;
	color: inherit;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 26px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.fgy-t-fh-test { display: flex; flex: 1; flex-direction: column; padding: 18px 30px 28px; }
.fgy-t-fh-test p { margin: 0 0 20px; font-size: 15px; line-height: 28px; }
.fgy-t-fh-test b { font-weight: 700; }
.fgy-t-fh mark { padding: 0 2px; color: #212121; font-weight: 700; background: linear-gradient(transparent 52%, #afd9ad 52%); }

.fgy-t-fh-pontok {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: auto 0 0;
	padding: 18px 0 0;
	list-style: none;
	border-top: 1px solid #eee;
}

.fgy-t-fh-pontok li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.fgy-t-fh-pontok svg { flex: none; width: 26px; height: 26px; padding: 5px; color: #212121; background: #afd9ad; border-radius: 50%; }

.fgy-t-fh-piros { background: #fef6f6; border: 2px solid var(--t-piros); }
.fgy-t-fh-piros .fgy-t-fh-fej { padding: 18px 25px; color: #fff; background: var(--t-piros); }
.fgy-t-fh-piros .fgy-t-fh-ikon { width: 52px; height: 52px; color: #fff; background: rgba(255, 255, 255, 0.18); }
.fgy-t-fh-piros .fgy-t-fh-test { padding: 20px 25px 25px; }
.fgy-t-fh-piros mark { padding: 0; color: var(--t-piros); background: none; }
.fgy-t-fh-piros .fgy-t-fh-pontok { border-top-color: #f8c8c8; }
.fgy-t-fh-piros .fgy-t-fh-pontok svg { color: #fff; background: var(--t-piros); }

/* A kategóriaoldal kártyáiról a kategórianév itt is felesleges. */
.fgy-termek .fk-kategoria { display: none; }

/* A termékről: a hosszú leírás a szerkesztő formázásával */
.fgy-t-leiras h2,
.fgy-t-leiras h3,
.fgy-t-leiras h4 {
	margin: 24px 0 8px;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-style: italic;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.fgy-t-leiras h2 { font-size: 25px; }
.fgy-t-leiras h3 { font-size: 22px; }
.fgy-t-leiras h4 { font-size: 19px; }
.fgy-t-leiras > :first-child { margin-top: 0; }
.fgy-t-leiras ul,
.fgy-t-leiras ol { margin: 0 0 12px; padding-left: 22px; }
.fgy-t-leiras li { margin-bottom: 4px; }
.fgy-t-leiras li::marker { color: var(--t-szin); }
.fgy-t-leiras strong,
.fgy-t-leiras b { font-weight: 600; }
.fgy-t-leiras img { max-width: 100%; height: auto; border-radius: 12px; }
.fgy-t-leiras table { width: 100%; max-width: 560px; margin: 4px 0 16px; font-size: 14px; border-collapse: collapse; border: 0; }
.fgy-t-leiras th,
.fgy-t-leiras td { padding: 9px 12px; text-align: left; border: 0; border-bottom: 1px solid #eee; }
.fgy-t-leiras th { font-weight: 600; background: var(--t-ido); }

.fgy-t-leiras blockquote {
	margin: 0 0 12px;
	padding: 10px 15px;
	font-size: 15px;
	font-style: normal;
	background: #fff3cd;
	border-left: 3px solid #ffc107;
	border-radius: 5px;
}

.fgy-t-leiras blockquote p { margin: 0; }
.fgy-t-tul { margin-top: 15px; }
.fgy-t-adatsor { margin: 15px 0 0; padding-top: 15px; font-size: 14px; line-height: 22px; border-top: 1px solid #eee; }
.fgy-t-adatsor b { font-weight: 600; }

/* Lebegő kosársáv */
.fgy-t-sav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 900;
	background: #fff;
	border-top: 1px solid #eee;
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
	transform: translateY(110%);
	transition: transform 0.25s ease;
	visibility: hidden;
}

.fgy-t-sav.fgy-t-latszik { transform: none; visibility: visible; }

.fgy-t-sav-in {
	display: flex;
	align-items: center;
	gap: 15px;
	box-sizing: border-box;
	max-width: calc(var(--fgy-tartalom) + 80px);
	margin: 0 auto;
	padding: 12px 40px;
	color: #212121;
}

.fgy-t-sav-kep { flex: none; width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.fgy-t-sav-szoveg { min-width: 0; }

.fgy-t-sav-nev {
	display: block;
	overflow: hidden;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 21px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.1;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.fgy-t-sav-kisz { display: block; color: #666; font-size: 13px; line-height: 18px; }
.fgy-t-sav-ar { display: flex; flex: none; align-items: baseline; gap: 10px; margin-left: auto; }
.fgy-t-sav-ar .fgy-t-szaz { display: none; }
.fgy-t-sav-ar .fgy-t-ar-uj { font-size: 28px; line-height: 32px; }
.fgy-ui .fgy-t-sav-gomb { flex: none; width: auto; min-width: 230px; min-height: 50px; }

@media (max-width: 1024px) {
	.fgy-t-fo { gap: 25px; }
	.fgy-t-felh { gap: 15px; }
	.fgy-t-fh-pontok { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.fgy-t-sav-in { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 768px) {
	.fgy-t-fo { grid-template-columns: minmax(0, 1fr); gap: 15px; }
	.fgy-t-info { position: static; }
	.fgy-termek .fgy-t-h1 { font-size: 30px; }
	.fgy-t-felh { grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
	.fgy-t-fh-fej { padding: 22px 18px 0; }
	.fgy-t-fh-piros .fgy-t-fh-fej { padding: 14px 18px; }
	.fgy-t-fh-test,
	.fgy-t-fh-piros .fgy-t-fh-test { padding: 16px 18px 22px; }
	.fgy-t-fh-ikon { width: 48px; height: 48px; }
	.fgy-termek .fgy-t-fh h2 { font-size: 22px; }

	/* Mobilon a sáv kompakt: név, ár és gomb. */
	.fgy-t-sav-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 15px; }
	.fgy-t-sav-kep,
	.fgy-t-sav-kisz,
	.fgy-t-sav-ar .fgy-t-ar-regi { display: none; }
	.fgy-t-sav-szoveg { grid-column: 1; grid-row: 1; }
	.fgy-t-sav-ar { grid-column: 1; grid-row: 2; }
	.fgy-ui .fgy-t-sav-gomb { grid-column: 2; grid-row: 1 / span 2; }
	.fgy-t-sav-nev { font-family: inherit; font-size: 13px; font-style: normal; font-weight: 600; line-height: 18px; text-transform: none; }
	.fgy-t-sav-ar { display: block; margin: 0; }
	.fgy-t-sav-ar .fgy-t-ar-uj { font-size: 22px; line-height: 26px; }
	.fgy-ui .fgy-t-sav-gomb { min-width: 0; min-height: 48px; font-size: 17px; }
	body.single-product .site-footer { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	.fgy-t-sav { transition: none; }
	.fgy-ui.fgy-termek .single_add_to_cart_button.button,
	.fgy-ui .fgy-t-gomb,
	.fgy-ui .fgy-t-sav-gomb { transition: none; }
}

/* Ha csak egy felhívó doboz van kitöltve, teljes szélességű. */
.fgy-t-felh.fgy-t-felh-egy { grid-template-columns: minmax(0, 1fr); }
