/**
 * Yoda Smart Search - Simple Widget Styles
 *
 * @package    YodaSearch
 * @author     Yoda
 * @license    GNU General Public License version 3
 */

/* Suggestion */
.yodasearch-suggestion {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 13px;
}

.yodasearch-suggestion .sugg_suggested_text {
    color: #007bff;
    font-weight: 600;
}

/* Section */
.yodasearch-section {
    padding: 5px 0;
}

.yodasearch-section-title {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Items */
.yodasearch-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.yodasearch-item:hover,
.yodasearch-item.active {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

/* Categories section - pill style */
.yodasearch-categories {
    padding: 10px 15px 5px;
}

.yodasearch-categories .yodasearch-section-title {
    padding: 0 0 8px;
    margin-bottom: 0;
}

.yodasearch-categories-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

/* Category item - pill style (matches search page .yoda-pill) */
.yodasearch-category-item {
    display: inline-flex !important;
    align-items: center;
    padding: 2px 8px;
    background: #5bc0de;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    transition: background 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.yodasearch-category-item:hover {
    background: #46b8da;
    color: #fff;
    text-decoration: none;
}

.yodasearch-category-item:hover .yodasearch-cat-count {
    opacity: 1;
}

.yodasearch-cat-name {
    font-weight: normal;
}

.yodasearch-cat-count {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.8;
}

/* Product item */
.yodasearch-product-item {
    border-bottom: 1px solid #f0f0f0;
}

.yodasearch-product-item:last-child {
    border-bottom: none;
}

/* Image */
.yodasearch-image {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
}

.yodasearch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.yodasearch-content {
    flex: 1;
    min-width: 0;
}

.yodasearch-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

/* Price */
.yodasearch-price {
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
}

.yodasearch-price .yodasearch-special {
    color: #dc3545;
}

.yodasearch-price .yodasearch-old {
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
    font-size: 12px;
    margin-left: 8px;
}

/* SKU */
.yodasearch-sku {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* More link */
.yodasearch-more {
    display: block;
    padding: 12px 15px;
    text-align: center;
    background: #f8f9fa;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: background-color 0.15s ease;
}

.yodasearch-more:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .yodasearch-image {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .yodasearch-name {
        font-size: 13px;
    }

    .yodasearch-price {
        font-size: 13px;
    }
}
