/* ==========================================================================
   JászMotor – webshop nézetek (terméklista, szűrők, termékoldal, kosár, fiók)
   ========================================================================== */

/* ---------- Termékrács + kártya ---------- */
.jm-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .jm-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1400px) { .jm-shop .jm-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) { .jm-pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 992px) { .jm-pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .jm-pgrid--5 > :nth-child(5) { display: none; } }
@media (max-width: 767.98px) { .jm-pgrid--5 > :nth-child(5) { display: flex; } }

.jm-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: var(--jm-radius);
    transition: border-color .15s, transform .15s var(--jm-ease), box-shadow .15s;
}
.jm-card:hover { border-color: var(--jm-accent); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, .35); }
.jm-card__media { display: block; aspect-ratio: 1 / 1; background: #fff; }
.jm-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s var(--jm-ease); }
.jm-card:hover .jm-card__media img { transform: scale(1.04); }
.jm-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; max-width: calc(100% - 64px); }
.jm-card__wish {
    position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 10px; border: 0;
    display: flex; align-items: center; justify-content: center; background: rgba(var(--jm-bg-rgb), .72); color: var(--jm-text);
}
.jm-card__wish svg { width: 19px; height: 19px; stroke-width: 1.8; }
.jm-card__wish:hover, .jm-card__wish.added-to-wishlist { color: var(--jm-accent-fg); }
.jm-card__wish.added-to-wishlist svg { fill: currentColor; }
.jm-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px; }
.jm-card__brand { font: 700 12px var(--jm-font-cond); letter-spacing: 2px; text-transform: uppercase; color: var(--jm-accent-fg); }
.jm-card__name { margin: 0; font-family: var(--jm-font); font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.jm-card__name a:hover { color: var(--jm-accent-fg); }
.jm-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 12px; color: var(--jm-muted); }
.jm-card__meta .jm-stock { font-size: 12px; }
.jm-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.jm-card__price { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
/* Mennyiségválasztó a kártyán: az ár saját sorba kerül, alatta léptető + kosárba gomb */
.jm-card__foot--qty { flex-wrap: wrap; align-items: center; }
.jm-card__foot--qty .jm-card__price { flex: 1 1 100%; margin-bottom: 4px; }
.jm-card__qty { flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; border: 1px solid var(--jm-line); border-radius: 10px; background: var(--jm-bg); overflow: hidden; }
.jm-card__qty button { flex: none; width: 34px; height: 100%; display: grid; place-items: center; border: 0; background: none; color: var(--jm-text); cursor: pointer; transition: background .15s, transform .12s; }
.jm-card__qty button:hover { background: var(--jm-surface-2); }
.jm-card__qty button:active { transform: scale(.88); }
.jm-card__qty button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.jm-card__qty input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: none; color: var(--jm-text); text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
.jm-card__qty input::-webkit-outer-spin-button, .jm-card__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jm-card__qty input:focus { outline: none; }
.jm-card__qty:focus-within { border-color: var(--jm-accent); }
.jm-card__qty input.is-bump { animation: jm-qty-bump .25s ease; }
@keyframes jm-qty-bump { 50% { transform: scale(1.25); } }
.jm-card__price del { font-size: 13px; color: var(--jm-muted); margin-bottom: 2px; }
.jm-card__price strong { font-family: var(--jm-font-display); font-weight: 400; font-size: 24px; letter-spacing: .3px; white-space: nowrap; }
.jm-card__price strong small { font-family: var(--jm-font); font-size: 12px; color: var(--jm-muted); margin-right: 2px; }
.jm-card__price .is-sale { color: #ff6b5e; }
.jm-card__add {
    width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; background: var(--jm-accent); color: var(--jm-accent-ink);
    display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.jm-card__add:hover { transform: scale(1.06); }
.jm-card__add svg { width: 20px; height: 20px; }
.jm-card__add.loading { opacity: .6; pointer-events: none; }
/* Részletek (készlethiány / nem kosarazható): ikon-gomb, a kosár gombbal azonos méretben – mobilon sem lóg az árra */
.jm-card__more {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: var(--jm-text); color: var(--jm-bg);
    display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.jm-card__more:hover { color: var(--jm-bg); transform: scale(1.06); }
.jm-card__more svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.jm-card__more svg path { stroke-width: 2.2; }
@media (min-width: 768px) {
    .jm-card__body { padding: 16px; gap: 8px; }
    .jm-card__name { font-size: 15px; -webkit-line-clamp: 2; min-height: 2.6em; }
    .jm-card__price strong { font-size: 28px; }
}
.jm-card--compact .jm-card__name { font-size: 14px; }

/* ---------- Terméklista oldal ---------- */
.jm-shop { padding: 18px 0 40px; }
.jm-shop__head { margin-bottom: 14px; }
/* Kategória-fejléc (kategoria-hero plugin): széles kép, rajta balra a cím és a szöveg */
.jm-cathero { position: relative; display: flex; align-items: flex-end; min-height: 190px; margin-bottom: 18px; padding: 22px; border-radius: 20px; overflow: hidden; background: var(--jm-surface); color: var(--jm-text); isolation: isolate; }
.jm-cathero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.jm-cathero:not(.jm-cathero--noimg)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 11, .9) 0%, rgba(10, 10, 11, .65) 45%, rgba(10, 10, 11, .1) 100%), linear-gradient(0deg, rgba(10, 10, 11, .6), transparent 60%); }
.jm-cathero--noimg { min-height: 0; border: 1px solid var(--jm-line); background: linear-gradient(120deg, var(--jm-surface) 60%, rgba(var(--jm-accent-rgb), .14)); }
.jm-cathero__body { max-width: 620px; }
.jm-cathero__count { display: inline-flex; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: var(--jm-accent); color: var(--jm-accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.jm-cathero__title { margin: 0; text-wrap: balance; }
.jm-cathero__text { margin: 8px 0 0; color: var(--jm-text-soft); font-size: 16px; line-height: 1.5; }
.jm-cathero__cta { margin-top: 14px; }
.jm-cathero__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) { .jm-cathero { min-height: 260px; padding: 36px 40px; } .jm-cathero--noimg { min-height: 0; padding: 26px 30px; } }
/* Telefonon: fent képsáv, alatta a szöveg (a kép nem sötétül el a szöveg mögött) */
@media (max-width: 575px) {
    .jm-cathero:not(.jm-cathero--noimg) { display: block; padding: 0; }
    .jm-cathero:not(.jm-cathero--noimg) .jm-cathero__img { position: relative; display: block; height: 170px; z-index: auto; }
    .jm-cathero:not(.jm-cathero--noimg)::before { inset: 0 0 auto; height: 170px; z-index: 1; background: linear-gradient(0deg, var(--jm-surface) 0%, transparent 55%); }
    .jm-cathero:not(.jm-cathero--noimg) .jm-cathero__body { position: relative; z-index: 2; margin-top: -40px; padding: 0 18px 18px; }
    .jm-cathero__text { font-size: 15px; }
}
.jm-subcats { display: flex; gap: 8px; margin: 0 calc(-1 * var(--jm-gutter)) 16px; padding: 0 var(--jm-gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.jm-subcats::-webkit-scrollbar { display: none; }
.jm-subcats a { flex: 0 0 auto; border: 1px solid var(--jm-line); background: var(--jm-surface); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.jm-subcats a:hover { border-color: var(--jm-accent); }
@media (min-width: 992px) { .jm-subcats { flex-wrap: wrap; margin-inline: 0; padding: 0; overflow: visible; } }

.jm-shop__toolbar {
    position: sticky; top: calc(var(--jm-header-h) + 52px); z-index: 50; display: flex; align-items: center; gap: 10px;
    padding: 10px 0; margin-bottom: 8px; background: var(--jm-bg);
}
.jm-shop__filter-btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
.jm-shop__filter-btn svg { width: 18px; height: 18px; }
.jm-shop__count { font-size: 14px; color: var(--jm-muted); white-space: nowrap; }
.jm-shop__count b { color: var(--jm-text); }
.jm-shop__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--jm-muted); }
.jm-shop__sort .jm-select { height: 44px; width: auto; max-width: 52vw; background-color: var(--jm-surface); }
@media (max-width: 575.98px) { .jm-shop__count { display: none; } .jm-shop__filter-btn { flex: 1; } .jm-shop__sort { flex: 1; } .jm-shop__sort .jm-select { max-width: none; } }
@media (min-width: 992px) {
    .jm-shop__toolbar { position: static; padding: 0; margin-bottom: 18px; }
    .jm-shop__filter-btn { display: none; }
}

.jm-shop__grid { display: block; }
@media (min-width: 992px) { .jm-shop__grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; } }

/* Szűrők: mobilon alulról felcsúszó lap, asztalin oldalsáv */
.jm-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1950; max-height: 88vh; display: none; flex-direction: column;
    background: var(--jm-panel); border-top: 1px solid var(--jm-line); border-radius: 22px 22px 0 0; animation: jm-up .25s var(--jm-ease);
}
body.jm-filters-open .jm-filters { display: flex; }
.jm-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--jm-line-soft); font-family: var(--jm-font-display); font-size: 30px; line-height: 1; }
.jm-filters__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--jm-handle); }
.jm-filters__body { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.jm-filters__foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--jm-line-soft); }
@media (min-width: 992px) {
    .jm-filters {
        position: sticky; top: calc(var(--jm-header-h) + 70px); display: flex; max-height: calc(100vh - var(--jm-header-h) - 90px);
        border: 1px solid var(--jm-line); border-radius: 16px; background: var(--jm-surface); animation: none; z-index: 1;
    }
    .jm-filters__head { font-family: var(--jm-font-cond); font-weight: 700; font-size: 20px; text-transform: uppercase; }
    .jm-filters__head::before, .jm-filters__head .jm-iconbtn, .jm-filters__foot { display: none; }
}

