.arctic-hero-section {
    position: relative;
    width: 100%;
    height: 100dvh;    
    background-image: url('../assets/img/product4/arctic-igloo-unit-mob.jpg');
    background-size: cover;
    background-position: right;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 48vh;
    text-align: center;
    background-repeat: no-repeat;
}
.arctic-hero-section h2 {
    color: #fff;
    margin-bottom: 25px;
}
p.arctic-hero-description {
    padding-left:20px;
    padding-right:20px;
    
}
.arctic-hero-section p {
    color: #fff;
}

/* --- ICE SAFETY SECTION --- */
.ice-safety-section {
    position: sticky;
    top: 0; 
    z-index: 1;
    background-color: #fff;    
}

.ice-safety-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;    
    max-width: 100%;    
}

.ice-safety-content-wrapper {
    margin-top:30px;
    margin-bottom: 30px;
}

.ice-safety-image {
    width: 100%;    
    height: 100%;
    background-image: url('../assets/img/product4/unit-on-ice-surface.webp');    
    background-position: center;
    background-repeat: no-repeat;
    background-size:cover;       
}

.ice-safety-text {   
    text-align: center;
    padding: 15px 20px 0 20px;    
    align-items: center;
    height: 100%;
    display: flex;
    justify-content: center;       
    flex-direction: column;
    width: 100%;
}

.ice-safety-icon img {    
    margin-bottom: 20px;
    width: 70px; 
}

.ice-safety-title {
    margin-bottom: 15px;
    line-height: 1.1;
}

/* --- QUIET EFFICIENCY SECTION --- */
.quiet-efficiency-section {
    position: sticky; 
    top: 0;   
    z-index: 1;
    background-color: #fff;
}

.quiet-efficiency-wrapper {
    height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;    
    max-width: 100%;    
}

.quiet-efficiency-content-wrapper {
    margin-top:30px;
    margin-bottom: 30px;
}

.indoor-unit-image {
    width: 100%;    
    height: 100%;
    background-image: url('../assets/img/product4/indoor-unit-clean.webp');
    background-position: center -50px;
    background-repeat: no-repeat;
    background-size:cover;       
}

.quiet-efficiency-text {   
    text-align: center;
    padding: 15px 20px 0 20px;    
    align-items: center;
    height: 100%;
    display: flex;
    justify-content: center;       
    flex-direction: column;
    width: 100%;
}

.quiet-efficiency-icon img {    
    margin-bottom: 20px;
    width: 70px; 
}

.quiet-efficiency-title {
    margin-bottom: 15px;
    line-height: 1.1;
}

.quiet-efficiency-description {
    /* line-height: 1.3; */
    margin-top: 0;
}

/* --- COMFORT EFFICIENCY SECTION --- */
.comfort-efficiency-section {
    height: 100vh;
    width: 100%;
    /* position: relative; */
    z-index: 1;
    background-color: #00D4E9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.comfort-ac-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    z-index: 1;
    object-fit: contain;
}

.comfort-efficiency-title span,
.comfort-efficiency-title {
    color: #fff;
}

.comfort-efficiency-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
}
.comfort-efficiency-title {
    margin-top: 0;
}

.comfort-efficiency-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
}
.comfort-efficiency-wifi {
    height:70px;
    height: 70px;
}
.comfort-efficiency-energy {
    border-radius: 5px;
    width:70px;
    height: 70px;
}
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

.product-warranty {
    position: relative;
    margin-top: -100vh !important;
    z-index: 20 !important;
    padding-top: 100vh; 
    height: auto; 
    min-height: 100vh;
    /* margin-top: -50vh !important;  */
}
.table-section{
    z-index: 7!important;
}

/* --- RESPONSIVE DIZAJN --- */
@media (min-width: 375px) {
    .indoor-unit-image {
        background-position: center -70px;
    }
}

