/* Search suggestions styling - lightweight, RTL-aware, branded */
.tbf-search-wrap { position: relative; display: block; }
.tbf-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 900;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-top: 8px;
    overflow: hidden;
    min-width: 220px;
}
.tbf-search-suggestions[hidden] { display: none; }

.tbf-search-list { list-style: none; margin: 0; padding: 0; }

.tbf-search-result {
    display: grid;
    grid-template-columns: 1fr 72px;
    align-items: center;
    gap: 10px;
    min-height: 82px;
    padding: 10px 12px;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    transition: background .12s ease;
    direction: rtl;
    text-decoration: none;
    color: inherit;
}
.tbf-search-result:hover {
    background: #fff6f8;
}

.tbf-search-result__image {
    grid-column: 2;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.tbf-search-result__image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.tbf-search-result__content {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    position: static;
    float: none;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    gap: 4px;
    text-align: right;
}
.tbf-search-result__title {
    display: block;
    position: static;
    float: none;
    margin-left: 0;
    margin-right: 0;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    font-size: 15px;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tbf-search-result__category {
    display: block;
    position: static;
    float: none;
    margin-left: 0;
    margin-right: 0;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tbf-search-result__price {
    display: block;
    position: static;
    float: none;
    margin-left: 0;
    margin-right: 0;
    font-weight: 700;
    color: #6eaa00;
    font-size: 14px;
    line-height: 1.3;
}
.tbf-search-result__price .woocommerce-Price-amount,
.tbf-search-result__price bdi,
.tbf-search-result__price .woocommerce-Price-currencySymbol {
    display: inline;
    position: static;
    float: none;
    font-size: 14px;
    line-height: normal;
}

.tbf-search-viewall { padding: 12px; text-align: center; background: #fff; }
.tbf-search-viewall a { display: inline-block; padding: 8px 14px; border-radius: 8px; background: #6eaa00; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(110,170,0,0.16); }

.tbf-search-empty { padding: 14px; color: #666; text-align: center; }

/* Mobile: full-width overlay */
@media (max-width: 767px) {
    .tbf-search-suggestions {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        margin: 0;
        padding: 10px;
        background: #fff;
        overflow: auto;
    }
    .tbf-search-result {
        grid-template-columns: 1fr 72px;
        min-height: 82px;
    }
    .tbf-search-viewall { position: sticky; bottom: 12px; background: transparent; padding-top: 8px; }
    .tbf-search-viewall a { display: block; width: 100%; }
}

/* Soft pink accent for hover and subtle borders */
.tbf-search-result:hover { background: #fff1f4; }
