/* Ultra Modern Header Search Bar for WoodMart */
.whb-header .woodmart-search-form {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    background: #f7f7f7;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
}

.whb-header .woodmart-search-form:hover,
.whb-header .woodmart-search-form:focus-within {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #0073aa; /* Change to primary brand color */
    transform: translateY(-2px);
}

.whb-header .woodmart-search-form input[type="text"] {
    border: none;
    background: transparent;
    padding: 18px 25px 18px 50px; /* Space for icon */
    font-size: 16px;
    width: 100%;
    color: #222;
    outline: none;
    box-shadow: none;
    font-weight: 500;
}

.whb-header .woodmart-search-form input[type="text"]::placeholder {
    color: #999;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.whb-header .woodmart-search-form:focus-within input[type="text"]::placeholder {
    opacity: 0.5;
}

.whb-header .woodmart-search-form button[type="submit"] {
    position: absolute;
    left: 15px; /* Move icon to left */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.whb-header .woodmart-search-form:focus-within button[type="submit"] {
    color: #0073aa; /* Highlight icon on focus */
}

/* Category select modern styling */
.whb-header .woodmart-search-form .search-by-category {
    border: none;
    background: transparent;
    padding: 0 20px;
    border-left: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Speed optimization: hardware acceleration */
.whb-header .woodmart-search-form {
    will-change: transform, box-shadow, background-color, border-color;
}

/* Modernize live search results dropdown */
.autocomplete-suggestions {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #eee !important;
    margin-top: 15px;
    overflow: hidden;
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}