.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none !important;
    transition: color 0.15s;
    margin-right: 12px;
    background: transparent;
    border: 0;
    padding: 0;
}

.header-search-btn:hover {
    color: var(--4win-primary);
}

.header-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(12, 16, 24, 0.38);
    padding: 8vh 16px 0;
}

.header-search-overlay.open {
    display: block;
}

.header-search-modal {
    width: min(680px, 100%);
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e6e8eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.header-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
}

.header-search-input-wrap svg {
    color: #717b8b;
    flex-shrink: 0;
}

.header-search-input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
}

.header-search-close {
    border: 0;
    background: transparent;
    color: #7a8596;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.header-search-results {
    max-height: min(58vh, 460px);
    overflow-y: auto;
}

.header-search-empty {
    color: #8a93a3;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px 18px;
}

.header-search-section-title {
    color: #7a8596;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px 8px;
}

.header-search-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f2f5;
}

.header-search-item:hover {
    background: #f8fafc;
}

.header-search-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f5f8;
}

.header-search-name {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.header-search-shop {
    margin-top: 4px;
    color: #7a8596;
    font-size: 12px;
    font-weight: 600;
}

.header-search-price {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-search-btn {
        margin-right: 10px;
    }

    .header-search-overlay {
        padding: 0;
        background: rgba(12, 16, 24, 0.6);
    }

    .header-search-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .header-search-input-wrap {
        padding: 14px 12px;
    }

    .header-search-results {
        max-height: calc(100vh - 62px);
    }
}
