/* Remove all underlines from navigation */
.nav,
.navbar,
.nav-link,
a.nav-link,
.nav-item,
.nav-item a,
li.nav-item a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Topbar */
.header_top-bar {
    background-color: var(--navy-blue);
    color: white;
    font-size: 14px;
    padding: 4px 0;
    overflow: visible !important;
    white-space: nowrap;
}

.header_top-bar .container {
    overflow: visible !important;
}

.header_top-bar::-webkit-scrollbar {
    display: none;
}

.header_top-bar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.header_top-bar-separator {
    margin: 0 6px;
    opacity: 0.3;
    font-weight: 300;
}

/* Navbar */
.header_main-navbar {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding-top: 0px !important;
    /* Reduced padding */
    padding-bottom: 0px !important;
    /* Reduced padding */
    overflow: visible !important;
}

.header_main-navbar .container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
    overflow: visible !important;
}

.header_main-navbar .row {
    margin: 0;
    overflow: visible !important;
}

.header_navbar-toggler {
    border-color: var(--primary-orange) !important;
    padding: 8px 12px !important;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hide hamburger on desktop (lg and up) */
@media (min-width: 992px) {
    .header_navbar-toggler {
        display: none !important;
    }
}

/* Show hamburger on mobile (below lg) */
@media (max-width: 991.98px) {
    .header_navbar-toggler {
        display: flex !important;
    }
}

.header_navbar-toggler:hover {
    background-color: var(--primary-orange);
}

.header_navbar-toggler:hover .header_navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.header_navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff6600' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px;
    height: 20px;
    display: inline-block;
    transition: filter 0.3s ease;
}

.header_navbar-brand {
    padding: 0;
    margin: 0;
}

.header_logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Desktop menu: show on large screens only */
@media (min-width: 992px) {
    .header_main-navbar .col-lg-6 {
        display: block !important;
    }

    .header_navbar-collapse {
        display: block !important;
        overflow: visible !important;
    }
}

/* Desktop menu: hide on mobile screens */
@media (max-width: 991.98px) {
    .header_main-navbar .col-lg-6 {
        display: none !important;
    }
}

.header_nav-item {
    border: none !important;
    border-bottom: none !important;
}

.nav-item {
    border: none !important;
    border-bottom: none !important;
}

.header_nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    padding: 0 15px !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
}

.nav-link {
    text-decoration: none !important;
    border-bottom: none !important;
}

.header_nav-link:hover,
.header_nav-link.active {
    color: var(--primary-orange) !important;
    background: transparent !important;
    text-decoration: none !important;
}

