/* A blog: lista és bejegyzés. Terv: „fogy tervek” vászon, Blog lap. */

body.blog,
body.category,
body.tag,
body.single-post { background: #f7f8f9; }

body.blog .site,
body.blog .site-content,
body.category .site,
body.category .site-content,
body.tag .site,
body.tag .site-content,
body.single-post .site,
body.single-post .site-content { padding: 0; background: transparent; }

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

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

/* Kártyák */
.fgy-b-racs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 25px; }

.fgy-ui .fgy-b-kartya {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: #212121;
	text-decoration: none;
	background: #fff;
	border-radius: 20px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fgy-ui .fgy-b-kartya:hover { color: #212121; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.fgy-ui .fgy-b-kartya:focus-visible { outline: 2px solid #0073aa; outline-offset: 2px; }
.fgy-b-kartya img,
.fgy-b-kep-nincs { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #eee; }
.fgy-b-kartya-test { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }

.fgy-blog .fgy-b-kartya-cim {
	margin: 10px 0 8px;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 23px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.12;
	text-transform: uppercase;
}

.fgy-b-kivonat {
	display: -webkit-box;
	margin: 0 0 14px;
	overflow: hidden;
	font-size: 14px;
	line-height: 22px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.fgy-b-kartya .fgy-b-meta { margin-top: auto; }

.fgy-b-cimke { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 6px; }

.fgy-b-cimke span {
	padding: 5px 10px;
	color: #212121;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	background: #dff0de;
	border-radius: 50px;
}

.fgy-b-cimke .fgy-b-szep { color: #fff; background: #d81b9a; }

.fgy-b-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #666; font-size: 13px; line-height: 20px; }
.fgy-b-meta > span { display: inline-flex; align-items: center; gap: 5px; }

/* Lapozó */
.fgy-b-lapozo { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }

.fgy-ui .fgy-b-lapozo .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	color: #212121;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50px;
}

.fgy-ui .fgy-b-lapozo a.page-numbers:hover { color: var(--b-szin); border-color: var(--b-szin); }
.fgy-ui .fgy-b-lapozo .current { color: #fff; background: var(--b-szin); border-color: var(--b-szin); }
.fgy-ui .fgy-b-lapozo .dots { background: transparent; border-color: transparent; }

/* Bejegyzés */
.fgy-b-cikk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.fgy-b-fo .fgy-k-morzsa { margin: 0; }

.fgy-blog .fgy-b-h1 {
	margin: 12px 0;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 46px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
}

.fgy-b-lead { margin: 0 0 14px; font-size: 18px; font-weight: 500; line-height: 30px; }
.fgy-blog .fgy-b-fokep { display: block; width: 100%; height: auto; margin: 22px 0 0; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }

/* A cikk szövege: a szerkesztő minden formázása. */
.fgy-b-torzs { margin-top: 28px; font-size: 16px; line-height: 30px; }
.fgy-b-torzs > :first-child { margin-top: 0; }

.fgy-b-torzs h2,
.fgy-b-torzs h3,
.fgy-b-torzs h4 {
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
}

.fgy-b-torzs h2 { margin: 34px 0 10px; font-size: 30px; line-height: 1.15; }
.fgy-b-torzs h3 { margin: 24px 0 8px; font-size: 23px; line-height: 1.2; }
.fgy-b-torzs h4 { margin: 20px 0 6px; font-size: 19px; line-height: 1.2; }
.fgy-b-torzs p { margin: 0 0 16px; }
.fgy-b-torzs ul,
.fgy-b-torzs ol { margin: 0 0 16px; padding-left: 24px; }
.fgy-b-torzs li { margin-bottom: 6px; }
.fgy-b-torzs li::marker { color: var(--b-szin); font-weight: 700; }
.fgy-b-torzs strong,
.fgy-b-torzs b { font-weight: 600; }
.fgy-b-torzs a { color: #212121; text-decoration: underline; text-decoration-color: var(--b-szin); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fgy-b-torzs img { max-width: 100%; height: auto; border-radius: 12px; }
.fgy-b-torzs figure { margin: 22px 0; }
.fgy-b-torzs figcaption { margin-top: 6px; color: #666; font-size: 13px; line-height: 20px; }
.fgy-b-torzs table { width: 100%; margin: 6px 0 20px; font-size: 15px; line-height: 24px; border-collapse: collapse; border: 0; background: #fff; }
.fgy-b-torzs th,
.fgy-b-torzs td { padding: 11px 14px; text-align: left; border: 0; border-bottom: 1px solid #eee; }
.fgy-b-torzs th,
.fgy-b-torzs thead td { font-weight: 600; background: var(--b-ido); }
.fgy-b-torzs .wp-block-table { margin: 6px 0 20px; overflow-x: auto; }
.fgy-b-torzs .wp-block-table table { margin: 0; }

.fgy-b-torzs blockquote {
	margin: 22px 0;
	padding: 18px 22px;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 30px;
	background: #fff;
	border-left: 4px solid var(--b-szin);
	border-radius: 0 12px 12px 0;
}

.fgy-b-torzs blockquote p:last-child { margin-bottom: 0; }

.fgy-b-cimkek { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

.fgy-ui .fgy-b-cimkek a {
	padding: 8px 12px;
	color: #212121;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50px;
}

.fgy-ui .fgy-b-cimkek a:hover { color: var(--b-szin); border-color: var(--b-szin); }

.fgy-b-figy {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	padding: 16px 18px;
	font-size: 14px;
	line-height: 22px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 12px;
}

.fgy-b-figy svg { flex: none; margin-top: 1px; color: #856404; }

/* Oldalsáv: képes shop-dobozok és a cikk termékei */
.fgy-b-oldal { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 15px; }

.fgy-ui .fgy-b-promo {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 250px;
	padding: 22px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: #212121;
	border-radius: 20px;
}

.fgy-ui .fgy-b-promo:hover { color: #fff; }
.fgy-b-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.fgy-b-promo:hover img { transform: scale(1.06); }
.fgy-b-promo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%); }
.fgy-b-promo-test { position: relative; z-index: 1; display: block; }
.fgy-b-promo b { display: block; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 28px; font-style: italic; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.fgy-b-promo-szoveg { display: block; margin: 6px 0 14px; font-size: 14px; line-height: 21px; }

.fgy-b-promo-gomb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 8px 16px;
	color: var(--b-gomb-ink);
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 17px;
	font-style: italic;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--b-gomb);
	border-radius: 12px;
}

.fgy-b-doboz { padding: 20px; background: #fff; border-radius: 20px; }

.fgy-blog .fgy-b-doboz-cim {
	margin: 0 0 4px;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 22px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.fgy-b-term { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #eee; }
.fgy-b-term img { display: block; width: 64px; height: 64px; object-fit: cover; background: #f7f8f9; border-radius: 10px; }

.fgy-ui .fgy-b-term-nev {
	display: block;
	color: #212121;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 17px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.15;
	text-decoration: none;
	text-transform: uppercase;
}

.fgy-b-term-sor { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fgy-b-term-ar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.fgy-b-term-ar .fgy-t-ar-uj { color: #212121; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 20px; font-style: italic; font-weight: 800; line-height: 1; }
.fgy-b-term-ar .fgy-t-ar-akcio { color: var(--b-akcio); }
.fgy-b-term-ar .fgy-t-ar-regi { color: #888; font-size: 12px; }
.fgy-b-term-ar .fgy-t-szaz { display: none; }

.fgy-ui .fgy-b-term-gomb {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 36px;
	padding: 6px 12px;
	color: var(--b-gomb-ink);
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 15px;
	font-style: italic;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--b-gomb);
	border-radius: 10px;
}

.fgy-ui .fgy-b-term-gomb:hover { color: var(--b-gomb-ink); background: var(--b-gomb-hover); }
.fgy-ui .fgy-b-term-gomb.loading { opacity: 0.6; pointer-events: none; }
.fgy-b-term .added_to_cart { display: none; }

@media (max-width: 1024px) {
	.fgy-b-cikk { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
	.fgy-b-racs { gap: 15px; }
}

@media (max-width: 860px) {
	.fgy-b-racs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fgy-b-cikk { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.fgy-b-oldal { position: static; margin-top: 25px; }
}

@media (max-width: 768px) {
	.fgy-b-racs { grid-template-columns: minmax(0, 1fr); }
	.fgy-blog .fgy-b-kartya-cim { font-size: 21px; }
	.fgy-blog .fgy-b-h1 { font-size: 32px; }
	.fgy-b-lead { font-size: 16px; line-height: 27px; }
	.fgy-b-torzs h2 { font-size: 25px; }
	.fgy-b-torzs h3 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
	.fgy-ui .fgy-b-kartya,
	.fgy-b-promo img { transition: none; }
	.fgy-ui .fgy-b-kartya:hover { transform: none; }
}

/* A „termékes” címsorok a Bolt oldalára mutatnak (inc/blog.php: fgy_b_cim_termek_link). */
.fgy-b-torzs a.fgy-b-cim-link { color: inherit; text-decoration: none; }
.fgy-b-torzs a.fgy-b-cim-link::after { content: " →"; color: #566559; transition: transform 0.15s ease; display: inline-block; }
.fgy-b-torzs a.fgy-b-cim-link:hover,
.fgy-b-torzs a.fgy-b-cim-link:focus-visible { color: #566559; }
.fgy-b-torzs a.fgy-b-cim-link:hover::after,
.fgy-b-torzs a.fgy-b-cim-link:focus-visible::after { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.fgy-b-torzs a.fgy-b-cim-link::after { transition: none; }
	.fgy-b-torzs a.fgy-b-cim-link:hover::after { transform: none; }
}
