/* ============================================================
   PERRON RIGOT — SEARCH WIDGET — pr-search.css
   Portage exact du widget Thalgo Search
   Typo : Cormorant Garamond (titres) + Jost (corps)
   Couleurs : Noir #1A1A1A + Or #000 + Crème #F8F5F0
   Tous les sélecteurs préfixés .prs- ou #prs-
   ============================================================ */

/* ── Barre de recherche inline ── */
.prs-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #ddd8d0;
  border-radius: 2px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 1px 6px rgba(26,26,26,0.07);
  font-family: 'Jost', system-ui, sans-serif;
}
.prs-bar-icon {
  margin-left: 14px;
  flex-shrink: 0;
  color: #000;
  pointer-events: none;
  width: 15px;
  height: 15px;
}
.prs-bar-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Jost', system-ui, sans-serif;
  color: #1A1A1A;
  letter-spacing: 0.01em;
  background: transparent;
}
.prs-bar-input::placeholder { color: #b0bec5; }
.prs-bar-clear {
  background: none;
  border: none;
  color: #b0bec5;
  cursor: pointer;
  font-size: 18px;
  padding: 0 10px;
  line-height: 1;
  display: none;
}
.prs-bar-clear.vis { display: block; }
.prs-bar-btn {
  background: #1A1A1A;
  border: none;
  color: #ffffff;
  padding: 11px 18px;
  cursor: pointer;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.prs-bar-btn:hover { background: #000; }

/* ── Backdrop ── */
#prs-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999991;
  opacity: 0;
  transition: opacity 0.25s;
}
#prs-backdrop.prs-open  { display: block; }
#prs-backdrop.prs-vis   { opacity: 1; }

/* ── Panel ── */
#prs-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: #ffffff;
  z-index: 999992;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -6px 0 40px rgba(10,10,10,0.14);
  overflow: hidden;
}
#prs-panel.prs-open { transform: translateX(0); }

/* ── Header ── */
.prs-header {
  background: #F891A5;
  padding: 20px 20px 16px;
  flex-shrink: 0;
}
.prs-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.prs-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.prs-logo span {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #000;
  margin-left: 6px;
}
.prs-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  line-height: 1;
}
.prs-close-btn:hover { color: #ffffff; }

/* ── Search input in panel ── */
.prs-panel-input-wrap { position: relative; }
.prs-panel-input-wrap .prs-ico {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: #000;
  pointer-events: none;
  width: 14px; height: 14px;
}
#prs-input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #000;
  border-radius: 2px;
  color: #000;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 10px 36px 10px 36px;
  outline: none;
  letter-spacing: 0.02em;
  transition: border-color 0.15s;
}
#prs-input::placeholder { color: #000; }
#prs-input:focus {  }
.prs-input-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  display: none;
}
.prs-input-clear.vis { display: block; }

/* ── Mode pills ── */
.prs-modes {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.prs-mode {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #000;
  color: #000;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
}
.prs-mode.active {
  background: #000;
  border-color: #000;
  color: #ffffff;
  font-weight: 600;
}
.prs-mode:hover:not(.active) {
  border-color: #fff;
  color: #000;
}

/* ── Filters bar ── */
.prs-filters {
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #000;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  overflow-x: auto;
}
.prs-filter-sel {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 4px 22px 4px 9px;
  border-radius: 20px;
  border: 1px solid #000;
  color: #000;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.15s;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
}
.prs-filter-sel:focus,
.prs-filter-sel.active {
  border-color: #000;
  color: #fff;
  background : #000;
}
.prs-filter-sel option { background: #1A1A1A; color: #fff; }

/* ── Status bar ── */
.prs-status {
  padding: 8px 16px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  color: #a0a8b0;
  background: #F8F5F0;
  border-bottom: 1px solid #e8e4df;
  min-height: 34px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s;
}

.prs-sort-sel {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%231A1A1A'/%3E%3C/svg%3E") no-repeat right 6px center;
  border: 1px solid #C8C0B8;
  border-radius: 20px;
  padding: 4px 22px 4px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.prs-sort-sel:focus { border-color: #000; }
.prs-status.ai { color: #000; font-style: italic; }

/* ── Results scroll area ── */
#prs-results {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd8d0 transparent;
}
#prs-results::-webkit-scrollbar { width: 3px; }
#prs-results::-webkit-scrollbar-thumb { background: #ddd8d0; border-radius: 2px; }

/* ── Empty state ── */
.prs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 56px 40px;
  opacity: 0.42;
}
.prs-empty-icon { font-size: 38px; margin-bottom: 14px; opacity: 0.5; }
.prs-empty-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-style: italic;
}
.prs-empty-hint {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  color: #8a9298;
  line-height: 1.8;
}

/* ── Section labels ── */
.prs-section {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  padding: 12px 16px 6px;
  border-bottom: 1px solid #f0ede8;
  background: #F8F5F0;
}

/* ── Product card ── */
.prs-card {
  display: flex;
  gap: 0;
  border: none;
  border-bottom: 1px solid #f0ede8;
  text-decoration: none !important;
  color: inherit !important;
  background: #ffffff;
  transition: background 0.12s;
  cursor: pointer;
}
.prs-card:hover { background: #faf8f5; }

/* ── Product image ── */
.prs-card-img-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prs-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.prs-card-img-ph {
  font-size: 32px;
  opacity: 0.18;
  font-family: serif;
}

/* ── Card body ── */
.prs-card-body {
  flex: 1;
  min-width: 0;
  padding: 14px 18px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.prs-card-cat {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F891A5;
  margin-bottom: 1px;
}
.prs-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prs-card-accroche {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #8a9298;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prs-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.prs-badge {
  display: inline-block;
  padding: 1px 6px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid currentColor;
  line-height: 1.6;
}
.prs-badge-or    { color: #000; }
.prs-badge-vert  { color: #2E7D32; }
.prs-badge-noir  { color: #555; }
.prs-card-desc {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  color: #5a6270;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.prs-card-ref {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 9px;
  color: #b8c4cc;
  letter-spacing: 0.08em;
}


/* ── Badges cartouches sous la référence ── */
.prs-card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 14px 10px;
  border-top: 1px solid #f5f2ef;
}
.prs-card-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid #000;
  color: #000;
  background: #FFF;
  line-height: 1.6;
}

/* ── Highlight ── */
.prs-hl {
  background: rgba(184,134,11,0.18);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── AI block ── */
.prs-ai-block {
  margin: 12px 12px 0;
  padding: 14px 16px;
  background: #F8F5F0;
  border-left: 3px solid #000;
  border-radius: 0 2px 2px 0;
}
.prs-ai-label {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 8px;
}
.prs-ai-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  line-height: 1.7;
}

/* ── Loading dots ── */
.prs-dots {
  display: flex;
  gap: 5px;
  padding: 20px 16px;
  align-items: center;
}
.prs-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #000;
  animation: prsBounce 1.2s infinite ease-in-out;
}
.prs-dot:nth-child(2) { animation-delay: 0.2s; }
.prs-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes prsBounce {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.35; }
  40%           { transform: scale(1);    opacity: 1; }
}

/* ── No results ── */
.prs-noresult {
  text-align: center;
  padding: 56px 32px;
}
.prs-noresult-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.prs-noresult-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  color: #8a9298;
  line-height: 1.8;
}