/* SM - Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    
}

/* MD - Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .arctic-hero-section {
        background-position: center;
        background-image: url('../assets/img/product4/arctic-igloo-unit.webp');
    }
    .indoor-unit-image {
        background-position: center -155px;
    }   
    
    .ice-safety-wrapper {
        justify-content: center;
        align-items: stretch;
    }
    .ice-safety-content-wrapper,
    .quiet-efficiency-content-wrapper {
        width:500px;
    }    
    .quiet-efficiency-wrapper {       
        justify-content: center;
        align-items: stretch;
        height: 100vh;      
    }   
    .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none;
    }    
    .comfort-efficiency-section {
        height: 85vh;
        flex-direction: column;
    }
    .comfort-efficiency-content {
        max-width: 600px;
        padding: 0 20px;
    }
    .comfort-efficiency-title {        
        margin-bottom: 30px;
    }
    .comfort-efficiency-images {
        flex-direction: row;
    }
    .comfort-efficiency-energy,
    .comfort-efficiency-wifi {
        width: 70px;
        height: 70px;
    }
    .comfort-ac-image {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 550px;
        height: auto;
        object-fit: contain;        
    }
    .product-warranty {
        margin-top: -50vh !important; 
    }
}

/* LG - Large devices (desktops, 992px do 1023px) */
@media (min-width: 992px) {
    .arctic-hero-section {
        /* height: 100vh; */        
        background-position: top left;
    }    
    .ice-safety-wrapper,
    .quiet-efficiency-wrapper {
        flex-direction: row;
        height: 50vh;
    }
    .ice-safety-icon img,
    .quiet-efficiency-icon img {
        margin-bottom: 30px;       
    }
    .ice-safety-text,
    .quiet-efficiency-text {
        padding: 0;    
    }   
    .comfort-ac-image {
        max-width: 650px;
    }
}

@media (min-width: 1024px) {    
    .comfort-efficiency-section {
        height: 100vh;
        flex-direction: row;
        align-items: center;
        padding-top: 0;
    }
    .arctic-hero-section {
        background-position: center;
        padding-bottom: 60vh;
    }
    .indoor-unit-image {
        background-position: center;
    }
    .comfort-efficiency-content {
        width: 50%;
        max-width: none;
        padding: 0;
        text-align: center;
    }
    .comfort-efficiency-title {
        margin-top: 80px;
        margin-bottom: 30px;
    }
    .comfort-ac-image {       
        width: 50%;
        max-width: none;
        height: 100%;       
        z-index: 1;
        margin-top: 0;
    }    
}
@media (min-width: 1024px) and (max-height: 768px) {
    .ice-safety-wrapper,
    .quiet-efficiency-wrapper {
        flex-direction: row;
        height: 100vh;
    }   
}
@media (min-width: 1024px) and (max-height: 600px) {    
    .comfort-efficiency-title {        
        margin-right: 10px;
    }
 }


/* XL - Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {    
    .arctic-hero-section h2 {       
        font-size: 54px; /*bice globalno*/
        line-height: 54px; /*bice globalno*/
    }
    .ice-safety-wrapper,
    .quiet-efficiency-wrapper {
        flex-direction: row;
        height: 100vh;
    }   
    .comfort-efficiency-content {
        width: 45%;
        padding:20px;
    }
    .ice-safety-wrapper,
    .quiet-efficiency-wrapper {
        flex-direction: row;        
    }
    .ice-safety-icon img,
    .quiet-efficiency-icon img {
        width: 90px;
    }   
    .comfort-efficiency-wifi {
        width:auto;
        height: auto;
    }
    .comfort-efficiency-energy {
        
        border-radius: 15px;
    }
    .comfort-efficiency-energy,
    .comfort-efficiency-wifi {
        width: 30%;
        height: auto;
    }
    section.product-warranty {       
        position: relative;
        z-index: 10;
    }   
}
/* Pretpostavimo da bookmark bar oduzima oko 60px visine */

/* 1. Cilja ekrane širine >= 1280px I (visine do 1024px, ali efektivno ~964px sa barom) */
/* Ako je puna visina 1024px, sa barom je ~964px. Ovo je za "velike" visine. */
@media (min-width: 1280px) and (max-height: 964px) { /* Prethodno 1024px */
    .arctic-hero-section h2 {
        margin-bottom: 20px;
    }
    p.arctic-hero-description {
        line-height: 26px;
    } 
}

