/* Conteneur des cards */
.pm-product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 100%;
}

/* Une card */
.pm-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    text-align: center;
    flex: 1 1 calc(33.333% - 1.5rem); /* ✅ 3 cartes par ligne */
    max-width: calc(33.333% - 1.5rem);
}

/* Corps de la card (tout sauf le bouton) */
.pm-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Image */
.pm-product-card__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: none !important; /* Supprime les ombres du thème */
}

/* Titre / sous-titre / description */
.pm-product-card__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pm-product-card__subtitle {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.pm-product-card__text {
    margin-bottom: 0.75rem;
}

/* Bouton */
.pm-product-card__button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none !important;
    align-self: center;
}

.pm-product-card__button:hover,
.pm-product-card__button:focus {
    text-decoration: none !important;
}

/* 📱 Responsive : en dessous de 768px → cards en colonne */
@media (max-width: 768px) {
    .pm-product-cards {
        flex-direction: column;
        align-items: center;
    }

    .pm-product-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* --- Forcer 3 cards par ligne dans l’éditeur Gutenberg --- */
.editor-styles-wrapper .pm-product-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
}

.editor-styles-wrapper .pm-product-card {
    flex: 1 1 calc(33.333% - 1.5rem) !important;
    max-width: calc(33.333% - 1.5rem) !important;
}
