.navbarContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2%;
    background-color: #F2F2FF;
}

.navright {
    flex-shrink: 1.2;
}

.navright img {
    width: 190px;
}

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.Company-menu,
.Products-menu,
.Support-menu {
    list-style: disc !important;

}

.Company-menu li,
.Products-menu li,
.Support-menu li {
    padding: 10px;
    cursor: pointer;
    display: none;
}

.Company-menu:hover .Company-menu li,
.Products-menu:hover .Products-menu li,
.Support-menu:hover .Support-menu li {
    display: block;
}





/* Style the menu */
.menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.dropdown p,
.menu a {
    font-weight: 600;
    font-size: 23px;
    text-wrap-mode: nowrap;
    color: var(--primary-Color);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.menu li {
    position: relative;
    padding: 15px;
    cursor: pointer;
}

.menu .dropdown li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    list-style: disc;
    font-size: 18px;
}

.menu li:hover {
    background-color: #e7e7e7;
}

/* Dropdown styles */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F2F2FF;
    display: none;
    /* Hide by default */
    min-width: 200px;
    z-index: 100;
    /* Ensure it appears above other elements */
}

.dropdown-menu li {
    padding: 10px;
    white-space: nowrap;
}

.dropdown-menu a {
    color: white;
    padding: 10px;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #e7e7e7;
}

/* Show dropdown when hovering over the menu item or the dropdown itself */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu-products {
    position: fixed;
    width: 100%;
    top: 7%;
}

/* Style the Product container  */

.ProductsDivContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-around;
    height: 40rem;
    background-color: #F2F2FF;
    justify-items: center;
}

.AllproductContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-height: 39rem;
    gap: 1rem;
    overflow-y: auto;
    padding: 0 1rem;

}

.AllproductContainer p {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;

}

.productContainer:hover {
    background: #6161611A;
    border-radius: 10px;
}

.productContainer {
    display: flex;
    align-items: center;
    padding: 5px 10px 5px 5px;
    border-radius: 10px;
    gap: 16px;
    height: 95px;
    width: 100%;

}



.productNamImgContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.productnameContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.productContainer p {
    font-weight: 500;
    font-size: 16px;
    line-height: 110.00000000000001%;
    letter-spacing: -2.2%;
    color: #A4A4A4;
    width: 200px;
    text-wrap-mode: wrap;
    word-wrap: break-word !important;
    width: 200px;
    display: block;
}

.productContainer h2 {
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    color: #293C95;
}

.imgModelContainer {
    display: flex;
    align-items: center;
    gap: 11.12px;
}

.imgModelContainer p {
    font-weight: 500;
    font-size: 22.24px;
    line-height: 150%;
}

.modelsContainer ul {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.modelsContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* min-width: 20rem; */
    /* max-height: 35rem; */
    align-items: flex-start;
    justify-content: center;
}

.modelsContainer li {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    padding: 4px 10px;
}

.productImgContainer {
    display: flex;
    /* max-height: 25rem; */
    max-width: 25rem;
    justify-content: center;
    align-items: center;
}

.productImgContainer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



.navMidRight {
    position: relative;
    display: flex;
    align-items: center;
}

#search {
    width: 289px;
    padding: 10px 4px 17px 44px;

    border: none;
    font-size: 16px;
    background-color: #DEE3EB;
}

.search-icon {
    position: absolute;
    left: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}



.hamburgerIconcontainer,
.close-menu {
    display: none;
}

.navMidLeft {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.mobile-navbar {
    display: none;

}

select#languageSwitcher {
    margin: 10px;
}

.navLeft {
    position: relative;
}

@media only screen and (min-width: 1024px) and (max-width: 1335px) {

    #search {
        width: 150px;
    }

    .menu li {
        padding: 15px 2px;
    }

    .navright {
        flex-shrink: 2;
    }

    .navright img {
        width: 180px;
    }

    .navbarContainer {
        padding: 10px 1%;
    }

    .modelsContainer ul {
        gap: 0;
    }

}


