/* Smart Autocomplete Search Suggest Dropdown Styles */
.search-container,
.search-pill-wrap {
    position: relative !important;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    z-index: 99999;
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    text-align: left;
    display: none;
    animation: searchFadeIn 0.18s ease-out;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggest-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 10px 14px 6px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    margin: 0;
}
.suggest-section-title:first-child {
    border-top: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.suggest-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px 10px;
    background: #f8fafc;
}

.suggest-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.15s ease;
}
.suggest-pill:hover,
.suggest-pill.active {
    background: #e50914;
    color: #ffffff;
    border-color: #e50914;
}
.suggest-pill:hover strong,
.suggest-pill.active strong {
    color: #ffffff !important;
}

.suggest-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #1e293b;
    transition: background-color 0.15s ease;
}
.suggest-product-item:hover,
.suggest-product-item.active {
    background: #f1f5f9;
    color: #1e293b;
}

.suggest-product-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px;
    margin-right: 12px;
}

.suggest-product-info {
    flex: 1;
    min-width: 0;
}

.suggest-product-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 2px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-product-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.suggest-product-meta span {
    white-space: nowrap;
}

.suggest-product-price-box {
    text-align: right;
    margin-left: 12px;
}

.suggest-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #e50914;
    white-space: nowrap;
}

.suggest-stock-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}
.suggest-badge-stock {
    background: #dcfce7;
    color: #15803d;
}
.suggest-badge-preorder {
    background: #fef3c7;
    color: #b45309;
}

.suggest-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #e50914;
    text-decoration: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: background 0.15s ease;
}
.suggest-footer-btn:hover,
.suggest-footer-btn.active {
    background: #e2e8f0;
    color: #b91c1c;
}

.suggest-empty-box {
    padding: 20px 14px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.suggest-spinner {
    padding: 16px 14px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}
