/* Fixed height container so nothing below the carousel jumps around */
#carouselExampleControls2 .carousel-inner {
    min-height: 670px; /* set to whatever height fits your clamped text comfortably */
}

#carouselExampleControls2 .carousel-item {
    padding: 20px 10px;
}

/* Clamped state - default */
#carouselExampleControls2 .testimonial-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

/* Expanded state - added via JS on Read more click */
#carouselExampleControls2 .testimonial-text.expanded {
    display: block !important;
    -webkit-line-clamp: unset;
    overflow: visible;
}

#carouselExampleControls2 .read-more-btn {
    background: none;
    border: none;
    color: #0d6efd;
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    margin: 10px auto;
    display: flex;
}

#carouselExampleControls2 .read-more-btn:hover {
    text-decoration: underline;
}

#youtubeVideo {
    aspect-ratio: 16 / 9;
}

/* YouTube facade: thumbnail + play button, replaced with the real iframe
   only after a click — avoids loading the ~500KB YouTube player for
   videos most visitors never press play on. */
.yt-facade {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.yt-facade__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    margin-top: -24px;
    margin-left: -34px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    pointer-events: none;
}

.yt-facade__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #fff;
}

.yt-facade iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    /* The testimonials carousel's prev/next buttons are sized at
       width:5% of their container by public/assets/css/style.css
       (.featured-reviews-warpper .carousel-control-prev/-next) — on a
       narrow phone that's well under the recommended 44x44 tap target.
       Overridden here (not in style.css, which is minified/compiled)
       with matching selector specificity so it wins by normal cascade
       order, mobile only. */
    .quantity button,
    .featured-reviews-warpper .carousel-control-prev,
    .featured-reviews-warpper .carousel-control-next {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media screen and (min-width: 768px) {
    body .chemical-metal__section img, 
    body .chemical-metal__section picture {
        aspect-ratio: 558 / 370;
        width: 100%;
        max-width: 558px;
        min-height: 390px;
        display: block;
    }

    #youtubeVideo {
        min-height: 500px;
    }

    .chemical-metal__section .chemicalsec__wrapper {
        min-height: 400px;
        display: flex;
        align-items: center;
    }

    .chemical-metal__section img,
    .chemical-metal__section picture {
        aspect-ratio: 558 / 408;
        width: 100%;
        max-width: 558px;
        min-height: 408px;
        display: block;
    }
}

/* body.loadedimages #slider > img.sliderimg {

        display: none;

    }

    #slider img {

        max-height: 400px;

    }

    #slider{

        min-height: 90vh;

    }

    .slider-inner {

        min-height: 90vh;

    } */

.slick-prev:before,
.slick-next:before {
    color: black;
    font-size: 28px;
}

header .item {

    height: 100vh;

    width: 100%;

    position: relative;

}

header .item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

header .item .cover {

    padding: 75px 0;

    position: absolute;

    width: 100%;

    height: 100%;

    top: 0;

    left: 0;

    background: transparent;

    max-width: 65%;

    display: flex;

    align-items: center;

}

header .item .cover .header-content {

    position: relative;

    padding: 56px;

    overflow: hidden;

}

header .item .cover .header-content .line {

    content: "";

    display: inline-block;

    width: 100%;

    height: 100%;

    left: 0;

    top: 0;

    position: absolute;

    border: 9px solid #fff;

    -webkit-clip-path: polygon(0 0, 60% 0, 36% 100%, 0 100%);

    clip-path: polygon(0 0, 60% 0, 36% 100%, 0 100%);

    z-index: 1;

}

header .item .cover .header-content a.solid-btn {
    z-index: 2;
    position: relative;
}

header .item .cover .header-content h2 {

    font-weight: 300;

    font-size: 35px;

    color: #fff;

    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);

}

header .item .cover .header-content h1 {

    font-size: 56px;

    font-weight: 600;

    margin: 5px 0 20px;

    word-spacing: 3px;

    color: #fff;

    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);

}

header .item .cover .header-content h4 {

    font-size: 24px;

    font-weight: 300;

    line-height: 36px;

    color: #fff;

    margin-bottom: 50px;

    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);

}

header .owl-item.active h1 {

    -webkit-animation-duration: 1s;

    animation-duration: 1s;

    -webkit-animation-fill-mode: both;

    animation-fill-mode: both;

    animation-name: fadeInDown;

    animation-delay: 0.3s;

}

header .owl-item.active h2 {

    -webkit-animation-duration: 1s;

    animation-duration: 1s;

    -webkit-animation-fill-mode: both;

    animation-fill-mode: both;

    animation-name: fadeInDown;

    animation-delay: 0.3s;

}

header .owl-item.active h4 {

    -webkit-animation-duration: 1s;

    animation-duration: 1s;

    -webkit-animation-fill-mode: both;

    animation-fill-mode: both;

    animation-name: fadeInUp;

    animation-delay: 0.3s;

}

header .owl-item.active .line {

    -webkit-animation-duration: 1s;

    animation-duration: 1s;

    -webkit-animation-fill-mode: both;

    animation-fill-mode: both;

    animation-name: fadeInLeft;

    animation-delay: 0.3s;

}

