body {
    padding-top: 100px; /* Adjust to match navbar height */
}

.center-heading {
    text-align: center;
    margin: 0 auto;
}

.product-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.product-description {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.product-description p {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    text-align: left; /* Center-align text for better presentation */
    line-height: 1.6;
}

.image-container {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 4 / 3; /* keeps a consistent ratio */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    overflow: hidden;
}


.carousel-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}



.carousel-container {
    margin-top: 20px; /* Adjust this based on your navbar height */
    position: relative;
    width: 100%; /* Set to 100% of the available width */
    max-width: 800px; /* Set a maximum width for the carousel */
    height: 500px; /* Fixed height for the carousel */
    overflow: hidden;
}

.carousel {
    display: flex;
    width: 100%; /* For 4 images, you can use 100% instead of 400% */
    height: 100%; /* Make the carousel take up the full height of the container */
    transition: transform 1s ease; /* Smooth transition when changing slides */
}

.carousel-item {
    position: relative;
}

.carousel-item > .carousel-img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


.carousel-inner,
.carousel-item {
    height: auto !important;
}


.carousel-inner {
    transition: height 0.5s ease;
}



/* Fade effect on top */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust based on the desired fade height */
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust based on the desired fade height */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.carousel-thumbnails {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.thumbnail-image {
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.thumbnail-image:hover {
    transform: scale(1.1);
}


.slide {
    width: 100%; /* Each slide takes up 100% of the carousel container width */
    height: 150%; /* Ensure slides fill the entire height of the container */
    display: flex; /* Use flexbox to align the image */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
}

.slide img {
    width: 100%; /* Set width to 100% of the slide container */
    height: 800px; /* Set height to 100% of the slide container */
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

.prev { left: 10px; }
.next { right: 10px; }

.custom-arrow {
    color: #000000; /* Change to your desired color */
}

.container {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

span {
    color: #000000;
    font-size: 40px;
}

p {
    font-size: 30px;
    font-weight: 400;
}

/* Custom Styles for the Accordion */
.card-body {
    padding: 20px;
    border: 1px solid #ddd;
}

.btn-link {
    font-size: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: #000;
}

.card {
    border: none;
    margin-bottom: 10px;
}

.card-header {
    background-color: #fff;
    border: none;
}

.card-body {
    font-size: 18px;
}

.card-body p {
    line-height: 1.6;
}


.thumbnail-image:hover {
    transform: scale(1.1);
}

.related-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}


.related-thumbnail {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.related-thumbnail img {
    width: 100%;
    height: 500px;
    max-width: 400px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.related-thumbnail:hover img {
    transform: scale(1.05);
}

.related-thumbnail p {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.2;
}



/* Responsive adjustments */
@media (max-width: 768px) {

    .product-title {
        font-size: 28px;
    }

    .product-description {
        padding: 15px;
    }

    .product-description p {
        font-size: 16px;
    }

    .image-container {
        height: 350px;    
        }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .carousel-container {
        max-width: 100%;
        margin-top: 20px;
    }

    .container {
        width: 100%;
        margin-left: 0;
    }

    span {
        font-size: 20px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
        font-weight: 600;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 18px;
    }

    li {
        font-size: 16px;
    }

    .carousel-item::before {
        height: 30px; /* Adjust based on the desired fade height */
    }
    
    .carousel-item::after {
        height: 30px; /* Adjust based on the desired fade height */
    }

    .related-carousel {
        justify-content: flex-start;
    }

    .carousel-thumbnails {
        justify-content: flex-start;
    }
}


@supports not (aspect-ratio: 4 / 3) {
    .image-container {
        height: auto;
    }

    @media (max-width: 768px) {
        .image-container {
            height: 200px; /* or something proportional */
        }
    }
}
