.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: var(--softsell-z-sticky);
    height: 80px;
}


.navbar {
    width: 100%;
    height: 100%;
    padding: 0;
}

.navbar .softsell-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--softsell-space-8);
    height: 100%;
}


.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--softsell-space-4);
}

.site-title-link {
    text-decoration: none;
    color: var(--softsell-text-primary);
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: var(--softsell-text-2xl);
    font-weight: var(--softsell-font-extrabold);
    letter-spacing: -0.05em;
    margin: 0;
    color: var(--softsell-bg-dark);
    text-transform: uppercase;
}

.site-description {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--softsell-text-muted);
    font-weight: var(--softsell-font-bold);
    text-transform: uppercase;
    line-height: var(--softsell-leading-tight);
    margin: 0;
}

.custom-logo-link-wrapper {
    display: flex;
    align-items: center;
}

.custom-logo-link-wrapper a {
    display: block;
    line-height: 0;
}

.custom-logo-link-wrapper img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: var(--softsell-radius-2xl);
    box-shadow: var(--softsell-shadow-xl);
    transform: rotate(3deg);
}


.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--softsell-space-12);
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav > .nav-item {
    position: relative;
}

.navbar-nav > .nav-item > a {
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--softsell-space-2) 0;
    color: #475569;
    font-weight: var(--softsell-font-semibold);
    font-size: var(--softsell-text-sm);
    text-decoration: none;
    background: none;
    border-radius: 0;
    transition: color 0.3s ease;
}

.navbar-nav > .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.navbar-nav > .nav-item > a:hover,
.navbar-nav > .nav-item.current-menu-item > a {
    color: var(--softsell-bg-dark);
    background: none;
}

.navbar-nav > .nav-item > a:hover::after,
.navbar-nav > .nav-item.current-menu-item > a::after {
    width: 100%;
}

.navbar-nav > .nav-item > a .fa-chevron-down {
    font-size: 10px;
    margin-left: var(--softsell-space-2);
    opacity: 0.7;
    transition: transform var(--softsell-transition-fast);
}

.navbar-nav > .nav-item.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.navbar-nav > .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--softsell-bg-primary);
    border: 1px solid var(--softsell-border-light);
    border-radius: var(--softsell-radius-lg);
    box-shadow: var(--softsell-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--softsell-transition-fast);
    z-index: var(--softsell-z-dropdown);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu > li {
    border-bottom: 1px solid var(--softsell-border-light);
}

.dropdown-menu > li:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-link {
    display: block;
    padding: var(--softsell-space-3) var(--softsell-space-4);
    color: #475569;
    font-weight: var(--softsell-font-semibold);
    font-size: var(--softsell-text-sm);
    text-decoration: none;
    transition: all var(--softsell-transition-fast);
}

.dropdown-menu .dropdown-link:hover {
    background: var(--softsell-bg-secondary);
    color: var(--softsell-bg-dark);
}


.navbar-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--softsell-space-3);
}

.navbar-actions .softsell-btn {
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: var(--softsell-radius-2xl);
    font-weight: var(--softsell-font-bold);
    font-size: var(--softsell-text-sm);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--softsell-space-2);
    transition: all var(--softsell-transition-fast);
    box-shadow: 0 20px 25px -5px #e2e8f0, 0 8px 10px -6px #e2e8f0;
}

.navbar-actions .softsell-btn:hover {
    background: #1e293b;
    box-shadow: var(--softsell-shadow-2xl);
}


.navbar-search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--softsell-radius-md);
    color: var(--softsell-text-secondary);
    cursor: pointer;
    transition: all var(--softsell-transition-fast);
}

.navbar-search-toggle:hover {
    background: var(--softsell-bg-secondary);
    color: var(--softsell-primary);
}


.navbar-cart {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--softsell-radius-md);
    color: var(--softsell-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--softsell-transition-fast);
}

.navbar-cart:hover {
    background: var(--softsell-bg-secondary);
    color: var(--softsell-primary);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--softsell-danger);
    color: white;
    font-size: var(--softsell-text-xs);
    font-weight: var(--softsell-font-semibold);
    border-radius: var(--softsell-radius-full);
    padding: 0 var(--softsell-space-1);
}


.navbar-user {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--softsell-space-2);
    padding: var(--softsell-space-2);
    background: none;
    border: none;
    border-radius: var(--softsell-radius-md);
    cursor: pointer;
    transition: all var(--softsell-transition-fast);
}

.user-dropdown-toggle:hover {
    background: var(--softsell-bg-secondary);
}

.user-dropdown-toggle .fa-chevron-down {
    font-size: 10px;
    margin-left: var(--softsell-space-2);
    opacity: 0.7;
    transition: transform var(--softsell-transition-fast);
}

.navbar-user:hover .user-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: var(--softsell-radius-full);
}