/* A plugin szűrő-markupjának (bb-*) átszínezése */
.bb-shop-sidebar .bb-product-filter { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--jm-line); }
.bb-shop-sidebar .bb-product-filter:last-child { border-bottom: 0; }
.bb-product-filter-title { font: 700 13px var(--jm-font) !important; letter-spacing: 1px; text-transform: uppercase; color: var(--jm-muted) !important; margin: 0 0 10px !important; }
.bb-product-filter-items { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.bb-product-filter-items .bb-product-filter-items { padding-left: 12px; max-height: none; }
.bb-product-filter-item { margin: 0; }
.bb-product-filter-link, .bb-product-filter-item label { display: flex; align-items: center; gap: 8px; min-height: 34px; color: var(--jm-text-soft) !important; font-size: 15px; cursor: pointer; }
.bb-product-filter-link:hover, .bb-product-filter-link.active { color: var(--jm-accent-fg) !important; }
.bb-product-filter-item input[type="checkbox"], .bb-product-filter-item input[type="radio"] { width: 18px; height: 18px; accent-color: var(--jm-accent); margin: 0; }
.bb-product-price-filter .ui-slider, .price-slider { background: var(--jm-line) !important; border: 0 !important; height: 6px !important; border-radius: 3px; }
.bb-product-price-filter .ui-slider-range, .price-slider .ui-slider-range { background: var(--jm-accent) !important; }
.bb-product-price-filter .ui-slider-handle, .price-slider .ui-slider-handle { background: var(--jm-text) !important; border: 3px solid var(--jm-accent) !important; border-radius: 50% !important; width: 20px !important; height: 20px !important; top: -7px !important; }
.input-range-label { font-size: 14px; color: var(--jm-muted); margin-top: 12px; display: block; }

.jm-seo { margin-top: 48px; padding: 24px; border: 1px solid var(--jm-line); border-radius: 16px; color: var(--jm-muted); font-size: 15px; }

/* Lapozó */
.jm-pager { margin-top: 32px; display: flex; justify-content: center; }
.jm-pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jm-pager .page-link {
    min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 12px;
    border-radius: 10px !important; border: 1px solid var(--jm-line); background: var(--jm-surface); color: var(--jm-text); font-weight: 600;
}
.jm-pager .page-link:hover { border-color: var(--jm-accent); color: var(--jm-accent-fg); background: var(--jm-surface); }
.jm-pager .active .page-link { background: var(--jm-accent); border-color: var(--jm-accent); color: var(--jm-accent-ink); }
.jm-pager .disabled .page-link { opacity: .4; }

/* Betöltés jelzése szűréskor (a plugin .loading-ot tesz a listára) */
[data-bb-toggle="product-list"].loading .bb-product-items-wrapper { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* ---------- Termékoldal ---------- */
.jm-product { padding-bottom: 24px; }
.jm-pdp { padding-top: 16px; }
.jm-pdp__grid { display: grid; gap: 24px; }
@media (min-width: 992px) { .jm-pdp__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.jm-gallery { min-width: 0; }
.jm-gallery__main { position: relative; margin-inline: calc(-1 * var(--jm-gutter)); background: #fff; overflow: hidden; }
.jm-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.jm-gallery__track::-webkit-scrollbar { display: none; }
.jm-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.jm-gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.jm-gallery__tag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.jm-gallery__counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--jm-bg-rgb), .8); color: var(--jm-text); font-size: 12px; font-weight: 600; }
.jm-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.jm-gallery__thumb { flex: 0 0 72px; height: 72px; padding: 4px; border-radius: 12px; border: 1px solid var(--jm-line); background: #fff; }
.jm-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.jm-gallery__thumb.is-active { border: 2px solid var(--jm-accent); }
@media (min-width: 768px) { .jm-gallery__main { margin-inline: 0; border-radius: 18px; border: 1px solid var(--jm-line); } }
@media (min-width: 1200px) {
    .jm-gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
    .jm-gallery__main { order: 2; }
    .jm-gallery__thumbs { order: 1; flex-direction: column; margin: 0; max-height: 640px; overflow-y: auto; }
    .jm-gallery__thumb { flex-basis: 88px; height: 88px; }
    .jm-gallery__slide { aspect-ratio: 1 / 1; max-height: 640px; }
}

.jm-pdp__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jm-pdp__title { font-size: clamp(34px, 6vw, 56px); line-height: .95; overflow-wrap: anywhere; }
.jm-pdp__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--jm-muted); }
.jm-pdp__meta b { color: var(--jm-text); }
.jm-pdp__note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--jm-surface); border: 1px solid var(--jm-line); font-size: 14px; }
.jm-pdp__note svg { width: 20px; height: 20px; stroke: var(--jm-warning); }
.jm-pdp__note[hidden] { display: none; }
.jm-pdp__pickup { margin-top: 10px; }
.jm-pdp__pickup svg { stroke: var(--jm-success); fill: none; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.jm-pdp__pickup b { color: var(--jm-text); }
.jm-pdp__desc { color: var(--jm-text-soft); font-size: 15px; }

/* Változatválasztó (a plugin swatch-markupja) */
.jm-pdp__swatches { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.jm-pdp__swatches > * { margin: 0; padding: 0; }
.bb-product-attribute-swatch-title { font: 600 14px var(--jm-font) !important; color: var(--jm-text); margin: 0 0 8px !important; text-transform: none; }
.bb-product-attribute-swatch-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bb-product-attribute-swatch-item { position: relative; margin: 0 !important; }
.bb-product-attribute-swatch-item label { cursor: pointer; margin: 0; display: block; }
.bb-product-attribute-swatch-item input { position: absolute; opacity: 0; pointer-events: none; }
.visual-swatch .bb-product-attribute-swatch-item label > span {
    display: block; width: 44px !important; height: 44px !important; border-radius: 12px !important; border: 2px solid var(--jm-line) !important;
    box-shadow: inset 0 0 0 3px var(--jm-bg) !important;
}
.visual-swatch .bb-product-attribute-swatch-item input:checked + span { border-color: var(--jm-accent) !important; }
.text-swatch .bb-product-attribute-swatch-item label > span {
    display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--jm-line); background: var(--jm-bg); font-weight: 600; font-size: 15px;
}
.text-swatch .bb-product-attribute-swatch-item input:checked + span { border: 2px solid var(--jm-accent); background: rgba(var(--jm-accent-rgb), .08); }
.bb-product-attribute-swatch-item.disabled { opacity: .35; }
.bb-product-attribute-swatch-item-tooltip {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 5;
    padding: 4px 8px; border-radius: 6px; background: var(--jm-text); color: var(--jm-bg); font-size: 12px; font-weight: 600;
    opacity: 0; visibility: hidden; transition: .15s; pointer-events: none;
}
.bb-product-attribute-swatch-item:hover .bb-product-attribute-swatch-item-tooltip { opacity: 1; visibility: visible; }
.dropdown-swatches-wrapper .form-select { height: 48px; background-color: var(--jm-bg); border-color: var(--jm-line); color: var(--jm-text); }

/* Vásárlódoboz */
.jm-buybox { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 16px; }
.jm-buybox__price { display: flex; flex-direction: column; gap: 2px; }
.jm-buybox__price small { font-size: 13px; color: var(--jm-muted); }
.jm-buybox .bb-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 !important; }
.jm-buybox .bb-product-price-text { font-family: var(--jm-font-display); font-weight: 400 !important; font-size: clamp(42px, 8vw, 56px); line-height: 1; color: var(--jm-accent-fg); }
.jm-buybox .bb-product-price-text-old, .jm-buybox del, .bb-product-price-text-old { color: var(--jm-muted) !important; font-size: 18px; }
.jm-buybox__row { display: flex; gap: 10px; }
.jm-buybox__add { flex: 1; }
.jm-buybox__add svg { width: 22px; height: 22px; }
.jm-qty { display: flex; align-items: center; border: 1px solid var(--jm-line); border-radius: 12px; background: var(--jm-bg); height: 54px; }
.jm-qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 22px; color: var(--jm-text); }
.jm-qty input { width: 40px; height: 100%; border: 0; background: none; color: var(--jm-text); text-align: center; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.jm-qty input::-webkit-inner-spin-button, .jm-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 400px) { .jm-buybox__row { flex-wrap: wrap; } .jm-buybox__add { order: 3; flex-basis: 100%; } .jm-qty { flex: 1; justify-content: space-between; } }

