.product-single-main{
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: flex-start;

    gap: 40px;
    padding-top: 0px;
}


.product-single-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.grid-1fr{
    display: grid;
    grid-template-columns: 485px 1fr;
    gap: 20px;

    width: 100%;
}

.grid-1fr-inverse{
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 40px;

    width: 100%;
}

/* PRODUCT DETAILS */
.product-details-container{
    background-color: #fff;
    border-radius: 0px 0px 50px 0px;

    box-shadow: 0px 3px 6px rgba(0,0,0,0.16);
}

.product-title{
    background-color: #D62598;
    padding:20px;

    display: flex;
    flex-direction: row;
    justify-content:center;
    align-items: center;
}

.product-title H1{
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    color: #fff;

    font-family: "Montserrat SemiBold";
}

.product-dynamic-grid{
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 100px;

    padding:20px;
}

.product-dynamic-fields{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.dynamic-field-item{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0px;
}

.dynamic-field-title{
    font-family: "Segoe UI Bold";
    font-size: 15px;
    font-weight: 900;
    color: #707070;

    margin: 0;
    text-transform: uppercase;
}

.dynamic-field-value{
    font-family: "Segoe UI";
    font-size: 15px;
    font-weight: 400;
    color: #707070;

    margin: 0;
}

.product-price-pdf{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}


.product-price-pdf p{
    margin: 0;
    font-family: "Segoe UI";
    font-size: 15px;
    font-weight: 400;
    color: #707070;
}

.product-price-pdf span{
    margin: 0;
    font-family: "Segoe UI Bold";
    font-size: 20px;
    color: #D62598;
}

/* IMAGE */

/* Grid container for the product images */
.product-images-column {
   display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;

    height: 100%;
    max-width: 485px;
    width: 100%;
}

/* Main image that spans 3 columns and 2 rows */
.main-image {
    position: relative;
    box-sizing: border-box;

    max-width: 485px;
    max-height: 485px;
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #6A6666;

    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 20px 50px;
    width: 100%;
    max-width: 1270px;
}

.lightbox-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.lightbox-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 100%;
    width: 100%;
}

.lightbox-navigation {
    width: auto;
    display: flex;
    justify-content: space-between;
}

.prev, .next {
    cursor: pointer;
    width: 25px;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    overflow: hidden; /* Prevent overflow */
}

.lightbox-slide {
    display: none;
    max-width: 100%;
    max-height: 100%;
    width: 100%; /* Width adjusts based on content */
    height: 100%; /* Maintain natural aspect ratio */
}

.lightbox-slide img {
    max-height: 100%; /* Fill the height of the container */
    max-width: 100%; /* Maintain aspect ratio */
    width: 100%; /* Width adjusts based on content */
    height: 100%; /* Maintain natural aspect ratio */
    object-fit: contain; /* Ensure the image scales without cropping */
    display: block; /* Remove inline spacing */
}

/* Active slide styling */
.lightbox-slide.active {
    display: flex; /* Show active slide */
    justify-content: center;
    align-items: center;
}

.thumbnail-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;

    width: 240px;
    max-height: 80vh;
}

.thumbnail-column .thumbnail {
    width: 140px;
    height: 140px;

    opacity: 1;
    box-sizing: border-box;
    overflow: hidden; /* Keeps the pseudo-element within bounds */

    cursor: pointer;
}

.thumbnail-column .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}


.thumbnail-column .thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    border: 3px solid transparent; /* Invisible initially */
    box-sizing: border-box;
    pointer-events: none; /* Ensures the element doesn't interfere with interactions */
    transition: border-color 0.3s ease; /* Smooth transition for the hover effect */

    z-index: 999;
}

/* Change the border color on hover */
.thumbnail-column .thumbnail:hover::before,
.thumbnail-column .thumbnail.active::before {
    border-color: #D62598; /* Visible border color on hover */
}



/* Zoom icon styling inside the main image */
.zoom-icon {
    position: absolute;
    bottom: 5px;
    right: 10px;
    cursor: pointer;
}

/* Thumbnail images styling */
.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.thumbnail {
    width: 100%;
    height: 140px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.thumbnail img {
    width: 100%;
    height: 100%;
}


/* PRODUCT OPTION */
.option-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    padding:20px;
}
.option-title{
    font-family: "Roboto Bold";
    font-size: 20px;
    font-weight: 900;
    color: #655C57;

    margin: 0;
    text-align: center;
}

.product-option-1{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
}

