 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
/*font-family: "Libre Franklin", sans-serif;*/
     font-optical-sizing: auto;
     font-family: "Inter", sans-serif;
     
 }

.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 a {
    display: flex;
    align-items: center;
      height: 60px;
}

.logo img {
    width: 140px;
    height: auto;
    margin-right: 20px;
}

/* ===== 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: #222;
    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: 6px;
    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: -80px;
    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 ===== */
.search-box-wrapper2 {
    background: rgba(255, 255, 255, 0.);
    backdrop-filter: blur(4px);
    border-radius: 6px;



}

.home-search-form2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
    border-radius: 6px;
    padding: 6px;
    border: 1px solid #ccc;
    width: 95%;
    box-shadow: rgba(14, 63, 126, 0.06) 0px 0px 0px 1px, rgba(42, 51, 70, 0.03) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 2px 2px -1px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.03) 0px 5px 5px -2.5px, rgba(42, 51, 70, 0.03) 0px 10px 10px -5px, rgba(42, 51, 70, 0.03) 0px 24px 24px -8px;
}

.home-search-group2 {
    flex: 1;
    min-width: 130px;
    position: relative;
}

.home-search-group2 .search-input-wrapper2 {
    position: relative;
    width: 100%;
}

.home-search-group2 .custom-data-input2 {
    width: 100%;
    padding: 8px 40px 8px 18px;
    border: none;
    background: #f4f6fa;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    font-weight: 400;
    color: #222;
   
}

.home-search-group2 .custom-data-input2:focus {
    background: white;
    box-shadow: 0 0 0 2px #0d58c7;
}

.clear-btn-menu {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    display: none;
    padding: 0;
    line-height: 1;
    z-index: 5;
}

.clear-btn-menu:hover {
    color: #0d58c7;
}

.custom-data {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid #eaeef5;
}

.custom-data .option {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2f3e;
    transition: background 0.2s;
    border-bottom: 1px solid #edf2f7;
    font-weight: 600;
}

.custom-data .option:hover {
    background-color: #f4f4f4;
    color: #222;
}


.search-btn-home2 {
    background-color: #0d58c7;
    color: white;
    border: none;
    padding: 0 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn-home2:hover {
    background-color: #0d58c7;
    opacity: 0.9;
    transform: scale(1.02);
}

@media (max-width: 1160px) {

    .search-box-wrapper2 {
        width: 65%;
    }

}

@media (max-width: 1050px) {

    .search-box-wrapper2 {
        width: 60%;
    }

}

@media (max-width: 960px) {

    .search-box-wrapper2 {
        width: 55%;
    }

    .home-search-group2 {
        flex: 1;
        min-width: 50px;


    }
}

/* Mobile Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eaeef5;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 30px;

}

.search-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0d58c7;
    margin: 0;
}

.back-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    color: #666;
}

.back-icon svg {
    width: 26px;
    height: 26px;
}

/* Tabs */
.search-tabs {
    display: flex;
    border-bottom: 2px solid #eaeef5;
    background: white;
    position: sticky;
    top: 60px;
    z-index: 10;
    width: 90%;
    margin:0 0 15px 5%;
   
}

.tab-btn-mob {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: left;

}

.tab-btn-mob.active {
    color: #0d58c7;
    font-size: 18px;
    text-align: left;
    border-bottom: 2px solid #0d58c7;
}

.tab-btn-mob.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: ;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px 20px 20px 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MODAL OVERRIDES - COLUMN LAYOUT ===== */
.search-modal .search-box-wrapper2 {
    width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

.search-modal .home-search-form2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.search-modal .home-search-group2 {
    width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
}

.search-modal .search-input-wrapper2 {
    width: 100% !important;
}

.search-modal .custom-data-input2 {
    width: 100% !important;
    padding: 14px 40px 14px 18px !important;
    background: #f8f9fc !important;
    border: 1px solid #e0e4e8 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
}

.search-modal .custom-data-input2:focus {
    background: white !important;
    border-color: #0d58c7 !important;
    box-shadow: 0 0 0 3px rgba(22, 93, 168, 0.1) !important;
}

.search-modal .clear-btn-menu {
    right: 12px !important;
}

.search-modal .search-btn-home2 {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px !important;
    margin-top: 5px !important;
    background-color: #0d58c7 !important;
    border-radius: 10px !important;
}

.search-modal .custom-data {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid #eaeef5;
}

/* Legal Topics Search Styles */
.legal-search-container {
    padding: 0;
}

.legal-search-form {
    margin-bottom: 30px;
}

.legal-search-wrapper {
    position: relative;
    width: 100%;
}

.legal-search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 1px solid #e0e4e8;
    background: #f8f9fc;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    color: #333;
}

.legal-search-input:focus {
    background: white;
    border-color: #0d58c7;
    box-shadow: 0 0 0 3px rgba(22, 93, 168, 0.1);
}

.legal-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d58c7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 38px;
    height: 38px;
    transition: all 0.2s;
}

.legal-search-submit svg {
    stroke: white;
    width: 18px;
    height: 18px;
}

.legal-search-submit:hover {
    background: #0e4a82;
}

.popular-topics h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-tags a {
    background: #f0f4fe;
    color: #0d58c7;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.topic-tags a:hover {
    background: #0d58c7;
    color: white;
}

/* Body no scroll when modal open */
body.modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-content {
        padding: 15px;
    }

    .search-modal-header {
        padding:0 15px  0px 0px;
    }

    .tab-btn-mob {
        padding: 12px;
        font-size: 14px;
    }
}



/* ===== 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 22px;
    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 {

    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: 6px;
}

.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 22px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    display: flex;
    justify-content: left;
    cursor: pointer;
}



.side-nav-dropdown .dropdown-column h4 {
    font-size: 16px;
    padding: 10px 15px 10px 48px;
    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: 50px;
    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 ===== */


/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) {

    .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;
    }
    .wishlist-icon {
        height: 26px;
        width: 26px;
    }
}

@media (max-width: 768px) {

    .wish-label,
    .menu-quick-icons {
        display: none;
    }

    .logo img {
        width: 140px;
        margin: 0px 0px 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;
    }

}
