/* JászMotor – mini kosár, kosárba tétel modal, kereső háttér, szűrő kategóriafa-gombok */

/* ---------- Mini kosár (fejléc) ---------- */
.jm-minicart { position: relative; }
.jm-minicart__panel {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 1100; width: 400px; max-width: calc(100vw - 24px);
    background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 18px; box-shadow: var(--jm-shadow);
    animation: jm-drop .18s var(--jm-ease);
}
.jm-minicart__panel[hidden] { display: none; }
.jm-minicart__panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover-híd */
.jm-minicart__inner { display: flex; flex-direction: column; max-height: min(78vh, 640px); }
.jm-minicart__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--jm-line); }
.jm-minicart__head strong { font: 700 20px var(--jm-font-cond); text-transform: uppercase; letter-spacing: .5px; }
.jm-minicart__head .jm-muted { font-size: 14px; }
.jm-minicart__close { margin-left: auto; width: 38px; height: 38px; flex-basis: 38px; }
@media (min-width: 992px) and (hover: hover) { .jm-minicart__close { display: none; } }
.jm-minicart__list { list-style: none; margin: 0; padding: 6px 10px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.jm-minicart__item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 8px; border-bottom: 1px solid var(--jm-line); transition: opacity .15s; }
.jm-minicart__item:last-child { border-bottom: 0; }
.jm-minicart__item.is-loading { opacity: .45; pointer-events: none; }
.jm-minicart__img { display: block; width: 64px; height: 64px; border-radius: 10px; background: #fff; overflow: hidden; }
.jm-minicart__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.jm-minicart__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jm-minicart__name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jm-minicart__attrs { font-size: 12px; color: var(--jm-muted); }
.jm-minicart__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.jm-minicart__qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--jm-line); border-radius: 9px; background: var(--jm-bg); }
.jm-minicart__qty button { width: 32px; height: 100%; border: 0; background: none; color: var(--jm-text); font-size: 18px; line-height: 1; }
.jm-minicart__qty button:hover:not(:disabled) { color: var(--jm-accent-fg); }
.jm-minicart__qty button:disabled { opacity: .3; cursor: default; }
.jm-minicart__qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.jm-minicart__price { font-family: var(--jm-font-display); font-weight: 400; font-size: 21px; white-space: nowrap; }
.jm-minicart__remove { width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--jm-muted); display: flex; align-items: center; justify-content: center; }
.jm-minicart__remove:hover { color: var(--jm-sale); border-color: var(--jm-line); }
.jm-minicart__remove svg, .jm-minicart__empty svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jm-minicart__remove svg { width: 18px; height: 18px; }
.jm-minicart__foot { padding: 14px 18px 18px; border-top: 1px solid var(--jm-line); display: flex; flex-direction: column; gap: 8px; background: rgba(0, 0, 0, .15); border-radius: 0 0 18px 18px; }
.jm-minicart__total { display: flex; justify-content: space-between; align-items: baseline; }
.jm-minicart__total strong { font-family: var(--jm-font-display); font-weight: 400; font-size: 30px; color: var(--jm-accent-fg); line-height: 1; }
.jm-minicart__foot small { font-size: 12px; }
.jm-minicart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.jm-minicart__actions .jm-btn { min-height: 48px; font-size: 15px; padding: 0 10px; }
.jm-minicart__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 18px; text-align: center; color: var(--jm-muted); }
.jm-minicart__empty svg { width: 46px; height: 46px; stroke: var(--jm-accent-fg); stroke-width: 1.6; }
.jm-minicart__empty p { margin: 0; }
.jm-cartbtn { cursor: pointer; }
@keyframes jm-drop { from { opacity: 0; transform: translateY(-6px); } }

/* Mobilon (és érintőképernyőn): jobbról becsúszó lap, elhomályosított háttérrel */
.jm-minicart-backdrop { position: fixed; inset: 0; z-index: 1940; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: jm-fade .2s; }
.jm-minicart-backdrop[hidden] { display: none; }
@media (max-width: 991.98px), (hover: none) {
    .jm-minicart__panel {
        position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(420px, 92vw); max-width: none; z-index: 1950;
        border-radius: 18px 0 0 18px; animation: jm-slide-r .25s var(--jm-ease);
    }
    .jm-minicart__panel::before { display: none; }
    .jm-minicart__inner { max-height: 100%; height: 100%; }
    .jm-minicart__foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); border-radius: 0 0 0 18px; }
}
@keyframes jm-slide-r { from { transform: translateX(100%); } }

