/* ============================================================
   Probo Search — Stylesheet
   ============================================================ */

.probo-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

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

/* ── Input row ─────────────────────────────────────────────── */

.probo-search-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.probo-search-input-wrap:focus-within {
    //border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.probo-search-input {
    flex: 1;
    border: none !important;
    outline: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    color: #1a1a1a;
    min-width: 0;
}

.probo-search-input::placeholder {
    color: #aaa;
}

.probo-search-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: none !important;
    cursor: pointer;
    padding: 0 14px;
    height: 42px;
    color: #fff;
    transition: background 0.2s ease;
}

.probo-search-btn:hover {
    background: #333;
}

.probo-search-btn svg {
    width: 17px;
    height: 17px;
}

/* ── Dropdown ──────────────────────────────────────────────── */

.probo-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    max-height: 420px;
    overflow-y: auto;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.probo-search-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Items ─────────────────────────────────────────────────── */

.probo-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.12s ease;
    text-decoration: none;
    color: inherit;
}

.probo-search-item:hover,
.probo-search-item.is-focused {
    background: #f5f5f5;
}

.probo-search-item-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}

.probo-search-item-info {
    flex: 1;
    min-width: 0;
}

.probo-search-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px;
}

.probo-search-item-meta {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.probo-search-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── States ────────────────────────────────────────────────── */

.probo-search-message {
    padding: 12px 14px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.probo-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    gap: 6px;
    color: #888;
    font-size: 13px;
}

.probo-search-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #555;
    border-radius: 50%;
    animation: probo-spin 0.6s linear infinite;
}

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

.probo-search-all-link {
    display: block;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.probo-search-all-link:hover {
    color: #1a1a1a;
}
