﻿/* Main Header */
.desktop-header_main {
    position: relative;
    z-index: 1000;
    font-family: inherit;
}

/* Top Banner */
.desktop-header_banner-container {
    background-color: var(--light-blue);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.desktop-header_banner {
    max-width: 1200px;
    width: 100%;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.desktop-header_banner-image {
    width: 1200px;
    height: 44px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Middle Header Section */
.desktop-header_middle-section {
    background-color: var(--strong-blue);
    border-bottom: 1px solid hsl(0 0% 0% / 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.desktop-header_middle-container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Menu Toggle Button */
.desktop-header_menu-toggle {
    flex-shrink: 0;
    width: 120px;
}

.desktop-header_menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .desktop-header_menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--yellow);
    }

    .desktop-header_menu-btn svg {
        width: 18px;
        height: 18px;
    }

/* Logo */
.desktop-header_logo {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    justify-content: center;
}

.desktop-header_logo-link {
    display: block;
    transition: transform 0.3s ease;
}

    .desktop-header_logo-link:hover {
        transform: scale(1.05);
    }

.desktop-header_logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Search Form */
.desktop-header_search {
    flex: 1;
    max-width: 600px;
    min-width: 400px;
    margin: 0 30px;
    position: relative;
}

.desktop-header_search-form {
    width: 100%;
    position: relative;
}

.desktop-header_search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .desktop-header_search-input-wrapper:focus-within {
        border-color: var(--yellow);
        box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.2);
        transform: translateY(-1px);
    }

.desktop-header_search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--dark);
    outline: none;
}

    .desktop-header_search-input::placeholder {
        color: hsl(0 0% 0% / 0.5);
    }

.desktop-header_history-btn {
    padding: 12px 10px;
    background-color: hsl(0 0% 96%);
    border: none;
    border-right: 1px solid hsl(0 0% 0% / 0.1);
    cursor: pointer;
    color: hsl(0 0% 0% / 0.6);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    margin-right: 5px;
}

    .desktop-header_history-btn:hover {
        background-color: var(--yellow);
        color: var(--dark);
    }

    .desktop-header_history-btn.active {
        background-color: var(--yellow);
        color: var(--dark);
    }

    .desktop-header_history-btn.has-history::after {
        content: "";
        position: absolute;
        top: 8px;
        right: 8px;
        width: 6px;
        height: 6px;
        background-color: var(--strong-blue);
        border-radius: 50%;
    }

.desktop-header_search-btn {
    padding: 12px 16px;
    background-color: var(--yellow);
    border: none;
    border-radius: 0 8px 8px 0;
    color: var(--dark);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .desktop-header_search-btn:hover {
        background-color: #e0a800;
    }

/* Search Suggestions */
.desktop-header_search-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid hsl(0 0% 0% / 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: opacity, transform, visibility;
}

    .desktop-header_search-suggestions.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

.desktop-header_suggestions-list {
    padding: 8px 0;
}

.desktop-header_suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-8px);
    animation: slideInSuggestion 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

    .desktop-header_suggestion-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .desktop-header_suggestion-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .desktop-header_suggestion-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .desktop-header_suggestion-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .desktop-header_suggestion-item:nth-child(5) {
        animation-delay: 0.25s;
    }

    .desktop-header_suggestion-item:nth-child(6) {
        animation-delay: 0.3s;
    }

