/* =========================================================
   myg-recipe-custom.css  |  Single recept (/recept/{slug}/)
   TISZTÍTOTT, DUPLIKÁCIÓMENTES VERZIÓ
   ========================================================= */

/* Biztonsági scope: csak a recept oldalon hasson */
.myg-recipe-single {
  --myg-card-radius: 20px;
  --myg-card-radius-sm: 14px;
  --myg-card-shadow: 0 10px 30px rgba(0,0,0,.08);
  --myg-border: 1px solid rgba(0,0,0,.07);
  --myg-soft-bg: rgba(255,255,255,.92);
  --myg-accent: #ff8630;
  --myg-accent-w: 8px;
  --myg-row-radius: 16px;
  --myg-font-head: "Poppins", sans-serif;
}

/* ---------------------------------------------------------
   1. ALAP KONTÉNEREK ÉS HÁTTÉR
   --------------------------------------------------------- */

/* Fő konténer és a külső keretek tisztítása */
.myg-recipe-single .myg-recipe-container,
.myg-recipe-single .entry-content,
.myg-recipe-single .site-content {
  /* Itt növeltem meg 1100-ról 1320px-re a szélességet */
  max-width: 1320px !important; 
  margin: 0 auto;
  padding: 18px;
  
  /* Szlogen javítás miatti nullázás */
  margin-top: 0 !important;
  padding-top: 0 !important;
  
  /* Háttér tisztítás (dupla keret ellen) */
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Fő kártya stílus - CSAK EZEN LEGYEN HÁTTÉR ÉS KERET */
.myg-recipe-single .myg-recipe-article {
  background: var(--myg-soft-bg);
  border: var(--myg-border);
  border-radius: var(--myg-card-radius);
  box-shadow: var(--myg-card-shadow);
  padding: 22px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* Szlogen / Wallpaper javítás */
.myg-slogan-wallpaper-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0px !important;
  padding-top: 0px !important;
  position: relative;
  z-index: 10;
}

.myg-recipe-slogan-spacer {
  display: block !important;
  height: 40px !important;
  width: 100%;
}

.myg-recipe-article .mygasztro-section-title {
  display: none !important;
}

/* ---------------------------------------------------------
   2. FELSŐ SZEKCIÓ (HEADER) - TISZTA, ABSZOLÚT IGAZÍTÁS
   --------------------------------------------------------- */
.myg-recipe-single .myg-header {
  margin-bottom: 22px;
}

/* --- 2 OSZLOPOS GRID --- */
.myg-recipe-single .myg-header-two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* Ideális arány */
  gap: 30px;
  align-items: stretch !important; /* Egyforma magasság */
  position: relative; /* Referencia pont */
}

/* --- BAL OSZLOP: KÉP --- */
.myg-recipe-single .myg-header-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.myg-recipe-single .myg-featured-image {
  width: 100%;
  aspect-ratio: 1 / 1 !important; /* Négyzet */
  height: auto !important;
  border-radius: var(--myg-card-radius);
  overflow: hidden;
  background: rgba(0,0,0,.04);
  position: relative;
  margin: 0 !important;
}

.myg-recipe-single .myg-featured-image img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block;
}

/* --- JOBB OSZLOP: TARTALOM --- */
.myg-recipe-single .myg-header-right {
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  position: relative !important; /* FONTOS: Ez a horgony */
  /* Alul helyet hagyunk a gomboknak/üzenetnek, hogy ne csússzanak össze a szöveggel */
  padding-bottom: 70px !important; 
  gap: 18px !important;
}

/* --- CÍM, META, TÁPÉRTÉK (A tartalmi elemek) --- */
.myg-recipe-single .myg-title-card {
  background: #fff; border: var(--myg-border); border-radius: var(--myg-card-radius);
  padding: 14px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.06);
  display: flex; flex-direction: column; justify-content: center; min-height: 90px;
}