@media screen and (max-width: 1024px) {
    #languageSwitcher {
        display: none;
    }

    .language-dropdown-mobile {
        display: block;
    }

    .navLeft,
    .navMid {
        display: none;
    }

    .navbarContainer {
        justify-content: space-between;
        padding: 1rem 2rem;
        position: relative;
    }

    .hamburgerIconcontainer {
        display: block;
        cursor: pointer;
    }

    .menu {
        position: fixed;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        z-index: 1000;
        background: #f2f2fe;
        width: 100vh;
        left: 0;
        height: 100vh;
    }

    img.logo {
        width: 100%;
        max-width: 250px;
    }

    .model-section ul li {
        padding: 8px 0;
        font-size: 16px;
        cursor: pointer;
    }

    .view-product {
        margin-top: 1rem;
        background: #293c95;
        color: white;
        border: none;
        padding: 10px 16px;
        font-size: 16px;
        border-radius: 4px;
    }

    .menu-page {
        display: none;
        animation: fadeIn 0.3s ease-in-out;
    }

    .menu-page.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }


    .model-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }


    .mobile-navbar {
        display: none;
        /* default hidden */
        position: fixed;
        top: 0;
        left: 0;
        background: #f2f2ff;
        width: 100%;
        height: 100%;
        z-index: 9999;
        overflow-y: auto;
    }

    .menu-page {
        display: none;
        padding: 1rem;
    }

    .menu-page.active {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .back {
        cursor: pointer;
        font-size: 20px;
    }

    .close-menu {
        cursor: pointer;
        font-size: 24px;
    }

    .mobile-search-container {
        position: relative;
    }

    .mobile-search {
        width: 100%;
        padding: 0.75rem;
        background: #dee3eb;
        border: none;
        margin: 1rem 0 0 0;
    }

    .main-links li,
    .menu-page ul li {
        font-size: 28px;
        padding: 25px 0;
        cursor: pointer;
        color: var(--primary-Color);
    }

    .product-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .product-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .product-info h4 {
        margin: 0;
        color: #293c95;
    }

    .product-info p {
        margin: 0;
        color: #a4a4a4;
        font-size: 14px;
    }

    .model-section ul li {
        padding: 0.5rem 0;
        font-size: 16px;
    }

    .view-product {
        background: #293c95;
        color: white;
        padding: 0.5rem 1rem;
        border: none;
        margin-top: 1rem;
    }

    .model-img {
        margin-top: 1rem;
        width: 100%;
        max-width: 200px;
    }



    .product-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 15px 0;
    }

    .product-photo-container {
        display: flex;
        gap: 1rem;

    }

    .product-info h4 {
        font-size: 20px;
        color: #293c95;
    }

    .product-info p {
        font-size: 16px;
        color: #a4a4a4;
        font-weight: 500;
        line-height: 110.00000000000001%;
        text-wrap-mode: wrap;
        word-wrap: break-word !important;
        width: 190px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }








    .hamburgerIconcontainer {
        display: block;
        cursor: pointer;
    }

    .hamburgerIconcontainer img {
        width: 30px;
    }

    .close-menu {
        display: block;
        font-size: 26px;
        cursor: pointer;
    }





    .mobile-search {
        border-radius: 6px;
        font-size: 16px;
    }

    select#languageSwitcher {
        margin-left: auto;
        font-size: 16px;
        padding: 0.4rem;
        border-radius: 4px;
        border: 1px solid #ccc;
        background: white;
        color: #293C95;
    }
}

.navMidRight a {
    text-decoration: none;
    color: #f2f2fe;
    font-size: 24px;
    font-weight: 600;
    background-color: var(--primary-Color);
    padding: 10px 20px;
}


.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-item {
    padding: 8px 12px;
    cursor: pointer;
}

.search-item:hover {
    background-color: #f0f0f0;
}

.no-results {
    padding: 8px 12px;
    color: gray;
}


.language-dropdown-mobile {
    display: none;
}


.language-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  background-color: white;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 120px;
}

.lang-options li button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
}

.lang-options li button:hover {
  background-color: #f0f0f0;
}

.language-switcher.active .lang-options {
  display: block;
}
