/* ══════════════════════════════════════════════════════════════════════
   MNORY 2026 — Search & Discovery Luxury Modern Design System
   Multi-domain omni search, frosted glass, responsive mobile drawer,
   dark mode, micro-animations, and RTL Cairo typography
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --mn-srch-bg: #f8fafc;
  --mn-srch-card: #ffffff;
  --mn-srch-card-subtle: #f1f5f9;
  --mn-srch-glass: rgba(255, 255, 255, 0.88);
  --mn-srch-border: rgba(226, 232, 240, 0.9);
  --mn-srch-border-focus: rgba(37, 99, 235, 0.5);

  --mn-srch-ink: #0f172a;
  --mn-srch-ink-sub: #334155;
  --mn-srch-muted: #64748b;
  --mn-srch-muted-light: #94a3b8;

  --mn-srch-brand: #2563eb;
  --mn-srch-brand-hover: #1d4ed8;
  --mn-srch-brand-glow: rgba(37, 99, 235, 0.25);

  --mn-srch-emerald: #10b981;
  --mn-srch-emerald-glow: rgba(16, 185, 129, 0.2);
  --mn-srch-rose: #f43f5e;
  --mn-srch-rose-glow: rgba(244, 63, 94, 0.2);
  --mn-srch-amber: #f59e0b;
  --mn-srch-amber-glow: rgba(245, 158, 11, 0.25);
  --mn-srch-purple: #8b5cf6;

  --mn-srch-radius-sm: 10px;
  --mn-srch-radius-md: 16px;
  --mn-srch-radius-lg: 22px;
  --mn-srch-radius-pill: 9999px;

  --mn-srch-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --mn-srch-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.06);
  --mn-srch-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
  --mn-srch-shadow-dock: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15);

  --mn-srch-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  --mn-srch-bg: #0b0f19;
  --mn-srch-card: #131a29;
  --mn-srch-card-subtle: #1c2538;
  --mn-srch-glass: rgba(19, 26, 41, 0.9);
  --mn-srch-border: rgba(255, 255, 255, 0.08);
  --mn-srch-border-focus: rgba(59, 130, 246, 0.5);

  --mn-srch-ink: #f8fafc;
  --mn-srch-ink-sub: #cbd5e1;
  --mn-srch-muted: #94a3b8;
  --mn-srch-muted-light: #64748b;

  --mn-srch-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --mn-srch-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --mn-srch-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  --mn-srch-shadow-dock: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ── Base Container ─────────────────────────────────────────────────── */
.mn-search-page {
  background-color: var(--mn-srch-bg);
  min-height: 85vh;
  padding-bottom: 6rem;
  color: var(--mn-srch-ink);
  transition: background-color 0.3s var(--mn-srch-ease);
  overflow-x: hidden;
}

/* ════════════════════ 1. LUXURY AURORA HERO HEADER ════════════════════ */
.mn-srch-hero {
  position: relative;
  background: radial-gradient(800px circle at 15% 10%, rgba(37, 99, 235, 0.35), transparent 55%),
              radial-gradient(700px circle at 85% 90%, rgba(16, 185, 129, 0.22), transparent 50%),
              radial-gradient(600px circle at 50% 120%, rgba(139, 92, 246, 0.25), transparent 60%),
              linear-gradient(145deg, #060a12 0%, #0a1324 45%, #0f1c36 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}

.mn-srch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  opacity: 0.45;
  pointer-events: none;
}

.mn-srch-hero::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.mn-srch-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.25rem;
}

.mn-srch-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: var(--mn-srch-radius-pill);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mn-srch-hero-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.mn-srch-hero-badge i {
  color: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.8));
}

.mn-srch-hero-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #ffffff 15%, #f1f5f9 65%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.4));
}