.option-1-item{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.option-1-image{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.option-1-image img{
    width: 100%;
    object-fit: contain;
    max-height: 160px;
}

.product-option-1 p{
    font-family: "Segoe UI";
    font-size: 15px;
    font-weight: 400;
    color: #6A6666;

    margin: 0;
    text-align: center;
}


/* Option 2 Section Styling */
.option-title {
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
}

.product-option-2 {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    justify-content: flex-start;
}

.option-item {
    border: 3px solid #D62598;
    padding: 0.5rem 1rem 1rem 1rem;
    width: 220px;
    text-align: center;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

.option-item .option-2-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.option-2-item-title {
    margin: 0;
    font-size: 15px;
    font-family: "Segoe UI Bold";
}

.option-2-params {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.option-2-params .option-2-param {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0px;
    width: 100%;
}

.option-2-params .option-2-param p{
    margin: 0;
    font-family: "Segoe UI";
    font-size: 14px;
    font-weight: 400;
    color: #6A6666;
}

.option-2-params .option-2-param span{
    margin: 0;
    font-family: "Segoe UI Bold";
    font-size: 14px;
    font-weight: 400;
    color: #6A6666;
}

.pdf-button{
    width: 80%;
    display: block;

    margin-top: 20px;
    align-self: center;
    cursor: pointer;
}


.option-2-price span{
    color: #D62598; /* Adjust color to match your theme */
    font-size: 14px;
    font-weight: bold;
    font-family: "Segoe UI Bold";
}

.option-2-price{
    color: #655C57; /* Adjust color to match your theme */
    font-size: 14px;
    font-family: "Segoe UI";
    text-align: left;
    margin-top: 20px;
}




/* CONTENT */
.product-single-content h2{
    font-family: "Segoe UI Bold";
    font-size: 15px;
    color: #655C57;
}

.product-single-content H2:first-child{
    margin-top: 0;
}

.product-single-content h3{
    font-family: "Segoe UI SemiBold";
    font-size: 15px;
    color: #655C57;

}

.product-single-content p{
    font-family: "Segoe UI";
    font-size: 15px;
    color: #655C57;

}

.product-single-content p:first-child{
    margin-top: 0;
}


/* RELATED PRODUCTS */
.related-products-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.related-products-section h2 {
    font-family: "Roboto";
    font-size: 27px;
    font-weight: 900;
    color: #655C57;
    margin: 0;
    padding: 20px;
}

.related-products-slider,
.related-sub-family-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    position: relative;

    width: 100%;
}

.related-product-item {
    min-width: 200px;
    text-align: center;
    scroll-snap-align: start;
}

.related-product-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.related-sub-family-section{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    margin: 20px 0;
}

.related-sub-family-section h2{
    font-family: "Segoe UI Bold";
    font-size: 22px;
    font-weight: 900;
    color: #655C57;
    margin: 0;
    padding: 20px;
}



.slider-nav {
    display: none; /* Initially hidden, shown by JavaScript if >6 items */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
}

.slider-nav.prev {
    left: 10px;
    margin-top: 10px;
}

.slider-nav.next {
    right: 10px;
    margin-top: 10px;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{
    display: none;
}

/* BUTTON */

.product-single-container .inside-button{
    padding: 8px 20px;
    font-size: 14px;
}

.product-price-pdf-buttons{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

/* SWIPER */
.swiper-container {
    width: 100%; /* Make the slider container span the full width */
    max-width: 1200px; /* Optional: Limit the maximum width */
    margin: 0 auto; /* Center the slider */
    overflow: hidden; /* Prevent content from spilling outside */
}

.swiper-wrapper {
    display: flex; /* Ensure slides are laid out horizontally */
    flex-wrap: nowrap; /* Prevent wrapping of slides */
    transition: transform 0.3s ease-in-out;
}

.swiper-slide {
    flex: 0 0 auto; /* Prevent slides from stretching */
    width: calc(100% / 5); /* For 5 slides visible at once */
    text-align: center; /* Center slide content */
    box-sizing: border-box; /* Include padding/borders in width */
}

/* Ensure arrows are correctly positioned */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 40px; /* Adjust arrow size */
    height: 40px;
    background-size: cover; /* Ensure arrow image scales properly */
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}


.swiper-button-next:after, .swiper-button-prev:after {
    color: #D62598;
    font-size: 20px;
    font-weight: bold;
}

/* Hide default Swiper navigation icons for related products slider */
.related-products-slider .swiper-button-next:after,
.related-products-slider .swiper-button-prev:after {
    display: none;
}

.swiper-button-next, .swiper-rtl .swiper-button-prev,
.swiper-button-prev, .swiper-rtl .swiper-button-next{
    margin-top: 5px!important;
}



/* Media Queries */
@media screen and (max-width: 991px){
    .container-maxWidth.product-single-main{
        padding: 0px 15px;
        width: auto;
        margin: 0;
    }

    .grid-1fr{
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .grid-1fr-inverse{
        grid-template-columns: 1fr;
        gap: 20px;
        width: auto;
    }

    .grid-1fr-inverse .single-contact-form{
       margin: 0;
    }

    .product-title H1{
        font-size: 21px;
    }

    .product-details-container h2{
        font-size: 25px;
        color: #D62598;
        font-family: "Segoe UI Bold";
        margin-top: 0;
    }

    .product-details-container{
        border-radius: 0px;
        box-shadow: none;
    }

    .product-price-pdf{
        align-self: center;
    }

    .option-container{
        padding: 0px;
        gap: 5px;
    }

    .option-title{
        font-size: 18px;
        text-align: left;
        margin: 0;
    }

    .product-price{
        margin-top: 20px;
    }

    .product-price p{
        margin: 0;
        color: #707070;
        font-size: 14px;
    }

    .price_span{
        font-size: 25px;
        color: #D62598;
        font-family: "Segoe UI Bold";
    }

    .price_small{
        font-size: 12px;
        color: #707070;
        font-family: "Segoe UI";
    }

    .product-option-1{
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .product-dynamic-grid{
        grid-template-columns: 1fr;
        gap: 20px;

        padding: 0px;
    }

    .related-products-section{
        padding: 20px 0;
    }


    .related-products-section h2 {
        font-size: 22px;
        text-align: center;
        line-height: 1.4;
        padding: 0 5px;
        font-family: 'Segoe UI SemiBold', sans-serif;
    }

    .grid-row_product-item{
        height: 250px;
    }

    .swiper-slide .grid-row_product-item{
        height: auto;
        max-height: unset;
        max-width: unset;
    }

    .swiper-button-next, .swiper-button-prev{
        background-color: #D6259829;
        width: 40px!important;
        height: 40px!important;
        margin-top: 0;
    }

    .swiper-button-prev {
        left: 0!important;
    }

    .swiper-button-next {
        right: 0!important;
    }

    .swiper-button-next, .swiper-rtl .swiper-button-prev,
    .swiper-button-prev, .swiper-rtl .swiper-button-next{
        display: flex!important;
        justify-content: center;
        align-items: center;
    }

    .swiper-button-next img,
    .swiper-button-prev img{
        width: 20px;
        height: 20px;
    }

    .main-arrow-left{
        left: 0;
    }

    .main-arrow-right{
        right: 0;
    }

    .product-image-slider{
        position: relative;
        width: 100%;
    }
    .swiper-pagination{
        display: none;
    }


    .swiper-slider{
        background-color: #F5F5F5;
    }

    .swiper-slide img{
        width: 100%;
        height: auto;
    }


    .product-option-2{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .option-item{
        width: auto;
        padding: 0.6rem;
        text-align: left;
    }

    .option-2-item-title{
        font-size: 16px;
    }
    .option-2-params .option-2-param p{
        font-size: 14px;
        text-align: left;
    }


    .pdf-button{
        width: 100%;
        display: block;
    }

    .product-single-container .inside-button{
        padding: 8px 10px;
        font-size: 14px;
    }

    .pdf-button .inside-button{
        padding: 8px 10px;
        font-size: 14px;
        gap: 5vw;
    }

    .option-2-price span{
        color: #D62598; /* Adjust color to match your theme */
        font-size: 25px;
        font-weight: bold;
        font-family: "Segoe UI Bold";
        line-height: 1;
    }

    .option-2-price{
        color: #655C57; /* Adjust color to match your theme */
        font-size: 14px;
        font-family: "Segoe UI";
        text-align: left;
        margin-top: 20px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .option-2-price span.option-2-price-small{
        color: #655C57; /* Adjust color to match your theme */
        font-size: 11px;
        font-family: "Segoe UI";
        margin-top: 15px;
    }


}

/* Media Queries */
@media screen and (max-width: 400px){
    .pdf-button .inside-button{
        padding: 8px 10px;
        font-size: 14px;
        gap: 2vw;
    }

}