header .owl-nav .owl-prev {

    position: absolute;

    left: 15px;

    top: 43%;

    opacity: 1;

    -webkit-transition: all 0.4s ease-out;

    transition: all 0.4s ease-out;

    background: rgba(0, 0, 0, 0.5) !important;

    width: 40px;

    cursor: pointer;

    height: 40px;

    position: absolute;

    display: block;

    z-index: 1000;

    border-radius: 0;

}

header .owl-nav .owl-prev span {

    font-size: 1.6875rem;

    color: #fff;

    background-color: transparent !important;
}

header .owl-nav .owl-prev:focus {

    outline: 0;

}

header .owl-nav .owl-prev:hover {

    background: #000 !important;

}

header .owl-nav .owl-next {

    position: absolute;

    right: 15px;

    top: 43%;

    opacity: 1;

    -webkit-transition: all 0.4s ease-out;

    transition: all 0.4s ease-out;

    background: rgba(0, 0, 0, 0.5) !important;

    width: 40px;

    cursor: pointer;

    height: 40px;

    position: absolute;

    display: block;

    z-index: 1000;

    border-radius: 0;

}

header .owl-nav .owl-next span {

    font-size: 1.6875rem;

    background-color: transparent !important;

    color: #fff;

}

header .owl-nav .owl-next:focus {

    outline: 0;

}

header .owl-nav .owl-next:hover {

    background: #000 !important;

}

header:hover .owl-prev {

    left: 0px;

    opacity: 1;

}

header:hover .owl-next {

    right: 0px;

    opacity: 1;

}

.owl-carousel .owl-item img.mobile-image {
    display: none;
}

.owl-carousel .owl-item img.desktop-image {
    display: block;
}

@media screen and (max-width: 768px) {
    .owl-carousel .owl-item img.desktop-image {
        display: none;
    }

    .owl-carousel .owl-item img.mobile-image {
        display: block;
    }

    body .srt_desc, body .product_description p {
        font-size: 18px;
    }
}

/* Target tablets for clients */
@media only screen and (min-width: 600px) and (max-width: 1280px) and (orientation: portrait),
only screen and (min-width: 768px) and (max-width: 1280px) and (orientation: landscape) {
    header .item .cover .header-content h4 {
        font-size: 22px;
        line-height: 30px;
    }

    .chemical-metal__section .chemicalsec__wrapper .chemical__content-txt ul li {
        font-size: 15px;
        line-height: 20px;
    }

    header .item .cover .header-content h1 {
        font-size: 46px;
    }

    header .item .cover .header-content h2 {
        font-size: 30px;
    }
}

/* Style for navigation arrows */
.owl-nav .owl-prev,
.owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

.owl-nav .owl-prev {
    left: -50px;
    /* Adjust position */
}

.owl-nav .owl-next {
    right: -50px;
    /* Adjust position */
}

.owl-nav .owl-prev-icon,
.owl-nav .owl-next-icon {
    font-size: 20px;
    font-weight: bold;
}

.forever-chemical.chemicalsec__wrapper picture img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    flex: 1 1 100%;
}

.chemical-metal__section .chemicalsec__wrapper {
    overflow: hidden;
}

/* Video Modal Styles */
#videoModal .modal-content {
    background-color: #000;
    border: none;
    border-radius: 8px;
}

#videoModal .modal-header {
    padding: 0px;
    background-color: transparent;
}

#videoModal .btn-close {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 1;
    width: 32px;
    height: 32px;
    position: absolute;
    right: -18px;
    top: -18px;
    z-index: 9999999;
}

#videoModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 1);
}

#videoModal .modal-body {
    background-color: #000;
    border-radius: 0 0 8px 8px;
}

.featured-reviews-warpper .carousel .testimonial-text {
    width: 100% !important;
    text-align: left;
    padding: 70px 50px 36px;
    background-color: rgb(61 168 195 / .4588235294);
    border-radius: 30px;
    display: flex !important;
    gap: 20px;
    flex-direction: column;
}

.featured-reviews-warpper .carousel .testimonial-text.expanded ol {
    overflow: visible;
    max-height: unset;
    display: flex;
    flex-direction: column;
} 

.featured-reviews-warpper .carousel .testimonial-text ol {
    overflow: hidden;
    max-height: 200px;
}

.body-block__content-txt h6 {
    font-size: 26px;
}

.body-block__content-txt p {
    font-size: 20px;
}

.body-block__content-txt li {
    font-size: 20px; 
    padding-bottom: 5px;
}


body>* {
    line-height: 30px;
}

body {
    line-height: 0;
}

.chemical-metal__section .chemicalsec__wrapper .chemical__content-txt ul li {
    font-size: 20px;
    line-height: 1.8;
}
div#product_main .single_product_main {
    width: 100%;
    align-self: flex-start;
}

/* Modal styles */
#imageModal.modal {
    display: none;
    position: fixed;
    z-index: 9999999999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

#imageModal .modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: transparent;
}

#imageModal .modal-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#imageModal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999999;
}