@keyframes slideInSuggestion {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.desktop-header_suggestion-item:hover,
.desktop-header_suggestion-item.highlighted {
    background-color: hsl(0 0% 96%);
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-header_suggestion-icon {
    width: 16px;
    height: 16px;
    color: hsl(0 0% 0% / 0.5);
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-header_suggestion-text {
    flex: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-header_suggestion-category {
    font-size: 12px;
    color: hsl(0 0% 0% / 0.5);
    background-color: hsl(0 0% 95%);
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects for suggestion elements */
.desktop-header_suggestion-item:hover .desktop-header_suggestion-icon {
    color: var(--yellow);
    transform: scale(1.1);
}

.desktop-header_suggestion-item:hover .desktop-header_suggestion-text {
    color: var(--dark);
    font-weight: 600;
}

.desktop-header_suggestion-item:hover .desktop-header_suggestion-category {
    background-color: var(--yellow);
    color: var(--dark);
    transform: scale(1.05);
}

.desktop-header_suggestion-item.highlighted .desktop-header_suggestion-icon {
    color: var(--yellow);
    transform: scale(1.1);
}

.desktop-header_suggestion-item.highlighted .desktop-header_suggestion-text {
    color: var(--dark);
    font-weight: 600;
}

.desktop-header_suggestion-item.highlighted
.desktop-header_suggestion-category {
    background-color: var(--yellow);
    color: var(--dark);
    transform: scale(1.05);
}

/* Active/Click effect */
.desktop-header_suggestion-item:active {
    transform: translateX(4px) scale(0.98);
    transition-duration: 0.1s;
}

/* Ripple effect container */
.desktop-header_suggestion-item {
    position: relative;
    overflow: hidden;
}

    .desktop-header_suggestion-item::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 203, 5, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
        z-index: 0;
    }

    .desktop-header_suggestion-item:active::before {
        width: 300px;
        height: 300px;
    }

    /* Ensure content is above ripple */
    .desktop-header_suggestion-item > * {
        position: relative;
        z-index: 1;
    }

/* Highlight styling for search suggestions */
.desktop-header_suggestion-highlight {
    background-color: var(--yellow);
    color: var(--dark);
    font-weight: 600;
    padding: 1px 2px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: all 0.2s ease;
}

/* Loading indicator for suggestions */
.desktop-header_suggestion-loading {
    padding: 16px 20px;
    text-align: center;
    color: hsl(0 0% 0% / 0.6);
    font-size: 14px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .desktop-header_suggestion-loading::before {
        content: "";
        width: 16px;
        height: 16px;
        border: 2px solid hsl(0 0% 0% / 0.1);
        border-top: 2px solid var(--yellow);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

.desktop-header_suggestion-no-results {
    font-size: 12px;
    color: var(--dark);
    padding-left: 20px;
    font-style: italic;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced highlight on hover */
.desktop-header_suggestion-item:hover .desktop-header_suggestion-highlight,
.desktop-header_suggestion-item.highlighted
.desktop-header_suggestion-highlight {
    background-color: var(--strong-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* Search History */
.desktop-header_search-history {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background-color: var(--white);
    border: 1px solid hsl(0 0% 0% / 0.1);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    z-index: 1000;
    display: none; /* Hidden by default */
}

    .desktop-header_search-history.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

.desktop-header_search-history-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-header_history-nav {
    background: none;
    border: 1px solid hsl(0 0% 0% / 0.2);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: hsl(0 0% 0% / 0.6);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .desktop-header_history-nav:hover {
        background-color: hsl(0 0% 96%);
        border-color: var(--yellow);
        color: var(--dark);
    }

    .desktop-header_history-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        pointer-events: none;
    }

.desktop-header_history-list-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.desktop-header_history-list {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    align-items: center;
}

.desktop-header_history-item {
    flex-shrink: 0;
    background-color: hsl(0 0% 96%);
    border: 1px solid hsl(0 0% 0% / 0.1);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 150px;
    overflow: hidden;
    min-height: 36px; /* Ensure enough height for 2 lines */
}

    .desktop-header_history-item:hover {
        background-color: var(--yellow);
        border-color: var(--yellow);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.desktop-header_history-item-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-height: calc(1.3em * 2); /* 2 lines max */
    word-wrap: break-word;
    word-break: break-word;
}

.desktop-header_history-item-remove {
    background: none;
    border: none;
    color: hsl(0 0% 0% / 0.4);
    cursor: pointer;
    padding: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .desktop-header_history-item-remove:hover {
        background-color: #ef4444;
        color: white;
    }

    .desktop-header_history-item-remove svg {
        width: 10px;
        height: 10px;
    }

/* Action Buttons */
.desktop-header_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: 300px;
    justify-content: flex-end;
}

.desktop-header_action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

    .desktop-header_action-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--yellow);
    }

    .desktop-header_action-btn svg {
        width: 20px;
        height: 20px;
    }

/* Cart Button Special Styling */
.desktop-header_cart-btn {
    position: relative;
}

.desktop-header_cart-count {
    position: absolute;
    top: 2px;
    right: 6px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .desktop-header_cart-count:empty {
        display: none;
    }

/* Top Navigation Bar */
.desktop-header_top-nav {
    background: var(--yellow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-header_nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.desktop-header_nav-menu {
    height: 32px;
    gap: 3px;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-header_nav-item {
    position: relative;
    padding: 0 7px;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

.desktop-header_nav-link {
    display: flex;
    align-items: center;
    height: 32px;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: relative;
}

.desktop-header_nav-item:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: scale(1.05);
}

/* Modern SVG arrow indicator for items with children */
.desktop-header_nav-link[data-has-children="true"]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    opacity: 0.7;
    transition: transform 0.2s ease;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M14.83 16.42l9.17 9.17 9.17-9.17 2.83 2.83-12 12-12-12z" fill="currentColor"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.desktop-header_nav-link[data-has-children="true"]:hover::after {
    transform: rotate(180deg);
}

/* Level 2 Menu - Modern shadcn style */
.desktop-header_level2-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid hsl(0 0% 0% / 0.1);
    min-width: 240px;
    z-index: 999;
    border-radius: 8px;
    padding: 4px 6px;
    margin-top: 4px;
}

    /* Special 3-column layout for TEM XE Ô TÔ */
    .desktop-header_level2-menu.tem-xe-layout {
        min-width: 720px;
        max-width: 900px;
        width: auto;
    }

        .desktop-header_level2-menu.tem-xe-layout .desktop-header_level2-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 8px;
        }

        .desktop-header_level2-menu.tem-xe-layout .desktop-header_level2-link {
            border: 1px solid hsl(0 0% 0% / 0.1);
            border-radius: 6px;
            min-height: 25px;
        }

    .desktop-header_level2-menu.desktop-header_show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.desktop-header_level2-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-header_level2-item {
    position: relative;
}

.desktop-header_level2-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: hsl(0 0% 9%);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.5s ease;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

    .desktop-header_level2-link:hover,
    .desktop-header_level2-link.desktop-header_active {
        background-color: var(--yellow);
        color: hsl(0 0% 9%);
        transform: scale(1.03);
    }

    .desktop-header_level2-link:focus-visible {
        outline: 2px solid hsl(0 0% 9%);
        outline-offset: 2px;
    }

.desktop-header_level2-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.desktop-header_level2-text {
    flex: 1;
}

/* SVG Arrow indicator for level 2 items with children */
.desktop-header_level2-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    opacity: 0.7;
    margin-left: 8px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg height="512px" viewBox="0 0 512 512" width="512px" xmlns="http://www.w3.org/2000/svg"><polygon points="160,128.4 192.3,96 352,256 352,256 352,256 192.3,416 160,383.6 287.3,256" fill="currentColor"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Level 3 Menu - Modern shadcn style */
.desktop-header_level3-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    box-shadow: 0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid hsl(0 0% 0% / 0.1);
    min-width: 200px;
    z-index: 998;
    margin-left: 8px;
    border-radius: 8px;
    padding: 4px 6px;
}

    /* Special layout for TEM XE Ô TÔ level 3 - flexible width */
    .desktop-header_level3-menu.tem-xe-models-layout {
        width: auto;
        left: 100%;
        top: 0;
    }

        /* Dynamic width based on column count */
        .desktop-header_level3-menu.tem-xe-models-layout.tem-xe-1-col {
            min-width: 200px;
            max-width: 300px;
        }

        .desktop-header_level3-menu.tem-xe-models-layout.tem-xe-2-col {
            min-width: 400px;
            max-width: 500px;
        }

        .desktop-header_level3-menu.tem-xe-models-layout.tem-xe-3-col {
            min-width: 600px;
            max-width: 750px;
        }

        .desktop-header_level3-menu.tem-xe-models-layout .desktop-header_level3-list {
            display: grid;
            gap: 6px;
            padding: 8px;
        }

        /* Dynamic column layouts based on item count */
        .desktop-header_level3-menu.tem-xe-models-layout.tem-xe-1-col
        .desktop-header_level3-list {
            grid-template-columns: 1fr;
        }

        .desktop-header_level3-menu.tem-xe-models-layout.tem-xe-2-col
        .desktop-header_level3-list {
            grid-template-columns: repeat(2, 1fr);
        }

        .desktop-header_level3-menu.tem-xe-models-layout.tem-xe-3-col
        .desktop-header_level3-list {
            grid-template-columns: repeat(3, 1fr);
        }

        .desktop-header_level3-menu.tem-xe-models-layout .desktop-header_level3-link {
            border: 1px solid hsl(0 0% 0% / 0.1);
            border-radius: 4px;
            font-size: 11px !important;
        }

    .desktop-header_level3-menu.desktop-header_show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

.desktop-header_level3-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-header_level3-item {
    position: relative;
}

.desktop-header_level3-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: hsl(0 0% 9%);
    transition: all 0.5s ease;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

    .desktop-header_level3-link:hover {
        background-color: var(--yellow);
        color: hsl(0 0% 9%);
        transform: scale(1.03);
    }

    .desktop-header_level3-link:focus-visible {
        outline: 2px solid hsl(0 0% 9%);
        outline-offset: 2px;
    }

.desktop-header_level3-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Loading State */
.desktop-header_loading {
    height: 32px;
    width: 100%;
    color: var(--dark);
    font-size: 11px;
}

/* Focus States */
.desktop-header_nav-link:focus,
.desktop-header_level2-link:focus,
.desktop-header_level3-link:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 1px;
}








/* Browse History Button */
.desktop-header_browse-history-btn {
    position: relative;
}

.desktop-header_browse-history-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--strong-blue);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.desktop-header_browse-history-btn.has-history
.desktop-header_browse-history-indicator {
    opacity: 1;
    transform: scale(1);
}

.desktop-header_browse-history-btn.active {
    background-color: var(--yellow);
    color: var(--dark);
}

/* Browse History Aside Panel */
.desktop-header_browse-history-aside {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .desktop-header_browse-history-aside.show {
        opacity: 1;
        visibility: visible;
    }

.desktop-header_browse-history-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(8px);
}

.desktop-header_browse-history-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12), -4px 0 16px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.desktop-header_browse-history-aside.show .desktop-header_browse-history-panel {
    transform: translateX(0);
}

.desktop-header_browse-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px 24px;
    background: linear-gradient(135deg, var(--yellow) 0%, #f5d000 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

    .desktop-header_browse-history-header::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(0, 0, 0, 0.1), transparent );
    }

    .desktop-header_browse-history-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: var(--dark);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .desktop-header_browse-history-header h3::before {
            content: "";
            width: 24px;
            height: 24px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") no-repeat center;
            background-size: contain;
        }

.desktop-header_browse-history-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--dark);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

    .desktop-header_browse-history-close:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }

.desktop-header_browse-history-search {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 12px;
    align-items: center;
    backdrop-filter: blur(10px);
    flex-wrap: nowrap;
}

.desktop-header_browse-history-search-wrapper {
    flex: 1 1 auto;
    position: relative;
    min-width: 200px;
    max-width: calc(100% - 120px);
}

.desktop-header_browse-history-search-input {
    padding: 14px 18px 14px 44px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

    .desktop-header_browse-history-search-input:focus {
        border-color: var(--yellow);
        box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
        background: white;
    }

    .desktop-header_browse-history-search-input::placeholder {
        color: rgba(0, 0, 0, 0.5);
        font-weight: 400;
    }

.desktop-header_browse-history-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.2s ease;
}

.desktop-header_browse-history-search-wrapper:focus-within
.desktop-header_browse-history-search-icon {
    color: var(--yellow);
}

.desktop-header_browse-history-clear {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    min-width: 100px;
}

    .desktop-header_browse-history-clear:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }

