/*ISPRAVAKA za peci*/
.product-spec ul{
  border-bottom: 1px solid #ccc;
  padding-bottom: 2vh;
}

.product-spec{
  padding-right: 0;
}

/* Opcije */
.fp-options { display: flex; flex-direction: column; margin-top: 20px; width: 70%; gap: 20px; padding-bottom: 3vh; }

.fp-option-group{display: grid;
    gap: 3%;
    align-items: center;
    grid-template-columns: 40% 57%;
    width: 100%;
  }
.fp-option-group h3 { font-size: larger; margin-bottom:6px; }

.fp-swatches { display:flex; gap:10px; border: #ccc solid 1px; border-radius: 150px; padding: 26px 90px 16px 30px;  }
.fp-swatch:hover{border-color: #BE272A; width: 60px; height: 60px; transition: 0.2s;}
.fp-swatch {
  width:55px; height:55px; border-radius:50%;
  border:2px solid #ccc; cursor:pointer;
  display: grid;
  transition: .4s;
}

.fp-swatch p{
  text-align: center;
}
.fp-swatches[data-option-group="innerColor"] #crna { background:#000; }
.fp-swatches[data-option-group="innerColor"] #bela { background:#eee; }

.fp-swatches[data-option-group="handle"] #metal { background:#666; } /* metal */
.fp-swatches[data-option-group="handle"] #drvo { background:#8b5a2b; } /* drvo */

.fp-swatch.is-active { border-color:#3b3b3b; }

.fp-select {
  width:100%;
  padding:6px 10px;
  border:1px solid #F3F3F3;
  border-radius:50px;
  padding: 9px 15px;
  background-color: #F3F3F3;
}

/* Popup */
/* ==========================
   2. FIREPLACE CONFIGURATOR
   ========================== */

/* 2A. MAIN IMAGE / POPUP */

/* Modal Container (Overlay) */
.fp-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Over everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85); /* Slightly darker overlay for better focus */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  overflow: hidden; /* Prevent scrolling on overlay */
}

/* Modal Open State */
.fp-modal.open {
  display: flex; /* Shown as flex when open */
  opacity: 1;
}

/* Modal Content (Image Wrapper) */
.fp-modal-inner {
  position: relative;
  background-color: white;
  padding: 15px; /* Comfortable padding around the image for the "frame" effect */
  border-radius: 12px; /* Nicer rounded corners */
  box-shadow: 0 10px 30px rgba(0,0,0,0.7); /* Deep, soft shadow for a premium feel */
  
  /* Responsive constraints to keep image "taman velicine" */
  max-width: 90%; /* Default responsive limit, percent of viewport width on small screens */
  max-height: 90vh; /* Viewport height limit, percent of viewport height */
  
  /* Ideal size constraint for larger screens to prevent it getting too big */
  width: auto; /* Let content (image) define width within constraints */
  max-width: 600px; /* Preferred maximum width for the image popup on desktop */
  
  overflow: hidden; /* Prevent scrolling within modal */
  transition: transform 0.3s ease-out;
  transform: scale(0.95); /* Start slightly smaller for a smoother scale-in effect */
}

/* Modal Open Scale-in Effect */
.fp-modal.open .fp-modal-inner {
  transform: scale(1); /* Full scale when open */
}

/* Modal Image */
.fp-modal-inner img {
  display: block;
  width: auto; /* Let image define width within container max-width and aspect ratio */
  height: auto; /* Maintain aspect ratio */
  max-width: 100%; /* Fill container width without overflowing */
  max-height: calc(90vh - 30px); /* Fill container height, subtracting vertical padding, and respect viewport height constraint */
  
  object-fit: contain; /* Important property to ensure the entire image is visible and scaled proportionally without cropping or distortion */
  border-radius: 8px; /* Matching rounded corners on the image itself */
  cursor: zoom-out; /* Visual hint for overlay click closing functionality */
}


/*VIDEO GLAVNI*/

#mobile-video {
  display: none;
}

#glavna-slika {
  display: none;
}

/* POLA - POLA (slika desno) */
.pola-pola{
  display: grid;
  grid-template-columns: 35% 60%;
  gap: 5%;
  margin-top: 10vh;
  align-items: center;
}

.pola h2{
  padding-left: 5vw;
  font-weight: 400;
  font-size: 1.7vw;
}

.pola-1{
  display: flex;
  margin-top: 5vh;
  padding-left: 5vw;
  gap: 3vw;
}

.pola-1 img{
  width: 4vw;
}

