/*! iStage · Oblíbené, porovnání a rychlý náhled · v1.0.0
 *  Styly pro tlačítka na kartách produktů a na detailu, srdíčko v hlavičce, panel oblíbených, lištu a okno porovnání,
 *  rychlý náhled a hlášky. Prvky vkládá oblibene.js (třídy ob-); jen česká verze, ne v košíku a pokladně.
 *  ?ob=0 na konci adresy ukáže web bez modulu.
 */
:root { --ob-api: 1; }                             /* skript se připojí, jen když jsou načtené tyto styly */

/* ---------- Barvy a písmo (stejné jako košík, detail produktu a kategorie) ---------- */
.ob-tools, .ob-head, .ob-layer, .ob-dock, .ob-toasts {
  --ob-font: 'HP Poppins', 'Poppins', 'Nunito Sans', Arial, sans-serif;
  --ob-text: 'Nunito Sans', Arial, sans-serif;
  --ob-ink: #0b0d10; --ob-2: #55595f; --ob-3: #6b7079; --ob-line: #e2e2df; --ob-line-2: #cdcdc9;
  --ob-sunk: #f0f0ee; --ob-soft: #f7f7f5;
  --ob-ok: #15803d; --ob-ok-bg: #e4f5ea; --ob-bad: #c02718; --ob-bad-bg: #fdeae7;
  --ob-cta: #0076e1; --ob-cta-h: #105eab; --ob-focus: #0063c7;
  --ob-heart: #fb2a2d;                              /* červená z hlavičky (počet u košíku) */
  --ob-r: 20px; --ob-r-md: 14px; --ob-r-sm: 10px;
}
.ob-ico { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: middle; }
html.ob-off .ob-tools, html.ob-off .ob-head, html.ob-off .ob-dock { display: none !important; }

/* ==========================================================================================================
   A) TLAČÍTKA NA KARTÁCH (vpravo nahoře na fotce) A NA DETAILU PRODUKTU (roh hlavní fotky)
   ========================================================================================================== */
