/**
 * Header Enhanced Styles
 * @version 1.0
 */

/**
 * -------------------------------------------------------------
 * HEADER
 * -------------------------------------------------------------
 */
.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/**
 * -------------------------------------------------------------
 * LOGO
 * -------------------------------------------------------------
 */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding img {
    max-width: 100%;
    height: auto;
    display: block;
}

/**
 * -------------------------------------------------------------
 * MAIN NAVIGATION
 * -------------------------------------------------------------
 */
.main-navigation-area {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    gap: 20px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

/**
 * -------------------------------------------------------------
 * RTCL NAV
 * -------------------------------------------------------------
 */
.rtcl-header-tax-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 25px;
}

/**
 * -------------------------------------------------------------
 * ENHANCED SEARCH
 * -------------------------------------------------------------
 */
.rtcl-header-search {
    min-width: 260px;
    position: relative;
}

.rtcl-header-search-wrap {
    position: relative;
}

.rtcl-header-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 60px;
    padding: 0 50px 0 18px;
    font-size: 13px;
    outline: none;
    background: #fff;
    transition: all .25s ease;
}

.rtcl-header-search-input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}

.rtcl-header-search-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #111;
    color: #fff;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtcl-header-search-btn:hover {
    transform: scale(1.05);
}

/* Search Suggestions Dropdown */
.rtcl-search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    border: 1px solid #eef2f6;
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.rtcl-search-suggestions.active {
    display: block;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rtcl-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: all .2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

.rtcl-suggestion-item:last-child {
    border-bottom: none;
}

.rtcl-suggestion-item:hover,
.rtcl-suggestion-item.highlighted {
    background: #f8f9fa;
    color: #000;
}

.rtcl-suggestion-title {
    font-size: 14px;
    font-weight: 500;
}

.rtcl-suggestion-count {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
}

.rtcl-suggestion-item:hover .rtcl-suggestion-count {
    background: #e0e0e0;
}

.rtcl-suggestion-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.rtcl-suggestion-loading i {
    margin-right: 8px;
}

.rtcl-suggestion-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Clear Search Button */
.rtcl-search-clear {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #999;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color .2s ease;
}

.rtcl-search-clear:hover {
    color: #333;
}

.rtcl-search-clear.visible {
    display: flex;
}

/**
 * -------------------------------------------------------------
 * DROPDOWN
 * -------------------------------------------------------------
 */
.rtcl-tax-dropdown {
    position: relative;
}

.rtcl-tax-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.rtcl-tax-toggle:hover {
    color: #000;
}

.rtcl-tax-toggle i {
    font-size: 11px;
}

.rtcl-tax-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 99999;
}

.rtcl-tax-dropdown:hover .rtcl-tax-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rtcl-tax-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}

.rtcl-tax-menu a:hover {
    background: #f7f7f7;
    padding-left: 24px;
    color: #000;
}

.rtcl-tax-count {
    float: right;
    font-size: 12px;
    opacity: .6;
}

/**
 * -------------------------------------------------------------
 * HEADER ICONS
 * -------------------------------------------------------------
 */
.header-icon-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-icon-area,
.header-icon-area * {
    font-size: 13px;
}

.header-icon-area a {
    text-decoration: none;
}

.easybuy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.header-chat-icon,
.header-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #222;
    transition: all .2s ease;
}

.header-chat-icon:hover,
.header-login-icon:hover {
    background: #111;
    color: #fff;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 50px;
    background: #111;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.header-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

/**
 * -------------------------------------------------------------
 * RESPONSIVE
 * -------------------------------------------------------------
 */
@media (max-width: 1200px) {
    .rtcl-header-search {
        min-width: 220px;
    }
    
    .rtcl-header-tax-nav {
        gap: 14px;
    }
}

@media (max-width: 991px) {
    .rtcl-header-tax-nav {
        display: none;
    }
    
    .main-navigation-area {
        justify-content: flex-end;
    }
}