:root {
  --navy: #13314C;
  --navy-deep: #0B2033;
  --gold: #FFD100;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --box: #FAFBFC;
  --text: #1C2530;
  --muted: #667080;
  --line: #E6E9ED;
  --radius: 12px;
}

.search-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 32px 8px;
  position: relative;
  box-sizing: border-box;
}

.search-wrap * {
  box-sizing: border-box;
}

.df-badge {
  font-size: 11px;
  font-weight: 600;
  color: #8B5CF6;
  background: #F3EEFF;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: .3px;
}

.df-search-box {
  position: relative;
}

.df-search-box input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line, #E6E9ED);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--text, #1C2530);
  background: #fbfbfc;
  transition: border-color .15s, box-shadow .15s;
}

.df-search-box input:focus {
  outline: none;
  border-color: var(--navy, #13314C);
  background: #fff;
  box-shadow: 0 4px 18px rgba(19, 49, 76, .12);
}

.df-search-box svg.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5;
}

.df-search-box .df-hint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  color: var(--muted, #667080);
  background: #eef0f2;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.df-results-panel {
  display: none;
  position: absolute;
  left: 32px;
  right: 32px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line, #E6E9ED);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(19, 49, 76, .16);
  max-height: 420px;
  overflow-y: auto;
  z-index: 999;
}

.df-results-panel.show {
  display: block;
}

.df-results-header {
  padding: 12px 18px;
  font-size: 12px;
  color: var(--muted, #667080);
  border-bottom: 1px solid var(--line, #E6E9ED);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.df-family-chips {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line, #E6E9ED);
}

.df-chip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #E6E9ED);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text, #1C2530) !important;
  padding: 0 11px;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}

.df-chip:hover {
  border-color: var(--navy, #13314C);
  /*color: var(--navy, #13314C) !important;*/
  color: #FFF !important;
}

.df-chip.active {
  background: var(--navy, #13314C) !important;
  border-color: var(--navy, #13314C) !important;
  color: #fff !important;
}

.df-chip.active:hover {
  background: var(--navy-deep, #0B2033) !important;
  border-color: var(--navy-deep, #0B2033) !important;
  color: #fff !important;
}

.df-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.df-result-item:hover {
  background: #f7f8fa;
}

.df-result-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #f4f5f6, #f4f5f6 6px, #eef0f2 6px, #eef0f2 12px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.df-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 2px;
}

.df-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #717171;
}

.df-result-family {
  font-size: 11px;
  color: var(--muted, #667080);
  margin-top: 2px;
}

.df-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted, #667080);
  font-size: 13px;
}

.df-footer-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy, #13314C);
  text-decoration: none;
  border-top: 1px solid var(--line, #E6E9ED);
}

.df-footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .search-wrap {
    padding: 22px 16px 8px;
  }
  .df-results-panel {
    left: 16px;
    right: 16px;
  }
}
