/* =========================================================
   FURRIOPET INSTANT SEARCH MODAL STYLES
   Designed by mr.sankya (https://sanket-portfolio-211.pages.dev/)
   ========================================================= */

#fp-search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100004;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 20px 16px;
}

#fp-search-modal-overlay.active {
  display: flex;
}

#fp-search-modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.fp-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.fp-search-icon {
  font-size: 20px;
  color: #64748b;
}

#fp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}

#fp-search-close-btn {
  background: #e2e8f0;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

#fp-search-close-btn:hover {
  background: #cbd5e1;
}

/* Category Filter Pills */
.fp-search-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.fp-filter-pill {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.fp-filter-pill.active, .fp-filter-pill:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* Results Box */
.fp-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  transition: all 0.2s;
}

.fp-search-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(3px);
}

.fp-search-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.fp-search-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.fp-search-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.fp-search-item-tag {
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.fp-search-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
}

.fp-search-add-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.fp-search-add-btn:hover {
  background: #059669;
}
