/* Dark Theme AJAX Search Styles */
.taw-ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2c2d33;
    /* Matches site header */
    border: 1px solid #43454b;
    border-top: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    /* Ensure it's on top of everything */
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border-radius: 0 0 4px 4px;
    color: #f1f1f1;
}

.taw-ajax-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.taw-ajax-search-results li {
    border-bottom: 1px solid #43454b;
}

.taw-ajax-search-results li:last-child {
    border-bottom: none;
}

.taw-ajax-search-results a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.2s;
}

.taw-ajax-search-results a:hover {
    background-color: #3b3c42;
    /* Slightly lighter for hover state */
    color: #fff;
}

.taw-search-thumb img {
    width: 60px;
    /* Slightly larger thumbnails */
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid #43454b;
}

.taw-search-info {
    display: flex;
    flex-direction: column;
}

.taw-search-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.taw-search-price {
    font-size: 13px;
    color: #eda83f;
    /* Orange accent color typical for industrial/welding sites */
    font-weight: 700;
}

.taw-search-loading,
.taw-search-no-results,
.taw-search-error {
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
    background: #2c2d33;
}

/* Ensure global scrollbar for this container looks decent if possible (Webkit only) */
.taw-ajax-search-results::-webkit-scrollbar {
    width: 8px;
}

.taw-ajax-search-results::-webkit-scrollbar-track {
    background: #2c2d33;
}

.taw-ajax-search-results::-webkit-scrollbar-thumb {
    background: #43454b;
    border-radius: 4px;
}

.taw-ajax-search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ensure the parent form is relatively positioned so absolute positioning works */
form.woocommerce-product-search,
.site-search form {
    position: relative;
}