/* Képkereső (jaszmotor téma változóival) */
.is-cam {
    flex: none; width: 42px; height: 42px; margin-right: 4px; display: grid; place-items: center; border: 0; border-radius: 10px;
    background: none; color: var(--jm-muted); cursor: pointer; transition: color .15s, background .15s, transform .12s;
}
.is-cam:hover, .is-cam:focus-visible { color: var(--jm-accent-fg); background: rgba(var(--jm-accent-rgb), .1); }
.is-cam:active { transform: scale(.92); }
.is-cam svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

html.is-lock { overflow: hidden; }
.is-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; }
.is-modal[hidden] { display: none; }
.is-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); }
.is-modal__dialog {
    position: relative; width: min(720px, 100%); max-height: 100%; overflow: auto; padding: 20px; border-radius: 18px;
    background: var(--jm-surface); border: 1px solid var(--jm-line); color: var(--jm-text);
}
.is-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--jm-surface-2); color: var(--jm-text); cursor: pointer; }
.is-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.is-title { margin: 0 44px 14px 0; font-family: var(--jm-font-display); font-weight: 400; font-size: 30px; }
.is-body { display: grid; gap: 16px; }
@media (min-width: 640px) { .is-body { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
.is-photo { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--jm-surface-2); overflow: hidden; }
.is-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .is-photo { aspect-ratio: 16 / 9; } .is-photo:has(img[hidden]) { display: none; } }
/* „Szkennelő” fénycsík felismerés közben */
.is-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(var(--jm-accent-rgb), .45), transparent); }
.is-modal.is-loading .is-scan { opacity: 1; animation: is-scan 1.4s ease-in-out infinite alternate; }
@keyframes is-scan { from { transform: translateY(-40%); } to { transform: translateY(270%); } }
@media (prefers-reduced-motion: reduce) { .is-modal.is-loading .is-scan { animation: none; top: 35%; } }
.is-state[hidden] { display: none; }
.is-state .jm-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.is-lead { margin: 0 0 14px; color: var(--jm-text-soft); line-height: 1.5; }
.is-found { margin: 0 0 10px; color: var(--jm-muted); }
.is-found b { display: block; color: var(--jm-text); font-size: 22px; font-family: var(--jm-font-cond); text-transform: uppercase; }
.is-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.is-chips:empty { display: none; }
.is-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--jm-line); font-size: 13px; font-weight: 600; color: var(--jm-text); }
.is-chip:hover { border-color: var(--jm-accent); color: var(--jm-text); }
.is-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.is-list:empty { display: none; }
@media (min-width: 640px) { .is-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.is-item { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; border: 1px solid var(--jm-line-soft); background: var(--jm-bg); color: var(--jm-text); }
.is-item:hover { border-color: var(--jm-accent); color: var(--jm-text); }
.is-item__img { aspect-ratio: 1; border-radius: 8px; background: #fff; overflow: hidden; }
.is-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.is-item__name { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-item__price { font-family: var(--jm-font-display); font-weight: 400; font-size: 18px; }
.is-empty, .is-error { margin: 0 0 12px; color: var(--jm-text-soft); }
.is-error { color: var(--jm-warning); font-weight: 600; }
.is-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.is-actions [hidden] { display: none; }
.is-privacy { margin: 14px 0 0; color: var(--jm-muted); font-size: 12px; }

.is-picks { display: grid; gap: 8px; }
@media (min-width: 420px) { .is-picks { grid-template-columns: 1fr 1fr; } }
.is-picks .jm-btn { min-height: 52px; }
/* Asztalin nincs kamera: csak a tallózás */
@media (pointer: fine) { .is-picks [data-is-pick="camera"] { display: none; } .is-picks { grid-template-columns: 1fr; } }
