/* =========================================
   EXACT NALBURDAYIM.COM HEADER CLONE
   ========================================= */

:root {
    --navy: #003087;
    --orange: #f29202;
    --gray-bg: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
}

/* Top Bar */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    color: var(--text-muted);
}

.free-shipping-text {
    color: var(--navy);
    font-size: 11px;
}

.top-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
}

.top-link:hover {
    color: var(--navy);
}

/* Dynamic Top Bar Menu Styles */
.menubar-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
    /* Gap-4 equivalent */
    align-items: center;
}

.menubar-group ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.menubar-group ul li a:hover {
    color: var(--navy);
}

/* Dropdown specific */
.menubar-group ul li {
    position: relative;
}

.menubar-group ul li.menu-item-has-children>a::after {
    content: "\f078";
    /* FontAwesome chevron-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
    font-size: 10px;
}

.menubar-group ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    /* Align right */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 180px;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 8px 0;
    z-index: 100;
    display: none;
}

.menubar-group ul li:hover ul.sub-menu {
    display: flex;
}

.menubar-group ul li ul.sub-menu li {
    width: 100%;
}

.menubar-group ul li ul.sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
}

.menubar-group ul li ul.sub-menu li a:hover {
    background: #f8f9fa;
    color: var(--navy);
}

/* Main Header */
.main-header {
    border-bottom: 1px solid #f0f0f0;
}

.logo-link {
    display: inline-block;
}

/* Search Form - EXACT MATCH */
.search-form-main {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px 4px 4px 45px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 48, 135, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    height: 42px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    padding-right: 10px;
}

.search-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Header Actions */
.header-actions {
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.action-item:hover {
    color: var(--navy);
}

.action-icon {
    font-size: 22px;
    color: var(--text-dark);
}

.action-label {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.action-label small {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

.action-label strong {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 700;
}

.action-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Navigation Bar */
.nav-bar {
    background: var(--navy);
    color: #fff;
}

.nav-categories-trigger {
    background: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    height: 46px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s;
    min-width: 200px;
}

.nav-categories-trigger:hover {
    background: rgba(0, 0, 0, 0.3);
}

.nav-menu-items {
    gap: 8px;
}

/* Dynamic Primary Menu */
.nav-menu-items ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-menu-items ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 12px 14px;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 4px;
    display: block;
}

.nav-menu-items ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Hardcoded fallback (keep existing for backwards compat if needed) */
.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 12px 14px;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 4px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dropdown Menus */
.dropdown-menu {
    font-size: 13px;
    border-radius: 6px;
    padding: 6px 0;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--navy);
}

/* Responsive */
@media (max-width: 991px) {
    .search-input-wrapper {
        padding-left: 40px;
    }

    .search-icon {
        left: 12px;
    }

    .action-label {
        display: none;
    }

    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 575px) {
    .action-icon {
        font-size: 20px;
    }
}

/* MEGA MENU DYNAMIC STYLES */
.nav-menu-item.dropdown-trigger:hover .dropdown-content {
    display: block !important;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    min-height: 400px;
    display: none;
    z-index: 999;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure the main container is relative to act as anchor for columns */
.mega-menu-wrapper {
    position: relative;
}

.mega-parent-item {
    position: static !important;
    /* Allow children to position relative to wrapper */
}

/* The Child Column Container */
.dropdown-menu-custom-wrapper {
    display: none;
    position: absolute;
    left: 250px;
    /* Width of the parent UL */
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: #f8f9fa;
    /* bg-light */
    padding: 20px;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.mega-parent-item:hover .dropdown-menu-custom-wrapper {
    display: block;
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hover-bg-light:hover {
    background-color: var(--gray-bg);
    color: var(--navy) !important;
}

/* Mobile Menu Offcanvas Styles */
.mobile-menu-tabs .nav-link {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-radius: 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent !important;
    font-size: 14px;
}

.mobile-menu-tabs .nav-link.active {
    background-color: #fff !important;
    color: var(--navy) !important;
    border-bottom: 2px solid var(--navy) !important;
}

.offcanvas-header .btn-close-white {
    filter: brightness(0) !important;
    /* Make it black or dark */
}

.mobile-nav-links .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-links .list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--navy);
    transition: all 0.2s;
}

.mobile-nav-links .list-group-item::after {
    content: "\f054";
    /* FontAwesome chevron-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #999;
}

.mobile-menu-section a {
    font-size: 14px;
    transition: color 0.2s;
}

.mobile-menu-section a:hover {
    color: var(--navy) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.btn-navy {
    background-color: var(--navy);
    color: #fff;
    border: none;
}

.btn-navy:hover {
    background-color: #002266;
    color: #fff;
}

.search-form-mobile input {
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    height: 40px;
}

.search-form-mobile button {
    border-radius: 4px;
    width: 40px;
    height: 40px;
}

/* Fixed Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2e4a86;
    /* Screenshot Blue */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1050;
    /* Higher than some WC elements */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
}

.mobile-nav-item:hover {
    color: #fff;
    opacity: 0.8;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-nav-item .badge {
    position: absolute;
    top: -5px !important;
    right: -10px !important;
    font-size: 10px;
    padding: 3px 5px;
}

.icon-wrap {
    position: relative;
}

@media (max-width: 991px) {
    .container-header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .logo-link img {
        height: auto;
    }
}

/* Adjust body padding for mobile nav */
@media (max-width: 991px) {
    body {
        padding-bottom: 75px;
    }
}