.mn-srch-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.92rem, 1.9vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* ── 2. Floating Search Console Dock (Centerpiece) ───────────────────── */
.mn-srch-dock {
  background: #ffffff;
  border-radius: var(--mn-srch-radius-pill);
  padding: 6px;
  padding-inline-start: 8px;
  padding-inline-end: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.22s var(--mn-srch-ease), box-shadow 0.22s var(--mn-srch-ease);
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

body.dark-mode .mn-srch-dock {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mn-srch-dock:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 30px 75px -10px rgba(0, 0, 0, 0.65), 0 0 0 3.5px rgba(59, 130, 246, 0.45);
}

.mn-srch-scope-wrapper {
  position: relative;
  flex-shrink: 0;
}

.mn-srch-scope-select {
  appearance: none;
  -webkit-appearance: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-radius: var(--mn-srch-radius-pill);
  padding: 9px 32px 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  height: 44px;
  line-height: 24px;
}

[dir="rtl"] .mn-srch-scope-select {
  padding: 9px 16px 9px 32px;
}

body.dark-mode .mn-srch-scope-select {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
}

.mn-srch-scope-select:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mn-srch-scope-arrow {
  position: absolute;
  inset-inline-end: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  color: #64748b;
}

.mn-srch-divider {
  width: 1px;
  height: 26px;
  background: #e2e8f0;
  flex-shrink: 0;
}

body.dark-mode .mn-srch-divider {
  background: rgba(255, 255, 255, 0.12);
}

.mn-srch-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
  padding-inline-start: 4px;
}

.mn-srch-icon {
  color: #94a3b8;
  font-size: 20px;
  margin-inline-end: 8px;
  flex-shrink: 0;
  transition: color 0.18s;
}

.mn-srch-dock:focus-within .mn-srch-icon {
  color: #2563eb;
}

.mn-srch-input-field {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.05rem;
  color: #0f172a;
  padding: 8px 4px;
  min-width: 120px;
}

body.dark-mode .mn-srch-input-field {
  color: #f9fafb;
}

.mn-srch-input-field::placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
}

.mn-srch-clear-btn {
  border: none;
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 6px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.mn-srch-clear-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.mn-srch-shortcut-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-inline-end: 8px;
  flex-shrink: 0;
  user-select: none;
}

body.dark-mode .mn-srch-shortcut-hint {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

.mn-srch-submit-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--mn-srch-radius-pill);
  height: 44px;
  padding: 0 24px;
  font-weight: 750;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--mn-srch-ease);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.mn-srch-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.55);
  filter: brightness(1.08);
}

.mn-srch-submit-btn:active {
  transform: translateY(0);
}