.myg-recipe-single .myg-recipe-title {
  margin: 0 auto; text-align: center; font-size: 24px; line-height: 1.25;
  font-weight: 600; letter-spacing: -0.01em; height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}

.myg-recipe-single .myg-recipe-meta.myg-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.myg-recipe-single .myg-meta-item {
  background: #fff; border: var(--myg-border); border-radius: 14px;
  padding: 10px; display: grid; gap: 4px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.myg-recipe-single .myg-meta-label { font-size: 11px; opacity: .7; }
.myg-recipe-single .myg-meta-value { font-size: 15px; font-weight: 600; }

.myg-recipe-single .myg-nutrition-header-box {
  background: rgba(255, 243, 224, .9); border: 1px solid rgba(255, 134, 48, .35);
  border-radius: var(--myg-card-radius); padding: 12px; min-height: 140px;
}
.myg-recipe-single .myg-nutrition-header-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.myg-recipe-single .myg-nutrition-header-item {
  background: #fff; border: var(--myg-border); border-radius: 12px;
  padding: 8px 4px; box-shadow: 0 3px 10px rgba(0,0,0,.05); text-align: center;
}
.myg-recipe-single .myg-nutrition-header-value { font-weight: 900; font-size: 15px; display: block;}
.myg-recipe-single .myg-nutrition-header-label { font-size: 10px; opacity: .7; display: block; margin-top: 4px; }
/* Patch: Szénhidrát középre */
.myg-recipe-single .myg-nutrition-header-grid .myg-nutrition-header-item:nth-child(3) .myg-nutrition-header-label {
  display: flex !important; justify-content: center !important; width: 100% !important;
}

/* --- AZ IGAZÍTÁS JAVÍTÁSA (ABSZOLÚT POZÍCIÓ) --- */
/* Ez a blokk mostantól "lebeg" a jobb oldali oszlop alján */
.myg-recipe-single .myg-header-actions {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 20;
}

/* HA GOMBOK VANNAK */
.myg-recipe-single .myg-header-actions:has(.myg-action-btn) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* HA VENDÉG ÜZENET VAN */
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)) {
  display: block !important;
}

/* GOMBOK STÍLUSA */
.myg-recipe-single .myg-action-btn,
.myg-recipe-single button.myg-action-btn,
.myg-recipe-single .myg-header-actions .myg-btn {
  width: 100% !important;
  height: 48px !important;
  border-radius: 8px !important;
  background: #ff8630 !important; color: #fff !important;
  font-weight: 600 !important; font-size: 14px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border: none !important; box-shadow: 0 4px 10px rgba(255, 134, 48, 0.2) !important;
}
.myg-recipe-single .myg-action-btn svg { fill: #fff !important; width: 20px; }

/* VENDÉG ÜZENET STÍLUSA */
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn))::before {
  content: "Silver / Gold / Diamond tagsággal a recept menthető, szerkeszthető, listához adható, étrendbe illeszthető, vagy naplózható! 👉 Tudj meg többet!";
  display: block;
  background: rgba(255, 134, 48, 0.02);
  border: 1px dashed rgba(255, 134, 48, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  color: #666; font-size: 14px; line-height: 1.35; text-align: center; font-style: italic;
  box-sizing: border-box !important;
  /* Mivel abszolút pozícióban vagyunk, biztosítjuk a magasságot */
  min-height: 48px; display: flex; align-items: center; justify-content: center;
}
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)):hover::before {
  background: rgba(255, 134, 48, 0.08); border-color: rgba(255, 134, 48, 0.5);
  color: #ff8630; text-decoration: underline;
}

/* ---------------------------------------------------------
   3. CÍMKÁRTYA ÉS META ADATOK
   --------------------------------------------------------- */
