.header-search-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.header-search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    background: transparent;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search-btn {
    padding: 12px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn:hover {
    color: #4CAF50;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.search-results-list {
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

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

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-image {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-price {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
}

.search-results-footer {
    padding: 12px 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.search-results-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.search-results-footer a:hover {
    color: #45a049;
    text-decoration: underline;
}

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

/* Scrollbar styling */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}
