/* ═══════════════════════════════════════════════════════
   QualÈMeglio.it — PRODUCT FINDER CSS
   Append this to the end of style.css
   ═══════════════════════════════════════════════════════ */

/* ─── FINDER PAGE — Full width override ────────────── */
.qm-finder-page {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
/* Override GeneratePress content area constraints */
.page-template-page-product-finder .inside-article {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}
.page-template-page-product-finder .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
}
.page-template-page-product-finder .content-area,
.page-template-page-product-finder .site-main,
.page-template-page-product-finder .container,
.page-template-page-product-finder .grid-container {
  max-width: 100% !important;
  width: 100% !important;
  /*padding-left: 0 !important;
  padding-right: 0 !important;*/
}
/* Nascondi titolo pagina WP default */
.page-template-page-product-finder .entry-header,
.page-template-page-product-finder .page-header {
  display: none !important;
}

/* ─── HERO ─────────────────────────────────────────── */
.qm-finder-hero {
  position: relative;
  padding: 60px 24px 50px;
  text-align: center;
  overflow: hidden;
}
.qm-finder-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(59,130,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(6,214,160,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0B0E17 0%, #111827 100%);
  z-index: 0;
}
.qm-finder-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(59,130,246,0.03) 40px, rgba(59,130,246,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(59,130,246,0.03) 40px, rgba(59,130,246,0.03) 41px);
}
.qm-finder-hero-content {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}
.qm-finder-hero-badge {
  display: inline-block;
  background: rgba(6,214,160,0.12);
  border: 1px solid rgba(6,214,160,0.3);
  color: #06D6A0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px;
  margin-bottom: 20px;
}
.qm-finder-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px !important; font-weight: 800;
  color: #E2E8F0 !important;
  line-height: 1.15; margin-bottom: 16px;
}
.qm-finder-hero-title .qm-accent {
  background: linear-gradient(135deg, #3B82F6, #06D6A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qm-finder-hero-subtitle {
  color: #94A3B8 !important;
  font-size: 16px; line-height: 1.6;
  margin-bottom: 30px;
}
.qm-finder-hero-stats {
  display: flex; justify-content: center; gap: 40px;
}
.qm-fhs {
  display: flex; flex-direction: column; align-items: center;
}
.qm-fhs-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, #3B82F6, #06D6A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qm-fhs-label {
  font-size: 12px; color: #64748B;
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600;
}

/* ─── FINDER ENGINE (sidebar + results) ────────────── */
.qm-finder-engine {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  max-width: 100%;
  margin: 15px auto;
  padding: 0 28px 40px;
}

/* ─── SIDEBAR ──────────────────────────────────────── */
.qm-finder-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  background: #111827;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.qm-finder-sidebar::-webkit-scrollbar { width: 4px; }
.qm-finder-sidebar::-webkit-scrollbar-track { background: transparent; }
.qm-finder-sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.qm-finder-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1E293B;
}
.qm-finder-sidebar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px !important; font-weight: 700;
  color: #E2E8F0 !important;
  margin: 0 !important;
}
.qm-finder-reset {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #EF4444;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.qm-finder-reset:hover {
  background: rgba(239,68,68,0.2);
}

.qm-finder-sidebar-actions {
  display: flex; gap: 6px; align-items: center;
}
.qm-finder-sidebar-close {
  display: none;
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.3);
  color: #94A3B8;
  font-size: 16px;
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center; justify-content: center;
}
.qm-finder-sidebar-close:hover {
  background: rgba(148,163,184,0.2);
  color: #E2E8F0;
}