.myg-recipe-single .myg-title-card {
  background: #fff;
  border: var(--myg-border);
  border-radius: var(--myg-card-radius);
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.myg-recipe-single .myg-recipe-title {
  margin: 0 auto;
  text-align: center;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.01em;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Meta Grid */
.myg-recipe-single .myg-recipe-meta.myg-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.myg-recipe-single .myg-meta-item {
  background: #fff;
  border: var(--myg-border);
  border-radius: var(--myg-card-radius-sm);
  padding: 12px;
  display: grid;
  gap: 6px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.myg-recipe-single .myg-meta-label { font-size: 11px; letter-spacing: .08em; opacity: .7; }
.myg-recipe-single .myg-meta-value { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------------------------------------------------
   4. TÁPÉRTÉK DOBOZ
   --------------------------------------------------------- */
.myg-recipe-single .myg-nutrition-header-box {
  background: rgba(255, 243, 224, .9);
  border: 1px solid rgba(255, 134, 48, .35);
  border-radius: var(--myg-card-radius);
  padding: 14px;
  min-height: 150px;
  padding-bottom: 22px;
}

.myg-recipe-single .myg-nutrition-header-title {
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
  opacity: .85;
}

.myg-recipe-single .myg-nutrition-header-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.myg-recipe-single .myg-nutrition-header-item {
  background: #fff;
  border: var(--myg-border);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.myg-recipe-single .myg-nutrition-header-value {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
  width: 100%;
  text-align: center;
}

.myg-recipe-single .myg-nutrition-header-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .7;
  width: 100%;
  text-align: center;
  padding: 0 !important;
}

/* Patch: Szénhidrát címke középre */
.myg-recipe-single .myg-nutrition-header-grid .myg-nutrition-header-item:nth-child(3) .myg-nutrition-header-label {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 4px !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

/* ---------------------------------------------------------
   5. GOMBOK (ACTIONS) - JAVÍTOTT POZÍCIÓ
   --------------------------------------------------------- */
.myg-recipe-single .myg-header-actions {
  /* JAVÍTÁS: Ez tolja le a gombokat az aljára */
  margin-top: auto !important; 
  
  display: grid !important;
  grid-template-columns: 1fr 1fr !important; /* Egymás mellett desktopon */
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
}

/* Gomb stílusok (egységesítve a fájl végéről) */
.myg-recipe-single .myg-action-btn,
.myg-recipe-single button.myg-action-btn,
.myg-recipe-single .myg-header-actions .myg-btn,
.myg-recipe-single .myg-header-actions button,
.myg-recipe-single .myg-header-actions a.myg-action-btn {
  font-family: var(--myg-font-head) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  min-height: 48px !important;
  border: 0 !important;
  box-shadow: 0 4px 10px rgba(255, 134, 48, 0.2) !important;
  transition: transform .12s ease, filter .12s ease;
  white-space: nowrap;
  
  /* Színek */
  background: #ff8630 !important;
  color: #fff !important;
}

.myg-recipe-single .myg-action-btn:hover,
.myg-recipe-single .myg-header-actions button:hover {
  transform: translateY(-2px) !important;
  background: #e67322 !important;
}

/* Ikonok */
.myg-recipe-single .myg-action-btn *,
.myg-recipe-single .myg-action-btn svg,
.myg-recipe-single .myg-header-actions svg,
.myg-recipe-single .myg-header-actions i {
  fill: #fff !important;
  color: #fff !important;
  filter: brightness(0) invert(1) !important;
  width: 20px !important; height: 20px !important;
}

/* Vendég üzenet */
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)) {
  display: block !important;
  grid-template-columns: 1fr !important;
  cursor: pointer !important;
  margin-top: -5px !important;
  position: relative;
  z-index: 10;
}

.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn))::before {
  content: "Silver / Gold / Diamond tagsággal a recept menthető, szerkeszthető, listához adható, étrendbe illeszthető, vagy naplózható! 👉 Tudj meg többet!";
  display: block;
  background: rgba(255, 134, 48, 0.02);
  border: 1px dashed rgba(255, 134, 48, 0.25);
  border-radius: 12px;
  padding: 6px 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  font-style: italic;
  width: 100%;
  transition: all 0.2s ease;
}

.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)):hover::before {
  background: rgba(255, 134, 48, 0.08);
  border-color: rgba(255, 134, 48, 0.5);
  color: #ff8630;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   6. TARTALMI SZEKCIÓK (Hozzávalók, Elkészítés)
   --------------------------------------------------------- */
.myg-recipe-single .myg-recipe-article :is(h2,h3):not(.myg-recipe-title) {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(20px, 1.15vw + 12px, 24px);
  border-bottom: 3px solid #ff8a3d;
  padding-bottom: 0.5rem;
  margin: 2.4rem 0 1.5rem;
  display: flex;
  align-items: center;
  position: relative;
}
.myg-recipe-single .myg-recipe-article :is(h2,h3):not(.myg-recipe-title):first-of-type { margin-top: 1.6rem; }

/* HOZZÁVALÓK */
.myg-recipe-single .myg-ingredients-list {
  list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 14px;
}
.myg-recipe-single .myg-ingredients-list .ingredient-item {
  position: relative; background: #fff; border: var(--myg-border); border-radius: var(--myg-row-radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.06); padding: 14px 16px 14px calc(var(--myg-accent-w) + 18px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; overflow: hidden;
}
.myg-recipe-single .myg-ingredients-list .ingredient-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--myg-accent-w);
  background: var(--myg-accent); border-radius: var(--myg-row-radius) 0 0 var(--myg-row-radius);
}
.myg-recipe-single .myg-ingredients-list .ingredient-main {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0;
}
.myg-recipe-single .myg-ingredients-list .ingredient-quantity,
.myg-recipe-single .myg-ingredients-list .ingredient-unit {
  color: var(--myg-accent) !important; font-weight: 800 !important;
}
.myg-recipe-single .myg-ingredients-list .ingredient-name {
  font-weight: normal; color: #222; min-width: 0;
}
.myg-recipe-single .myg-ingredients-list .ingredient-kcal {
  margin-left: auto; background: rgba(0,0,0,.06); border-radius: 999px; padding: 8px 12px; font-size: 14px; opacity: .85;
}

