/* ============================================================
   3D PRINT HUB — vlastný dizajn nad Bootstrapom 5.3
   Mobile-first, svetlý aj tmavý režim.
   ============================================================ */

:root {
  --accent: #6c5ce7;
  --accent-2: #00b894;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --shadow-md: 0 4px 6px -2px rgba(16, 24, 40, .05), 0 12px 16px -4px rgba(16, 24, 40, .1);
  --shadow-lg: 0 8px 8px -4px rgba(16, 24, 40, .04), 0 20px 24px -4px rgba(16, 24, 40, .1);
  --nav-h: 62px;
  --bottom-nav-h: 62px;
}

/* ---------- Farebné plochy ---------- */
[data-bs-theme="light"] {
  --surface: #ffffff;
  --surface-1: var(--surface);
  --surface-2: #f6f7fb;
  --surface-3: #eef0f7;
  --ink: #0f172a;
  --ink-soft: #64748b;
  --line: #e6e8f0;
  --glass: rgba(255, 255, 255, .82);
  --bs-body-bg: #f6f7fb;
  --bs-body-color: #0f172a;
}

[data-bs-theme="dark"] {
  --surface: #161a24;
  --surface-1: var(--surface);
  --surface-2: #10131b;
  --surface-3: #1d2230;
  --ink: #e9edf5;
  --ink-soft: #9aa5b8;
  --line: #262c3a;
  --glass: rgba(22, 26, 36, .85);
  --bs-body-bg: #0b0e14;
  --bs-body-color: #e9edf5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, .5);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 15px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  body { padding-bottom: 0; font-size: 15.5px; }
}

.app-main { flex: 1 0 auto; padding-top: 1.1rem; padding-bottom: 2rem; }

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 2000;
  background: var(--accent); color: #fff; padding: .5rem .9rem; border-radius: 8px;
}

/* ============================================================
   NAVIGÁCIA
   ============================================================ */
.app-navbar {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  min-height: var(--nav-h);
  padding: .5rem 0;
}

.navbar-brand { font-weight: 800; letter-spacing: -.02em; color: var(--ink) !important; }

.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #00d2ff));
  color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

.app-navbar .nav-link {
  font-weight: 500; color: var(--ink-soft); border-radius: 10px; padding: .45rem .8rem;
}
.app-navbar .nav-link:hover { color: var(--ink); background: var(--surface-3); }
.app-navbar .nav-link.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }

.btn-icon {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); transition: .15s;
}
.btn-icon:hover { background: var(--surface-3); color: var(--accent); }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #ff7675));
  color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}

/* Spodná navigácia na mobile */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: stretch;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink-soft); font-size: .68rem; font-weight: 500;
  position: relative; transition: color .15s;
}
.mobile-nav a i { font-size: 1.25rem; }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav a.active::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--accent);
}

/* ============================================================
   TYPOGRAFIA A HLAVIČKA STRÁNKY
   ============================================================ */
.page-head {
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.page-title {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; margin: 0; color: var(--ink);
}
.page-title i { color: var(--accent); }
.page-sub { color: var(--ink-soft); margin: .25rem 0 0; font-size: .92rem; }

@media (min-width: 768px) { .page-title { font-size: 1.9rem; } }

.section-title {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .9rem; color: var(--ink);
}

/* ============================================================
   KARTY A PLOCHY
   ============================================================ */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel { padding: 1.15rem; }
.panel-lg { padding: 1.5rem; }

.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.soft { background: var(--surface-2); border-radius: var(--radius-sm); }

/* Štatistické dlaždice */
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%;
}
.stat .stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; }
.stat .stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: .2rem; }
.stat .stat-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 1.1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 2.2rem 1.3rem;
  background:
    radial-gradient(1000px 400px at 15% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(800px 360px at 95% 10%, rgba(0, 210, 255, .28), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}
.hero h1 { font-size: 1.75rem; font-weight: 850; letter-spacing: -.03em; line-height: 1.15; }
.hero p.lead { color: var(--ink-soft); font-size: 1rem; }

@media (min-width: 768px) {
  .hero { padding: 3.2rem 2.5rem; }
  .hero h1 { font-size: 2.7rem; }
  .hero p.lead { font-size: 1.12rem; }
}

.hero-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
}

/* ============================================================
   TLAČIDLÁ
   ============================================================ */
.btn { border-radius: 11px; font-weight: 600; }
.btn-lg { border-radius: 13px; padding: .75rem 1.4rem; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #00b3ff));
  color: #fff; border: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-accent:hover, .btn-accent:focus { color: #fff; filter: brightness(1.07); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-accent:active { filter: brightness(.95); }

.btn-outline-accent { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); background: transparent; }
.btn-outline-accent:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.btn-soft { background: var(--surface-3); border: 1px solid var(--line); color: var(--ink); }
.btn-soft:hover { background: var(--surface-2); color: var(--accent); }

/* ============================================================
   FORMULÁRE
   ============================================================ */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: .62rem .85rem;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  background: var(--surface);
  color: var(--ink);
}
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; color: var(--ink); }
.form-text { color: var(--ink-soft); font-size: .8rem; }
.input-group-text { background: var(--surface-3); border-color: var(--line); color: var(--ink-soft); border-radius: var(--radius-sm); }

.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }

.form-range::-webkit-slider-thumb { background: var(--accent); }
.form-range::-moz-range-thumb { background: var(--accent); }

