/* Alkatrész-ábrák – a sablon --jm-* színeivel (sötét / világos téma) */

/* ---------- Nyitóoldal ---------- */
.pd-index { padding-top: 8px; padding-bottom: 48px; }
.pd-index__head { margin-bottom: 24px; }
.pd-index__lead { margin: 6px 0 16px; color: var(--jm-muted); max-width: 720px; }
.pd-index__search, .pd-parts__search { position: relative; display: block; max-width: 460px; }
.pd-index__search svg, .pd-parts__search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--jm-muted); stroke-width: 2; pointer-events: none; }
.pd-index__search input, .pd-parts__search input {
    width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--jm-line);
    background: var(--jm-surface); color: var(--jm-text); font-size: 15px;
}
.pd-index__search input:focus, .pd-parts__search input:focus { outline: none; border-color: var(--jm-accent); }
.pd-index__none { color: var(--jm-muted); }
.pd-brand + .pd-brand { margin-top: 32px; }
.pd-brand__title { font-family: var(--jm-font-display); font-weight: 400; font-size: 34px; line-height: 1; margin: 0 0 14px; color: var(--jm-text); }
.pd-vehicle + .pd-vehicle { margin-top: 20px; }
.pd-vehicle__title { font-family: var(--jm-font-cond); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 10px; color: var(--jm-text); }
.pd-vehicle__title small { font-family: var(--jm-font); text-transform: none; font-weight: 500; font-size: 13px; color: var(--jm-muted); margin-left: 6px; }
.pd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pd-card {
    display: flex; flex-direction: column; border-radius: var(--jm-radius, 14px); overflow: hidden; text-decoration: none;
    border: 1px solid var(--jm-line); background: var(--jm-surface); color: var(--jm-text); transition: border-color .15s, transform .15s;
}
.pd-card:hover { border-color: var(--jm-accent); transform: translateY(-2px); color: var(--jm-text); }
.pd-card__img { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; }
.pd-card__img img { width: 100%; height: 100%; object-fit: contain; }
.pd-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.pd-card__body b { font-family: var(--jm-font-cond); font-size: 18px; text-transform: uppercase; letter-spacing: .2px; }
.pd-card__body small { color: var(--jm-muted); font-size: 13px; }

