.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-images {
    max-width: 650px;
    margin: 0 auto;
}

.main-swiper {
    width: 100%;
    margin-bottom: 10px;
    /* Set a fixed aspect ratio container */
    aspect-ratio: 4/3;
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    overflow: hidden;
    height: 100%;
}

.main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.thumbs-swiper {
    width: 100%;
    height: auto;
    margin-top: 15px;
}

.thumbs-swiper .swiper-wrapper {
    display: flex;
    gap: 10px;
}

.thumbs-swiper .swiper-slide {
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 80px !important;
    height: 80px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #007aff;
}

.thumbs-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-details {
    padding: 20px;
}


.product-specs {
    margin-bottom: 30px;
}

.specs-list {
    list-style-type: none;
}

.specs-list li {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
    gap: 10px;
}

/* Swiper navigation and pagination enhancements */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    color: #007aff;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-swiper .swiper-button-next:after,
.main-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.main-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

.main-swiper .swiper-pagination-bullet-active {
    background: #007aff;
}


.specs-list strong {
    min-width: 300px;
    color: #0c112c;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
}


.product-description ul li {
    list-style: disc;
}

.product-description ol li {
    list-style: decimal;
}

.product-description ul,
.product-description ol {
    padding-left: 15px;
}

.datasheet-section {
    margin-top: 30px;
}

.datasheet-title {
    font-size: 20px;
    color: #0c112c;
    margin-bottom: 15px;
}

.datasheet-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.datasheet-list li {
    width: 220px;
    max-height: 50px;
}

.datasheet-list a {
    display: block;
    align-items: center;
    color: #113e8f;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #113e8f;
    border-radius: 4px;
    transition: all 0.3s;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.datasheet-list a:hover {
    background-color: #113e8f;
    color: #fff;
}

.datasheet-list i {
    margin-right: 10px;
    font-size: 19px;
}


.product-enquiry {
    margin: 40px auto 0px auto;
    width: 50%;
    padding: 30px;
    background-color: #9ddbf0b3;
    border-radius: 8px;
}

/* Media queries for responsiveness */

@media (min-width:992px) and (max-width:1200px) {
    .product-images {
        max-width: 460px;
    }
}

@media (max-width:992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-enquiry {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .main-swiper {
        aspect-ratio: 3/2;
        max-width: 450px;
    }

    .thumbs-swiper .swiper-slide {
        width: 60px !important;
        height: 60px !important;
    }

    .specs-list strong {
        min-width: auto;
    }

    .datasheet-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .datasheet-list li {
        width: auto;
    }

    .product-enquiry {
        width: 100%;
    }
}

@media (max-width: 455px) {
    .main-swiper {
        max-width: 260px;
    }
}