/* ---------- Kosárba tétel modal ---------- */
.jm-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.jm-modal[hidden] { display: none; }
.jm-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, .55); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); animation: jm-fade .2s; }
.jm-modal__dialog {
    position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--jm-surface); border: 1px solid var(--jm-line); border-top: 4px solid var(--jm-accent); border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .6); padding: 26px; animation: jm-pop .22s var(--jm-ease);
}
.jm-modal__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; flex-basis: 40px; }
@keyframes jm-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 575.98px) {
    .jm-modal { align-items: flex-end; padding: 0; }
    .jm-modal__dialog { max-width: none; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: jm-up .25s var(--jm-ease); }
}
.jm-added__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 44px; }
.jm-added__check { width: 40px; height: 40px; border-radius: 50%; background: var(--jm-success); color: #0a0a0b; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.jm-added__check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.jm-added__title { margin: 0; font-family: var(--jm-font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.jm-added__product { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--jm-bg); border: 1px solid var(--jm-line); border-radius: 14px; }
.jm-added__img { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 12px; background: #fff; overflow: hidden; }
.jm-added__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.jm-added__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jm-added__info strong { font-size: 15px; line-height: 1.3; }
.jm-added__info small { color: var(--jm-muted); font-size: 13px; }
.jm-added__price { font-family: var(--jm-font-display); font-size: 22px; color: var(--jm-accent-fg); }
.jm-added__summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 16px 2px; font-size: 14px; color: var(--jm-muted); }
.jm-added__summary b { color: var(--jm-text); }
.jm-added__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jm-added__actions .jm-btn { padding: 0 12px; font-size: 16px; }
@media (max-width: 400px) { .jm-added__actions { grid-template-columns: 1fr; } }
.jm-added__cartlink { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--jm-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kereső: elhomályosított háttér a találati lista mögött ---------- */
.jm-search-backdrop { position: fixed; inset: 0; z-index: 990; background: rgba(5, 5, 6, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: jm-fade .18s; }
.jm-search-backdrop[hidden] { display: none; }
body.jm-search-open .jm-topbar { filter: blur(3px); }

/* ---------- Szűrő: kategóriafa – a sor és a lenyitó gomb egyetlen „pill” vezérlő ----------
   A link és a gomb közös hátteret kap, köztük vékony elválasztó; a nyíl egy bemélyített (inset)
   körben ül, nyitáskor sárgán „kiemelkedik” és megfordul. */
.bb-product-filter-items li.bb-product-filter-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; column-gap: 0; }
.bb-product-filter-items li.bb-product-filter-item + li.bb-product-filter-item { margin-top: 2px; }
.bb-product-filter-items li.bb-product-filter-item > .bb-product-filter-items { grid-column: 1 / -1; }
.bb-product-filter-link { padding: 6px 10px; border-radius: 10px; transition: background .18s, color .18s; }
.bb-product-filter-link.active { background: rgba(var(--jm-accent-rgb), .12); color: var(--jm-accent-fg) !important; font-weight: 600; }

/* A gombos sor linkje jobb oldalt „összenő” a gombbal. */
.bb-product-filter-item > .bb-product-filter-link:has(+ [data-bb-toggle="toggle-product-categories-tree"]) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"] {
    position: relative; width: 40px; min-height: 34px; margin: 0 !important; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 0 10px 10px 0; background: transparent; color: var(--jm-muted); cursor: pointer;
    transition: background .18s, color .18s;
}
/* elválasztó a link és a gomb között */
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"]::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--jm-line); transition: background .18s;
}
/* bemélyített kör a nyíl körül */
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"] svg {
    width: 24px !important; height: 24px !important; padding: 4px; border-radius: 50%;
    background: rgba(0, 0, 0, .32);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(255, 255, 255, .04);
    transition: transform .28s var(--jm-ease), background .18s, color .18s, box-shadow .18s;
}