/* ---------- Ábra oldal ---------- */
.pd-show { padding-top: 8px; padding-bottom: 48px; }
.pd-show__eyebrow { margin: 0 0 4px; font-family: var(--jm-font-cond); font-weight: 700; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--jm-accent-fg); }
.pd-show__desc { margin: 6px 0 0; color: var(--jm-muted); max-width: 760px; }
.pd-show__tabs { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0 0; padding-bottom: 4px; scrollbar-width: thin; }
.pd-show__tab {
    flex: none; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none;
    border: 1px solid var(--jm-line); background: var(--jm-surface); color: var(--jm-text);
    font-family: var(--jm-font-cond); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .3px;
}
.pd-show__tab:hover { border-color: var(--jm-accent); color: var(--jm-text); }
.pd-show__tab.is-on { background: var(--jm-accent); border-color: var(--jm-accent); color: var(--jm-accent-ink, #0a0a0b); }
.pd-show__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 991.98px) { .pd-show__grid { grid-template-columns: 1fr; } }

.pd-viewer { border: 1px solid var(--jm-line); border-radius: var(--jm-radius, 14px); background: var(--jm-surface); overflow: hidden; }
@media (min-width: 992px) { .pd-viewer { position: sticky; top: calc(var(--jm-header-h, 90px) + 12px); } }
.pd-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--jm-line); }
.pd-viewer__hint { font-size: 13px; color: var(--jm-muted); }
.pd-viewer__tools { display: flex; gap: 6px; }
.pd-viewer__tools button {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--jm-line); background: var(--jm-bg); color: var(--jm-text);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pd-viewer__tools button:hover { border-color: var(--jm-accent); color: var(--jm-accent-fg); }
.pd-viewer__tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pd-viewer__frame { position: relative; overflow: hidden; background: #fff; touch-action: pan-y; height: 60vh; cursor: default; }
.pd-viewer.is-zoomed .pd-viewer__frame, .pd-show.is-zoomed .pd-viewer__frame { cursor: grab; touch-action: none; }
.pd-viewer__inner { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; will-change: transform; }
.pd-viewer__inner img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

.pd-spot {
    position: absolute; transform: translate(-50%, -50%) scale(var(--pd-inv, 1)); transform-origin: center;
    min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; cursor: pointer;
    background: var(--jm-accent, #ffee00); color: #0a0a0b; border: 2px solid #0a0a0b;
    font: 700 13px/26px var(--jm-font, system-ui), sans-serif; text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35); transition: background .15s, box-shadow .15s, opacity .15s;
}
.pd-spot.is-empty { background: #fff; border-style: dashed; }
.pd-spot:hover, .pd-spot.is-hover { box-shadow: 0 0 0 4px rgba(var(--jm-accent-rgb, 255, 238, 0), .45), 0 3px 8px rgba(0, 0, 0, .35); }
.pd-spot.is-active { background: #0a0a0b; color: var(--jm-accent, #ffee00); border-color: var(--jm-accent, #ffee00); z-index: 2; }
.pd-spot.is-dim { opacity: .25; }
.pd-spot.is-ping { animation: pd-ping 1.1s ease-out 2; }
@keyframes pd-ping { 0% { box-shadow: 0 0 0 0 rgba(var(--jm-accent-rgb, 255, 238, 0), .9); } 100% { box-shadow: 0 0 0 18px rgba(var(--jm-accent-rgb, 255, 238, 0), 0); } }
.pd-spot:focus-visible { outline: 3px solid var(--jm-accent); outline-offset: 2px; }

.pd-parts { border: 1px solid var(--jm-line); border-radius: var(--jm-radius, 14px); background: var(--jm-surface); }
.pd-parts__head { padding: 12px 14px; border-bottom: 1px solid var(--jm-line); display: flex; flex-direction: column; gap: 10px; }
.pd-parts__title { margin: 0; font-family: var(--jm-font-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--jm-text); }
.pd-parts__title small { font-family: var(--jm-font); font-size: 14px; color: var(--jm-muted); margin-left: 4px; }
.pd-parts__search { max-width: none; }
.pd-parts__search input { height: 40px; }
.pd-parts__list { list-style: none; margin: 0; padding: 6px; }
@media (min-width: 992px) { .pd-parts__list { max-height: calc(72vh - 30px); overflow: auto; overscroll-behavior: contain; } }
.pd-part { display: flex; gap: 10px; padding: 10px 8px; border-radius: 12px; transition: background .15s; }
.pd-part + .pd-part { border-top: 1px solid var(--jm-line-soft); }
.pd-part.is-active { background: rgba(var(--jm-accent-rgb), .1); }
.pd-part__n {
    flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; border: 2px solid var(--jm-accent); background: transparent;
    color: var(--jm-accent-fg); font-weight: 800; font-size: 14px; cursor: pointer;
}
.pd-part.is-active .pd-part__n { background: var(--jm-accent); color: var(--jm-accent-ink, #0a0a0b); }
.pd-part__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pd-part__label { font-weight: 700; color: var(--jm-text); padding-top: 6px; }
.pd-part__none { margin: 0; font-size: 13px; color: var(--jm-muted); padding: 8px; }
.pd-prod { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; background: var(--jm-bg); border: 1px solid var(--jm-line-soft); }
.pd-prod__img { flex: none; width: 52px; height: 52px; border-radius: 8px; background: #fff; overflow: hidden; display: flex; }
.pd-prod__img img { width: 100%; height: 100%; object-fit: contain; }
.pd-prod__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-prod__name { color: var(--jm-text); font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-prod__name:hover { color: var(--jm-accent-fg); }
.pd-prod__meta { display: flex; gap: 8px; font-size: 12px; color: var(--jm-muted); }
.pd-prod__stock { color: var(--jm-success); font-weight: 600; }
.pd-prod__stock.is-out { color: var(--jm-warning); }
.pd-prod__buy { flex: none; display: flex; align-items: center; gap: 8px; }
.pd-prod__price { font-family: var(--jm-font-cond); font-weight: 700; font-size: 18px; color: var(--jm-text); white-space: nowrap; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.pd-prod__price s { font-family: var(--jm-font); font-size: 12px; font-weight: 500; color: var(--jm-muted); }
.pd-prod__add {
    width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--jm-accent); color: var(--jm-accent-ink, #0a0a0b);
    display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
}
.pd-prod__add.is-ghost { background: transparent; border: 1px solid var(--jm-line); color: var(--jm-text); }
.pd-prod__add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-prod__add.btn-loading { opacity: .6; pointer-events: none; }

/* ---------- Jármű- és alkatrészoldal ---------- */
.pd-vblock .jm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-vblock__all { font-family: var(--jm-font-cond); font-weight: 700; text-transform: uppercase; color: var(--jm-accent-fg); text-decoration: none; }
.pd-partlink {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--jm-radius, 14px);
    border: 1px solid var(--jm-line); background: var(--jm-surface); font-size: 14px;
}
.pd-partlink svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-partlink b { display: block; color: var(--jm-text); }
.pd-partlink a { display: block; color: var(--jm-text-soft); text-decoration: none; margin-top: 2px; }
.pd-partlink a:hover { color: var(--jm-accent-fg); }
.pd-partlink__n {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 5px;
    border-radius: 999px; background: var(--jm-accent); color: var(--jm-accent-ink, #0a0a0b); font-weight: 800; font-size: 12px;
}