/* ELKÉSZÍTÉS */
.myg-recipe-single .myg-steps-list {
  list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 14px; counter-reset: mygstep;
}
.myg-recipe-single .myg-steps-list .step-item {
  counter-increment: mygstep; position: relative; background: #fff; border: var(--myg-border); border-radius: var(--myg-row-radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.06); overflow: hidden; padding: 14px 16px 14px calc(var(--myg-accent-w) + 56px);
}
.myg-recipe-single .myg-steps-list .step-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--myg-accent-w);
  background: var(--myg-accent); border-radius: var(--myg-row-radius) 0 0 var(--myg-row-radius);
}
.myg-recipe-single .myg-steps-list .step-item::after {
  content: counter(mygstep) "."; position: absolute; left: calc(var(--myg-accent-w) + 20px); top: 50%; transform: translateY(-50%);
  font-weight: 900; color: var(--myg-accent); font-size: 16px;
}
.myg-recipe-single .myg-steps-list .step-description {
  font-size: 16px; line-height: 1.5; color: #222;
}

/* MEGJEGYZÉS */
.myg-recipe-single .myg-notes-content {
  position: relative; background: #fff; border: var(--myg-border); border-radius: var(--myg-row-radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.06); padding: 14px 16px 14px calc(var(--myg-accent-w) + 18px); line-height: 1.55;
}
.myg-recipe-single .myg-notes-content::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--myg-accent-w);
  background: var(--myg-accent); border-radius: var(--myg-row-radius) 0 0 var(--myg-row-radius);
}

