/* ==========================================================================
   Boutique – Index (filtres + grille + cartes)
   ========================================================================== */

/* Filtres */
.filters{
  background:#fff; border:1px solid #e9e9e9; border-radius:10px;
  padding:16px; margin:24px auto; max-width:1100px;
}
.filters-row{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap:12px; align-items:end;
}
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field label{ font-weight:700; font-size:.95rem; line-height:1.2; }
.field input, .field select{
  width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:8px;
  font-size:1rem; background:#fff;
}
.field.inline .range{ display:flex; align-items:center; gap:8px; }
.actions{ display:flex; gap:10px; align-items:center; }
.results-count{ text-align:center; margin:8px 0 0; color:#555; }

/* Grille produits */
.product-list{
  display:flex; flex-wrap:wrap; justify-content:center; gap:30px;
  max-width:1100px; margin: 0 auto;
}

/* Cartes produit (structure) */
.product{
  background:#fafafa; border:1px solid #ddd; border-radius:10px; padding:20px;
  width:min(250px, 100%); text-align:center; box-shadow:0 2px 8px rgba(0,0,0,.05);
  display:flex; flex-direction:column; align-items:center;
}
.product img{ width:100%; height:auto; border-radius:8px; display:block; margin-bottom:10px; }

/* Ligne des badges sous l’image : promo/déstock + état */
.badge-row{
  display:flex; gap:8px; justify-content:center; align-items:center;
  margin:10px 0 20px 0;
}

/* Titres & prix */
.product h3{ margin:0 0 10px; }

/* Prix (hors promo) */
.price{
  display:block; margin:10px 0; font-size:1.2em; color:#007700; font-weight:700;
}

/* Prix si promo (ancien barré rouge petit + nouveau vert) */
.price-line{
  display:flex; gap:8px; align-items:baseline; justify-content:center;
  margin:10px 0;
}
.price-old{
  color:#d62828;               /* rouge */
  text-decoration: line-through;
  font-weight:400;             /* non gras */
  font-size:.95rem;            /* plus petit */
}
.price-new{
  color:#007700;
  font-weight:800;
  font-size:1.15rem;
}

/* CTA */
.product a.cta{
  display:inline-block; width:157px; height:50px; line-height:50px;
  background:#0070ba; color:#fff; text-decoration:none; border-radius:5px;
  font-weight:700; font-size:1em; text-align:center;
  margin-top:auto;               /* aligne en bas */
  transition: background-color .2s ease, transform .1s ease;
}
.product a.cta:hover{ background:#005c99; }
.product a.cta.disabled{ background:#999; cursor:not-allowed; pointer-events:none; }

/* Badges (base) */
.badge{
  display:inline-block; padding:6px 12px; border-radius:999px;
  font-size:.85rem; font-weight:700; border:1px solid transparent;
  text-transform:uppercase; letter-spacing:.2px;
}

/* Badges d’état */
.badge--ok{      background:#e6f7ec; color:#1b7f3c;  border-color:#bfe9cc; }
.badge--hold{    background:#fff7e6; color:#8a5a00;  border-color:#ffe2b8; }
.badge--selling{ background:#eef3ff; color:#2447aa; border-color:#cfdcff; }
.badge--neutral{ background:#f2f2f2; color:#444;    border-color:#e0e0e0; }
.badge--sold{    background:#fde8e8; color:#b3261e; border-color:#f5c2c7; }

/* Badges Promo / Déstockage */
.badge--promo{
  background:#e6f3ff; color:#0b57d0; border-color:#cfe2ff; font-weight:800;
}
.badge--destock{
  background:#fff0f1; color:#b3261e; border-color:#f5c2c7; font-weight:800;
}

/* Couleurs de carte si promo/déstock */
.product--promo{
  background:#fff7e6;                 /* orange très clair */
  border:2px solid #ffb347;
  box-shadow:0 4px 12px rgba(255,179,71,.25);
}
.product--destock{
  background:#fde8e8;                 /* rouge très clair */
  border:2px solid #e74c3c;
  box-shadow:0 4px 12px rgba(231,76,60,.25);
}

/* État vide */
.empty{ text-align:center; color:#666; }

/* Responsive */
@media (max-width: 768px){
  .filters-row{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .filters-row{ grid-template-columns: 1fr; }
  .product{ width:90%; max-width:400px; margin-inline:auto; }
  .product a.cta{ width:100%; font-size:1.1em; }
}
