/* Header Search Styles */
.header-search-container {
    position: relative;
}

.header-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
    padding: 15px 0;
}

.header-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
    margin-bottom: 5px;
    border-bottom: 1px solid #f5f5f5;
}

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

.header-search-result-item:hover {
    background-color: #f5f5f5;
}

.header-search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.header-search-result-item .content {
    flex: 1;
}

.header-search-result-item .title {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #051036;
    font-size: 14px;
}

.header-search-result-item .category {
    font-size: 12px;
    color: #697488;
    margin-top: 3px;
}

/* Anasayfadaki gibi "Tüm sonuçları göster" butonu için stiller */
.header-search-result-item.view-all.text-center {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 10px !important;
    justify-content: center;
    font-weight: 600;
    color: #3554D1;
    border-bottom: none;
    text-align: center;
    display: flex;
    align-items: center;
}

.header-search-result-item.view-all.text-center .title {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}

.header-search-result-item.view-all.text-center:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #3554D1;
}

/* Mobile search styles */
#mobile-search-offcanvas .header-search-container {
    width: 100%;
}
  
#mobile-search-offcanvas .header-search-results-dropdown {
    position: absolute;
    width: calc(100% - 30px);
    left: 15px;
}

/* Loading indicator */
.header-search-loading {
    display: none;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3554D1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
 
@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}  

/* Arama alanı temizleme ikonu (x) için stil */
.header-search-field input[type="search"]::-webkit-search-cancel-button,
.mobile-search-field input[type="search"]::-webkit-search-cancel-button,
#mobile-search-offcanvas input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") no-repeat 50% 50%;
    background-size: contain;
    margin-right: 23px;
    cursor: pointer;
    transform: scale(1.5); /* İkonu 3 kat büyütmek yerine 1.5 kat büyütüyoruz, çünkü 3 kat çok büyük olabilir */
} 
 