/* Bevásárló lista: szív-jelvény, fejléc ikon, értesítés, lista nézet. A téma színváltozóit használja (nincs Tailwind-build függés). */
:root { --mmwl-rose: #e5484d; }

/* ---------- Szív-jelvény (termékkártya, termékoldal) ---------- */
.mmwl-btn { position: absolute; z-index: 6; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 9999px; border: 1px solid rgb(0 0 0 / .06); background: rgb(255 255 255 / .92); color: var(--foreground, #1D1B30); box-shadow: 0 2px 8px rgb(0 0 0 / .12); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .18s ease, color .18s ease, background-color .18s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mmwl-btn::after { content: ""; position: absolute; inset: -.3rem; border-radius: 9999px; } /* nagyobb érintési felület (44 px) */
.mmwl-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill .18s ease; }
.mmwl-btn:hover { transform: scale(1.07); color: var(--mmwl-rose); }
.mmwl-btn:active { transform: scale(.92); }
.mmwl-btn.is-on { color: var(--mmwl-rose); }
.mmwl-btn.is-on svg { fill: currentColor; }
/* Kártyán a szív a doboz sarkába simul (nem a kép fölé lebeg): a kártya lekerekítésével egyező sarokfül */
.mmwl-btn--card { top: 0; right: 0; width: 2.6rem; height: 2.6rem; border-radius: 0 1rem 0 1rem; border: 0; border-left: 1px solid var(--border, #E4E8E4); border-bottom: 1px solid var(--border, #E4E8E4); background: var(--card, #fff); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mmwl-btn--card::after { inset: 0 0 -.2rem -.2rem; border-radius: 0; }
.mmwl-btn--card.is-pop::before { border-radius: 0 1rem 0 1rem; }
.mmwl-btn--single { top: .9rem; right: .9rem; width: 2.9rem; height: 2.9rem; }
.mmwl-btn--single svg { width: 1.4rem; height: 1.4rem; }
.mmwl-btn.is-pop { animation: mmwl-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.mmwl-btn.is-pop::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; border: 2px solid var(--mmwl-rose); animation: mmwl-ring .55s ease-out forwards; pointer-events: none; }
@keyframes mmwl-pop { 0% { transform: scale(.8); } 55% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes mmwl-ring { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* ---------- Fejléc ikon ---------- */
.mmwl-hd { position: relative; flex: none; display: inline-grid; place-items: center; height: 2.25rem; min-width: 2.25rem; border-radius: 9999px; border: 1px solid var(--border, #E4E8E4); background: var(--background, #fff); color: var(--foreground, #1D1B30); transition: border-color .15s, color .15s; }
.mmwl-hd svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mmwl-hd:hover { border-color: var(--mmwl-rose); color: var(--mmwl-rose); }
html.mmwl-has .mmwl-hd svg { fill: color-mix(in oklab, var(--mmwl-rose) 18%, transparent); color: var(--mmwl-rose); }
.mmwl-count { position: absolute; top: -.35rem; right: -.35rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .28rem; display: grid; place-items: center; border-radius: 9999px; background: var(--mmwl-rose); color: #fff; font-size: .65rem; font-weight: 800; line-height: 1; border: 2px solid var(--background, #fff); box-sizing: content-box; font-variant-numeric: tabular-nums; }
.mmwl-count[hidden] { display: none; }
@media (min-width: 640px) { .mmwl-hd { height: 2.5rem; min-width: 2.5rem; } .mmwl-hd svg { width: 1.2rem; height: 1.2rem; } }
@media (max-width: 479px) { .mmwl-hd { height: 2.1rem; min-width: 2.1rem; } }

/* ---------- Értesítés ---------- */
.mmwl-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-sizing: border-box; width: min(26rem, calc(100vw - 1.5rem)); padding: .7rem .8rem .7rem 1.25rem; border-radius: 9999px; background: var(--brand-ink, #1D1B30); color: #fff; font-size: .875rem; font-weight: 600; box-shadow: 0 14px 36px rgb(0 0 0 / .3); opacity: 0; transform: translate(-50%, 1.2rem); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.mmwl-toast.is-in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mmwl-toast__a { flex: none; border: 0; border-radius: 9999px; background: #fff; color: var(--brand-ink, #1D1B30); padding: .45rem .9rem; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; text-decoration: none; }
body.single-product .mmwl-toast { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }

/* ---------- Lista nézet ---------- */
.mmwl-app { max-width: 80rem; margin: 0 auto; }
.mmwl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.mmwl-count-t { margin: 0; color: var(--muted-foreground, #6b7280); font-size: .95rem; }
.mmwl-count-t strong { color: var(--foreground, #1D1B30); font-size: 1.05rem; }
.mmwl-bar__a { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mmwl-note { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 1rem; background: var(--testimonial, #ecfdf5); border: 1px solid color-mix(in oklab, var(--primary, #4EB15D) 25%, transparent); font-size: .875rem; font-weight: 600; }
.mmwl-note a { color: var(--primary, #4EB15D); font-weight: 800; text-decoration: underline; }
.mmwl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .mmwl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .mmwl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mmwl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border, #E4E8E4); background: var(--card, #fff); transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { .mmwl-card:hover { box-shadow: 0 10px 26px rgb(0 0 0 / .1); transform: translateY(-2px); } }
.mmwl-img { display: block; aspect-ratio: 1; background: var(--secondary, #f4f6f4); }
.mmwl-img img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.mmwl-body { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: .7rem .8rem .85rem; }
.mmwl-name { font-size: .875rem; font-weight: 700; line-height: 1.3; min-height: 2.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: inherit; text-decoration: none; }
.mmwl-name:hover { color: var(--primary, #4EB15D); }
.mmwl-meta { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; min-height: 1.5rem; margin-top: auto; }
.mmwl-price { font-size: 1rem; font-weight: 800; color: var(--primary, #4EB15D); font-variant-numeric: tabular-nums; }
.mmwl-meta s { font-size: .75rem; color: var(--muted-foreground, #6b7280); }
.mmwl-add { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .6rem 1rem; border-radius: 9999px; border: 1.5px solid var(--primary, #4EB15D); background: var(--primary, #4EB15D); color: var(--primary-foreground, #fff); font-size: .8125rem; font-weight: 700; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: opacity .15s; }
.mmwl-add:hover:not([disabled]) { opacity: .9; }
.mmwl-add[disabled] { opacity: .65; cursor: default; }
.mmwl-add--line { background: transparent; color: var(--primary, #4EB15D); }
.mmwl-card .mmwl-add { width: 100%; }
.mmwl-chip { display: block; text-align: center; padding: .55rem; border-radius: 9999px; background: var(--muted, #eceeed); color: var(--muted-foreground, #6b7280); font-size: .8rem; font-weight: 700; }
.mmwl-link { border: 0; background: none; padding: .4rem 0; color: var(--muted-foreground, #6b7280); font: inherit; font-size: .85rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.mmwl-link:hover { color: var(--danger, #C62828); }

/* Üres állapot */
.mmwl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 1rem 3.5rem; gap: .5rem; }
.mmwl-empty__ico { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin-bottom: .75rem; border-radius: 9999px; background: color-mix(in oklab, var(--mmwl-rose) 10%, var(--background, #fff)); color: var(--mmwl-rose); }
.mmwl-empty__ico svg { width: 2.6rem; height: 2.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mmwl-empty__t { margin: 0; font-size: 1.15rem; font-weight: 800; }
.mmwl-empty__s { margin: 0 0 1rem; max-width: 26rem; color: var(--muted-foreground, #6b7280); font-size: .95rem; }

/* Töltés (vázlat) */
.mmwl-skel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .mmwl-skel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .mmwl-skel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mmwl-skel i { display: block; aspect-ratio: 3 / 4; border-radius: 1rem; background: linear-gradient(100deg, var(--secondary, #f1f3f1) 30%, color-mix(in oklab, var(--secondary, #f1f3f1) 55%, #fff) 50%, var(--secondary, #f1f3f1) 70%) 0 0 / 220% 100%; animation: mmwl-shim 1.3s linear infinite; }
@keyframes mmwl-shim { to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
  .mmwl-btn, .mmwl-toast, .mmwl-card { transition: none; }
  .mmwl-btn.is-pop, .mmwl-btn.is-pop::before, .mmwl-skel i { animation: none; }
}
html[data-mm-motion="off"] .mmwl-btn, html[data-mm-motion="off"] .mmwl-toast, html[data-mm-motion="off"] .mmwl-card { transition: none; }
html[data-mm-motion="off"] .mmwl-btn.is-pop, html[data-mm-motion="off"] .mmwl-btn.is-pop::before, html[data-mm-motion="off"] .mmwl-skel i { animation: none; }

/* Fejléc: telefonon az akadálymentesítő gomb a mobil menüben van (kevesebb ikon), a szív kisebb */
@media (max-width: 639px) { .mm-a11y-hdr { display: none; } }
@media (max-width: 479px) { .mmwl-hd { height: 2rem; min-width: 2rem; } }
@media (max-width: 389px) { header.sticky > .h-16 a.font-alternative { font-size: 1.2rem; } }
.mm-a11y-menu #mm-a11y-panel-m { position: static !important; width: 100%; max-width: none; margin-top: .5rem; box-shadow: none; }

/* A téma tartalom-linkstílusa (zöld, aláhúzott) ne érvényesüljön a lista kártyáin */
.mmwl-grid .mmwl-card a.mmwl-name { color: inherit; text-decoration: none; }
.mmwl-grid .mmwl-card a.mmwl-name:hover { color: var(--primary, #4EB15D); }
.mmwl-grid .mmwl-card a.mmwl-add { text-decoration: none; }

/* Mobil menü: nyitott menünél a fejléc a helyén marad (különben legörgetett oldalon kiszalad a képből, és a menü nem zárható be) */
@media (max-width: 1023.98px) { html.mm-menu-open header.sticky { position: fixed; left: 0; right: 0; top: var(--mm-hdr-top, 0px); } }

/* A téma linkszíne ne írja felül a zöld gombok szövegét (üres lista, Mind a kosárba) */
html body a.mmwl-add:not(.mmwl-add--line) { color: var(--primary-foreground, #fff); text-decoration: none; }

/* ---------- Kiszerelés/illat választó és „Kosárban” jelzés a lista kártyáin ---------- */
.mmwl-pick { display: block; margin-top: .55rem; position: relative; }
.mmwl-var { width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--border, #E4E8E4); border-radius: .75rem; background: var(--background, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 1rem; padding: .5rem 1.9rem .5rem .7rem; font: inherit; font-size: .8rem; color: inherit; text-overflow: ellipsis; cursor: pointer; }
.mmwl-var:focus-visible { outline: 2px solid var(--primary, #4EB15D); outline-offset: 1px; }
.mmwl-pick-one { margin: .5rem 0 0; font-size: .78rem; color: var(--muted-foreground, #6b7280); }
.mmwl-incart { display: flex; align-items: center; gap: .3rem; margin: .5rem 0 0; font-size: .78rem; font-weight: 800; color: var(--primary, #4EB15D); }
.mmwl-incart svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
