/* Ürün Arama Autocomplete Stilleri */

.search-autocomplete-container {
    position: relative;
    width: 100%;
}

.search-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: -1px;
}

.search-autocomplete-results.active {
    display: block;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
}

.search-autocomplete-item:hover {
    background: #f9f9f9;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-autocomplete-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-autocomplete-current-price {
    font-size: 15px;
    font-weight: 600;
    color: #10b981;
}

.search-autocomplete-old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.search-autocomplete-discount {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.search-autocomplete-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-autocomplete-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-autocomplete-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Mobil responsive */
@media (max-width: 768px) {
    .search-autocomplete-results {
        max-height: 300px;
        border-radius: 0 0 6px 6px;
    }
    
    .search-autocomplete-item {
        padding: 10px 12px;
    }
    
    .search-autocomplete-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .search-autocomplete-title {
        font-size: 13px;
    }
    
    .search-autocomplete-current-price {
        font-size: 14px;
    }
    
    .search-autocomplete-old-price {
        font-size: 12px;
    }
}

/* Scroll bar stilleri */
.search-autocomplete-results::-webkit-scrollbar {
    width: 6px;
}

.search-autocomplete-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-autocomplete-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.search-autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}