.pola-2 p{
  font-size: larger;
}

.pola-2 ul{
  padding-top: 2vh;
}

.pola-2 ul li{
  font-size: larger;
}

#pola-slika img{
  width: 100%;
}

#pola-slika-mobile{
  display: none;
}




/* BLACK SECTION */
.black-section{
  margin-top: 10vh;
  background-color: #000;
  color: #fff;
}

.left-img{
  display: grid;
  align-items: center;
  padding-left: 5vw;
  padding-top: 10vh;
  grid-template-columns: 44% 36%;
  gap: 16%;
  margin-top: 10vh;
}

.left-img img{
  width: 100%;
}

#left-img-mobile{
  display: none;
}

.left-img-text-right{

}

.text-plus{
  display: flex;
  gap:0px;
  padding-right: 5vw;
}

.left-img-text-right h2{
  font-size: 2vw;
  color: #fff;
  font-weight: 400;
  padding-right: 3vw;
}

.left-img-text-right p{
  padding-top: 1vh;
  color: #fff;
  font-size: larger;
}



/*LINIJA*/

.prednosti-linija{
  display: grid;
  grid-template-columns: 30% 60%;
  gap: 10%;
  align-items: center;
  margin-top: 10vh;
  padding-left: 5vw;
}

.prednosti-linija h2{
  font-size: 6vw;
  font-weight: lighter;
  padding-right: 3vw;
}

.right-img{
  display: grid;
  align-items: center;
  grid-template-columns: 40% 40%;
  gap: 5%;
  padding-left: 5vw;
  padding-right: 5vw;
  justify-content: space-between;
  margin-top: 10vh;
}

.right-img img{
  width: 100%;
}

#right-img-mobile{
  display: none;
}

.right-img-text-left{
  padding-top: 1vh;
  color: #fff;
  font-size: larger;
  width: 85%;
}

.right-img-text-left h3{
  font-size: 2.1vw;
  color: #fff;
  font-weight: 300;
  padding-right: 3vw;
}

.right-img-text-left p{
  padding-top: 1vh;
}


/* VIDEO SECTION */

.center-video{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 10vh;
  margin-bottom: 10vh;
}

.center-video h2{
  font-size: 4.2vw;
  font-weight: 100;
  letter-spacing: 2px;
  line-height: 1.1em;
}

.snimak video{
  padding-top: 10vh;
  width: 90%;
}

#snimak-mobile {
  display: none;
}


/*TABELA - TEHNICKI PODACI*/

    .tehnical-data h2{
      margin-top: 10vh;
      padding-left: 5vw;
    }


    .tabela {
        font-family: inherit;
        width: 100%;
        margin-top: 5vh;
    }

    .tabela-header {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        font-weight: 600;
        margin-bottom: 8px;
        padding: 0 5vw;
    }

    .tabela-header div {
        font-size: 17px;
    }

    .tabela-line {
        border: none;
        border-top: 1px solid #ddd;
        margin-bottom: 25px;
    }

    .tabela-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 0 5vw;
    }

    .tabela .col{
      padding-left: 0;
    }

    .col p {
        margin: 0 0 16px 0;
        font-size: 1.2em;
    }

    .col strong {
        font-weight: 500;
    }



    /* DIMENZIJE */

    .dimenzije-slike{
      margin-top: 10vh;
    }

    .dimenzije-slike h2{
      font-size: 2.6em;
      padding-left: 5vw;
    }

    .dimenzije-slike mark{
      background-color: transparent;
      font-size: 0.6em;
      font-weight: 300;
    }


    .dimenzije-img{
      display: flex;
      justify-content: center;
      padding: 0 5vw;
    }

    .dimenzije-img img{
      width: 80%;
    }

    #dimenzije-img-mobile{
      display: none;
    }



    /* DOKUMENTACIJA */

    .dokumentacija{
      margin-top: 10vh;
    }

    .dokumentacija h2{
      padding-left: 5vw;
      font-size: 3.6em;
      font-weight: bold;
    }

    .tabela-dokumenti {
    width: 100%;
    margin-top: 40px;
    font-family: inherit;
  }

  .tabela-dokumenti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 80px;
    row-gap: 60px;
    padding: 0 5vw;
  }

  .dok-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: 10vh;
    justify-content: space-between;
  }

  .dok-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 18px 0;
  }

  .btn-preuzmi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .btn-preuzmi:hover {
    background: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }

  /* (opciono) responsive za manje ekrane */
  @media (max-width: 992px) {
    .tabela-dokumenti-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .tabela-dokumenti-grid {
      grid-template-columns: 1fr;
    }
  }



  /*TABELA MOBILNI */

  /* ******************************************************
   MOBILNI DIZAJN – TEHNIČKI PODACI
   Ultra-optimizovan UX/UI
   ****************************************************** */
