/**
 * Smart Search Styles - Minimal Layout + Background + Spacing
 *
 * @package Grundtema
 * @since 1.0.0
 */

/* Modal */
.smart-search-modal {
    background: #fff;
    max-width: 800px;
    width: 90%;
    padding: 30px;
}

.smart-search-modal:not(.mfp-hide) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
}

/* Form */
.smart-search-form {
    margin-bottom: 20px;
}

/* Results Container */
.smart-search-results {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

.smart-search-results.active {
    padding-top: 20px;
}

/* Loading/No Results */
.smart-search-loading,
.smart-search-no-results,
.smart-search-error {
    padding: 40px 20px;
}

/* Result Groups */
.smart-search-group {
    margin-bottom: 30px;
}

/* Result Items */
.smart-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    gap: 15px;
}

.smart-search-result-item:hover,
.smart-search-result-item.focused {
    background-color: #f8f8f8;
}

.smart-search-result-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.smart-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-search-result-content {
    flex: 1;
    min-width: 0;
}

.smart-search-result-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smart-search-result-price {
    flex-shrink: 0;
}

/* Footer */
.smart-search-footer {
    margin-top: 20px;
    padding-top: 15px;
}

/* Trigger */
.smart-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-search-modal {
        width: 95%;
        padding: 20px;
    }

    .smart-search-result-item {
        gap: 10px;
        padding: 10px;
    }

    .smart-search-result-image {
        width: 50px;
        height: 50px;
    }
}
