body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    height: 8.5vh;
    min-height: 8.5vh;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    margin-right:20px;
}

.nav-link {
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fff;
}
        
.nav-link:hover {
    background-color: #f8f9fa;
    color: #3498db !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.navbar-toggler:focus {
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(52, 152, 219, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero {
    height: 100vh;
    min-height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-color: #4CAF50;
    box-sizing: border-box;
}

.about-hero, .contact-hero, .products-hero, .blog-hero {
    height: 50vh;
    min-height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-color: #4CAF50;
    box-sizing: border-box;
}

.hero::before, .about-hero::before, .contact-hero::before, .products-hero::before, .blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container{
    position: relative;
    z-index: 1;
    top: -13rem;
}

.about-hero .container, .contact-hero .container, .products-hero .container, .blog-hero .container {
    position: relative;
    z-index: 1;
}

.hero h1, .about-hero h1, .contact-hero h1, .products-hero h1, .blog-hero h1 {
    font-size: 3rem;
    opacity: 1;
    animation: fadeIn 1s ease-in;
    font-family: 'Playfair Display', serif;
}

.hero p {
    font-size: 1.5rem;
    opacity: 1;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
    opacity: 1;
}

.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.btn-message {
    background-color: #4CAF50;
    color: #000;
    border-color: #4CAF50;
    opacity: 1;
}

.btn-message:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.btn-shop-now {
    background-color: #fff;
    color: #4CAF50;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 25px;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-shop-now:hover {
    background-color: #f8f9fa;
}

.btn-clear-filters {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
    width: 100%;
}

.btn-clear-filters:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.featured-products .card {
    overflow: hidden;
}
.featured-products .card-img-top {
    transition: transform 0.3s ease;
    transform: scale(1);
}
.featured-products .card-img-top:hover {
    transform: scale(1.1);
}

.featured-products .row {
    margin-top:1.8rem;
}

.card {
    transition: none;
}

.featured-products .card-title {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-align: center;
}
.featured-products .card:hover .card-title {
    color: #4CAF50;
}

.product-categories {
    background-color: #fff;
}

.product-categories .section-header {
    position: sticky;
    top: 8.5vh;
    z-index: 10;
    background-color: #fff;
    transition: top 0.3s ease, opacity 0.3s ease;
}

.product-categories .section-header.sticky-active {
    opacity: 0.95;
    transform: translateY(0);
}

.product-categories h2 {
    color: #4CAF50;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.product-categories h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-categories .checkbox-filter {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    position: sticky;
    top: 110px;
    z-index: 9;
    transition: top 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.product-categories .checkbox-filter.sticky-active {
    opacity: 0.95;
    transform: translateY(0);
}

.product-categories .form-check {
    margin-bottom: 10px;
}

.product-categories .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.product-categories .form-check-label {
    font-size: 1.1rem;
    color: #333;
    margin-left: 10px;
}

.product-categories #product-search {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.product-categories #product-search:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.product-categories #product-count {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

#blog-count {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.product-categories .product-item {
    margin-bottom: 10px;
    cursor: pointer;
}

.product-categories .product-item .card {
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
}

.product-categories .product-item .card-img-top {
    width: 100%;
    max-height: 200px; /* Limit image height to fit within card */
    object-fit: contain;
    aspect-ratio: 4 / 3;
}

.product-categories .product-item .card-body {
    padding: 15px;
    flex-grow: 1; /* Allow body to take available space */
    display: flex;
    flex-direction: column;
}

.product-categories .product-item .card-title {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-categories .product-item .card-text {
    color: #666;
    font-size: 1rem;
    text-align: left; /* Left-align card text */
    overflow: hidden; /* Hide overflowing text */
    max-height: 4.5rem; /* Fallback for browsers not supporting -webkit-line-clamp (2 lines * 1.5rem line height) */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limit to 2 lines */
    line-clamp: 3;
    transition: max-height 0.3s ease, -webkit-line-clamp 0.3s ease; /* Smooth transition for hover */
}

.product-categories .product-item .card-text:hover {
    max-height: none; /* Remove height restriction on hover */
    -webkit-line-clamp: unset; /* Remove line clamp on hover */
    line-clamp: unset;
}

.product-categories .product-item:hover .card-title {
    color: #4CAF50;
}

.product-categories .product-item:hover .card-img-top {
    transform: scale(1.05);
}

.pagination .page-link {
    color: #4CAF50;
    border: none;
    margin: 0 5px;
    position: relative;
}

.pagination .page-item.active .page-link {
    background-color: #4CAF50;
    color: white;
}

.pagination .page-link:hover {
    background-color: #45a049;
    color: white;
}

.pagination .page-first,
.pagination .page-prev,
.pagination .page-next,
.pagination .page-last {
    font-size: 1.2rem;
    padding: 6px 12px;
}

.pagination .page-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.pagination .page-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    outline: none;
}

.testimonials .carousel-item {
    padding: 0 5rem;
}

.testimonials .carousel-control-prev,
.testimonials .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.testimonials .carousel-control-prev:hover,
.testimonials .carousel-control-next:hover {
    opacity: 1;
}

.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    background-image: none;
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.testimonials .carousel-control-prev-icon::before,
.testimonials .carousel-control-next-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
}

.testimonials .carousel-control-prev-icon::before {
    transform: translate(-50%, -50%) rotate(135deg);
}

.testimonials .carousel-control-next-icon::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.certifications {
    background-color: #fff;
    padding: 2rem 0;
}

.certifications h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.certification-carousel {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.certification-images {
    display: flex;
    justify-content: space-between;
    animation: slide 30s linear infinite;
    width: 200%;
}

.certification-images img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 30px;
    flex-shrink: 0;
}

@keyframes slide {
    0% { transform: translateX(0); }
    50% { transform: translateX(-50%); }
    50.01% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.about-us, .company-overview, .our-strengths, .our-team, .product-categories {
    background-color: #fff;
}

.featured-products h2, .about-us h2, .why-choose-us h2, .company-overview h2, .our-strengths h2, .our-team h2 {
    color: #4CAF50;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.about-us h3, .company-overview h3, .our-strengths h3, .our-team h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-us p, .company-overview p, .our-strengths p, .our-team p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.why-choose-us .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 2rem;
}

.why-choose-us .why-choose-us-item {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-choose-us .row .col-md-6 {
    margin-bottom: 1rem;
}

.why-choose-us .why-choose-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.why-choose-us h4, .our-strengths h4 {
    color: #4CAF50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.why-choose-us p, .our-strengths p {
    color: #666;
    font-size: 1rem;
    text-align: left;
    flex-grow: 1;
}

.about-content {
    line-height: 1.6;
    margin-top: 20px;
}

.about-content h3 {
    margin-top: 20px;
    font-weight: bold;
}

.about-content ul {
    list-style-type: none;
    padding: 0;
}

.about-content ul li {
    margin-bottom: 10px;
}

.about-content ul li strong {
    color: #4CAF50;
}

.cta {
    background-color: #fff;
}

.cta .contact-info {
    margin-top: 1rem;
}

.cta .contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.cta .contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.cta .contact-details {
    display: flex;
    flex-direction: column;
}

.cta .contact-details strong {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.cta .contact-details div {
    color: #666;
    font-size: 1.1rem;
}

.cta .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding-right: 20px;
}

.cta .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.cta .form-group {
    margin-bottom: 1rem;
    position: relative;
}

.cta .required-asterisk {
    color: #dc3545;
    font-size: 1rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.cta .required-asterisk-textarea {
    top: 20px;
}

.cta .text-center {
    margin-top: 1rem;
}

.cta .col-md-4 {
    width: 38%;
}

.cta .cta-gap {
    width: 2%;
}

.secondary-cta {
    background-color: #4CAF50;
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.secondary-cta h2 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.secondary-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb-section {
    display: block;
    position: fixed;
    top: 8.5vh;
    height:2.5rem;
    width: 100%;
    z-index: 10;
    background-color: #f8f9fa;
    padding:0.5rem 0;
}

.breadcrumb-section .container {
    display: block;
    align-items: center;
    padding:0px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0px;
    border: none;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.95rem;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-size: 1rem;
}

/* Product Detail Page */
.product-detail {
    background-color: #fff;
    padding: 2rem 0;
    padding-top: 90px;
    margin-top:5vh;
}

.product-detail .product-brief {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.product-detail .product-brief .row {
    display: flex;
    align-items: stretch;
}

.product-detail .product-brief .image-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}

.product-detail .product-brief .main-image-container {
    position: relative;
    flex-grow: 1;
}

.product-detail .product-brief img.main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-detail .product-brief .zoom-container {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
    background-repeat: no-repeat;
    background-size: 200%;
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.product-detail .product-brief .zoom-lens {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #4CAF50;
    background: rgba(76, 175, 80, 0.3);
    display: none;
    cursor: none;
}

.product-detail .product-brief .thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail .product-brief .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 0.5rem 0;
}

.product-detail .product-brief .thumbnails img:hover {
    transform: scale(1.05);
}

.product-detail .product-brief .thumbnail-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail .product-brief .thumbnail-nav button {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #fff;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-detail .product-brief .thumbnail-nav button:hover {
    background-color: #45a049;
}

.product-detail .product-brief .thumbnail-nav .up-arrow::before {
    content: '\f077';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.product-detail .product-brief .thumbnail-nav .down-arrow::before {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.product-detail .product-brief h2 {
    color: #4CAF50;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.product-detail .product-brief .spacer {
    width: 100%;
}

.product-detail .product-brief p.model {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.product-detail .product-brief .spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.product-detail .product-brief .spec-item i {
    color: #4CAF50;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.product-detail .product-brief .spec-item span {
    color: #333;
    font-size: 1.1rem;
}

.product-detail .product-brief .btn-inquiry {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    display: block;
    transition: background-color 0.3s ease;
}

.product-detail .product-brief .btn-inquiry:hover {
    background-color: #45a049;
}

.product-detail .specifications {
    margin-top: 2rem;
}

.product-detail .specifications h2 {
    color: #fff;
    background-color: #4CAF50;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.product-detail .specifications .spec-grid {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.product-detail .specifications .spec-grid table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail .specifications .spec-grid td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.product-detail .specifications .spec-grid .spec-item strong {
    color: #333;
    font-weight: 600;
    margin-right: 0.5rem;
}

.product-detail .specifications .spec-grid .spec-item span {
    color: #666;
    font-size: 1rem;
}

.product-detail .features {
    margin-top: 2rem;
}

.product-detail .features h2 {
    color: #fff;
    background-color: #4CAF50;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.product-detail .features .row {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    
}

.product-detail .features .feature-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    
}

.product-detail .features .feature-item img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    border:1px solid #ddd;
}

.product-detail .features .feature-item h3 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-detail .features .feature-item p {
    color: #666;
    font-size: 1rem;
}

.product-detail .oem-odm {
    margin-top: 2rem;
}

.product-detail .oem-odm h2 {
    color: #fff;
    background-color: #4CAF50;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.product-detail .oem-odm .option-frame {
    border: 1px solid #000;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 4px;
    width:250px;
    height:45px;
}

.product-detail .faq {
    margin-top: 2rem;
}

.product-detail .faq h2 {
    color: #fff;
    background-color: #4CAF50;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.product-detail .faq .faq-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.product-detail .faq .faq-item h3 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-detail .faq .faq-item h3 .toggle-btn::before {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #4CAF50;
}

.product-detail .faq .faq-item h3:not(.collapsed) .toggle-btn::before {
    content: '\f077'; 
}

.product-detail .faq .faq-item p {
    color: #666;
    font-size: 1rem;
}

.product-detail .hot-tags {
    margin-top: 2rem;
}

.product-detail .hot-tags h2 {
    color:#333;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: left;
}

.product-detail .hot-tags .tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-detail .hot-tags a {
    background: #f8f9fa;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin: 0.5rem;
}

.product-detail .hot-tags a:hover {
    background-color: #4CAF50;
    color: white;
}

.product-detail .related-products {
    margin-top: 2rem;
}

.product-detail .related-products h2 {
    color: #fff;
    background-color: #4CAF50;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.product-detail .related-products .row {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
}

.product-detail .related-products .related-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-detail .related-products .related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.product-detail .related-products .related-item:hover img {
    filter: brightness(0.7);
}

.product-detail .related-products .related-item img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: filter 0.3s ease;
}

.product-detail .related-products .related-item h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-detail .related-products .related-item p {
    color: #6c757d;
    font-size: 1rem;
}

.blog-section {
    background-color: #fff;
    padding: 2rem 0;
}

.blog-section h2 {
    color: #4CAF50;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.blog-hero .hero-content {
    text-align: left;
    max-width: 600px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.blog-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.blog-section .blog-item {
    margin-bottom: 30px;
    display: flex;
}

.blog-section .blog-item .card {
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-section .blog-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-section .blog-item .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    flex-shrink: 0;
}

.blog-section .blog-item .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-section .blog-item .card-category {
    display: inline-block;
    font-size: 0.9rem;
    color: #fff;
    background-color: #4CAF50;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.blog-section .blog-item .card-title {
    color: #333;
    text-align:left;
    font-size: 1.25rem;
    margin-bottom: 10px;
    max-height: 4.5rem;
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Fallback for older browsers */
    line-clamp: 3; /* Standard property */
    transition: max-height 0.3s ease, -webkit-line-clamp 0.3s ease; /* Smooth transition for hover */
}

.blog-section .blog-item .card-title:hover {
    max-height: none; /* Remove height restriction on hover */
    -webkit-line-clamp: unset; /* Remove line clamp on hover */
    line-clamp: unset; /* Standard property */
}

.blog-section .blog-item .card-text {
    color: #666;
    font-size: 1rem;
    max-height: 4.5rem;
    margin-bottom: 10px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Fallback for older browsers */
    line-clamp: 3; /* Standard property */
}

.blog-section .blog-item .card-text:hover {
    max-height: none;/* Remove height restriction on hover */
    -webkit-line-clamp: unset; /* Remove line clamp on hover */
    line-clamp: unset;
}

.blog-section .blog-item .card-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.blog-section .blog-item .btn {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    margin-top: auto;
}

.blog-section .blog-item .btn:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.newsletter-cta {
    background-color: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
}

.newsletter-cta h2 {
    color: #4CAF50;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.newsletter-cta .newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-cta .newsletter-form input {
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    padding: 10px;
    flex-grow: 1;
    font-size: 1rem;
}

.newsletter-cta .newsletter-form input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    outline: none;
}

.newsletter-cta .newsletter-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.newsletter-cta .newsletter-form button:hover {
    background-color: #45a049;
}

/* Fixed Buttons Styles */
.fixed-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.fixed-button {
    background-color: #4CAF50;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative; /* For tooltip positioning */
}

.fixed-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

#back-to-top {
    display: none; /* Hidden by default, shown via JS */
}

.fixed-button i {
    font-size: 1.5rem;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    line-height: 1;
}

/* Ensure Font Awesome fonts load quickly */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block; /* Fallback to block to ensure icons render immediately */
    src: url('fontawesome-5.15.1/webfonts/fa-solid-900.woff2') format('woff2'),
         url('fontawesome-5.15.1/webfonts/fa-solid-900.woff') format('woff'),
         url('fontawesome-5.15.1/webfonts/fa-solid-900.ttf') format('truetype');
}

/* Tooltip for fixed buttons */
.fixed-button:hover::after {
    content: attr(title);
    position: absolute;
    right: 60px; /* Position to the left of the button */
    top: 50%;
    transform: translateY(-50%) scale(1);
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: popIn 0.2s ease-out;
    transition: opacity 0s ease, transform 0.2s ease;
    opacity: 1;
}

.fixed-button::after {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

/* Animation for tooltip pop-in effect */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Chat Modal Styles */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.chat-modal-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-modal-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.chat-modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background-color: #4CAF50;
    color: white;
    margin-left: auto;
}

.chat-message.bot {
    background-color: #e9ecef;
    color: #333;
}

.chat-input-container {
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chat-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#chat-input:focus {
    border-color: #4CAF50;
    outline: none;
}

#chat-mode-toggle {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

#chat-mode-toggle:hover {
    background-color: #5a6268;
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.contact-modal-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-modal-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.contact-modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.contact-options {
    padding: 15px;
    background-color: #f8f9fa;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-options p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.contact-options .btn {
    width: 100%;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
                padding: 1rem 0;
    }
            
    .nav-item {
        margin: 0.3rem 0;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem !important;
        margin: 0;
        border-left: 3px solid transparent;
        border-radius: 0;
    }
    
    .nav-link:hover {
        border-left: 3px solid #3498db;
        transform: translateX(5px);
    }

    .about-us h2, .company-overview h2, .our-strengths h2, .our-team h2, .product-categories h2, .product-detail h1, .blog-section h2, .newsletter-cta h2,
    .product-detail .specifications h2, .product-detail .features h2, .product-detail .oem-odm h2, .product-detail .faq h2,
    .product-detail .hot-tags h2, .product-detail .related-products h2 {
        font-size: 1.8rem;
    }
    
    .about-us h3, .company-overview h3, .our-strengths h3, .our-team h3, .product-categories h3, .product-detail .parameters h3 {
        font-size: 1.25rem;
    }
    
    .why-choose-us h4, .our-strengths h4 {
        font-size: 1.1rem;
    }
    
    .why-choose-us .row .col-md-6:nth-child(1) .why-choose-us-item,
    .why-choose-us .row .col-md-6:nth-child(2) .why-choose-us-item {
        margin-bottom: 1.5rem;
    }

    .cta .col-md-7, .cta .col-md-4 {
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .cta .cta-gap {
        display: none;
    }

    .cta .required-asterisk {
        right: 5px;
    }

    .product-categories .row {
        flex-direction: column;
    }

    .product-categories .checkbox-filter {
        margin-bottom: 20px;
        position: sticky;
        top: 110px;
        transition: top 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    .product-categories .checkbox-filter.sticky-active {
        opacity: 0.95;
        transform: translateY(0);
    }

    .product-categories .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-categories .card-img-top {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: contain;
        max-width: 100%;
    }

    .product-detail .parameters li {
        flex-direction: column;
        gap: 5px;
    }

    .product-detail .product-brief {
        flex-direction: column;
    }

    .product-detail .product-brief .row {
        flex-direction: column;
    }

    .product-detail .product-brief .image-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .product-detail .product-brief .thumbnails {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }

    .product-detail .product-brief .thumbnail-nav {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .product-detail .product-brief .thumbnail-nav button {
        margin: 0 0.5rem;
    }

    .product-detail .product-brief .spacer {
        display: none;
    }

    .product-detail .product-brief .zoom-container,
    .product-detail .product-brief .zoom-lens {
        display: none !important;
    }

    .product-detail .features .feature-item img {
        max-width: 100%;
        height: 150px;
    }

    .product-detail .related-products .related-item img {
        max-width: 100%;
        height: 150px;
    }

    .product-detail .specifications .spec-grid table {
        font-size: 0.9rem;
    }

    .product-detail .specifications .spec-grid td {
        padding: 0.5rem;
    }

    .breadcrumb {
        padding: 3px 8px;
        margin-bottom: 8px;
    }

    .breadcrumb-item a, .breadcrumb-item.active {
        font-size: 0.8rem;
    }

    .product-detail {
        padding-top: 78px;
    }

    .blog-section .blog-item .card-img-top {
        height: 150px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .newsletter-cta .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-cta .newsletter-form input {
        border-radius: 4px;
    }

    .newsletter-cta .newsletter-form button {
        border-radius: 4px;
    }

    .chat-modal-content, .contact-modal-content {
        width: 90%;
        max-height: 80vh;
    }

    .blog-section .row {
        flex-direction: column;
    }

    .blog-section .blog-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Adjust tooltip positioning for smaller screens */
    @media (max-width: 576px) {
        .fixed-button:hover::after {
            right: 50px; /* Slightly closer to button on small screens */
            font-size: 0.9rem; /* Smaller font for mobile */
            padding: 6px 10px;
        }
    }
}

/* Cookie Alert Styles */
.cookiealert {
    background: #2c3e50; /* Dark background for contrast */
    color: #ecf0f1;
    padding: 15px;
    z-index: 1080; /* Above fixed buttons */
    border-radius: 0;
    font-size: 0.9rem;
}
.cookiealert a {
    color: #1abc9c; /* Green link */
    text-decoration: underline;
}
.cookiealert.show {
    display: block !important;
}
.cookiealert .acceptcookies {
    background: #1abc9c; /* Green button */
    border-color: #1abc9c;
}
.cookiealert .acceptcookies:hover {
    background: #16a085;
}