/* Buscador Dinámico de Productos - Estilos */

.dynamic-product-search-container {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

.search-box {
    position: relative;
    width: 100%;
}

#dynamic-product-search {
    width: 100%;
    padding: 10px 34px 10px 15px;
    font-size: 16px;
    border: 1px solid #A4A4A4;
    border-radius: 30px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#dynamic-product-search:focus {
    outline: none;
    border-color: #0073aa;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.result-price {
    color: #0073aa;
    font-weight: bold;
}

.view-more-link {
    display: block;
    text-align: center;
    padding: 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: background 0.3s;
}

.view-more-link:hover {
    background: #005a87;
    color: white;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.loading {
    text-align: center;
    color: #999;
}

h3.elementor-image-box-title{
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.elementor-image-box-description{
    line-height: 15px !important;
}