/* Filter bar */
.apimo-elw .apimo-filters.bar{
  padding:14px;
  color:#fff;
  display:flex; gap:16px; flex-wrap:wrap; align-items:center;
  border-radius:6px; margin-bottom:18px;
}
.apimo-elw .apimo-filters.bar select{ appearance:none; -webkit-appearance:none; border:1px solid rgba(255,255,255,.35); color:#fff; padding:8px 12px; border-radius:4px; min-width:180px; }
.apimo-elw .apimo-filters.bar .sel select{ background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"8\"><path d=\"M1 1l5 5 5-5\" stroke=\"%23fff\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\"/></svg>') no-repeat right 10px center; padding-right:0px;font-family: 'Noyhgeometric';text-transform: uppercase; }

/* Grid (CSS) */
.apimo-elw .apimo-grid{ display:grid; gap:24px; }
.apimo-elw .apimo-grid.is-cols-1{ grid-template-columns: repeat(1, minmax(0,1fr)); }
.apimo-elw .apimo-grid.is-cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.apimo-elw .apimo-grid.is-cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.apimo-elw .apimo-grid.is-cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.apimo-elw .apimo-grid.is-cols-5{ grid-template-columns: repeat(5, minmax(0,1fr)); }
.apimo-elw .apimo-grid.is-cols-6{ grid-template-columns: repeat(6, minmax(0,1fr)); }

/* Cards – design A */
.apimo-elw .apimo-card{ background:#fff; overflow:hidden; }
.apimo-elw .apimo-thumb{ position:relative; display:block; aspect-ratio: 16/10; background:#f5f5f5; overflow:hidden; }
.apimo-elw .apimo-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.apimo-elw .apimo-topline{ display:flex; justify-content:space-between; gap:10px; margin-top:10px; font-size:16px; letter-spacing:.06em; text-transform:uppercase; color:#666;font-family:"Noyhgeometric", Sans-serif; }
.apimo-elw .apimo-price{ font-weight:400; color:#000; white-space:nowrap;}
.apimo-elw .apimo-title{ margin:6px 0 6px; font-weight:700; font-size:20px; }
.apimo-elw .apimo-meta{ color:#666; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }

.apimo-elw .apimo-pagination ul{ list-style:none; display:flex; gap:6px; padding:0; margin:16px 0 0; flex-wrap:wrap;}
.apimo-elw .apimo-pagination a, .apimo-elw .apimo-pagination span{ display:inline-block; padding:6px 10px; border:1px solid #ddd; border-radius:4px; text-decoration:none; }
.apimo-elw .apimo-pagination .current{ background:#3D5A40; color:#fff; border-color:#3D5A40; }

.apimo-elw.is-loading{ opacity:.6; pointer-events:none; }
.apimo-elw .apimo-filters.bar select { color: #ffffff; }

/* Helpers to keep topline on one line */
.apimo-elw .apimo-topline .apimo-loc{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }


/* >>> AJOUT — champ recherche */
.apimo-elw .apimo-filters.bar input[type="search"]{
  appearance:none; -webkit-appearance:none;
  border:1px solid rgba(255,255,255,.35);
  color:#fff; padding:8px 12px; border-radius:4px;
  background:transparent; min-width:240px;border-radius: 0px;
}
.apimo-elw .apimo-filters.bar input::placeholder{ color: rgba(255,255,255,.75); }
/* <<< FIN AJOUT */

/* ===== Input sur une seule ligne blanche ===== */
.apimo-elw .apimo-filters.bar .has-search{
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 50px;
}

/* on supprime l’ancienne ligne décorative si elle existe */
.apimo-elw .apimo-filters.bar .has-search::before{ content: none !important; }

/* Titre au-dessus de la ligne */
.apimo-elw .apimo-filters.bar .has-search::after{
  content: var(--search-title);
  position: absolute;
  left: 0;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.95);
}

/* L'input = une ligne blanche sur laquelle on écrit */
.apimo-elw .apimo-filters.bar input[type="search"]{
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff;     /* <- la ligne blanche */
  width: 100%;
  height: 36px;
  padding: 0 36px 0 0;               /* place pour l’icône à droite */
  color: #fff;
  caret-color: #fff;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: none;              /* on tape normalement */
}

/* Placeholder en style “menu” */
.apimo-elw .apimo-filters.bar input[type="search"]::placeholder{
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
}

/* Focus/Hover : renforce la ligne, pas de boîte */
.apimo-elw .apimo-filters.bar input[type="search"]:hover{ border-bottom-color: #fff; }
.apimo-elw .apimo-filters.bar input[type="search"]:focus{
  outline: none;
  border-bottom-color: #fff;
  box-shadow: none;
}

/* Icône loupe alignée à droite, non cliquable */
.apimo-elw .apimo-filters.bar .has-search::before{
  content:"";
  position:absolute; right: 6px; bottom: 10px;
  width:16px; height:16px; pointer-events:none;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><circle cx="7" cy="7" r="5" stroke="%23fff" stroke-width="2" fill="none"/><path d="M11 11l4 4" stroke="%23fff" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat:no-repeat; background-size:16px 16px;
}

@media (max-width:768px){
  .apimo-elw .apimo-filters.bar .has-search{ min-width: 100%; }
}



/* Price range styling */
.apimo-elw .apimo-filters .range.duo.price{ display:flex; flex-direction:column; gap:6px; min-width:220px; }
.apimo-elw .apimo-filters .price-inputs{ display:flex; align-items:center; gap:8px; }
.apimo-elw .apimo-filters .price-inputs input[type="number"]{ width:110px; }
.apimo-elw .apimo-filters .price-sliders{ display:flex; gap:8px; align-items:center; }
.apimo-elw .apimo-filters .price-sliders input[type="range"]{ flex:1; }
.apimo-elw .apimo-filters .price-inputs .sep{ opacity:0.7; }


/* Wrapper existant autour de tes <select> */
.apimo-elw .apimo-filters label.sel {
  position: relative;
  display: inline-block;
}

/* Retire l'apparence native + espace pour les chevrons */
.apimo-elw .apimo-filters label.sel select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.2rem;   /* espace pour les flèches */
  background-color: #fff;  /* adapte à ton thème */
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  line-height: 1.2;
}

/* Couleur des flèches (variable personnalisable) */
.apimo-elw {
  --apimo-arrow: #ffffff;      /* couleur des flèches */
  --apimo-arrow-bg: #2e4a39;   /* fond derrière les flèches si besoin */
}

/* Optionnel : pastille de fond à droite pour mieux voir les flèches sur fond clair */
.apimo-elw .apimo-filters label.sel::marker { content: none; } /* sécurité */
.apimo-elw .apimo-filters label.sel .apimo-arrow-bg{
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem;
  background: var(--apimo-arrow-bg);
  border-radius: .6rem;
  pointer-events: none;
  display: none; /* passe à block si tu veux la pastille visible */
}

/* Les deux chevrons (triangles CSS) */
.apimo-elw .apimo-filters label.sel::after,
.apimo-elw .apimo-filters label.sel::before {
  content: "";
  position: absolute;
  right: .75rem;
  width: 0; height: 0;
  border-left: .35rem solid transparent;
  border-right: .35rem solid transparent;
  pointer-events: none;
}

/* Chevron bas (▼) */
.apimo-elw .apimo-filters label.sel::after {
  top: calc(50% + 3px);
  border-top: .42rem solid var(--apimo-arrow);
}

/* Chevron haut (▲) */
.apimo-elw .apimo-filters label.sel::before {
  top: calc(50% - 7px);
  border-bottom: .42rem solid var(--apimo-arrow);
}

/* Focus / accessibilité */
.apimo-elw .apimo-filters label.sel select:focus {
  outline: 2px solid #2e8ece;
  outline-offset: 2px;
}

/* RTL : ajuste l’emplacement à gauche si site RTL */
html[dir="rtl"] .apimo-elw .apimo-filters label.sel::after,
html[dir="rtl"] .apimo-elw .apimo-filters label.sel::before {
  left: .75rem; right: auto;
}
html[dir="rtl"] .apimo-elw .apimo-filters label.sel select {
  padding-left: 2.2rem; padding-right: .8rem;
}
