
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

body {
    margin: 0;
    font-family: 'Ambit', sans-serif;
    background-color: #fff;
    font-weight: 500;
}

.nav-links {
    display: flex;

}

.nav-item {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;

    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background-color: #e0e0e0;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.submenu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.submenu-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.submenu-item span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.nav-item:hover .submenu {
    display: block;
}

/* Nested submenu */
.submenu-item.has-nested:hover .nested-submenu {
    display: block;
}

.nested-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 105%;
    background: #fff;
    padding: 10px;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 101;
}

.nested-submenu div {
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
}

.nested-submenu div:hover {
    background-color: #f3f3f3;
}

.header {
    display: flex;
    gap: 280px;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid #ccc;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.info-item i {
    color: #007bff;
    font-size: 16px;
    margin-right: 8px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}

.category-btn {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    margin-left: 60px;
    margin-right: -80px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn i {
    font-size: 18px;
}

/* Dropdown Menu */
.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 32px;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-item:hover {
    background: #f1f1f1;
}

/* Dropdown Submenu */
.dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.submenu {
    list-style: none;
    padding-left: 15px;
    display: none;
}

.submenu li {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.submenu li:hover {
    background: #f9f9f9;
}

/* View More */
.view-more {
    padding: 12px;
    text-align: center;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    border-top: 1px solid #ddd;
}

.view-more:hover {
    background: #f1f1f1;
}

.nav-links {
    display: flex;
    gap: 10%;
    margin-right: 9%;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 20px;

}


.icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icons i {
    font-size: 18px;
    color: #333;
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #007bff;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
    --bs-badge-padding-y: -0.65em;

}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.top-bar {
    display: none;
}

@media(max-width:1238px) {
    .nav-links {
        gap: 5%;
        margin-right: 2%;
    }

}

@media(max-width:1115px) {
    .nav-links {
        gap: 0%;
        margin-right: -10%;
    }
}

@media(max-width:2000px) {
    .jbh-main-header {
        display: none;
    }
}


@media (max-width: 1024px) {
    .nav-links {
        gap: 0%;
        margin-right: -9%;
    }

}


@media (max-width: 997px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 15px 20px;
        display: none;
    }

    .info-item {
        display: none;
    }

    .icons {
        display: none;
    }

    .logo {
        display: flex;

    }

    .logo img {
        height: 40px;
        margin-right: 10px;
        margin-top: 10%;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-bar {
        flex-direction: row-reverse;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px
    }

    .nav-links.show {
        display: flex;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 16px;
        margin-top: 17px;
    }

    .submenu {
        position: static;
        width: 189%;
        box-shadow: none;
        margin-top: 18px;
    }


    .submenu-content {
        grid-template-columns: 1fr;
    }

    .category-btn {
        width: 100%;
        justify-content: space-between;
        margin: 0;
        display: none;
    }

    .category-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .icons {
        margin-top: 10px;
        justify-content: flex-end;
        width: 99%;
    }

    #search-bar {
        flex: 1;
        margin-left: 10px;
        max-width: 200px;
    }


    .top-bar {
        display: block;
        /* justify-content: space-between; */
        /* gap: 85%; */
        align-items: center;
        padding: 0px 0px;
        /* background-color: white; */
        margin-left: 17px;

    }

    .top-logo {
        flex: 1;
    }

    .top-logo img {
        height: 41px;
        width: 99px;
        margin-top: 11px;
    }

    .top-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .top-icons {
        display: flex-end;
        gap: 20px;
        float: inline-end;
    }

    .top-hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .jbh-main-header {
        display: block;
        width: 100%;

        float: right;
    }
}

/* Mobile Nav Links (Initially hidden off-screen) */
.mobile-nav-links {
    display: none;
    /* Hide on desktop */
    position: absolute;
    left: -250px;
    /* Off-screen by default */
    top: 97px;
    z-index: 1;
    width: 183px;
    height: 34%;
    background-color: #fff;
    transition: left 0.3s ease;
}

.mobile-nav-links a {
    color: black;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
}

.mobile-nav-links a:hover {
    background-color: #444;
}

/* Mobile Specific - Show Hamburger Button */


/* Media Query for Mobile View (smaller than 768px) */
@media (max-width: 768px) {

    /* Show Hamburger button on mobile */


    /* Show the mobile nav links */
    .mobile-nav-links.show {
        left: 0;
        /* Slide in from the left */
        display: block;
        /* Make the mobile nav visible */
    }

    /* Hide the desktop navigation menu on mobile */
    .nav-links {
        display: none;
    }

    @keyframes wheelScrollIn {
        0% {
            transform: rotateZ(-90deg) translateX(-250px);
            opacity: 0;
        }

        100% {
            transform: rotateZ(0deg) translateX(0);
            opacity: 1;
        }
    }

    @keyframes foldOut {
        0% {
            transform: perspective(600px) rotateX(-90deg);
            opacity: 0;
        }

        100% {
            transform: perspective(600px) rotateX(0deg);
            opacity: 1;
        }
    }

    @keyframes rollPaperIn {
        0% {
            transform: perspective(800px) rotateY(-90deg);
            opacity: 0;
        }

        100% {
            transform: perspective(800px) rotateY(0deg);
            opacity: 1;
        }
    }

    .mobile-nav-links {
        display: none;
        position: absolute;
        left: 0;
        top: 77px;
        z-index: 1;
        width: 150px;
        height: 100vh;
        /* background-color: #333; */
        transform-origin: left center;
        transform: perspective(800px) rotateY(-90deg);
        backface-visibility: hidden;
        /* Improves visual crispness */
    }

    /* Active state: show and animate like a paper roll opening */
    .mobile-nav-links.show {
        display: block;
        animation: rollPaperIn 0.6s ease forwards;
    }



}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #f8f9fa;

    /* or your nav bg */
}