.jm-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--jm-line); border-radius: 14px; overflow: hidden; }
.jm-stores__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.jm-stores__item + .jm-stores__item { border-left: 1px solid var(--jm-line); }
.jm-stores__item small { font-size: 12px; color: var(--jm-muted); }
.jm-stores__item .jm-stock { font-size: 15px; font-weight: 600; color: var(--jm-text); }
.jm-stores__qty { color: var(--jm-text) !important; font-weight: 600; }
.jm-stores[hidden] { display: none; }

/* Mobil ragadós vásárlósáv */
.jm-stickybuy {
    position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 980; display: flex; align-items: center; gap: 12px;
    padding: 10px var(--jm-gutter); background: rgba(15, 15, 17, .97); border-top: 1px solid var(--jm-line); animation: jm-up .2s var(--jm-ease);
}
.jm-stickybuy[hidden] { display: none; }
.jm-stickybuy__price { display: flex; flex-direction: column; line-height: 1; }
.jm-stickybuy__price small { font-size: 11px; color: var(--jm-muted); margin-bottom: 3px; }
.jm-stickybuy__price strong { font-family: var(--jm-font-display); font-weight: 400; font-size: 26px; color: var(--jm-accent-fg); }
.jm-stickybuy .jm-btn { flex: 1; min-height: 50px; }
.jm-stickybuy__product { display: none; }
/* Asztalin: lebegő sáv a lap alján, középre igazítva */
@media (min-width: 992px) {
    .jm-stickybuy {
        left: 50%; right: auto; bottom: 16px; width: min(1100px, calc(100% - 48px)); transform: translateX(-50%);
        padding: 10px 10px 10px 12px; gap: 18px; border: 1px solid var(--jm-line); border-radius: 16px;
        background: color-mix(in srgb, var(--jm-surface) 94%, transparent); backdrop-filter: blur(10px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .35); animation: jm-stickybuy-in .25s var(--jm-ease);
    }
    .jm-stickybuy__product { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
    .jm-stickybuy__product img { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
    .jm-stickybuy__info { display: flex; flex-direction: column; min-width: 0; }
    .jm-stickybuy__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
    .jm-stickybuy__variant { color: var(--jm-muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .jm-stickybuy__variant:empty { display: none; }
    .jm-stickybuy .jm-btn { flex: none; min-width: 200px; }
}
@keyframes jm-stickybuy-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .jm-stickybuy { animation: none !important; } }

/* Fülek */
.jm-tabs { margin-top: 40px; }
.jm-tabs__nav { display: flex; gap: 24px; border-bottom: 1px solid var(--jm-line); overflow-x: auto; scrollbar-width: none; }
.jm-tabs__nav button {
    flex: 0 0 auto; padding: 0 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--jm-muted);
    font: 700 18px var(--jm-font-cond); text-transform: uppercase;
}
.jm-tabs__nav button.is-active { color: var(--jm-text); border-color: var(--jm-accent); }
.jm-tabs__panel { display: none; padding-top: 24px; max-width: 900px; }
.jm-tabs__panel.is-active { display: block; }

/* ---------- Kosár ---------- */
.jm-cart-page { padding: 24px 0 40px; }
.jm-cart-page__title { margin-bottom: 20px; }
.jm-cart { display: grid; gap: 24px; }
@media (min-width: 992px) { .jm-cart { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.jm-cart__table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.jm-citem td { background: var(--jm-surface); border-top: 1px solid var(--jm-line); border-bottom: 1px solid var(--jm-line); padding: 12px; vertical-align: middle; }
.jm-citem td:first-child { border-left: 1px solid var(--jm-line); border-radius: 14px 0 0 14px; }
.jm-citem td:last-child { border-right: 1px solid var(--jm-line); border-radius: 0 14px 14px 0; }
.jm-citem__media img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 10px; }
.jm-citem__name { display: block; font-weight: 600; line-height: 1.3; }
.jm-citem__stock, .jm-citem__attrs { display: block; font-size: 13px; color: var(--jm-muted); }
.jm-citem__mprice { display: none; }
.jm-citem__total { font-family: var(--jm-font-display); font-size: 24px; white-space: nowrap; }
.jm-citem__remove-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--jm-line); cursor: pointer; }
.jm-citem__remove-btn:hover { border-color: var(--jm-sale); color: var(--jm-sale); }
@media (max-width: 767.98px) {
    .jm-cart__table, .jm-cart__table tbody { display: block; }
    .jm-citem { display: grid; grid-template-columns: 80px 1fr auto; grid-template-areas: "media info remove" "media qty total"; gap: 8px 12px; padding: 12px; margin-bottom: 10px; background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 14px; }
    .jm-citem td { display: block; padding: 0 !important; border: 0 !important; background: none; border-radius: 0 !important; }
    .jm-citem__media { grid-area: media; } .jm-citem__info { grid-area: info; } .jm-citem__qty { grid-area: qty; }
    .jm-citem__total { grid-area: total; text-align: right; font-size: 22px; } .jm-citem__remove { grid-area: remove; }
    .jm-citem__price { display: none !important; }
}
.jm-cart__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 8px; }
.jm-coupon { display: flex; gap: 8px; }
.jm-coupon__input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--jm-line); background: var(--jm-surface); color: var(--jm-text); min-width: 0; }
.jm-summary { position: sticky; top: calc(var(--jm-header-h) + 70px); padding: 22px; background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 16px; }
.jm-summary__title { font: 700 20px var(--jm-font-cond); text-transform: uppercase; margin: 0 0 14px; }
.jm-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--jm-line); font-size: 15px; }
.jm-summary__row--total { border: 0; padding-top: 14px; font-weight: 700; }
.jm-summary__row--total span:last-child { font-family: var(--jm-font-display); font-weight: 400; font-size: 34px; color: var(--jm-accent-fg); line-height: 1; }
.jm-summary__discount { color: var(--jm-success); }
.jm-summary__note { display: block; color: var(--jm-muted); font-size: 13px; margin: 6px 0 16px; }
.jm-summary__secure { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--jm-muted); }
.jm-cart-empty { margin-top: 12px; }

