/* ═══════════════════════════════════════════
   HDR6 LIVE SEARCH (v9.12)
   Header 6 (Mağaza Pro) için anlık arama paneli
   ═══════════════════════════════════════════ */
.hdr6-search-form { position: relative; }

#hdr6-live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white, #fff);
    border: 1px solid var(--brd, #e6e6e6);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(98,157,35,.05);
    max-height: 540px;
    overflow-y: auto;
    z-index: 1000;
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
#hdr6-live-search-results.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
#hdr6-live-search-results::-webkit-scrollbar { width: 6px; }
#hdr6-live-search-results::-webkit-scrollbar-track { background: transparent; }
#hdr6-live-search-results::-webkit-scrollbar-thumb { background: rgba(98,157,35,.25); border-radius: 3px; }
#hdr6-live-search-results::-webkit-scrollbar-thumb:hover { background: rgba(98,157,35,.5); }

.hdr6-ls-section { margin-bottom: 4px; }
.hdr6-ls-section:last-child { margin-bottom: 0; }
.hdr6-ls-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.hdr6-ls-section-head i { color: var(--p, #629D23); font-size: 11px; }
.hdr6-ls-pill {
    margin-left: auto;
    background: rgba(98,157,35,.1);
    color: var(--p, #629D23);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
}

/* Item — ortak satır */
.hdr6-ls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text, #1a1a2e);
    transition: background .18s, transform .18s;
}
.hdr6-ls-row:hover,
.hdr6-ls-row.is-active {
    background: linear-gradient(135deg, rgba(98,157,35,.08), rgba(108,99,255,.04));
    transform: translateX(2px);
}
.hdr6-ls-row.is-active {
    box-shadow: inset 0 0 0 1.5px rgba(98,157,35,.3);
}

/* İlan kart */
.hdr6-ls-item-img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f7;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hdr6-ls-item-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.hdr6-ls-item:hover .hdr6-ls-item-img img { transform: scale(1.08); }
.hdr6-ls-item-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.hdr6-ls-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.hdr6-ls-item-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px;
    color: #6b7280;
    flex-wrap: nowrap;
    overflow: hidden;
}
.hdr6-ls-item-id {
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 10px;
    color: #475569;
}
.hdr6-ls-item-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--p, #629D23);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hdr6-ls-item-cat i { font-size: 9px; }
.hdr6-ls-item-price {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--p, #629D23);
    flex-shrink: 0;
    padding-left: 8px;
    white-space: nowrap;
}
.hdr6-ls-free {
    color: #10b981;
    font-size: 12px;
    font-weight: 800;
}

/* Kategori */
.hdr6-ls-cat-ic {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--cat, #629D23) 14%, transparent);
    color: var(--cat, #629D23);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.hdr6-ls-cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hdr6-ls-cat-name { font-size: 13.5px; font-weight: 700; color: var(--text, #1a1a2e); }
.hdr6-ls-cat-count { font-size: 11px; color: #6b7280; }
.hdr6-ls-arr { font-size: 12px; color: #9ca3af; transition: transform .2s; }
.hdr6-ls-cat:hover .hdr6-ls-arr { color: var(--cat, #629D23); transform: translateX(3px); }

/* View all */
.hdr6-ls-viewall {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--p, #629D23), #2a8e1b);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(98,157,35,.28);
}
.hdr6-ls-viewall:hover, .hdr6-ls-viewall.is-active {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(98,157,35,.4);
    color: #fff !important;
}

/* Highlight */
.hdr6-ls-mark {
    background: linear-gradient(180deg, transparent 50%, rgba(245,158,11,.35) 50%);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 900;
}

/* Empty */
.hdr6-ls-empty { text-align: center; padding: 32px 18px; }
.hdr6-ls-empty-ic {
    width: 60px; height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(98,157,35,.1), rgba(108,99,255,.05));
    color: var(--p, #629D23);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: hdr6LsFloat 2.5s ease-in-out infinite;
}
@keyframes hdr6LsFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.hdr6-ls-empty-title { font-size: 14.5px; font-weight: 800; color: var(--text, #1a1a2e); margin-bottom: 4px; }
.hdr6-ls-empty-text { font-size: 12.5px; color: #6b7280; margin-bottom: 12px; line-height: 1.5; }
.hdr6-ls-empty-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--p, #629D23), #2a8e1b);
    color: #fff !important;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.hdr6-ls-empty-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(98,157,35,.3); }

/* Skeleton */
.hdr6-ls-skel-wrap { padding: 6px; }
.hdr6-ls-skel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
}
.hdr6-ls-skel-img {
    width: 54px; height: 54px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f1f5f9 0%, rgba(98,157,35,.08) 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: hdr6LsShimmer 1.3s ease-in-out infinite;
}
.hdr6-ls-skel-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hdr6-ls-skel-bar {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 0%, rgba(98,157,35,.08) 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: hdr6LsShimmer 1.3s ease-in-out infinite;
}
.hdr6-ls-skel-bar.w-80 { width: 80%; }
.hdr6-ls-skel-bar.w-50 { width: 50%; height: 8px; }
@keyframes hdr6LsShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Compact stil — sadece başlık */
#hdr6-live-search-results[data-style="compact"] .hdr6-ls-item-img,
#hdr6-live-search-results[data-style="compact"] .hdr6-ls-item-meta,
#hdr6-live-search-results[data-style="compact"] .hdr6-ls-item-price { display: none; }
#hdr6-live-search-results[data-style="compact"] .hdr6-ls-item-title { font-size: 14px; }

/* Card stil — büyük görsel */
#hdr6-live-search-results[data-style="card"] .hdr6-ls-item { gap: 14px; padding: 12px; }
#hdr6-live-search-results[data-style="card"] .hdr6-ls-item-img { width: 72px; height: 72px; }
#hdr6-live-search-results[data-style="card"] .hdr6-ls-item-title { font-size: 14.5px; }

/* Dark mode */
[data-theme="dark"] #hdr6-live-search-results {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
[data-theme="dark"] .hdr6-ls-item-title,
[data-theme="dark"] .hdr6-ls-cat-name,
[data-theme="dark"] .hdr6-ls-empty-title { color: #f1f5f9; }
[data-theme="dark"] .hdr6-ls-item-meta,
[data-theme="dark"] .hdr6-ls-cat-count,
[data-theme="dark"] .hdr6-ls-empty-text { color: #94a3b8; }
[data-theme="dark"] .hdr6-ls-item-img,
[data-theme="dark"] .hdr6-ls-skel-img,
[data-theme="dark"] .hdr6-ls-skel-bar {
    background: linear-gradient(90deg, #334155 0%, rgba(99,102,241,.2) 50%, #334155 100%);
    background-size: 200% 100%;
}
[data-theme="dark"] .hdr6-ls-item-id { background: #334155; color: #cbd5e1; }

/* Mobile */
@media (max-width: 640px) {
    #hdr6-live-search-results {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 90px);
    }
    .hdr6-ls-item-img { width: 48px; height: 48px; }
    .hdr6-ls-item-title { font-size: 12.5px; }
    .hdr6-ls-item-price { font-size: 13px; }
}
