/**
 * Canlı Arama Dropdown Stilleri
 * Google tarzı, performanslı ve modern
 */

.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-top: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    margin-top: -1px;
    border-radius: 0 0 4px 4px;
}

.live-search-content {
    padding: 0;
}

.live-search-items {
    padding: 8px 0;
}

.live-search-item {
    display: flex;
    align-items: flex-start;
    /* Resim yukarıda kalsın */
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f5f5f5;
    text-align: left;
    /* Metni sola yasla */
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover,
.live-search-item.selected {
    background-color: #f8f9fa;
}

.live-search-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.live-search-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-search-info {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.4;
}

.live-search-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    margin-top: 5px;
}

.live-search-price {
    font-weight: 600;
    color: #0071e3;
}

.live-search-stock {
    font-size: 12px;
    font-weight: 500;
}

.live-search-footer {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e7e7e7;
    text-align: center;
}

.live-search-footer a {
    font-size: 14px;
    font-weight: 500;
    color: #0071e3;
    text-decoration: none;
}

.live-search-footer a:hover {
    text-decoration: underline;
}

/* Loading ve boş durum */
.live-search-content .text-center {
    padding: 20px;
    color: #999;
}

/* Mobil responsive */
@media (max-width: 767px) {
    .live-search-dropdown {
        position: fixed;
        left: 15px;
        right: 15px;
        top: auto;
        max-height: 70vh;
    }

    .live-search-item {
        padding: 10px 12px;
    }

    .live-search-image {
        width: 40px;
        height: 40px;
    }

    .live-search-title {
        font-size: 13px;
    }

    .live-search-meta {
        font-size: 12px;
    }
}

/* Scrollbar stil */
.live-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.live-search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.live-search-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.live-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}