/* Plugin mennyiség-léptető a kosárban */
.jm-citem__qty .bb-product-quantity, .jm-citem__qty .input-group { display: inline-flex; align-items: center; border: 1px solid var(--jm-line); border-radius: 10px; background: var(--jm-bg); height: 42px; overflow: hidden; flex-wrap: nowrap; width: auto; }
.jm-citem__qty button, .jm-citem__qty .btn { width: 36px; height: 40px; border: 0 !important; background: none !important; color: var(--jm-text) !important; padding: 0; }
.jm-citem__qty input { width: 40px; height: 40px; border: 0 !important; background: none !important; color: var(--jm-text) !important; text-align: center; padding: 0; box-shadow: none !important; }

/* ---------- Vásárlói fiók ---------- */
.jm-account { padding: 24px 0 40px; }
.jm-account__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; } /* minmax(0,…): a vízszintesen görgethető mobilmenü ne feszítse szét */
.jm-account__sidebar, .jm-account__main { min-width: 0; }
@media (min-width: 992px) { .jm-account__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; } }
.jm-account__sidebar { background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 16px; padding: 12px; }
.jm-account__user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 14px; border-bottom: 1px solid var(--jm-line); margin-bottom: 8px; }
.jm-account__avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.jm-account__ident { display: flex; flex-direction: column; min-width: 0; }
.jm-account__name { font-weight: 700; }
.jm-account__email { font-size: 13px; color: var(--jm-muted); overflow: hidden; text-overflow: ellipsis; }
.jm-account__menu { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 991.98px) { .jm-account__menu { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .jm-account__link { flex: 0 0 auto; } }
.jm-account__link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--jm-muted); font-weight: 500; }
.jm-account__link:hover, .jm-account__link.is-active { background: var(--jm-surface-2); color: var(--jm-text); }
.jm-account__link.is-active { box-shadow: inset 3px 0 0 var(--jm-accent); }
.jm-account__title { font-family: var(--jm-font-display); font-weight: 400; font-size: clamp(34px, 5vw, 48px); margin: 0 0 18px; }
.jm-account__body .card, .bb-customer-page .card { background: var(--jm-surface); border-color: var(--jm-line); border-radius: 16px; }

