/* Arama Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Arama Formu */
.search-form {
    position: relative;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    height: 80px;
    padding: 0 20px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
    font-size: 60px !important;
    font-weight: 400;
    color: var(--text-color, #333);
    border-bottom: 2px solid #202020 !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.search-input::placeholder {
    color: #999;
    font-weight: 300;
    opacity: 0.3;
    font-size: 60px !important;
}

.search-submit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-accent, #202020);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.search-input:focus + .search-submit svg {
    transform: scale(1.1);
}

.clear-search {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    color: var(--primary-accent, #202020);
}

/* Live Search Sonuçları */
.live-search-results {
    position: absolute;
    top: calc(100% + 30px);
    left: 20px;
    right: 20px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-height: none;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.live-search-results::-webkit-scrollbar {
    width: 6px;
}

.live-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.live-search-results::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

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

.search-result-item:hover {
    background: #f8f9fa;
}

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

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

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-content h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 15px;
    color: var(--primary-accent, #202020);
    font-weight: 600;
}

.search-results-footer {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #f1f1f1;
}

.view-all-results {
    color: var(--primary-accent, #202020);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-results:hover {
    text-decoration: underline;
}

.searching {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.searching::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: var(--primary-accent, #202020);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Kapatma Butonu */
.close-search {
    position: fixed;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color, #333);
    transition: all 0.2s ease;
    padding: 0;
}

.close-search:hover {
    opacity: 0.7;
}

.close-search svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        width: 95%;
    }
    
    .search-input {
        height: 60px;
        font-size: 24px !important;
        padding: 0 15px;
    }
    
    .close-search {
        top: 20px;
        right: 20px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-image {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .search-result-content h4 {
        font-size: 14px;
    }
    
    .search-result-price {
        font-size: 13px;
    }
    
    .search-input::placeholder {
        font-size: 24px !important;
    }
} 

/* Webkit tarayıcılar için otomatik stil önleme */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
} 