.ob-tools { position: absolute; top: 10px; right: 10px; z-index: 4; display: grid; gap: 6px; pointer-events: none; }
.ob-tool {
  -webkit-appearance: none; appearance: none; pointer-events: auto; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0;
  border: 1px solid var(--ob-line); border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ob-2); cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(11, 13, 16, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s, color .15s, border-color .15s;
}
.ob-tool .ob-ico { width: 17px; height: 17px; }
.ob-tool:hover { color: var(--ob-ink); border-color: var(--ob-line-2); transform: scale(1.08); }
.ob-tool.is-on { background: var(--ob-ink); border-color: var(--ob-ink); color: #fff; }
.ob-tool.is-on[data-ob="wish"] { color: var(--ob-heart); }
.ob-tool.is-on[data-ob="wish"] .ob-ico { fill: currentColor; }
.ob-tool:focus-visible { outline: 3px solid var(--ob-focus); outline-offset: 2px; }
/* myš: tlačítka se ukážou po najetí na kartu (zapnutá jsou vidět vždy), dotyk: vidět pořád */
@media (hover: hover) and (pointer: fine) {
  .ob-tools:not(.ob-pd) .ob-tool:not(.is-on) { opacity: 0; transform: translateX(6px); }
  .p[data-micro="product"]:hover > .ob-tools .ob-tool,
  .p[data-micro="product"]:focus-within > .ob-tools .ob-tool,
  .ob-tools .ob-tool:focus-visible { opacity: 1; transform: none; }
  .p[data-micro="product"]:hover > .ob-tools .ob-tool:hover { transform: scale(1.08); }
}
/* kategorie v zobrazení „seznam“: fotka vlevo (188 px) → tlačítka v jejím rohu */
@media (min-width: 768px) {
  html.kt-list body.type-category #products .p > .ob-tools { right: auto; left: 144px; }
}
/* detail produktu: v rohu hlavní fotky, vždy vidět, trochu větší */
.ob-pd { top: 16px; right: 16px; gap: 8px; }
.ob-pd .ob-tool { width: 42px; height: 42px; }
.ob-pd .ob-tool .ob-ico { width: 19px; height: 19px; }
@media (max-width: 767px) {
  .ob-tools { top: 8px; right: 8px; gap: 5px; }
  .ob-tool { width: 34px; height: 34px; }
  .ob-tool .ob-ico { width: 16px; height: 16px; }
  .ob-pd { top: 12px; right: 12px; }
  .ob-pd .ob-tool { width: 40px; height: 40px; }
}

/* ==========================================================================================================
   B) SRDÍČKO V HLAVIČCE
   ========================================================================================================== */
.ob-head { position: relative; display: none; color: inherit; text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
.ob-head .ob-ico { width: 22px; height: 22px; }
.ob-head-t { font-family: var(--ob-font); font-size: 13.5px; font-weight: 600; line-height: 1; }
.ob-head-n {
  position: absolute; display: grid; place-items: center; box-sizing: content-box; min-width: 12px; height: 18px; padding: 0 3px;
  border: 2px solid #fff; border-radius: 999px; background: var(--ob-heart); color: #fff;
  font: 700 11px/18px var(--ob-text); font-style: normal; font-variant-numeric: tabular-nums;
}
.ob-head-n[hidden] { display: none; }
.ob-head:focus-visible { outline: 3px solid var(--ob-focus); outline-offset: 2px; border-radius: 14px; }
/* počítač (hlavička z modulu hlavicka): stejně jako Účet a Košík */
@media (min-width: 992px) {
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d {
    display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border-radius: 14px; color: #0b0d10;
    white-space: nowrap; transition: background-color .15s;
  }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d:hover { background: #f0f0ee; color: #0b0d10; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d .ob-head-n { top: 5px; left: 22px; }
}
/* užší počítače: sloupec pro tlačítka má jen 229 px (1200–1439) / 190 px (992–1199) → Oblíbené jen jako ikona,
   všechna tři tlačítka s menším odsazením, pod 1200 px i Účet jen jako ikona (text zůstává pro čtečky) */
@media (min-width: 992px) and (max-width: 1439.98px) {
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d { padding: 0 10px; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d .ob-head-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d .ob-head-n { left: 18px; }
  html[lang="cs"]:not(.ob-off):not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons:has(> .ob-head--d) :is(.top-nav-button, .cart-count) { padding: 0 10px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html[lang="cs"]:not(.ob-off):not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons:has(> .ob-head--d) :is(.top-nav-button-login, .top-nav-button-account)::after { content: none; }
}
/* tablet (hlavička šablony, políčka Přihlášení a Košík po 100 px ve třetině šířky = 247 px): jen ikona s počtem,
   44 px – víc místa tam není; hlavička se nesmí zalomit */
@media (min-width: 768px) and (max-width: 991.98px) {
  html:not(.ob-off) #header .header-top > .navigation-buttons { min-width: 0; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d {
    display: grid; place-items: center; align-self: stretch; flex: 0 0 auto; width: 44px; color: #676767;
  }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d .ob-head-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d .ob-ico { width: 26px; height: 26px; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d .ob-head-n { top: calc(50% - 22px); left: 22px; }
  html:not(.ob-off) #header .navigation-buttons > .ob-head--d:hover { color: #0b0d10; }
}
/* mobil (hlavička šablony): ikona mezi logem a telefonem. Šablona tu schovává číslo telefonu, dovětek
   „(Po-Pá: 10-17h)“ ze Záhlaví by jinak visel u ikony a na úzkém displeji se dotýkal loga. */
@media (max-width: 767.98px) {
  html[lang="cs"] .top-navigation-bar .project-phone::after { content: none !important; }   /* i v košíku a pokladně, nezávisle na skriptu */
  html:not(.ob-off) .responsive-tools > .ob-head--m {
    position: absolute; top: 11px; right: 168px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; color: #a3a3af; line-height: 1;
  }
  html:not(.ob-off) .responsive-tools > .ob-head--m::before,
  html:not(.ob-off) .responsive-tools > .ob-head--m::after { content: none !important; display: none !important; }   /* šablona dává odkazům tady vlastní ikonu */
  html:not(.ob-off) .responsive-tools > .ob-head--m .ob-head-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html:not(.ob-off) .responsive-tools > .ob-head--m .ob-ico { width: 25px; height: 25px; stroke-width: 1.7; }
  html:not(.ob-off) .responsive-tools > .ob-head--m.is-on { color: var(--ob-heart); }
  html:not(.ob-off) .responsive-tools > .ob-head--m .ob-head-n { top: -3px; left: 18px; }
}

/* ==========================================================================================================
   C) VRSTVY – panel oblíbených (zprava), porovnání a rychlý náhled (okno uprostřed)
   ========================================================================================================== */
html.ob-lock { overflow: hidden !important; }        /* stránka pod vrstvou se neposouvá; místo pro posuvník drží Záhlaví */
.ob-layer {
  position: fixed; inset: 0; z-index: 2147483647;    /* nad záložkou Heureky (má maximum) – vrstva je v DOM až za ní */
  font: 400 14px/1.5 var(--ob-text); color: var(--ob-2); text-align: left; -webkit-font-smoothing: antialiased;
}
.ob-layer[hidden] { display: none !important; }
:where(.ob-layer, .ob-dock, .ob-toasts) *, :where(.ob-layer, .ob-dock, .ob-toasts) *::before, :where(.ob-layer, .ob-dock, .ob-toasts) *::after { box-sizing: border-box; }
:where(.ob-layer, .ob-dock, .ob-toasts) :is(h2, h3, p, ul, li, table, fieldset, legend) { margin: 0; padding: 0; }   /* :is = stejná síla jako „p“ šablony (okraj 19 px), styly se načítají až po ní */
:where(.ob-layer) ul { list-style: none; }
:where(.ob-layer, .ob-dock, .ob-toasts) a { color: inherit; text-decoration: none; }
:where(.ob-layer, .ob-dock, .ob-toasts) button { font: inherit; color: inherit; }
:where(.ob-layer) img { max-width: 100%; }
.ob-scrim {
  position: absolute; inset: 0; background: rgba(11, 13, 16, .48); opacity: 0; transition: opacity .2s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ob-layer.is-open .ob-scrim { opacity: 1; }
.ob-panel { position: absolute; display: flex; flex-direction: column; background: #fff; outline: 0; box-shadow: 0 18px 40px -12px rgba(11, 13, 16, .24), 0 40px 80px -40px rgba(11, 13, 16, .34); }
.ob-panel:focus-visible { outline: 3px solid var(--ob-focus); outline-offset: -3px; }
/* panel oblíbených zprava – jako panel košíku */
.ob-panel--wish {
  top: 0; right: 0; bottom: 0; width: min(440px, 100%); border-left: 1px solid var(--ob-line);
  transform: translate3d(100%, 0, 0); transition: transform .45s cubic-bezier(.32, .72, 0, 1);
}
.ob-layer.is-open .ob-panel--wish { transform: none; }
/* porovnání a rychlý náhled – okno uprostřed */
.ob-panel--cmp, .ob-panel--qv {
  top: 50%; left: 50%; max-height: calc(100vh - 48px); border-radius: var(--ob-r); overflow: hidden;
  opacity: 0; transform: translate(-50%, -48%) scale(.97); transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}
.ob-panel--cmp { width: min(1180px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px)); }
.ob-panel--qv { width: min(960px, calc(100vw - 48px)); }
.ob-layer.is-open .ob-panel--cmp, .ob-layer.is-open .ob-panel--qv { opacity: 1; transform: translate(-50%, -50%); }

.ob-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--ob-line); }
.ob-layer .ob-title {
  display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; min-width: 0; font-family: var(--ob-font) !important; font-size: 19px !important;
  font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ob-ink); text-transform: none;
}
.ob-title .ob-ico { width: 21px; height: 21px; }
.ob-badge {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 7px;
  background: var(--ob-sunk); color: var(--ob-2); font: 700 12px/1 var(--ob-text); font-variant-numeric: tabular-nums;
}
.ob-badge[hidden] { display: none; }
.ob-x {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin: 0; padding: 0;
  border: 0; border-radius: var(--ob-r-md); background: transparent; color: var(--ob-ink); cursor: pointer; transition: background-color .2s;
}
.ob-x:hover { background: var(--ob-sunk); }
.ob-x .ob-ico { width: 21px; height: 21px; }
.ob-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 24px 24px; scrollbar-width: thin; }
.ob-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ob-line); }
.ob-foot[hidden] { display: none; }
.ob-msg {
  position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px;
  border-radius: var(--ob-r-sm); background: var(--ob-ok-bg); color: var(--ob-ok); font: 600 13px/1.4 var(--ob-text);
  box-shadow: 0 10px 24px -12px rgba(11, 13, 16, .35);
}
.ob-msg.is-bad { background: var(--ob-bad-bg); color: var(--ob-bad); }
.ob-msg[hidden] { display: none; }
.ob-msg .ob-ico { width: 16px; height: 16px; }
.ob-tiny { font-size: 12.5px; line-height: 1.45; color: var(--ob-3); }
.ob-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* tlačítka */
.ob-btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px; font: 700 14.5px/1.2 var(--ob-text); text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .12s;
}
:is(.ob-layer, .ob-dock, .ob-toasts) .ob-btn, :is(.ob-layer, .ob-dock, .ob-toasts) .ob-btn:hover, :is(.ob-layer, .ob-dock, .ob-toasts) .ob-btn:focus { text-decoration: none; }
.ob-btn .ob-ico { width: 17px; height: 17px; }
.ob-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.ob-btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.ob-btn--cta { background: var(--ob-cta); color: #fff !important; box-shadow: 0 12px 24px -14px rgba(0, 118, 225, .9); }
.ob-btn--cta:hover { background: var(--ob-cta-h); }
.ob-btn--line { background: #fff; border-color: var(--ob-line-2); color: var(--ob-ink) !important; }
.ob-btn--line:hover { background: var(--ob-sunk); border-color: var(--ob-3); }
.ob-btn--ghost { background: transparent; color: var(--ob-2) !important; }
.ob-btn--ghost:hover { background: var(--ob-sunk); color: var(--ob-ink) !important; }
.ob-btn--accent { background: #fff; color: var(--ob-ink) !important; }
.ob-btn--accent:hover { background: #f0f0ee; }
.ob-btn--sq { width: 46px; padding: 0; background: var(--ob-sunk); color: var(--ob-2) !important; }
.ob-btn--sq:hover { background: #e6e6e3; color: var(--ob-ink) !important; }
.ob-btn--sq.is-on { background: var(--ob-ink); color: #fff !important; }
.ob-btn--sq.is-on[data-ob-qwish] { color: var(--ob-heart) !important; }
.ob-btn--sq.is-on[data-ob-qwish] .ob-ico { fill: currentColor; }
.ob-btn:active { transform: translateY(1px) scale(.99); }
.ob-btn[disabled] { opacity: .5; cursor: default; box-shadow: none; transform: none; }
.ob-btn.is-busy { opacity: .6; cursor: progress; }
:is(.ob-layer, .ob-dock, .ob-toasts) :is(a, button, input):focus-visible { outline: 3px solid var(--ob-focus); outline-offset: 2px; }
.ob-av { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; line-height: 1.3; color: var(--ob-3); }
.ob-av::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ob-av--ok { color: var(--ob-ok); }
.ob-av--no { color: var(--ob-bad); }
.ob-gone { font-size: 12.5px; font-weight: 600; color: var(--ob-bad); }
.ob-dash { color: var(--ob-line-2); }

/* prázdný stav a načítání */
.ob-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 8px 24px; text-align: center; }
.ob-empty-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ob-sunk); color: var(--ob-3); }
.ob-empty-ico .ob-ico { width: 32px; height: 32px; }
.ob-empty-t { font: 600 22px/1.2 var(--ob-font); letter-spacing: -.015em; color: var(--ob-ink); }
.ob-empty-x { max-width: 36ch; font-size: 14px; color: var(--ob-2); }
.ob-empty .ob-btn { margin-top: 8px; }
@keyframes ob-sheen { to { background-position: -200% 0; } }
.ob-wait, .ob-cmp-load i, .ob-qv-load i {
  display: block; border-radius: var(--ob-r-sm); background: linear-gradient(90deg, var(--ob-sunk) 25%, #f7f7f5 50%, var(--ob-sunk) 75%);
  background-size: 200% 100%; animation: ob-sheen 1.3s linear infinite;
}
.ob-wait { width: 120px; height: 38px; border-radius: 999px; }

/* ---------- Oblíbené ---------- */
.ob-list { display: grid; }
.ob-item { position: relative; display: flex; gap: 12px; padding: 16px 36px 16px 0; border-bottom: 1px solid var(--ob-line); }
.ob-item:last-child { border-bottom: 0; }
.ob-item.is-gone { opacity: .7; }
.ob-item-img {
  flex: none; display: block; width: 72px; height: 72px; padding: 4px; overflow: hidden; background: #fff;
  border: 1px solid var(--ob-line); border-radius: var(--ob-r-sm);
}
.ob-item-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ob-item-b { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; align-content: start; }
.ob-item-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 700 14px/1.35 var(--ob-text); color: var(--ob-ink); }
.ob-layer .ob-item-name:hover { color: var(--ob-ink); text-decoration: underline; }
.ob-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.ob-price { font: 700 15px/1.3 var(--ob-text); color: var(--ob-ink); font-variant-numeric: tabular-nums; }
.ob-item-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ob-item-x {
  -webkit-appearance: none; appearance: none; position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ob-3); cursor: pointer; transition: background-color .15s, color .15s;
}
.ob-item-x:hover { background: var(--ob-sunk); color: var(--ob-bad); }
.ob-item-x .ob-ico { width: 17px; height: 17px; }

/* ---------- Porovnání ---------- */
.ob-bar-tools { display: flex; align-items: center; gap: 8px; }
.ob-bar-tools[hidden] { display: none; }
.ob-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 13px/1.2 var(--ob-text); color: var(--ob-2); cursor: pointer; user-select: none; }
.ob-switch input {                                 /* šablona zaškrtávací políčka schovává (display: none) */
  -webkit-appearance: none; appearance: none; position: relative; flex: none; display: inline-block !important; width: 36px; height: 20px; margin: 0;
  border: 0; border-radius: 999px; background: var(--ob-line-2); opacity: 1; visibility: visible; cursor: pointer; transition: background-color .2s;
}
.ob-switch input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(11, 13, 16, .3); transition: transform .2s;
}
.ob-switch input:checked { background: var(--ob-ink); }
.ob-switch input:checked::after { transform: translateX(16px); }
.ob-cmp-body { padding: 0; }
.ob-cmp-load { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 24px; }
.ob-cmp-load i { height: 320px; }
.ob-cmp-scroll { overflow: auto; max-height: 100%; }
.ob-cmp { width: 100%; min-width: calc(170px + var(--ob-cols) * 210px); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; }
.ob-cmp th, .ob-cmp td { padding: 12px 16px; border-bottom: 1px solid var(--ob-line); text-align: left; vertical-align: top; color: var(--ob-ink); font-weight: 400; overflow-wrap: anywhere; }
.ob-cmp thead th { position: sticky; top: 0; z-index: 2; background: #fff; vertical-align: top; }
.ob-cmp tbody th { position: sticky; left: 0; z-index: 1; width: 170px; background: var(--ob-soft); font-weight: 600; color: var(--ob-2); }
.ob-cmp .ob-cmp-corner { left: 0; z-index: 3; width: 170px; background: #fff; }
.ob-cmp-col { position: relative; }
.ob-cmp-col > * + * { margin-top: 10px; }
.ob-cmp-img { display: block; height: 130px; padding: 8px; background: #fff; border: 1px solid var(--ob-line); border-radius: var(--ob-r-md); }
.ob-cmp-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ob-cmp-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font: 700 14px/1.35 var(--ob-text); color: var(--ob-ink); }
.ob-layer .ob-cmp-name:hover { color: var(--ob-ink); text-decoration: underline; }
.ob-cmp-x {
  -webkit-appearance: none; appearance: none; position: absolute; top: 18px; right: 22px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0;
  border: 1px solid var(--ob-line); border-radius: 50%; background: #fff; color: var(--ob-2); cursor: pointer;
}
.ob-cmp-x:hover { color: var(--ob-bad); border-color: var(--ob-line-2); }
.ob-cmp-x .ob-ico { width: 15px; height: 15px; }
.ob-cmp-price { font: 700 16px/1.2 var(--ob-font); letter-spacing: -.01em; }
.ob-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--ob-ok-bg); color: var(--ob-ok); font-size: 11.5px; font-weight: 700; }
.ob-cmp tr.is-diff td { font-weight: 600; }
.ob-layer--cmp.is-diff .ob-cmp tr.is-same { display: none; }
.ob-cmp-note { padding: 12px 24px 20px; }

