/* Header arama autocomplete */
.header-search {
  position: relative;
}

.qk-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1200;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8e2dc;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(26, 20, 18, 0.14);
  max-height: 420px;
  overflow-y: auto;
  display: none;
}

.qk-ac-list.is-open {
  display: block;
}

.qk-ac-group {
  padding: 8px 14px 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8178;
  font-weight: 600;
}

.qk-ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none !important;
  color: #1a1412 !important;
  transition: background 0.15s ease;
}

.qk-ac-item:hover,
.qk-ac-item.is-active {
  background: #f6f2ee;
}

.qk-ac-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  background: #f6f2ee;
  border: 1px solid #eee;
  flex-shrink: 0;
  padding: 4px;
}

.qk-ac-thumb.kat {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7a0f12;
  background: #f3e8e8;
  border-color: #ead4d4;
}

.qk-ac-meta {
  min-width: 0;
  flex: 1;
}

.qk-ac-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qk-ac-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a8178;
}

.qk-ac-empty {
  padding: 14px;
  font-size: 13px;
  color: #8a8178;
  text-align: center;
}

.qk-ac-footer {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a0f12 !important;
  text-decoration: none !important;
  text-align: center;
}

.qk-ac-footer:hover {
  background: #f6f2ee;
}
