/* ===== RESET & BASE STYLES ===== */
.new-menu-container {
    height: 60px;
    background: #fff;
    width: 100%;
    position: relative;
    z-index: 3;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, .1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background-color: #fff;
    color: #222222;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: 180px;
    margin: 5px 20px 0 0;
}

/* ===== DROPDOWN & MENU BASE STYLES ===== */
.menu,
.ecom-actions {
    display: flex;
    align-items: center;
}

.menu {
    justify-content: center;
    gap: 25px;
    flex: 1;
}

/* Consolidated link/button styles */
.menu a,
.menu .dropdown-toggle,
.ecom-actions a,
.ecom-actions button {
    color: #222222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

.menu a,
.menu .dropdown-toggle {
    line-height: 60px;
    text-transform: capitalize;
}

.ecom-actions a,
.ecom-actions button {
    display: flex;
    align-items: center;
    padding: 0 10px;
    line-height: 83px;
}

.menu a:hover {

    background-color: transparent;
}

.menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* ===== DROPDOWN POSITIONING ===== */
.menu .category-dropdown {
    position: static;
}

.menu .dropdown:not(.category-dropdown),
.ecom-actions .dropdown {
    position: relative;
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background: #fff;
    width: 220px;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    z-index: 1000;
}

.menu .category-dropdown .mega-menu {
    left: 0;
    right: 0;
    width: 100%;
}

.menu .dropdown:not(.category-dropdown) .dropdown-menu,
.ecom-actions .dropdown-menu {
    left: 0;
    right: auto;
}

.menu .mega-menu {
    display: none;
    position: absolute;
    top: 60px;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    border-radius: 8px;
    z-index: 99;
}

.menu .mega-menu.active,
.menu .dropdown-menu.active,
.dropdown-menu.show {
    display: block;
}

/* Consolidated dropdown menu link styles */
.dropdown-menu a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 0px;
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    line-height: 22px;
}
.company-dropdown .dropdown-menu, .account-dropdown .dropdown-menu
{
    padding: 20px 0;
}
.company-dropdown .dropdown-menu a, .account-dropdown .dropdown-menu a{
    line-height: 22px;
    padding-left: 20px;
    font-size: 15px;
    color: #222;
    font-weight: 500;
    
    
}
.company-dropdown .dropdown-menu a:hover, .account-dropdown .dropdown-menu a:hover {
       background: #E9E9E9;
}

/* ===== MEGA MENU STYLES ===== */
.menu .mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.menu .mega-column {
    display: flex;
    flex-direction: column;
}

.menu .mega-parent {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0056b3;
    padding-left: 20px;
}

.menu .mega-parent:hover,
.menu .mega-sublist a:hover {
    background: #E9E9E9;
}

.menu .mega-sublist a {
    font-size: 14px;
    color: #222;
    padding: 4px 0 4px 20px;
    text-decoration: none;
    font-weight: 400;
}

/* ===== HOVER EFFECTS ===== */
@media (hover: hover) and (pointer: fine) {
    .menu .dropdown:hover > .dropdown-menu,
    .menu .dropdown:hover > .mega-menu,
    .ecom-actions .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* ===== SEARCH STYLES ===== */
.desktop-search-form {
    position: relative;
}

/* Input */
.desktop-search {
    height: 40px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding-left: 15px;
    padding-right: 45px; /* space for button */
    width: 100%;
}

/* Button inside input */
.desktop-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0056b3;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon color */
.desktop-search-btn svg {
    stroke: #fff;
}

/* Focus style */
.desktop-search:focus {
    outline: none;
    border-color: #0056b3;
}

/* Placeholder fade */
.desktop-search:focus::placeholder {
    opacity: 0;
    transition: opacity .45s ease;
}


.search-icon1 {
    display: none;
}

/* ===== WISHLIST STYLES ===== */
.wishlist-link {
    position: relative;
    display: inline-block;
}

.wishlist-dot {
    width: 9px;
    height: 9px;
    background: red;
    border-radius: 50%;
    position: absolute;
    top: 30px;
    left: 28px;
    display: none;
}

.wishlist-dot.active {
    display: block;
}

.wishlist-btn.active svg path {
    fill: red;
    stroke: red;
}

/* ===== ECOMMERCE ACTIONS ===== */
.ecom-actions {
    margin-left: auto;
}

.ecom-actions .menu-icons {
    margin-right: 5px;
}

/* ===== MOBILE ICONS ===== */
.mobile-icons {
    display: flex;
    gap: 0;
    align-items: center;
}

.mobile-icons svg {
    margin-bottom: -4px;
}

.hamburger,
.search-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ===== SIDE NAVIGATION ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 4;
    transition: opacity 0.5s;
    opacity: 0;
    visibility: hidden;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 5;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all .2s ease-out 0s;
    padding-top: 60px;
}

