/**
 * PT Search – recherche instantanée.
 * Charte Planet-Tools : bleu #009CFF, CTA en gélule, cartes à 5 px de rayon, pas d'ombre sur boutons et modales.
 * Desktop : panneau sous le header, fond flouté. Mobile : plein écran.
 * @author Group Planet
 */

.ptsr {
  --ptsr-primary: #009cff;
  --ptsr-primary-dark: #0084d9;
  --ptsr-primary-soft: #d6eeff;
  --ptsr-buy: #009a00;
  --ptsr-buy-dark: #008200;
  --ptsr-clear: #708090;
  --ptsr-text: #1f2328;
  --ptsr-muted: #5f6b76;
  --ptsr-border: #e1e5e9;
  --ptsr-border-strong: #c4ccd4;
  --ptsr-bg: #ffffff;
  --ptsr-bg-soft: #f4f6f8;
  --ptsr-promo: #d92d20;
  --ptsr-radius: 5px;
  --ptsr-pill: 50px;
  --ptsr-top: 120px;

  position: fixed;
  inset: 0;
  z-index: 99990;
  color: var(--ptsr-text);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.ptsr[hidden] { display: none; }
.ptsr *, .ptsr *::before, .ptsr *::after { box-sizing: border-box; }
.ptsr button { font: inherit; color: inherit; }
.ptsr a { color: inherit; text-decoration: none; }
.ptsr ul { list-style: none; margin: 0; padding: 0; }
.ptsr p { margin: 0; }
.ptsr h2 { margin: 0; }
.ptsr [hidden] { display: none !important; }
/* Neutralise les styles de formulaire du thème (ZOneTheme aligne les labels à droite). */
.ptsr label { float: none; width: auto; padding: 0; text-align: left; font-weight: 400; }
.ptsr-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ptsr :focus-visible { outline: 2px solid var(--ptsr-primary); outline-offset: 2px; }
.ptsr-ico { width: 20px; height: 20px; flex: none; display: block; }
.ptsr i[class^="ri-"], .ptsr i[class*=" ri-"], .ptsr i.bx, .ptsr i.sld-icon-cart { display: inline-block; line-height: 1; }

/* Page figée pendant la recherche, sans décalage dû à la barre de défilement. */
html.ptsr-lock { overflow: hidden !important; scrollbar-gutter: stable; }
body.ptsr-lock { overflow: hidden !important; }
/* Panneau ouvert : barre de navigation du header (Nos produits, Nos marques…) masquée. */
html.ptsr-lock--panel:not(.ptsr-lock--sticky) .header-main-bottom { visibility: hidden !important; }

/* ===================================================================== *
 * Mode panneau (desktop) : sous la barre de recherche du thème
 * ===================================================================== */

.ptsr--panel { pointer-events: none; }
.ptsr--panel .ptsr__backdrop {
  position: fixed;
  top: var(--ptsr-top);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(17, 24, 39, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  animation: ptsr-fade 0.15s ease-out;
}
.ptsr--panel .ptsr__panel {
  position: fixed;
  top: var(--ptsr-top);
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(1380px, calc(100vw - 160px));
  max-height: calc(100vh - var(--ptsr-top) - 20px);
  border: 1px solid var(--ptsr-border);
  border-top: 0;
  /* Collé au header : seuls les angles du bas sont arrondis. */
  border-radius: 0 0 var(--ptsr-radius) var(--ptsr-radius);
  background: var(--ptsr-bg);
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: auto;
  animation: ptsr-drop 0.18s ease-out;
}
.ptsr--panel .ptsr__top { display: none; }
@keyframes ptsr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ptsr-drop { from { opacity: 0; } to { opacity: 1; } }

.ptsr__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.ptsr__x .ptsr-ico { width: 26px; height: 26px; transition: transform 0.25s ease; }
.ptsr__x:hover { background: var(--ptsr-bg-soft); }
.ptsr__x:hover .ptsr-ico { transform: rotate(90deg); }
.ptsr--panel .ptsr__x { display: grid; }

/* ===================================================================== *
 * Mode plein écran (mobile)
 * ===================================================================== */

.ptsr--full {
  /* Mobile : au premier plan, devant tout ce que le thème fixe à l'écran (barre d'achat de la fiche produit,
     bulles de chat…). */
  z-index: 2147483000;
  background: var(--ptsr-bg);
}
.ptsr--full .ptsr__backdrop { display: none; }
.ptsr--full .ptsr__panel { position: fixed; inset: 0; display: flex; flex-direction: column; border-radius: 0; background: var(--ptsr-bg); }

.ptsr__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 0;
  flex: none;
}
.ptsr__bar {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0 2px 6px;
  border-bottom: 2px solid var(--ptsr-primary);
}
.ptsr__bar-ico { width: 20px; height: 20px; }
.ptsr__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ptsr-text);
  font: inherit;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ptsr__input::-webkit-search-cancel-button,