/* VISSZA GOMB */
.myg-recipe-single p.recipe-back-link.myg-back-link {
  margin-top: 26px !important; padding-top: 26px !important; display: flex !important; justify-content: center !important;
}
.myg-recipe-single p.recipe-back-link.myg-back-link > a.myg-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  text-decoration: none !important; border: 0 !important; border-radius: 14px !important; padding: 12px 18px !important;
  background: #ff8630 !important; color: #fff !important; box-shadow: 0 6px 16px rgba(0,0,0,.08) !important;
  font-size: 15px !important; font-weight: 700 !important; min-width: 280px !important;
}

/* ---------------------------------------------------------
   7. LISTA VÁLASZTÓ MODAL (TISZTÍTOTT, FIXÁLT)
   --------------------------------------------------------- */
.myg-list-select-modal {
  position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6) !important; backdrop-filter: blur(3px); z-index: 999999 !important;
}

.myg-list-select-modal__content {
  position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important;
  width: 90% !important; max-width: 480px !important; max-height: 90vh !important;
  background: #ffffff !important; padding: 24px !important; border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important; border: 1px solid rgba(0,0,0,0.05) !important;
  z-index: 100000 !important; display: flex !important; flex-direction: column !important; box-sizing: border-box !important;
}

.myg-list-select-modal__title {
  margin: 0 0 15px 0 !important; padding-right: 30px !important; font-size: 20px !important;
  font-weight: 700 !important; color: #333 !important; text-align: center !important; line-height: 1.3 !important;
}