/* ---------- Rychlý náhled ---------- */
.ob-qv-x { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px -6px rgba(11, 13, 16, .3); }
.ob-qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; }
.ob-qv-load { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
.ob-qv-load > i { aspect-ratio: 1; }
.ob-qv-load span { display: grid; gap: 14px; align-content: start; }
.ob-qv-load span i { height: 18px; }
.ob-qv-load span i:nth-child(2) { height: 40px; width: 85%; }
.ob-qv-load span i:nth-child(4) { height: 54px; width: 60%; border-radius: 999px; margin-top: 24px; }
.ob-qv-media { display: grid; gap: 10px; align-content: start; padding: 20px; background: var(--ob-soft); }
.ob-qv-stage { position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--ob-r-md); overflow: hidden; }
.ob-qv-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; padding: 20px; object-fit: contain; }   /* rozměr z rámečku → fotka na výšku ani na šířku se neořízne */
.ob-qv-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ob-qv-thumbs::-webkit-scrollbar { display: none; }
.ob-qv-th {
  -webkit-appearance: none; appearance: none; flex: 0 0 60px; width: 60px; height: 60px; margin: 0; padding: 4px; overflow: hidden;
  border: 2px solid transparent; border-radius: var(--ob-r-sm); background: #fff; cursor: pointer; transition: border-color .15s;
}
.ob-qv-th img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ob-qv-th.is-on { border-color: var(--ob-ink); }
.ob-qv-info { display: grid; gap: 14px; align-content: start; padding: 32px 32px 28px; }
.ob-layer .ob-qv-brand { justify-self: start; font: 700 12px/1.2 var(--ob-text); letter-spacing: .09em; text-transform: uppercase; color: var(--ob-3); }
.ob-layer .ob-qv-brand:hover { color: var(--ob-ink); text-decoration: underline; }
.ob-layer .ob-qv-name {
  margin: 0; padding-right: 36px; font-family: var(--ob-font) !important; font-size: 26px !important; font-weight: 600; line-height: 1.15;
  letter-spacing: -.02em; color: var(--ob-ink); text-transform: none;
}
.ob-qv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ob-qv-del { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ob-2); }
.ob-qv-del .ob-ico { width: 16px; height: 16px; color: var(--ob-3); }
.ob-qv-short { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--ob-2); white-space: pre-line; }
.ob-qv-params { width: 100%; border-collapse: collapse; font-size: 13px; }
.ob-qv-params th, .ob-qv-params td { padding: 8px 0; border-top: 1px solid var(--ob-line); text-align: left; vertical-align: top; }
.ob-qv-params th { width: 44%; padding-right: 12px; font-weight: 400; color: var(--ob-3); }
.ob-qv-params td { font-weight: 600; color: var(--ob-ink); overflow-wrap: anywhere; }
.ob-qv-buy { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ob-line); }
.ob-qv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ob-qv-pr { font: 700 30px/1.1 var(--ob-font); letter-spacing: -.02em; color: var(--ob-ink); font-variant-numeric: tabular-nums; }
.ob-qv-std { font-size: 15px; color: var(--ob-3); }
.ob-qv-vars { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ob-qv-vars legend { margin-bottom: 6px; font: 700 12px/1.2 var(--ob-text); letter-spacing: .09em; text-transform: uppercase; color: var(--ob-3); }
.ob-var {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r n p" "r a a"; align-items: center; gap: 2px 10px; margin: 0; padding: 10px 14px;
  border: 1.5px solid var(--ob-line); border-radius: var(--ob-r-md); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.ob-var:hover { border-color: var(--ob-3); }
.ob-var:has(input:checked) { border-color: var(--ob-ink); background: var(--ob-soft); }
.ob-var.is-off { opacity: .55; cursor: default; }
.ob-var input {                                    /* šablona přepínače schovává a ruší jim vzhled → vlastní kolečko */
  grid-area: r; -webkit-appearance: none; appearance: none; display: block !important; position: static; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--ob-line-2); border-radius: 50%; background: #fff; opacity: 1; visibility: visible; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ob-var input:checked { border-color: var(--ob-ink); background: var(--ob-ink); box-shadow: inset 0 0 0 4px #fff; }
.ob-var input:disabled { background: var(--ob-sunk); cursor: default; }
.ob-var-n { grid-area: n; font-weight: 700; color: var(--ob-ink); }
.ob-var-p { grid-area: p; font-weight: 700; color: var(--ob-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ob-var .ob-av { grid-area: a; }
.ob-qv-vars-t { font: 700 12px/1.2 var(--ob-text); letter-spacing: .09em; text-transform: uppercase; color: var(--ob-3); }
.ob-var--info {                                      /* jen přehled (výběr na detailu) – jeden řádek na variantu */
  grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n a p"; gap: 4px 14px; padding: 9px 14px;
  border-width: 1px; border-radius: var(--ob-r-sm); cursor: default;
}
.ob-var--info:hover { border-color: var(--ob-line); }
.ob-qv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ob-qv-cta:has(.ob-btn) {                            /* počet a „Přidat do košíku“ zůstanou dole vidět i u dlouhého výběru variant */
  position: sticky; bottom: 0; z-index: 2; margin: 0 -32px; padding: 12px 32px; background: #fff;
  box-shadow: 0 -12px 20px -16px rgba(11, 13, 16, .35);
}
.ob-qv-cta:empty { display: none; }
.ob-qv-cta .ob-btn--lg { flex: 1 1 auto; padding: 0 18px; }   /* vedle počtu, když se vejde (i v úzkém sloupci na tabletu) */
.ob-qv-cta .ob-tiny { flex: 1 1 100%; }
.ob-qv-no { font-size: 14px; font-weight: 600; color: var(--ob-2); }
.ob-qv-msg { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--ob-r-sm); background: var(--ob-bad-bg); color: var(--ob-bad); font: 600 13px/1.4 var(--ob-text); }
.ob-qv-msg[hidden] { display: none; }
.ob-qv-msg .ob-ico { width: 16px; height: 16px; }
.ob-qv-links { display: flex; gap: 8px; }
.ob-qv-links .ob-btn--line { flex: 1 1 auto; }
.ob-step { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--ob-line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.ob-step-b {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 40px; height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ob-2); cursor: pointer;
}
.ob-step-b:hover { background: var(--ob-sunk); color: var(--ob-ink); }
.ob-step-b[disabled] { opacity: .3; cursor: default; background: transparent; }
.ob-step-b .ob-ico { width: 16px; height: 16px; }
.ob-step-v { min-width: 34px; text-align: center; font: 700 15px/1 var(--ob-text); color: var(--ob-ink); font-variant-numeric: tabular-nums; }
.ob-qv-err { grid-column: 1 / -1; }

/* ==========================================================================================================
   D) LIŠTA POROVNÁNÍ DOLE A HLÁŠKY
   ========================================================================================================== */
.ob-dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 2147483000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 12px; border-radius: 999px; background: #14171b; color: #f4f5f1; font: 400 14px/1.4 var(--ob-text);
  box-shadow: 0 18px 40px -12px rgba(11, 13, 16, .45); opacity: 0; visibility: hidden; transform: translate(-50%, 140%);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .25s, visibility 0s .4s;
}
.ob-dock.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .25s, visibility 0s; }
html:has(.pd-bar.is-on) .ob-dock { bottom: 88px; }           /* nad lištou „Do košíku“ na detailu produktu */
html.ob-lock .ob-dock, html.ks-lock .ob-dock { visibility: hidden; opacity: 0; }
.ob-dock-thumbs { display: flex; flex: none; }
.ob-dock-thumbs > * { display: block; width: 40px; height: 40px; margin-left: -10px; padding: 3px; object-fit: contain; background: #fff; border: 2px solid #14171b; border-radius: var(--ob-r-sm); }
.ob-dock-thumbs > :first-child { margin-left: 0; }
.ob-dock-t { display: grid; min-width: 0; margin: 0; }
.ob-dock-t b { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.ob-dock-t span { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-dock .ob-btn[disabled] { opacity: .45; }
.ob-dock-x {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #f4f5f1; cursor: pointer; opacity: .75;
}
.ob-dock-x:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.ob-dock-x .ob-ico { width: 17px; height: 17px; }
.ob-dock :is(a, button):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.ob-toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483600; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
html:has(.ob-dock.is-on) .ob-toasts { bottom: 92px; }
html:has(.pd-bar.is-on) .ob-toasts { bottom: 88px; }
html:has(.pd-bar.is-on):has(.ob-dock.is-on) .ob-toasts { bottom: 160px; }
.ob-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: var(--ob-r-md);
  background: #14171b; color: #f4f5f1; font: 400 13px/1.4 var(--ob-text); box-shadow: 0 18px 40px -12px rgba(11, 13, 16, .45);
  opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}
.ob-toast.is-in { opacity: 1; transform: none; }
.ob-toast-img { flex: none; width: 40px; height: 40px; padding: 3px; object-fit: contain; background: #fff; border-radius: 8px; }
.ob-toast-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #7ee2a0; }
.ob-toast.is-bad .ob-toast-ico { color: #ff8a8c; }
.ob-toast-ico .ob-ico { width: 18px; height: 18px; }
.ob-toast-b { flex: 1 1 auto; min-width: 0; }
.ob-toast-t { font-weight: 700; font-size: 13.5px; }
.ob-toast-d { opacity: .7; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-toast-a {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
  color: #fff; font: 700 13px/1 var(--ob-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ob-toast-a:hover { background: rgba(255, 255, 255, .1); }
.ob-toast-x {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin: 0; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #f4f5f1; opacity: .6; cursor: pointer;
}
.ob-toast-x:hover { opacity: 1; }
.ob-toast-x .ob-ico { width: 16px; height: 16px; }
.ob-toasts :is(a, button):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ==========================================================================================================
   E) TABLET A MOBIL
   ========================================================================================================== */
@media (max-width: 767px) {
  .ob-panel--qv, .ob-panel--cmp {                    /* náhled i porovnání vyjedou zdola přes celou šířku */
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100% - 24px); border-radius: var(--ob-r) var(--ob-r) 0 0;
    opacity: 1; transform: translate3d(0, 100%, 0); transition: transform .42s cubic-bezier(.32, .72, 0, 1);
  }
  .ob-panel--cmp { height: calc(100% - 24px); }
  .ob-layer.is-open .ob-panel--qv, .ob-layer.is-open .ob-panel--cmp { transform: none; }
  .ob-qv { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 24px); padding-bottom: env(safe-area-inset-bottom); }
  .ob-qv-load { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .ob-qv-media { padding: 12px 12px 0; background: #fff; }
  .ob-qv-stage { aspect-ratio: 4 / 3; background: var(--ob-soft); }
  .ob-qv-stage img { padding: 12px; mix-blend-mode: multiply; }   /* bílé pozadí fotky splyne se šedou */
  .ob-qv-info { gap: 12px; padding: 16px 16px 24px; }
  .ob-qv-buy { order: 4; padding-top: 12px; }        /* cena a nákup hned pod názvem, popis a parametry pod nimi */
  .ob-qv-cta:has(.ob-btn) { margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .ob-qv-short { order: 5; }
  .ob-qv-params { order: 6; }
  .ob-layer .ob-qv-name { font-size: 21px !important; }
  .ob-qv-pr { font-size: 26px; }
  .ob-bar { padding: 10px 8px 10px 16px; }
  .ob-bar-tools .ob-btn span { display: none; }
  .ob-body { padding: 4px 16px 20px; }
  .ob-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .ob-msg { left: 16px; right: 16px; }
  .ob-cmp { min-width: calc(120px + var(--ob-cols) * 170px); font-size: 13px; }
  .ob-cmp th, .ob-cmp td { padding: 10px 12px; }
  .ob-cmp tbody th, .ob-cmp .ob-cmp-corner { width: 120px; }
  .ob-cmp-img { height: 100px; }
  .ob-cmp-x { top: 14px; right: 16px; }
  .ob-dock { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; max-width: none; padding: 8px 8px 8px 10px; border-radius: var(--ob-r-md); transform: translateY(140%); }
  .ob-dock.is-on { transform: none; }
  .ob-dock-thumbs > * { width: 34px; height: 34px; }
  .ob-dock-t { flex: 1 1 auto; }
  html:has(.pd-bar.is-on) .ob-dock { bottom: 84px; }
  .ob-toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
  html:has(.ob-dock.is-on) .ob-toasts { bottom: 80px; }
}
@media (max-width: 479px) {
  .ob-panel--wish { border-left: 0; }
  .ob-item-img { width: 64px; height: 64px; }
  .ob-dock-thumbs > :nth-child(n+3) { display: none; }
  .ob-t-long { display: none; }
  .ob-switch { gap: 6px; font-size: 12.5px; }
  .ob-dock-t b { font-size: 12.5px; line-height: 1.3; white-space: normal; }
  .ob-dock-t span { display: none; }
  .ob-dock .ob-btn--sm { padding: 0 12px; }
}

/* ---------- Méně pohybu, tisk ---------- */
@media (prefers-reduced-motion: reduce) {
  .ob-tool, .ob-scrim, .ob-panel, .ob-dock, .ob-toast, .ob-wait, .ob-cmp-load i, .ob-qv-load i { transition: none !important; animation: none !important; }
}
@media print {
  .ob-tools, .ob-head, .ob-layer, .ob-dock, .ob-toasts { display: none !important; }
}
