/* swaplandlisting — rayons ≤ 10px (règle du 30/09)
   custom.css passe .product-description en flex column et ordonne marque (1), titre (2), avis (3), prix (4) :
   sans order, ces blocs remontent en tête de vignette. Même order que l'élément qui les précède dans le DOM. */

.product-miniature .product-description .swl-info {
  order: 2;
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #555 !important;
  opacity: 1 !important;
}

.product-miniature .product-description .swl-variants {
  order: 3;
  margin: 4px 0 8px;
}

.product-miniature .swl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-miniature .swl-pill {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  color: var(--swapland-black, #0a0a0a);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.product-miniature .swl-pill:hover {
  border-color: var(--swapland-black, #0a0a0a);
}

.product-miniature .swl-pill.is-active {
  border-color: var(--swapland-red, #d91a19);
  box-shadow: inset 0 0 0 1px var(--swapland-red, #d91a19);
}

.product-miniature .swl-pill.is-unavailable {
  color: var(--swapland-gray-light, #999);
  text-decoration: line-through;
}

.product-miniature .swl-choose {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--swapland-black, #0a0a0a);
  border-radius: 6px;
  background: #fff;
  color: var(--swapland-black, #0a0a0a);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.product-miniature .swl-choose:hover {
  background: var(--swapland-black, #0a0a0a);
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Fiche produit                                                      */
/* ------------------------------------------------------------------ */

.swl-pp-subtitle {
  margin: -4px 0 10px;
  font-size: 14px;
  color: #666;
}

/* Le select natif reste dans le DOM pour le rafraîchissement AJAX ; le JS le masque aussi après chaque mise à jour. */
.product-actions:has(.swl-pp) .js-product-variants {
  display: none !important;
}

.swl-pp {
  margin: 4px 0 16px;
}

.swl-finder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f5f5;
}

.swl-finder label {
  flex: 1 1 200px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.swl-finder-in {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.swl-finder-in input {
  width: 80px;
  padding: 8px 10px;
  border: 0;
  font-weight: 600;
  outline: none;
}

.swl-finder-in span {
  padding: 0 10px;
  font-size: 13px;
  color: #666;
}

.swl-finder-out {
  flex-basis: 100%;
  min-height: 18px;
  font-size: 12px;
  color: #555;
}

.swl-pp-head {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.swl-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 6px;
}

.swl-size {
  position: relative;
  padding: 8px 4px 7px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  color: var(--swapland-black, #0a0a0a);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.swl-size:hover {
  border-color: var(--swapland-black, #0a0a0a);
}

.swl-size-d {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.swl-size-p {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #666;
}

.swl-size.is-active {
  border-color: var(--swapland-red, #d91a19);
  box-shadow: inset 0 0 0 1px var(--swapland-red, #d91a19);
}

.swl-size.is-oos .swl-size-d::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #c77700;
  vertical-align: middle;
}

.swl-size.is-unavailable {
  color: #999;
  text-decoration: line-through;
  cursor: not-allowed;
}

.swl-size.is-reco::after {
  content: "Conseillé";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--swapland-black, #0a0a0a);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.swl-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.swl-chips-label {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 500;
}

.swl-chip {
  padding: 6px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.swl-chip.is-active {
  border-color: var(--swapland-black, #0a0a0a);
  background: var(--swapland-black, #0a0a0a);
  color: #fff;
}

.swl-price-for {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.add-to-cart .swl-total {
  margin-left: 4px;
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.9;
}

/* Sur mobile le bloc panier est fixé en bas d'écran : on y rappelle la taille choisie. */
.swl-sticky-sel {
  display: none;
}

@media (max-width: 991px) {
  .swl-sticky-sel {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--swapland-black, #0a0a0a);
  }
}
