/* akcio gyereksablon – a blog (bl-), a 2+1 ajánlat (a21-) és a márkalogó (ml-) WordPress-illesztése.
   A vászon CSS-e (akcio-blog.css) változatlan; minden eltérés itt van. 2026-11-25 */

/* ===== kártyakép valódi <img>-gel (a vászonon ikonos helyőrző) ===== */
.bl-kartya__kep { overflow: hidden; }
.bl-kartya__kep .bl-kat { z-index: 1; }
.bl-kartya__kep img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .4s ease; }
.bl-kartya:hover .bl-kartya__kep img, .bl-kiemelt:hover .bl-kartya__kep img { transform: scale(1.03); }
.bl-kiemelt .bl-kartya__kep { position: relative; }
.bl-kiemelt:hover { border-color: var(--lila-keret); box-shadow: var(--arnyek-emelt); }
.bl-kartya__cim, .bl-kiemelt h2 { overflow-wrap: anywhere; }

/* lista fej: a bevezető több bekezdés is lehet */
.bl-oldalfej__bev > * { margin: 8px 0 0; }
.bl-oldalfej__bev a { color: var(--lila-sotet); }
.bl-ures { padding: 30px; text-align: center; color: var(--tinta-szoveg); }
.bl-ures a { color: var(--lila-sotet); font-weight: 600; }

/* lapozó: a WordPress „…” eleme */
.bl-lapozo .dots { border-color: transparent; background: transparent; }
.bl-lapozo a:hover { border-color: var(--lila); color: var(--lila-sotet); }
.bl-lapozo--cikk { justify-content: flex-start; margin: 20px 0 0; }

/* [custom_posts] oszlopszám (asztalon) és lábléc-link */
@media (min-width: 1101px) {
	.bl-racs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bl-racs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.bl-racs--4 .bl-kartya__cim { font-size: 17px; }
}
.bl-blokk + .bl-blokk { margin-top: 40px; }
.bl-blokk-lab { margin: 18px 0 0; text-align: right; }
.bl-blokk-lab a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--lila-sotet); text-decoration: none; }
.bl-blokk-lab .ak-ikon { width: 16px; height: 16px; }

/* ===== cikk ===== */
.bl-cikk__kep.van-kep { overflow: hidden; }
.bl-cikk__kep img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-cikk__fej .bl-kat { text-decoration: none; }
.bl-cikk__fej .bl-kat:hover { background: var(--lila-kiemelo); }
.bl-tartalom > :last-child { margin-bottom: 0; }
.bl-tartalom a { color: var(--lila-sotet); text-underline-offset: 2px; }
.bl-tartalom ol { margin: 0 0 18px; padding-left: 22px; }
.bl-tartalom ol li::marker { color: var(--lila); font-weight: 700; }
.bl-tartalom img { max-width: 100%; height: auto; border-radius: var(--kerekites-8); }
.bl-tartalom figure { margin: 26px 0; }
.bl-tartalom figcaption { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--tinta-halvany); text-align: center; }
.bl-tartalom blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--lila-keret); font-style: normal; color: var(--tinta-cimsor); }
.bl-tartalom table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.bl-tartalom th, .bl-tartalom td { padding: 8px 10px; border: 1px solid var(--keret-halk); text-align: left; }
.bl-tartalom .wp-block-group.is-style-akcio-fontos > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* ajánlott termék: valódi kép, link a kép */
.bl-ajanlott__kep { overflow: hidden; }
.bl-ajanlott__kep img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--kerekites-8); }
.bl-ajanlott .ac-ar { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bl-ajanlott .ac-ar small { margin-left: 3px; font-size: 13px; font-weight: 600; color: var(--tinta-halvany); }
.bl-ajanlott .ac-ar del { font-size: 14px; color: var(--tinta-athuzott); }
.bl-tartalom .bl-ajanlott .ac-kosar { text-decoration: none; white-space: nowrap; color: #fff; }
.bl-tartalom .bl-ajanlott a { text-decoration: none; }
.bl-ajanlott b { line-height: 1.35; }
.bl-cikk__lab .bl-figyelmeztetes { margin-left: auto; }

/* ===== márkalogó (kártya, Akciók kártya, termékoldal) ===== */
.ml-logo .ml-logo-kep { display: block; height: 22px; width: auto; max-width: 120px; object-fit: contain; }
.ml-logo:has(.ml-logo-kep) { height: auto; min-height: 30px; padding: 3px 8px; }
.akt-info > .ml-logo, .ac-kartya__marka.ml-logo { justify-self: start; align-self: start; }
.tt-marka.tt-marka--logo { padding: 3px 10px; }
.tt-marka.tt-marka--logo .ml-logo-kep { height: 26px; max-width: 140px; }
.tt-marka.tt-marka--logo:hover { border-color: var(--lila-keret); }

/* ===== 2+1 ajánlat ===== */
.a21-lepes[style*="--a21-db"] { grid-template-columns: repeat(var(--a21-db), minmax(0, 1fr)); }
.a21-lepes span { transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.tt-urlap .a21-doboz { margin: 4px 0 14px; }
.akt-jelek .a21-jel { padding: 3px 9px 3px 4px; font-weight: 700; }
.akt-jelek .a21-jel b { font-size: 11px; line-height: 1.4; }
.ak-tetel .a21-ingyen { display: inline-block; justify-self: start; margin: 2px 0 4px; padding: 1px 8px; border-radius: 999px; background: var(--lila); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.ak-tetel .a21-tipp { grid-column: 1 / -1; margin: 6px 0 0; padding: 8px 10px; border-radius: var(--kerekites-6); background: var(--lila-suttogo); border: 1px dashed var(--lila-keret); font-size: 13px; line-height: 18px; }
.ak-tetel .a21-tipp .ak-ikon { width: 16px; height: 16px; }

@media (max-width: 640px) {
	.bl-cikk__lab .bl-figyelmeztetes { margin-left: 0; }
	.bl-ajanlott .ac-kosar { width: 100%; }
	.a21-lepes[style*="--a21-db"] { grid-template-columns: repeat(min(var(--a21-db), 3), minmax(0, 1fr)); }
}
