.header-icon,
.header-search,
.main-logo,
.navbar {
    height: auto
}

#ball,
#dot {
    z-index: 999999999
}

.dropdown-item,
.menu-item,
.product-item {
    cursor: pointer
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding-top: 1vw;
    z-index: 101
}

.nav-item a {
    font-weight: 600;
    margin: 0 .8vw;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom .3s;
    font-size: 1vw
}

.nav-item a:hover {
    border-bottom: 1px solid red;
    color: red !important
}

.header-icon {
    width: 30px;
    position: relative;
    bottom: 5px
}

.menu,
.video-container {
    position: absolute
}

.header-search {
    width: 25px
}

.main-logo {
    width: 14vw;
    margin: 0 2vw
}

.background-img {
    background: url("../images/background-img/image.png") left bottom/cover #050a30 !important
}

.video-container video {
    margin: 20px 50px;
    width: auto;
    height: 65vh;
    border-radius: 10px
}

.inner-testimonial-section {
    border: 1px solid #000;
    background-color: #fff;
    height: 200px;
    width: 300px
}

#ball,
#dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none
}

#dot {
    width: 10px;
    height: 10px;
    background: #fff
}

#ball {
    width: 30px;
    height: 30px;
    border: 2px solid #ff4500;
    background: 0 0
}

.navbar {
    background-color: transparent;
    transition: background-color .3s
}

.menu,
.product-menu,
.subcategory-menu {
    border-radius: 8px;
    background-color: #ff0f39;
    display: none;
    opacity: 0;
    transition: .2s
}

.menu {
    padding: .3vw .5rem
}

.dropdown-menu {
    top: 75%;
    left: 0;
    margin-top: .5rem;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: .25rem;
    width: 18vw;
    background: #ff0f39;
    font-size: 1vw !important
}

/* Nudge the Products categories panel left to free up room on the right for the
   deeper (Biotage 4th-level) flyouts. Bump this value to shift it further. */
#categoriesMenu {
    left: -5vw
}

/* Biotage category + sub-category flyouts. Pin an explicit panel width so the
   absolutely-positioned (left:100%) panel can't collapse to min-content and force
   extra line-wraps — at this width the longest name ("Sample extraction and
   clean-up") fits in 2 lines. The link then fills the row instead of a fixed vw. */
.biotage-narrow,
.biotage-narrow.floating-menu {
    width: 15vw;
    min-width: 15vw
}

.biotage-narrow .menu-content a {
    width: auto;
    flex: 1 1 auto;
    min-width: 0
}

/* Tighten the space around the dot icon (gap to text + row side padding) by 50%. */
.biotage-narrow .menu-content {
    gap: .375rem
}

.biotage-narrow .menu-item {
    padding-left: .25rem;
    padding-right: .25rem
}

.menu-content a {
    font-size: .9vw !important;
    margin: 0;
    padding: 0;
    width: 14vw
}

.category-title {
    grid-column: span 2;
    font-size: .85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .5rem .75rem;
    margin-bottom: .25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color)
}

.product-menu,
.subcategory-menu {
    top: 0;
    left: 100%;
    margin-left: .5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 10
}

.floating-menu {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    margin-left: 0;
    z-index: 120;
    min-width: 18vw;
}

.menu-content,
.menu-item {
    display: flex;
    align-items: center
}

.product-menu.show-menu,
.subcategory-menu.show-menu {
    display: block;
    opacity: 1;
    max-height: 24vh;
    overflow-y: auto;
    overflow-x: hidden
}


.menu-item {
    padding: .35rem .5rem;
    justify-content: space-between;
    color: var(--text-primary);
    transition: .3s ease-in-out;
    border-radius: 4px;
    position: relative;
    font-size: .9vw;
    border: 1px solid transparent
}

.menu-item:hover {
    border: 1px solid #fff
}

.menu-content {
    gap: .75rem
}

.menu-content span {
    color: #fff;
    font-size: 1vw
}

.menu-icon {
    font-size: .9rem;
    width: 16px;
    opacity: .7
}

.menu-icon.dot-icon {
    font-size: .4rem;
    opacity: .6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chevron-right {
    font-size: .8rem;
    color: #fff;
    opacity: .5
}

.show-menu {
    display: block;
    opacity: 1;
    animation: .2s forwards fadeIn
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.nav-link-custom {
    font-size: 12.5px !important;
    margin-left: -15px
}

.header-search-bar {
    display: flex;
    align-items: center;
    background-color: #f3f3f3;
    border-radius: 2vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    position: relative;
    transform: scale(.6);
    transition: transform .3s ease-in-out;
    width: 13vw;
    height: 2.5vw
}

.header-search-bar.expanded {
    transform: scale(1);
    right: 2vw;
    bottom: -1vw
}

.header-search-bar input {
    border: none;
    background: 0 0;
    font-size: 1.2vw;
    outline: 0;
    flex: 1;
    color: #333
}

.header-search-bar button {
    background-color: #3a83f1;
    border: none;
    border-radius: 50%;
    width: 2.5vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
    scale: 1.2;
    font-size: 1.4vw;
    padding: .5vw;
    position: absolute;
    right: 0
}

.header-search-bar button img {
    width: 20px;
    height: 20px
}

.container-search {
    position: absolute;
    right: -2.5vw;
    bottom: -1.4vw
}

.searchBox {
    margin-top: 10px;
    right: 2vw;
    position: absolute;
    width: 30vw;
    background-color: #3b3d4a;
    opacity: 1;
    border-radius: 1vw
}

.product-item {
    width: 27vw;
    margin: auto
}

.product-link p {
    color: #fff !important
}

.searchBoxHeight {
    max-height: 38vw;
    overflow-y: auto;
    scroll-behavior: smooth;
    transition: .5s ease-in-out;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22)
}

.searchBoxHeight::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    border-radius: 10px;
    background-color: transparent
}

.searchBoxHeight::-webkit-scrollbar {
    width: 7px;
    background-color: transparent
}

.searchBoxHeight::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #d62929
}

.searchBox p {
    font-size: 1vw;
    color: #050a30
}

.searchimg {
    width: 10vw
}

.navbar-nav {
    right: 2vw
}

.dropdown-menu a,
.nav-item i {
    margin: 0
}