/* Dlaždicový výber (materiál, kvalita) */
.tile-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.tile-group input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tile {
  display: block; cursor: pointer; padding: .7rem .8rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: .15s; height: 100%;
}
.tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tile .tile-name { font-weight: 700; font-size: .9rem; }
.tile .tile-meta { font-size: .75rem; color: var(--ink-soft); }
input[type="radio"]:checked + .tile {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
input[type="radio"]:focus-visible + .tile { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   DROPZÓNA PRE STL
   ============================================================ */
.dropzone {
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 2rem 1rem; text-align: center; cursor: pointer;
  transition: .18s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  transform: scale(1.005);
}
.dropzone .dz-icon {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto .8rem;
  display: grid; place-items: center; font-size: 1.7rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}

/* 3D náhľad */
.viewer-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
}
.viewer-box canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-hint {
  position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; color: var(--ink-soft); background: var(--glass);
  padding: .2rem .6rem; border-radius: 20px; pointer-events: none;
}

/* ============================================================
   VÝSLEDOK KALKULÁCIE
   ============================================================ */
.price-card {
  border-radius: var(--radius);
  padding: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0984e3));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.price-card .price-value { font-size: 2.3rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.price-card .price-label { opacity: .85; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv dt { color: var(--ink-soft); font-weight: 500; font-size: .88rem; margin: 0; }
.kv dd { font-weight: 650; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   KNIŽNICA MODELOV
   ============================================================ */
.model-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.model-thumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 50% 130%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 62%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 2.4rem; color: color-mix(in srgb, var(--accent) 70%, var(--ink-soft));
}
.model-thumb img { width: 100%; height: 100%; object-fit: contain; }
.model-card .card-body { padding: .85rem .95rem; }
.model-title { font-weight: 700; font-size: .95rem; line-height: 1.3; margin-bottom: .2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; font-weight: 600; padding: .18rem .55rem; border-radius: 20px;
  background: var(--surface-3); color: var(--ink-soft);
}
.chip-accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* Vyhľadávacia lišta */
.search-bar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .3rem .3rem 1rem;
  display: flex; align-items: center; gap: .5rem; box-shadow: var(--shadow-sm);
}
.search-bar input { border: none; background: transparent; flex: 1; outline: none; color: var(--ink); font-size: .95rem; min-width: 0; }
.search-bar input::placeholder { color: var(--ink-soft); }

.filter-scroll { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-scroll .chip { white-space: nowrap; padding: .35rem .8rem; font-size: .8rem; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.filter-scroll .chip.active { background: var(--accent); color: #fff; }

/* ============================================================
   TABUĽKY
   ============================================================ */
.table { --bs-table-bg: transparent; color: var(--ink); margin-bottom: 0; }
.table > :not(caption) > * > * { border-bottom-color: var(--line); padding: .7rem .75rem; }
.table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); font-weight: 700; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.table-wrap .table-responsive { border-radius: var(--radius); }
.table-hover > tbody > tr:hover > * { background: var(--surface-2); }

/* Na mobile premení tabuľku na karty */
@media (max-width: 575.98px) {
  .table-cards thead { display: none; }
  .table-cards tbody tr {
    display: block; border: 1px solid var(--line); border-radius: var(--radius-sm);
    margin-bottom: .6rem; padding: .35rem .15rem; background: var(--surface);
  }
  .table-cards tbody td {
    display: flex; justify-content: space-between; gap: 1rem;
    border: none !important; padding: .35rem .75rem !important; text-align: right;
  }
  .table-cards tbody td::before {
    content: attr(data-label); font-weight: 600; color: var(--ink-soft);
    font-size: .8rem; text-align: left;
  }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-side { position: sticky; top: calc(var(--nav-h) + 12px); }
.admin-menu { display: flex; flex-direction: column; gap: .15rem; }
.admin-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .92rem;
}
.admin-menu a:hover { background: var(--surface-3); color: var(--ink); }
.admin-menu a.active { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-weight: 700; }
.admin-menu a i { font-size: 1.05rem; }

@media (max-width: 991.98px) {
  .admin-menu { flex-direction: row; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
  .admin-menu::-webkit-scrollbar { display: none; }
  .admin-menu a { white-space: nowrap; }
}

.settings-group + .settings-group { margin-top: 1.25rem; }
.setting-row {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start;
  justify-content: space-between; padding: .85rem 0; border-bottom: 1px dashed var(--line);
}
.setting-row:last-child { border-bottom: none; }
.setting-row .setting-info { flex: 1 1 260px; min-width: 0; }
.setting-row .setting-name { font-weight: 650; font-size: .92rem; }
.setting-row .setting-desc { font-size: .8rem; color: var(--ink-soft); }
.setting-row .setting-control { flex: 0 1 260px; width: 100%; max-width: 280px; }
@media (min-width: 576px) { .setting-row .setting-control { width: auto; } }

.master-switch {
  border-radius: var(--radius); padding: 1.15rem;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.master-switch.off { border-color: rgba(220, 53, 69, .5); background: rgba(220, 53, 69, .08); }

/* ============================================================
   AUTENTIFIKÁCIA
   ============================================================ */
.auth-wrap { min-height: 82dvh; display: grid; place-items: center; padding: 1rem 0 2rem; }
.auth-card {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-lg);
}
.auth-logo {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #00d2ff));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.pw-meter { height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }

/* ============================================================
   RÔZNE
   ============================================================ */
.app-footer {
  margin-top: auto; padding: 3rem 0 1.4rem;
  background: var(--surface-2); border-top: 1px solid var(--line);
  position: relative;
}
.app-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent));
}

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem 1.5rem; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 2.5rem; } }

.footer-brand { max-width: 34rem; }
.footer-brand .brand-mark { width: 38px; height: 38px; font-size: 1.1rem; }
.footer-about { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; margin: 0 0 1rem; }

