/**
 * Estilos personalizados para CRESA
 * Buscador del hero y otros componentes específicos
 */

/* ============================================
   BUSCADOR HERO
   ============================================ */
.hero-search-form {
    position: relative;
}

.hero-search-form #searchResults {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.hero-search-form #searchResults.active {
    display: block;
}

/* Estilos para el contenido de resultados */
.search-results-loading,
.search-results-empty {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.search-results-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.search-results-count {
    font-size: 0.85rem;
    color: #666;
}

.search-category-filter {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.search-category-filter select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.search-result-link:hover {
    background-color: #f8f8f8;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.search-result-category {
    margin: 0 0 0.25rem 0;
    font-size: 0.8rem;
    color: #666;
}

.search-result-price {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #E07A5F;
}

/* Botón de búsqueda oculto */
.hero-search-btn {
    display: none;
}
