/* ==========================================================================
   Custom Navigation Bar & Top Moving Text Strip Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOP MOVING TEXT TICKER STRIP (Above Navbar)
   -------------------------------------------------------------------------- */
.custom-top-ticker-bar {
    background: #0e3854; /* Deep Navy Blue matching reference mockup */
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 10000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.3px;
}

.custom-ticker-track-wrap {
    display: flex;
    overflow: hidden;
    width: 100%;
    user-select: none;
}

.custom-ticker-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.custom-marquee-left {
    animation: marqueeScroll 28s linear infinite;
}

.custom-top-ticker-bar:hover .custom-marquee-left,
.custom-bottom-ticker-strip:hover .custom-marquee-left {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.custom-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    color: #e2e8f0;
}

.ticker-icon {
    font-size: 14px;
}

.ticker-bullet {
    color: #38bdf8;
    font-size: 16px;
    margin: 0 4px;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   1. MAIN NAVBAR
   -------------------------------------------------------------------------- */
header[role="banner"],
.wpdevart-main-header-bg {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.wpdevart-header-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 35px;
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Brand / Logo (Left) */
.custom-navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 25px;
}

.custom-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.custom-navbar-logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Menu (Center) */
.custom-navbar-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 20px;
}

.custom-nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px !important;
}

.custom-nav-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    list-style: none !important;
}

.custom-nav-menu > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-decoration: none !important;
    padding: 8px 4px !important;
    display: inline-block !important;
    position: relative;
    transition: color 0.2s ease;
    text-transform: none !important;
}

.custom-nav-menu > li > a:hover {
    color: #0284c7 !important; /* Active blue matching reference mockup */
}

.custom-nav-menu > li.current-menu-item > a,
.custom-nav-menu > li.current_page_item > a {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

.custom-nav-menu > li.current-menu-item > a::after,
.custom-nav-menu > li.current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 2px;
    right: 2px;
    height: 2.5px;
    background-color: #0284c7;
    border-radius: 2px;
}

/* Actions (Right: Search, Account, Cart) */
.custom-navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Search Bar */
.custom-nav-search-wrap {
    position: relative;
}

.custom-nav-search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.custom-nav-search-input {
    width: 210px;
    height: 38px;
    padding: 0 38px 0 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.custom-nav-search-input:focus {
    width: 250px;
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

.custom-nav-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 6px !important;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.custom-nav-search-btn:hover {
    color: #0284c7;
}

/* Account Icon Button */
.custom-account-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155 !important;
    text-decoration: none !important;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.custom-account-icon-btn:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.15);
}

/* Shopping Cart Button with Badge */
.custom-cart-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155 !important;
    text-decoration: none !important;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.custom-cart-icon-btn:hover {
    background: #ffffff;
    border-color: #e53935;
    color: #e53935 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.15);
}

.custom-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 2px 5px rgba(229, 57, 53, 0.4);
}

/* Mobile Toggle Hamburger */
.custom-mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    z-index: 9999;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 991px) {
    .custom-navbar-container {
        padding: 12px 16px;
        position: relative;
    }
    .custom-mobile-toggle-btn {
        display: flex !important;
    }
    .custom-navbar-menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 12px 25px rgba(0,0,0,0.12);
        border-top: 1px solid #f1f5f9;
        padding: 20px 24px;
        z-index: 10000;
        margin: 0;
    }
    .custom-navbar-menu-wrapper.is-open {
        display: block !important;
    }
    .custom-nav-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .custom-nav-menu > li {
        width: 100% !important;
    }
    .custom-nav-menu > li > a {
        display: block !important;
        width: 100% !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        font-size: 16px !important;
    }
    .custom-nav-search-input {
        width: 150px;
    }
}

@media (max-width: 575px) {
    .custom-nav-search-wrap {
        display: none;
    }
}
