/*Hero Pdp*/

.single-product section.hero-pdp-section {
    z-index: 0;
    height: 500vh;
    position: relative;
}

.sticky-blue {
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    background: var(--blue-gradient);
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    display: flex;
    position: -webkit-sticky;
    position: sticky;
    top: 0; 
    transition: opacity 0.8s ease, color 0.3s ease;
}

.sticky-bkg {
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    display: flex;
    transition: opacity 0.8s ease, color 0.3s ease;
    position: relative;
    width: 100%;
}

.sticky-bkg video, .sticky-bkg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-bottle {
    z-index: 2;
    opacity: 1;
    pointer-events: none;
    color: var(--black);
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    display: flex;
    position: sticky;
    top: 0;
    margin-top: -100vh;
    overflow: hidden;
}

.ingredient-wrapper {
    z-index: 1;
    opacity: 0;
    width: 80vw;
    max-width: none;
    position: absolute;
    /*transition: opacity 0.3s ease, transform 0.3s ease;*/
    will-change: opacity, transform;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10vw;
}


.pdp-content {
    z-index: 1;
    color: #000;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    display: flex;
    position: relative;
    position:absolute;
    top:0;
    left:0;
}

.pdp-view {
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100vh;
    display: flex;
    color: white;
    text-align: center;
    padding-top: 20vh;
}

.pdp-text {
    text-align: center;
    font-size: 38px;
    line-height: 44px;
    font-family: 'Martell', sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
   /* width: 80%;*/
}

.pdp-text {
    font-size: 2.5vw;
    line-height: 3.2vw;
    max-width: 72vw;
    letter-spacing: 0.2vw;
}

.pdp-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left:20px;
    padding-right:20px;
    align-items: center;
    width: 100%;
}

.pdp-btn {
    padding: 20px 25px;
    color: white;
    background-color: var(--dark-blue);
    border-radius: 2px;
}

.bottle-turn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.01;
    height: 100%;
    width: auto;
}

.bottle-turn.active {
    opacity: 1;
}


.bottle-wrapper {
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    height: 60vh;
    aspect-ratio: 4 / 3;
}

.static-packshot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index:3;
}

.static-packshot.no360{
    transform: scale(.85);
}

.static-packshot img {
    height: 100%;
    width: auto;
}


.packshot-360-wrapper {
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    aspect-ratio: 4 / 3;
    z-index:2;

}

.hero-pdp-section.change-bkg .sticky-blue {
    opacity: 0;
}

.pdp-view {
    transition: color 0.5s ease;
}

.hero-pdp-section.change-bkg  .pdp-view {
    color: var(--dark-blue);
}

.background-image.desktop-only {
    display: block;
}

.background-image.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .background-image.desktop-only {
        display: none;
    }

    .background-image.mobile-only {
        display: block;
    }

    .pdp-text {
        font-size: 26px;
        line-height: 32px;
    }

    .pdp-content .pdp-text{
            max-width: 90%;
    }

    h1.pdp-text {
        margin-top: 20vw;
        font-size:7.6vw;
        line-height: 8vw;
        max-width: 100% !important;
        padding: 0;
        transform: translateY(-50%);
    }

    .pdp-view {
        padding-top:64px;
    }


    .bottle-wrapper {
        top: 50%;
        height: 100vw;
    }

    .packshot-360-wrapper{
        height: 100vw;
    }

    .ingredient-wrapper {
        width: 200%;
    } 
}

@media (max-width: 767px) {
    .pdp-text.h1 {
        width: 100%;
        font-size: 20px;
        line-height: 28px;
    } 

}

@media (min-width: 1025px) {
    h1.pdp-text {
        font-size: clamp(5.4vh, 5.4vh, 38px);
        line-height: 1.1;
        transform: translateY(-50%);
        max-width: 100%;
    }
}