/* ============================================================
   Múdry Košík — dizajn systém (moderný bold)
   Mobile-first. Jediný CSS súbor pre lokál aj cloud.
   ============================================================ */

:root {
  --ink: #0c1424;
  --ink-2: #101c33;
  --ink-3: #16233d;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --line: #e3e8f0;
  --line-strong: #cbd5e3;
  --text: #0e1626;
  --muted: #5b6778;
  --muted-2: #8b96a8;
  --accent: #12c7b2;
  --accent-ink: #0a8f80;
  --accent-soft: #e5faf7;
  --accent-glow: #2be4ce;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 20, 36, 0.05), 0 10px 30px -12px rgba(12, 20, 36, 0.14);
  --shadow-lift: 0 4px 10px rgba(12, 20, 36, 0.08), 0 22px 48px -18px rgba(12, 20, 36, 0.24);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ---------- ikony v tlačidlách ---------- */
.btn svg, .icon-btn svg, .location-chip svg, .cart-chip svg, .cart-fab svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ============================================================
   Hero blok (tmavý header + hero)
   ============================================================ */

.hero-block {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(18, 199, 178, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(43, 100, 228, 0.12), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  color: #eef2f8;
  padding-bottom: 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.brand-img {
  display: block;
  height: 42px;
  width: auto;
}

.brand-name {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--accent-glow);
}

.topnav {
  display: none;
  gap: 2px;
  margin-left: 8px;
}

.topnav a {
  padding: 8px 12px;
  color: #b9c3d4;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.location-chip,
.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  color: #dfe6f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.location-chip:hover, .cart-chip:hover { background: rgba(255, 255, 255, 0.13); }

.cart-chip { position: relative; }

.cart-chip-total { font-family: var(--font-display); font-weight: 700; }

.cart-chip-count {
  position: absolute;
  top: -6px; right: -4px;
  min-width: 19px; height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.hero {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
  padding: 34px 0 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
  }
}

/* Problem / Riesenie / Dovera — vyplna pravu (inak prazdnu) cast tmaveho hero */
.hero-value {
  display: grid;
  gap: 12px;
  align-content: center;
}

.hero-value-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}

.hero-value-card .value-label { color: var(--accent-glow); }

.hero-value-card h2 {
  color: #dfe7f2;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--accent-glow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(32px, 6.4vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: break-word;
}

.hero h1 .hl {
  color: var(--accent-glow);
}

.hero-lead {
  max-width: 680px;
  margin: 14px 0 22px;
  color: #a9b4c7;
  font-size: clamp(15px, 2vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.hero-cta,
.hero-cta-secondary {
  min-height: 44px;
}

.hero-note {
  margin: 0 0 16px;
  color: #d8e0ec;
  font-size: 14px;
  font-weight: 600;
}

.hero-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.hero-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
}

.hero-form input:focus { outline: 3px solid rgba(18, 199, 178, 0.45); }

.hero-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--accent);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-form button:hover { background: var(--accent-glow); }

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #8d99ad;
  font-size: 13.5px;
}

.hero-quick button {
  padding: 6px 13px;
  color: #cfd8e5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
}

.hero-quick button:hover { border-color: var(--accent); color: #fff; }

.hero-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #9fb4c9;
  font-size: 14px;
}

.hero-message.success { color: var(--accent-glow); }
.hero-message.error { color: #ff9b8f; }

/* ---------- vyhladavanie v sekcii vysledkov (svetle pozadie) ---------- */

.inline-search { margin: 2px 0 22px; }

.inline-search .hero-form {
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.inline-search .hero-form input { background: #eef2f7; }

.inline-search .hero-quick { color: var(--muted); }

.inline-search .hero-quick button {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line-strong);
}

.inline-search .hero-quick button:hover { color: var(--text); border-color: var(--accent-ink); }

.inline-search .hero-message { color: var(--muted); }
.inline-search .hero-message.success { color: var(--accent-ink); }
.inline-search .hero-message.error { color: #b91c1c; }

/* ---------- produktove vysvetlenie ---------- */

.how-steps,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.how-step,
.pricing-card,
.plus-list-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-label,
.plan-label,
.plus-tag {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.how-step {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.step-number {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
}

.how-step h3,
.pricing-card h3,
.waitlist-form h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.how-step p,
.pricing-card p,
.waitlist-form p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   Hlavný obsah
   ============================================================ */

.page {
  width: min(1160px, 100% - 32px);
  margin: 26px auto 0;
  display: grid;
  /* stlpec nesmie prerast sirku stranky - siroky obsah (napr. compare-row)
     by inak na mobile odtlacil cely layout za okraj displeja */
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 40px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.app-view,
.actions-workspace,
.list-workspace {
  min-width: 0;
}

.list-workspace {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-active-view="zoznam"] .cart-chip,
body[data-active-view="zoznam"] .cart-fab {
  display: none !important;
}

.list-view-head {
  margin-bottom: 0;
}

.planned-list-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topnav a.is-active,
.topnav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration-color: var(--accent);
}

.page > *,
.workspace > *,
.two-col > * {
  min-width: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
}

.section-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.small { min-height: 33px; padding: 0 11px; font-size: 13px; border-radius: 9px; }

.btn.primary {
  color: var(--ink);
  background: var(--accent);
}

.btn.primary:hover { background: var(--accent-glow); }

.btn.ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn.ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

.btn.ghost.danger { color: var(--danger); }
.btn.ghost.danger:hover { border-color: var(--danger); background: var(--danger-soft); }

.btn.ghost.on-dark {
  color: #e8edf5;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
}

.icon-btn:hover { color: var(--text); border-color: var(--muted); }

.icon-btn.on-dark {
  color: #dfe6f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

.segmented {
  display: inline-flex;
  padding: 3px;
  background: #e8ecf3;
  border-radius: 11px;
}

.segmented button {
  min-height: 33px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.segmented button.is-active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(12, 20, 36, 0.14);
}

/* ---------- verdikt nákupu ---------- */

.verdict-area {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.verdict-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 70%, var(--ink-3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  color: #e8edf5;
}

@media (min-width: 720px) {
  /* rada o rozdeleni nakupu vpravo hore — rovnaka mriezka ako statistiky,
     aby blok licoval so sirkou dvoch pravych dlazdic pod nim */
  .verdict-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .verdict-card .verdict-main { grid-column: 1; }
  .verdict-card .verdict-split { grid-column: 2 / -1; }
  .verdict-card .verdict-stats { grid-column: 1 / -1; }
}

.verdict-split {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--muted-2);
  border-radius: 12px;
}

.verdict-split.tone-mid { border-left-color: #f59e0b; }
.verdict-split.tone-go { border-left-color: var(--accent); }

.verdict-split strong { font-family: var(--font-display); color: #fff; }

.verdict-split p {
  margin: 6px 0 0;
  color: #b9c4d4;
  font-size: 13.5px;
}

.verdict-split p strong { font-family: var(--font-body); color: #fff; }

.verdict-split .split-verdict { display: block; margin-top: 6px; font-weight: 600; color: #e8edf5; }

.verdict-card .label,
.vstat .label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8d99ad;
}

.verdict-card .label { color: var(--accent-glow); }

.verdict-main { display: grid; gap: 8px; justify-items: start; }

.verdict-store {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verdict-store .store-badge { font-size: 21px; color: #fff; font-family: var(--font-display); }
.verdict-store .store-badge .dot { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.verdict-store .store-badge .dot.has-logo { width: 40px; }

.verdict-store-note { color: #8d99ad; font-size: 13px; }

.verdict-line {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #c6cfdd;
}

.verdict-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vstat {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.vstat strong {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
}

.vstat strong.pos { color: var(--accent-glow); }

.vstat .hint { color: #8d99ad; font-size: 12.5px; }

.compare-block {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Porovnanie obchodov ↔ Porovnanie nákupného zoznamu sa prepínajú v tom istom mieste */
.list-compare-slot:empty { display: none; }

.lc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.lc-head h3 { margin: 0; font-size: 16.5px; }

/* Porovnanie nákupného zoznamu — kde je každá presná položka */
.lc-rows { display: grid; gap: 8px; }

.lc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.lc-name { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.lc-qty { margin-left: 6px; color: var(--muted); font-weight: 600; }

.lc-where { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lc-where .store-badge { font-size: 12.5px; }
.lc-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.lc-or { color: var(--muted-2); }
.lc-missing { color: var(--muted-2); font-size: 12.5px; font-style: italic; }

.lc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lc-store-total { display: inline-flex; align-items: center; gap: 7px; }
.lc-store-meta { color: var(--muted); font-size: 12.5px; font-weight: 600; }

.compare-block h3 {
  margin: 0 0 12px;
  font-size: 16.5px;
}

.compare-rows { display: grid; gap: 8px; }

.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr auto;
  grid-template-areas: "badge chip total" "bar bar bar";
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.compare-row .store-badge { grid-area: badge; }

.compare-row.is-best {
  background: var(--accent-soft);
  border-color: #bdeee6;
}

.best-chip {
  grid-area: chip;
  justify-self: start;
  padding: 2px 9px;
  color: var(--accent-ink);
  background: #fff;
  border: 1px solid #bdeee6;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pref-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 9px;
  color: #be185d;
  background: #fdf0f6;
  border: 1px solid #f3bcd3;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-total {
  grid-area: total;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.compare-bar {
  grid-area: bar;
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #edf0f5;
  overflow: hidden;
}

.compare-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--muted-2);
}

.compare-row.is-best .compare-bar { background: #d3f3ee; }
.compare-row.is-best .compare-bar span { background: var(--accent); }

.split-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted-2);
  border-radius: 12px;
}

.split-card.tone-calm { border-left-color: var(--muted-2); }
.split-card.tone-mid { border-left-color: #f59e0b; }
.split-card.tone-go { border-left-color: var(--accent); }

.split-card strong { font-family: var(--font-display); }

.split-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.split-card p strong { font-family: var(--font-body); color: var(--text); }

.split-verdict { display: block; margin-top: 6px; font-weight: 600; color: var(--text); }

.verdict-footnote {
  margin: 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.detail-heading {
  margin: 4px 0 12px;
  font-size: 16.5px;
  color: var(--text);
}

/* ---------- karty položiek ---------- */

.items-list {
  display: grid;
  gap: 14px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.item-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.item-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.status-pill.ok { color: var(--accent-ink); background: var(--accent-soft); }
.status-pill.close { color: var(--amber); background: var(--amber-soft); }
.status-pill.none { color: var(--muted); background: #eef1f6; }
.status-pill.pending { color: var(--muted); background: #eef1f6; }

.item-card-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.item-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* najlepšia ponuka */

.best-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent-soft), #f2fdfb 65%);
  border: 1px solid #bdeee6;
  border-radius: 13px;
}

.best-offer .offer-store-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.best-offer .offer-title {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.best-offer .offer-meta {
  color: var(--muted);
  font-size: 13px;
}

.best-price {
  grid-row: span 3;
  text-align: right;
}

.best-price .label {
  display: block;
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.best-price .value {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}

.best-price .value.muted {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  white-space: normal;
}

.offer-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* doplnková info pod ponukou: €/kg a strana v letáku */
.offer-info {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.offer-row .offer-info { font-size: 12px; }

/* história ceny — na spodnom okraji karty, vpravo; najvyššia cena červená */
.offer-history-row {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  text-align: right;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.offer-row .offer-history-row { font-size: 12px; margin-top: 4px; }

.offer-history-row .hist-min { color: var(--accent-ink); font-weight: 800; }
.offer-history-row .hist-max { color: var(--danger); font-weight: 800; white-space: nowrap; }

/* obchodné badge */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}

.store-badge .dot {
  width: 22px; height: 22px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
}

.store-badge .dot.has-logo,
.store-tile .dot.has-logo {
  width: 30px;
  overflow: hidden;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--line);
}

.store-badge .dot.has-logo img,
.store-tile .dot.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.confidence::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.confidence.high::before { background: #16a34a; }
.confidence.medium::before { background: #f59e0b; }
.confidence.low::before { background: var(--muted-2); }

.timing-chip {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.timing-chip.current { color: var(--accent-ink); background: var(--accent-soft); }
.timing-chip.upcoming { color: #1d4ed8; background: #e8effd; }

/* ďalšie ponuky */

.more-offers-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  color: var(--muted);
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
}

.more-offers-toggle:hover { color: var(--accent-ink); }

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
}

.offer-row .offer-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.offer-row .offer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.offer-row .offer-price {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.offer-row .offer-price.muted { font-size: 13px; color: var(--muted); font-weight: 600; }

.offer-row .row-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.link-btn {
  padding: 0;
  color: var(--accent-ink);
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 0 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.heart-btn.is-active {
  color: #be185d;
  border-color: #f3bcd3;
  background: #fdf0f6;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty-state strong { color: var(--text); font-family: var(--font-display); font-size: 17px; }

.skeleton-line {
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, #edf0f5 25%, #e2e7ee 50%, #edf0f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(12, 20, 36, 0.15);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Košík
   ============================================================ */

.cart-panel {
  display: none;
  position: static;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.side-column {
  display: grid;
  gap: 14px;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-panel-head h2 { font-size: 20px; }

.list-summary {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid #bdeee6;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.list-summary strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
}

.list-summary .in-store { color: var(--accent-ink); font-weight: 600; }

.recalc-btn { width: 100%; margin-bottom: 14px; }

.cart-body { display: grid; gap: 14px; }

.cart-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 18px 6px;
  text-align: center;
}

.cart-store-group {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cart-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
}

.cart-store-subtotal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.cart-row-name {
  font-weight: 600;
  font-size: 14px;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.cart-row-detail {
  color: var(--muted);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.cart-row-price {
  grid-row: span 2;
  justify-self: end;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.cart-row-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.qty-stepper button {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
}

.qty-stepper button:hover { color: var(--accent-ink); }

.qty-stepper .qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-remove-btn {
  padding: 4px 2px;
  color: var(--muted);
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-remove-btn:hover { color: var(--danger); }

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-weight: 600;
}

.cart-total-row strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.plus-list-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.planned-list-panel {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.planned-list-panel .list-compare-area,
.planned-list-panel .list-compare-layout,
.planned-list-panel .lc-verdict-card,
.planned-list-panel .lc-detail-panel {
  width: 100%;
}

.plus-panel-head {
  display: grid;
  gap: 5px;
}

.plus-panel-head h2 {
  font-size: 20px;
}

.plus-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.plus-list-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.plus-list-form input,
.waitlist-form input,
.waitlist-form textarea {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.waitlist-form textarea {
  min-height: 70px;
  padding-top: 10px;
  resize: vertical;
}

.plus-list-form input:focus,
.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: 3px solid rgba(18, 199, 178, 0.25);
  border-color: var(--accent-ink);
}

.plus-list-form #plus-item-input,
.plus-list-form button {
  grid-column: 1 / -1;
}

.plus-list-items {
  display: grid;
  gap: 7px;
}

.plus-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.plus-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.plus-item-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.plus-item-qty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.plus-item-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
}

.match-state {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.match-state.exact {
  color: #047857;
  background: #dff7ef;
}

.match-state.alternative {
  color: #9a6700;
  background: #fff3cd;
}

.match-state.missing {
  color: #b42318;
  background: #fee4e2;
}

.match-state.pending {
  color: var(--muted);
  background: #eef2f6;
}

.plus-list-row .cart-remove-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.compare-basket-btn {
  width: 100%;
}

.list-compare-area {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  justify-items: stretch;
}

.list-compare-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.lc-verdict-card {
  margin: 0;
}

.lc-verdict-card .verdict-store {
  min-height: 30px;
}

.lc-verdict-card .verdict-store .store-badge {
  color: #fff;
}

.lc-detail-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lc-detail-panel .lc-head {
  margin-bottom: 2px;
}

.lc-detail-panel .lc-head h3 {
  font-size: 20px;
}

.lc-detail-panel .link-btn {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.lc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.lc-metrics > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lc-metrics small {
  color: var(--muted);
  font-size: 11.5px;
}

.lc-metrics strong {
  font-family: var(--font-display);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.lc-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #9a6700;
  background: #fff8e6;
  border-left: 3px solid #f59e0b;
  font-size: 13px;
}

.lc-row .match-state {
  margin-left: auto;
}

.lc-row .lc-where {
  flex-basis: 100%;
}

.lc-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  min-height: 64px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lc-item-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lc-item-main .lc-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.lc-item-row .match-state {
  justify-self: start;
}

.lc-best-offer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lc-best-offer strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
}

.lc-muted {
  color: var(--muted-2);
}

.lc-store-results h4 {
  margin: 14px 0 0;
  font-size: 14px;
}

.lc-store-results {
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.lc-store-results .lc-summary {
  margin: 0;
  padding-top: 12px;
  border-top: 0;
}

.lc-verdict {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.lc-verdict strong {
  color: var(--text);
}

/* plávajúce tlačidlo košíka (mobil) */

.cart-fab {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 45;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-fab strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent-glow);
}

/* ============================================================
   Letáky — dlaždice obchodov
   ============================================================ */

.store-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.store-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-align: left;
}

.store-tile:hover { border-color: var(--accent-ink); transform: translateY(-1px); }

.store-tile .dot {
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.store-tile .dot.has-logo {
  width: 44px;
  padding: 4px;
}

.store-tile .sub {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   Uložené ponuky + obľúbené
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.saved-list { display: grid; gap: 9px; }

.saved-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.saved-card .saved-name {
  font-weight: 700;
  text-transform: capitalize;
}

.saved-card .saved-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.saved-card .saved-price {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.saved-card .saved-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 3px;
}

.preferred-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.preferred-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.preferred-form input:focus { outline: 3px solid rgba(18, 199, 178, 0.25); border-color: var(--accent-ink); }

.preferred-list { display: grid; gap: 9px; }

.preferred-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.preferred-row .p-name { font-weight: 600; text-transform: capitalize; }

.preferred-row .p-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.preferred-row .p-price {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.preferred-row .p-price.muted { font-size: 13px; color: var(--muted); font-weight: 600; }

.preferred-row .p-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

/* ============================================================
   Free / Plus
   ============================================================ */

.plus-section {
  display: grid;
  gap: 16px;
}

.pricing-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.pricing-card.featured {
  border-color: #a8e9df;
  background: linear-gradient(180deg, #ffffff 0%, #effcf9 100%);
}

.pricing-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.pricing-card li::marker {
  color: var(--accent-ink);
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text) !important;
}

.waitlist-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.waitlist-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.waitlist-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-ink);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.form-message.success {
  color: var(--accent-ink);
  font-weight: 600;
}

.form-message.error {
  color: var(--danger);
  font-weight: 600;
}

/* ============================================================
   Overlaye, sheety, dialógy
   ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  /* jediny stlpec presne na sirku kontajnera — inak si siroky obsah (auto-fill
     mriezky letakov) roztiahne track za okraj mobilnej obrazovky */
  grid-template-columns: 100%;
  place-items: center;
  padding: 16px;
  background: rgba(9, 14, 26, 0.55);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

.overlay.full { padding: 0; place-items: stretch; }
.overlay.dark { background: rgba(5, 8, 16, 0.92); }

.sheet {
  width: min(560px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  overflow-y: auto;
}

.sheet.narrow { width: min(420px, 100%); }
.sheet.wide { width: min(840px, 100%); }

.sheet label { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.sheet input {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.sheet input:focus { outline: 3px solid rgba(18, 199, 178, 0.25); border-color: var(--accent-ink); }

.sheet p {
  margin: 0;
  color: var(--muted);
}

.sheet-muted {
  font-size: 13.5px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sheet-head h2 { font-size: 20px; }

.sheet-head-actions { display: flex; gap: 8px; }

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* mobil: sheet zospodu */
@media (max-width: 700px) {
  .overlay:not(.full) { place-items: end center; padding: 0; }
  .sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   Letáky — overlay
   ============================================================ */

.leaflets-shell {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.leaflets-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
}

.leaflets-topbar h2 { font-size: 18px; color: #fff; }

/* desktop: chipy obchodov na liste */
.leaflets-store-chips {
  display: none;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
}

.leaflets-store-chips::-webkit-scrollbar { display: none; }

.leaflets-store-chips button {
  flex: 0 0 auto;
  padding: 7px 14px;
  color: #c6cfdd;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.leaflets-store-chips button.is-active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 720px) {
  .leaflets-store-chips { display: flex; }
  .leaflets-store-select { display: none; }
}

/* mobil: roletka (nativny select) */
.leaflets-store-select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 300px;
  min-height: 40px;
  padding: 0 38px 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23c6cfdd' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.leaflets-store-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.leaflets-store-select option {
  color: #10151f;
  background: #fff;
}

.leaflets-body {
  flex: 1 1 auto;
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
  padding: 18px 0 40px;
  display: grid;
  gap: 18px;
}

.leaflets-status {
  padding: 30px 16px;
  color: var(--muted);
  text-align: center;
}

.leaflet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.leaflet-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.leaflet-card:hover { border-color: var(--accent-ink); }

.leaflet-card .lc-title { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.leaflet-card .lc-dates { color: var(--muted); font-size: 12.5px; }

.leaflet-products-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leaflet-products-head h3 { font-size: 17px; }

.leaflet-search {
  min-height: 40px;
  width: min(320px, 100%);
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.leaflet-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.leaflet-product {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: left;
  font-size: 13.5px;
}

.leaflet-product:hover { border-color: var(--accent-ink); }
.leaflet-product .lp-name { font-weight: 600; overflow-wrap: anywhere; }
.leaflet-product .lp-meta { color: var(--muted); font-size: 12px; }

/* ============================================================
   Viewer strán letáku
   ============================================================ */

.viewer-shell {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #e6ebf3;
}

.viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.viewer-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.viewer-title strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  overflow-wrap: anywhere;
}

.viewer-title span { color: #93a0b5; font-size: 13.5px; white-space: nowrap; }

.viewer-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.viewer-stage {
  flex: 1 1 auto;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 54px 20px;
  min-height: 0;
}

.viewer-canvas {
  max-width: 100%;
  max-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
}

.viewer-canvas img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  touch-action: pan-y;
}

.viewer-canvas .viewer-note { color: #93a0b5; padding: 40px 18px; text-align: center; }

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 26px;
  line-height: 1;
}

.viewer-nav:hover { background: rgba(255, 255, 255, 0.2); }
.viewer-nav.prev { left: 8px; }
.viewer-nav.next { right: 8px; }

/* ============================================================
   Footer, toast
   ============================================================ */

.footer {
  padding: 26px 16px 90px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 90;
  transform: translateX(-50%);
  max-width: min(480px, calc(100vw - 32px));
  padding: 11px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.toast.error { background: #7f1d1d; }

/* ============================================================
   Responzívne breakpointy
   ============================================================ */

@media (min-width: 720px) {
  .topnav { display: flex; }
  .how-steps,
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .waitlist-form {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
    align-items: start;
  }
  .waitlist-form > div,
  .waitlist-form .form-message {
    grid-column: 1 / -1;
  }
  .store-tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 719px) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    width: min(1160px, 100% - 20px);
    gap: 8px;
  }
  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 172px);
  }
  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
  }
  .location-chip,
  .cart-chip {
    min-height: 34px;
    padding: 0 9px;
    gap: 5px;
    font-size: 12.5px;
  }
  .cart-chip-total {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body[data-active-view="zoznam"] .brand {
    max-width: calc(100% - 92px);
  }
  .topnav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .topnav a {
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 6px 10px;
    border-radius: 6px;
  }
  .topnav a:not([data-app-view-link]) {
    display: none;
  }
}

@media (min-width: 1000px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .side-column {
    position: sticky;
    top: 72px;
    align-self: start;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 2px;
  }
  .cart-panel { display: block; }
  .cart-fab { display: none !important; }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .footer { padding-bottom: 30px; }
}

@media (max-width: 600px) {
  .lc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .verdict-stats .vstat:first-child { grid-column: 1 / -1; }
  /* uzsi riadok porovnania: chip "najlacnejsie" pod nazvom obchodu,
     ziadne pevne 120px minimum pre badge */
  .compare-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "badge total" "chip chip" "bar bar";
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 24px; }
  .hero-form { flex-direction: column; }
  .hero-form button { min-height: 46px; }
  .hero-actions .btn { width: 100%; }
  .brand-img { height: 34px; }
  .brand-name { font-size: 17px; }
  .location-chip span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .plus-list-form { grid-template-columns: minmax(0, 1fr); }
  .plus-list-form > * { grid-column: 1 !important; }
  .plus-list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plus-list-row .match-state { grid-column: 1 / -1; margin-left: 0; }
  .lc-item-row { grid-template-columns: minmax(0, 1fr); }
  .lc-best-offer { justify-self: start; white-space: normal; }
  .best-offer { grid-template-columns: 1fr; }
  .best-price { grid-row: auto; text-align: left; }
  .viewer-stage { padding: 0 8px 66px; }
  .viewer-nav { top: auto; bottom: 8px; transform: none; width: 46%; height: 46px; }
  .viewer-nav.prev { left: 2%; }
  .viewer-nav.next { right: 2%; }
}
