/* Barre « Affiner cette catégorie » (izoaconseiller v0.28.0 – 14/11/2026) */

/* Place réservée avant l'insertion par le script (évite le décalage de la grille) */
body#category #products:not(:has(#izq-bar))::before { content: ""; display: block; height: 108px; }

.izq { margin: 0 0 18px; }
.izq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.izq-form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 760px; }
.izq-ico { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none;
  border: 2px solid #6b6b6b; border-radius: 50%; }
.izq-ico::after { content: ""; position: absolute; width: 2px; height: 7px; background: #6b6b6b; right: -4px; bottom: -6px; transform: rotate(-45deg); border-radius: 1px; }
.izq-in { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px 0 44px; border: 1px solid #cfcfcf; border-radius: 23px; background: #fff;
  font-size: 16px; color: #1d1d1b; -webkit-appearance: none; appearance: none; }
.izq-in::placeholder { color: #8a8a8a; }
.izq-in:focus { outline: none; border-color: #1d1d1b; box-shadow: 0 0 0 3px rgba(29, 29, 27, .12); }
.izq-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.izq-go { flex: 0 0 auto; height: 46px; padding: 0 22px; border: 0; border-radius: 23px; background: #1d1d1b; color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.izq-go:hover { background: #3a3a37; }
.izq-go:disabled { opacity: .55; cursor: progress; }
.izq-loading .izq-go { position: relative; color: transparent; }
.izq-loading .izq-go::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: izq-spin .7s linear infinite; }
@keyframes izq-spin { to { transform: rotate(360deg); } }

.izq-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; min-height: 34px; }
.izq-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14px; line-height: 1;
  cursor: pointer; white-space: nowrap; border: 1px solid #cfcfcf; background: #fff; color: #1d1d1b; }
.izq-sc:hover { border-color: #1d1d1b; }
.izq-plus { font-size: 16px; color: #6b6b6b; margin-right: -1px; }
.izq-on { background: #1d1d1b; border-color: #1d1d1b; color: #fff; padding-right: 10px; }
.izq-on:hover { background: #3a3a37; }
.izq-x { font-size: 18px; line-height: 1; opacity: .85; }
.izq-go-a { display: none; font-size: 20px; line-height: 1; }
.izq-clear { white-space: nowrap; flex: 0 0 auto; border: 0; background: none; padding: 0 6px; height: 34px; font-size: 14px; color: #1d1d1b; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.izq-clear:hover { text-decoration-thickness: 2px; }
.izq-active .izq-sc { opacity: .9; }

.izq-msg:empty { display: none; }
.izq-msg { margin-top: 10px; font-size: 14px; color: #4a4a48; }
.izq-msg p { margin: 0; }
.izq-zero { padding: 14px 16px; border-radius: 10px; background: #f5f3ef; color: #1d1d1b; }
.izq-zero-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.izq-link { border: 0; background: none; padding: 0; color: #1d1d1b; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.izq-link:hover { text-decoration-thickness: 2px; color: #1d1d1b; }
.izq-loading ~ #js-product-list, #products:has(.izq-loading) #js-product-list { opacity: .5; transition: opacity .2s; }

#js-product-list > .izq-sep { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 4px 0 20px; padding-top: 18px; border-top: 1px solid #e3e0da; }
#js-product-list > .izq-sep span { font-size: 18px; font-weight: 600; color: #1d1d1b; }
.izq-count { font-weight: 500; }

/* Attente de la sélection IA */
.izq-wait { display: flex; align-items: center; gap: 8px; }
.izq-dot { width: 14px; height: 14px; border: 2px solid #d6d2ca; border-top-color: #1d1d1b; border-radius: 50%; animation: izq-spin .8s linear infinite; flex: 0 0 auto; }
.izq-skel-img { aspect-ratio: 3 / 2; border-radius: 6px; background: linear-gradient(90deg, #efede8 25%, #f7f5f1 37%, #efede8 63%); background-size: 400% 100%; animation: izq-shine 1.4s ease infinite; }
.izq-skel-line { height: 14px; margin: 14px auto 0; width: 70%; border-radius: 7px; background: #efede8; }
.izq-skel-short { width: 30%; margin-top: 8px; }
@keyframes izq-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 767.98px) {
  body#category #products:not(:has(#izq-bar))::before { height: 104px; }
  .izq-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -15px; padding-right: 15px; }
  .izq-row::-webkit-scrollbar { display: none; }
  .izq-go { padding: 0; width: 46px; }
  .izq-go-t { display: none; }
  .izq-go-a { display: inline; }
  .izq-in { padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .izq-loading .izq-go::after, .izq-dot { animation-duration: 2s; }
  .izq-skel-img { animation: none; }
}