/* Botble formok a sötét sablonban */
.form-control, .form-select { background-color: var(--jm-bg); border-color: var(--jm-line); color: var(--jm-text); min-height: 46px; border-radius: 10px; }
.form-control:focus, .form-select:focus { background-color: var(--jm-bg); border-color: var(--jm-accent); color: var(--jm-text); box-shadow: 0 0 0 3px rgba(var(--jm-accent-rgb), .2); }
.form-check-input:checked { background-color: var(--jm-accent); border-color: var(--jm-accent); }
.btn-primary, .bb-btn-primary { background: var(--jm-accent) !important; border-color: var(--jm-accent) !important; color: var(--jm-accent-ink) !important; font-weight: 700; }
.modal-content { background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: 18px; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--jm-text); --bs-table-border-color: var(--jm-line); }

/* ==========================================================================
   Termékkép-nagyító (js/zoom.js)
   ========================================================================== */
.jm-gallery__slide[data-jm-zoom] { position: relative; }
.jm-gallery__slide[data-jm-zoom]::after {
    content: ""; position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(var(--jm-bg-rgb), .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFEE00' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M11 8v6M8 11h6M20 20l-4-4'/%3E%3C/svg%3E") center / 20px no-repeat;
    opacity: .9; transition: opacity .2s, transform .2s; pointer-events: none;
}
.jm-gallery__slide[data-jm-zoom]:hover::after { opacity: 1; transform: scale(1.08); }

html.jm-lb-open, html.jm-lb-open body { overflow: hidden !important; }
.jm-lb {
    --jm-lb-fade: 1;
    position: fixed; inset: 0; z-index: 2300; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
    background: rgba(8, 8, 9, var(--jm-lb-fade)); color: var(--jm-text);
    opacity: 0; transition: opacity .22s var(--jm-ease);
    -webkit-user-select: none; user-select: none;
}
.jm-lb[hidden] { display: none; }
.jm-lb.is-open { opacity: 1; }
.jm-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); }
.jm-lb__count { font: 600 14px var(--jm-font); color: var(--jm-muted); letter-spacing: .04em; }
.jm-lb__tools { display: flex; gap: 6px; }
.jm-lb__btn, .jm-lb__nav {
    width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: var(--jm-text); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer;
    transition: background .15s, color .15s, opacity .15s;
}
.jm-lb__btn:hover, .jm-lb__nav:hover { background: var(--jm-accent); color: var(--jm-accent-ink); border-color: var(--jm-accent); }
.jm-lb__btn:disabled { opacity: .35; pointer-events: none; }
.jm-lb__btn svg, .jm-lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jm-lb__btn:focus-visible, .jm-lb__nav:focus-visible, .jm-lb__thumb:focus-visible { outline: 2px solid var(--jm-accent); outline-offset: 2px; }

.jm-lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: zoom-in; margin: 0 12px; }
.jm-lb.is-zoomed .jm-lb__stage { cursor: grab; }
.jm-lb.is-zoomed.is-dragging .jm-lb__stage { cursor: grabbing; }
.jm-lb__img {
    max-width: none; border-radius: 6px; background: #fff; transform-origin: center center; will-change: transform;
    opacity: 0; transition: opacity .2s;
}
.jm-lb__img.is-ready { opacity: 1; }
.jm-lb__img.is-animating { transition: opacity .2s, transform .28s var(--jm-ease); }
.jm-lb__spin {
    position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--jm-accent); animation: jm-lb-spin .8s linear infinite;
}
.jm-lb__spin[hidden] { display: none; }
@keyframes jm-lb-spin { to { transform: rotate(360deg); } }

