/* ── Product Search Plugin ── */
.ps-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 480px;
    font-family: inherit;
}

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

/* Input row */
.ps-input-wrap {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 50px;
    padding: 0 6px 0 18px;
    transition: box-shadow .2s ease;
}

.ps-input-wrap:focus-within {
    box-shadow: 0 0 0 2px #aaa;
}

.ps-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    padding: 10px 8px 10px 0;
    outline: none;
    min-width: 0;
}

.ps-input::placeholder {
    color: #888;
}

/* Search button */
.ps-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #b0b0b0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    padding: 0;
}

.ps-btn:hover {
    background: #888;
}

/* Suggestions dropdown */
.ps-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
}

.ps-suggestions.ps-open {
    display: block;
}

/* Individual suggestion */
.ps-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}

.ps-suggestion-item:hover,
.ps-suggestion-item.ps-active {
    background: #f5f5f5;
}

/* Thumbnail */
.ps-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f9f9f9;
}

.ps-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #ececec;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 20px;
}

/* Text */
.ps-info {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.ps-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-item-title mark {
    background: transparent;
    color: inherit;
    font-weight: 800;
}

.ps-item-brand {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

.ps-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Loading / no-results */
.ps-message {
    padding: 12px 16px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* View-all row */
.ps-view-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background .15s;
}

.ps-view-all:hover {
    background: #f5f5f5;
    color: #222;
}