.header_products-dropdown>a.header_nav-link {
    display: inline-block !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

/* Products Dropdown Styles */
.header_products-dropdown {
    position: relative !important;
    overflow: visible !important;
}

.header_products-dropdown-menu {
    display: none !important;
    position: absolute !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    min-width: 280px !important;
    width: 280px !important;
    padding: 4px 0 !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 3px !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
    max-height: 400px !important;
}

.header_products-dropdown.show .header_products-dropdown-menu {
    display: block !important;
}

.header_products-dropdown-menu .dropdown-item {
    padding: 5px 16px !important;
    color: var(--dark-text) !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
}

.header_products-dropdown-menu .dropdown-item:hover {
    background-color: #f5f5f5 !important;
    color: var(--primary-orange) !important;
    border-left-color: var(--primary-orange) !important;
    padding-left: 15px !important;
}

.header_products-dropdown-menu .dropdown-item.category-parent {
    font-weight: 800 !important;
    background-color: var(--primary-orange) !important;
    color: white !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
    border-left: none !important;
}

.header_products-dropdown-menu .dropdown-item.category-parent:hover {
    background-color: #e65c00 !important;
    padding-left: 16px !important;
}

.header_products-dropdown-menu .dropdown-item.category-child {
    padding-left: 20px !important;
    font-size: 12px !important;
    color: #444 !important;
    white-space: normal !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-left: 3px solid transparent !important;
    font-weight: 500 !important;
}

.header_products-dropdown-menu .dropdown-item.category-child:hover {
    color: var(--primary-orange) !important;
    background-color: #fff9f5 !important;
    border-left-color: var(--primary-orange) !important;
    padding-left: 25px !important;
}

.header_search-pill {
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    width: 280px;
    height: 32px;
    overflow: visible;
}

.header_search-pill input {
    border: none;
    background: transparent;
    font-size: 11px;
    outline: none;
    padding: 0 15px;
    flex-grow: 1;
    color: #666;
}

.header_search-divider {
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
}

.header_search-pill button {
    border: none;
    background: transparent;
    color: #666;
    padding: 0 12px;
    font-size: 12px;
    height: 100%;
    margin-left: 10px;
    margin-right: 10px;
}

.header_cart-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header_cart-icon {
    font-size: 1.8rem;
    color: #FF5722;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    padding: 0;
    overflow: visible;
}

.header_cart-badge {
    position: absolute;
    top: -14px;
    left: 15px;
    background-color: transparent !important;
    color: #FF5722 !important;
    font-size: 11px;
    font-weight: 700;
    border: none;
    box-shadow: none;
    line-height: 1;
    padding: 0;
    display: inline;
}

.header_wishlist-icon {
    font-size: 1.8rem;
    color: #FF5722;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    padding: 0;
    overflow: visible;
}

.header_wishlist-badge {
    position: absolute;
    top: -14px;
    left: 10px;
    background-color: transparent !important;
    color: #FF5722 !important;
    font-size: 11px;
    font-weight: 700;
    border: none;
    box-shadow: none;
    line-height: 1;
    padding: 0;
    display: none !important;
}

display: inline;
}

/* Benefit Bar */
.header_benefit-bar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 0;
    overflow: hidden;
}

.header_benefit-bar .container {
    overflow: hidden;
}

.header_benefit-bar .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.header_benefit-bar .row::-webkit-scrollbar {
    display: none;
}

.header_benefit-item {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    position: relative;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    min-width: 150px;
    white-space: nowrap;
}

.header_benefit-bar .col:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.header_benefit-item img {
    margin-right: 8px;
    height: 16px;
    /* Reduced from 20px */
}

.header_benefit-item i {
    color: var(--primary-orange);
    margin-right: 12px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .header_search-pill {
        width: 220px;
    }

    .header_benefit-item {
        font-size: 11px;
        padding: 8px 0;
    }

    .header_benefit-item img {
        height: 14px;
        margin-right: 6px;
    }

    .header_products-dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 991px) {
    .header_top-bar {
        font-size: 9px;
        padding: 6px 0;
        display: block !important;
    }

    .header_top-bar a {
        padding: 0 3px;
    }

    .header_top-bar-separator {
        margin: 0 4px;
    }

    .header_main-navbar {
        padding: 8px 0 !important;
        position: relative;
    }

    .header_main-navbar .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 !important;
    }

    .header_navbar-brand img {
        height: 42px !important;
    }

    .header_logo-text div:first-child {
        font-size: 16px !important;
    }

    .header_logo-text div:last-child {
        font-size: 7px !important;
    }

    .header_navbar-toggler {
        display: flex !important;
        border: 1px solid var(--primary-orange) !important;
    }

    .header_navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
    }

    .header_nav-link {
        padding: 10px 0 !important;
        text-align: center;
    }

    .header_products-dropdown {
        position: static;
    }

    .header_products-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        min-width: auto;
    }

    .header_products-dropdown.show .header_products-dropdown-menu {
        display: block;
    }

    .header_products-dropdown-menu .dropdown-item {
        padding: 8px 15px;
        font-size: 12px;
        text-align: center;
    }

    .header_products-dropdown-menu .dropdown-item.category-child {
        padding-left: 30px;
    }

    .header_search-pill {
        width: 100%;
        margin-bottom: 15px;
    }

    .header_benefit-bar .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .header_benefit-bar .col:nth-child(2n) {
        border-right: none;
    }

    .header_benefit-bar .col:nth-child(1),
    .header_benefit-bar .col:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }

    .header_benefit-item {
        font-size: 10px;
        padding: 12px 5px;
    }
}

