/* ==========================================================================
   Liskovački kamen – foto-konfigurator kamena
   Dizajn usklađen s web stranicom: tamna antracitna podloga, krečnjačka
   tipografija, kamen (#c9b48e) kao jedini akcent; Archivo + Instrument Serif;
   oštri uglovi, razmaknuta velika slova za oznake.
   Sve klase imaju prefiks lk- da ne utiču na ostatak stranice.
   ========================================================================== */
:root {
  --lk-black: #0b0b0c;
  --lk-anth: #141517;
  --lk-char: #1c1d20;
  --lk-graph: #2a2c30;
  --lk-lime: #ecebe6;
  --lk-muted: #a3a099;
  --lk-stone: #c9b48e;
  --lk-line: rgba(236, 235, 230, .12);
  --lk-line-2: rgba(236, 235, 230, .28);
  --lk-red: #e59a8a;
  --lk-green: #a9c79c;
  --lk-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --lk-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --lk-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --lk-ease: cubic-bezier(.2, .7, .1, 1);
  --lk-head-h: 76px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--lk-black); color: var(--lk-lime); font-family: var(--lk-sans); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
.lk-app { min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--lk-stone); outline-offset: 2px; }
::selection { background: var(--lk-stone); color: var(--lk-black); }

/* ---------- zaglavlje (kao na web stranici) ---------- */
.lk-head {
  position: relative; z-index: 10; display: flex; align-items: center; gap: 1.5rem;
  height: var(--lk-head-h);
  padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
  background: var(--lk-black); border-bottom: 1px solid var(--lk-line);
}
.lk-brand { flex: none; display: block; line-height: 0; }
.lk-brand img { height: 54px; width: auto; }
.lk-head-title { min-width: 0; padding-left: 1.5rem; border-left: 1px solid var(--lk-line); }
.lk-head-title small { display: flex; align-items: center; gap: .6rem; font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--lk-stone); }
.lk-head-title small::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.lk-head-title h1 { margin: .3rem 0 0; font-family: var(--lk-display); font-weight: 780; font-stretch: 110%; font-size: 1.12rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lk-steps { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.lk-steps button { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border: 0; background: none; color: var(--lk-muted); cursor: pointer; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .3s var(--lk-ease), background-color .3s var(--lk-ease); }
.lk-steps button i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--lk-line-2); font-size: .72rem; letter-spacing: 0; font-variant-numeric: tabular-nums; transition: inherit; }
.lk-steps button:disabled { cursor: default; opacity: .4; }
.lk-steps button.done { color: var(--lk-lime); }
.lk-steps button.done i { border-color: var(--lk-stone); color: var(--lk-stone); }
.lk-steps button.on { color: var(--lk-lime); }
.lk-steps button.on i { background: var(--lk-stone); border-color: var(--lk-stone); color: var(--lk-black); font-weight: 700; }
.lk-steps button:not(:disabled):hover { color: var(--lk-lime); }

.lk-head-nav { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.lk-back { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--lk-muted); text-decoration: none; white-space: nowrap; padding: .5rem 0; transition: color .3s; }
.lk-back:hover { color: var(--lk-lime); }
.lk-lang { display: flex; margin: 0; padding: 0; list-style: none; border: 1px solid var(--lk-line-2); }
.lk-lang a { display: grid; place-items: center; min-width: 38px; height: 34px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; color: var(--lk-muted); transition: color .3s, background-color .3s; }
.lk-lang li + li a { border-left: 1px solid var(--lk-line); }
.lk-lang a:hover { color: var(--lk-lime); }
.lk-lang a[aria-current] { background: var(--lk-lime); color: var(--lk-black); }

.lk-demo { background: var(--lk-char); color: var(--lk-muted); font-size: .78rem; line-height: 1.45; padding: 8px max(24px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--lk-line); }
.lk-demo b { color: var(--lk-stone); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }

/* ---------- raspored ---------- */
.lk-main { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
/* Računar: aplikacija tačno popunjava ekran; zaglavlje, demo-traka i napomena uzimaju koliko im treba, a ostatak dobija prikaz. */
@media (min-width: 961px) {
  .lk-app { height: 100vh; height: 100dvh; min-height: 660px; }
}
.lk-viewer { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px 0 16px 16px; }
.lk-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #080809; border: 1px solid var(--lk-line); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lk-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.lk-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#lk-before { visibility: hidden; }
.lk-layer.compare #lk-before { visibility: visible; }
#lk-tint { pointer-events: none; transition: opacity .2s; }
.lk-ui { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lk-stage[data-tool="brush"], .lk-stage[data-tool="erase"] { cursor: none; }
.lk-stage[data-tool="poly"], .lk-stage[data-tool="ai"], .lk-stage[data-tool="wand"] { cursor: crosshair; }
.lk-stage[data-tool="pan"], .lk-stage[data-tool="none"], .lk-stage[data-tool="quad"] { cursor: grab; }
.lk-stage[data-tool="compare"] { cursor: ew-resize; }

.lk-drop {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, rgba(11,11,12,.5), rgba(11,11,12,.88)), url('pozadina.jpg') center/cover;
}
.lk-drop.over .lk-drop-inner { border-color: var(--lk-stone); background: rgba(201,180,142,.1); }
.lk-drop-inner { max-width: 540px; text-align: center; color: var(--lk-lime); padding: 40px 34px; border: 1px dashed var(--lk-line-2); background: rgba(11,11,12,.35); backdrop-filter: blur(2px); transition: border-color .3s, background-color .3s; }
.lk-drop svg { width: 52px; height: 52px; color: var(--lk-stone); }
.lk-drop-title { font-family: var(--lk-serif); font-style: italic; font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 14px 0 24px; text-wrap: balance; }
.lk-drop-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lk-drop-hint { font-size: .72rem; color: var(--lk-muted); margin: 18px 0 0; letter-spacing: .08em; }

.lk-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(11,11,12,.78); color: var(--lk-lime); text-align: center; padding: 20px; z-index: 5; backdrop-filter: blur(3px); }
.lk-busy p { margin: 0; max-width: 360px; font-size: .88rem; line-height: 1.55; }
.lk-spinner { width: 36px; height: 36px; border: 2px solid var(--lk-line-2); border-top-color: var(--lk-stone); border-radius: 50%; animation: lk-spin .9s linear infinite; }
@keyframes lk-spin { to { transform: rotate(360deg); } }
.lk-progress { width: 240px; height: 2px; background: var(--lk-line-2); overflow: hidden; }
.lk-progress i { display: block; height: 100%; width: 0; background: var(--lk-stone); transition: width .2s; }
.lk-link { background: none; border: 0; color: var(--lk-stone); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .82rem; padding: 6px 0; }
.lk-link:hover { color: var(--lk-lime); }

.lk-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; z-index: 3; border: 1px solid var(--lk-line-2); background: rgba(11,11,12,.82); backdrop-filter: blur(6px); }
.lk-zoom button { width: 40px; height: 40px; border: 0; background: none; color: var(--lk-lime); font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s; }
.lk-zoom button + button { border-top: 1px solid var(--lk-line); }
.lk-zoom button:hover { background: var(--lk-lime); color: var(--lk-black); }

