.site-header-pc {
    width: 100%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-pc-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
}
.header-pc-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.header-pc-left img,
.site-title {
    height: 45px;
    display: block;
}
.header-pc-search {
    flex: 0 0 50%;
    position: relative;
}
.header-pc-search form {
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.header-pc-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}
.header-pc-search button {
    border: none;
    cursor: pointer;
    font-size: 18px;
    background: #f9fafb;
    line-height: 10px;
    padding-left: 12px;
    color: #979797;
}
.header-pc-right {
    display: flex;
    align-items: center;
    gap:2px;
    font-size: 14px;
}
.header-pc-right a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}
.header-pc-right i {
    line-height: 10px;
    font-size: 18px;
}
.cart-count-pc {
    background: #ff3b3b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 4px;
}
.main-navigation-pc {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
}

.main-navigation-pc .menu-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px 0;
}

.main-navigation-pc #header-pc-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation-pc #header-pc-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 15px;
    transition: color 0.2s;
}

.main-navigation-pc #header-pc-menu li a:hover {
    color: var(--primary-color);
}
.header-notice {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.header-notice img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.header-pc-skeleton {
    display: none;
}

.header-pc-skeleton.loading {
    display: block;
}

.header-pc-skeleton .skeleton-notice {
    width: 100%;
    height: 50px;
    margin-bottom: 0;
}

.header-pc-skeleton .skeleton-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
}

.header-pc-skeleton .skeleton-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-pc-skeleton .skeleton-logo {
    width: 120px;
    height: 45px;
    border-radius: 4px;
}

.header-pc-skeleton .skeleton-search {
    flex: 0 0 50%;
    height: 40px;
    border-radius: 10px;
}

.header-pc-skeleton .skeleton-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-pc-skeleton .skeleton-user,
.header-pc-skeleton .skeleton-cart {
    width: 100px;
    height: 35px;
    border-radius: 8px;
}

.header-pc-skeleton .skeleton-nav {
    width: 100%;
    padding: 20px 0;
}

.header-pc-skeleton .skeleton-nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    gap: 18px;
}

.header-pc-skeleton .skeleton-nav-item {
    width: 80px;
    height: 20px;
    border-radius: 4px;
}

/* FOUC Prevention and Content Management */
.header-pc-content {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.header-pc-content.loading {
    visibility: hidden;
    opacity: 0;
}

.header-pc-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.header-pc-skeleton:not(.loading) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure skeleton appears above content */
.site-header {
    position: relative;
}

/* Override critical CSS once main styles load */
.header-pc-content:not(.loading) {
    visibility: visible !important;
    opacity: 1 !important;
}


/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #f9fafb;
}

.search-suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-price {
    font-size: 13px;
    color: #6b7280;
}

.search-suggestion-price .price {
    color: #ef4444;
    font-weight: 600;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.search-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