.side-nav a {
    padding: 10px 15px 10px 32px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    color: #222222;
    display: block;
}

.side-nav a svg {
    float: right;
    transition: 0.1s;
}

.side-nav-upper {
    min-height: 70px;
    height: auto;
    border-bottom: 0.5px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 0px;
}

.side-nav-logo {
    position: absolute;
    top: 22px;
    left: 20px;
}

.side-nav-login {
    width: 100%;
    position: relative;
    display: flex;
}

.login-buttons a {
    padding: 5px 14px !important;
    margin: 20px 0 10px 20px !important;
    float: left;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-buttons a:nth-child(2) {
    background: #0056b3;
    color: white;
    border: 1px solid #0056b3;
}



/* ===== SIDE NAV DROPDOWNS ===== */
.side-nav-upper .dropdown-subcontent,
.side-nav-dropdown > .dropdown-content,
.side-nav-dropdown .dropdown-subcontent {
    display: none;
}

.side-nav-upper .dropdown-subcontent.active,
.side-nav-dropdown > .dropdown-content.active,
.side-nav-dropdown .dropdown-subcontent.active {
    display: block;
}

/* Consolidated side nav dropdown toggle styles */
.side-nav-dropdown > .dropdown-toggle,
.side-nav-dropdown .dropdown-column h4,
.side-nav-upper .dropdown-column h4 {
    padding: 10px 15px 10px 32px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}



.side-nav-dropdown .dropdown-column h4{
      font-size: 17px;
    padding: 10px 15px 10px 38px;
    margin: 0;
    font-weight: 500;
    color: #333;
}
.side-nav-dropdown .dropdown-subcontent a{
   padding: 5px 15px 5px 15px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-left: 42px;
    margin-bottom: 10px;
    border-left: 1px solid #ccc;
}
.side-nav-dropdown .dropdown-subcontent ul li{
    margin-bottom: 0;
}
.side-nav-upper .dropdown-column h4 {
    font-size: 15px;
    padding: 10px 15px 10px 32px;
    margin: 0;
    color: #222;
}
.side-nav-upper a{
    padding: 10px 15px 10px 42px;
    color: #333;
    font-weight: 500 !important;
    font-size: 17px;
}
.side-nav svg {
    transition: transform 0.25s ease;
}

.side-nav-dropdown .dropdown-toggle.active svg,
.side-nav-dropdown .dropdown-column h4.active svg,
.side-nav-upper .dropdown-column h4.active svg {
    transform: rotate(180deg);
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 4;
}

/* wrapper */
.search-input-container {
    display: flex;
    width: 92%;
    align-items: center;
    position: relative; /* needed for button inside input */
}

.search-input-container form {
    width: 100%;
    position: relative;
}

/* back icon */
.search-container .back-icon {
    cursor: pointer;
    margin-right: 12px;
    display: flex;
    padding: 6px 0;
}

/* input */
.search-container input {
    width: 100%;
    height: 40px;
    font-size: 16px;
    padding-left: 15px;
    padding-right: 45px; /* space for button */
    border: 1px solid #2b2b2b;
    border-radius: 5px;
}

.search-container input:focus {
    outline: none;
    border-color: #0056b3;
}

/* button inside input */
.mobile-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: #0056b3;
    border: none;
    border-radius: 5%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* icon color */
.mobile-search-btn svg {
    stroke: #fff;
}


/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) {
    .desktop-search-container {
        display: none;
    }
    
    .navbar {
        width: 100%;
        z-index: 3;
        background: transparent;
        box-shadow: 0;
    }
    
    .new-menu-container {
        box-shadow: none;
    }
    
    .menu {
        display: none;
    }
    
    .logo {
        padding-left: 15px;
    }
    
    .search-icon,
    .hamburger {
        display: block;
        padding: 9px 7px 12px 10px;
    }
    
    .hamburger {
        padding-right: 15px;
    }
    
    .desktop-search,
    .desktop-search-btn,
    .login-btn,
    .add-listing-btn,
    .more-dropdown,
    .call-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .wish-label,
    .menu-quick-icons {
        display: none;
    }
    
    .logo img {
        width: 160px;
        margin: 0px 20px 0 0;
    }
        .wishlist-dot {

    top: 0px;
    left: 28px;
  
}
}

@media (max-width: 420px) {
    .menu-quick-icons {
        width: 0px;
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .menu {
        justify-content: left;
        margin-left: 20px;
    }
    
    .login-btn {
        margin-left: auto;
    }
        
}