#imageModal .prev,
#imageModal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    transform: translateY(-50%);
    text-decoration: none;
}

#imageModal .prev {
    left: 10px;
}

#imageModal .next {
    right: 10px;
}

.alternative_details {
    margin-top: 5px;
}

.alternative_details a {
    background: #ff0000d1;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
}

.restore_manually_img {
    width: 40%;
}

h1 {
    font-size: 4.2rem;
}

.thumbnail-swiper .swiper-slide.single_image_on_details {
    width: 260px !important;
}

.p_ca_not_allow_details {
    padding: 10px;
}

.add_to_cart {
    border: 1px solid #3DA8C3 !important;
    background: transparent;
}

.set_pvt_mem_price {
    width: max-content !important;
    padding: 10px;
    font-weight: bold;
    border: 2px solid #fff;
    text-transform: uppercase;
    border-radius: 10px;
    border: none !important;
    color: #000 !important;
    background: #dceff4 !important;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.srt_desc,
.product_description p {
    font-size: 30px;
    padding-right: 20px;
    color: white;
    opacity: 1;
    line-height: 1.4;
}

.quantity_cart_main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FBF6F0;
    width: fit-content;
    padding: 5px;
    border-radius: 10px;
    color: #383838;
    gap: 20px;
}

.quantity button {
    font-size: 34px;
    color: #003851;
    font-weight: 500;
}

.cart_btn a {
    font-weight: 700;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    background: black;
    color: #fff;
    border-radius: 15px;
    font-size: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    height: 65px;
    text-decoration: none;
    font-family: Montserrat;
    border: 0px solid #383838;
}

.cart_btn a:hover {
    background: #10B7C4;
    border: 1px solid #10B7C4;
    color: #fff;
    text-decoration: none;
    transition: background-color -15s !important;
}

.quantity {
    border: 1px solid #000;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: space-around !important;
    border-radius: 15px;
    height: 65px;
}

.quantity p {
    margin-bottom: 0;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 18px;
    opacity: 1;
    position: relative;
}

.single_product:hover {
    box-shadow: 0px 4px 26px rgb(0 56 81 / 15%)
}

.quantity button {
    padding: 0;
    border: 0;
    background: transparent;
}

#home-tab-pane {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

section.articletitlesec {
    background: #3da8c3;
    padding: 50px 0;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.articles-sec {
    padding-top: 80px;
    padding-bottom: 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: wrap;
    gap: 25px 20px;
}

.article-item {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.article-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    object-fit: cover;
}

.article-item h6 {
    font-size: 18px;
    color: #3da8c3;
}

.article-item h5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.main-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-swiper .swiper-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    pointer-events: none;
}

.thumbnail-swiper .swiper-slide {
    width: 130px !important;
    height: auto;
    padding: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.thumbnail-swiper .swiper-slide img {
    width: 100%;
    height: 130px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: contain;
}

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

.thumbnail-swiper .swiper-slide-thumb-active img {
    border: 2px solid #007bff;
    transform: scale(1.2);
}

.set_qty_css,
.set_qty_css:focus {
    max-width: 50px;
    padding: 0;
    text-align: center;
    outline: unset !important;
    border: 0px none !important;
    background-color: #FBF6F0;
    font-size: 24px;
}

.product_main {
    justify-content: center !important;
}

.single_product_main .cart_btn a {
    background: #3da8c3 !important;
    color: #fff;
}

@media screen and (max-width: 768px) {
    body .thumbnail-swiper .swiper-wrapper {
        transform: unset !important;
        margin-top: 30px !important;
    }

    body .faq-section .faq-group .accordion .accordion-collapse.show .accordion-body {
        font-size: 16px;
        white-space: break-spaces;
        word-break: break-word;
        line-height: 1.3;
        display: flex;
        flex-direction: column;
    }

    section.articletitlesec.faq-banner-sec .container {
        flex-direction: column-reverse !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 60px;
    }

    .forever-chemical.chemicalsec__wrapper picture {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    .article-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .shoplist .product_main .single_product_main {
        margin-top: 25px !important;
    }
}

@media screen and (max-width: 980px) {
    section.articletitlesec .article-main__img {
        /* display: none; */
        height: 150px;
        width: 150px;
    }

    .restore_manually_img {
        width: 70%;
    }
}

@media screen and (min-width: 980px) {
    .article-main__block .article-main__img {
        /* display: none; */
        height: 150px;
        width: 150px;
    }

    section.articletitlesec .container {
        display: grid;
        grid-template-columns: 1fr 300px;
    }

    section.articletitlesec .article-main__img {
        height: 300px;
        width: 300px;
        box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
        /* object-fit: cover; */
        margin-bottom: -20px;
        transform: translateY(60px);
    }

    section.articletitlesec>.container>div {
        display: inline-flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    section.articletitlesec.faq-banner-sec h1 {
        text-align: left;
    }
}

.faq-section .faq-img-wrapper {
    max-height: 550px;
}

.faq-section .faq-img-wrapper img {
    max-width: 480px;
    object-fit: cover;
    max-height: 320px;
}

.beneits-icon svg {
    max-width: 80px;
    max-height: 80px;
}
