/* NFD shop filters — alignment 1.0.3 (2026-11-09)
   Beats CozyCorner html input[type=number]/select rules
   (padding: var(--ts-btn-padding-top) var(--ts-btn-padding-left);
    border-radius: var(--ts-btn-radius, 40px)). */

html:not(.nfd-en) .nfd-l-en{display:none!important}
html.nfd-en .nfd-l-fr{display:none!important}

.nfd-shop-layout{display:block;padding-top:8px}
.nfd-shop-main{min-width:0}

/* ---------- Sort bar ---------- */
.nfd-barre-tri{
  display:flex;
  align-items:center;
  gap:12px 16px;
  flex-wrap:wrap;
  padding:12px 0;
  border-bottom:1px solid #E7DFD2;
  color:#1F1D1B;
}
.nfd-btn-filtres{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 14px!important;
  border:1px solid #1F1D1B!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#1F1D1B!important;
  font:600 14px/1 inherit!important;
  cursor:pointer;
  appearance:none!important;
  -webkit-appearance:none!important;
  width:auto!important;
  height:auto!important;
  box-shadow:none!important;
}
.nfd-btn-filtres .nb{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  border-radius:9px;
  background:#A3262A;
  color:#fff;
  font-size:11px;
}
.nfd-nb-res{color:#6f6b66;font-size:14px;white-space:nowrap}
.nfd-tri{
  margin-left:auto;
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
}
body.nfd .nfd-tri label,
.nfd-tri label{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  line-height:1.2!important;
  font-size:14px!important;
  color:#1F1D1B;
  min-width:0;
  width:auto!important;
  max-width:none!important;
}
.nfd-tri-lbl,
.nfd-tri-lbl .nfd-l-fr,
.nfd-tri-lbl .nfd-l-en{
  white-space:nowrap!important;
  flex:0 0 auto!important;
  min-width:auto!important;
}
body.nfd .nfd-tri select,
.nfd-tri select{
  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important;
  display:inline-block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:0 0 auto!important;
  height:auto!important;
  margin:0!important;
  padding:8px 32px 8px 12px!important;
  border:1px solid #E7DFD2!important;
  border-radius:8px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231F1D1B' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:calc(100% - 10px) 50%!important;
  background-size:10px 7px!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  font-size:14px!important;
  line-height:1.3!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  color:#1F1D1B!important;
  cursor:pointer;
}

/* ---------- Filter panel (drawer / sidebar) ---------- */
.nfd-filtres{
  position:fixed;
  top:0;left:0;bottom:0;
  width:min(86vw,340px);
  max-width:100%;
  background:#F7F3EC;
  color:#1F1D1B;
  z-index:100000;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform:translateX(-105%);
  transition:transform .25s ease;
  padding:0;
  box-shadow:2px 0 18px rgba(0,0,0,.15);
  box-sizing:border-box;
}
.nfd-filtres.ouvert{transform:none}
.nfd-filtres-voile{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:99999;display:none}
.nfd-filtres.ouvert+.nfd-filtres-voile{display:block}
body.nfd-filtres-lock{overflow:hidden}

.nfd-filtres-tete{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex:0 0 auto;
  padding:16px 18px;
  border-bottom:1px solid #E7DFD2;
  background:#F7F3EC;
}
.nfd-filtres-tete strong{font-size:17px;font-weight:700;color:#1F1D1B}
.nfd-filtres-fermer{
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  padding:0 4px!important;
  color:#1F1D1B;
  width:auto!important;
  height:auto!important;
  appearance:none!important;
}

.nfd-filtres-form{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
.nfd-filtres-corps{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:4px 18px 24px;
  -webkit-overflow-scrolling:touch;
}
.nfd-filtres-actions{
  flex:0 0 auto;
  position:static;
  background:#F7F3EC;
  padding:12px 18px 16px;
  border-top:1px solid #E7DFD2;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nfd-filtre-bloc{padding:14px 0;border-bottom:1px solid #E7DFD2}
.nfd-filtre-bloc:last-child{border-bottom:0}
.nfd-filtre-bloc h4{
  margin:0 0 10px;
  padding:0;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#1F1D1B;
  line-height:1.3;
}

/* Categories */
.nfd-filtre-cats,.nfd-filtre-couleurs{list-style:none;margin:0;padding:0}
.nfd-filtres ul,.nfd-filtres li{list-style:none!important;margin:0!important;padding:0!important}
.nfd-filtres li::before,.nfd-filtres li::marker{content:none!important;display:none!important}
.nfd-filtres li{display:block!important}
.nfd-filtre-cats a{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:8px;
  padding:6px 0;
  color:#1F1D1B;
  text-decoration:none;
  font-size:14px;
  line-height:1.35;
  min-width:0;
}
.nfd-filtre-cats li.on>a{color:#A3262A;font-weight:700}
.nfd-filtre-cats li.retour a{color:#6f6b66;gap:6px}
.nfd-filtre-cats small,
.nfd-filtre-couleurs small{
  flex:0 0 auto;
  margin-left:auto;
  color:#8a857f;
  font-size:13px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  font-weight:400;
}

/* Price fields — $ prefix lives outside the input */
.nfd-filtre-prix{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  width:100%;
}
.nfd-prix-sep{
  flex:0 0 auto;
  color:#1F1D1B;
  line-height:1;
  font-size:14px;
}
body.nfd .nfd-filtre-prix > label,
.nfd-filtre-prix > label{
  flex:1 1 0;
  min-width:0;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  line-height:1!important;
}
.nfd-prix-champ{
  display:flex;
  align-items:center;
  gap:2px;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #E7DFD2;
  border-radius:8px;
  background:#fff;
  padding:0 8px;
  height:40px;
}
.nfd-prix-champ:focus-within{
  border-color:#B08D57;
  box-shadow:0 0 0 2px rgba(176,141,87,.22);
}
.nfd-prix-prefix{
  flex:0 0 auto;
  color:#1F1D1B;
  font-size:14px;
  line-height:1;
  padding-right:2px;
}
/* Reset theme html input[type=number] (40px pill, 25px side padding) */
html body.nfd .nfd-filtre-prix input[type="number"],
html body .nfd-filtre-prix input[type="number"],
.nfd-filtre-prix input[type="number"]{
  appearance:textfield!important;
  -webkit-appearance:textfield!important;
  -moz-appearance:textfield!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  margin:0!important;
  padding:0 2px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  color:#1F1D1B!important;
  vertical-align:middle!important;
  filter:none!important;
}
html body.nfd .nfd-filtre-prix input[type="number"]::-webkit-outer-spin-button,
html body.nfd .nfd-filtre-prix input[type="number"]::-webkit-inner-spin-button,
.nfd-filtre-prix input[type="number"]::-webkit-outer-spin-button,
.nfd-filtre-prix input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
  display:none!important;
  height:0!important;
  width:0!important;
  opacity:0!important;
}
.nfd-filtre-prix input[type="number"]:focus{
  outline:none!important;
  box-shadow:none!important;
  border:0!important;
  background:transparent!important;
}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Colours */
body.nfd .nfd-filtre-couleurs li label,
.nfd-filtre-couleurs li label{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  padding:7px 0!important;
  margin:0!important;
  line-height:1.35!important;
  font-size:14px!important;
  font-weight:400;
  color:#1F1D1B;
  cursor:pointer;
  min-width:0;
  width:auto!important;
}
.nfd-filtre-couleurs label.on{font-weight:700}
html body.nfd .nfd-filtre-couleurs input[type="checkbox"],
.nfd-filtre-couleurs input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:auto!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto;
  accent-color:#A3262A;
  border-radius:3px!important;
  vertical-align:middle!important;
}
.nfd-filtre-couleurs .pastille{
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid rgba(31,29,27,.25);
  display:inline-block;
  flex:0 0 auto;
  box-sizing:border-box;
}
.nfd-filtre-couleurs label .nfd-l-fr,
.nfd-filtre-couleurs label .nfd-l-en{
  flex:1 1 auto;
  min-width:0;
}

body.nfd .nfd-btn-filtrer,
.nfd-btn-filtrer{
  width:100%!important;
  padding:13px 16px!important;
  border:0!important;
  border-radius:8px!important;
  background:#A3262A!important;
  color:#fff!important;
  font-weight:700!important;
  font-size:15px!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  cursor:pointer;
  appearance:none!important;
  -webkit-appearance:none!important;
  box-shadow:none!important;
  height:auto!important;
}
.nfd-btn-filtrer:hover{background:#7B1E24!important;color:#fff!important}
.nfd-filtres-reset{
  text-align:center;
  color:#6f6b66;
  font-size:14px;
  text-decoration:underline;
}

/* ---------- Desktop sidebar (~250px, sticky) ---------- */
@media(min-width:1000px){
  .nfd-shop-layout{
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    gap:28px;
    align-items:start;
  }
  .nfd-filtres{
    position:sticky;
    top:138px; /* below sticky header.nfd-tete (126px) + 12px */
    transform:none;
    width:auto;
    max-width:none;
    box-shadow:none;
    padding:0;
    z-index:1;
    max-height:calc(100vh - 150px);
    transition:none;
    background:#fff;
    border:1px solid #E7DFD2;
  }
  .nfd-filtres-tete{
    padding:14px 16px 12px;
    background:#fff;
    border-bottom:1px solid #E7DFD2;
  }
  .nfd-filtres-corps{padding:0 16px 8px}
  .nfd-filtres-actions{
    padding:12px 16px 16px;
    background:#fff;
    border-top:1px solid #E7DFD2;
  }
  .nfd-filtres-voile,
  .nfd-filtres-fermer,
  .nfd-btn-filtres{display:none!important}
  .nfd-shop-layout .nfd-shop-grille{grid-template-columns:repeat(3,1fr)}
}
@media(min-width:1300px){
  .nfd-shop-layout .nfd-shop-grille{grid-template-columns:repeat(4,1fr)}
}