.lk-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -16px); max-width: min(92%, 540px); padding: 11px 16px; background: rgba(11,11,12,.95); color: var(--lk-lime); font-size: .82rem; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 6; box-shadow: 0 10px 30px rgba(0,0,0,.45); border: 1px solid var(--lk-line); border-left: 2px solid var(--lk-stone); }
.lk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.lk-toast.warn { border-left-color: #e3a33b; }

.lk-selbar { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--lk-anth); border: 1px solid var(--lk-line); font-size: .82rem; min-height: 54px; }
.lk-selbar img { width: 38px; height: 38px; object-fit: cover; }
.lk-selbar b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-selbar small { color: var(--lk-muted); display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.lk-selbar .lk-selbar-items { display: flex; gap: 22px; overflow-x: auto; min-width: 0; width: 100%; scrollbar-width: thin; }
.lk-selbar .lk-selbar-item { display: flex; gap: 10px; align-items: center; flex-shrink: 0; max-width: 100%; min-width: 0; }
.lk-selbar .lk-selbar-item > div { min-width: 0; }

/* ---------- panel ---------- */
.lk-panel { display: flex; flex-direction: column; min-height: 0; padding: 16px; }
.lk-pane { flex: 1; overflow-y: auto; padding: 24px 24px 20px; background: var(--lk-anth); border: 1px solid var(--lk-line); border-bottom: 0; scrollbar-width: thin; scrollbar-color: var(--lk-graph) transparent; }
.lk-pane h2 { font-family: var(--lk-display); font-weight: 800; font-stretch: 112%; font-size: 1.6rem; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; margin: 12px 0 14px; color: var(--lk-lime); text-wrap: balance; }
.lk-pane h3 { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--lk-stone); margin: 26px 0 10px; font-weight: 600; }
.lk-pane p { font-size: .9rem; line-height: 1.65; margin: 0 0 12px; color: var(--lk-lime); }
.lk-pane strong { font-weight: 600; color: var(--lk-stone); }
.lk-kicker { display: flex; align-items: center; gap: .7rem; font-size: .66rem !important; letter-spacing: .26em; text-transform: uppercase; color: var(--lk-stone) !important; font-weight: 600; margin: 0 !important; }
.lk-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.lk-muted { color: var(--lk-muted) !important; }
.lk-hint { font-size: .8rem !important; color: var(--lk-muted) !important; line-height: 1.55 !important; }
.lk-note { font-size: .8rem !important; color: var(--lk-muted) !important; border-left: 1px solid var(--lk-stone); padding-left: 14px; margin-top: 20px !important; }
.lk-tips ul { margin: 0; padding: 0; list-style: none; font-size: .86rem; line-height: 1.6; color: var(--lk-lime); }
.lk-tips li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.lk-tips li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--lk-stone); }
.lk-stack { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.lk-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.lk-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lk-nav { display: flex; justify-content: space-between; gap: 10px; padding: 14px 24px; background: var(--lk-char); border: 1px solid var(--lk-line); }
.lk-nav .lk-btn { min-width: 120px; }

/* ---------- dugmad (kao .btn na web stranici) ---------- */
.lk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--lk-line-2); border-radius: 0;
  background: transparent; color: var(--lk-lime);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--lk-ease), border-color .35s var(--lk-ease), color .35s var(--lk-ease);
}
.lk-btn:disabled { opacity: .4; cursor: not-allowed; }
.lk-btn-primary, .lk-btn-gold { background: var(--lk-stone); border-color: var(--lk-stone); color: var(--lk-black); }
.lk-btn-primary:not(:disabled):hover, .lk-btn-gold:not(:disabled):hover { background: var(--lk-lime); border-color: var(--lk-lime); }
.lk-btn-ghost { background: transparent; }
.lk-btn-ghost:not(:disabled):hover { border-color: var(--lk-lime); background: rgba(236,235,230,.05); }
.lk-btn-small { min-height: 38px; padding: .5rem .8rem; font-size: .66rem; letter-spacing: .12em; }
.lk-wide { width: 100%; }

.lk-label, .lk-pane .lk-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .66rem; font-weight: 600; color: var(--lk-lime); margin: 18px 0 8px; letter-spacing: .18em; text-transform: uppercase; }
.lk-label output { color: var(--lk-stone); font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--lk-stone); }
.lk-check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; margin: 16px 0; cursor: pointer; color: var(--lk-lime); }
.lk-check input { margin-top: 2px; accent-color: var(--lk-stone); width: 16px; height: 16px; flex-shrink: 0; }

.lk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .4rem .75rem; border: 1px solid var(--lk-line-2); background: transparent; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--lk-muted); text-align: left; transition: color .25s, border-color .25s, background-color .25s; }
.lk-chip:hover { color: var(--lk-lime); border-color: var(--lk-lime); }
.lk-chip.on { background: var(--lk-lime); border-color: var(--lk-lime); color: var(--lk-black); }
.lk-chip small { opacity: .65; margin-left: 2px; letter-spacing: .04em; }

