/* Responsive grid */

:root {
    --colorMav: #ba0018;
}

#jpl-product_ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 600px) {
    #jpl-product_ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    #jpl-product_ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    #jpl-product_ul {
        grid-template-columns: repeat(4, 1fr);
    }
}

ul.products::before,
ul.products::after,
#jpl-product_ul::before,
#jpl-product_ul::after {
    display: none !important;
    content: none !important;
}

/* Produit */

.flip-card-container {
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.6s, box-shadow 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
}

.flip-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 0.5px solid #ddd;
    cursor: pointer !important;
}

.flip-card-front {
    background: white;
}

.flip-card-front:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.flip-card-back {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    z-index: 0;
}

.flip-back-overlay {
    position: relative;
    z-index: 1;
}

.woocommerce-loop-product__title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 12px 0 8px;
    color: #222;
}

.price {
    color: var(--colorMav) !important;
    font-weight: bold;
    font-size: 1em;
    display: block;
}

.jpl-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    color: var(--colorMav) !important;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--colorMav);
    margin-bottom: 10px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.jpl-button:hover {
    background-color: var(--colorMav) !important;
    color: white !important;
}

.jpl-button-all-products {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    color: var(--colorMav) !important;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--colorMav);
    margin-bottom: 10px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.jpl-button-all-products:hover {
    background-color: var(--colorMav) !important;
    color: white !important;
}

.tiered-pricing {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    width: 100%;
}

.tier-button .qty,
.tier-button .price {
    color: var(--colorMav) !important;
    font-weight: bold;
}

/* Au survol: texte blanc */
.tier-button:hover .qty,
.tier-button:hover .price {
    color: #fff !important;
    /* ← passe au blanc */
    transition: color .15s ease-in;
    /* petite douceur visuelle */
}

.tier-button .badge {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75em;
    margin-left: 10px;
}

/* --- Champ quantité + bouton “Ajouter” --- */
.jpl-add-to-cart {
    /* décale l ensemble sous le prix régulier */
    margin-top: 10px;
}

.jpl-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    justify-content: center;
    /* centre parfaitement dans la carte */
}

.jpl-qty-wrap>* {
    /* annule les marges héritées */
    margin: 4px !important;
}

.jpl-qty {
    width: 110px;
    /* taille compacte */
    padding: 6px 8px;
    text-align: center;
    border: 1px solid var(--colorMav);
    border-radius: 6px;
    font-size: 0.9em;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Réutilise l effet hover de .jpl-button */
.jpl-add-to-cart .button {
    transition: transform .18s ease-in-out;
}

.jpl-add-to-cart .button:hover {
    transform: scale(1.05);
}

/* Empêche TOUT badge promo de bloquer le clic de la face avant */
.flip-card-front .onsale,
.flip-card-front .et_pb_sale_badge,
.flip-card-front .et_pb_shop_badge {
    pointer-events: none;
    /* le clic passe au travers */
}

.jpl-icons-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.jpl-cart-icon {
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    position: relative;
    cursor: pointer;
}

/* Icône de panier */
.jpl-cart-icon .et-pb-icon {
    font-size: 16px !important;
    line-height: 1;
    color: #444;
}

/* Compteur du panier */
.jpl-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--colorMav);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

/* -- Effet verrou Premium -- */
.premium-locked {
    filter: brightness(100%);
}

.premium-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    /* voile gris transparence 35 % */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    border-radius: 12px;
    z-index: 30;
    pointer-events: auto;
}

/* Icône cadenas (Divi ETmodules) */
.lock-icon::before {
    content: \"\\e07f\";
    font-family: \"ETmodules\";
    font-size: 3.5rem;
    line-height: 1;
    color: #fff;
}

.overlay-text {
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}


.premium-locked a {
    color: #ba0018 !important;
    font-weight: bold;
    text-decoration: underline;
}

.premium-locked .flip-card {
    pointer-events: none;
}

.jpl-notice-box {
    background-color: white;
    margin: 30px 40px;
    border-radius: 12px;
    text-align: center;
    color: #ba0018;
}

.jpl-notice-box a.jpl-link {
    color: #ba0018 !important;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jpl-notice-box a.jpl-link:hover {
    text-decoration: underline;
    color: #a51027 !important;
    transform: scale(1.05);
}

.jpl-notice-box .jpl-separator {
    font-weight: bold;
    font-size: 20px;
    margin: 5px 0;
}


/* Prix sur la page produit */
.woocommerce span.price,
.woocommerce p.price {
  color: #ba0018 !important;
  font-size: 20px !important;
}

.woocommerce .price bdi {
  color: #ba0018 !important;
}



