
    :root{ --snack-extra-bottom: 0px; }

    /* ===== Snackbar (safe-area friendly) ===== */
    .kedvenc-snackbar {
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: calc(16px + var(--snack-extra-bottom) + env(safe-area-inset-bottom, 0px));
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: #111827;
      color: #fff;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,.25);
      z-index: 9999;
      transform: translateY(120%);
      transition: transform .35s ease, opacity .35s ease;
      opacity: 0;
    }
    .kedvenc-snackbar.show { transform: translateY(0); opacity: 1; }

    .kedvenc-snackbar .msg {
      font-weight: 600;
      line-height: 1.2;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* Számláló badge */
    .kedvenc-snackbar .count-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #f3f4f6;
      color: #111827;
      padding: 5px 10px;
      border-radius: 999px;
      font-weight: 700;
      line-height: 1;
      user-select: none;
    }
    .kedvenc-snackbar .count-badge .count {
      min-width: 1ch;
      text-align: right;
      display: inline-block;
    }

    /* Count highlight animáció változáskor */
    .kedvenc-snackbar .count-badge.bump {
      animation: count-bump 500ms ease;
    }
    @keyframes count-bump {
      0%   { transform: scale(1); box-shadow: 0 0 0 rgba(16,185,129,0); }
      30%  { transform: scale(1.12); box-shadow: 0 0 0 rgba(16,185,129,0.25); }
      100% { transform: scale(1); box-shadow: 0 0 0 rgba(16,185,129,0); }
    }

    /* Rövid státusz-szöveg (Hozzáadva / Eltávolítva) halványan, automatikus fakulással */
    .kedvenc-snackbar .status {
      font-size: 12px;
      color: #e5e7eb;
      opacity: 0;
      transition: opacity .25s ease;
    }
    .kedvenc-snackbar .status.show { opacity: 1; }

    .kedvenc-snackbar .btn-link {
      border: 0; background: transparent; cursor: pointer;
      font-weight: 700; text-decoration: underline; padding: 6px 8px; color: #a7f3d0;
    }
    .kedvenc-snackbar .close-x {
      margin-left: auto; background: transparent; border: 0;
      color: #9ca3af; font-size: 18px; line-height: 1; cursor: pointer;
    }

    /* ===== Szív gombok ===== */
    .kedvenc-gomb {
      font-size: 22px; line-height: 1; width: 36px; height: 36px; border-radius: 50%;
      border: 1px solid #e5e7eb; background: #fff; display: inline-flex; align-items: center; justify-content: center;
      transition: transform .12s ease;
    }
    .kedvenc-gomb:hover { transform: scale(1.06); }
    .kedvenc-gomb.kedvenc-aktiv { border-color: #ef4444; background: #fff0f0; }
    .kedvenc-gomb.pulse { animation: pulse .4s ease; }
    @keyframes pulse { 0%{transform:scale(.9)}60%{transform:scale(1.15)}100%{transform:scale(1)} }

    /* Mini szív „konfetti” */
    .heart-burst {
      position: absolute; font-size: 14px; pointer-events: none;
      animation: burst 700ms ease forwards; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
    }
    @keyframes burst {
      0% { transform: translate(0,0) scale(0.6); opacity: 0; }
      20% { opacity: 1; }
      100% { transform: translate(var(--tx), var(--ty)) scale(1.1) rotate(var(--rot)); opacity: 0; }
    }

    /* Végtelen betöltés: önálló, stabil magazinrács */
    #egeszseg-lista { display:block; width:100%; min-width:0; }
    #egeszseg-lista > .eg-grid { display:grid; width:100%; gap:22px; margin-bottom:26px; }
    #egeszseg-lista > .eg-top { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    #egeszseg-lista > .eg-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #egeszseg-lista > .eg-rowfour { grid-template-columns:repeat(4,minmax(0,1fr)); }
    #egeszseg-lista .eg-four { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
    #egeszseg-lista .eg-card { min-width:0; }
    @media(max-width:991.98px) {
      #egeszseg-lista > .eg-top { grid-template-columns:minmax(0,1fr); }
      #egeszseg-lista > .eg-rowfour { grid-template-columns:repeat(2,minmax(0,1fr)); }
    }
    @media(max-width:575.98px) {
      #egeszseg-lista > .eg-grid { gap:14px; margin-bottom:18px; }
      #egeszseg-lista > .eg-two { grid-template-columns:minmax(0,1fr); }
      #egeszseg-lista .eg-four { gap:12px; }
      #egeszseg-lista > .eg-rowfour { grid-template-columns:repeat(2,minmax(0,1fr)); }
    }

    /* Új egészség magazin */
    .eg-grid{display:grid;gap:22px;margin-bottom:26px}
    .eg-top{grid-template-columns:1fr 1fr;align-items:stretch}
    .eg-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
    .eg-two{grid-template-columns:repeat(2,minmax(0,1fr))}
    .eg-rowfour{grid-template-columns:repeat(4,minmax(0,1fr))}
    .eg-card{min-width:0;background:#fff;border:1px solid #e6eae5;border-radius:16px;overflow:hidden;box-shadow:0 5px 20px rgba(22,43,27,.055);height:100%}
    .eg-card a{text-decoration:none;color:#1d3023}
    .eg-card a:hover{color:#386c44}
    .eg-photo{display:block;overflow:hidden;background:#eef3ec}
    .eg-photo picture,.eg-photo img{display:block;width:100%}
    .eg-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
    .eg-card:hover .eg-photo img{transform:scale(1.035)}
    .eg-large .eg-photo{height:390px}
    .eg-small .eg-photo{height:142px}
    .eg-medium .eg-photo{height:265px}
    .eg-mini .eg-photo{height:160px}
    .eg-card-body{padding:16px 18px 20px}
    .eg-small .eg-card-body,.eg-mini .eg-card-body{padding:12px 14px 15px}
    .eg-title{font-size:1.12rem;line-height:1.35;font-weight:750;margin:0}
    .eg-large .eg-title{font-size:clamp(1.5rem,2.2vw,2rem)}
    .eg-medium .eg-title{font-size:1.35rem}
    .eg-small .eg-title,.eg-mini .eg-title{font-size:.99rem}
    .eg-subtitle{margin:9px 0 0;color:#66756b;font-size:.95rem;line-height:1.5}
    .eg-divider{display:flex;align-items:center;gap:16px;margin:36px 0 24px;color:#386c44;font-weight:750;font-size:1.1rem}
    .eg-divider:before,.eg-divider:after{content:'';height:1px;background:#cfdccf;flex:1}
    .eg-author{display:grid;grid-template-columns:minmax(180px,30%) 1fr;gap:30px;align-items:center;padding:28px;border-radius:22px;background:#f0f5ef;margin:36px 0}
    .eg-author-photo{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:#dce8dc}
    .eg-author h2{font-weight:800;color:#1d3023}
    .eg-author p{color:#536457;line-height:1.7}
    .eg-author .btn{background:#376a44;border-color:#376a44;color:#fff}
    @media(max-width:991.98px){.eg-top{grid-template-columns:1fr}.eg-large .eg-photo{height:350px}.eg-small .eg-photo{height:190px}.eg-rowfour{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:575.98px){.eg-grid{gap:14px;margin-bottom:18px}.eg-four{gap:12px}.eg-two{grid-template-columns:1fr}.eg-rowfour{gap:12px}.eg-large .eg-photo{height:250px}.eg-small .eg-photo{height:125px}.eg-medium .eg-photo{height:220px}.eg-mini .eg-photo{height:125px}.eg-card-body{padding:13px}.eg-small .eg-title,.eg-mini .eg-title{font-size:.9rem}.eg-medium .eg-title{font-size:1.15rem}.eg-author{grid-template-columns:1fr;text-align:center;padding:20px;gap:18px}.eg-author-photo{max-width:220px;margin:auto}.eg-divider{font-size:1rem}}

	/* Képek függőleges középre igazítása */
.eg-image,
.eg-picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* A kép arányainak megtartása */
.eg-image img,
.eg-picture img {
    object-position: center center;
}


/* Képek középre igazítása a zöld képkeretben */

.eg-photo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.eg-photo picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
}

.eg-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
}


    /* Szerzői bemutatkozás – természetes, modern magazinkártya */
    .eg-author{
      position:relative;display:grid;grid-template-columns:minmax(190px,29%) minmax(0,1fr);
      gap:clamp(22px,4vw,46px);align-items:center;
      padding:clamp(22px,4vw,42px);margin:42px 0;
      background:linear-gradient(135deg,#f0f6ed 0%,#f8faf4 100%);
      border:1px solid #dce9d8;border-radius:26px;
      box-shadow:0 14px 42px rgba(32,67,38,.07);
    }
    .eg-author-portrait{min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:center}
    .eg-author-photo{display:block;width:100%;max-width:300px;aspect-ratio:1/1;object-fit:cover;
      border-radius:22px;background:#dce8dc;box-shadow:0 12px 26px rgba(33,63,37,.13)}
    .eg-author-content{min-width:0}
    .eg-author-eyebrow{display:inline-block;color:#47704c;font-size:.76rem;font-weight:800;
      letter-spacing:.1em;text-transform:uppercase;margin-bottom:8px}
    .eg-author h2{font-size:clamp(1.45rem,2.4vw,2rem);line-height:1.2;letter-spacing:-.025em;
      color:#203d29;font-weight:800;margin:0 0 13px}
    .eg-author h3{color:#31573a;font-size:clamp(1.03rem,1.6vw,1.18rem);
      line-height:1.5;font-weight:700;margin:0 0 15px!important}
    .eg-author p{color:#4b5d4e;line-height:1.8;font-size:1rem;margin:0 0 14px}
    .eg-author .eg-author-more p:last-child{margin-bottom:18px}
    .eg-author .eg-author-toggle{display:inline-flex;align-items:center;justify-content:center;
      gap:8px;border:1px solid #376a44;background:#376a44;color:white;
      padding:10px 22px;border-radius:999px;font-weight:700;margin-top:5px;
      transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
    .eg-author .eg-author-toggle:hover,.eg-author .eg-author-toggle:focus-visible{
      background:#285333;color:#fff;transform:translateY(-1px);box-shadow:0 6px 16px rgba(40,83,51,.16)}
    .eg-author .eg-author-toggle:focus-visible{outline:3px solid #8bbd92;outline-offset:3px}
    @media(max-width:575.98px){
      .eg-author{grid-template-columns:1fr;gap:18px;padding:24px 20px;text-align:center;border-radius:22px;margin:30px 0}
      .eg-author-portrait{align-self:auto}
      .eg-author-photo{max-width:205px;border-radius:20px}
      .eg-author h2{margin-bottom:12px}
      .eg-author p{text-align:left;font-size:.96rem}
    }
/* Szerző bemutatkozásának szövegszíne */
.eg-author p,
.eg-author .collapse p {
    color: #374151 !important;
}
