/* ============================= */
/* Search Bar Wrapper */
/* ============================= */
.woo-ajax-search-wrapper {
    width: 100%;              /* fill container width */
    position: relative;
    font-family: inherit;
}

/* Search Form */
.woo-ajax-search-wrapper form {
    display: flex;
    align-items: center;       /* vertically align input + button */
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Search Input */
#woo-ajax-search-input {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    height: 40px;
    line-height: 40px;         /* center text vertically */
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    width: 100%;
}

/* Search Button */
#woo-ajax-search-btn {
    border: none;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 40px;
    line-height: normal;
    border-radius: 0;
}

/* Rounded corners for bar */
.woo-ajax-search-wrapper form input {
    border-radius: 4px 0 0 4px;
}
.woo-ajax-search-wrapper form button {
    border-radius: 0 4px 4px 0;
}

/* ============================= */
/* Results Dropdown */
/* ============================= */
#woo-ajax-search-results {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999999 !important;
    display: none;
    border-radius: 4px;
    overflow: hidden;
}

/* Each result row */
.woo-search-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}
.woo-search-item:last-child {
    border-bottom: none;
}

/* Hover effect */
.woo-search-item:hover {
    background: #f9f9f9;
}

/* Make entire row clickable */
.woo-search-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.woo-search-item img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Title */
.woo-search-item .title {
    flex: 1;
    font-size: 14px;
    margin-right: 10px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

/* Price */
.woo-search-item .price {
    font-weight: bold;
    font-size: 14px;
    color: #111;
    text-align: right;
    white-space: nowrap;
}

/* Regular + Sale Price Formatting */
.woo-search-item .price del {
    color: #888;
    margin-right: 5px;
    font-size: 13px;
}
.woo-search-item .price ins {
    color: #007cba; /* highlight sale */
    font-weight: bold;
    text-decoration: none;
}

/* ============================= */
/* No Results */
/* ============================= */
.woo-search-no-results {
    padding: 10px;
    text-align: center;
    color: #999;
}

/* ============================= */
/* Show All Products Link */
/* ============================= */
.woo-search-show-all {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.woo-search-show-all a {
    display: inline-block;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #007cba;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.woo-search-show-all a:hover {
    background: #007cba;
    color: #fff;
    text-decoration: none;
}