.lk-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 16px; border-bottom: 1px solid var(--lk-line); }
.lk-tabs button { background: none; border: 0; padding: 12px 6px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lk-muted); cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s; }
.lk-tabs button:hover { color: var(--lk-lime); }
.lk-tabs button.on { color: var(--lk-lime); border-bottom-color: var(--lk-stone); }

.lk-seg { display: inline-flex; border: 1px solid var(--lk-line-2); margin: 14px 0 2px; }
.lk-seg button { border: 0; background: none; padding: .55rem .9rem; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--lk-muted); transition: color .25s, background-color .25s; }
.lk-seg button + button { border-left: 1px solid var(--lk-line); }
.lk-seg button:hover { color: var(--lk-lime); }
.lk-seg button.on { background: var(--lk-lime); color: var(--lk-black); }
#lk-mode button[data-mode="sub"].on { background: var(--lk-red); color: var(--lk-black); }

.lk-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.lk-tools button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border: 1px solid var(--lk-line); background: var(--lk-char); cursor: pointer; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lk-lime); transition: border-color .25s, background-color .25s, color .25s; }
.lk-tools button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lk-tools button:hover { border-color: var(--lk-line-2); background: var(--lk-graph); }
.lk-tools button.on { background: var(--lk-black); color: var(--lk-stone); border-color: var(--lk-stone); }
.lk-tools button:disabled { opacity: .35; cursor: not-allowed; }
.lk-toolopt { display: none; }
.lk-toolopt.on { display: block; }
.lk-history { border-top: 1px solid var(--lk-line); padding-top: 14px; margin-top: 16px; }

.lk-ai-box { padding: 14px 16px; background: var(--lk-char); border: 1px solid var(--lk-line); border-left: 1px solid var(--lk-stone); }
.lk-ai-box p { margin: 8px 0 10px; font-size: .8rem; }
.lk-ai-head { display: flex; align-items: center; gap: 10px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lk-lime); }
.lk-ai-head strong { color: inherit !important; font-weight: 600; }
.lk-ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lk-muted); flex: none; }
.lk-ai-dot.busy { background: var(--lk-stone); animation: lk-pulse 1s ease-in-out infinite; }
.lk-ai-dot.ok { background: var(--lk-green); }
.lk-ai-dot.err { background: var(--lk-red); }
@keyframes lk-pulse { 50% { opacity: .3; } }