.ptsr__input::-webkit-search-decoration { -webkit-appearance: none; }
.ptsr__input::placeholder { color: #8b96a1; }
.ptsr .ptsr__input:focus, .ptsr .ptsr__input:focus-visible { outline: none; box-shadow: none; border: 0; }
.ptsr__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.ptsr__close .ptsr-ico { width: 24px; height: 24px; }

/* Barre de chargement */
.ptsr__progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; pointer-events: none; z-index: 3; }
.ptsr--full .ptsr__progress { top: 56px; }
.ptsr.is-loading .ptsr__progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ptsr-primary), transparent);
  animation: ptsr-load 0.9s linear infinite;
}
@keyframes ptsr-load { to { left: 100%; } }

/* ===================================================================== *
 * Bouton « Effacer » : gris ardoise, gélule, picto qui tourne au survol
 * ===================================================================== */

.ptsr-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 50px;
  background: #708090;
  color: #fff !important;
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ptsr-clear i { font-size: 17px; font-weight: 400 !important; }
.ptsr-clear:hover { background: #5f6e7d; }
.ptsr-clear--float {
  position: fixed;
  z-index: 99991;
  transform: translate(-100%, -50%);
  font-family: inherit;
}
.ptsr-clear--float[hidden] { display: none; }

/* ===================================================================== *
 * Mise en page : colonne de gauche + zone principale
 * ===================================================================== */

.ptsr__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ptsr__wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0 40px;
  padding: 30px 40px 36px;
}
.ptsr.no-aside .ptsr__wrap { grid-template-columns: minmax(0, 1fr); }
.ptsr.no-aside .ptsr__aside { display: none; }