.jm-lb__nav { position: absolute; top: 50%; margin-top: -22px; z-index: 1; }
.jm-lb__nav--prev { left: 18px; }
.jm-lb__nav--next { right: 18px; }
.jm-lb.is-single .jm-lb__nav, .jm-lb.is-single .jm-lb__thumbs { display: none; }
.jm-lb.is-zoomed .jm-lb__nav { opacity: 0; pointer-events: none; }

.jm-lb__thumbs { display: flex; gap: 8px; padding: 12px 12px 4px; overflow-x: auto; scrollbar-width: none; }
.jm-lb__thumbs::-webkit-scrollbar { display: none; }
/* középre igazítva, de görgetéskor az eleje is elérhető marad (justify-content: center helyett) */
.jm-lb__thumb:first-child { margin-left: auto; }
.jm-lb__thumb:last-child { margin-right: auto; }
.jm-lb__thumb { flex: 0 0 56px; height: 56px; padding: 3px; border-radius: 10px; background: #fff; border: 2px solid transparent; opacity: .55; cursor: pointer; transition: opacity .15s, border-color .15s; }
.jm-lb__thumb img { width: 100%; height: 100%; object-fit: contain; }
.jm-lb__thumb:hover { opacity: .85; }
.jm-lb__thumb.is-active { opacity: 1; border-color: var(--jm-accent); }
.jm-lb__hint { margin: 0; padding: 6px 16px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--jm-muted); }

@media (max-width: 767.98px) {
    .jm-lb__nav { display: none; }
    .jm-lb__stage { margin: 0; }
    .jm-lb__thumb { flex-basis: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .jm-lb, .jm-lb__img, .jm-lb__img.is-animating { transition: none; }
}

/* „Illik a járművedhez” (garázs) */
.jm-tag--fits { display: inline-flex; align-items: center; gap: 4px; background: var(--jm-success); color: #06240f; border-color: transparent; }
.jm-tag--fits svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.jm-pdp__fits { margin-top: 10px; border-color: color-mix(in srgb, var(--jm-success) 45%, transparent); }
.jm-pdp__fits svg { stroke: var(--jm-success); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.jm-pdp__fits b { color: var(--jm-text); }

/* ==========================================================================
   Terméklista: csontváz-betöltés, „Továbbiak betöltése”, kosárba repülő kép (js/listing.js)
   ========================================================================== */
.bb-product-items-wrapper { position: relative; }
.bb-product-items-wrapper .loading-spinner { display: none !important; } /* a Botble pörgője helyett csontvázak */
.bb-product-items-wrapper.is-loading > :not(.jm-skelgrid) { display: none; }
.jm-skelgrid { pointer-events: none; }

.jm-skel {
    display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px;
    border-radius: 16px; background: var(--jm-surface); border: 1px solid var(--jm-line); overflow: hidden;
}
.jm-skel__img { aspect-ratio: 1 / 1; background: var(--jm-surface-2); }
.jm-skel__line, .jm-skel__price { height: 12px; margin: 0 14px; border-radius: 6px; background: var(--jm-surface-2); }
.jm-skel__line.is-short { width: 55%; }
.jm-skel__price { width: 40%; height: 22px; margin-top: 6px; }
.jm-skel > span { position: relative; overflow: hidden; }
.jm-skel > span::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
    transform: translateX(-100%); animation: jm-shimmer 1.2s infinite;
}
@keyframes jm-shimmer { to { transform: translateX(100%); } }

.jm-pgrid > .is-new { animation: jm-card-in .35s ease both; }
@keyframes jm-card-in { from { opacity: 0; transform: translateY(8px); } }

/* „Továbbiak betöltése” */
.jm-loadmore { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 32px auto 0; max-width: 360px; text-align: center; }
.jm-loadmore__info { margin: 0; color: var(--jm-muted); font-size: 14px; }
.jm-loadmore__bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--jm-surface-2); overflow: hidden; }
.jm-loadmore__bar i { display: block; height: 100%; background: var(--jm-accent); border-radius: 4px; transition: width .3s; }
.jm-loadmore__btn { min-width: 240px; gap: 6px; }
.jm-loadmore__btn small { color: var(--jm-muted); font-weight: 600; }
.jm-loadmore__btn.is-loading { opacity: .6; cursor: progress; }
.jm-loadmore__first { font-size: 13px; color: var(--jm-muted); }
.jm-loadmore__first:hover { color: var(--jm-accent-fg); }
/* JS-sel a normál lapozó rejtve (a robotok és JS nélkül marad) */
body.jm-has-loadmore .jm-pager-wrap.is-loadmore { display: none; }

/* Kosárba repülő termékkép */
.jm-fly {
    position: fixed; z-index: 2000; pointer-events: none; object-fit: contain;
    background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 2px var(--jm-accent);
    will-change: transform, opacity;
}
.jm-fly-hit .jm-cartbtn__icon, .jm-fly-hit .jm-bottomnav__icon, .jm-fly-hit.jm-cartbtn__icon { animation: jm-cart-hit .45s ease; }
@keyframes jm-cart-hit { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
    .jm-skel > span::after, .jm-pgrid > .is-new { animation: none; }
}

/* Mobil szűrőlap: lehúzható (js/main.js) – a fejléc a fogantyú */
@media (max-width: 991.98px) {
    .jm-filters__head { touch-action: none; padding-top: 22px; cursor: grab; }
    .jm-filters { will-change: transform; }
}