/* Közös hover: a sor bármelyik felére mutatva az egész vezérlő kiemelődik. */
.bb-product-filter-item:has(> .bb-product-filter-link:hover) > .bb-product-filter-link,
.bb-product-filter-item:has(> .bb-product-filter-link:hover) > [data-bb-toggle="toggle-product-categories-tree"],
.bb-product-filter-item:has(> [data-bb-toggle="toggle-product-categories-tree"]:hover) > .bb-product-filter-link,
.bb-product-filter-item:has(> [data-bb-toggle="toggle-product-categories-tree"]:hover) > [data-bb-toggle="toggle-product-categories-tree"] { background: var(--jm-surface-2); }
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"]:hover { color: var(--jm-accent-fg); }
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"]:focus-visible { outline: 2px solid var(--jm-accent); outline-offset: -2px; }

/* Aktív (kiválasztott) kategória: a gomb is az aktív sor tónusát kapja. */
.bb-product-filter-link.active + [data-bb-toggle="toggle-product-categories-tree"],
.bb-product-filter-item:has(> .bb-product-filter-link.active) > [data-bb-toggle="toggle-product-categories-tree"] { background: rgba(var(--jm-accent-rgb), .12) !important; color: var(--jm-accent-fg); }
.bb-product-filter-link.active + [data-bb-toggle="toggle-product-categories-tree"]::before { background: rgba(var(--jm-accent-rgb), .35); }

/* A Botble front-ecommerce.css nyitáskor az egész gombot 90°-kal forgatná (oldalra fordult nyíl, elforgatott
   elválasztó és lekerekítés) – itt csak a nyíl fordul. */
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"].active { transform: none; }

/* Nyitott állapot: a nyíl megfordul, a kör sárgán „kiemelkedik” a mélyedésből. */
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"].active svg {
    transform: rotate(180deg); background: var(--jm-accent); color: var(--jm-accent-ink);
    box-shadow: 0 2px 8px rgba(var(--jm-accent-rgb), .35), inset 0 -1px 0 rgba(0, 0, 0, .2);
}

/* Alkategóriák: behúzott, vezetővonalas lista; nyitott ágnál a vonal sárga. */
.bb-product-filter-items li .bb-product-filter-items { margin: 4px 0 6px 12px !important; padding: 2px 0 2px 10px !important; border-left: 2px solid var(--jm-line); }
.bb-product-filter-items li .bb-product-filter-items .bb-product-filter-link { font-size: 14px; color: var(--jm-text-soft) !important; min-height: 32px; }
.bb-product-filter-items li .bb-product-filter-items .bb-product-filter-link.active { color: var(--jm-accent-fg) !important; }
.bb-product-filter-items li [data-bb-toggle="toggle-product-categories-tree"].active + .bb-product-filter-items { border-left-color: rgba(var(--jm-accent-rgb), .6); }