.myg-list-select-modal__close {
  position: absolute !important; top: 15px !important; right: 15px !important;
  background: #f1f1f1 !important; color: #666 !important; border: none !important; border-radius: 50% !important;
  width: 32px !important; height: 32px !important; display: flex !important; align-items: center !important;
  justify-content: center !important; font-size: 20px !important; cursor: pointer !important; transition: background 0.2s !important;
}
.myg-list-select-modal__close:hover { background: #e5e5e5 !important; color: #333 !important; }

.myg-list-select-modal__body { display: flex !important; flex-direction: column !important; min-height: 0 !important; flex: 1 !important; }
.myg-list-options { flex: 1 !important; overflow-y: auto !important; max-height: 300px !important; padding-right: 5px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }

.myg-list-option {
  padding: 12px 16px !important; border: 1px solid #eee !important; border-radius: 10px !important;
  background: #fff !important; display: flex !important; justify-content: space-between !important;
  align-items: center !important; cursor: pointer !important; transition: all 0.2s !important;
}
.myg-list-option:hover { border-color: #ff8630 !important; background: #fff8f3 !important; }
.myg-list-option__name { font-weight: 600 !important; color: #333 !important; }
.myg-list-option__count { font-size: 12px !important; background: #f1f1f1 !important; padding: 4px 8px !important; border-radius: 12px !important; color: #666 !important; }

.myg-list-select-modal__divider {
  text-align: center !important; margin: 15px 0 !important; font-size: 12px !important; color: #999 !important;
  font-weight: 600 !important; text-transform: uppercase !important;
}

.myg-list-select-modal__new { display: flex !important; gap: 10px !important; padding-top: 5px !important; align-items: stretch !important; }

#myg-new-list-input {
  flex: 1 !important; height: 44px !important; min-height: 44px !important;
  border: 1px solid #ddd !important; border-radius: 8px !important; padding: 0 12px !important;
  font-size: 14px !important; outline: none !important; box-shadow: none !important; box-sizing: border-box !important;
}
#myg-new-list-input:focus { border-color: #ff8630 !important; }

#myg-create-new-list-btn {
  height: 44px !important; min-height: 44px !important; padding: 0 20px !important;
  background: #ff8630 !important; color: #fff !important; border: none !important; border-radius: 8px !important;
  font-size: 14px !important; font-weight: 700 !important; cursor: pointer !important; white-space: nowrap !important;
}

/* ---------------------------------------------------------
   8. MEDIA QUERIES (TABLET ÉS MOBIL FIX - VÉGLEGES)
   --------------------------------------------------------- */

/* TABLET ÉS MOBIL NÉZET (900px alatt) */
@media (max-width: 900px) {

  /* 1. SZÉLESSÉG JAVÍTÁSA (Hogy ne legyen nagy margó két oldalt) */
  .myg-recipe-single .myg-recipe-container {
    padding-left: 10px !important; /* Kisebb külső margó */
    padding-right: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .myg-recipe-single .myg-recipe-article {
    padding: 20px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* 2. ELRENDEZÉS: EGYMÁS ALÁ */
  .myg-recipe-single .myg-header-two-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* 3. KÉP JAVÍTÁSA TABLETEN ÉS MOBILON (Teljes szélesség) */
  .myg-recipe-single .myg-header-left {
    width: 100% !important; /* Konténer teljes szélesség */
    display: block !important;
    margin-bottom: 10px !important;
  }

  .myg-recipe-single .myg-featured-image {
    width: 100% !important; /* Kép teljes szélesség */
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important; /* Négyzetes marad */
    display: block !important;
    margin: 0 auto !important; /* Középre igazítás biztosíték */
  }

  /* 4. JOBB OLDAL (SZÖVEG) */
  .myg-recipe-single .myg-header-right {
    width: 100% !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    min-height: auto !important; /* Reset fix magasság */
  }

  /* Tartalmi elemek (Cím, Tápérték) rugalmassága */
  .myg-recipe-single .myg-title-card,
  .myg-recipe-single .myg-nutrition-header-box {
    min-height: auto !important;
    height: auto !important;
  }
  
  /* Cím méretének növelése, hogy ne törjön furcsán */
  .myg-recipe-single .myg-recipe-title {
    font-size: 24px !important;
    height: auto !important;
    -webkit-line-clamp: unset !important;
  }

  /* Tápérték rács: 3 oszlop tableten */
  .myg-recipe-single .myg-nutrition-header-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  /* Gombok és Vendég üzenet visszaállítása a folyamba */
  .myg-recipe-single .myg-header-actions {
    position: relative !important;
    bottom: auto !important; left: auto !important;
    width: 100% !important;
    margin-top: 15px !important;
    z-index: 1 !important;
  }
}

/* KIFEJEZETTEN MOBIL (500px alatt) - MÉG SZÉLESEBB MEGJELENÉS */
@media (max-width: 500px) {
  
  /* 1. KÜLSŐ MARGÓK MINIMALIZÁLÁSA (Hogy szélesebb legyen, mint a címsor) */
  .myg-recipe-single .myg-recipe-container {
    padding-left: 5px !important; /* Szinte teljesen kimegy a széléig */
    padding-right: 5px !important;
  }

  .myg-recipe-single .myg-recipe-article {
    padding: 15px !important; /* Belső margó is kisebb */
    border-radius: 12px !important; /* Kisebb kerekítés, hogy ne nézzen ki bután a szélen */
  }

  /* 2. TÁPÉRTÉK JAVÍTÁS (Hogy ne csússzon össze: 2 oszlop) */
  .myg-recipe-single .myg-nutrition-header-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
  }
  
  /* 3. GOMBOK EGYMÁS ALÁ */
  .myg-recipe-single .myg-header-actions:has(.myg-action-btn) {
    grid-template-columns: 1fr !important;
  }
  
  /* 4. HOZZÁVALÓK LISTA MOBILON */
  .myg-recipe-single .myg-ingredients-list .ingredient-item {
    padding-left: 20px !important;
    padding-right: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .myg-recipe-single .myg-ingredients-list .ingredient-main { width: 100%; }
  
  /* 5. MODAL JAVÍTÁS */
  .myg-list-select-modal__content { width: 96% !important; padding: 15px !important; }
  #myg-new-list-input, #myg-create-new-list-btn { width: 100% !important; margin-bottom: 8px; }
}