.hero-slider {
    transition: background-color 0.5s ease;
}

/* Modal base */
.modal-jbh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal box */
.modal-content {
    background-color: #fff;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

/* Close button */
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.banner {
    background-image: url('http://ktmprints.jbhtechinnovation.com/static/assets/images/printer_jbh.avif');
    /* Replace with your actual image URL or path */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 20px;
    color: white;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* dark overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 1rem;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin: 0 5px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: #007bff;
    /* Change to your desired hover color */
}

.breadcrumbs span {
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .banner {
        padding: 50px 15px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .breadcrumbs {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        display: inline-block;
        margin: 0 3px;
    }
}

.product-container {
    display: flex;
    padding: 40px;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.product-images {
    width: 50%;
    position: relative;
}

.product-images img {
    width: 100%;
    border-radius: 10px;
}

.product-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    background: red;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    font-weight: bold;
}

.product-details {
    width: 50%;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-range {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 20px;
}

.description {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.product-guide {
    font-weight: bold;
    margin-bottom: 10px;
}

.colors,
.sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
}

.color-red {
    background: red;
}

.color-yellow {
    background: yellow;
}

.color-white {
    background: white;
    border: 2px solid #000;
}

.sizes span {
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
}

.extra-options {
    background: #000;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-box {
    padding: 10px;
    border: 1px solid #ccc;
    width: 60px;
    text-align: center;
}

.add-to-cart {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.icon-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: center;

        text-align: center;

    }

    .product-images img {
        max-width: 100%;
        height: auto;
    }

    .product-details {
        width: 100%;
        margin-top: 110px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    /* margin on both sides */
}

.tabs {
    border-bottom: 1px solid #ccc;
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.tab {
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 10px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.tab.active {
    border-bottom: 3px solid #333;
    color: #000;
}

.tab:hover {
    color: #0071dc;
}

.tab-content {
    margin-top: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content p,
.tab-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.tab-content ul {
    list-style-type: none;
    padding-left: 0;
}

.tab-content ul li::before {
    content: "– ";
    color: #000;
    margin-right: 5px;
}

hr {
    margin-top: 40px;
    border: none;
    border-top: 1px solid #eee;
}

/* Modal Container (hidden by default) */
.modal {
    display: none;
    position: absolute;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);


}

/* Modal Content */
.modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: fixed;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease-in-out
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px 18px;
    background: #0077ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #005bcc;
}

.footer {
    background: #f8f9fa;
    text-align: center;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-logo img {

    /* Increased size */
    height: 50px;
}

.footer-links {
    margin: 25px 0;
    /* Increased margin for more space */
}

.footer-links a {
    text-decoration: none;
    color: black;
    margin: 0 15px;
    font-size: 14px;
}

.social-icons {
    margin: 25px 0;
    /* Increased space */
}

.social-icons a {
    color: black;
    font-size: 18px;
    margin: 0 10px;
}

.copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 15px;
    }

    .footer-logo {
        flex-direction: column;
        font-size: 20px;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-links {
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        margin: 0;
        font-size: 13px;
    }

    .social-icons {
        margin: 20px 0;
    }

    .social-icons a {
        font-size: 16px;
        margin: 0 8px;
    }

    .copyright {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* 3D Printer */
.printer {
    width: 350px;
    height: 230px;
    background: linear-gradient(135deg, #1e2a33, #4e5d6b);
    border-radius: 20px;
    position: relative;
    perspective: 1000px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 60px;
}

/* Main Printer Body */
.printer-body {
    width: 100%;
    height: 80%;
    background: linear-gradient(135deg, #3a4757, #596b7f);
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(10deg) translateZ(30px);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Buttons and Lights on the Printer */
.printer-top {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #1f2b34, #3e4d61);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    position: absolute;
    top: -30px;
    z-index: 10;
    margin-top: 17px;
}



/* Paper Feed Animation */
.paper {
    width: 90%;
    height: 278px;
    background: #fff;
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: paperFeed 5s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
}

/* Product Image */
.paper img {
    width: 100%;
    max-height: 160px;
    /* Increased size of image */
    border-radius: 8px;
    margin-top: 10px;
}

/* Product Name */
.product-name {
    font-weight: bold;
    font-size: 20px;
    margin-top: 15px;
    /* Added margin for spacing */
    color: #2c3e50;
    text-align: center;
    /* Centered the text */
}

/* Product Description */
.product-desc {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 8px;
}

@keyframes paperFeed {
    0% {
        top: -200px;
    }

    50% {
        top: 40px;
        /* Moves the paper in front of the printer */
    }

    100% {
        top: 40px;
        /* Keep the paper in front of the printer */
    }
}

/* Tray where the paper slides */
.printer-tray {
    position: absolute;
    bottom: 0;
    height: 25px;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 0 0 10px 10px;
    transform: translateZ(-10px);
}

/* Container to stack papers */
.paper-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Stopping animation for first paper */
.paper.stopped {
    animation: none;
    top: 40px;
    /* Fix the position */





}

@media(max-width: 768px) {
    .printer {
        width: 270px;
        height: 210px;
        background: linear-gradient(135deg, #1e2a33, #4e5d6b);
        border-radius: 20px;
        position: relative;
        perspective: 1000px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        margin-top: 30px;
    }

    /* Main Printer Body */
    .printer-body {
        width: 100%;
        height: 80%;
        background: linear-gradient(135deg, #3a4757, #596b7f);
        border-radius: 20px 20px 0 0;
        position: absolute;
        top: 0;
        left: 0;
        transform: rotateX(10deg) translateZ(30px);
        box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    }

    /* Buttons and Lights on the Printer */
    .printer-top {
        width: 100%;
        height: 40px;
        background: linear-gradient(135deg, #1f2b34, #3e4d61);
        border-radius: 10px 10px 0 0;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
        position: absolute;
        top: -30px;
        z-index: 10;
    }

  

    /* Paper Feed Animation */
    .paper {
        width: 90%;
        height: 278px;
        background: #fff;
        position: absolute;
        top: -200px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        animation: paperFeed 5s ease-out forwards;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        border-radius: 8px;
    }

    /* Product Image */
    .paper img {
        width: 100%;
        max-height: 160px;
        /* Increased size of image */
        border-radius: 8px;
        margin-top: 10px;
    }

    /* Product Name */
    .product-name {
        font-weight: bold;
        font-size: 20px;
        margin-top: 15px;
        /* Added margin for spacing */
        color: #2c3e50;
        text-align: center;
        /* Centered the text */
    }

    /* Product Description */
    .product-desc {
        font-size: 14px;
        color: #7f8c8d;
        text-align: center;
        margin-top: 8px;
    }

    @keyframes paperFeed {
        0% {
            top: -200px;
        }

        50% {
            top: 40px;
            /* Moves the paper in front of the printer */
        }

        100% {
            top: 40px;
            /* Keep the paper in front of the printer */
        }
    }

    /* Tray where the paper slides */
    .printer-tray {
        position: absolute;
        bottom: 0;
        height: 25px;
        width: 100%;
        background: linear-gradient(135deg, #2c3e50, #34495e);
        border-radius: 0 0 10px 10px;
        transform: translateZ(-10px);
    }

    /* Container to stack papers */
    .paper-container {
        position: relative;
        width: 100%;
        height: 100%;
    }

    /* Stopping animation for first paper */
    .paper.stopped {
        animation: none;
        top: 40px;
        /* Fix the position */
    }

}