/* ---------- Fejléc-jelvények: frissüléskor „pop” ---------- */
.jm-badge.is-bump { animation: jm-badge-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jm-badge-bump {
    0% { transform: scale(.4); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ---------- Kedvencek gomb aktív állapota ---------- */
[data-bb-toggle="add-to-wishlist"] svg { transition: fill .2s ease, transform .2s ease; }
[data-bb-toggle="add-to-wishlist"].added-to-wishlist { color: var(--jm-accent-fg); }
[data-bb-toggle="add-to-wishlist"].added-to-wishlist svg { fill: currentColor; }
.jm-wishbtn.added-to-wishlist { border-color: var(--jm-accent); }
[data-bb-toggle="add-to-wishlist"].btn-loading svg { transform: scale(.85); opacity: .6; }
@media (prefers-reduced-motion: reduce) {
    .jm-badge.is-bump { animation: none; }
}

/* Nyitott modal / mobil mini kosár alatt a lebegő elemek (süti-sáv, chat) ne takarjanak ki gombot. */
body.jm-modal-open .site-notice,
body.jm-modal-open .iac-wrapper,
body.jm-minicart-open .site-notice,
body.jm-minicart-open .iac-wrapper { visibility: hidden; }
/* Mobil mini kosár: a panel a fejlécen belül van (sticky stacking context), ezért nyitáskor a fejléc a háttér fölé kerül. */
body.jm-minicart-open .jm-header { z-index: 1950; }

/* ---------- Árszűrő: a csúszka felirata olvasható legyen a sötét háttéren ---------- */
.bb-product-price-filter .bb-product-price-filter-info .input-range-label { color: var(--jm-text) !important; font-weight: 500; }
.bb-product-price-filter .bb-product-price-filter-info .input-range-label .from,
.bb-product-price-filter .bb-product-price-filter-info .input-range-label .to { color: var(--jm-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Márka / gyártó szűrő ---------- */
.jm-brandfilter__search { position: relative; margin-bottom: 8px; }
.jm-brandfilter__search input {
    width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--jm-line);
    background: var(--jm-bg); color: var(--jm-text); font-size: 14px;
}
.jm-brandfilter__search input:focus { outline: none; border-color: var(--jm-accent); }
.jm-brandfilter__search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--jm-muted); fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; }
.jm-brandfilter .bb-product-filter-items { max-height: 260px; }
.jm-brandfilter .bb-product-filter-item label { width: 100%; }
.jm-brandfilter__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-brandfilter__count {
    flex: none; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--jm-surface-2);
    color: var(--jm-muted); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.jm-brandfilter .bb-product-filter-item input:checked + label .jm-brandfilter__count { background: rgba(var(--jm-accent-rgb), .18); color: var(--jm-accent-fg); }
.jm-brandfilter__empty { margin: 0; font-size: 14px; color: var(--jm-muted); }
.jm-brandfilter__nomatch { margin: 6px 0 0; font-size: 13px; color: var(--jm-muted); }
.jm-brandfilter .bb-product-filter-items li[hidden] { display: none !important; }

/* ---------- Szűrők: egyetlen görgetősáv ----------
   A Botble front-ecommerce.css a blokk tartalmát (.bb-product-filter-content) is görgethetővé teszi, a lista
   (.bb-product-filter-items) pedig maga is görget – a kettő egymásban dupla sávot adott. Csak a lista görgessen
   (a márka-kereső így fixen a lista fölött marad), vékony, a dizájnhoz illő sávval. */
.bb-shop-sidebar .bb-product-filter-content,
.bb-shop-sidebar .bb-product-filter-content:has(.bb-product-filter-items) { max-height: none; overflow: visible; }
.bb-shop-sidebar .bb-product-filter-content > .bb-product-filter-items {
    overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--jm-line) transparent; padding-right: 4px;
}
.bb-shop-sidebar .bb-product-filter-content > .bb-product-filter-items::-webkit-scrollbar { width: 6px; }
.bb-shop-sidebar .bb-product-filter-content > .bb-product-filter-items::-webkit-scrollbar-thumb { background: var(--jm-line); border-radius: 3px; }
.bb-shop-sidebar .bb-product-filter-content > .bb-product-filter-items:hover { scrollbar-color: var(--jm-muted) transparent; }

/* Egymásba ágyazott görgetés megszüntetése:
   - asztalin az oldalsáv nem görget külön (a ragadós, magasság-korlátos sáv a listák mellett második
     görgetősávot adott) – az oldallal együtt mozog, csak a hosszú listák görgetnek;
   - mobilon (felcsúszó lap) csak a lap görget, a listák teljes hosszukban látszanak. */
@media (min-width: 992px) {
    .jm-filters { position: static; max-height: none; align-self: start; }
    .jm-filters__body { overflow: visible; }
}
@media (max-width: 991.98px) {
    .jm-filters .bb-shop-sidebar .bb-product-filter-content > .bb-product-filter-items { max-height: none; overflow: visible; padding-right: 0; }
}

/* ---------- Belépés modal ---------- */
.jm-modal--auth .jm-modal__dialog { max-width: 440px; }
.jm-auth__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 44px; }
.jm-auth__icon {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(var(--jm-accent-rgb), .14); color: var(--jm-accent-fg); box-shadow: inset 0 0 0 1px rgba(var(--jm-accent-rgb), .35);
}
.jm-auth__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.jm-auth__title { margin: 0; font-family: var(--jm-font-display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.jm-auth__sub { margin: 6px 0 0; font-size: 14px; color: var(--jm-muted); line-height: 1.4; }
.jm-auth__form { display: grid; gap: 14px; }
.jm-auth__alert {
    padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45;
    background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .45); color: #fecaca;
}
.jm-auth__alert a { color: #fff; text-decoration: underline; }
.jm-auth__field { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--jm-muted); }
.jm-auth__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.jm-auth__labelrow a { font-weight: 500; color: var(--jm-accent-fg); text-decoration: none; }
.jm-auth__labelrow a:hover { text-decoration: underline; }
.jm-auth__field input {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--jm-line);
    background: var(--jm-bg); color: var(--jm-text); font-size: 16px; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.jm-auth__field input:focus { outline: none; border-color: var(--jm-accent); box-shadow: 0 0 0 3px rgba(var(--jm-accent-rgb), .18); }
.jm-auth__field input.is-invalid { border-color: #ef4444; }
.jm-auth__error { font-size: 13px; font-weight: 500; color: #f87171; }
.jm-auth__pass { position: relative; display: block; }
.jm-auth__pass input { padding-right: 50px; }
.jm-auth__eye {
    position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 9px;
    background: transparent; color: var(--jm-muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.jm-auth__eye:hover, .jm-auth__eye.is-on { color: var(--jm-accent-fg); }
.jm-auth__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.jm-auth__remember { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--jm-text); cursor: pointer; }
.jm-auth__remember input { width: 18px; height: 18px; accent-color: var(--jm-accent); margin: 0; }
.jm-auth__form .jm-btn { gap: 10px; }
.jm-auth__form .jm-btn.is-loading { opacity: .75; pointer-events: none; }
.jm-auth__form .jm-btn.is-loading::after {
    content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
    animation: jm-spin .7s linear infinite;
}
.jm-auth__form .jm-btn.is-done { background: var(--jm-success); border-color: var(--jm-success); }
@keyframes jm-spin { to { transform: rotate(360deg); } }
.jm-auth__foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--jm-line); text-align: center; font-size: 14px; color: var(--jm-muted); }
.jm-auth__foot a { margin-left: 4px; font-weight: 700; color: var(--jm-accent-fg); text-decoration: none; }
.jm-auth__foot a:hover { text-decoration: underline; }

/* ---------- Árszűrő csúszka: ne lógjon ki az oldalsávból ----------
   A fogantyúk a bal szélükkel ültek a pozíción (a jQuery UI középre igazító margóját a méretezés
   felülírta), így a jobb oldali 100%-on a sávon túl, az oldalsávon kívülre került. Középre igazítjuk,
   a sáv két végén fél fogantyúnyi belső margóval. */
.bb-product-price-filter .price-slider { --jm-handle: 20px; margin-left: calc(var(--jm-handle) / 2) !important; margin-right: calc(var(--jm-handle) / 2) !important; }
.bb-product-price-filter .price-slider .ui-slider-handle { margin-left: calc(var(--jm-handle) / -2) !important; }

/* ---------- Árszűrő csúszka – „Árcédula” fogantyúk (C látványterv) ----------
   Sárga pötty a panel színű kerettel, fölötte az aktuális ár buborékban (a JS tölti és tartja
   az oldalsávon belül). Mobilon nagyobb, láthatatlan érintési felület; a sáv nem görgeti az oldalt. */
.bb-product-price-filter { padding-top: 34px; }
.bb-product-price-filter .price-slider { touch-action: none; height: 6px !important; }
.bb-product-price-filter .price-slider .ui-slider-handle {
    width: 20px !important; height: 20px !important; top: -7px !important; box-sizing: content-box;
    margin-top: -3px; border-radius: 50% !important; background: var(--jm-accent) !important;
    border: 3px solid var(--jm-surface) !important; cursor: grab; touch-action: none; outline: none;
    transition: transform .15s var(--jm-ease);
}
.bb-product-price-filter .price-slider { --jm-handle: 26px; }
.bb-product-price-filter .price-slider .ui-slider-handle::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.bb-product-price-filter .price-slider .ui-slider-handle:hover,
.bb-product-price-filter .price-slider .ui-slider-handle.ui-state-active { transform: scale(1.12); }
.bb-product-price-filter .price-slider .ui-slider-handle.ui-state-active { cursor: grabbing; }
.bb-product-price-filter .price-slider .ui-slider-handle:focus-visible { box-shadow: 0 0 0 3px rgba(var(--jm-accent-rgb), .45); }
.jm-price-tip {
    position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(var(--jm-tip-x, -50%));
    padding: 3px 8px; border-radius: 6px; background: var(--jm-accent); color: var(--jm-accent-ink);
    font: 700 12px/1.3 var(--jm-font); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
}
.jm-price-tip::after {
    content: ""; position: absolute; top: 100%; left: var(--jm-tip-arrow, 50%); margin-left: -5px;
    border: 5px solid transparent; border-top-color: var(--jm-accent);
}
/* a pötty nagyítása ne torzítsa a cédulát */
.bb-product-price-filter .price-slider .ui-slider-handle:hover .jm-price-tip,
.bb-product-price-filter .price-slider .ui-slider-handle.ui-state-active .jm-price-tip { scale: .893; transform-origin: 50% 100%; }

/* ---------- Fejléc kereső: a találati lista görgetősávja (mint a szűrőknél) ----------
   Vékony, sötét sáv; a lekerekített sarkoknál a sáv nem ér ki a panel széléig. */
.jm-suggest { scrollbar-width: thin; scrollbar-color: var(--jm-line) transparent; overscroll-behavior: contain; }
.jm-suggest:hover { scrollbar-color: var(--jm-muted) transparent; }
.jm-suggest::-webkit-scrollbar { width: 6px; }
.jm-suggest::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.jm-suggest::-webkit-scrollbar-thumb { background: var(--jm-line); border-radius: 3px; }
.jm-suggest:hover::-webkit-scrollbar-thumb { background: var(--jm-muted); }
/* A találat neve egyetlen szövegsor-blokk (a kiemelt <mark> ne kerüljön külön sorba). */
.jm-suggest__name { display: block; font-style: normal; color: var(--jm-text); overflow-wrap: anywhere; }
.jm-suggest__name mark { display: inline; padding: 0 2px; border-radius: 3px; background: rgba(var(--jm-accent-rgb), .18); color: var(--jm-accent-fg); }

/* ---------- Fejléc kereső: kategóriák a találati lista alján (B „Útvonalas lista”) ---------- */
.jm-suggest__cats { margin-top: 4px; padding: 10px 2px 2px; border-top: 1px solid var(--jm-line); }
.jm-suggest__label {
    display: flex; align-items: center; gap: 6px; padding: 0 8px 6px; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--jm-muted);
}
.jm-suggest__label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.jm-suggest__cat { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--jm-text); text-decoration: none; }
.jm-suggest__cat:hover, .jm-suggest__cat.is-active { background: var(--jm-surface-2); color: var(--jm-text); }
.jm-suggest__caticon {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: rgba(var(--jm-accent-rgb), .12); color: var(--jm-accent-fg);
}
.jm-suggest__caticon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.jm-suggest__catname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 14px; }
.jm-suggest__catname i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-suggest__catname i mark { padding: 0 2px; border-radius: 3px; background: rgba(var(--jm-accent-rgb), .18); color: var(--jm-accent-fg); }
.jm-suggest__catname small { font-size: 12px; color: var(--jm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-suggest__catcount { flex: none; font-size: 12px; color: var(--jm-muted); white-space: nowrap; }
.jm-suggest__chev { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--jm-muted); stroke-width: 2; transition: transform .15s, stroke .15s; }
.jm-suggest__cat:hover .jm-suggest__chev, .jm-suggest__cat.is-active .jm-suggest__chev { stroke: var(--jm-accent-fg); transform: translateX(2px); }
@media (max-width: 575.98px) { .jm-suggest__catcount { display: none; } }

/* ---------- Fejléc kereső: a mező törlő (X) ikonja piros ----------
   A böngésző beépített ikonja helyett saját X (maszkkal, így a színe CSS-ből állítható). */
.jm-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-left: 6px; cursor: pointer;
    filter: none; background-color: #ef4444;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: background-color .15s, transform .15s;
}
.jm-search input[type="search"]::-webkit-search-cancel-button:hover { background-color: #f87171; transform: scale(1.12); }

/* ---------- Nyelvválasztó (GTranslate) – asztalin lenyíló (A), mobilon alsó lap (D) ---------- */
.jm-lang { position: relative; display: inline-flex; }
.jm-lang__btn {
    display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; cursor: pointer;
    border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700; letter-spacing: .04em;
}
.jm-lang__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.jm-lang__btn .jm-lang__chev { width: 12px; height: 12px; transition: transform .2s var(--jm-ease); }
.jm-lang.is-open .jm-lang__chev { transform: rotate(180deg); }
.jm-lang__panel[hidden], .jm-lang__backdrop[hidden] { display: none !important; }
.jm-lang__panel {
    z-index: 1250; color: var(--jm-text); background: var(--jm-surface); border: 1px solid var(--jm-line);
    border-top: 3px solid var(--jm-accent); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); font-weight: 500; letter-spacing: 0;
}
.jm-lang__head { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; }
.jm-lang__title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jm-muted); }
.jm-lang__count { margin-left: auto; font-size: 11px; color: var(--jm-muted); }
.jm-lang__x {
    display: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--jm-line); background: transparent; color: var(--jm-text);
    align-items: center; justify-content: center; cursor: pointer;
}
.jm-lang__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.jm-lang__search { position: relative; display: none; margin: 0 0 8px; }
.jm-lang__search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--jm-muted); stroke-width: 2; pointer-events: none; }
.jm-lang__search input {
    width: 100%; height: 42px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--jm-line);
    background: var(--jm-bg); color: var(--jm-text); font-size: 16px;
}
.jm-lang__search input:focus { outline: none; border-color: var(--jm-accent); }
.jm-lang__list {
    list-style: none; margin: 0; padding: 0 2px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
    max-height: 340px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--jm-line) transparent;
}
.jm-lang__list::-webkit-scrollbar { width: 6px; }
.jm-lang__list::-webkit-scrollbar-thumb { background: var(--jm-line); border-radius: 3px; }
.jm-lang__list li[hidden] { display: none; }
.jm-lang__list a {
    display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; color: var(--jm-text-soft); font-size: 14px; text-decoration: none;
}
.jm-lang__list a:hover, .jm-lang__list a:focus-visible { background: var(--jm-surface-2); color: var(--jm-text); outline: none; }
.jm-lang__code {
    flex: 0 0 26px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
    background: #2a2a2e; color: var(--jm-text); font-size: 10px; font-weight: 700; letter-spacing: .03em;
}
.jm-lang__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-lang__check { display: none; flex: none; width: 16px; height: 16px; fill: none; stroke: var(--jm-accent-fg); stroke-width: 2.5; }
.jm-lang__list li.is-current a { background: rgba(var(--jm-accent-rgb), .12); color: var(--jm-accent-fg); }
.jm-lang__list li.is-current .jm-lang__code { background: var(--jm-accent); color: var(--jm-accent-ink); }
.jm-lang__list li.is-current .jm-lang__check { display: block; }
.jm-lang__empty, .jm-lang__note { margin: 8px 6px 0; font-size: 12px; line-height: 1.4; color: var(--jm-muted); }
.jm-lang__grab { display: none; }