.lk-surfaces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.lk-surf { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 6px 4px 12px; border: 1px solid var(--lk-line-2); background: transparent; font-size: .78rem; cursor: pointer; color: var(--lk-lime); }
.lk-surf.on { border-color: var(--lk-stone); background: rgba(201,180,142,.08); }
.lk-surf i { width: 9px; height: 9px; background: var(--lk-stone); flex: none; }
.lk-surf:not(.on) i { background: #96a5b6; }
.lk-surf .x { border: 0; background: none; color: var(--lk-muted); cursor: pointer; padding: 0 6px; font-size: 16px; line-height: 1; }
.lk-surf .x:hover { color: var(--lk-lime); }
.lk-surf-add { border-style: dashed; color: var(--lk-muted); padding: 4px 12px; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lk-surf-add:hover { color: var(--lk-lime); border-color: var(--lk-lime); }

.lk-input-unit { display: flex; align-items: center; border: 1px solid var(--lk-line-2); background: var(--lk-char); max-width: 180px; transition: border-color .3s; }
.lk-input-unit input { border: 0; background: none; padding: 11px 12px; font-size: 1rem; width: 100%; min-width: 0; outline: none; color: var(--lk-lime); }
.lk-input-unit span { padding: 0 12px; color: var(--lk-muted); font-size: .82rem; }

/* ---------- katalog ---------- */
.lk-filter { margin: 4px 0 16px; }
.lk-current { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--lk-black); border: 1px solid var(--lk-stone); margin-bottom: 16px; font-size: .86rem; }
.lk-current img { width: 46px; height: 46px; object-fit: cover; }
.lk-current small { display: block; color: var(--lk-stone); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 2px; }
.lk-current b { font-weight: 600; }
.lk-current.empty { background: transparent; color: var(--lk-muted); border: 1px dashed var(--lk-line-2); font-size: .8rem; }
.lk-products { display: flex; flex-direction: column; gap: 10px; }
.lk-prod { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px; border: 1px solid var(--lk-line); background: var(--lk-char); transition: border-color .25s; }
.lk-prod:hover { border-color: var(--lk-line-2); }
.lk-prod.on { border-color: var(--lk-stone); }
.lk-prod-photo { position: relative; width: 96px; height: 96px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--lk-graph); }
.lk-prod-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--lk-ease); }
.lk-prod-photo:hover img { transform: scale(1.06); }
.lk-prod-photo span { position: absolute; left: 0; bottom: 0; font-size: .56rem; padding: 3px 6px; background: rgba(11,11,12,.85); color: var(--lk-lime); letter-spacing: .1em; text-transform: uppercase; }
.lk-prod h4 { margin: 2px 0 0; font-family: var(--lk-display); font-weight: 750; font-stretch: 108%; font-size: .98rem; line-height: 1.15; text-transform: uppercase; color: var(--lk-lime); }
.lk-prod .sub { font-family: var(--lk-serif); font-style: italic; font-size: .95rem; color: var(--lk-muted); margin: 2px 0 6px; line-height: 1.25; }
.lk-prod .cat { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lk-stone); font-weight: 600; }
.lk-prod .lk-link { font-size: .74rem; }
.lk-vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lk-var { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--lk-line-2); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 600; color: var(--lk-lime); text-align: left; line-height: 1.25; transition: border-color .25s, background-color .25s, color .25s; position: relative; }
.lk-var img { width: 32px; height: 32px; object-fit: cover; flex: none; }
.lk-var:hover { border-color: var(--lk-lime); }
.lk-var.on { background: var(--lk-lime); color: var(--lk-black); border-color: var(--lk-lime); }
.lk-var.loading::after { content: ''; position: absolute; inset: 0; background: rgba(11,11,12,.5); animation: lk-pulse .8s infinite; }
.lk-only-inquiry { font-size: .76rem !important; color: var(--lk-muted) !important; margin-top: 6px !important; line-height: 1.45 !important; }
.lk-only-inquiry b { color: var(--lk-lime); font-weight: 600; }
.lk-quality { display: inline-grid; place-items: center; width: 16px; height: 16px; font: italic 400 12px/1 var(--lk-serif); border: 1px solid currentColor; border-radius: 50%; margin-left: 2px; cursor: help; opacity: .75; }
.lk-adjust { margin-top: 20px; border-top: 1px solid var(--lk-line); padding-top: 4px; }
.lk-adjust summary { cursor: pointer; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lk-lime); padding: 14px 0 6px; }
.lk-adjust summary::marker { color: var(--lk-stone); }

.lk-quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--lk-graph) transparent; }
.lk-quick button { flex-shrink: 0; width: 82px; border: 1px solid var(--lk-line); padding: 4px; background: var(--lk-char); cursor: pointer; font-size: .64rem; line-height: 1.3; color: var(--lk-lime); text-align: left; transition: border-color .25s; }
.lk-quick button img { width: 100%; height: 54px; object-fit: cover; display: block; margin-bottom: 5px; }
.lk-quick button:hover { border-color: var(--lk-line-2); }
.lk-quick button.on { border-color: var(--lk-stone); }

.lk-samples .lk-sample-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lk-sample-row button { border: 1px solid var(--lk-line); overflow: hidden; padding: 0; cursor: pointer; background: var(--lk-char); text-align: left; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lk-lime); font-weight: 600; transition: border-color .25s; }
.lk-sample-row button:hover { border-color: var(--lk-stone); }
.lk-sample-row img { width: 100%; height: 92px; object-fit: cover; display: block; transition: transform .8s var(--lk-ease); }
.lk-sample-row button:hover img { transform: scale(1.04); }
.lk-sample-row span { display: block; padding: 8px 10px; }
.lk-model { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--lk-line-2); color: var(--lk-lime); text-decoration: none; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; transition: border-color .3s, color .3s; }
.lk-model svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--lk-stone); stroke-width: 1.4; stroke-linejoin: round; }
.lk-model span:first-of-type { flex: 1; }
.lk-model:hover { border-color: var(--lk-stone); color: var(--lk-stone); }

