/* ============================================================
   BOUTIQUE — feuille de style complète
   ============================================================ */

/* --- Bouton panier dans l'en-tête --- */
a.boutique-cart-btn,
a.boutique-cart-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .45rem .9rem;
  font-size: .85rem;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  background: #0098b4;
  border-radius: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  text-transform: none;
  transition: background .15s;
}
a.boutique-cart-btn:hover {
  background: #007a91;
  color: #fff;
  text-decoration: none;
}
a.boutique-cart-btn i { font-size: .95rem; }

/* --- Bouton corbeille (vider le panier) --- */
a.boutique-cart-clear,
a.boutique-cart-clear:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .6rem;
  font-size: .85rem;
  line-height: 1;
  color: #fff;
  background: #c0392b;
  border-radius: 1.5rem;
  text-decoration: none;
  margin-left: .35rem;
  white-space: nowrap;
  transition: background .15s;
}
a.boutique-cart-clear:hover {
  background: #a93226;
  color: #fff;
  text-decoration: none;
}
a.boutique-cart-clear i { font-size: .95rem; }

/* --- Carte produit : structure verticale pleine largeur --- */
.boutique-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: .5rem;
  overflow: hidden;
}

/* --- Image + badge --- */
.boutique-image-wrap {
  position: relative;
  line-height: 0;
  background: #f5f8fa;         /* fond neutre si l'image ne remplit pas */
}
.boutique-image-wrap img {
  width: 100%;
  height: auto;                /* \2190 on ne force plus 220px */
  aspect-ratio: 4 / 3;         /* cadre harmonieux */
  object-fit: contain;         /* \2190 image entière, rien de coupé */
  object-position: center;
  display: block;
  padding: .5rem;              /* petite marge autour de l'image */
  box-sizing: border-box;
  background: #f5f8fa;
}
.boutique-badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 1rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;  
  color: #fff;
  letter-spacing: .02em;
}
.boutique-badge.badge-ok  { background: rgba(39, 174, 96, .85); }
.boutique-badge.badge-low { background: rgba(230, 126, 34, .9); }
.boutique-badge.badge-out { background: rgba(192, 57, 43, .9); }

/* --- Titre, description, prix : PLEINE LARGEUR --- */
.boutique-titre,
.boutique-desc,
.boutique-prix {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin: 0;
}
.boutique-titre {
  padding-top: .85rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  white-space: normal;
  word-break: break-word;
}
.boutique-desc {
  padding-top: .35rem;
  font-size: .92rem;
  color: #333;              /* plus foncé qu'avant (#444) */
  font-weight: 500;         /* légèrement plus soutenu */
}
.boutique-prix {
  padding-top: .5rem;
  font-size: 1.25rem;
  font-weight: 800;         /* était 700 */
  color: #007a91;           /* plus foncé que #0098b4 */
}

/* --- Récapitulatif des tailles (chips) --- */
.boutique-tailles-dispo {
  padding: .25rem 1.25rem .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.boutique-tailles-dispo .taille-chip {
  background: #f0f4f7;
  border: 1px solid #dde5ec;
  border-radius: 1rem;
  padding: .15rem .55rem;
  font-size: .78rem;
  color: #333;
}
.boutique-tailles-dispo .taille-chip small {
  color: #666;
  font-size: .7rem;
}

/* --- Formulaire pleine largeur --- */
.boutique-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .75rem 1.25rem 1.25rem;
  margin-top: auto;
}
.boutique-field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.boutique-label {
  font-size: .78rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.boutique-form select {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid #ccc;
  border-radius: .3rem;
  font-size: .95rem;
  background: #fff;
}

/* --- Sélecteur de quantité : UN SEUL jeu de boutons, compact --- */
.boutique-qte {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: .3rem;
  overflow: hidden;
  width: 92px;              /* largeur totale compacte (avant : extensible) */
  background: #fff;
}
.boutique-qte input[type=text],
.boutique-qte input[type=number] {
  flex: 1 1 auto;
  min-width: 0;
  width: 24px;              /* réduit */
  text-align: center;
  border: none;
  background: transparent;
  padding: .35rem 0;
  font-size: .95rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
/* Supprime les flèches natives (le "double bouton" vient d'ici) */
.boutique-qte input[type=number]::-webkit-outer-spin-button,
.boutique-qte input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.boutique-qte .qte-btn {
  flex: 0 0 28px;
  background: #f5f5f5;
  border: none;
  width: 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #444;
  line-height: 1;
  padding: 0;
  transition: background .15s;
}
.boutique-qte .qte-btn:hover { background: #e6e6e6; }
.boutique-qte .qte-btn:first-child { border-right: 1px solid #e0e0e0; }
.boutique-qte .qte-btn:last-child  { border-left: 1px solid #e0e0e0; }

/* --- Bouton Ajouter COMPACT (sans button-nina) --- */
button.boutique-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  align-self: flex-start;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #0098b4;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  text-transform: none;
  transition: background .15s;
}
button.boutique-btn-add:hover { background: #007a91; }
button.boutique-btn-add i { font-size: .9rem; }

/* --- Délai / rupture --- */
.boutique-delai {
  padding: 0 1.25rem 1.25rem;
  font-size: .9rem;
  color: #666;
  margin-top: auto;
}

/* --- Encart info --- */
.boutique-info {
  background: #f7f9fb;
  border: 1px solid #e6ebf1;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
  height: 100%;
}
.boutique-info i { color: #0098b4; margin-bottom: .5rem; }
.boutique-info h6 { margin: .25rem 0; font-weight: 700; }
.boutique-info p { font-size: .9rem; color: #555; margin: 0; }

/* --- Responsive panier --- */
.boutique-panier table { width: 100%; }
@media (max-width: 767.98px) {
  .boutique-panier thead { display: none; }
  .boutique-panier tr { display: block; border-bottom: 1px solid #eee; padding: .5rem 0; }
  .boutique-panier td { display: flex; justify-content: space-between; padding: .25rem .5rem; }
  .boutique-panier td::before { content: attr(data-label) " : "; font-weight: 600; }
}

/* Message d'aide "choisissez une taille" / "sur commande" */
.bq-hint {
  display: block;
  margin-top: .35rem;
  font-size: .75rem;
  color: #888;
  font-style: italic;
}
.bq-hint-hidden { display: none; }

/* Boutons désactivés */
.boutique-qte .qte-btn:disabled,
.boutique-qte input:disabled {
  opacity: .45;
  cursor: not-allowed;
}  
/* --- Miniatures --- */
.boutique-thumbs {
  display: flex;
  gap: .4rem;
  padding: .5rem 1.25rem 0;
  flex-wrap: wrap;
}
.boutique-thumbs button {
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: .3rem;
  padding: 0;
  cursor: pointer;
  width: 52px;
  height: 52px;
  overflow: hidden;
  line-height: 0;
  transition: border-color .15s, transform .15s;
}
.boutique-thumbs button:hover {
  border-color: #0098b4;
  transform: translateY(-1px);
}
.boutique-thumbs button.active {
  border-color: #0098b4;
  box-shadow: 0 0 0 2px rgba(0,152,180,.25);
}
.boutique-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}