/* ===== PeptidePlugs Live Search v1.3.0 ===== */

.pp-ls-dropdown {
    position: absolute;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ---- Items ---- */
.pp-ls-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: #1a1a2e;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.12s;
    cursor: pointer;
}

.pp-ls-item:hover,
.pp-ls-item--active {
    background: #f4f8ff;
    color: #1a1a2e;
}

.pp-ls-item--related {
    opacity: 0.85;
}

.pp-ls-item--related:hover {
    opacity: 1;
}

/* ---- Product image ---- */
.pp-ls-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 6px;
    background: #f7f7f7;
    border: 1px solid #ececec;
    flex-shrink: 0;
}

/* ---- Info block ---- */
.pp-ls-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pp-ls-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pp-ls-name mark {
    background: #fff3cd;
    color: #1a1a2e;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: inherit;
}

.pp-ls-label {
    font-size: 11px;
    color: #2e7dd1;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Price ---- */
.pp-ls-price {
    font-size: 13px;
    font-weight: 700;
    color: #2e7dd1;
    white-space: nowrap;
    flex-shrink: 0;
}

.pp-ls-price .woocommerce-Price-currencySymbol {
    font-size: 11px;
}

/* ---- Section divider ---- */
.pp-ls-divider {
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    background: #f9f9f9;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

/* ---- Loading ---- */
.pp-ls-loading {
    padding: 14px 16px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp-ls-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #2e7dd1;
    border-radius: 50%;
    animation: pp-spin 0.6s linear infinite;
    flex-shrink: 0;
}

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

/* ---- No results ---- */
.pp-ls-no-results {
    padding: 14px 16px;
    font-size: 13px;
    color: #666;
}

/* ---- View all ---- */
.pp-ls-view-all {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2e7dd1 !important;
    text-align: center;
    background: #f7faff;
    border-top: 1px solid #e8f0fb;
    text-decoration: none !important;
    transition: background 0.12s;
}

.pp-ls-view-all:hover {
    background: #eaf2ff;
    color: #1a5faa !important;
}

/* ---- Scrollbar ---- */
.pp-ls-dropdown::-webkit-scrollbar { width: 4px; }
.pp-ls-dropdown::-webkit-scrollbar-track { background: #f5f5f5; }
.pp-ls-dropdown::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