/* Asztali (A): lenyíló a felső sáv jobb szélén */
@media (min-width: 992px) {
    .jm-lang__btn { border-color: var(--jm-handle); color: var(--jm-text); }
    .jm-lang__btn:hover, .jm-lang.is-open .jm-lang__btn { border-color: var(--jm-accent); color: var(--jm-accent-fg); }
    .jm-lang__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; padding: 12px; border-radius: 14px; animation: jm-pop .18s var(--jm-ease); }
    .jm-lang__backdrop { display: none !important; }
}

/* Mobil (D): a sárga felső sávban sötét kapszula, alulról felcsúszó lap */
@media (max-width: 991.98px) {
    .jm-topbar__right { gap: 10px; }
    .jm-lang__btn { border-color: rgba(10, 10, 11, .55); color: var(--jm-accent-ink); }
    .jm-lang__backdrop {
        position: fixed; inset: 0; z-index: 1990; background: rgba(5, 5, 6, .55);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: jm-fade .2s;
    }
    .jm-lang__panel {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; max-height: 82vh; display: flex; flex-direction: column;
        padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; animation: jm-up .25s var(--jm-ease);
    }
    .jm-lang__grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--jm-handle); margin: 0 auto 10px; flex: none; }
    .jm-lang__title { font-family: var(--jm-font-display); font-size: 24px; font-weight: 400; letter-spacing: 0; color: var(--jm-text); }
    .jm-lang__x { display: inline-flex; }
    .jm-lang__search { display: block; }
    .jm-lang__list { grid-template-columns: 1fr; max-height: none; flex: 1; min-height: 0; }
    .jm-lang__list a { padding: 11px 10px; font-size: 15px; }
}
@media (max-width: 420px) { .jm-topbar__phone { display: none; } }
/* Nyitott mobil nyelvlap alatt a süti-sáv és a chat gomb ne takarjon. */
body.jm-lang-open .site-notice, body.jm-lang-open .iac-wrapper { visibility: hidden; }