.footer-contact { display: flex; flex-direction: column; gap: .45rem; }
.footer-contact a, .footer-place {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact i {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px;
  display: grid; place-items: center; font-size: .8rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.footer-place { color: var(--ink-soft); }

.footer-rating {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  padding: .45rem .8rem; border-radius: 999px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .84rem; font-weight: 600;
}
.footer-rating:hover { border-color: var(--accent); color: var(--accent); }
.footer-rating .stars { color: #f6b93b; }

.footer-title {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink); font-weight: 800; margin-bottom: .8rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  color: var(--ink-soft); text-decoration: none; font-size: .88rem;
  transition: color .15s ease, transform .15s ease; display: inline-block;
}
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }

.footer-langs { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-langs a {
  padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface);
}
.footer-langs a.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.footer-langs a:hover { border-color: var(--accent); color: var(--accent); }

.footer-company {
  margin-top: 2.2rem; padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline;
  font-size: .82rem; color: var(--ink-soft);
}
.footer-company-label { font-weight: 700; color: var(--ink); }
.footer-ids { opacity: .85; }

.footer-bottom {
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem;
  font-size: .8rem; color: var(--ink-soft);
}
.footer-note { opacity: .85; }
.footer-top {
  margin-left: auto; text-decoration: none; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .15rem; font-weight: 600;
}
.footer-top:hover { color: var(--accent); }
@media (max-width: 575.98px) { .footer-top { margin-left: 0; } }

/* ------------------------------------------------ hviezdy a farebné body */
.stars { display: inline-flex; gap: .1em; color: #f6b93b; line-height: 1; }
.stars .bi-star { opacity: .35; }

.color-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; }
.color-chip i {
  width: 14px; height: 14px; border-radius: 4px; display: inline-block;
  border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

/* výber farby pri objednávke */
.color-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.color-opt { position: relative; }
.color-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-opt span {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .4rem .7rem .4rem .45rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.color-opt span::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sw, transparent); border: 1px solid rgba(0,0,0,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.color-opt input:checked + span { border-color: var(--accent); color: var(--accent); }
.color-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-opt.color-any span::before { background: repeating-linear-gradient(45deg, #cbd2dd 0 4px, #eef1f6 4px 8px); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state i { font-size: 3rem; opacity: .35; display: block; margin-bottom: .75rem; }

.alert { border-radius: var(--radius-sm); border: 1px solid var(--line); }

.dropdown-menu {
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-lg); padding: .4rem;
}
.dropdown-item { border-radius: 9px; padding: .5rem .7rem; font-size: .92rem; color: var(--ink); }
.dropdown-item:hover { background: var(--surface-3); color: var(--accent); }
.dropdown-item.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

.badge { font-weight: 600; letter-spacing: .01em; }

.modal-content { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

.nav-pills .nav-link { color: var(--ink-soft); border-radius: 10px; font-weight: 600; font-size: .9rem; }
.nav-pills .nav-link.active { background: var(--accent); color: #fff; }

.spinner-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(2px); border-radius: var(--radius); z-index: 5;
}

.text-accent { color: var(--accent) !important; }
.bg-accent-soft { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.sticky-result { position: sticky; top: calc(var(--nav-h) + 12px); }

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* jemný nábeh obsahu */
.fade-up { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   PREPÍNAČ JAZYKA
   ============================================================ */
.btn-lang { font-weight: 700; font-size: .72rem; letter-spacing: .04em; }
.btn-lang .lang-code { line-height: 1; }

/* ============================================================
   PWA — inštalačná lišta, offline odznak, aktualizácia
   ============================================================ */
.install-bar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 1040;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px);
  width: min(94vw, 460px);
  display: flex; align-items: center; gap: .7rem;
  background: var(--glass); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: .7rem .8rem; box-shadow: var(--shadow-lg);
  animation: fadeUp .35s ease both;
}
.install-bar[hidden] { display: none; }
@media (min-width: 992px) { .install-bar { bottom: 18px; } }

.offline-badge {
  position: fixed; top: calc(var(--nav-h) + 8px); left: 50%; transform: translateX(-50%);
  z-index: 1050; background: #b02a37; color: #fff; font-size: .78rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .4rem;
}
.offline-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .3; } }

.update-bar {
  position: fixed; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px);
  left: 50%; transform: translateX(-50%); z-index: 1045;
  display: flex; align-items: center; width: min(94vw, 420px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .6rem .8rem; box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 500;
}
.update-bar span { flex: 1; }
@media (min-width: 992px) { .update-bar { bottom: 18px; } }

/* ============================================================
   GALÉRIA UKÁŽOK
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-2);
  aspect-ratio: 4 / 3; display: block;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .8rem .6rem;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff; font-size: .8rem; font-weight: 600;
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8,10,14,.92);
  display: grid; place-items: center; padding: 1rem;
}
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; }
.lightbox .close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; cursor: pointer;
}

/* Náhľad modelu s obrázkom */
.model-thumb img { object-fit: cover; }
.badge-free {
  position: absolute; top: .5rem; left: .5rem; background: var(--accent); color: #fff;
  font-size: .66rem; font-weight: 700; padding: .18rem .5rem; border-radius: 20px;
  letter-spacing: .03em; text-transform: uppercase;
}

/* ============================================================
   OBCHODNÉ PODMIENKY
   ============================================================ */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.15rem; font-weight: 750; margin: 1.9rem 0 .6rem; letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; font-weight: 700; margin: 1.3rem 0 .5rem; }
.legal p { line-height: 1.7; margin-bottom: .9rem; color: var(--bs-body-color); }
.legal ul, .legal ol { line-height: 1.7; padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .35rem; }
.legal code { background: var(--surface-3); padding: .1rem .35rem; border-radius: 5px; font-size: .88em; }
.legal hr { border-color: var(--line); margin: 1.6rem 0; }

@media print {
  .app-navbar, .app-footer, .mobile-nav, .install-bar, .page-actions, .no-print { display: none !important; }
  body { padding: 0; background: #fff; }
  .panel { border: none; box-shadow: none; }
}

/* ============================================================
   PREKLADY V ADMINE
   ============================================================ */
.tr-row { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 992px) { .tr-row { grid-template-columns: 220px 1fr 1fr; align-items: start; } }
.tr-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--ink-soft); word-break: break-all; }
.tr-row textarea { font-size: .86rem; min-height: 42px; resize: vertical; }

/* ============================================================
   SPRIEVODCA 3D TLAČOU
   ============================================================ */
.guide-sec { margin-bottom: 2.6rem; scroll-margin-top: 84px; }
.guide-h { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; }
.guide-h-sm { font-size: 1.12rem; }
.guide-lead { color: var(--ink-soft); max-width: 62ch; line-height: 1.65; margin-bottom: 1.3rem; }

.guide-toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  padding: .85rem 1.1rem; position: sticky; top: 72px; z-index: 5;
}
.guide-toc-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 800; color: var(--ink-soft); margin-right: .3rem;
}
.guide-toc a {
  padding: .32rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  text-decoration: none; color: var(--ink-soft); background: var(--surface-3);
}
.guide-toc a:hover { background: var(--accent); color: #fff; }
@media (max-width: 575.98px) {
  .guide-toc { position: static; overflow-x: auto; flex-wrap: nowrap; }
  .guide-toc a { white-space: nowrap; }
}

/* kroky */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-card {
  position: relative; padding: 1.4rem 1.2rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.step-num {
  position: absolute; top: -.6rem; right: .4rem; font-size: 3.6rem; font-weight: 900;
  line-height: 1; color: var(--accent); opacity: .1;
}
.step-icon { font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: .6rem; }
.step-t { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step-d { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* technológie */
.tech-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.tech-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; }
.tech-for { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; color: var(--ink-soft); }

/* zoznamy áno/nie */
.guide-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.guide-list li { padding-left: 1.7rem; position: relative; font-size: .9rem; line-height: 1.5; }
.guide-list li::before {
  position: absolute; left: 0; top: .05rem; font-family: bootstrap-icons; font-size: .95rem;
}
.guide-list li strong { display: block; color: var(--ink); font-weight: 700; }
.guide-list li span { color: var(--ink-soft); }
.guide-list-ok li::before { content: "\F26E"; color: #00b894; }
.guide-list-no li::before { content: "\F62A"; color: #e17055; }
.guide-list-tip li::before { content: "\F467"; color: var(--accent); }

/* limity */
.limits-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .limits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.limit-card {
  padding: 1.2rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
}
.limit-card i { font-size: 1.3rem; color: var(--accent); display: block; margin-bottom: .55rem; }
.limit-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.limit-card p { font-size: .84rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.limit-hero {
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #000));
  border-color: transparent; color: #fff;
}
@media (min-width: 992px) { .limit-hero { grid-column: span 2; } }
.limit-hero i, .limit-hero h3 { color: #fff; }
.limit-hero p { color: rgba(255,255,255,.82); }
.limit-big { font-size: 1.45rem; font-weight: 800; margin-bottom: .45rem; letter-spacing: -.01em; }

/* materiály */
.mat-card { scroll-margin-top: 130px; }
.mat-head { display: flex; align-items: flex-start; gap: .9rem; }
.mat-swatch {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px;
  border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 -8px 16px rgba(0,0,0,.15);
}
.mat-sub { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.mat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.mat-list li { padding-left: 1.4rem; position: relative; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.mat-list li::before { position: absolute; left: 0; font-family: bootstrap-icons; font-size: .8rem; top: .1rem; }
.mat-list-ok li::before { content: "\F26E"; color: #00b894; }
.mat-list-no li::before { content: "\F5DE"; color: #e17055; }

.mat-props {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .7rem 1.2rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.prop { display: flex; flex-direction: column; gap: .25rem; }
.prop-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.prop-val { font-weight: 700; font-size: .92rem; }
.prop-dots { display: inline-flex; gap: 3px; }
.prop-dots i { width: 13px; height: 6px; border-radius: 3px; background: var(--surface-3); display: inline-block; }
.prop-dots i.on { background: var(--accent); }
.mat-colors { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mat-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: .35rem; }
.mat-link { text-decoration: none; color: inherit; }
.mat-link:hover { color: var(--accent); }

.badge-soft {
  display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: var(--surface-3); color: var(--ink-soft);
}
.badge-ok { background: color-mix(in srgb, #00b894 16%, transparent); color: #00b894; }

.panel-tip { display: flex; gap: 1rem; align-items: flex-start; }
.panel-tip > i { font-size: 1.6rem; color: var(--accent); flex: 0 0 auto; }

.guide-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding: 1.8rem; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
}

.guide-promo { display: flex; gap: 1.2rem; align-items: flex-start; }
.guide-promo-icon {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.4rem; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}

/* ============================================================
   SLUŽBY
   ============================================================ */
.svc-card { display: flex; gap: 1.2rem; align-items: flex-start; scroll-margin-top: 90px; }
.svc-icon {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.45rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000));
}
.svc-body { min-width: 0; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 575.98px) {
  .svc-card { flex-direction: column; gap: .8rem; }
}

/* ============================================================
   REFERENCIE
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.review-card {
  min-width: 0; display: flex; flex-direction: column; padding: 1.3rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.review-card.pinned { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.review-card.pinned::after {
  content: "\F4D5"; font-family: bootstrap-icons; position: absolute; top: .9rem; right: 1rem;
  color: var(--accent); opacity: .5; font-size: .85rem;
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.review-date { font-size: .74rem; color: var(--ink-soft); }
.review-text { font-size: .92rem; line-height: 1.6; color: var(--ink); flex-grow: 1; margin: 0 0 1rem; }
.review-text::before { content: "\201E"; font-size: 1.3em; line-height: 0; color: var(--accent); margin-right: .1em; }

.review-reply {
  margin: 0 0 1rem; padding: .75rem .9rem; border-radius: var(--radius-sm);
  background: var(--surface-3); font-size: .85rem; color: var(--ink-soft); line-height: 1.55;
}
.review-reply-label { display: block; font-weight: 700; color: var(--ink); font-size: .78rem; margin-bottom: .2rem; }

.review-foot { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.review-avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
}
.review-author { font-weight: 700; font-size: .88rem; }
.review-place { font-size: .76rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.review-verified { color: #00b894; font-weight: 600; }

/* prehľad hodnotení */
.rating-hero {
  display: flex; flex-wrap: wrap; gap: 1.8rem; align-items: center;
  padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.rating-score { text-align: center; min-width: 140px; }
.rating-num { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.rating-bars { flex: 1 1 260px; display: flex; flex-direction: column; gap: .35rem; }
.rating-row { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-soft); }
.rating-star { width: 2.6rem; flex: 0 0 2.6rem; color: #f6b93b; }
.rating-track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rating-track i { display: block; height: 100%; background: #f6b93b; border-radius: 4px; }
.rating-n { width: 2rem; text-align: right; }

/* zadanie hodnotenia */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { cursor: pointer; font-size: 1.7rem; color: var(--surface-3); line-height: 1; transition: color .12s ease; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f6b93b; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.rev-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  cursor: pointer; list-style: none;
}
.rev-summary::-webkit-details-marker { display: none; }

/* odkaz, ktorý je celou kartou — text si drží normálnu farbu */
a.panel { color: inherit; text-decoration: none; display: block; }
a.panel:hover .fw-bold { color: var(--accent); }

/* ============================================================
   FILTER KATEGÓRIÍ V KNIŽNICI
   ============================================================ */
.cat-filter {
  padding: 1rem 1.1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.cat-filter-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.cat-filter-title {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 800; color: var(--ink-soft);
}
.cat-filter-clear { margin-left: auto; font-size: .8rem; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.cat-filter-clear:hover { color: var(--accent); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .5rem; }

.cat-tile {
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .75rem .4rem .6rem; border-radius: 14px; text-decoration: none;
  background: var(--surface-2); border: 1.5px solid transparent;
  color: var(--ink-soft); text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.cat-tile:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.cat-tile i { font-size: 1.2rem; }
.cat-name {
  font-size: .78rem; font-weight: 700; color: var(--ink); line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-tile:hover .cat-name { color: var(--accent); }
.cat-n {
  font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-soft);
}
.cat-tile.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent); color: var(--accent);
}
.cat-tile.active .cat-name { color: var(--accent); }
.cat-tile.active .cat-n { background: var(--accent); color: #fff; }

@media (max-width: 575.98px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; }
  .cat-tile { padding: .6rem .3rem .5rem; }
  .cat-tile i { font-size: 1.05rem; }
  .cat-name { font-size: .72rem; }
}

/* ============================================================
   ÚVODNÁ STRÁNKA
   ============================================================ */
body.home .app-main { padding-top: 0; }

/* ------------------------------------------------------- HERO */
.hero-v2 {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
  background:
    radial-gradient(120% 90% at 82% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 62%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute; inset: -40% 40% 55% -25%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0 62%,
              color-mix(in srgb, var(--accent) 22%, transparent) 78%, transparent 100%);
  filter: blur(70px); opacity: .55;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 992px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.1rem;
  padding: .38rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -.035em; margin: 0 0 1rem; text-wrap: balance;
}
.hero-lead {
  font-size: clamp(1rem, 1.7vw, 1.16rem); line-height: 1.65; color: var(--ink-soft);
  max-width: 34rem; margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.hero-btn { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(16,24,40,.05);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 420px) { .hero-actions .btn { width: 100%; } }

.hero-proof {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .86rem; color: var(--ink-soft); font-weight: 600;
}
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof i:not(.bi-star):not(.bi-star-fill) { color: var(--accent); }
.hero-proof .o-6 { opacity: .6; font-weight: 500; }

/* ---- ukážkový prepočet ---- */
.hero-visual { min-width: 0; }
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 60px -24px rgba(16,24,40,.35), 0 2px 8px rgba(16,24,40,.06);
  overflow: hidden; transform: rotate(-.6deg);
}
@media (min-width: 992px) { .quote-card { transform: rotate(-1.2deg); } }
.quote-head {
  display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem;
  background: var(--surface-3); border-bottom: 1px solid var(--line);
}
.quote-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); opacity: .3; }
.quote-file {
  margin-left: .5rem; font-size: .76rem; font-weight: 600; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quote-body { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem; }
@media (min-width: 420px) { .quote-body { grid-template-columns: 1.1fr 1fr; } }
.quote-thumb {
  border-radius: 14px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
}
.quote-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-rows { margin: 0; display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.quote-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.quote-rows dt { font-size: .76rem; color: var(--ink-soft); font-weight: 600; margin: 0; }
.quote-rows dd {
  margin: 0; font-size: .82rem; font-weight: 700; text-align: right;
  display: inline-flex; align-items: center; gap: .35rem;
}
.quote-total {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; color: #fff;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #000));
}
.quote-total-label { font-size: .78rem; font-weight: 700; opacity: .88; }
.quote-total-value { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.quote-note { padding: .6rem 1.2rem .9rem; font-size: .74rem; color: var(--ink-soft); }

/* ---- náhradná koláž, keď nie je z čoho počítať ---- */
.hero-collage { position: relative; aspect-ratio: 4 / 3; }
.hero-shot {
  position: absolute; margin: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 18px 44px -18px rgba(16,24,40,.4);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shot-1 { inset: 0 28% 30% 0; z-index: 3; }
.hero-shot-2 { inset: 18% 0 14% 42%; z-index: 2; }
.hero-shot-3 { inset: 62% 46% 0 8%; z-index: 4; }

/* ---- pás dôvery ---- */
.trust-strip {
  list-style: none; margin: 2.6rem 0 0; padding: 1.1rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: .9rem;
}
@media (min-width: 576px) { .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; } }
.trust-strip li { min-width: 0; display: flex; align-items: flex-start; gap: .75rem; }
.trust-strip i {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1rem; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.trust-strip strong { display: block; font-size: .9rem; line-height: 1.3; }
.trust-strip span { font-size: .78rem; color: var(--ink-soft); line-height: 1.4; }

/* --------------------------------------------------- SEKCIE */
.sec { margin: clamp(2.8rem, 6vw, 4.5rem) 0; }
.sec-head { margin-bottom: 1.5rem; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sec-title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 .35rem;
}
.sec-sub { color: var(--ink-soft); margin: 0; font-size: .96rem; max-width: 46rem; }
.sec-sub .stars { vertical-align: -.1em; margin-right: .2rem; }

/* ---- ako to funguje ---- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; } }
.flow-step {
  min-width: 0; position: relative; padding: 1.6rem 1.3rem 1.3rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.flow-step::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.flow-num {
  position: absolute; top: .6rem; right: 1rem; font-size: 3.4rem; font-weight: 900;
  line-height: 1; color: var(--accent); opacity: .12;
}
.flow-icon { font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: .8rem; }
.flow-step h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; }
.flow-step p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }

/* ---- ukážky prác ---- */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; } }
.showcase-item {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--surface-3); border: 1px solid var(--line);
}
.showcase-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.showcase-item:hover img { transform: scale(1.06); }
.showcase-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .75rem .6rem;
  font-size: .76rem; font-weight: 600; color: #fff; line-height: 1.3;
  background: linear-gradient(transparent, rgba(6,10,20,.82));
}
@media (min-width: 768px) {
  .showcase-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .showcase-lead figcaption { font-size: .88rem; padding: 2.2rem 1rem .9rem; }
}

/* ---- pás „nemáš model" ---- */
.band {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 24px; color: #fff;
  background: linear-gradient(125deg, var(--accent), color-mix(in srgb, var(--accent) 52%, #05060a));
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 80%, #000);
}
@media (min-width: 992px) { .band { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; } }
.band-eyebrow {
  display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.16); font-size: .76rem; font-weight: 700; margin-bottom: .9rem;
}
.band h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6rem; }
.band p { margin: 0 0 1rem; line-height: 1.65; opacity: .9; max-width: 42rem; }
.band-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .88rem; font-weight: 600; }
.band-steps span { display: inline-flex; align-items: center; gap: .4rem; }
.band-steps i { opacity: .8; }
.band-art {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  font-size: clamp(1.6rem, 5vw, 2.6rem); opacity: .5;
}
.band-art .bi-arrow-right-short { font-size: 1.4em; opacity: .6; }
@media (max-width: 991.98px) { .band-art { display: none; } }

/* ---- služby ---- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-tile {
  min-width: 0; display: flex; flex-direction: column; padding: 1.4rem 1.2rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.svc-tile:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 16px 34px -22px rgba(16,24,40,.5);
}
.svc-tile-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.2rem; color: #fff; margin-bottom: .9rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #000));
}
.svc-tile h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; }
.svc-tile p { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 .9rem; flex-grow: 1; }
.svc-more { font-size: .82rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; }
.svc-tile:hover .svc-more i { transform: translateX(3px); }
.svc-more i { transition: transform .18s ease; }

/* ---- materiály ---- */
.mat-strip { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 640px) { .mat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .mat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mat-pill {
  min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color .15s ease;
}
.mat-pill:hover { border-color: var(--accent); }
.mat-pill-dot {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14); box-shadow: inset 0 -6px 12px rgba(0,0,0,.18);
}
.mat-pill-body { min-width: 0; flex-grow: 1; }
.mat-pill-body strong { display: block; font-size: .92rem; }
.mat-pill-body span {
  display: block; font-size: .76rem; color: var(--ink-soft); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mat-pill-price { font-size: .84rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.mat-pill-price small { font-weight: 600; opacity: .7; }

/* ---- modely zadarmo ---- */
.free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
@media (min-width: 768px) { .free-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; } }
.free-card { min-width: 0; display: flex; flex-direction: column; gap: .45rem; text-decoration: none; color: inherit; }
.free-thumb {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.6rem; color: var(--ink-soft);
}
.free-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.free-card:hover .free-thumb img { transform: scale(1.07); }
.free-tag {
  position: absolute; top: .45rem; left: .45rem; padding: .12rem .5rem; border-radius: 999px;
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent); color: #fff;
}
.free-name {
  font-size: .86rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.free-card:hover .free-name { color: var(--accent); }
.free-meta { font-size: .74rem; color: var(--ink-soft); }

/* ---- čísla ---- */
.numbers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
@media (min-width: 768px) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.number { background: var(--surface); padding: 1.5rem 1rem; text-align: center; }
.number-value {
  display: block; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900;
  letter-spacing: -.03em; color: var(--accent); line-height: 1.1;
}
.number-label {
  display: block; margin-top: .3rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft);
}

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
  padding: 1rem 1.2rem; font-weight: 700; font-size: .98rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: 0 0 auto; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq-a { padding: 0 1.2rem 1.15rem; color: var(--ink-soft); line-height: 1.7; font-size: .93rem; }

/* ---- záverečná výzva ---- */
.final-cta {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem); border-radius: 24px; color: #fff; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #000), #14182a);
}
@media (min-width: 992px) { .final-cta { grid-template-columns: 1.3fr 1fr; text-align: left; } }
.final-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.final-cta p { margin: 0; opacity: .82; line-height: 1.6; }
.final-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
@media (min-width: 992px) { .final-actions { justify-content: flex-end; } }
@media (max-width: 420px) { .final-actions .btn { width: 100%; } }

/* ==================================================================
 |  KOŠÍK, DOPRAVA A PLATBA
 * ================================================================== */

/* ---- ikona košíka v hlavičke ---- */
.btn-cart {
  position: relative;          /* kotva pre odznak */
  overflow: visible;           /* odznak smie presahovať cez okraj */
}
.btn-cart.has-items { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* Odznak s počtom. Sedí v pravom hornom rohu ikony a rastie do strany,
   takže sa doň zmestí aj dvojciferný počet a nikdy nespadne pod ikonu. */
.cart-badge {
  position: absolute;
  top: -5px;
  left: 100%;
  transform: translateX(-72%);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--surface);
  pointer-events: none;
}

/* ---- zoznam položiek v košíku ---- */
.cart-list { display: flex; flex-direction: column; gap: .85rem; }

.cart-item {
  display: grid; gap: .5rem 1rem; padding: .85rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface-2); min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;

  /* mobil: náhľad vedľa názvu, ovládanie a cena pod tým */
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas:
    "media main"
    "money money";
}
.cart-item:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.cart-item.has-problem {
  border-color: color-mix(in srgb, #dc3545 50%, var(--line));
  background: color-mix(in srgb, #dc3545 4%, var(--surface-2));
}

@media (min-width: 560px) {
  .cart-item {
    grid-template-columns: 124px minmax(0, 1fr) auto;
    grid-template-areas: "media main money";
    align-items: start; gap: 1rem;
    padding: 1rem;
  }
}

/* náhľad — obrázky sú 4:3, preto sa nič neoreže (contain, nie cover) */
.cart-media {
  grid-area: media; position: relative;
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--surface-3);
  display: grid; place-items: center;
}
.cart-media img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.cart-media i { font-size: 1.6rem; opacity: .3; }

.cart-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }

.cart-head { display: flex; align-items: flex-start; gap: .5rem; }
.cart-name {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-size: .97rem; font-weight: 700; line-height: 1.35;
  overflow-wrap: anywhere;
}
.cart-del {
  flex: 0 0 auto; width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  font-size: .78rem; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.cart-del:hover { background: color-mix(in srgb, #dc3545 14%, transparent); color: #dc3545; }

/* parametre ako malé štítky */
.cart-tags {
  display: flex; flex-wrap: wrap; gap: .3rem;
  list-style: none; margin: 0; padding: 0;
}
.cart-tags li {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .13rem .5rem; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-soft);
  font-size: .73rem; font-weight: 600; white-space: nowrap;
}
.cart-tags .t-mat { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.cart-tags .t-rush { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
[data-bs-theme="dark"] .cart-tags .t-rush { color: #fbbf24; }
.t-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--sw, #999);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); flex: 0 0 auto;
}

.cart-facts {
  display: flex; flex-wrap: wrap; gap: .25rem .85rem; margin: 0;
  font-size: .78rem; color: var(--ink-soft);
}
.cart-facts span { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.cart-facts i { opacity: .6; }

.cart-note {
  display: flex; gap: .4rem; margin: 0;
  padding: .45rem .6rem; border-radius: 9px;
  background: var(--surface-3);
  font-size: .79rem; color: var(--ink-soft); overflow-wrap: anywhere;
}
.cart-note i { flex: 0 0 auto; opacity: .7; }

.cart-problem {
  display: flex; gap: .45rem; margin: 0;
  padding: .55rem .7rem; border-radius: 10px;
  background: color-mix(in srgb, #dc3545 12%, transparent);
  color: #b91c1c; font-size: .8rem; line-height: 1.45;
}
[data-bs-theme="dark"] .cart-problem { color: #fca5a5; }
.cart-problem i { flex: 0 0 auto; margin-top: .1rem; }

/* množstvo a farba */
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .1rem; }

.qty-step {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); overflow: hidden;
}
.qty-btn {
  width: 32px; height: 32px; flex: 0 0 auto; padding: 0;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: .7rem;
  transition: background .12s ease, color .12s ease;
}
.qty-btn:hover { background: var(--surface-3); color: var(--accent); }
.qty-step input {
  width: 42px; height: 32px; padding: 0; flex: 0 0 auto;
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; color: inherit;
  text-align: center; font-size: .88rem; font-weight: 700;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-step input::-webkit-outer-spin-button,
.qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

.cart-color {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); min-width: 0;
}
.cart-color-dot {
  width: 13px; height: 13px; margin-left: .55rem; border-radius: 50%;
  background: var(--sw, transparent); flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}
.cart-color select {
  height: 32px; max-width: 148px; padding: 0 1.5rem 0 .45rem;
  border: 0; background: transparent; color: inherit;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  appearance: none; text-overflow: ellipsis;
}
.cart-color::after {
  content: ''; position: absolute; right: .55rem; pointer-events: none;
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-soft);
}
.cart-color select:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 9px; }

/* cena */
.cart-money {
  grid-area: money; display: flex; align-items: baseline; gap: .5rem;
  padding-top: .35rem; border-top: 1px dashed var(--line);
  min-width: 0;
}
@media (min-width: 560px) {
  .cart-money {
    flex-direction: column; align-items: flex-end; gap: .1rem;
    padding-top: 0; border-top: 0; text-align: right; white-space: nowrap;
  }
}
.cart-total { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.cart-unit { font-size: .75rem; color: var(--ink-soft); }

/* prázdny košík */
.empty-cart i { font-size: 3rem; opacity: .3; }

.summary-panel .kv dt { font-size: .85rem; }

/* ---- doprava zadarmo ---- */
.free-ship {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; margin-bottom: 1rem;
  border-radius: 12px; font-size: .88rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent);
}
.free-ship.reached {
  background: color-mix(in srgb, #16a34a 13%, transparent); color: #15803d;
}
[data-bs-theme="dark"] .free-ship.reached { color: #4ade80; }
.free-ship i { font-size: 1.1rem; flex: 0 0 auto; }

/* ---- výber dopravy ---- */
.ship-grid { display: flex; flex-direction: column; gap: .6rem; }

.ship-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: .8rem; padding: .8rem .95rem; border: 2px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.ship-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ship-opt.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.ship-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ship-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--accent); font-size: 1.1rem; flex: 0 0 auto;
}
.ship-opt.active .ship-ico { background: var(--accent); color: #fff; }
.ship-txt { min-width: 0; }
.ship-name { display: block; font-weight: 700; font-size: .93rem; }
.ship-days { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.4; }
.ship-price { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.ship-price.free { color: #16a34a; }
[data-bs-theme="dark"] .ship-price.free { color: #4ade80; }

/* ---- prehľad dopravy na samostatnej stránke ---- */
.ship-cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.ship-card {
  padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); min-width: 0;
}
.ship-card-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-size: 1.35rem; margin-bottom: .85rem;
}
.ship-card-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.ship-card-price.free { color: #16a34a; }
[data-bs-theme="dark"] .ship-card-price.free { color: #4ade80; }

/* ---- súhlasy ---- */
.consent-box {
  padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2);
  font-size: .88rem;
}
.consent-box a { font-weight: 600; }

/* ---- stav platby ---- */
.badge-pay {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.badge-pay.paid {
  background: color-mix(in srgb, #16a34a 15%, transparent); color: #15803d;
}
.badge-pay.unpaid {
  background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309;
}
[data-bs-theme="dark"] .badge-pay.paid { color: #4ade80; }
[data-bs-theme="dark"] .badge-pay.unpaid { color: #fbbf24; }

/* ---- platobný QR kód ---- */
.pay-qr {
  padding: 1rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-2);
}
.pay-qr-head { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; }
.pay-qr-head > i { font-size: 1.4rem; color: var(--accent); flex: 0 0 auto; }
.pay-qr-img {
  display: grid; place-items: center; padding: .7rem; margin-bottom: .85rem;
  background: #fff; border-radius: 12px;
}
.pay-qr-img svg { display: block; width: 100%; max-width: 190px; height: auto; }
.pay-iban { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; overflow-wrap: anywhere; }

/* ---- položky objednávky (detail a admin) ---- */
.order-items { display: flex; flex-direction: column; gap: .85rem; }
.order-item {
  padding: .95rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2); min-width: 0;
}
.order-item-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.order-item-head h3 { overflow-wrap: anywhere; }

.admin-items { display: flex; flex-direction: column; gap: .7rem; }
.admin-item {
  padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); min-width: 0;
}
.admin-item-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .5rem; font-size: .92rem; margin-bottom: .35rem;
}
.admin-item-head strong { overflow-wrap: anywhere; }
.admin-item-specs {
  display: flex; flex-wrap: wrap; gap: .25rem .65rem; list-style: none; margin: 0; padding: 0;
  font-size: .77rem; color: var(--ink-soft);
}

/* ---- odznak košíka v spodnej navigácii ---- */
.mn-badge-wrap { position: relative; display: inline-flex; }
.mn-badge {
  position: absolute; top: -4px; right: -9px; min-width: 15px; height: 15px;
  padding: 0 3px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 800; line-height: 15px; text-align: center;
}

/* ---------- Zľavový kód v košíku ---------- */
.coupon-box{
  border:1px dashed var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:var(--surface);
}
.coupon-box .form-label{margin-bottom:6px;color:var(--muted)}
.coupon-tag{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 11px;border-radius:999px;
  background:color-mix(in srgb, var(--accent) 12%, transparent);
  color:var(--accent);font-size:.86rem;
}
.coupon-tag b{letter-spacing:.03em}
.coupon-tag .text-secondary{font-size:.8rem}

/* ---------- Odhadovaný termín ---------- */
.eta-box{
  display:flex;gap:12px;align-items:flex-start;
  border:1px solid var(--line);border-radius:14px;
  padding:12px 14px;background:var(--surface);
}
.eta-box > i{font-size:1.35rem;color:var(--accent);line-height:1.1}
.eta-box .fw-bold{font-size:1.02rem}

/* ---------- Sklad ---------- */
.stock-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:3px 10px;border-radius:999px;
  font-size:.78rem;font-weight:600;white-space:nowrap;
}
.stock-pill.ok{background:rgba(17,133,85,.12);color:#0f7a4d}
.stock-pill.low{background:rgba(234,160,20,.15);color:#a6710a}
.stock-pill.out{background:rgba(214,45,45,.12);color:#c0392b}
.stock-pill.off{background:var(--surface-2);color:var(--muted)}
:root[data-bs-theme="dark"] .stock-pill.ok{color:#48d39b}
:root[data-bs-theme="dark"] .stock-pill.low{color:#f0bd5d}
:root[data-bs-theme="dark"] .stock-pill.out{color:#f08a8a}

.stock-bar{height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-top:6px}
.stock-bar > span{display:block;height:100%;border-radius:99px;background:var(--accent)}
.stock-bar.low > span{background:#eaa014}
.stock-bar.out > span{background:#d62d2d}

/* ---------- Graf tržieb na nástenke ---------- */
.chart-wrap{width:100%;overflow-x:auto}
.chart-wrap svg{display:block;width:100%;height:auto;min-width:420px}
.chart-bar{fill:var(--accent);opacity:.85;transition:opacity .15s}
.chart-bar:hover{opacity:1}
.chart-axis{stroke:var(--line);stroke-width:1}
.chart-label{fill:var(--muted);font-size:10px}
.chart-value{fill:var(--ink);font-size:10px;font-weight:600}

/* ---------- Fronta tlače ---------- */
.queue-row{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;
  padding:12px 0;border-bottom:1px solid var(--line);
}
.queue-row:last-child{border-bottom:none}
.queue-no{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface-2);color:var(--muted);font-size:.8rem;font-weight:700;flex:0 0 30px;
}
.queue-row.is-printing .queue-no{background:var(--accent);color:#fff}
.queue-when{text-align:right;font-size:.82rem;color:var(--muted);white-space:nowrap}
@media (max-width:575.98px){
  .queue-row{grid-template-columns:auto 1fr;row-gap:4px}
  .queue-when{grid-column:2;text-align:left}
}

/* Materiál, ktorý došiel — vidno ho, ale nedá sa vybrať */
.tile.is-disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.4)}
.tile.is-disabled .tile-name{text-decoration:line-through}

/* ---------- Kontrola modelu ---------- */
.check-list{display:grid;gap:8px}
.check-item{
  display:flex;gap:10px;align-items:flex-start;
  padding:10px 12px;border-radius:12px;font-size:.86rem;
  border:1px solid var(--line);background:var(--surface);
}
.check-item > i{font-size:1.05rem;line-height:1.3;flex:0 0 auto}
.check-item b{display:block;margin-bottom:2px}
.check-item div div{color:var(--muted);line-height:1.45}
.check-item.is-danger{border-color:rgba(214,45,45,.45);background:rgba(214,45,45,.07)}
.check-item.is-danger > i{color:#c0392b}
.check-item.is-warning{border-color:rgba(234,160,20,.45);background:rgba(234,160,20,.08)}
.check-item.is-warning > i{color:#a6710a}
.check-item.is-info > i{color:var(--accent)}
:root[data-bs-theme="dark"] .check-item.is-danger > i{color:#f08a8a}
:root[data-bs-theme="dark"] .check-item.is-warning > i{color:#f0bd5d}

/* ---------- Hromadné akcie ---------- */
.bulk-bar{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  padding:10px 14px;margin-bottom:10px;
  border:1px solid var(--line);border-radius:14px;
  background:color-mix(in srgb, var(--accent) 7%, var(--surface));
  position:sticky;top:8px;z-index:5;
}
.bulk-bar .form-select{flex:1 1 200px}
@media (max-width:575.98px){ .bulk-bar{position:static} }

/* ---------- Príkaz pre cron ---------- */
.code-box{
  background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;margin:0;overflow-x:auto;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.78rem;line-height:1.5;
  color:var(--ink);white-space:pre;
}
.code-box code{color:inherit;background:none;padding:0}

/* ---------- Zásielka na stránke objednávky ---------- */
.eta-box .pay-iban{font-family:ui-monospace,Menlo,monospace;letter-spacing:.02em;font-size:.92rem}

/* ============================================================
   PRÍRUČKA
   ============================================================ */
.docs-bar{
  display:flex;gap:10px;align-items:center;margin-bottom:1rem;
}

.docs-toc{
  position:sticky;top:84px;max-height:calc(100vh - 110px);overflow-y:auto;
  padding:14px 12px;
}
.docs-toc a{
  display:flex;gap:9px;align-items:baseline;
  padding:7px 10px;border-radius:10px;
  color:var(--ink);text-decoration:none;font-size:.88rem;line-height:1.35;
  transition:background .12s,opacity .12s;
}
.docs-toc a:hover{background:var(--surface-2)}
.docs-toc a.is-dim{opacity:.3}
.docs-toc-group{
  font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;
  color:var(--muted);font-weight:700;margin:14px 10px 4px;
}
.docs-toc-group:first-of-type{margin-top:4px}
.docs-extra{
  display:flex;gap:8px;align-items:center;
  padding:7px 10px;border-radius:10px;font-size:.85rem;
  color:var(--muted);text-decoration:none;
}
.docs-extra:hover{background:var(--surface-2);color:var(--accent)}

.docs-no{
  flex:0 0 auto;min-width:22px;
  font-variant-numeric:tabular-nums;font-size:.76rem;font-weight:700;
  color:var(--muted);
}

.docs-chapter{scroll-margin-top:84px}
.docs-h{
  display:flex;gap:10px;align-items:center;
  font-size:1.22rem;font-weight:800;letter-spacing:-.02em;
  margin:0 0 1rem;padding-bottom:.75rem;border-bottom:1px solid var(--line);
}
.docs-h .docs-no{font-size:.95rem}

.docs-body{font-size:.95rem;line-height:1.7}
.docs-body h2{font-size:1.04rem;font-weight:700;margin:1.6rem 0 .6rem;letter-spacing:-.01em}
.docs-body h3{font-size:.95rem;font-weight:700;margin:1.3rem 0 .5rem;color:var(--accent)}
.docs-body h2:first-child,.docs-body h3:first-child{margin-top:0}
.docs-body p{margin:0 0 .85rem}
.docs-body ul,.docs-body ol{margin:0 0 .95rem;padding-left:1.3rem}
.docs-body li{margin-bottom:.35rem}
.docs-body code{
  background:var(--surface-2);padding:1px 6px;border-radius:5px;
  font-size:.86em;font-family:ui-monospace,Menlo,Consolas,monospace;
}
.docs-body hr{border:0;border-top:1px solid var(--line);margin:1.4rem 0}
.docs-body .code-box{margin:0 0 1rem}
.docs-body strong{font-weight:700}

.docs-table{table-layout:fixed;width:100%}
.docs-table td{padding:.5rem .6rem;vertical-align:top;font-size:.86rem;word-break:break-word}
.docs-table .docs-key{width:34%}
.docs-table .docs-key code{font-size:.8rem;overflow-wrap:anywhere}

@media (max-width:575.98px){
  .docs-table .docs-key{width:40%}
  .docs-table td{font-size:.8rem;padding:.45rem .4rem}
}

.docs-top{
  display:inline-flex;align-items:center;gap:2px;
  margin-top:1rem;font-size:.8rem;color:var(--muted);text-decoration:none;
}
.docs-top:hover{color:var(--accent)}

.print-only{display:none}

@media (max-width:991.98px){
  .docs-toc{position:static;max-height:none}
}

/* ============================================================
   TLAČ PRÍRUČKY
   Na papieri nemá zmysel menu, obsah ani tlačidlá — zostane
   čistý text s číslovanými kapitolami, každá na novej strane.
   ============================================================ */
@media print{
  @page{margin:16mm 14mm}

  .no-print,
  .app-navbar,.app-footer,.mobile-nav,.install-bar,.page-head,
  .alert,.alert-dismissible,.skip-link,
  .docs-toc,.docs-bar,.docs-top{display:none !important}

  .print-only{display:block}

  html,body{background:#fff !important;color:#000 !important;font-size:10.5pt}
  .container{max-width:100% !important;padding:0 !important;margin:0 !important}
  .row,.col-12,[class*="col-lg-"],[class*="col-xl-"]{
    width:100% !important;max-width:100% !important;flex:0 0 100% !important;
    padding:0 !important;margin:0 !important;
  }

  .docs-print-head{margin-bottom:14mm;padding-bottom:4mm;border-bottom:2pt solid #000}
  .docs-print-head h1{font-size:19pt;margin:0 0 2mm;letter-spacing:-.4pt}
  .docs-print-head p{font-size:8.5pt;color:#555;margin:0}

  .docs-print-foot{
    margin-top:10mm;padding-top:3mm;border-top:.5pt solid #999;
    font-size:8pt;color:#666;text-align:center;
  }

  .panel,.docs-chapter{
    background:#fff !important;border:0 !important;box-shadow:none !important;
    padding:0 !important;margin:0 0 8mm !important;border-radius:0 !important;
  }

  /* každá kapitola začína na novej strane, prvá nie */
  .docs-chapter{break-before:page;page-break-before:always}
  .docs-chapter:first-of-type{break-before:auto;page-break-before:auto}

  .docs-h{
    font-size:14pt;border-bottom:1pt solid #000;padding-bottom:2mm;margin-bottom:5mm;
    break-after:avoid;page-break-after:avoid;
  }
  .docs-h i{display:none}
  .docs-h .docs-no{color:#000;min-width:9mm}

  .docs-body{font-size:10.5pt;line-height:1.55}
  .docs-body h2,.docs-body h3{
    break-after:avoid;page-break-after:avoid;color:#000;margin-top:5mm;
  }
  .docs-body h2{font-size:11.5pt}
  .docs-body h3{font-size:10.5pt}
  .docs-body p,.docs-body li{orphans:3;widows:3}
  .docs-body code{background:#f0f0f0;color:#000;border:.5pt solid #ddd}
  .docs-body .code-box{
    background:#f6f6f6;border:.5pt solid #ccc;color:#000;
    font-size:9pt;padding:3mm;break-inside:avoid;page-break-inside:avoid;
  }

  .docs-table{width:100%;border-collapse:collapse}
  .docs-table td{
    border-bottom:.5pt solid #ddd;padding:1.4mm 2mm;font-size:9pt;
    break-inside:avoid;page-break-inside:avoid;
  }
  .docs-table .docs-key{width:38%}
  .table-responsive{overflow:visible !important}

  /* odkazy na papieri nefungujú, ale adresa sa zíde */
  .docs-body a[href^="http"]::after{content:" (" attr(href) ")";font-size:8.5pt;color:#555}

  a{color:#000 !important;text-decoration:none}
}
