/********** Template CSS **********/
:root {
    --primary: #3964fe;
    --secondary: #6B7280;
    --light: #F9FAFB;
    --dark: #3964fe;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #555555;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}



/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}


/*** Product ***/
/* Product Tabs Container */
.product-tabs-container {
    position: relative;
    overflow: visible;
    margin-bottom: 30px;
}

.product-tabs-container::-webkit-scrollbar {
    height: 6px;
}

.product-tabs-container::-webkit-scrollbar-track {
    background: transparent;
}

.product-tabs-container::-webkit-scrollbar-thumb {
    background-color: rgba(59, 184, 21, 0.5);
    border-radius: 3px;
}

.product-tabs-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(59, 184, 21, 0.8);
}

/* Product Tabs */
.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
    width: 100%;
    margin: 0;
}

.product-tabs .nav-item {
    margin: 0;
    white-space: nowrap;
}

.product-tabs .nav-item .btn {
    color: var(--dark);
    min-width: auto;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    border-width: 2px;
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.product-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .08);
}

.product-item .position-relative {
    position: relative;
    overflow: hidden;
}

.product-item .position-relative::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.product-item img {
    transition: .5s;
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: var(--primary) !important;
}

/* Product Category Title */
.product-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Product Info Section */
.product-item .text-center {
    /* padding: 1.5rem; */
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.product-item:hover .text-center {
    background-color: #f0f4f8;
}

.product-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.product-item h5:hover {
    color: var(--primary);
}

.product-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.product-item p strong {
    color: var(--dark);
    font-weight: 600;
}

.product-item .text-primary {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 0.75rem;
}

/* Product Inquire Button */
.product-item .border-top {
    border-top: 1px solid #e9ecef;
}

.product-item small {
    display: block;
}

.product-item small a {
    display: block;
    padding: 0.75rem;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-item small a:hover {
    color: var(--primary) !important;
    background-color: rgba(60, 184, 21, 0.05);
    transform: translateY(-2px);
}

.product-item small a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.product-item small a:hover::after {
    width: 100%;
    left: 0;
}

/* View More and Contact Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    /* box-shadow: 0 4px 12px rgba(60, 184, 21, 0.3); */
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-primary:hover {
    background-color: #2a50d4;
    border-color: #2a50d4;
    /* box-shadow: 0 6px 16px rgba(60, 184, 21, 0.4); */
    transform: translateY(-2px);
}

/* Tab Buttons */
.nav-pills .nav-link {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(60, 184, 21, 0.3);
    transform: translateY(-2px);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(60, 184, 21, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(60, 184, 21, 0.2);
}

/* Responsive Layout Adjustments */
@media (max-width: 767.98px) {

    /* Adjust tab buttons for mobile */
    .nav-pills {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-pills .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    /* Adjust product item padding for mobile */
    .product-item .text-center {
        padding: 1rem;
    }

    /* Adjust product image height for mobile */
    .product-item img {
        height: 180px;
    }
}

@media (max-width: 575.98px) {

    /* Adjust section header for mobile */
    .section-header h1 {
        font-size: 1.8rem;
    }

    /* Adjust product title font size for mobile */
    .product-item h5 {
        font-size: 1rem;
    }

    /* Adjust product image height for small mobile */
    .product-item img {
        height: 160px;
    }
}

/* Overall Layout Improvements */
.container-xxl.py-5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Product Grid Spacing */

/* Product Category Margin Adjustment */
.product-category-title {
    margin: 2.5rem 0 1.25rem;
}

/* Stock Label Styling */
.position-absolute.bg-secondary {
    background-color: var(--primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/*** Related Products Slider ***/
/* Related Products Carousel Container */
.related-products-carousel {
    position: relative;
    padding: 0 45px;
}

/* Owl Carousel Navigation Buttons */
.related-products-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.related-products-carousel .owl-nav button.owl-prev,
.related-products-carousel .owl-nav button.owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary) !important;
    color: white !important;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(60, 184, 21, 0.3);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    opacity: 0.9;
}

.related-products-carousel .owl-nav button.owl-prev:hover,
.related-products-carousel .owl-nav button.owl-next:hover {
    background-color: #2e9a13 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(60, 184, 21, 0.4);
    opacity: 1;
}

/* Navigation Button Icons */
.related-products-carousel .owl-nav button.owl-prev i,
.related-products-carousel .owl-nav button.owl-next i {
    font-size: 1.5rem;
    color: white;
}

/* Hide navigation text */
.related-products-carousel .owl-nav button span {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .related-products-carousel {
        padding: 0 35px;
    }

    .related-products-carousel .owl-nav button.owl-prev,
    .related-products-carousel .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .related-products-carousel .owl-nav button.owl-prev i,
    .related-products-carousel .owl-nav button.owl-next i {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .related-products-carousel {
        padding: 0 30px;
    }

    .related-products-carousel .owl-nav button.owl-prev,
    .related-products-carousel .owl-nav button.owl-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .related-products-carousel .owl-nav button.owl-prev i,
    .related-products-carousel .owl-nav button.owl-next i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .related-products-carousel {
        padding: 0 25px;
    }

    .related-products-carousel .owl-nav button.owl-prev,
    .related-products-carousel .owl-nav button.owl-next {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .related-products-carousel .owl-nav button.owl-prev i,
    .related-products-carousel .owl-nav button.owl-next i {
        font-size: 0.9rem;
    }
}

/* Touch Support */
.related-products-carousel {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/*** Product Detail ***/
.product-main-image {
    height: 400px;
    overflow: hidden;
}

.product-main-image img {
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnail {
    height: 80px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-thumbnail:hover {
    border: 2px solid var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-thumbnail.active {
    border: 2px solid var(--primary);
}

.product-thumbnail img {
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    color: var(--dark);
    line-height: 1.2;
}

.product-info .bg-primary {
    background-color: var(--primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spec-item {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spec-item p {
    margin: 0.5rem 0;
    color: #666;
}

.spec-item p.fw-bold {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .product-main-image {
        height: 300px;
    }

    .product-thumbnail {
        height: 60px;
    }

    .spec-item {
        margin-bottom: 1rem;
    }
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}