/* LUMENORA v26 – konfigurátor na titulní straně (a v kategoriích): 2 sloupce, náhled vždy viditelný
   PC ≥ 992 px: vlevo sticky 3D náhled, vpravo nastavení, pod nimi cena + „Do košíku“
   < 992 px: 1 sloupec, náhled připnutý nahoře (kompaktní), pod ním nastavení, dole cena + „Do košíku“ */

/* blok na úvodu vystoupí z úzkého (800 px) sloupce uvítacího textu na šířku ostatních sekcí */
.in-index #lumenora-konfigurator{max-width:none!important;width:auto!important}
.in-index #lumenora-konfigurator .pr-embed{width:min(1240px,calc(100vw - 32px))!important;max-width:none!important;margin-left:calc(50% - min(620px,50vw - 16px))!important;margin-right:0!important;box-sizing:border-box}

/* Shoptet dává všem div v uvítacím textu max-width 800 px – uvnitř konfigurátoru zrušit */
.in-index .pr-embed .pr-embed__head,.in-index .pr-embed .pr-embed__grid,.in-index .pr-embed .pr-embed__cfg,.in-index .pr-embed .pr-cfg__panel,.in-index .pr-embed .pr-embed__stage{max-width:none!important}
.in-index .pr-embed .pr-embed__grid{margin-left:0!important;margin-right:0!important;width:100%!important}

/* mřížka: panel s náhledem „rozpustíme“, aby náhled i cena byly samostatné položky */
.pr-embed .pr-embed__grid{display:grid!important;grid-template-columns:minmax(0,47fr) minmax(0,53fr)!important;grid-template-rows:auto auto;column-gap:28px;row-gap:16px;align-items:start}
.pr-embed .pr-embed__side{display:contents!important}
.pr-embed .pr-embed__stage{grid-column:1;grid-row:1 / span 2;position:sticky!important;top:20px;align-self:start;height:min(620px,calc(100vh - 40px));z-index:2}
.pr-embed .pr-embed__stage .pr-cfg__prev{aspect-ratio:auto!important;height:100%!important;width:100%!important}
.pr-embed .pr-embed__grid>.pr-embed__cfg{grid-column:2;grid-row:1;width:100%!important}
.pr-embed .pr-embed__side>.pr-cfg__sum{grid-column:2;grid-row:2;width:100%!important;max-width:none!important;margin:0!important;position:static!important}

/* zrušit staré jednosloupcové pravidlo z v23 (container query) pro širší rozložení */
@container (max-width:900px){.pr-embed .pr-embed__grid{grid-template-columns:minmax(0,47fr) minmax(0,53fr)!important}}

@media (max-width:991px){
  .in-index #lumenora-konfigurator .pr-embed{width:auto!important;margin-left:0!important;margin-right:0!important}
  /* flex sloupec: sticky náhled platí přes celou výšku konfigurátoru */
  .pr-embed .pr-embed__grid{display:flex!important;flex-direction:column;gap:14px}
  .pr-embed .pr-embed__stage{order:0;position:sticky!important;top:var(--pr-sticky-top,8px);height:clamp(190px,36vh,320px);border-radius:20px;box-shadow:0 8px 24px rgba(47,38,34,.12);background:var(--pr-card,#fffaf2)}
  .pr-embed .pr-embed__grid>.pr-embed__cfg{order:1}
  .pr-embed .pr-embed__side>.pr-cfg__sum{order:2}
  .pr-embed .pr-3d__hint{display:none}
  .pr-embed .pr-3d__bar{gap:6px!important;right:8px!important;bottom:8px!important;left:auto!important}
  .pr-embed .pr-3d__bar button{font-size:11px!important;padding:5px 10px!important;min-height:0!important;line-height:1.2!important;white-space:nowrap}
}
/* mobilní Shoptet má připnutou horní lištu – náhled pod ni */
.mobile-header-version-1 .pr-embed{--pr-sticky-top:64px}
@media (min-width:992px){.mobile-header-version-1 .pr-embed{--pr-sticky-top:20px}}