/* ── 3. Trending & Quick Domain Filter Chips ────────────────────────── */
.mn-srch-trending {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.mn-srch-trending-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mn-srch-trending-label i {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.mn-srch-trending-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mn-srch-trending-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  padding: 5px 14px;
  border-radius: var(--mn-srch-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--mn-srch-ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mn-srch-trending-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.mn-srch-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mn-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: var(--mn-srch-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--mn-srch-ease);
  backdrop-filter: blur(6px);
}

.mn-quick-chip:hover {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.mn-quick-chip.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ════════════════════ 2. STICKY SEGMENTED TABS RAIL ════════════════════ */
.mn-srch-tabs-bar {
  background: var(--mn-srch-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--mn-srch-border);
  position: sticky;
  top: 0;
  z-index: 45;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: background-color 0.3s;
}

.mn-srch-tabs-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mn-srch-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.mn-srch-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.mn-srch-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--mn-srch-radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mn-srch-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--mn-srch-ease);
  border: 1px solid transparent;
  scroll-snap-align: start;
  background: transparent;
}

.mn-srch-tab:hover {
  color: var(--mn-srch-ink);
  background: rgba(148, 163, 184, 0.12);
}

.mn-srch-tab.active {
  background: var(--mn-srch-ink);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

body.dark-mode .mn-srch-tab.active {
  background: var(--mn-srch-brand);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.mn-srch-tab-icon {
  font-size: 17px;
  display: inline-flex;
  align-items: center;
}

.mn-srch-tab-badge {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--mn-srch-radius-pill);
  font-weight: 800;
}

.mn-srch-tab.active .mn-srch-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ════════════════════ 3. FILTER TOOLBAR & CHIPS ════════════════════ */
.mn-srch-toolbar {
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  border-radius: var(--mn-srch-radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 2rem;
  box-shadow: var(--mn-srch-shadow-sm);
  transition: all 0.25s;
}

.mn-srch-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mn-srch-filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mn-srch-filter-label {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--mn-srch-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 4px;
}

.mn-srch-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--mn-srch-radius-pill);
  background: rgba(37, 99, 235, 0.08);
  color: var(--mn-srch-brand);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.15s;
}

.mn-srch-active-chip:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.mn-srch-chip-remove {
  font-size: 13px;
  line-height: 1;
}

.mn-srch-select-control {
  appearance: none;
  -webkit-appearance: none;
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  color: var(--mn-srch-ink);
  border-radius: var(--mn-srch-radius-pill);
  padding: 6px 28px 6px 12px;
  font-size: 0.82rem;
  font-weight: 650;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

[dir="rtl"] .mn-srch-select-control {
  padding: 6px 12px 6px 28px;
  background-position: left 10px center;
}

.mn-srch-select-control:focus {
  border-color: var(--mn-srch-brand);
  box-shadow: 0 0 0 3px var(--mn-srch-brand-glow);
}

/* Quick Flags Check-Buttons */
.mn-srch-flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--mn-srch-radius-pill);
  background: var(--mn-srch-card-subtle);
  border: 1px solid var(--mn-srch-border);
  color: var(--mn-srch-ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--mn-srch-ease);
  text-decoration: none;
}

.mn-srch-flag-btn:hover {
  border-color: var(--mn-srch-muted-light);
  transform: translateY(-1px);
}

.mn-srch-flag-btn.active {
  background: var(--mn-srch-emerald);
  border-color: var(--mn-srch-emerald);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--mn-srch-emerald-glow);
}

.mn-srch-flag-btn.flag-sale.active {
  background: var(--mn-srch-rose);
  border-color: var(--mn-srch-rose);
  box-shadow: 0 4px 12px var(--mn-srch-rose-glow);
}

.mn-srch-clear-all-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ef4444;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--mn-srch-radius-pill);
  transition: background 0.15s;
}

.mn-srch-clear-all-link:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

/* Mobile Quick Bar (Shown only on small screens) */
.mn-srch-mobile-filter-bar {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.mn-srch-mobile-drawer-btn {
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  border-radius: var(--mn-srch-radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--mn-srch-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--mn-srch-shadow-sm);
  cursor: pointer;
}

.mn-srch-active-count-badge {
  background: var(--mn-srch-brand);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ════════════════════ 4. MOBILE FILTER OFFCANVAS / DRAWER ═════════════ */
.mn-srch-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mn-srch-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mn-srch-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 88vh;
  background: var(--mn-srch-card);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.32s var(--mn-srch-ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mn-srch-drawer.active {
  transform: translateY(0);
}

.mn-srch-drawer-handle {
  width: 44px;
  height: 5px;
  background: var(--mn-srch-muted-light);
  border-radius: 999px;
  margin: 10px auto 4px;
}

.mn-srch-drawer-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--mn-srch-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mn-srch-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mn-srch-drawer-close {
  background: rgba(148, 163, 184, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mn-srch-ink);
  cursor: pointer;
}

.mn-srch-drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mn-srch-drawer-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mn-srch-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.mn-srch-drawer-footer {
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--mn-srch-border);
  background: var(--mn-srch-card);
  display: flex;
  gap: 10px;
}

.mn-srch-drawer-apply-btn {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--mn-srch-radius-pill);
  height: 46px;
  font-weight: 750;
  font-size: 0.95rem;
  cursor: pointer;
}

.mn-srch-drawer-reset-btn {
  background: var(--mn-srch-card-subtle);
  border: 1px solid var(--mn-srch-border);
  color: var(--mn-srch-ink);
  border-radius: var(--mn-srch-radius-pill);
  height: 46px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ════════════════════ 5. SECTION HEADERS & GRIDS ═════════════════════ */
.mn-srch-section {
  margin-bottom: 3.5rem;
}

.mn-srch-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--mn-srch-border);
}