.ptsr__aside { border-right: 1px solid var(--ptsr-border); padding-right: 28px; min-width: 0; }
.ptsr__aside-title { margin-bottom: 14px !important; color: #444 !important; font-size: 19px !important; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.ptsr__aside-title:empty { display: none; }
.ptsr__mf { display: none; }
.ptsr-aside-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.2s ease;
}
.ptsr-aside-link:hover { color: var(--ptsr-primary-dark); transform: translateX(3px); }
.ptsr-aside-link--recent { justify-content: flex-start; color: var(--ptsr-muted); }
.ptsr-aside-link--recent i { font-size: 15px; }
.ptsr-aside-count { flex: none; color: var(--ptsr-muted); font-size: 13px; }
/* Même taille pour toutes les listes (marques en <button>, catégories en <a>). */
.ptsr .ptsr__aside-list .ptsr-aside-link { font-size: 15px; }
.ptsr-aside-sub { margin: 22px 0 0; }
.ptsr .ptsr-aside-hr { height: 0; margin: 0 0 20px !important; border: 0 !important; border-top: 1px solid #444 !important; background: none; opacity: 1; }

/* Marques : cases à cocher (filtre sur place). */
.ptsr-aside-link--brand { justify-content: flex-start; align-items: center; color: var(--ptsr-text); }
.ptsr-aside-link--brand:hover { transform: none; }
.ptsr-aside-link--brand:hover .ptsr-check { border-color: var(--ptsr-primary); }
.ptsr-aside-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptsr-check {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #444444;
  border-radius: 3px;
  background: var(--ptsr-bg);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ptsr-aside-link--brand.is-on { font-weight: 700; }
.ptsr-aside-link--brand.is-on .ptsr-check { border-color: var(--ptsr-primary); background: var(--ptsr-primary); }
.ptsr-aside-link--brand.is-on .ptsr-check::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ptsr-brand--extra { display: none; }
.ptsr__aside-list.is-brands-open .ptsr-brand--extra { display: block; }
.ptsr-aside-more,
.ptsr-aside-clear {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 13px;
  cursor: pointer;
}
.ptsr .ptsr-aside-more { margin-top: 2px; color: var(--ptsr-primary); font-size: 14px; }
.ptsr .ptsr-aside-more span { text-decoration: underline; text-underline-offset: 2px; }
.ptsr .ptsr-aside-more:hover span { text-decoration-thickness: 2px; }
.ptsr .ptsr-aside-more i { font-size: 18px; }
.ptsr .ptsr-aside-clear { margin-bottom: 4px; color: var(--ptsr-primary); }
.ptsr .ptsr-aside-clear:hover { color: var(--ptsr-primary-dark); text-decoration: underline; }

.ptsr__main { min-width: 0; padding-right: 30px; }

/* Accueil */
.ptsr__home { display: none; }
.ptsr.is-home .ptsr__home { display: block; }
.ptsr.is-home .ptsr__results { display: none; }
.ptsr__hint { margin-bottom: 22px !important; color: #767f8a !important; font-size: 17px !important; }
.ptsr__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 20px 8px 12px;
  color: #007acc !important;
  background: #d6eeff;
  border: 1px solid #007acc;
  border-radius: 3px 50px 50px 3px;
}
.ptsr__hint i { flex: none; font-size: 1.45rem; line-height: 1; }
.ptsr__hint strong { font-weight: 700; }
@media (min-width: 992px) {
  .ptsr .ptsr__aside-list { font-size: 16px; }
  .ptsr .ptsr__aside-list .ptsr-aside-link { font-size: 16px; }
}

.ptsr-reco__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ptsr-reco__title { color: #444 !important; font-size: 20px !important; font-weight: 700; line-height: 1.2; }
.ptsr-reco__nav { display: flex; gap: 8px; }
.ptsr-reco__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: #009cff !important;
  color: #fff !important;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.ptsr .ptsr-reco__arrow:hover:not(:disabled), .ptsr .ptsr-reco__arrow:focus-visible:not(:disabled) { background: #007acc !important; color: #fff !important; }
.ptsr .ptsr-reco__arrow:disabled { background: #d6eeff !important; color: #009cff !important; cursor: default; }
/* 4 articles + le 5e coupé à droite, pour inviter à faire glisser. */
.ptsr-reco__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 4.35);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  cursor: grab;
}
.ptsr-reco__track::-webkit-scrollbar { display: none; }
.ptsr-reco__track > li { scroll-snap-align: start; }
.ptsr-reco__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.ptsr-reco__track.is-gliding { scroll-snap-type: none; scroll-behavior: auto; }
.ptsr-reco__track.is-dragging a, .ptsr-reco__track.is-dragging img { pointer-events: none; }
.ptsr-reco__track img { -webkit-user-drag: none; user-select: none; }

/* En-tête des résultats */
.ptsr__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 18px;
}
.ptsr__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.ptsr__count { margin: 0 !important; font-size: 24px !important; line-height: 1.25; }
.ptsr .ptsr__all { flex: none; text-decoration: none; }
/* « Voir les N résultats » : libellé en 17 px, toujours sur une ligne. */
.ptsr .ptsr__all { font-size: 17px !important; white-space: nowrap; }
.ptsr .ptsr__all span { white-space: nowrap; }
.ptsr.is-empty .ptsr__all { display: none; }
.ptsr__sort { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; white-space: nowrap; }
.ptsr__sort-select {
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid #e1e5e9;
  border-radius: var(--ptsr-radius);
  background: #fff;
  color: var(--ptsr-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ptsr__sort-ico { position: absolute; right: 10px; font-size: 18px; pointer-events: none; }
.ptsr.is-empty .ptsr__sort { display: none; }

.ptsr .ptsr-notice-link { color: #009cff; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ptsr .ptsr-notice-link.is-strong { font-weight: 700; }
.ptsr .ptsr-notice-link:hover, .ptsr .ptsr-notice-link:focus-visible { text-decoration: none; }
.ptsr__suggest { margin-bottom: 18px; }
.ptsr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ptsr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px 6px 16px;
  border: 1px solid var(--ptsr-primary);
  border-radius: var(--ptsr-pill);
  background: var(--ptsr-primary-soft);
  color: var(--ptsr-primary-dark) !important;
  font-size: 14px;
}
.ptsr-chip__type { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.8; }
.ptsr-chip i { font-size: 18px; transition: transform 0.25s ease; }
.ptsr-chip:hover i { transform: translateX(4px); }

/* Bannière : 800 × 150 (desktop) / 640 × 100 (mobile) */
/* Pleine largeur de la zone de résultats (≈ 960 px sur desktop) : prévoir une image de 1600 × 300 px pour rester nette. */
.ptsr__banner { margin: 0 0 22px; width: 100%; max-width: none; }
.ptsr__banner a, .ptsr__banner picture { display: block; }
/* Trait de séparation entre la bannière et « N Résultats trouvés » (seulement quand une bannière est affichée). */
.ptsr__banner:not([hidden]) + .ptsr__head { padding-top: 20px; border-top: 1px solid #e1e5e9; }
.ptsr__banner img { display: block; width: 100%; height: auto; border: 1px solid #ddd; border-radius: var(--ptsr-radius); }
/* Bannière cliquable : contour bleu #009CFF au survol (desktop) et à l'appui (desktop + mobile). */
.ptsr__banner a { border-radius: var(--ptsr-radius); -webkit-tap-highlight-color: transparent; outline: none; }
.ptsr__banner a img {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform;
}
@media (hover: hover) {
  .ptsr__banner a:hover img {
    border-color: #009cff;
    box-shadow: 0 0 0 1px #009cff;
    transform: translateY(-2px);
  }
}
.ptsr__banner a:focus-visible img {
  border-color: #009cff;
  box-shadow: 0 0 0 2px #009cff;
}
.ptsr__banner a:active img,
.ptsr__banner a.is-pressed img {
  border-color: #009cff;
  box-shadow: 0 0 0 2px #009cff;
  transform: scale(0.985);
  transition-duration: 0.08s;
}
@media (prefers-reduced-motion: reduce) {
  .ptsr__banner a img { transition: border-color 0.2s ease, box-shadow 0.2s ease; transform: none !important; }
}

/* Grille */
.ptsr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }

/* ===================================================================== *
 * Vignettes produit
 * ===================================================================== */

.ptsr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ptsr-border);
  border-radius: var(--ptsr-radius);
  background: var(--ptsr-bg);
  transition: border-color 0.15s ease;
}
.ptsr-card:hover { border-color: var(--ptsr-primary); }
.ptsr-card__link { display: flex; flex-direction: column; flex: 1 1 auto; }
.ptsr-card__img { display: grid; place-items: center; aspect-ratio: 1 / 1; margin-bottom: 14px; overflow: hidden; }
.ptsr-card__img img { width: 100%; height: 100%; object-fit: contain; }
/* Coins de l'image : réduction + badges « Badges Produits » empilés. */
.ptsr-card__img { position: relative; }
.ptsr-card__flags {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 8px);
  pointer-events: none;
}
.ptsr-card__flags--top-left { top: 0; left: 0; align-items: flex-start; }
.ptsr-card__flags--top-right { top: 0; right: 0; align-items: flex-end; }
.ptsr-card__flags--bottom-left { bottom: 0; left: 0; align-items: flex-start; }
.ptsr-card__flags--bottom-right { bottom: 0; right: 0; align-items: flex-end; }
.ptsr-card__icons { display: flex; flex-wrap: wrap; gap: 4px; }
.ptsr-card__flags--top-right .ptsr-card__icons,
.ptsr-card__flags--bottom-right .ptsr-card__icons { justify-content: flex-end; }
.ptsr-pbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.ptsr-pbadge i { font-size: 17px; font-weight: 400; line-height: 1; }
.ptsr-pbadge .ptsr-ico { width: 17px; height: 17px; stroke-width: 2.2; }
.ptsr-ship {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.ptsr-ship b { font-weight: 700; }
/* Font Awesome « solid » n'existe qu'en 900 : forcer 400 ferait disparaître l'icône. */
.ptsr-pbadge i.fa-solid, .ptsr-pbadge i.fas { font-weight: 900; }
.ptsr-pbadge--text { width: auto; padding: 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.ptsr-card__badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--ptsr-promo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ptsr-card__brand { margin-bottom: 4px; color: var(--ptsr-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.ptsr-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.4em * 3);
  font-size: 14px;
  line-height: 1.4;
}
.ptsr-card__link:hover .ptsr-card__name { color: var(--ptsr-primary-dark); }

/* Tag de disponibilité : structure et classes de la fiche produit (.product-availability-container .alert.alert-success,
   .product-available-date…) ; taille, couleurs et arrondis viennent de theme.css. Seul l'espacement dans la vignette est fixé ici. */
.ptsr .ptsr-avail { min-height: 26px; margin: 10px 0 12px !important; }
.ptsr .ptsr-avail .alert { display: inline-block; margin: 0; }
.ptsr .ptsr-avail .alert, .ptsr .ptsr-avail .product-available-date { border-radius: 5px !important; }

.ptsr-card__bottom { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; }
.ptsr-card__bottom .ptsr-cta { width: 100%; }
.ptsr .ptsr-card__bottom .ptsr-cta { font-size: 16px !important; }
.ptsr-card__prices { display: flex; flex-direction: column; min-width: 0; }
.ptsr-card__price { font-size: 16px; font-weight: 700; white-space: nowrap; }
.ptsr-card__tax { font-size: 12px; font-weight: 700; }
.ptsr-card__old { color: var(--ptsr-muted); font-size: 12px; text-decoration: line-through; white-space: nowrap; }

/* ===================================================================== *
 * CTA : gélules, sans ombre. Au survol, le picto glisse puis s'arrête (pas de va-et-vient).
 * ===================================================================== */

.ptsr-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: var(--ptsr-pill);
  background: var(--ptsr-primary);
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ptsr .ptsr-cta i { font-size: 19px; font-weight: 400 !important; transition: transform 0.25s ease; }
.ptsr-cta:hover, .ptsr-cta:focus-visible { background: var(--ptsr-primary-dark); }
.ptsr .ptsr-cta:hover i, .ptsr .ptsr-cta:focus-visible i { transform: translateX(4px); }
.ptsr-cta--buy { background: var(--ptsr-buy); }
.ptsr-cta--buy:hover, .ptsr-cta--buy:focus-visible { background: var(--ptsr-buy-dark); }
.ptsr-cta--sm { height: 36px; padding: 0 10px 0 14px; }
.ptsr-cta.is-busy { opacity: 0.6; cursor: progress; }
.ptsr-cta.is-done { background: var(--ptsr-buy-dark); }

/* M'avertir : bx-bell remplacé par bx-bell-ring au survol, qui tremble sur place (aucun déplacement). */
.ptsr .ptsr-cta--alert i.ptsr-bell-ring { display: none; }
.ptsr .ptsr-cta--alert:hover i.ptsr-bell,
.ptsr .ptsr-cta--alert:focus-visible i.ptsr-bell { display: none; }
.ptsr .ptsr-cta--alert:hover i.ptsr-bell-ring,
.ptsr .ptsr-cta--alert:focus-visible i.ptsr-bell-ring {
  display: inline-block;
  transform: none;
  transform-origin: 50% 15%;
  animation: ptsr-shake 0.7s ease-in-out infinite;
}
.ptsr .ptsr-cta--alert:hover i, .ptsr .ptsr-cta--alert:focus-visible i { transform: none; }

@keyframes ptsr-shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
@keyframes ptsr-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* « Alerte créée » : picto à droite, puis fondu de 0,5 s. */
.ptsr-alert-done {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  color: var(--ptsr-buy);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.ptsr-alert-done i { font-size: 20px; animation: ptsr-pop 0.4s ease-out; }
.ptsr-alert-done.is-fading { opacity: 0; visibility: hidden; }

/* Formulaire e-mail (visiteur non connecté) */
.ptsr-alert { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ptsr-alert input {
  flex: 1 1 120px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ptsr-border-strong);
  border-radius: var(--ptsr-radius);
  font: inherit;
  font-size: 16px;
}
.ptsr-alert input:focus { border-color: var(--ptsr-primary); outline: none; }
.ptsr-alert__msg { flex: 1 1 100%; font-size: 12px; color: var(--ptsr-muted); }
.ptsr-alert__msg:empty { display: none; }
.ptsr-alert__msg.is-error { color: var(--ptsr-promo); }

.ptsr__all-bottom { margin-top: 24px; text-align: center; }
.ptsr__sentinel { height: 1px; }

/* Barre « Voir les N résultats » fixée en bas (mobile uniquement) */
.ptsr__dock {
  flex: none;
  padding: 10px 16px;
  border-top: 1px solid var(--ptsr-border);
  background: var(--ptsr-bg);
}
.ptsr--panel .ptsr__dock { display: none !important; }
.ptsr__dock .ptsr-cta { width: 100%; height: 44px; }
.ptsr.has-dock .ptsr__toast { bottom: 78px; }

/* Aucun résultat */
.ptsr__empty { max-width: 640px; padding: 8px 0 24px; }
.ptsr-empty__title { margin-bottom: 12px !important; font-size: 18px; font-weight: 700; }
.ptsr-empty__tips { padding-left: 18px !important; list-style: disc !important; color: var(--ptsr-muted); }
.ptsr-empty__tips li + li { margin-top: 4px; }

/* Toast */
.ptsr__toast {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--ptsr-radius);
  background: var(--ptsr-text);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
}
.ptsr__toast i { color: #6ee7a8; font-size: 18px; }
.ptsr__toast a { color: #7fcfff !important; font-weight: 700; text-decoration: underline !important; white-space: nowrap; }
.ptsr__toast.is-error { background: var(--ptsr-promo); }

/* Bulle de confirmation au-dessus du bouton « Acheter » */
.ptsr-card__bottom { position: relative; }
.ptsr-pop {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: calc(100% + 10px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 12px;
  border-radius: 5px;
  background: var(--ptsr-text);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  animation: ptsr-pop-in 0.2s ease-out;
}
.ptsr-pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: var(--ptsr-text);
}
.ptsr-pop i { color: #6ee7a8; font-size: 17px; }
.ptsr-pop span { flex: 1 1 auto; min-width: 0; }
.ptsr-pop a { flex-basis: 100%; padding-left: 25px; color: #7fcfff !important; font-weight: 700; text-decoration: underline !important; }
.ptsr-pop.is-error { background: var(--ptsr-promo); }
.ptsr-pop.is-error::after { border-top-color: var(--ptsr-promo); }
.ptsr-pop.is-error i { color: #fff; }
@keyframes ptsr-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===================================================================== *
 * Écrans intermédiaires
 * ===================================================================== */

@media (max-width: 1399px) {
  .ptsr--panel .ptsr__panel { width: calc(100vw - 80px); }
  .ptsr__wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 0 28px; padding: 26px 28px 30px; }
  .ptsr__main { padding-right: 34px; }
  .ptsr-reco__track { grid-auto-columns: calc((100% - 3 * 16px) / 3.35); }
}

/* ===================================================================== *
 * Mobile (plein écran)
 * ===================================================================== */

@media (max-width: 991px) {
  .ptsr__count { font-size: 17px !important; }
  .ptsr__wrap { display: block; padding: 14px 16px 28px; }
  .ptsr__main { padding-right: 0; }

  /* La colonne de gauche devient une rangée défilante au-dessus des résultats. */
  .ptsr__aside { margin: 0 -16px 16px; padding: 0 16px 12px; border-right: 0; border-bottom: 1px solid var(--ptsr-border); }
  .ptsr__aside-title { margin-bottom: 8px !important; font-size: 15px !important; white-space: normal; overflow: visible; }
  .ptsr__aside-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .ptsr__aside-list::-webkit-scrollbar { display: none; }
  .ptsr__aside-list > li { flex: none; }
  .ptsr-aside-sub { display: none; }
  /* Marques (pastilles à cocher, toutes affichées) puis catégories, séparées par un trait vertical. */
  .ptsr__aside-list > .ptsr-aside-sub--cats { display: block; align-self: stretch; width: 1px; margin: 4px 4px; background: var(--ptsr-border-strong); }
  .ptsr-aside-sub--cats > * { display: none !important; }
  .ptsr-brand--extra { display: block; }
  .ptsr-brand-more { display: none !important; }
  .ptsr-aside-link--brand { gap: 6px; }
  .ptsr-aside-link--brand.is-on { border-color: var(--ptsr-primary); background: var(--ptsr-primary-soft); }
  .ptsr-aside-name { overflow: visible; }
  .ptsr-aside-clear { height: 100%; margin: 0; padding: 7px 4px; white-space: nowrap; }
  .ptsr-aside-link {
    width: auto;
    padding: 7px 14px;
    border: 1px solid var(--ptsr-border-strong);
    border-radius: var(--ptsr-pill);
    font-size: 14px;
    white-space: nowrap;
  }
  .ptsr-aside-link:hover { transform: none; }
  .ptsr .ptsr__aside-list .ptsr-aside-link { font-size: 14px; }
  .ptsr-aside-count { font-size: 12px; }

  /* Filtres mobiles : boutons « Marques » / « Catégories » qui déplient leur liste en plusieurs lignes
     (le défilement horizontal était peu pratique). */
  .ptsr.has-mf .ptsr__mf:not([hidden]) { display: flex; gap: 8px; }
  .ptsr-mf {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    height: 42px;
    padding: 0 10px 0 14px;
    border: 1px solid var(--ptsr-border-strong);
    border-radius: var(--ptsr-radius);
    background: var(--ptsr-bg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .ptsr-mf[hidden] { display: none !important; }
  .ptsr-mf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ptsr .ptsr-mf i { font-size: 20px; transition: transform 0.2s ease; }
  .ptsr-mf.has-on { border-color: var(--ptsr-primary); background: var(--ptsr-primary-soft); }
  .ptsr-mf[aria-expanded="true"] { border-color: var(--ptsr-primary); color: var(--ptsr-primary-dark); }
  .ptsr .ptsr-mf[aria-expanded="true"] i { transform: rotate(180deg); }
  .ptsr.has-mf .ptsr__aside-title { display: none !important; }
  .ptsr.has-mf .ptsr__aside-list { display: none; }
  .ptsr.has-mf.mf-brands .ptsr__aside-list,
  .ptsr.has-mf.mf-cats .ptsr__aside-list { display: flex; flex-wrap: wrap; overflow: visible; margin-top: 12px; }
  .ptsr.has-mf.mf-brands .ptsr__aside-list > li:not(.ptsr-brand):not(.ptsr-aside-reset),
  .ptsr.has-mf.mf-cats .ptsr__aside-list > li:not(.ptsr-cat) { display: none !important; }
  .ptsr.has-mf .ptsr-cat .ptsr-aside-link { white-space: normal; text-align: left; }

  .ptsr__hint { margin-bottom: 14px !important; font-size: 14px !important; padding: 8px 16px 8px 10px; border-radius: 3px 24px 24px 3px; }
  .ptsr__hint i { font-size: 1.25rem; }
  .ptsr-reco__title { font-size: 17px !important; }
  .ptsr-reco__nav { display: none; }
  .ptsr-reco__track { grid-auto-columns: 42%; gap: 10px; cursor: auto; }

  .ptsr__head { margin-bottom: 12px; }
  .ptsr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ptsr-card { padding: 10px; }
  .ptsr-card__img { margin-bottom: 10px; }
  .ptsr-pbadge { width: 24px; height: 24px; border-radius: 6px; }
  .ptsr-pbadge i { font-size: 15px; }
  .ptsr-pbadge .ptsr-ico { width: 15px; height: 15px; }
  .ptsr-ship { padding: 3px 6px; border-radius: 6px; }
  .ptsr-card__name { font-size: 13px; }
  .ptsr-card__bottom { gap: 8px; }
  .ptsr-card__price { font-size: 15px; }
  .ptsr-cta { height: 38px; }
  .ptsr-alert-done { justify-content: center; }
  .ptsr__banner { margin-bottom: 14px; }
  .ptsr__toast { bottom: 14px; }
  .ptsr.has-dock .ptsr__toast { bottom: 78px; }

  /* Bouton de fin de liste en pleine largeur. */
  .ptsr__all-bottom .ptsr-cta { width: 100%; height: 44px; }
}

/* iPhone / iPad uniquement (propriété lue seulement par Safari iOS) : marge sous la barre d'accueil. */
@supports (-webkit-touch-callout: none) {
  .ptsr--full .ptsr__wrap { padding-bottom: calc(28px + max(16px, env(safe-area-inset-bottom, 0px))); }
  .ptsr--full .ptsr__dock { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .ptsr--full.has-dock .ptsr__toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
/* Clavier ouvert : il recouvre la barre d'accueil d'iOS, la marge de sécurité est inutile. */
.ptsr--full.ptsr--kb .ptsr__dock { padding-bottom: 10px !important; }
.ptsr--full.ptsr--kb .ptsr__wrap { padding-bottom: 28px !important; }
.ptsr--full.ptsr--kb.has-dock .ptsr__toast { bottom: 78px !important; }

@media (max-width: 420px) {
  .ptsr-clear--inline span { display: none; }
  .ptsr-clear--inline { padding: 0 8px; }
}

/* Doofinder encore installé (mode test) : ce fichier n'est chargé que pour les visiteurs qui ont PT Search.
   Le module retire déjà les scripts Doofinder de la page ; ces règles masquent son layer s'il est chargé
   autrement (Google Tag Manager, JS combiné par le cache CCC…). */
.dfd-root,
.dfd-fullscreen,
.dfd-classic,
.df-classic,
.df-fullscreen,
.df-mobile,
.df-embedded,
[id^="df-classic__"],
[id^="df-fullscreen__"],
[id^="df-mobile__"],
[id^="df-embedded__"] {
  display: none !important;
}


/* ===================================================================== *
 * Page /recherche : filtres PT Search (colonne de gauche)
 * Remplacent le bloc d'Advanced Search, calculé avec la recherche native (ne correspond pas aux produits affichés).
 * ===================================================================== */

body#search .PM_ASBlockOutput { display: none !important; }

.ptsr-sf { margin-bottom: 24px; color: #1f2328; }
.ptsr-sf__box > summary { list-style: none; }
.ptsr-sf__box > summary::-webkit-details-marker { display: none; }
.ptsr-sf__toggle { display: none !important; } /* filtres toujours dépliés, mobile compris */
.ptsr-sf__heading { font-size: 18px; font-weight: 700; text-transform: uppercase; }
.ptsr-sf__body { display: flex; flex-direction: column; gap: 22px; }
/* Trait entre Marques et Catégories, comme dans le panneau de recherche. */
.ptsr-sf__group + .ptsr-sf__group { padding-top: 20px; border-top: 1px solid #444; }
.ptsr-sf__clear { align-self: flex-start; color: #009cff !important; font-size: 14px; text-decoration: underline; }
.ptsr-sf__title { margin: 0 0 10px !important; color: #444 !important; font-size: 19px; font-weight: 700; line-height: 1.2; }
.ptsr-sf__list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ptsr-sf__list > li { margin: 0; padding: 0; }
.ptsr-sf__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #1f2328 !important;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none !important;
}
.ptsr-sf__item:hover .ptsr-sf__name { color: #009cff; }
.ptsr-sf__check {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #444;
  border-radius: 3px;
  background: #fff;
}
.ptsr-sf__item.is-on .ptsr-sf__check { border-color: #009cff; background: #009cff; }
.ptsr-sf__item.is-on .ptsr-sf__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ptsr-sf__item.is-on .ptsr-sf__name { font-weight: 700; }
.ptsr-sf__name { flex: 1 1 auto; min-width: 0; }
.ptsr-sf__count { flex: none; color: #5f6b76; font-size: 13px; }
.ptsr-sf__chk { display: none !important; }
.ptsr-sf__xd { display: none; }
.ptsr-sf__chk:checked + .ptsr-sf__list .ptsr-sf__xd { display: block; }
.ptsr-sf__more {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: #009cff !important;
  font-size: 14px;
  font-weight: 400 !important;
  cursor: pointer;
}
.ptsr-sf__more.has-d { display: inline-flex; }
.ptsr-sf .ptsr-sf__more { float: none; width: auto; text-align: left; line-height: 1.4; }
.ptsr-sf__more span { text-decoration: underline; text-underline-offset: 2px; }
.ptsr-sf__more:hover span { text-decoration-thickness: 2px; }
.ptsr-sf__more i { font-size: 18px; line-height: 1; transition: transform 0.2s ease; }
.ptsr-sf__more-m, .ptsr-sf__less { display: none; }
.ptsr-sf__chk:checked ~ .ptsr-sf__more { display: inline-flex; }
.ptsr-sf__chk:checked ~ .ptsr-sf__more .ptsr-sf__more-d,
.ptsr-sf__chk:checked ~ .ptsr-sf__more .ptsr-sf__more-m { display: none !important; }
.ptsr-sf__chk:checked ~ .ptsr-sf__more .ptsr-sf__less { display: inline; }
.ptsr-sf__chk:checked ~ .ptsr-sf__more i { transform: rotate(180deg); }
@media (max-width: 991px) {
  .ptsr-sf__xm { display: none; }
  .ptsr-sf__chk:checked + .ptsr-sf__list .ptsr-sf__xm { display: block; }
  .ptsr-sf__more { display: inline-flex; }
  .ptsr-sf__more-d { display: none !important; }
  .ptsr-sf__more-m { display: inline; }
}

/* Mobile et tablette : la colonne de gauche (Vente Flash, nouveautés…) passe sous les résultats ;
   les filtres PT Search sont déplacés au-dessus des résultats par ptsearch.js. */
@media (max-width: 991px) {
  body#search #content-wrapper { order: 1; flex: 0 0 100%; max-width: 100%; }
  body#search #left-column { order: 2; flex: 0 0 100%; max-width: 100%; }
  body#search #right-column { order: 3; }
  .ptsr-sf.is-moved { margin: 0 0 20px; }
}