@media (max-width: 768px) {
    .header_navbar-brand img {
        max-height: 48px !important;
        height: 48px !important;
        width: auto !important;
    }

    .header_cart-icon {
        font-size: 1rem;
    }

    .header_cart-badge {
        color: #FF5722;
        background-color: transparent;
        font-size: 10px;
        top: -14px;
        left: 10px;
    }

    .header_wishlist-icon {
        font-size: 1rem;
    }

    .header_cart-box {
        gap: 12px;
    }

    .header_wishlist-badge {
        color: #FF5722;
        background-color: transparent;
        font-size: 10px;
        top: -14px;
        left: 10px;
        display: none !important;
    }

    .header_benefit-bar {
        display: block !important;
    }

    .header_benefit-bar .row {
        display: flex !important;
    }

    .header_benefit-bar .col {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none !important;
    }

    .header_benefit-bar .col:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .header_benefit-item {
        padding: 10px;
        justify-content: flex-start;
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .header_top-bar .container>div {
        flex-wrap: nowrap;
        width: 100%;
        justify-content: flex-start;
        row-gap: 0;
    }

    .header_top-bar a {
        font-size: 13px;
    }

    .header_top-bar-separator {
        margin: 0 2px;
    }

    .header-phone-country-code {
        display: none;
    }

    .header_top-bar .user-auth-dropdown {
        width: auto;
        display: flex;
        justify-content: flex-start;
        margin-left: 0 !important;
    }

    .header_top-bar .auth-menu-toggle {
        margin-left: 0 !important;
        padding-right: 0 !important;
    }

    .header_navbar-brand img {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
    }

    .header_logo-text div:first-child {
        font-size: 14px !important;
    }

    .header_logo-text div:last-child {
        font-size: 6px !important;
    }

    .header_search-pill input {
        font-size: 10px;
        padding: 0 10px;
    }

    .header_search-pill button {
        padding: 0 8px;
        font-size: 10px;
    }
}

/* Mobile Offcanvas Menu Styles */
.header_mobile-offcanvas {
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    border-right: 0 !important;
    box-shadow: 12px 0 32px rgba(12, 24, 44, 0.22);
    background: #ffffff;
}

.header_mobile-offcanvas .offcanvas-header {
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    min-height: 76px;
}

.mobile-offcanvas-logo img {
    height: 56px !important;
    width: auto !important;
    max-width: 230px !important;
    object-fit: contain !important;
}

.header_mobile-offcanvas .offcanvas-header .offcanvas-title {
    color: white;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.header_mobile-offcanvas .btn-close {
    filter: none !important;
    opacity: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-size: 12px;
}

.header_mobile-offcanvas .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 25, 0.25);
    opacity: 1;
}

.header_mobile-offcanvas .nav {
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header_mobile-offcanvas .offcanvas-body {
    padding: 0 !important;
}

.header_mobile-offcanvas .nav-item {
    position: relative !important;
    border-bottom: 0 !important;
    width: 100% !important;
}

.header_mobile-offcanvas .nav-item::after {
    content: none !important;
}

.header_mobile-offcanvas .nav-link-mobile,
.header_mobile-offcanvas #productsDropdownMobile {
    color: #1f2937 !important;
    font-family: 'Mulish', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none;
    padding: 15px 18px !important;
    text-transform: uppercase;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.header_mobile-offcanvas .nav > .nav-item:last-child {
    border-bottom: 0 !important;
}

.header_mobile-offcanvas .nav-link-mobile:hover,
.header_mobile-offcanvas .nav-link-mobile:active,
.header_mobile-offcanvas .nav-link-mobile:focus,
.header_mobile-offcanvas .nav-link-mobile.active,
.header_mobile-offcanvas #productsDropdownMobile:hover,
.header_mobile-offcanvas #productsDropdownMobile:active,
.header_mobile-offcanvas #productsDropdownMobile:focus,
.header_mobile-offcanvas #productsDropdownMobile.active {
    background-color: #fff4ec;
    color: var(--primary-orange) !important;
    padding-left: 22px !important;
    outline: none !important;
}