.desktop-header_browse-history-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
}

.desktop-header_browse-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

    .desktop-header_browse-history-list::-webkit-scrollbar {
        width: 6px;
    }

    .desktop-header_browse-history-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .desktop-header_browse-history-list::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

        .desktop-header_browse-history-list::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

.desktop-header_browse-history-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    margin: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    min-height: 80px;
}

    .desktop-header_browse-history-item:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 215, 0, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

.desktop-header_browse-history-item-favicon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.desktop-header_browse-history-item-content {
    flex: 1;
    min-width: 0;
}

.desktop-header_browse-history-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desktop-header_browse-history-item-url {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0 0 6px 0;
    font-family: "Courier New", monospace;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 8px;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    display: block;
}

.desktop-header_browse-history-item-time {
    font-size: 11px;
    color: #95a5a6;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .desktop-header_browse-history-item-time::before {
        content: "🕒";
        font-size: 10px;
    }

.desktop-header_browse-history-item-remove {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    align-self: flex-start;
    margin-top: 2px;
}

.desktop-header_browse-history-item:hover
.desktop-header_browse-history-item-remove {
    opacity: 1;
    transform: scale(1.05);
}

.desktop-header_browse-history-item-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.desktop-header_browse-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px;
    border-radius: 16px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

    .desktop-header_browse-history-empty svg {
        margin-bottom: 20px;
        opacity: 0.3;
        color: #bdc3c7;
    }

    .desktop-header_browse-history-empty p {
        margin: 0 0 12px 0;
        font-size: 18px;
        font-weight: 600;
        color: #34495e;
    }

    .desktop-header_browse-history-empty span {
        font-size: 14px;
        color: #7f8c8d;
        line-height: 1.5;
        max-width: 280px;
    }