/* ---------- upit ---------- */
.lk-summary { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; background: var(--lk-char); border: 1px solid var(--lk-line); margin: 4px 0 8px; font-size: .8rem; line-height: 1.5; }
.lk-summary img { width: 112px; height: 84px; object-fit: cover; }
.lk-summary b { color: var(--lk-lime); font-weight: 600; }
.lk-form input:not([type=checkbox]), .lk-form textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--lk-line-2); border-radius: 0; font-size: 1rem; background: var(--lk-char); color: var(--lk-lime); transition: border-color .3s, background-color .3s; }
.lk-form textarea { resize: vertical; line-height: 1.5; }
.lk-form input::placeholder, .lk-form textarea::placeholder { color: #7f7c75; }
.lk-form input:hover, .lk-form textarea:hover { border-color: var(--lk-muted); }
.lk-form input:focus, .lk-form textarea:focus { outline: none; border-color: var(--lk-stone); background: var(--lk-black); }
.lk-input-unit:focus-within { border-color: var(--lk-stone); }
.lk-form .invalid { border-color: var(--lk-red) !important; }
.lk-form .lk-btn { margin-top: 4px; }
.lk-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.lk-form-status { font-size: .84rem !important; margin-top: 12px !important; }
.lk-form-status.ok { color: var(--lk-green) !important; font-weight: 600; }
.lk-form-status.err { color: var(--lk-red) !important; }
.lk-alt { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--lk-line); }
.lk-alt-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

.lk-disclaimer { margin: 0; padding: 10px 24px; font-size: .7rem; color: var(--lk-muted); text-align: center; line-height: 1.45; border-top: 1px solid var(--lk-line); }

/* ---------- modal proizvoda ---------- */
.lk-modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,6,.78); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.lk-modal-card { position: relative; width: min(960px, 100%); max-height: 92vh; overflow: auto; background: var(--lk-anth); border: 1px solid var(--lk-line); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lk-modal-x { position: absolute; right: 0; top: 0; z-index: 2; width: 48px; height: 48px; border: 0; border-left: 1px solid var(--lk-line); border-bottom: 1px solid var(--lk-line); background: rgba(11,11,12,.85); font-size: 24px; cursor: pointer; color: var(--lk-lime); transition: background-color .25s, color .25s; }
.lk-modal-x:hover { background: var(--lk-lime); color: var(--lk-black); }
.lk-m-gallery { background: #080809; display: flex; flex-direction: column; }
.lk-m-gallery .main { flex: 1; min-height: 300px; display: grid; place-items: center; }
.lk-m-gallery .main img { max-width: 100%; max-height: 62vh; display: block; }
.lk-m-gallery .thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--lk-black); border-top: 1px solid var(--lk-line); }
.lk-m-gallery .thumbs button { border: 1px solid transparent; padding: 0; overflow: hidden; cursor: pointer; flex-shrink: 0; background: none; opacity: .6; transition: opacity .25s, border-color .25s; }
.lk-m-gallery .thumbs button:hover { opacity: 1; }
.lk-m-gallery .thumbs button.on { border-color: var(--lk-stone); opacity: 1; }
.lk-m-gallery .thumbs img { width: 64px; height: 48px; object-fit: cover; display: block; }
.lk-m-body { padding: 30px 28px 26px; }
.lk-m-body h3 { font-family: var(--lk-display); font-weight: 800; font-stretch: 112%; font-size: 1.7rem; line-height: 1; text-transform: uppercase; margin: 12px 0 6px; color: var(--lk-lime); }
.lk-m-sub { font-family: var(--lk-serif); font-style: italic; color: var(--lk-stone); font-size: 1.15rem !important; line-height: 1.3; margin-bottom: 16px !important; }
.lk-m-body p { font-size: .9rem; line-height: 1.65; color: var(--lk-lime); }
.lk-m-body dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: .84rem; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--lk-line); border-bottom: 1px solid var(--lk-line); }
.lk-m-body dt { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lk-stone); padding-top: .2em; }
.lk-m-body dd { margin: 0; }