.mn-srch-section-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--mn-srch-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.mn-srch-section-count-badge {
  background: var(--mn-srch-card-subtle);
  border: 1px solid var(--mn-srch-border);
  color: var(--mn-srch-ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--mn-srch-radius-pill);
}

.mn-srch-section-link {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--mn-srch-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.18s;
}

.mn-srch-section-link:hover {
  transform: translateX(3px);
  color: var(--mn-srch-brand-hover);
}

[dir="rtl"] .mn-srch-section-link:hover {
  transform: translateX(-3px);
}

/* ── Multi-Column Responsive Grid for Products ── */
.mn-srch-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .mn-srch-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mn-srch-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* ── 6. Redesigned Luxury Merchant Store Cards ──────────────────────── */
.mn-srch-store-card {
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  border-radius: var(--mn-srch-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--mn-srch-shadow-sm);
  transition: transform 0.22s var(--mn-srch-ease), box-shadow 0.22s, border-color 0.22s;
  text-decoration: none;
  color: var(--mn-srch-ink);
  position: relative;
}

.mn-srch-store-card:hover {
  transform: translateY(-4px);
  border-color: var(--mn-srch-brand);
  box-shadow: var(--mn-srch-shadow-lg);
  color: var(--mn-srch-ink);
}

.mn-srch-store-banner {
  height: 80px;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.4), transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.3), transparent 65%),
              linear-gradient(135deg, #1e1b4b 0%, #1e293b 60%, #0f172a 100%);
  position: relative;
}

.mn-srch-store-body {
  padding: 0 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: -36px;
}

.mn-srch-store-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 3.5px solid var(--mn-srch-card);
  background: #f1f5f9;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.mn-srch-store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mn-srch-store-name {
  font-size: 1.08rem;
  font-weight: 850;
  margin-bottom: 3px;
  line-height: 1.3;
}

.mn-srch-store-desc {
  font-size: 0.82rem;
  color: var(--mn-srch-muted);
  line-height: 1.45;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mn-srch-store-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mn-srch-border);
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--mn-srch-muted);
}

.mn-srch-store-cta {
  color: var(--mn-srch-brand);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s;
}

.mn-srch-store-card:hover .mn-srch-store-cta {
  transform: translateX(3px);
}

[dir="rtl"] .mn-srch-store-card:hover .mn-srch-store-cta {
  transform: translateX(-3px);
}

/* ── 7. Precious Metals Luxury Jewelry Cards ────────────────────────── */
.mn-srch-metal-card {
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  border-radius: var(--mn-srch-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--mn-srch-ease), box-shadow 0.22s, border-color 0.22s;
  box-shadow: var(--mn-srch-shadow-sm);
  text-decoration: none;
  color: var(--mn-srch-ink);
}

.mn-srch-metal-card:hover {
  transform: translateY(-4px);
  border-color: var(--mn-srch-amber);
  box-shadow: 0 16px 36px var(--mn-srch-amber-glow);
  color: var(--mn-srch-ink);
}

.mn-srch-metal-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mn-srch-card-subtle);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mn-srch-metal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--mn-srch-ease);
}

.mn-srch-metal-card:hover .mn-srch-metal-img {
  transform: scale(1.05);
}

.mn-srch-metal-karat {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--mn-srch-radius-pill);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.mn-srch-metal-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mn-srch-metal-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--mn-srch-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mn-srch-metal-cat {
  font-size: 0.78rem;
  color: var(--mn-srch-muted);
}

