/* Autocomplete Search Styles */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 6px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.autocomplete-active {
    background-color: #f8fafc;
}

.autocomplete-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}

.autocomplete-title {
    font-size: 13.5px;
    line-height: 1.35;
    color: #1e293b;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.autocomplete-title strong {
    color: #d10024;
    font-weight: 600;
}

.autocomplete-price {
    font-size: 13px;
    color: #dc2626;
    font-weight: 700;
}

.autocomplete-view-all {
    background: #f1f5f9;
    color: #0284c7;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
}

.autocomplete-view-all:hover {
    background: #e2e8f0;
    color: #0369a1;
}

/* Mobile responsive - Expands to full 90-95% screen width */
@media (max-width: 768px) {
    .mobile-search-bar form {
        position: relative !important;
    }

    .mobile-search-bar .autocomplete-suggestions {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 60vh;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    }
    
    .autocomplete-item {
        padding: 10px 12px;
    }

    .autocomplete-img {
        width: 44px;
        height: 44px;
    }
    
    .autocomplete-title {
        font-size: 13px;
    }
    
    .autocomplete-price {
        font-size: 13px;
    }
}