/* 2. Cilja ekrane širine >= 1280px I (visine do 960px, ali efektivno ~900px sa barom) */
/* Ako je puna visina 960px, sa barom je ~900px. Ovo je za "srednje" visine. */
@media (min-width: 1280px) and (max-height: 900px) { /* Prethodno 960px */
   .arctic-hero-section h2 {
        margin-bottom: 16px;
    }
    p.arctic-hero-description {
        line-height: 1.15;
    }
}

/* 3. Cilja ekrane širine >= 1280px I (visine do 800px, ali efektivno ~740px sa barom) */
/* Ako je puna visina 800px, sa barom je ~740px. Ovo je za "manje" visine. */
@media (min-width: 1280px) and (max-height: 740px) { /* Prethodno 800px */
    .arctic-hero-section h2 {       
        font-size: 42px;
        line-height: 38px;
        margin-bottom: 16px;
    }
}

@media (min-width: 1300px) {  
    .arctic-hero-section h2 {
        margin-bottom: 20px;
    }   
  }

/* XXL - Extra Extra Large devices (wider screens, 1400px and up) */
@media (min-width: 1400px) {
    
    .arctic-hero-section h2 {       
        font-size: 60px;
        line-height: 60px;
        margin-bottom: 25px;
    }   
    .arctic-hero-section {
        background-position: center;
    }
}

@media (min-width: 1500px) {
    .arctic-hero-section h2 {
        margin-bottom: 12px;
        line-height: 54px;
    }
}

/* XXXL - Ultra wide screens (1600px and up) */
@media (min-width: 1600px) { 

    .arctic-hero-section h2 {
        font-size: 60px;
        line-height: 60px;
        margin-bottom: 25px;
    }   
    .comfort-ac-image {
        left:0%;
        top:10%;
        width: 45%;
    }
    .comfort-efficiency-content {
        position: relative;
        right: 5%;
    }   
}
@media (min-width: 1920px) {
    .comfort-ac-image {
        left:3%;        
    }
    .comfort-efficiency-content {        
        right: 3%;
    }    
    .arctic-hero-section h2 {       
        font-size: 72px; /*bice globalno*/
        line-height: 72px; /*bice globalno*/
    }
    .comfort-efficiency-energy, .comfort-efficiency-wifi {
        width: 50%;
        height: auto;
    }
}

@media (min-width: 2048px) {
    .comfort-ac-image {
        max-width: 35%;
    }    
}
@media (min-width: 2560px) {
    .comfort-ac-image {
        left:5%;        
    }
    .comfort-efficiency-content {        
        right: 5%;
    }
    .arctic-hero-section {
        background-position: center ;
    }    
}

/* === SAFARI & IPHONE OPTIMIZATIONS === */
/* Safari sticky positioning fix */
@supports (-webkit-touch-callout: none) {
    .ice-safety-section {
        position: -webkit-sticky;
        position: sticky;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .quiet-efficiency-section {
        position: -webkit-sticky;
        position: sticky;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .comfort-efficiency-section {
        position: -webkit-sticky;
        position: sticky;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* iOS Safari background image fix */
@supports (-webkit-touch-callout: none) {
    .arctic-hero-section {
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
    }
    
    .ice-safety-image {
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
    }
    
    .indoor-unit-image {
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
    }
}

/* iPhone specific fixes - iOS Safari only */
@supports (-webkit-touch-callout: none) and (pointer: coarse) {
    .arctic-hero-section {
        height: auto;
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 30vh;
    }
    
    .ice-safety-wrapper {
        height: auto;
        min-height: 100vh;
    }
    
    .quiet-efficiency-wrapper {
        height: auto;
        min-height: 110vh;
    }
    
    .comfort-efficiency-section {
        height: auto;
        min-height: 90vh;
    }
    
    .comfort-ac-image {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* === ADDITIONAL SAFARI PERFORMANCE OPTIMIZATIONS === */
/* Force hardware acceleration on problematic elements - Safari/iOS only */
@supports (-webkit-touch-callout: none) {
    .comfort-ac-image {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Safari-specific scroll improvements - iOS Safari only */
@supports (-webkit-touch-callout: none) and (pointer: coarse) {
    .arctic-hero-section {
        -webkit-overflow-scrolling: touch;
    }
}