/* ════════════════════ 8. DISCOVERY HUB (EMPTY SEARCH) ═════════════════ */
.mn-srch-discovery-cat-card {
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  border-radius: var(--mn-srch-radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mn-srch-ink);
  box-shadow: var(--mn-srch-shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  height: 100%;
}

.mn-srch-discovery-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--mn-srch-brand);
  color: var(--mn-srch-brand);
  box-shadow: var(--mn-srch-shadow-md);
}

.mn-srch-cat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--mn-srch-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.mn-srch-discovery-cat-card:hover .mn-srch-cat-icon-box {
  transform: scale(1.08);
}

/* ════════════════════ 9. ZERO RESULTS EMPATHETIC STATE ═════════════════ */
.mn-srch-zero-card {
  background: var(--mn-srch-card);
  border: 1px solid var(--mn-srch-border);
  border-radius: 24px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--mn-srch-shadow-sm);
  margin-bottom: 3.5rem;
}

.mn-srch-zero-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
  border: 2px dashed rgba(37, 99, 235, 0.4);
  color: var(--mn-srch-brand);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  font-size: 38px;
  animation: mnSrchPulse 2.8s infinite;
}

@keyframes mnSrchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.mn-srch-zero-tips {
  background: var(--mn-srch-card-subtle);
  border: 1px solid var(--mn-srch-border);
  border-radius: var(--mn-srch-radius-md);
  padding: 1.15rem 1.5rem;
  max-width: 520px;
  margin: 1.5rem auto;
  text-align: start;
  font-size: 0.85rem;
}

.mn-srch-zero-tips ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

[dir="rtl"] .mn-srch-zero-tips ul {
  margin: 0.5rem 1.25rem 0 0;
}

/* ════════════════════ 10. LUXURY FLOATING PAGINATION ══════════════════ */
.mn-srch-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2.5rem;
}

.mn-srch-page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--mn-srch-border);
  background: var(--mn-srch-card);
  color: var(--mn-srch-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: var(--mn-srch-shadow-sm);
}

.mn-srch-page-btn:hover:not(.active):not(.disabled) {
  border-color: var(--mn-srch-brand);
  color: var(--mn-srch-brand);
  transform: translateY(-2px);
}

.mn-srch-page-btn.active {
  background: var(--mn-srch-brand);
  color: #ffffff;
  border-color: var(--mn-srch-brand);
  box-shadow: 0 4px 14px var(--mn-srch-brand-glow);
}

.mn-srch-page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ════════════════════ 11. MOBILE RESPONSIVE ADAPTATIONS ═══════════════ */
@media (max-width: 767.98px) {
  .mn-srch-hero {
    padding: 2.5rem 0 2rem;
  }

  .mn-srch-hero-content {
    padding: 0 0.5rem;
  }

  /* Compact dock layout on phone */
  .mn-srch-dock {
    padding: 5px 6px 5px 10px;
    gap: 6px;
    border-radius: var(--mn-srch-radius-lg);
  }

  .mn-srch-scope-select {
    padding: 6px 22px 6px 8px;
    font-size: 0.78rem;
    height: 38px;
    max-width: 95px;
  }

  [dir="rtl"] .mn-srch-scope-select {
    padding: 6px 8px 6px 22px;
  }

  .mn-srch-input-field {
    font-size: 0.95rem;
    padding: 6px 4px;
  }

  .mn-srch-shortcut-hint {
    display: none;
  }

  .mn-srch-submit-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .mn-srch-submit-btn span.btn-label {
    display: none;
  }

  /* Hide complex inline toolbar on mobile, show dedicated mobile filter strip */
  .mn-srch-toolbar {
    display: none;
  }

  .mn-srch-mobile-filter-bar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .mn-srch-mobile-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .mn-srch-section {
    margin-bottom: 2.5rem;
  }

  .mn-srch-section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .mn-srch-section-title {
    font-size: 1.05rem;
  }

  .mn-srch-store-banner {
    height: 64px;
  }

  .mn-srch-store-avatar {
    width: 56px;
    height: 56px;
  }

  .mn-srch-zero-card {
    padding: 2.25rem 1rem;
  }
}
