/**
 * Detail produktu — jednotný obrazový rámec a panel parametrov na všetkých detailoch.
 * Všetky stránky s .main-product-wrapper.
 *
 * Parametre (vzájomne výlučné — rovnaký breakpoint ako Webflow max-width 991px):
 *   „Desktop tabuľka“ = .div-block-14
 *   „Mobilná tabuľka“ = .mobile-div > .div-block-14-mobile
 */

.mobile-gradient-wrapper-medii {
  max-width: 100%;
  overflow-x: hidden;
}

.mobile-gradient-wrapper-medii .main-product-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-product-wrapper .main-product-wrap {
  max-width: 100%;
  min-width: 0;
  width: min(90%, 100%);
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Dlhé hodnoty v „tabuľke“ — bez rozbitia šírky bloku (obsah sa nemení) */
.main-product-wrapper .div-block-14 .nobgpart,
.main-product-wrapper .div-block-14-mobile .nobgpart {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Vnútorný obal riadkov — vertikálne centrovanie obsahu v plnej výške panelu (bez zmeny štýlu buniek) */
.main-product-wrapper .product-detail-spec-rows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}

/* Jednotný biely rámec — rovnaký pomer strán na všetkých detailoch */
.main-product-wrapper .div-block-13 {
  width: min(32rem, 84vw) !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 0;
  min-width: 0;
  padding: clamp(0.55rem, 1.75vmin, 1.35rem) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden !important;
  position: relative !important;
}

/* Obal produktu (nie ikona gluten) — vyplní rámec, centrovanie obrázka */
.main-product-wrapper .div-block-13 > div:not(.glutenfreeicon) {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

/* Webflow .lambada mala pevné výšky a rotácie — v detaile držíme v rámci boxu */
.main-product-wrapper .div-block-13 .lambada,
.main-product-wrapper .div-block-13 .lotusbecher {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  transform: none !important;
  box-sizing: border-box;
  position: relative !important;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-product-wrapper .div-block-13 > .glutenfreeicon {
  flex: 0 0 auto !important;
  position: absolute !important;
  z-index: 3;
  pointer-events: none;
  inset: 3% auto auto 2%;
  width: auto;
  height: auto;
  overflow: visible;
  display: block !important;
}

/* Produktový obrázok (nie ikona gluten) — vypĺňa rámec; width/height 100% + contain
   vyrovná aj nízko-rozlíšené súbory (napr. lis2.webp), ktoré by pri width:auto zostali malé */
.main-product-wrapper .div-block-13 > div:not(.glutenfreeicon) img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  flex-shrink: 1;
  box-sizing: border-box;
  transform: none !important;
}

/* Vaflové misky s kakaovou polevou / čoko komplet — menší náhľad v bielom rámci */
html[data-sc-product="susse-waffelschalen-mit-schoko"] .main-product-wrapper .div-block-13 > div:not(.glutenfreeicon) img,
html[data-sc-product="susse-waffelschalen-choco-komplet"] .main-product-wrapper .div-block-13 > div:not(.glutenfreeicon) img {
  width: 60% !important;
  max-width: 60% !important;
  height: 60% !important;
  max-height: 60% !important;
  align-self: center !important;
  flex: 0 1 auto !important;
}

/* JUMBO — 1.5× oproti štandardnej veľkosti obrázka */
html[data-sc-product="jumbo"] .main-product-wrapper .div-block-13 > div:not(.glutenfreeicon) img {
  width: 150% !important;
  max-width: 150% !important;
  height: 150% !important;
  max-height: 150% !important;
  align-self: center !important;
  flex: 0 1 auto !important;
  object-position: center center !important;
}

/*
 * ≥992px: iba pravý panel (.div-block-14). Webflow už od max-width 991 skrýva desktop panel;
 * náš starší breakpoint 768 + display:flex !important spôsoboval súčasné zobrazenie oboch pri zoom-e.
 */
@media screen and (min-width: 992px) {
  .main-product-wrapper .mobile-div {
    display: none !important;
  }

  .main-product-wrapper .main-product-wrap {
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    gap: clamp(0.45rem, 1.25vw, 1rem) !important;
    column-gap: clamp(0.45rem, 1.25vw, 1rem) !important;
    row-gap: clamp(0.45rem, 1.25vw, 1rem) !important;
    padding-inline: clamp(0.25rem, 1.25vw, 0.85rem);
    justify-content: center;
    box-sizing: border-box;
  }

  /* Obrázok: prirodzená výška štvorca; riadok má tú istú výšku ako väčší z dvojice */
  .main-product-wrapper .div-block-13 {
    align-self: center;
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: min(30rem, calc(100vw - 17rem)) !important;
  }

  /* Panel: rovnaká výška ako riadok (vedľa fotky), obsah centrovaný v .product-detail-spec-rows */
  .main-product-wrapper .div-block-14,
  .main-product-wrapper .div-block-14.lotusbecher {
    display: flex !important;
    flex: 0 0 auto;
    width: min(14.5rem, 26vw) !important;
    max-width: min(14.5rem, 31vw) !important;
    box-sizing: border-box !important;
    min-height: 0;
    flex-flow: column nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-self: stretch !important;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* ≤991px: iba mobilná tabuľka pod obrázkom */
@media screen and (max-width: 991px) {
  .main-product-wrapper .div-block-14,
  .main-product-wrapper .div-block-14.lotusbecher {
    display: none !important;
  }

  .main-product-wrapper .mobile-div {
    display: flex !important;
  }
}

@media screen and (max-width: 767px) {
  .main-product-wrapper .main-product-wrap {
    width: 100%;
    justify-content: center;
    align-items: stretch;
  }

  .main-product-wrapper .div-block-13 {
    width: min(32rem, 90vw) !important;
    align-self: center;
  }

  .main-product-wrapper .div-block-14-mobile {
    box-sizing: border-box !important;
    min-height: clamp(20rem, 44vh, 27rem);
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media screen and (max-width: 479px) {
  .main-product-wrapper .div-block-13 {
    width: min(100%, 90vw) !important;
    aspect-ratio: 1 / 1;
    padding: clamp(0.5rem, 3vw, 1rem) !important;
  }
}
