
/* .............................................................................. */

/* ...... moj 2xCONTAINER pre PRODUCT_PAGE + PRODUCT_PAGE_GREY  ......  */

/* .............................................................................. */


/* === CONTAINER FOR PRODUCT PAGE === */

.container_product_page,
.container_product_page_grey {
  width: 100% !important;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.container_product_page_grey {
  background-color: rgba(0, 0, 0, 0.03);
}



/* === LAYOUT === */
.center_row_product_page,
.left_column_product_page,
.right_column_product_page {
  width: 100%;
  box-sizing: border-box;
}

.center_row_product_page {
  text-align: center;
  padding: 20px 10px;
}

.columns_wrapper_product_page {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  margin-top: 20px;
  align-items: stretch;
}

.left_column_product_page,
.right_column_product_page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.left_column_product_page img,
.right_column_product_page img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 80vh;
}

/* === TEXT ELEMENTS === */
.center_row_product_page h1,
.left_column_product_page h1,
.right_column_product_page h1 {
  font-size: 16pt;
  color: black;
  margin: 0 0 4px 0; /* hore 0, dole 5px */
}

.center_row_product_page p,
.left_column_product_page p,
.right_column_product_page p {
  font-size: 12pt;
  color: black;
  margin: 0 0 0px 0; /* tretie cislo je odsadenie nadol */
}

/* === BUTTONS === */
.button-row_product_page {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 20px;
}

.buttonred_product_page,
.buttonblack_product_page {
  padding: 12px 32px;
  font-size: 14px;
  border-radius: 32px;
  text-decoration: none !important;
  cursor: pointer;
  transition: 0.4s ease;
  display: inline-block;
  border: 2px solid transparent;
  white-space: nowrap;
}

.buttonred_product_page {
  background-color: #f80120;
  color: white !important;
}

.buttonred_product_page:hover {
  background-color: #bb0101;
}

.buttonblack_product_page {
  background-color: black;
  color: white !important;
}

.buttonblack_product_page:hover {
  background-color: gray;
  color: white !important;
}

/* === SLIDER FOR IMAGES === */
.image-slider_product_page {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.image-slider_product_page img {
  flex: 0 0 auto;
  width: calc(50% - 12px);
  scroll-snap-align: start;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
  max-height: 80vh;
}

/* SKRÝVANIE SCROLLBARU sipiek pre 1 a 2 obrázky */
.image-slider_product_page.img-count-1,
.image-slider_product_page.img-count-2 {
  overflow-x: hidden;
}


/* === Vycentrovanie vertikalne na stred OBSAH v STLPCOCH vedla seba === */

@media (min-width: 951px) {
  .columns_wrapper_product_page {
    align-items: center;
  }
}





/* === ZOBRAZENIE SLIDERU na velkej obrazovke NTB viac ako 950px, kedy dava 2 vedla seba a slider ako 2 a pol obrazka === */

@media (min-width: 951px) {
  .image-slider_product_page img:only-child {
    width: 100% !important;
    max-height: 80vh;
  }  

  .image-slider_product_page.img-count-1 img {
    width: 100% !important;
    max-height: 80vh;

  }
  .image-slider_product_page.img-count-3 img,
  .image-slider_product_page.img-count-4 img,
  .image-slider_product_page.img-count-more img,
  .image-slider_product_page[class*="img-count-"]:not(.img-count-1):not(.img-count-2) img {
    width: 66.66%;
    max-height: 50vh;
  }
}


/* === ZOBRAZENIE SLIDERU na velkej obrazovke, kedy dava 2 vedla seba a slider ako 2 a pol obrazka === */

@media (max-width: 950px) {
  .columns_wrapper_product_page {
    flex-direction: column;
  }

  .image-slider_product_page img {
    width: 100%;
  }

  .image-slider_product_page.img-count-2 img {
    width: 50%;
  }
  
  .image-slider_product_page[class*="img-count-"]:not(.img-count-1):not(.img-count-2) img {
    width: 66.66%;
    max-height: 80vh;
  }
}


/* === ZOBRAZENIE SLIDERU na TABLETE, kedy dava 2 vedla seba a slider ako 2 a pol obrazka === */

@media (max-width: 950px) and (min-width: 701px) {
  .image-slider_product_page.img-count-3 img,
  .image-slider_product_page.img-count-4 img,
  .image-slider_product_page.img-count-more img,
  .image-slider_product_page[class*="img-count-"]:not(.img-count-1):not(.img-count-2) img {
    width: calc(33.33%);
    max-height: 80vh;
  }
}


/* === ZOBRAZENIE SLIDERU na malej obrazovke, kedy dava 2 vedla seba a slider ako 1 a pol obrazka === */

@media (max-width: 700px) {
  .image-slider_product_page.img-count-1 img {
    width: 100%;
  }
  
@media (max-width: 700px) {
  .image-slider_product_page.img-count-1 img {
    width: 100%;
  }

  .image-slider_product_page.img-count-2 img {
    width: 50%;
  }

  .image-slider_product_page[class*="img-count-"]:not(.img-count-1):not(.img-count-2) img {
    width: 66.66%;
  }
}


/* === NADPISY, TEXTY, tlacidla,... na TALBETE === */

@media (max-width: 960px) and (min-width: 701px) {
  .center_row_product_page h1,
  .left_column_product_page h1,
  .right_column_product_page h1 {
    font-size: 16px !important;
  }

  .center_row_product_page p,
  .left_column_product_page p,
  .right_column_product_page p {
    font-size: 12px !important;
  }

  .buttonred_product_page,
  .buttonblack_product_page {
    font-size: 14px;
    padding: 10px 24px;
  }

  .button-row_product_page {
    justify-content: center;
    gap: 12px;
  }
}

/* === NADPISY, TEXTY, tlacidla,... na mobile pod 700px === */

@media (max-width: 700px) {
  .center_row_product_page h1,
  .left_column_product_page h1,
  .right_column_product_page h1 {
    font-size: 15px !important;
  }

  .center_row_product_page p,
  .left_column_product_page p,
  .right_column_product_page p {
    font-size: 12px !important;
  }

  .buttonred_product_page,
  .buttonblack_product_page {
    font-size: 14px;
    padding: 10px 24px;
  }

  .button-row_product_page {
    justify-content: center;
    gap: 12px;
  }
  
}


/* === VERTICAL SPACING BETWEEN ELEMENTS === */
.left_column_product_page > *:not(:last-child),
.right_column_product_page > *:not(:last-child) {
  margin-bottom: 5px;
}




/* === rusi "padding" v nadradenych elementoch shoptet temy, ale iba tam, kde je na stranke pouzity moj container.  === */
/* === Ku kodu je pouzity aj funkcny javascript, ktory moj container vyhladava === */


@media (max-width: 767px) {
  .container_product_page-no-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .container_product_page,
  .container_product_page_grey {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
