/* ========================================
   RF KITS - Affichage Fiche Produit
   ======================================== */

.rf-kit-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8B2E4B 0%, #C2185B 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(139, 46, 75, 0.25);
}

.rf-kit-contains {
  background: linear-gradient(to bottom, #FFF5F8 0%, #FFFFFF 100%);
  border: 2px solid #F8BBD0;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(139, 46, 75, 0.08);
  position: relative;
  overflow: hidden;
}

.rf-kit-contains::before {
  content: '♥';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 60px;
  color: #F8BBD0;
  opacity: 0.15;
  transform: rotate(-15deg);
}

.rf-kit-contains h4 {
  color: #8B2E4B;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rf-kit-contains h4::before {
  content: '🎁';
  font-size: 22px;
}

.rf-kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rf-kit-list li {
  background: white;
  border: 1px solid #F8BBD0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.rf-kit-list li:hover {
  border-color: #C2185B;
  box-shadow: 0 2px 8px rgba(194, 24, 91, 0.15);
  transform: translateX(4px);
}

.rf-kit-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #C2185B;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.rf-kit-list a {
  color: #8B2E4B;
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  transition: color 0.2s;
}

.rf-kit-list a:hover {
  color: #C2185B;
  text-decoration: underline;
}

.rf-kit-savings {
  background: #E8F5E9;
  border: 2px dashed #4CAF50;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  color: #2E7D32;
}

.rf-kit-savings::before {
  content: '💰 ';
  font-size: 18px;
}

/* ========================================
   GRILLES SHORTCODES (Rosybox & Bundles)
   ======================================== */

.rosybox-grid,
.bundles-grid {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

.rf-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rf-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rf-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards communes */
.rosybox-card,
.bundle-card {
  background: white;
  border: 2px solid #F8BBD0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.rosybox-card:hover,
.bundle-card:hover {
  border-color: #C2185B;
  box-shadow: 0 8px 24px rgba(139, 46, 75, 0.15);
  transform: translateY(-4px);
}

/* Badge kit */
.rosybox-card .rf-kit-badge,
.bundle-card .rf-kit-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
}

/* Bundles : badge plus discret */
.bundle-card .rf-kit-badge {
  background: linear-gradient(135deg, #666 0%, #999 100%);
}

/* Image */
.rf-kit-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #FFF5F8;
  text-decoration: none;
}

.rf-kit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rosybox-card:hover .rf-kit-image img,
.bundle-card:hover .rf-kit-image img {
  transform: scale(1.05);
}

/* Badge économie sur image */
.rf-kit-image .rf-kit-savings {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  z-index: 2;
  margin: 0;
  border: none;
}

.rf-kit-image .rf-kit-savings::before {
  content: '';
}

/* Contenu card */
.rf-kit-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Titre */
.rf-kit-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  min-height: 48px;
}

.rf-kit-title a {
  color: #8B2E4B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.rf-kit-title a:hover {
  color: #C2185B;
}

/* Prix */
.rf-kit-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rf-price-original {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
}

.rf-price-current {
  color: #8B2E4B;
  font-size: 24px;
  font-weight: 700;
}

/* Section "Ce kit contient" */
.rf-kit-includes {
  background: #FFF5F8;
  border-radius: 12px;
  padding: 12px;
  margin-top: auto;
}

.rf-includes-label {
  display: block;
  color: #8B2E4B;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rf-includes-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rf-includes-item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #F8BBD0;
  background: white;
  transition: all 0.2s;
}

.rf-includes-item:hover {
  border-color: #C2185B;
  transform: scale(1.05);
}

.rf-includes-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quantité */
.rf-includes-qty {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #8B2E4B;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}

/* Badge "+X" */
.rf-includes-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8BBD0;
  color: #8B2E4B;
  font-weight: 700;
  font-size: 14px;
  border: 2px dashed #C2185B;
}

/* CTA card */
.rf-kit-cta {
  display: block;
  background: linear-gradient(135deg, #C2185B 0%, #8B2E4B 100%);
  color: white !important;
  text-align: center;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 46, 75, 0.2);
}

.rf-kit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 46, 75, 0.3);
}

/* CTA bundles : plus discret */
.bundle-card .rf-kit-cta {
  background: linear-gradient(135deg, #666 0%, #999 100%);
}

/* Bouton "Voir toutes" en bas de grille */
.rf-grid-cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.rf-grid-cta {
  display: inline-block;
  background: white;
  border: 2px solid #C2185B;
  color: #C2185B !important;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.rf-grid-cta:hover {
  background: #C2185B;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(194, 24, 91, 0.3);
}

/* Message "Aucun résultat" */
.rf-kits-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .rf-grid-cols-3,
  .rf-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rosybox-grid,
  .bundles-grid {
    gap: 16px;
  }
  
  .rf-grid-cols-2,
  .rf-grid-cols-3,
  .rf-grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .rf-kit-content {
    padding: 16px;
  }
  
  .rf-kit-title {
    font-size: 16px;
    min-height: auto;
  }
  
  .rf-kit-contains {
    padding: 16px;
  }
}