/* ---------- prikaz po uređaju ---------- */
.lk-only-touch { display: none !important; }
@media (hover: none) and (pointer: coarse) { .lk-only-touch { display: inline-flex !important; } .lk-only-mouse { display: none; } }

@media (max-width: 1280px) {
  .lk-head-title { display: none; }
}
@media (max-width: 1100px) {
  .lk-main { grid-template-columns: minmax(0, 1fr) 380px; }
  .lk-steps span { display: none; }
  .lk-steps button.on span { display: inline; }
  .lk-back { display: none; }
}
@media (max-width: 960px) {
  :root { --lk-head-h: 62px; }
  .lk-head { gap: 12px; padding: 0 max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); }
  .lk-brand img { height: 44px; }
  .lk-steps { gap: 0; }
  .lk-steps button { padding: 6px 4px; }
  .lk-steps button span { display: none !important; }
  .lk-main { display: block; height: auto; min-height: 0; }
  .lk-viewer { padding: 0; position: sticky; top: 0; z-index: 4; background: var(--lk-black); }
  .lk-stage { flex: none; height: min(56vh, 128vw); min-height: 280px; border-left: 0; border-right: 0; border-top: 0; }
  .lk-selbar { margin: 0; border-left: 0; border-right: 0; border-top: 0; min-height: 0; padding: 6px 14px; }
  .lk-panel { padding: 0 0 calc(76px + env(safe-area-inset-bottom)); }
  .lk-pane { border: 0; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 26px max(16px, env(safe-area-inset-left, 0px)); overflow: visible; }
  .lk-pane h2 { font-size: 1.45rem; }
  .lk-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; border: 0; border-top: 1px solid var(--lk-line-2); background: rgba(11,11,12,.96); backdrop-filter: blur(8px); padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left, 0px)); }
  .lk-nav .lk-btn { flex: 1; min-width: 0; }
  .lk-modal { padding: 0; place-items: end stretch; }
  .lk-modal-card { grid-template-columns: minmax(0, 1fr); max-height: 94vh; border-bottom: 0; }
  .lk-m-gallery .main { min-height: 220px; }
  .lk-m-gallery .main img { max-height: 42vh; }
  .lk-m-body { padding: 22px 18px 26px; }
  .lk-drop-title { font-size: 1.35rem; }
  .lk-drop-inner { padding: 26px 18px; }
  .lk-zoom { right: 8px; bottom: 8px; }
  .lk-zoom button { width: 36px; height: 36px; }
  .lk-disclaimer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .lk-tools button { padding: 10px 2px 8px; }
  html { scroll-padding-top: calc(min(56vh, 128vw) + 64px); scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .lk-app[data-step="1"] .lk-viewer, .lk-app[data-step="5"] .lk-viewer { position: relative; }
  .lk-app[data-step="5"] .lk-stage { height: 38vh; }
}
/* Telefon: zaglavlje u dva reda (logo + jezik, pa koraci) */
@media (max-width: 600px) {
  .lk-head { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .lk-brand img { height: 40px; }
  .lk-head-nav { margin-left: auto; }
  .lk-lang a { min-width: 36px; height: 32px; }
  .lk-steps { order: 3; flex-basis: 100%; margin: 6px 0 0; justify-content: space-between; border-top: 1px solid var(--lk-line); padding: 6px 0; }
  .lk-steps li { flex: 1; }
  .lk-steps button { width: 100%; justify-content: center; }
  .lk-row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 380px) {
  .lk-steps button.on span { display: none; }
  .lk-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lk-tools button { font-size: .56rem; letter-spacing: .06em; }
  .lk-prod { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .lk-prod-photo { width: 76px; height: 76px; }
}
@media (max-width: 960px) and (orientation: landscape) and (max-height: 500px) {
  .lk-stage { height: 78vh; }
  .lk-viewer { position: relative; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
