/* ============================================
   Section Garanties Produit
   ============================================ */

.wcsb-product-guarantees {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 30px 0;
  /* Réserver l'espace pour éviter le Layout Shift (CLS) */
  min-height: 280px;
  /* Améliorer le rendu initial */
  contain: layout style paint;
}

.wcsb-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

/* Tablette : 2 colonnes */
@media (max-width: 1024px) and (min-width: 769px) {
  .wcsb-product-guarantees {
    /* Hauteur ajustée pour 2 colonnes (un peu plus haut que 3 colonnes) */
    min-height: 380px;
  }

  .wcsb-guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wcsb-guarantee-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.wcsb-guarantee-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.wcsb-guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin: 0 auto;
  color: var(--wcsb-primary-color, #2271b1);
}

.wcsb-guarantee-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.wcsb-guarantee-content {
  flex: 1;
}

/* Polices : gérées par le thème (Shoptimizer) */

.wcsb-guarantee-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.wcsb-guarantee-description {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

/* Responsive : mobile = cartes compactes (icone + titre seulement, moins de scroll) */
@media (max-width: 768px) {
  .wcsb-product-guarantees {
    margin-top: 30px;
    padding: 20px 0;
    min-height: 0;
  }

  .wcsb-guarantees-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wcsb-guarantee-item {
    padding: 16px 18px;
  }

  .wcsb-guarantee-title {
    font-size: 16px;
    margin-bottom: 0;
  }

  .wcsb-guarantee-description {
    display: none;
  }
}
