.jj-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    font-family: inherit;
}

.jj-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.jj-search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
}

.jj-search-input::placeholder {
    color: #9ca3af;
}

.jj-search-input:focus {
    border-color: #3b82f6;
    background-color: rgba(255, 255, 255, 0.14);
}

.jj-search-spinner {
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: jj-spin 0.8s linear infinite;
}

@keyframes jj-spin {
    to { transform: rotate(360deg); }
}

/* Ventana grande flotante por encima de toda la página */
.jj-search-results {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.jj-results-header {
    padding: 10px 16px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.jj-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: calc(75vh - 86px);
}

.jj-result-item {
    border-bottom: 1px solid #f3f4f6;
}

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

.jj-result-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.15s;
}

.jj-result-link:hover {
    background-color: #f3f4f6;
}

.jj-result-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 16px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.jj-result-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.jj-result-type {
    display: inline-block;
    width: fit-content;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 4px;
    background-color: #e5e7eb;
    color: #374151;
}

.jj-type-producto {
    background-color: #dbeafe;
    color: #1e40af;
}

.jj-type-blog {
    background-color: #fef3c7;
    color: #92400e;
}

.jj-result-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    white-space: normal;
}

.jj-result-price {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
}

.jj-view-more-btn {
    display: block;
    padding: 13px 16px;
    text-align: center;
    background-color: #111827;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.jj-view-more-btn:hover {
    background-color: #2563eb;
}

.jj-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #4b5563;
    font-size: 15px;
}