/* === layout.css === */

body.single-product #header {
    display: none !important;
}
body.single-product hr {
    display: none !important;
}

.product-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
}

#media-viewer {
    background-color: #f8f9fd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    gap: 20px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 56vw;
    height: 100vh;
}

#product-info {
    position: absolute;
    right: 0;
    top: 0;
    width: 44vw;

    /* CHANGED: desktop shell mora imati fiksnu visinu */
    min-height: 100vh;
    height: 100vh;

    /* CHANGED: shell ne scrolla, unutra scrolla wrapper */
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* NEW: pravi scroll container (desktop) */
#product-info-scroll{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    /* optional: mali buffer na dnu */
    padding-bottom: 4vh;
}

/* 1 sekcija od produkta (info , izbor lece, dioptrija itd..)*/
.product-info-section {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 24px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 3%;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body > *, .woocommerce-page .site,
.woocommerce-page .site-main,
.woocommerce-page .entry-content,
.woocommerce-page .product,
.woocommerce-page .product-container {
    margin: 0 !important;
    padding: 0 !important;
}
html, body {
    overflow-x: hidden;         
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #page, .site, .site-content, #content, main {
    height: 100%;
}

/* === Responsive Layout for Mobile and Tablet === */
@media (max-width: 1200px) {
    .product-container {
        flex-direction: column;
        height: auto;
        position: static;
    }
    .product-info-section {
        width: 90%;
    }

    #media-viewer {
        width: 100vw;
        height: 70vh;
        position: relative;
    }

    #product-info {
        width: 100vw;
        height: auto;
        position: relative;

        /* NEW: vrati normalan flow scroll na mobile */
        overflow: visible;
    }

    /* NEW: wrapper ne smije zakljucati scroll na mobile */
    #product-info-scroll{
        height: auto;
        overflow: visible;
        padding-bottom: 0;
    }
      #footer p {
    display: none !important;
  }
}

/* === 4K EKRANI (2560px+) === */
@media (min-width: 2560px) {
    html, body {
        overflow: hidden;
    }
}

/* === 2K EKRANI (2000px – 2559px) === */
@media (min-width: 2000px) and (max-width: 2559px) {
    html, body {
        overflow: hidden;
    }

}

/* === FULL HD i MANJI (< 1999px) === */
@media (max-width: 1999px) and (min-width: 901px) {

}