/* Filter groups */
.qm-filter-group { margin-bottom: 18px; }
.qm-filter-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.qm-filter-hint {
  font-size: 11px !important;
  color: #475569 !important;
  margin: -4px 0 8px !important;
  line-height: 1.4;
  font-style: italic;
}
.qm-filter-select {
  width: 100%;
  background: #0B0E17;
  border: 1px solid #1E293B;
  color: #E2E8F0;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.qm-filter-select:focus { outline: none; border-color: #3B82F6; }
.qm-filter-input {
  width: 100%;
  background: #0B0E17;
  border: 1px solid #1E293B;
  color: #E2E8F0;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.qm-filter-input:focus { outline: none; border-color: #3B82F6; }
.qm-filter-input::placeholder { color: #475569; }

/* Range slider */
.qm-filter-range {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  background: linear-gradient(90deg, #3B82F6, #06D6A0);
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}
.qm-filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: #E2E8F0; border: 3px solid #3B82F6;
  border-radius: 50%; cursor: pointer;
  transition: transform 0.15s;
}
.qm-filter-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.qm-filter-range::-moz-range-thumb {
  width: 20px; height: 20px;
  background: #E2E8F0; border: 3px solid #3B82F6;
  border-radius: 50%; cursor: pointer;
}
.qm-filter-range-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #64748B;
}
.qm-filter-range-value {
  color: #06D6A0; font-weight: 700;
  font-family: 'Rajdhani', sans-serif; font-size: 14px;
}

/* Score buttons */
.qm-score-buttons { display: flex; gap: 6px; }
.qm-score-btn {
  flex: 1;
  background: #0B0E17; border: 1px solid #1E293B;
  color: #94A3B8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 8px 4px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.qm-score-btn:hover { border-color: #3B82F6; color: #E2E8F0; }
.qm-score-btn.active { background: rgba(59,130,246,0.15); border-color: #3B82F6; color: #3B82F6; }

.qm-filter-dynamic { animation: qm-filter-fadein 0.3s ease; }
@keyframes qm-filter-fadein { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.qm-finder-mobile-toggle { display: none; }

/* ─── RESULTS AREA ─────────────────────────────────── */
.qm-finder-results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #111827;
  border: 1px solid #1E293B;
  border-radius: 10px;
}
.qm-finder-results-count {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 600; color: #94A3B8;
}
.qm-finder-results-count span { color: #06D6A0; font-size: 20px; margin-right: 4px; }
.qm-finder-results-view { display: flex; gap: 4px; }
.qm-view-btn {
  background: transparent; border: 1px solid #1E293B;
  color: #64748B; font-size: 16px;
  width: 34px; height: 34px; border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
  line-height: 13px;
  text-align: center;
  padding: 0px;	
}
.qm-view-btn:hover { border-color: #3B82F6; color: #94A3B8; }
.qm-view-btn.active { background: rgba(59,130,246,0.1); border-color: #3B82F6; color: #3B82F6; }

/* Loading */
.qm-finder-loading { text-align: center; padding: 60px 20px; color: #64748B; }
.qm-finder-spinner {
  width: 40px; height: 40px;
  border: 3px solid #1E293B; border-top-color: #3B82F6;
  border-radius: 50%; margin: 0 auto 16px;
  animation: qm-spin 0.8s linear infinite;
}
@keyframes qm-spin { to { transform: rotate(360deg); } }

/* Empty state */
.qm-finder-empty { text-align: center; padding: 60px 20px; }
.qm-finder-empty-icon { font-size: 48px; margin-bottom: 16px; }
.qm-finder-empty h3 { color: #E2E8F0 !important; font-family: 'Rajdhani', sans-serif; font-size: 22px !important; }
.qm-finder-empty p { color: #64748B; margin-bottom: 20px; }

/* ─── PRODUCTS GRID — Fisso 2 colonne ──────────────── */
.qm-finder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ─── PRODUCT CARD ─────────────────────────────────── */
.qm-fcard {
  background: #111827;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 22px;
  margin: 10px 0;	
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  animation: qm-card-fadein 0.4s ease both;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
}
@keyframes qm-card-fadein { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.qm-fcard:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 4px 20px rgba(59,130,246,0.08);
  transform: translateY(-2px);
}

/* Badge — posizionato sopra la card, non sovrapposto al nome */
.qm-fcard-badge {
  display: inline-block;
  align-self: flex-end;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px;
}
.qm-fbadge-top { background: rgba(6,214,160,0.15); color: #06D6A0; border: 1px solid rgba(6,214,160,0.3); }
.qm-fbadge-value { background: rgba(245,158,11,0.15); color: #F59E0B; border: 1px solid rgba(245,158,11,0.3); }
.qm-fbadge-budget { background: rgba(59,130,246,0.15); color: #3B82F6; border: 1px solid rgba(59,130,246,0.3); }

/* Header */
.qm-fcard-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 6px;
}
.qm-fcard-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px !important; font-weight: 700;
  color: #E2E8F0 !important;
  line-height: 1.25;
  margin: 0 !important;
  flex: 1;
}
.qm-fcard-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 800; color: #fff;
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
}
.qm-fcard-category {
  font-size: 11px; color: #64748B;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 600; margin-bottom: 10px;
}
.qm-fcard-desc {
  font-size: 13px; color: #94A3B8 !important;
  line-height: 1.5; margin-bottom: 12px !important;
}

/* Specs mini */
.qm-fcard-specs {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px; padding: 10px;
  background: rgba(59,130,246,0.04);
  border-radius: 8px;
  border: 1px solid rgba(30,41,59,0.6);
  overflow: hidden;
}
.qm-fcard-spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
  align-items: baseline;
}
.qm-fcard-spec-k { color: #64748B; white-space: nowrap;  }
.qm-fcard-spec-v {
  color: #E2E8F0; font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pros */
.qm-fcard-pros { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.qm-fcard-pro { font-size: 12px; color: #34D399; }

/* ─── PRICE RANGE BLOCK (card) ─────────────────────── */
.qm-fcard-price-block {
  margin-bottom: 14px; padding: 10px 12px;
  background: rgba(6,214,160,0.04);
  border: 1px solid rgba(6,214,160,0.12);
  border-radius: 8px;
}
.qm-fcard-price-range { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.qm-fcard-price-tag {
  font-size: 11px; color: #64748B; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.qm-fcard-price-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 800; color: #06D6A0;
}
.qm-fcard-price-note {
  display: block; font-size: 10px; color: #475569;
  margin-top: 4px; font-style: italic;
}

/* ─── PRICE RANGE BLOCK (modal) ────────────────────── */
.qm-modal-price-block {
  margin-bottom: 20px; padding: 16px;
  background: rgba(6,214,160,0.04);
  border: 1px solid rgba(6,214,160,0.15);
  border-radius: 10px;
}
.qm-modal-price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.qm-modal-price-tag { font-size: 13px; color: #94A3B8; font-weight: 600; }
.qm-modal-price-value { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 800; color: #06D6A0; align-self: flex-start; }
.qm-modal-price-disclaimer {
  font-size: 12px !important; color: #64748B !important;
  line-height: 1.5; margin: 0 !important;
  padding-top: 8px;
  border-top: 1px solid rgba(30,41,59,0.5);
}

/* Actions */
.qm-fcard-actions {
  display: flex; gap: 8px;
  margin-top: auto; margin-bottom: 10px;
}
.qm-fcard-detail-btn {
  flex: 1;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  color: #3B82F6;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 9px 12px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.qm-fcard-detail-btn:hover { background: rgba(59,130,246,0.2); }
.qm-fcard-amazon-btn {
  flex: 1;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none; color: #0B0E17 !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 9px 12px; border-radius: 8px;
  cursor: pointer; text-align: center;
  text-decoration: none !important;
  transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.qm-fcard-amazon-btn:hover {
  background: linear-gradient(135deg, #D97706, #B45309);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
  color: #0B0E17 !important;
}

/* Article link */
.qm-fcard-article-link {
  font-size: 11px; color: #475569 !important;
  text-decoration: none !important; transition: color 0.2s;
  display: block; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.qm-fcard-article-link:hover { color: #3B82F6 !important; }

/* ─── LIST VIEW — Righe distanziate e ben allineate ── */
.qm-finder-list {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
.qm-finder-list .qm-fcard {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
/* Badge in lista: inline, non sovrapposto */
.qm-finder-list .qm-fcard-badge {
  position: static;
  align-self: center;
  margin-bottom: 0;
  flex-shrink: 0;
  order: 5;
}
/* Nome: occupa lo spazio disponibile */
.qm-finder-list .qm-fcard-header {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.qm-finder-list .qm-fcard-name {
  font-size: 15px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Punteggio */
.qm-finder-list .qm-fcard-score {
  min-width: 34px; height: 34px;
  font-size: 15px;
}
/* Prezzo in lista: compatto */
.qm-finder-list .qm-fcard-price-block {
  margin-bottom: 0;
  padding: 6px 12px;
  flex-shrink: 0;
  min-width: 100px;
  text-align: center;
}
.qm-finder-list .qm-fcard-price-tag { display: none; }
.qm-finder-list .qm-fcard-price-note { display: none; }
.qm-finder-list .qm-fcard-price-value { font-size: 16px; }
/* Azioni in lista: compatte */
.qm-finder-list .qm-fcard-actions {
  margin-top: 0; margin-bottom: 0;
  flex-shrink: 0;
  gap: 6px;
}
.qm-finder-list .qm-fcard-detail-btn,
.qm-finder-list .qm-fcard-amazon-btn {
  padding: 8px 14px;
  white-space: nowrap;
}
/* Nascosta in lista */
.qm-finder-list .qm-fcard-specs,
.qm-finder-list .qm-fcard-desc,
.qm-finder-list .qm-fcard-pros,
.qm-finder-list .qm-fcard-category,
.qm-finder-list .qm-fcard-article-link {
  display: none;
}

/* ─── MODAL ────────────────────────────────────────── */
.qm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.qm-modal {
  background: #111827; border: 1px solid #1E293B;
  border-radius: 16px;
  max-width: 640px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  animation: qm-modal-in 0.25s ease;
}
@keyframes qm-modal-in { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }
.qm-modal-close {
  position: fixed;
  top: 12px;
  right: 12px;
  margin: 12px 12px 0 0;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #EF4444; width: 32px; height: 32px;
  border-radius: 8px; font-size: 16px;
  cursor: pointer; z-index: 2; transition: background 0.2s;
  line-height: 7px;
  padding: 0px;
  z-index: 3;
}
.qm-modal-close:hover { background: rgba(239,68,68,0.2); }
.qm-modal-body { padding: 24px 24px 24px 24px; padding-top: 48px; }

.qm-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px;
}
.qm-modal-badge {
  display: inline-block;
  background: rgba(6,214,160,0.12); border: 1px solid rgba(6,214,160,0.3);
  color: #06D6A0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.qm-modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px !important; font-weight: 800;
  color: #E2E8F0 !important;
  margin: 0 0 8px !important; line-height: 1.2;
}
.qm-modal-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px; font-weight: 800; color: #fff;
  min-width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
  flex-direction: column; line-height: 1;
}
.qm-modal-score span { font-size: 12px; font-weight: 500; opacity: 0.7; }
.qm-modal-desc {
  color: #94A3B8; font-size: 14px; line-height: 1.7;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid #1E293B;
}
.qm-modal-section { margin-bottom: 20px; }
.qm-modal-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px !important; font-weight: 700;
  color: #60A5FA !important; margin-bottom: 12px !important;
}
.qm-modal-specs {
  width: 100%; border-collapse: collapse; font-size: 13px;
  border: 1px solid #1E293B; border-radius: 8px; overflow: hidden;
  table-layout: fixed;
}
.qm-modal-specs th {
  text-align: left; padding: 8px 12px;
  background: rgba(59,130,246,0.06);
  color: #94A3B8; font-weight: 600; width: 35%;
  border-bottom: 1px solid #1E293B;
  white-space: nowrap;
}
.qm-modal-specs td { padding: 8px 12px; color: #E2E8F0; border-bottom: 1px solid #1E293B; word-break: break-word; overflow-wrap: break-word;}

.qm-modal-pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qm-modal-pros { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); border-radius: 8px; padding: 14px; }
.qm-modal-cons { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); border-radius: 8px; padding: 14px; }
.qm-modal-pros h4 { color: #34D399 !important; font-size: 13px !important; font-weight: 700; margin: 0 0 8px !important; }
.qm-modal-cons h4 { color: #EF4444 !important; font-size: 13px !important; font-weight: 700; margin: 0 0 8px !important; }
.qm-modal-pros ul, .qm-modal-cons ul { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #94A3B8; }
.qm-modal-pros li, .qm-modal-cons li { margin-bottom: 4px; }

.qm-modal-actions { display: flex; gap: 10px; margin: 20px 0 16px; }
.qm-modal-amazon { flex: 1; padding: 12px 16px; font-size: 15px; }
.qm-modal-guide-btn {
  flex: 1;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  color: #3B82F6 !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 12px 16px; border-radius: 8px;
  text-align: center; text-decoration: none !important;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qm-modal-guide-btn:hover { background: rgba(59,130,246,0.2); color: #3B82F6 !important; }
.qm-modal-source { font-size: 11px; color: #475569; text-align: center; }
.qm-modal-source a { color: #64748B !important; text-decoration: underline !important; }

/* ─── LOAD MORE ────────────────────────────────────── */
.qm-finder-loadmore {
  text-align: center;
  padding: 30px 0 10px;
}
.qm-loadmore-btn {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #3B82F6;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.qm-loadmore-btn:hover {
  background: rgba(59,130,246,0.2);
  border-color: #3B82F6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}
.qm-loadmore-count {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #475569;
}

/* ─── BOTTOM CTA ───────────────────────────────────── */
.qm-finder-bottom-cta {
  text-align: center; padding: 50px 24px;
  background: linear-gradient(180deg, #0B0E17 0%, #111827 50%, #0B0E17 100%);
  border-top: 1px solid #1E293B;
}
.qm-finder-bottom-cta h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px !important; font-weight: 800;
  color: #E2E8F0 !important; margin-bottom: 12px !important;
}
.qm-finder-bottom-cta p {
  color: #64748B !important; font-size: 15px;
  margin-bottom: 24px !important;
  max-width: 500px;
  margin-left: auto !important; margin-right: auto !important;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .qm-finder-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 900px) {
  .qm-finder-engine { grid-template-columns: 1fr; padding: 0 16px 90px; }
  .qm-finder-results { min-width: 0; overflow: hidden; }
  .qm-finder-sidebar {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 99998; border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: 100vh;
    overflow-y: auto;
  }
  .qm-finder-sidebar.open { transform: translateX(0); }
  .qm-finder-mobile-toggle {
    display: flex !important;
    position: fixed; bottom: 70px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff; border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700;
    padding: 12px 28px; border-radius: 50px;
    cursor: pointer; z-index: 99997;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
    align-items: center; gap: 6px;
  }
  .qm-finder-hero-title { font-size: 28px !important; }
  .qm-finder-hero-stats { gap: 20px; }
  .qm-fhs-num { font-size: 24px; }
  .qm-finder-grid { grid-template-columns: 1fr !important; }
  .qm-fcard-name { font-size: 16px !important; }
  .qm-fcard-desc { font-size: 13px; }
  .qm-modal-pc-grid { grid-template-columns: 1fr; }
  .qm-modal-actions { flex-direction: column; }
  .qm-finder-sidebar-close { display: flex !important; }
}
@media (max-width: 480px) {
  .qm-finder-hero { padding: 30px 14px 24px; }
  .qm-finder-hero-title { font-size: 22px !important; }
  .qm-finder-hero-subtitle { font-size: 13px; }
  .qm-finder-hero-stats { gap: 16px; }
  .qm-fhs-num { font-size: 20px; }
  .qm-fhs-label { font-size: 10px; }
  .qm-finder-engine { padding: 0 10px 90px; }
  .qm-finder-results-bar { padding: 10px 12px; }
  .qm-fcard { padding: 14px; }
  .qm-fcard-name { font-size: 15px !important; }
  .qm-fcard-actions { flex-direction: column; }
  .qm-fcard-price-value { font-size: 18px; }
  .qm-finder-list .qm-fcard { flex-direction: column; align-items: stretch; }
  .qm-modal { margin: 10px; max-height: 90vh; }
  .qm-modal-body { padding: 16px; }
  .qm-modal-title { font-size: 20px !important; }
  .qm-modal-score { min-width: 48px; height: 48px; font-size: 22px; }
}

