/* Conteneur des produits */
.inaris-palette-mixer .pm-products {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Bloc produit : par défaut 1 par ligne */
.inaris-palette-mixer .pm-product {
  flex: 1 1 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  box-sizing: border-box;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tablette portrait (≥480px) : 2 par ligne */
@media (min-width: 480px) {
  .inaris-palette-mixer .pm-product {
    flex: 1 1 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

/* Tablette paysage / petit desktop (≥768px) : 3 par ligne */
@media (min-width: 768px) {
  .inaris-palette-mixer .pm-product {
    flex: 1 1 calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
  }
}

/* Desktop (≥1024px) : 4 par ligne */
@media (min-width: 1024px) {
  .inaris-palette-mixer .pm-product {
    flex: 1 1 calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
  }
}

/* Image pleine largeur & carrée */
.pm-image {
  width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
}
.pm-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Intérieur du bloc */
.pm-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Partie infos (gauche) */
.pm-info {
  flex: 1;
  text-align: left;
}
.pm-name { font-weight: bold; margin-bottom: 4px; }
.pm-ref { color: #666; margin-bottom: 4px; font-size: 12px; }
.pm-carton-info { margin-bottom: 4px; font-size: 12px; }
.pm-prices {
  margin-bottom: 6px;
}
.pm-prices .base {
  text-decoration: line-through;
  color: #999;
  margin-right: 4px;
  font-size: 12px;
}
.pm-prices .promo {
  color: #0A472E;
  font-weight: bold;
  font-size: 14px;
}
.pm-prices small {
  font-size: 11px;
  color: #333;
}

/* Sélecteur (droite) */
.pm-qty {
  flex-shrink: 0;
  text-align: right;
}
.pm-qty label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}
.pm-qty-input {
  width: 80px;
  padding: 4px;
  text-align: center;
  font-size: 14px;
}

/* Résumé en bas */
.pm-summary {
  margin-top: 12px;
  text-align: right;
  font-size: 14px;
}
.pm-summary div { margin: 4px 0; }
#pm-add-to-cart {
  margin-top: 8px;
  background: #8C9A44;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
#pm-add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}
