/* Obchod rozumnydom.sk – čistý štýl ako Loxone shop: tmavá lišta so zeleným logom,
   biely obsah, produkty na svetlých dlaždiciach. Bez externých fontov (GDPR). */
:root {
  --green: #8cff6f;
  --green-ink: #2a6e18;
  --ink: #1d1d1b;
  --text: #2b2b29;
  --muted: #64645f;
  --line: #e3e3de;
  --tile: #f4f4f1;
  --paper: #fff;
  --sale: #c62828;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.shop { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--green-ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--green); color: var(--ink); padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.s-wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-block: 40px 8px; }
.sec > h2 { margin-bottom: 18px; }

/* ---------- hlavička (mobile first: základ = telefón, od 900 px počítač) ---------- */
:root { --bar-h: 0px; --head-h: 112px; --bnav-h: 0px; --tap: 44px; }
.s-top { background: var(--ink); color: #fff; position: relative; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.has-bar .s-top { padding-top: 0; }
.has-sticky .s-top { position: sticky; top: var(--bar-h); transition: top .25s ease, box-shadow .2s; }
.has-sticky .s-top.s-hide { top: calc(var(--bar-h) - var(--head-h)); }
.s-top.s-shadow { box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.s-top-in { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 8px var(--gutter) 10px; }
.s-burger { width: var(--tap); height: var(--tap); margin-left: -8px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: none; color: #fff; cursor: pointer; }
.s-burger:hover { background: #333330; color: var(--green); }
.s-logo { margin-right: auto; }
.s-logo img { display: block; height: 34px; width: auto; }
.s-search { order: 9; flex: 1 1 100%; display: flex; background: #fff; border-radius: 4px; position: relative; }
.s-search > button { border-radius: 0 4px 4px 0; }
.s-search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; border-radius: 4px 0 0 4px; }
.s-search input:focus { outline: none; }
.s-search:focus-within { box-shadow: 0 0 0 3px var(--green); }
.s-search button { border: 0; background: var(--green); color: var(--ink); width: 48px; cursor: pointer; display: grid; place-items: center; }
.s-contact { display: none; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.s-contact:hover { color: var(--green); }
.s-cart { position: relative; color: #fff; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 4px; }
.s-cart:hover { background: #333330; color: var(--green); }
.s-cart-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.has-bnav .s-account { display: none; }

/* menu: na mobile zásuvka zľava */
.s-drawer { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: #262624; color: #e8e8e4;
  transform: translateX(-102%); transition: transform .25s ease, visibility .25s; visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav-open .s-drawer { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0,0,0,.35); }
.s-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.nav-open .s-scrim { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-open .s-top { z-index: 65; } /* zásuvka je v hlavičke – nad spodnou lištou a chatom */
.s-drawer-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px 16px; border-bottom: 1px solid #3a3a37; position: sticky; top: 0; background: #262624; z-index: 1; }
.s-drawer-head img { border-radius: 8px; }
.s-drawer-head b { flex: 1; font-size: 17px; color: #fff; }
.s-drawer-x { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: none; color: #fff; border-radius: 50%; cursor: pointer; }
.s-drawer-x:hover { background: #3a3a37; }
.s-nav ul { list-style: none; margin: 0; padding: 6px 0; }
.s-nav a, .s-dd-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 18px; color: #e8e8e4; text-decoration: none;
  font: inherit; font-size: 16px; background: none; border: 0; border-left: 3px solid transparent; text-align: left; cursor: pointer; }
.s-nav a:hover, .s-dd-btn:hover { color: #fff; background: #30302d; }
.s-nav a.on, .s-dd-btn.on { color: #fff; border-left-color: var(--green); }
.s-dd-btn svg { transition: transform .15s; }
.s-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.s-dd-panel { display: none; background: #1f1f1d; }
.s-dd-btn[aria-expanded="true"] + .s-dd-panel { display: block; }
.s-dd-panel a { padding-left: 32px; font-size: 15px; min-height: 44px; }
.s-dd-panel a[aria-current="page"] { color: var(--green); }
.s-dd-panel b { font-weight: 600; }
.s-drawer-extra { margin-top: auto; border-top: 1px solid #3a3a37; padding: 8px 0 16px; }
.s-drawer-extra ul { list-style: none; margin: 0; padding: 0; }
.s-drawer-extra a { display: flex; align-items: center; min-height: 44px; padding: 8px 18px; color: #e8e8e4; text-decoration: none; }
.s-drawer-extra a:hover { color: var(--green); }
.s-drawer-app { display: grid; gap: 8px; padding: 10px 18px 0; }
.s-drawer-app .sbtn { width: 100%; }
.s-drawer-app [aria-pressed="true"] { border-color: var(--green); color: var(--green); }

/* spodná lišta (mobil) */
.s-bnav { display: none; }
.has-bnav { --bnav-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
.has-bnav .s-bnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  height: var(--bnav-h); padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.s-bnav a, .s-bnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 11px; font-weight: 600;
  color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s-bnav [aria-current="page"], .s-bnav a:active, .s-bnav button:active { color: var(--ink); }
.s-bnav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--green-ink); }
.s-bnav-n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: var(--ink); font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
body.has-bnav { padding-bottom: var(--bnav-h); }

@media (min-width: 900px) {
  .has-bnav { --bnav-h: 0px; }
  .has-bnav .s-bnav { display: none; }
  .has-bnav .s-account { display: grid; }
  .s-top-in { flex-wrap: nowrap; gap: 24px; padding: 12px var(--gutter); }
  .s-burger { display: none; }
  .s-logo { margin-right: 0; }
  .s-logo img { height: 44px; }
  .s-search { order: 0; flex: 1 1 auto; max-width: 560px; }
  .s-search input { font-size: 15px; padding: 11px 14px; }
  .s-contact { display: block; margin-left: auto; }
  /* menu ako pruh pod hlavičkou */
  .s-drawer { position: static; transform: none; visibility: visible; width: auto; background: none; overflow: visible; display: block; padding: 0; transition: none; border-top: 1px solid #333330; }
  .s-drawer-head, .s-drawer-extra, .s-scrim { display: none; }
  .nav-open { overflow: auto; }
  .nav-open .s-top { z-index: 20; }
  .s-nav { position: relative; }
  .s-nav > ul { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .s-nav > ul::-webkit-scrollbar { display: none; }
  .s-nav li { position: static; }
  .s-nav a, .s-dd-btn { width: auto; min-height: 0; padding: 12px; font-size: 15px; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; gap: 6px; }
  .s-nav a:hover, .s-dd-btn:hover, .s-dd-btn[aria-expanded="true"] { background: none; color: #fff; border-bottom-color: #555; }
  .s-nav a.on, .s-dd-btn.on { border-bottom-color: var(--green); }
  .s-dd-panel { position: absolute; left: 0; right: 0; top: 100%; background: #262624; border-top: 1px solid #333330; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 30; }
  .s-dd-panel ul { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter) 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
  .s-dd-panel a { border-bottom: 0; padding: 9px 0; white-space: normal; font-size: 15px; min-height: 0; }
  .s-dd-panel a:hover { color: var(--green); }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .s-dd:hover .s-dd-panel { display: block; } }

/* rýchla správa navrchu – stále viditeľná */
.s-bar { position: sticky; top: 0; z-index: 25; background: var(--green); color: var(--ink); font-size: 14px; line-height: 1.4; padding-top: env(safe-area-inset-top, 0px); }
.s-bar.tone-dark { background: #000; color: #fff; }
.s-bar.tone-dark a { color: var(--green); }
.s-bar.tone-red { background: var(--sale); color: #fff; }
.s-bar.tone-red a { color: #fff; }
.s-bar-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px var(--gutter); }
.s-bar p { flex: 1; margin: 0; text-align: center; font-weight: 600; }
.s-bar a { color: var(--ink); font-weight: 700; margin-left: 6px; white-space: nowrap; }
.s-bar-x { flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.s-bar-x:hover { background: rgba(0,0,0,.1); }

/* ---------- tlačidlá ---------- */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 4px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.sbtn:hover { background: var(--tile); }
.sbtn.primary { background: var(--green); border-color: var(--green); }
.sbtn.primary:hover { background: #79f05a; border-color: #79f05a; }
.sbtn.ghost { background: transparent; color: #fff; border-color: #fff; }
.sbtn.ghost:hover { background: rgba(255,255,255,.1); }
.sbtn.wide { width: 100%; }

/* ---------- úvod ---------- */
.hero { background: var(--ink); color: #e8e8e4; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 56px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); margin: 6px 0 16px; }
.eyebrow { color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0; }
.lead { font-size: 18px; max-width: 34em; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img img { display: block; width: 100%; border-radius: 6px; }

/* kategórie: riadky vždy na celú šírku, posledný riadok s menej dlaždicami má širšie dlaždice */
.tiles { --gap: 14px; --per: var(--per-sm, 2); display: flex; flex-wrap: wrap; gap: var(--gap); }
@media (min-width: 641px) { .tiles { --per: var(--per-md, 3); } }
@media (min-width: 1100px) { .tiles { --per: var(--per-lg, 5); } }
.tile { flex: 1 1 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; display: flex; flex-direction: column; gap: 2px; background: var(--tile); padding: 16px; text-decoration: none; color: var(--ink); border-radius: 4px; transition: background .15s; }
.tile:hover { background: #ebebe6; }
.tile-img { height: clamp(110px, 11vw, 170px); display: grid; place-items: center; margin-bottom: 10px; }
.tile-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile b { font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; }

/* ---------- zoznam produktov ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.cat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.cat-desc { max-width: 60em; color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-link { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; }
.chip-link:hover { border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg a { padding: 8px 16px; text-decoration: none; color: var(--ink); font-size: 14px; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: var(--ink); color: #fff; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-ink); }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.empty-s { padding: 30px 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 18px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-link { text-decoration: none; color: var(--ink); display: block; }
.card-img { position: relative; background: var(--tile); aspect-ratio: 1; display: grid; place-items: center; padding: 18px; border-radius: 4px; transition: background .15s; }
.card-link:hover .card-img { background: #ebebe6; }
.card-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card h3 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; line-height: 1.35; }
.card-link:hover h3 { text-decoration: underline; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.tag { position: absolute; top: 10px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.tag.sale { left: 10px; background: var(--sale); color: #fff; }
.tag.tech { right: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.price { display: flex; flex-direction: column; }
.price b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price > span { font-size: 13px; color: var(--muted); }
.price .was { color: var(--muted); }
.price s { color: var(--muted); }
.price.big b { font-size: 30px; }
.stock { font-size: 14px; color: var(--muted); margin: 0; }
.stock::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b9b9b2; margin-right: 6px; vertical-align: 1px; }
.stock.in { color: var(--green-ink); font-weight: 600; }
.stock.in::before { background: #3bb320; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 34px 0 10px; }
.pager a, .pager span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 14px; }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .off { color: #b0b0aa; }

/* ---------- detail produktu ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; padding: 10px 0 30px; }
.pd-main { position: relative; background: var(--tile); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; border-radius: 4px; }
.pd-main img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button { flex: 0 0 76px; height: 76px; padding: 6px; background: var(--tile); border: 2px solid transparent; border-radius: 4px; cursor: pointer; }
.pd-thumbs button.on { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-info h1 { margin-bottom: 6px; }
.pd-sku { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pd-lead { font-size: 17px; margin: 0 0 20px; }
.pd-buy { border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 12px; }
.pd-points { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.pd-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; border-top: 1px solid var(--line); padding-top: 30px; }
.pd-desc h2, .pd-docs h2 { margin-bottom: 12px; font-size: 20px; }
.pd-docs { background: var(--tile); padding: 20px; border-radius: 6px; align-self: start; }
.pd-docs h2:not(:first-child) { margin-top: 20px; }
.pd-docs ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pd-docs p { margin: 0; }
.pd-video { width: 100%; margin-top: 20px; border-radius: 6px; background: #000; }
.rich { max-width: 72ch; overflow-wrap: anywhere; }
.rich h2, .rich h3, .rich h4 { margin: 1.3em 0 .5em; font-size: 19px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.rich img { border-radius: 4px; }

.page-wrap { padding-bottom: 40px; }
.page-art h1 { margin: 6px 0 20px; }
.page-print { margin-top: 30px; }

/* ---------- pätička ---------- */
.s-usp { background: var(--tile); margin-top: 56px; }
.s-usp-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; }
.s-usp b { display: block; color: var(--ink); }
.s-usp span { color: var(--muted); font-size: 14px; }
.s-foot { background: var(--ink); color: #c9c9c4; font-size: 14px; }
.s-foot-in { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 30px; padding-block: 36px 20px; }
.s-foot h2 { color: #fff; font-size: 15px; margin: 0 0 8px; }
.s-foot h2:not(:first-child) { margin-top: 16px; }
.s-foot p { margin: 8px 0 0; }
.s-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s-foot a { color: #e8e8e4; }
.s-foot a:hover { color: var(--green); }
.s-legal { line-height: 1.6; }
.s-foot-bottom { border-top: 1px solid #333330; padding-block: 14px 22px; color: #9d9d97; font-size: 13px; }

/* ---------- galéria, zväčšenie, farby ---------- */
.pd > * { min-width: 0; }
.pd-zoom { position: absolute; inset: 28px; display: grid; place-items: center; cursor: zoom-in; }
.pd-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-zoom-ico { position: absolute; right: -16px; bottom: -16px; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; }
.pd-zoom:focus-visible { outline-offset: 6px; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 1; }
.pd-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-arrow.prev { left: 10px; }
.pd-arrow.next { right: 10px; }
.pd-thumbs { scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pd-thumbs button { scroll-snap-align: start; }
.pd-thumbs button:hover { border-color: #b9b9b2; }
.pd-thumbs button.on { border-color: var(--ink); }

.pd-colors { margin: 0 0 18px; }
.pd-colors-h { margin: 0 0 8px; font-size: 15px; }
.pd-colors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-colors a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 14px; }
.pd-colors a:hover { border-color: var(--ink); }
.pd-colors a.on { border: 2px solid var(--ink); padding: 5px 13px 5px 7px; font-weight: 600; }
.sw { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); flex: none; }

.lb[open] { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 64px;
  border: 0; background: #fff; display: grid; place-items: center; overscroll-behavior: contain; }
.lb::backdrop { background: rgba(0,0,0,.6); }
body:has(.lb[open]) { overflow: hidden; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.lb-close:hover { background: var(--ink); color: #fff; }
.lb .pd-arrow { width: 48px; height: 48px; }
.lb-count { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { padding-block: 34px 10px; }
.nf-code { margin: 0; font-size: clamp(64px, 12vw, 120px); font-weight: 700; line-height: 1; color: var(--line); letter-spacing: -.03em; }
.nf h1 { margin: 6px 0 12px; }
.nf .lead { color: var(--muted); }
.nf-search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 26px; }
.nf-search input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border: 1px solid #b9b9b2; border-radius: 4px; }
.nf-h { font-size: 18px; margin-bottom: 12px; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .hero-in, .pd, .pd-body { grid-template-columns: 1fr; gap: 24px; }
  .hero-in { padding-block: 34px; }
  .hero-img { order: -1; }
  .s-usp-in { grid-template-columns: 1fr 1fr; }
  .s-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card-img { padding: 10px; }
  .card h3 { font-size: 15px; }
  .price b { font-size: 17px; }
  .sort { margin-left: 0; }
  .s-usp-in, .s-foot-in { grid-template-columns: 1fr; }
  .tiles { --gap: 10px; }
  .pd-main { padding: 16px; }
  .pd-zoom { inset: 16px; }
  .pd-zoom-ico { right: -8px; bottom: -8px; }
  .pd-arrow { width: 40px; height: 40px; }
  .pd-arrow.prev { left: 6px; }
  .pd-arrow.next { right: 6px; }
  .pd-thumbs button { flex-basis: 64px; height: 64px; }
  .lb[open] { padding: 60px 8px 48px; }
  .lb .pd-arrow { top: auto; bottom: 4px; transform: none; }
  .lb .pd-arrow.prev { left: 12px; }
  .lb .pd-arrow.next { right: 12px; }
  .lb-count { bottom: 16px; }
}
@media print {
  .s-top, .s-usp, .s-foot, .crumbs, .page-print { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- košík na produkte ---------- */
.pd-add { display: flex; gap: 10px; }
.pd-add .sbtn { flex: 1; }
.pd-qty input { width: 76px; height: 100%; font: inherit; font-size: 16px; padding: 10px; border: 2px solid var(--ink); border-radius: 4px; text-align: center; }

/* obsah z editora v admine (popisy, stránky) */
.rich .al-l { text-align: left; } .rich .al-c { text-align: center; } .rich .al-r { text-align: right; } .rich .al-j { text-align: justify; }
.rich img { max-width: 100%; height: auto; }
.rich img.al-c, .rich figure.al-c { display: block; margin-left: auto; margin-right: auto; }
.rich img.al-r { float: right; margin: 0 0 1em 1em; max-width: 50%; } .rich img.al-l { float: left; margin: 0 1em 1em 0; max-width: 50%; }
.rich::after { content: ""; display: table; clear: both; }
.rich figure { margin: 1em 0; } .rich figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rich blockquote { margin: 1em 0; padding: .4em 1em; border-left: 3px solid var(--line); color: var(--muted); }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.rich iframe { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1em 0; }
.rich a { overflow-wrap: anywhere; }
.cat-desc.rich > :first-child { margin-top: 0; } .cat-desc.rich > :last-child { margin-bottom: 0; }
@media (max-width: 560px) { .rich img.al-r, .rich img.al-l { float: none; max-width: 100%; margin: 1em 0; } }

/* ---------- dokumentácia na produkte ---------- */
.pd-dl { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.pd-dl h2 { margin-bottom: 14px; }
.pd-dl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pd-dl-tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.pd-dl-tabs button span { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--tile); font-size: 12px; color: var(--muted); }
.pd-dl-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-dl-tabs button[aria-selected="true"] span { background: var(--green); color: var(--ink); }
.pd-dl-group { margin-bottom: 18px; }
.pd-dl-group h3 { font-size: 16px; margin-bottom: 10px; }
.pd-dl.tabbed .pd-dl-group h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pd-dl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #c9c9c3; border-radius: 6px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; max-width: 100%; }
.doc-btn:hover { border-color: var(--ink); background: var(--tile); }
.doc-btn svg { flex: 0 0 auto; color: var(--green-ink); }
.doc-btn span { overflow-wrap: anywhere; }
.doc-btn small { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.doc-btn.doc-certificate svg { color: #1d5fb4; }
.doc-btn.doc-programming svg { color: #7a3fb0; }

/* ---------- obsah webu: blog, časté otázky, stránky, sekcie úvodu ---------- */
.s-foot-in { grid-template-columns: 1.4fr 1.2fr repeat(var(--cols, 2), 1fr); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }
.sec-sub { margin: -10px 0 18px; }
.chip-link.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px 22px; }
.post { display: flex; flex-direction: column; min-width: 0; }
.post-link { text-decoration: none; color: var(--ink); }
.post-img { aspect-ratio: 16 / 10; background: var(--tile); border-radius: 4px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.post-link:hover .post-img img { transform: scale(1.03); }
.post h2, .post h3 { font-size: 19px; font-weight: 600; margin: 14px 0 6px; line-height: 1.3; }
.post-link:hover h2, .post-link:hover h3 { text-decoration: underline; }
.post-meta { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.post-meta a { color: var(--muted); }
.post-perex { margin: 0; color: var(--text); font-size: 15px; }

.art { max-width: 76ch; padding-bottom: 10px; }
.art-head h1 { margin: 6px 0 10px; }
.art-perex { font-size: 19px; color: var(--ink); margin: 14px 0 0; }
.art-img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 6px; margin: 22px 0 6px; }
.art .rich { max-width: none; font-size: 17px; }
.rich h1 { font-size: 22px; margin: 1.3em 0 .5em; }

.faq-page { max-width: 76ch; }
.faq-page h1 { margin: 6px 0 18px; }
.faq-toc { margin-bottom: 8px; }
.faq-group { padding-top: 22px; scroll-margin-top: 140px; }
.faq-group h2 { margin-bottom: 10px; }
.faq { border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.faq summary { cursor: pointer; padding: 14px 34px 14px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--green-ink); }
.faq .rich { padding: 0 0 16px; }
.faq .rich > :first-child { margin-top: 0; } .faq .rich > :last-child { margin-bottom: 0; }
.faq-more { margin-top: 28px; }

.page-hero { position: relative; background: var(--ink); color: #e8e8e4; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero.no-img { min-height: 0; }
.page-hero-in { position: relative; width: 100%; padding-block: 10px 40px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); margin: 4px 0 10px; }
.page-hero .crumbs, .page-hero .crumbs a { color: #d8d8d2; }
.page-hero .lead { margin: 0; color: #f0f0ea; }
.page-wide { padding-top: 30px; }
.page-wide .rich { max-width: 80ch; font-size: 17px; }

.hs-text .rich { max-width: 80ch; }
.hs-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hs-it { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--tile); border-radius: 6px; padding: 30px; }
.hs-it.img-right .hs-it-img { order: 2; }
.hs-it-img { text-align: center; }
.hs-it-img img { display: inline-block; max-width: 100%; max-height: 440px; width: auto; border-radius: 4px; }
.hs-it-text h2 { margin-bottom: 12px; }
.hs-it-text .rich > :first-child { margin-top: 0; }
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.banner { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--tile); color: #fff; text-decoration: none; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
a.banner:hover img { transform: scale(1.03); }
.banner span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-weight: 600; font-size: 18px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
/* referencie: posuvný pás so zachytením kariet */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 14px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.quote { scroll-snap-align: start; margin: 0; background: var(--tile); border-radius: 8px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.q-mark { color: var(--green-ink); opacity: .9; flex: none; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.quote figcaption img, .q-ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.q-ava { display: grid; place-items: center; background: var(--ink); color: var(--green); font-weight: 700; font-size: 19px; }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption small { display: block; color: var(--muted); font-size: 13px; }
.q-nav { display: flex; gap: 8px; }
.q-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.q-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-btn:disabled { opacity: .35; cursor: default; }
.q-static .q-nav { display: none; }
@media (min-width: 900px) { .quotes { grid-auto-columns: calc((100% - 36px - 2 * var(--gutter)) / 3); } }
@media (hover: none) { .q-nav { display: none; } }

@media (max-width: 900px) {
  .hs-it { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .hs-it.img-right .hs-it-img { order: 0; }
  .s-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .s-foot-in { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .faq-group, .faq { scroll-margin-top: 190px; }
  .page-hero { min-height: 220px; }
  .art-perex { font-size: 17px; }
  .art .rich, .page-wide .rich { font-size: 16px; }
}
@media print { .faq summary::after { content: none; } .faq .rich { display: block; } }

/* ---------- mobil: lepiaca lišta na produkte ---------- */
.pd-sticky { position: fixed; z-index: 35; left: 0; right: 0; bottom: var(--bnav-h); display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility .2s; }
.pd-sticky.on { transform: none; visibility: visible; }
.pd-sticky div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-sticky b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-sticky span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-sticky .sbtn { flex: none; padding-inline: 18px; }
@media (min-width: 900px) { .pd-sticky { display: none; } }

/* ---------- chat ---------- */
.s-chat { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--bnav-h) + 16px); transition: bottom .2s; }
.has-pd-sticky .s-chat { bottom: calc(var(--bnav-h) + 82px); }
.s-chat-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--green); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); margin-left: auto; }
.s-chat-fab:hover { transform: scale(1.04); }
.s-chat.online .s-chat-fab::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; background: #3bb320; border: 2px solid var(--ink); }
.s-chat-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sale); border: 2px solid #fff; }
.s-chat-panel { position: fixed; z-index: 46; inset: auto 0 0 0; height: min(86dvh, 640px); background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25);
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.s-chat-panel[hidden] { display: none; }
.s-chat-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 18px; background: var(--ink); color: #fff; border-radius: 14px 14px 0 0; }
.s-chat-panel header div { flex: 1; display: flex; flex-direction: column; }
.s-chat-status { font-size: 13px; color: #c9c9c4; }
.s-chat.online .s-chat-status { color: var(--green); }
.s-chat-x { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: none; color: #fff; border-radius: 50%; cursor: pointer; }
.s-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; background: var(--tile); }
.s-chat-m { max-width: 85%; align-self: flex-end; text-align: right; }
.s-chat-m p { margin: 0; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.s-chat-m.admin { align-self: flex-start; text-align: left; }
.s-chat-m.admin p { background: #fff; color: var(--ink); border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.s-chat-m.system { align-self: center; text-align: center; }
.s-chat-m.system p { background: none; color: var(--muted); font-size: 13px; text-align: center; }
.s-chat-m span { font-size: 11px; color: var(--muted); }
.s-chat-panel form { padding: 10px 12px 8px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.s-chat-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.s-chat-contact input[name=email] { grid-column: 1 / -1; order: -1; }
.s-chat-contact small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.s-chat-panel input, .s-chat-panel textarea { font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid #c9c9c3; border-radius: 8px; min-width: 0; width: 100%; }
.s-chat-send { display: flex; gap: 8px; align-items: flex-end; }
.s-chat-send textarea { resize: none; max-height: 120px; }
.s-chat-send .sbtn { padding: 0; width: 48px; height: 48px; flex: none; border-radius: 50%; }
.s-chat-err { margin: 0; color: var(--sale); font-size: 14px; }
.s-chat-gdpr { font-size: 11px; color: var(--muted); }
.s-chat-gdpr a { color: var(--muted); }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.s-chat.open .s-chat-fab { display: none; }
@media (min-width: 600px) {
  .s-chat-panel { inset: auto max(16px, env(safe-area-inset-right, 0px)) calc(var(--bnav-h) + 16px) auto; width: 380px; height: min(600px, calc(100dvh - 120px)); border-radius: 14px; }
}

/* ---------- dialóg a hlásenie ---------- */
.s-sheet { border: 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 440px; margin: auto auto 0; border-radius: 14px 14px 0 0; }
.s-sheet::backdrop { background: rgba(0,0,0,.5); }
.s-sheet h2 { font-size: 20px; margin-bottom: 8px; }
.s-sheet p { margin: 0 0 18px; color: var(--text); }
.s-sheet-btns { display: grid; gap: 8px; }
@media (min-width: 600px) { .s-sheet { margin: auto; border-radius: 10px; } }
.s-toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--bnav-h) + 20px); transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.s-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobil: väčšie dotykové plochy, posúvanie filtrov ---------- */
@media (max-width: 899px) {
  .crumbs { padding-top: 12px; }
  .crumbs a { padding-block: 4px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); gap: 10px 14px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex: none; }
  .seg a { padding: 10px 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip-link { flex: none; padding: 9px 16px; }
  .pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  .s-foot a { display: inline-block; padding-block: 4px; }
  .hero-cta .sbtn { flex: 1 1 auto; }
}
@media (display-mode: standalone) { .s-contact { display: none; } }
@media print { .s-bar, .s-bnav, .s-chat, .pd-sticky, .s-drawer, .s-scrim { display: none !important; } body.has-bnav { padding-bottom: 0; } }

/* rýchle vyhľadávanie – návrhy počas písania */
.s-sugg { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 0; }
.s-sugg a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--ink); text-decoration: none; min-height: 44px; }
.s-sugg a:hover, .s-sugg a[aria-selected="true"] { background: var(--tile); }
.sg-cat { font-weight: 600; }
.sg-cat span { font-size: 12px; font-weight: 400; color: var(--muted); background: var(--tile); border-radius: 3px; padding: 2px 6px; }
.sg-img { flex: 0 0 44px; height: 44px; background: var(--tile); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.sg-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-t b { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-t small { color: var(--muted); font-size: 12px; }
.sg-pr { white-space: nowrap; font-weight: 700; font-size: 14px; text-align: right; display: flex; flex-direction: column; }
.sg-pr s { color: var(--muted); font-weight: 400; font-size: 12px; }
.s-sugg .sg-all { justify-content: center; font-weight: 600; color: var(--green-ink, #2c6e00); border-top: 1px solid var(--line); margin-top: 4px; }
.sg-empty { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.s-search.busy > button svg { animation: sg-pulse 1s ease-in-out infinite; }
@keyframes sg-pulse { 50% { opacity: .35; } }
@media (max-width: 899px) { .s-sugg { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); } }

/* panel po pridaní do košíka – "často sa kupuje spolu" (desktop sprava, mobil zdola) */
.s-added { position: fixed; inset: 0; z-index: 90; }
.s-added-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.s-added-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: #fff; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.2); outline: none; }
.s-added.on .s-added-scrim { opacity: 1; }
.s-added.on .s-added-panel { transform: none; }
.added-open { overflow: hidden; }
.s-added-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.s-added-head h2 { font-size: 19px; margin: 0; }
.s-added-head h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 15px; margin-right: 6px; }
.s-added-x { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.s-added-item { display: flex; gap: 12px; align-items: center; }
.s-added-item .sg-img { flex-basis: 56px; height: 56px; }
.s-added-sum { margin: 12px 0; font-size: 15px; }
.s-added-btns { display: grid; gap: 8px; }
.s-added-btns .sbtn { width: 100%; justify-content: center; text-align: center; }
.s-added-sub { font-size: 16px; margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.s-added-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s-added-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.s-added-list .sg-img { flex: 0 0 48px; height: 48px; }
.s-added-list .sg-t { color: var(--ink); text-decoration: none; }
.s-added-list .sg-t:hover b { text-decoration: underline; }
.s-added-plus { flex: 0 0 auto; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; white-space: nowrap; }
.s-added-plus:hover { background: var(--green); border-color: var(--green); }
.s-added-plus.done { border-color: var(--green); background: var(--green); cursor: default; }
@media (max-width: 640px) {
  .s-added-panel { top: auto; left: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 14px 14px 0 0; transform: translateY(100%); }
}