@media (max-width: 768px) {

  #desktop-glavana{
    display: none;
  }

    /* Sakrij desktop raspored */
    .tabela-header,
    .tabela-line {
        display: none;
    }

    /* Tabela postaje vertikalna lista */
    .tabela-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 0 5vw;
    }

    /* Svaka kolona postaje “kartica” */
    .tabela .col {
        padding: 22px 0;
        border-top: 1px solid #eee;
    }

    .tabela .col:last-child {
        border-bottom: 1px solid #eee;
    }

    /* Naslovi sekcija – UX: jasno odvojeno, čitljivo */
    .tabela .col::before {
        display: block;
        font-size: 1.1em;
        font-weight: 700;
        margin-bottom: 14px;
        color: #000;
    }

    .tabela .col:nth-child(1)::before {
        content: "+ Generalni podaci";
    }

    .tabela .col:nth-child(2)::before {
        content: "+ Energetska efikasnost";
    }

    .tabela .col:nth-child(3)::before {
        content: "+ Sertifikati / Usklađenost";
    }

    .tabela .col:nth-child(4)::before {
        content: "+ Dodatne informacije";
    }

    /* Tekst unutar stavki */
    .tabela .col p {
        margin: 0 0 10px 0;
        font-size: 0.95em;
        line-height: 1.45;
    }

    .tabela .col strong {
        display: block;          /* UX: čitljivije */
        margin-bottom: 2px;
        font-weight: 600;
    }

    #mobile-video{
      width: 100%;
    }
}



/* RESPONSIVE */
@media (max-width: 768px) {
  #desktop-video {
    display: none;
  }

  .video video{
    height: fit-content;
  }

  #mobile-video {
    display: block;
    width: 100vw;
  }

  #glavna-slika {
    display: block;
    margin-top: 5vh;
  }


  .pola-pola{
    grid-template-columns: 100%;
  }

  .pola h2{
    font-size: xxx-large;
  }

  .pola-1{
    flex-direction: row-reverse;
  }

  .pola-1 img{
    height: 14vh;
    width: auto;
  }

  #pola-slika-desktop{
    display: none;
  }


#pola-slika-mobile{
  display: block;
}


  .black-section{
    margin-top: 0;
  }

  .left-img{
    grid-template-columns: 100%;
    margin-top: 0;
    padding-left: 0;
  }

  .left-img-text-right h2{
    font-size: 3em;
    padding-left: 5vw;
  }

  .left-img-text-right p{
    padding-left: 5vw;
  }
  .text-plus{
    padding-left: 5vw;
  }



  #left-img-desktop{
    display: none;
  }

  #left-img-mobile{
    display: block;
    width: 100%;
  }



  .prednosti-linija{
    grid-template-columns: 100%;
    margin-top: 20vh;
  }

  .prednosti-linija h2{
    font-size: 4em;
    font-weight: 400;
  }

  .linija{
    display: none;
  }




  .right-img{
    grid-template-columns: 100%;
    margin-top: 13vh;
    gap: 0;
  }

  .right-img img {
    width: 100%;
    padding-top: 5vh;
}

#right-img-desktop{
  display: none;
}

#right-img-mobile{
  display: block;
  width: 100%;
}

  .right-img-text-left h3{
    font-size: 1.2em;
    font-weight: 500;
  }

  .text-plus{
    padding-left: 0;
  }

  .plus{
    display: none;
  }


  #mobile{
    font-size: 1.4em;
    font-weight: 500;
  }



.center-video h2{
  font-size: 2.2em;
}

#snimak-desktop{
  display: none;
}

#snimak-mobile{
  display: block;
  width: 100%;
}


#dimenzije-img-desktop{
  display: none;
}

#dimenzije-img-mobile{
  display: block;
  width: 100%;
}



  .dokumentacija h2{
    font-size: 2em;
  }

  .dokumentacija .linija{
    display: block;
  }


  .fp-options{
    width: 100%;
    padding: 0vw;
  }

  .fp-option-group{
    padding-bottom: 3vh;
  }


  /*SPECIFIČNO ZA ROLLO1*/

  #mobilni-iskljuci{
    display: none;
  }
}