/* ---------- Kiemelt menüpont: Szerviz időpont (A látványterv) ----------
   Asztalon fekete, lekerekített gomb a sárga menüsávban; mobilon sárga gomb a menü tetején. */
.jm-nav__link.jm-nav__service {
    align-self: center; height: 38px; margin: 0 8px; padding: 0 18px; border-radius: 999px;
    background: var(--jm-bg); color: var(--jm-accent-fg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
    transition: transform .15s var(--jm-ease), box-shadow .15s, background .15s, color .15s;
}
.jm-nav__link.jm-nav__service svg { stroke: currentColor; }
.jm-nav__link.jm-nav__service:hover, .jm-nav__link.jm-nav__service:focus-visible {
    background: var(--jm-bg); color: var(--jm-text); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); outline: none;
}
.jm-nav__link.jm-nav__service.is-current { box-shadow: 0 0 0 2px var(--jm-bg), 0 0 0 4px rgba(10, 10, 11, .35); }
.jm-nav__service + .jm-nav__link--sep { border-left: 0; }
@media (max-width: 1199.98px) { .jm-nav__link.jm-nav__service { padding: 0 14px; margin: 0 6px; } }

.jm-drawer__service {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin: 14px 16px 0;
    border-radius: 12px; background: var(--jm-accent); color: var(--jm-accent-ink); text-decoration: none;
    font: 700 17px var(--jm-font-cond); letter-spacing: .5px; text-transform: uppercase;
}
.jm-drawer__service svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.jm-drawer__service:hover { color: var(--jm-accent-ink); filter: brightness(1.05); }

/* Ingyenes szállítás sáv (mini kosár, kosároldal, „kosárba tetted” ablak) */
.jm-freeship { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--jm-surface-2); border: 1px solid var(--jm-line); }
.jm-freeship[hidden] { display: none; }
.jm-freeship__text { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; color: var(--jm-text); }
.jm-freeship__text svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linejoin: round; margin-top: -1px; }
.jm-freeship__text b { color: var(--jm-accent-fg); }
.jm-freeship__bar { display: block; height: 6px; border-radius: 6px; background: var(--jm-line); overflow: hidden; }
.jm-freeship__bar i { display: block; height: 100%; border-radius: inherit; background: var(--jm-accent); transition: width .5s var(--jm-ease); }
.jm-freeship.is-done { border-color: color-mix(in srgb, var(--jm-success) 45%, transparent); }
.jm-freeship.is-done .jm-freeship__text svg, .jm-freeship.is-done .jm-freeship__text b { stroke: var(--jm-success); color: var(--jm-success); }
.jm-freeship.is-done .jm-freeship__bar i { background: var(--jm-success); }
.jm-added .jm-freeship { margin: 14px 0 4px; }
.jm-summary .jm-freeship { margin-bottom: 14px; }
