/* Desktop Header Search */
.header-search {
    flex: 0 1 350px;
    margin: 0 20px;
}

.search-form-desktop {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 25px;
    padding: 0 16px;
    height: 42px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 8px;
}

.search-field-desktop {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}

.search-field-desktop::placeholder {
    color: #9ca3af;
}

/* Mobile Search Improvements */
.mobile-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-search-bar .search-form-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 25px;
    padding: 0 16px;
    height: 44px;
    border: 1px solid #e5e7eb;
}

.mobile-search-bar .search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 8px;
    font-size: 15px;
    color: #1f2937;
    outline: none;
}

.mobile-search-bar .search-field::placeholder {
    color: #9ca3af;
}

.mobile-search-bar .search-submit {
    background: transparent;
    border: none;
    color: #3b82f6;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-search-bar .search-submit:hover {
    color: #2563eb;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search {
        display: none; /* Hide on smaller screens where hamburger menu is used */
    }
}