.user-name {
    font-size: var(--softsell-text-sm);
    font-weight: var(--softsell-font-medium);
    color: var(--softsell-text-primary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--softsell-bg-primary);
    border: 1px solid var(--softsell-border-light);
    border-radius: var(--softsell-radius-lg);
    box-shadow: var(--softsell-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--softsell-transition-fast);
    z-index: var(--softsell-z-dropdown);
}

.navbar-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--softsell-space-3);
    padding: var(--softsell-space-3) var(--softsell-space-4);
    color: #475569;
    font-weight: var(--softsell-font-semibold);
    font-size: var(--softsell-text-sm);
    text-decoration: none;
    transition: all var(--softsell-transition-fast);
    border-bottom: 1px solid var(--softsell-border-light);
}

.user-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown-item:hover {
    background: var(--softsell-bg-secondary);
    color: var(--softsell-bg-dark);
}

.dropdown-divider {
    height: 1px;
    background: var(--softsell-border-light);
    margin: var(--softsell-space-1) 0;
}


.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--softsell-text-primary);
    transition: all var(--softsell-transition-fast);
}


.navbar-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--softsell-bg-primary);
    box-shadow: var(--softsell-shadow-xl);
    transition: right var(--softsell-transition-base);
    z-index: var(--softsell-z-modal);
    overflow-y: auto;
}

.navbar-mobile.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--softsell-space-4);
    border-bottom: 1px solid var(--softsell-border-light);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: var(--softsell-text-lg);
    font-weight: var(--softsell-font-semibold);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--softsell-radius-md);
    color: var(--softsell-text-secondary);
    cursor: pointer;
}

.mobile-menu-content {
    padding: var(--softsell-space-4);
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: var(--softsell-space-2);
}

.mobile-nav a {
    display: block;
    padding: var(--softsell-space-3);
    color: var(--softsell-text-primary);
    text-decoration: none;
    border-radius: var(--softsell-radius-md);
    transition: all var(--softsell-transition-fast);
}

.mobile-nav a:hover {
    background: var(--softsell-bg-secondary);
    color: var(--softsell-primary);
}


.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--softsell-space-6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    position: relative;
    animation: searchSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: var(--softsell-space-8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.search-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    border-radius: 16px;
    pointer-events: none;
}

.search-form-wrapper .search-title {
    text-align: center;
    margin-bottom: var(--softsell-space-6);
    font-size: var(--softsell-text-2xl);
    font-weight: var(--softsell-font-bold);
    color: var(--softsell-text-primary);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--softsell-space-4);
}

.search-field {
    width: 100%;
    padding: 18px 60px 18px 20px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: var(--softsell-text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-field:focus {
    outline: none;
    border-color: var(--softsell-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.search-field::placeholder {
    color: #9ca3af;
    font-size: 16px;
}

.search-submit {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--softsell-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-submit:hover {
    background: var(--softsell-primary-dark);
    transform: scale(1.05);
}

.search-submit:active {
    transform: scale(0.95);
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    color: var(--softsell-text-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.search-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--softsell-text-primary);
    transform: rotate(90deg);
}

.search-tips {
    text-align: center;
    color: var(--softsell-text-secondary);
    font-size: 14px;
    margin-top: var(--softsell-space-4);
}

.search-tips kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-family: monospace;
    margin: 0 2px;
}


@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes searchPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.search-field:focus {
    animation: searchPulse 2s infinite;
}


.search-suggestions {
    margin-top: var(--softsell-space-6);
    padding-top: var(--softsell-space-4);
    border-top: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.search-suggestions.show {
    opacity: 1;
    transform: translateY(0);
}

.suggestions-header h4 {
    margin: 0 0 var(--softsell-space-3) 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--softsell-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--softsell-space-2);
}

.suggestion-item {
    display: inline-block;
    padding: var(--softsell-space-2) var(--softsell-space-3);
    background: #f3f4f6;
    color: var(--softsell-text-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-item:hover {
    background: var(--softsell-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}


@media (max-width: 768px) {
    .search-overlay {
        padding: var(--softsell-space-4);
    }

    .search-form-wrapper {
        padding: var(--softsell-space-6);
    }

    .search-form-wrapper .search-title {
        font-size: var(--softsell-text-xl);
    }

    .search-field {
        font-size: 16px;
        padding: 16px 50px 16px 16px;
    }

    .search-submit {
        width: 40px;
        height: 40px;
        right: 6px;
    }

    .search-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .suggestions-list {
        gap: var(--softsell-space-1);
    }

    .suggestion-item {
        font-size: 13px;
        padding: var(--softsell-space-1) var(--softsell-space-2);
    }
}


@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 64px;
    }

    .navbar .softsell-container {
        gap: var(--softsell-space-4);
    }

    .site-title {
        font-size: var(--softsell-text-xl);
    }

    .site-description {
        display: none;
    }

    .custom-logo-link-wrapper img {
        height: 36px;
        width: 36px;
    }

    .navbar-actions {
        gap: var(--softsell-space-2);
    }

    .navbar-actions .softsell-btn {
        padding: 0.5rem 1rem;
        font-size: var(--softsell-text-xs);
    }
}