/* Custom Header Styles */

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    color: #475569;
}

.language-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.language-flag {
    font-size: 16px;
    line-height: 1;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s;
}

.language-option:hover {
    background: #f1f5f9;
}

.language-option.active {
    background: #f8fafc;
}

.language-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.language-name {
    font-size: 13px;
    font-weight: 500;
}

.language-code-small {
    font-size: 10px;
    color: #64748b;
}

.check-icon {
    color: #10b981;
}

.chevron-icon {
    transition: transform 0.2s;
}

.chevron-icon.rotate {
    transform: rotate(180deg);
}

[x-cloak] {
    display: none !important;
}

/* Desktop Navigation Fixes */
.main-menu nav ul li {
    margin: 0 15px;
}

.header-action-btn i {
    font-size: 20px;
    color: #000;
}

.header-action-badge {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 10px;
}

/* User Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: none;
    z-index: 100;
    border-radius: 4px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #000;
}

.user-dropdown a i {
    margin-right: 10px;
    width: 20px;
}

.logout-link {
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 5px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    color: #000;
}

.user-caret {
    margin-left: 4px;
}

/* Mobile Header Adaptation */
@media (max-width: 991px) {
    .header-left {
        gap: 0 !important;
    }

    .header-logo {
        max-width: 160px !important;
        padding-left: 0 !important;
    }

    .header-logo img {
        height: 42px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-action {
        margin-left: 8px !important;
        gap: 12px !important;
        /* Slightly tighter gap to save space */
    }

    .header-action-item {
        margin: 0 !important;
    }

    .header-humbager {
        margin-left: 10px !important;
    }

    /* Hide language selector on mobile header to save space for logo */
    /* (It should be in the offcanvas if needed, but for now just hiding to fit logo) */
    .language-selector {
        display: none !important;
    }

    /* Force Logo Visibility and Color */
    .header-logo img {
        filter: brightness(0) !important;
        /* Force Black */
    }
}

/* Offcanvas Menu Minimal Redesign */
.offcanvas__info {
    background: #ffffff !important;
    border-left: 1px solid #eee !important;
}

.offcanvas__overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    /* Slightly lighter overlay */
}

.offcanvas__logo a img {
    filter: brightness(0) !important;
    /* Force Black Logo */
}

.offcanvas__close button {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #eee !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.offcanvas__search input {
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    color: #000 !important;
    border-radius: 8px !important;
}

.offcanvas__search button {
    color: #000 !important;
}

.offcanvas__contact h4 {
    color: #000 !important;
    font-weight: 700 !important;
}

.offcanvas__contact-text a {
    color: #444 !important;
}

.offcanvas__contact-icon i {
    color: #000 !important;
    background: transparent !important;
}

/* Remove icon circle backgrounds if they exist */
.offcanvas__contact li .offcanvas__contact-icon {
    background: transparent !important;
    border: 1px solid #eee !important;
    width: 35px;
    height: 35px;
    line-height: 33px;
    text-align: center;
    border-radius: 50%;
}

.offcanvas__social ul li a {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #eee !important;
}

.offcanvas__social ul li a:hover {
    background: #000 !important;
    color: #fff !important;
}

/* MeanMenu (Mobile Links) Customization */
.mean-container .mean-nav {
    background: #fff !important;
}

.mean-container .mean-nav ul li a {
    color: #000 !important;
    border-top: 1px solid #f5f5f5 !important;
    font-weight: 600 !important;
}

.mean-container .mean-nav ul li a.mean-expand {
    background: transparent !important;
    color: #000 !important;
}

.mean-container .mean-nav ul li li a {
    background: #fafafa !important;
    padding-left: 10% !important;
}

/* Premium Preloader Redesign */
#preloader {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
}

.bd-loader-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
}

.preloader-logo img {
    animation: premium-pulse 3s ease-in-out infinite !important;
    opacity: 0.9;
}

.bd-loader {
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.bd-loader-item {
    background-color: #000000 !important;
    width: 3px !important;
    height: 15px !important;
    border-radius: 10px !important;
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    animation: premium-wave 1.2s ease-in-out infinite !important;
}

.bd-loader-item:nth-child(1) {
    animation-delay: 0.0s !important;
}

.bd-loader-item:nth-child(2) {
    animation-delay: 0.1s !important;
}

.bd-loader-item:nth-child(3) {
    animation-delay: 0.2s !important;
}

.bd-loader-item:nth-child(4) {
    animation-delay: 0.3s !important;
}

.bd-loader-item:nth-child(5) {
    animation-delay: 0.4s !important;
}

.bd-loader-item:nth-child(6) {
    animation-delay: 0.5s !important;
}

.bd-loader-item:nth-child(7) {
    animation-delay: 0.6s !important;
}

.bd-loader-item:nth-child(8) {
    animation-delay: 0.7s !important;
}

@keyframes premium-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes premium-wave {

    0%,
    100% {
        height: 10px;
        opacity: 0.2;
    }

    50% {
        height: 35px;
        opacity: 1;
    }
}

/* Navigation Menu Minimal Redesign */
.furniture__menu .main-menu ul li:hover>a {
    color: #000000 !important;
}

.furniture__menu .main-menu ul li.active>a {
    color: #000000 !important;
}

.furniture__menu .main-menu ul li.has-dropdown>a::after {
    color: inherit !important;
}

/* Submenu Styles */
.furniture__menu .main-menu .submenu {
    background-color: #ffffff !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 0 !important;
    border-radius: 4px !important;
}

.furniture__menu .main-menu .submenu li a {
    color: #333333 !important;
    font-weight: 500 !important;
    padding: 10px 25px !important;
    transition: all 0.3s !important;
    background-color: transparent !important;
}

.furniture__menu .main-menu .submenu li:hover>a {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Ensure the active underline is also black if it exists */
.main-menu ul li>a::before {
    background-color: #000000 !important;
}

/* Badge Color Override */
.header-action-badge,
.header-action-badge.bg-furniture {
    background-color: #000 !important;
    color: #fff !important;
}