/* Aktív szűrők gombsora (js/listing.js) */
.jm-activefilters { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.jm-activefilters__list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.jm-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px 0 12px;
    border: 1px solid rgba(var(--jm-accent-rgb), .45); border-radius: 999px; background: rgba(var(--jm-accent-rgb), .08);
    color: var(--jm-text); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s;
}
.jm-chip small { color: var(--jm-muted); font-weight: 500; font-size: 12px; }
.jm-chip svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; background: rgba(255, 255, 255, .08); }
.jm-chip:hover, .jm-chip:focus-visible { border-color: var(--jm-accent); background: rgba(var(--jm-accent-rgb), .16); }
.jm-chip:hover svg { background: var(--jm-accent); color: var(--jm-accent-ink); }
.jm-chip.is-removing { opacity: .4; pointer-events: none; }
.jm-activefilters__clear {
    flex: none; min-height: 36px; padding: 0 6px; border: 0; background: transparent; color: var(--jm-muted);
    font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap;
}
.jm-activefilters__clear:hover { color: var(--jm-accent-fg); }
.jm-activefilters.is-busy { opacity: .6; pointer-events: none; }
.jm-shop__filter-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px;
    border-radius: 999px; background: var(--jm-accent); color: var(--jm-accent-ink); font-size: 12px; font-weight: 800; line-height: 1;
}
@media (max-width: 767.98px) {
    /* Mobilon egy sorban, oldalra görgethető; a törlés gomb elöl, mindig látszik */
    .jm-activefilters { margin: 0 -16px 12px; padding: 0 16px; }
    .jm-activefilters__clear { order: -1; padding: 0 12px; border: 1px solid var(--jm-line); border-radius: 999px; text-decoration: none; color: var(--jm-text); background: var(--jm-surface); }
    .jm-activefilters__list {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-right: 16px;
        mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .jm-activefilters__list::-webkit-scrollbar { display: none; }
    .jm-chip { min-height: 40px; }
}

/* Jármű-összehasonlító gomb (jarmu-osszehasonlito plugin) */
.jm-card__compare {
    position: absolute; top: 56px; right: 8px; width: 40px; height: 40px; border-radius: 10px; border: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center; background: rgba(var(--jm-bg-rgb), .72); color: var(--jm-text); cursor: pointer;
}
.jm-card__compare svg, .jm-comparebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.jm-card__compare:hover, .jm-card__compare.is-on, .jm-comparebtn.is-on { color: var(--jm-accent-fg); }
.jm-card__compare.is-on { background: rgba(var(--jm-bg-rgb), .9); box-shadow: inset 0 0 0 2px var(--jm-accent); }
.jm-comparebtn.is-on { border-color: var(--jm-accent); }

/* ---------- Termékkártya mini-galéria (asztalin az egér helye, mobilon lapozás választ képet) ---------- */
.jm-card__media[data-jm-gallery] { position: relative; }
.jm-card__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; transition: opacity .2s; }
.jm-card__dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(10, 10, 11, .28); transition: width .2s var(--jm-ease), background .2s; }
.jm-card__dots i.is-on { width: 16px; background: #0a0a0b; }
@media (hover: hover) and (pointer: fine) {
    .jm-card__dots { opacity: 0; }
    .jm-card:hover .jm-card__dots { opacity: 1; }
    /* Galériánál a nagyítás zavarná a képek váltását */
    .jm-card:hover .jm-card__media[data-jm-gallery] img { transform: none; }
}
.jm-card__media.is-swapping img { animation: jm-card-swap .18s ease-out; }
@keyframes jm-card-swap { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jm-card__media.is-swapping img { animation: none; } }

/* ---------- „Csak a járműveimhez illők” kapcsolósáv (garázs) ---------- */
.jm-fitbar {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border-radius: 14px;
    border: 1px solid var(--jm-line); background: var(--jm-surface); color: var(--jm-text); transition: border-color .15s, background .15s;
}
.jm-fitbar:hover { border-color: var(--jm-accent); color: var(--jm-text); }
.jm-fitbar.is-on { border-color: var(--jm-accent); background: rgba(var(--jm-accent-rgb), .1); }
.jm-fitbar__icon { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jm-fitbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.jm-fitbar__text b { font-size: 15px; }
.jm-fitbar__text small { color: var(--jm-muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jm-switch { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--jm-handle); transition: background .2s; }
.jm-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s var(--jm-ease); }
.jm-fitbar.is-on .jm-switch { background: var(--jm-accent); }
.jm-fitbar.is-on .jm-switch i { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .jm-switch, .jm-switch i { transition: none; } }

/* ---------- Járművek kulcsadatai (chipek a termékoldal címe alatt) ---------- */
.jm-facts { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .jm-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jm-fact { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--jm-line); background: var(--jm-surface); }
.jm-fact svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jm-fact span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.jm-fact b { font-family: var(--jm-font-cond); font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm-fact small { color: var(--jm-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- „Leér a lábad?” ---------- */
.jm-reach { margin: 0 0 18px; border: 1px solid var(--jm-line); border-radius: 14px; background: var(--jm-surface); }
.jm-reach summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.jm-reach summary::-webkit-details-marker { display: none; }
.jm-reach summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--jm-muted); border-bottom: 2px solid var(--jm-muted); transform: rotate(45deg); transition: transform .2s; }
.jm-reach[open] summary::after { transform: rotate(-135deg); }
.jm-reach summary span { display: flex; flex-direction: column; line-height: 1.2; }
.jm-reach summary small { color: var(--jm-muted); font-size: 12px; }
.jm-reach__ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jm-reach__body { padding: 0 14px 14px; }
.jm-reach__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.jm-reach__inputs label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; color: var(--jm-text-soft); }
.jm-reach__inputs small { font-weight: 400; color: var(--jm-muted); }
.jm-reach__field { display: flex; align-items: center; gap: 6px; color: var(--jm-muted); }
.jm-reach__field input { width: 100%; max-width: 110px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--jm-line); background: var(--jm-bg); color: var(--jm-text); font-size: 18px; font-weight: 700; }
.jm-reach__field input:focus { outline: 2px solid var(--jm-accent); outline-offset: 1px; }
.jm-reach__scene { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px auto 0; }
.jm-reach__ground { stroke: var(--jm-muted); stroke-width: 2; stroke-dasharray: 2 4; }
.jm-reach__wheel { fill: none; stroke: var(--jm-text-soft); stroke-width: 7; }
.jm-reach__hub { fill: var(--jm-surface-2); stroke: var(--jm-dim); stroke-width: 2; }
.jm-reach__frame { fill: none; stroke: var(--jm-dim); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.jm-reach__engine { fill: var(--jm-surface-2); stroke: var(--jm-dim); stroke-width: 2; }
.jm-reach__seat { fill: var(--jm-accent); }
.jm-reach__dim { stroke: var(--jm-muted); stroke-width: 1.5; }
.jm-reach__dimtext { fill: var(--jm-muted); font: 600 11px var(--jm-font); }
.jm-reach__body { fill: none; stroke: var(--jm-text); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.jm-reach__head { fill: var(--jm-text); }
.jm-reach__leg { fill: none; stroke: var(--jm-text); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.jm-reach__foot { fill: none; stroke: var(--jm-text); stroke-width: 7; stroke-linecap: round; }
.jm-reach__gap { stroke: #ef4444; stroke-width: 2.5; stroke-dasharray: 4 4; }
.jm-reach__result { margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--jm-surface-2); font-weight: 600; }
.jm-reach__result.is-ok, .jm-reach__result.is-good { background: rgba(34, 197, 94, .14); color: var(--jm-success); }
.jm-reach__result.is-tip { background: rgba(245, 158, 11, .14); color: var(--jm-warning); }
.jm-reach__result.is-one, .jm-reach__result.is-no { background: rgba(239, 68, 68, .12); color: var(--jm-sale); }
.jm-reach__note { margin: 0; color: var(--jm-muted); font-size: 12px; }

/* ---------- Színválasztó élő előnézet ---------- */
.jm-gallery.has-vcolor .jm-gallery__main {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--jm-vcolor) 70%, transparent), 0 24px 60px -18px color-mix(in srgb, var(--jm-vcolor) 75%, transparent);
    transition: box-shadow .45s var(--jm-ease);
}
.jm-gallery.has-vcolor .jm-gallery__main::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none;
    background: var(--jm-vcolor); transition: background .45s var(--jm-ease);
}
[data-jm-main-image].is-xfade { animation: jm-xfade .45s ease-out; }
@keyframes jm-xfade { from { opacity: .15; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    [data-jm-main-image].is-xfade { animation: none; }
    .jm-gallery.has-vcolor .jm-gallery__main, .jm-gallery.has-vcolor .jm-gallery__main::after { transition: none; }
}

/* ---------- „Mit jelent a jelölés?” (gumi / olaj) ---------- */
.jm-mark { margin: 0 0 18px; border: 1px solid var(--jm-line); border-radius: 14px; background: var(--jm-surface); }
.jm-mark summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.jm-mark summary::-webkit-details-marker { display: none; }
.jm-mark summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--jm-muted); border-bottom: 2px solid var(--jm-muted); transform: rotate(45deg); transition: transform .2s; flex: none; }
.jm-mark[open] summary::after { transform: rotate(-135deg); }
.jm-mark summary span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.jm-mark summary small { color: var(--jm-muted); font-size: 12px; font-family: var(--jm-font-cond); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm-mark__ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jm-mark__body { padding: 0 14px 14px; }
.jm-mark__wall { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 6px; }
.jm-mark__tread { fill: none; stroke: #1b1b1e; stroke-width: 18; stroke-dasharray: 6 5; }
.jm-mark__side { fill: none; stroke: #26262a; stroke-width: 34; }
.jm-mark__arctext { font: 700 20px var(--jm-font-cond); letter-spacing: .06em; fill: #b9b9bf; }
.jm-mark__arctext tspan { transition: fill .15s; }
.jm-mark__arctext tspan.is-on { fill: #FFEE00; }
.jm-mark__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.jm-mark__chip { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--jm-line); background: var(--jm-bg); color: var(--jm-text); font: 700 18px var(--jm-font-cond); letter-spacing: .04em; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.jm-mark__chip:hover, .jm-mark__chip.is-on { border-color: var(--jm-accent); background: rgba(var(--jm-accent-rgb), .14); }
.jm-mark__chip:active { transform: scale(.95); }
.jm-mark__list { margin: 0; display: grid; gap: 6px; }
.jm-mark__item { padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; transition: border-color .15s, background .15s; cursor: default; }
.jm-mark__item.is-on { border-color: var(--jm-accent); background: rgba(var(--jm-accent-rgb), .08); }
.jm-mark__item dt { font-weight: 700; font-size: 14px; }
.jm-mark__item dd { margin: 2px 0 0; color: var(--jm-text-soft); font-size: 14px; line-height: 1.45; }
.jm-mark__tag { display: inline-block; min-width: 34px; margin-right: 4px; padding: 1px 6px; border-radius: 6px; background: var(--jm-surface-2); font-family: var(--jm-font-cond); text-align: center; }
.jm-mark__extra { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid var(--jm-accent); color: var(--jm-text-soft); font-size: 13px; }

/* ---------- „Azonnal átvehető” telephely-választó a lista fölött ---------- */
.jm-pickbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.jm-pickbar__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--jm-text-soft); }
.jm-pickbar__label svg { width: 20px; height: 20px; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jm-pickbar__chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--jm-line); background: var(--jm-surface); color: var(--jm-text); font-size: 14px; font-weight: 600;
    transition: border-color .15s, background .15s;
}
.jm-pickbar__chip:hover { border-color: var(--jm-accent); color: var(--jm-text); }
.jm-pickbar__chip.is-on { border-color: var(--jm-accent); background: var(--jm-accent); color: var(--jm-accent-ink); }
.jm-pickbar__chip.is-on::after { content: "×"; font-size: 18px; line-height: 1; margin-left: 2px; }
.jm-pickbar__chip .sh-dot { width: 7px; height: 7px; }
