/* NERLIGO katalog – frontend (moderní, čisté, bez admin tlačítek) */
.nk-wrap{
  --bg0:#f6f8ff;
  --bg1:#f9fafc;
  --card:rgba(255,255,255,.72);
  --stroke:rgba(15,23,42,.10);
  --stroke2:rgba(15,23,42,.08);
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --shadow: 0 18px 45px rgba(15,23,42,.10);
  --shadow2: 0 10px 24px rgba(15,23,42,.10);
  --radius:20px;
  --radius2:16px;
  --focus: rgba(56,189,248,.35);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1100px 700px at 15% 10%, rgba(125,211,252,.25), transparent 55%),
    radial-gradient(900px 650px at 95% 20%, rgba(167,243,208,.25), transparent 55%),
    radial-gradient(1000px 750px at 60% 95%, rgba(251,207,232,.22), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  border-radius: var(--radius);
  padding: 16px;
}

.nk-shell{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:16px;
  align-items:start;
}
@media (max-width:980px){ .nk-shell{grid-template-columns:1fr} }

.nk-sidebar, .nk-main{
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nk-sidebar{ position: sticky; top: 12px; padding: 14px; overflow:hidden; }
@media (max-width:980px){ .nk-sidebar{ position: relative; top: auto; } }

.nk-brand{ display:flex; gap:12px; align-items:center; padding: 8px 8px 12px; }
.nk-logo{
  width:40px;height:40px;border-radius:14px;
  background:
    radial-gradient(16px 16px at 30% 35%, rgba(255,255,255,.95), rgba(255,255,255,.55) 60%, transparent 61%),
    linear-gradient(135deg, rgba(125,211,252,.95), rgba(167,243,208,.9), rgba(251,207,232,.9));
  border:1px solid rgba(255,255,255,.6);
  box-shadow: 0 10px 18px rgba(15,23,42,.12);
}
.nk-h1{ font-weight:700; font-size:14px; line-height:1.1; }
.nk-p{ font-size:12px; color: var(--muted2); margin-top:2px; }

.nk-tools{
  padding: 10px 8px 12px;
  border-top: 1px solid var(--stroke2);
  border-bottom: 1px solid var(--stroke2);
}
.nk-input{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.nk-input svg{ width:18px;height:18px; opacity:.7; flex:0 0 auto; }
.nk-input input{
  width:100%;
  border:0; outline:none; background:transparent;
  font-size: 13px; color: var(--text);
}
.nk-input input::placeholder{ color: rgba(71,85,105,.75) }

.nk-nav{ padding: 10px 8px; display:grid; gap:8px; max-height: 56vh; overflow:auto; }
.nk-nav::-webkit-scrollbar{width:10px}
.nk-nav::-webkit-scrollbar-thumb{background: rgba(15,23,42,.12); border-radius:999px}
.nk-navbtn{
  cursor:pointer; text-align:left;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  border-radius: 16px;
  padding: 10px 12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.nk-navbtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.75) }
.nk-navbtn[data-active="true"]{
  border-color: rgba(56,189,248,.45);
  background: linear-gradient(135deg, rgba(125,211,252,.26), rgba(167,243,208,.22), rgba(251,207,232,.20));
}
.nk-navtitle{ display:flex; flex-direction:column; gap:2px; min-width:0 }
.nk-navtitle strong{ font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-navtitle span{ font-size:12px; color: var(--muted2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-count{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  flex: 0 0 auto;
}

.nk-main{ padding: 14px; min-height: 520px; }
.nk-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:14px; padding: 10px 10px 14px;
}
@media (max-width:700px){ .nk-top{flex-direction:column} }

.nk-title{ font-weight:800; font-size:18px; letter-spacing:.2px; line-height:1.15; }
.nk-sub{ color: var(--muted2); font-size:13px; line-height:1.35; margin-top:6px; }

.nk-stats{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.nk-stat{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  border-radius: 14px;
  padding: 9px 10px;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
  min-width: 120px;
}
.nk-stat b{ display:block; font-size:12px; color: var(--muted2); font-weight:600; }
.nk-stat span{ display:block; font-size:14px; margin-top:2px; }

.nk-bar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding: 0 10px 14px; }
.nk-select{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.nk-select label{ font-size:12px; color: var(--muted2); white-space:nowrap; }
.nk-select select{ border:0; outline:none; background:transparent; font-size:13px; color: var(--text); }

.nk-grid{
  border-top: 1px solid var(--stroke2);
  padding: 14px 10px 10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
@media (max-width:1120px){ .nk-grid{grid-template-columns: repeat(2, minmax(0,1fr));} }
@media (max-width:700px){ .nk-grid{grid-template-columns: 1fr;} }

.nk-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow2);
  transition: transform .14s ease, border-color .18s ease, background .18s ease;
  display:flex; flex-direction:column;
  min-height: 280px;
}
.nk-card:hover{
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.40);
  background: rgba(255,255,255,.74);
}
.nk-thumb{
  width:100%;
  aspect-ratio: 16/10;
  background:
    radial-gradient(20px 20px at 20% 30%, rgba(255,255,255,.90), rgba(255,255,255,.35) 55%, transparent 56%),
    linear-gradient(135deg, rgba(125,211,252,.28), rgba(167,243,208,.24), rgba(251,207,232,.22));
}
.nk-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.nk-content{ padding: 12px; display:flex; flex-direction:column; gap:8px; flex:1 1 auto; min-width:0; }
.nk-h3{ margin:0; font-size:14px; font-weight:800; line-height:1.25; }
.nk-subline{ font-size:12.5px; color: var(--muted2); line-height:1.35; }
.nk-desc{
  font-size: 13px; color: var(--muted); line-height:1.4;
  display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden;
}
.nk-price{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  font-weight:700;
  color: var(--text);
  padding-top: 6px;
}
.nk-actions{ padding: 0 12px 12px; display:flex; gap:10px; align-items:center; justify-content:flex-start; }
.nk-link{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
  transition: transform .12s ease, background .18s ease;
}
.nk-link:hover{ transform: translateY(-1px); background: rgba(255,255,255,.74) }
.nk-ghost{ border: 1px dashed rgba(15,23,42,.16); background: rgba(255,255,255,.45); color: var(--muted2); cursor:pointer; }

.nk-empty{
  border: 1px dashed rgba(15,23,42,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.52);
  padding: 18px;
  margin: 10px;
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
}
.nk-empty-title{ font-weight:800; font-size:14px; }
.nk-empty-text{ color: var(--muted); font-size:13px; line-height:1.5; margin-top:6px; }

/* Modal */
.nk-modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  background: rgba(2,6,23,.35);
  z-index: 9999;
}
.nk-modal[data-open="true"]{ display:flex; }
.nk-dialog{
  width: min(980px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(2,6,23,.35);
  overflow:hidden;
}
.nk-dialogTop{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.nk-x{
  cursor:pointer;
  width:38px;height:38px;border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.65);
  display:grid; place-items:center;
}
.nk-x svg{ width:18px;height:18px; opacity:.75; }
.nk-dialogBody{ display:grid; grid-template-columns: 1.2fr .8fr; }
@media (max-width:860px){ .nk-dialogBody{grid-template-columns:1fr} }
.nk-dMedia{
  background:
    radial-gradient(20px 20px at 20% 30%, rgba(255,255,255,.90), rgba(255,255,255,.35) 55%, transparent 56%),
    linear-gradient(135deg, rgba(125,211,252,.28), rgba(167,243,208,.24), rgba(251,207,232,.22));
  border-right: 1px solid rgba(15,23,42,.10);
  aspect-ratio: 16/11;
}
@media (max-width:860px){ .nk-dMedia{border-right:0;border-bottom: 1px solid rgba(15,23,42,.10)} }
.nk-dMedia img{ width:100%; height:100%; object-fit:cover; display:block; }
.nk-dInfo{ padding: 14px; display:flex; flex-direction:column; gap:8px; }
.nk-dTitle{ font-weight:900; font-size:16px; line-height:1.2; }
.nk-dSubtitle{ color: var(--muted2); font-size:13px; line-height:1.4; }
.nk-dDesc{ color: var(--muted); font-size:13px; line-height:1.55; }
.nk-dPrice{
  margin-top:6px;
  font-weight:900;
  font-size:14px;
}
.nk-dCta{ margin-top:auto; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