/* Mobile Products Dropdown Menu */
.header_products-dropdown-menu-mobile {
    background-color: #f8fafc;
    border-top: 1px solid #edf0f4;
    max-height: min(58vh, 420px);
    overflow-y: auto;
    padding: 8px 0;
}

.header_products-dropdown-menu-mobile .dropdown-item,
.header_products-dropdown-menu-mobile .mobile-category-link {
    padding: 14px 18px;
    font-size: 15px;
    color: #111827 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 48px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    border-bottom: 0 !important;
    background: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.header_products-dropdown-menu-mobile .accordion-item {
    border-bottom: 1px solid #e5e7eb !important;
}

.header_products-dropdown-menu-mobile .dropdown-item:hover,
.header_products-dropdown-menu-mobile .mobile-category-link:hover,
.header_products-dropdown-menu-mobile .mobile-category-link:active {
    background-color: #fff4ec;
    color: var(--primary-orange) !important;
    border-left-color: var(--primary-orange);
    padding-left: 22px;
}

.header_products-dropdown-menu-mobile .mobile-category-link-all {
    background: #f3f6fa;
    color: #0f5ea8 !important;
    font-size: 13px;
    min-height: 42px;
    text-transform: uppercase;
}

.header_products-dropdown-menu-mobile .dropdown-item.category-parent {
    font-weight: 800;
    font-size: 14px;
    padding: 12px 16px;
    background-color: var(--primary-orange);
    color: white !important;
    border-left: none;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.header_products-dropdown-menu-mobile .dropdown-item.category-parent:hover {
    background-color: #e8e8e8;
}

.header_products-dropdown-menu-mobile .dropdown-item.category-child {
    padding-left: 24px;
    font-size: 13px;
    border-left: 4px solid transparent;
    color: #444;
    font-weight: 500;
}

.header_products-dropdown-menu-mobile .dropdown-item.category-child:hover {
    padding-left: 28px;
    background-color: #fff9f5;
    color: var(--primary-orange);
    border-left-color: var(--primary-orange);
}

/* Toggle button for mobile products dropdown */
#productsDropdownMobile {
    color: #1f2937 !important;
    font-family: 'Mulish', sans-serif !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease;
    padding: 15px 18px !important;
}

#productsDropdownMobile:hover {
    background-color: #fff4ec !important;
    color: var(--primary-orange) !important;
    padding-left: 20px !important;
}

#productsDropdownMobile.active {
    color: var(--primary-orange) !important;
    background: #fff4ec !important;
}

#productsDropdownMobile .inp-custom-arrow {
    transition: transform 0.2s ease;
}

#productsDropdownMobile.active .inp-custom-arrow {
    transform: rotate(180deg);
}

/* FINAL RESPONSIVE FIXES - ENSURE PROPER MENU DISPLAY */
/* Hamburger: hidden by default, shown only on mobile */
.header_navbar-toggler {
    display: none !important;
}

@media (max-width: 991.98px) {
    .header_navbar-toggler {
        display: flex !important;
    }
}

/* Desktop menu: shown by default, hidden only on mobile */
.header_main-navbar .col-lg-6 {
    display: block !important;
}

@media (max-width: 991.98px) {
    .header_main-navbar .col-lg-6 {
        display: none !important;
    }
}

/* Ensure offcanvas is responsive */
@media (max-width: 991px) {
    .header_mobile-offcanvas {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .header_mobile-offcanvas {
        display: none !important;
    }
}
