/* ===================================================
 * ABCISSE PRODUCTS WIDGET
 * =================================================== */
.pprod-wrapper {
    --pprod-accent: #0073e6;
    --pprod-sale: #ef4444;
    width: 100%;
}
.pprod-container { max-width: 1240px; margin: 0 auto; }

/* HEADER */
.pprod-header { text-align: center; margin-bottom: 40px; }
.pprod-header-supra {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pprod-accent);
    margin-bottom: 12px;
    padding-left: 36px;
    position: relative;
    line-height: 1;
}
.pprod-header-supra::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}
.pprod-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.015em;
}

.pprod-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

/* GRILLE */
.pprod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* CARTE */
.pprod-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.pprod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* IMAGE */
.pprod-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
    text-decoration: none;
}
.pprod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pprod-card:hover .pprod-image img { transform: scale(1.06); }

/* BADGE */
.pprod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pprod-sale);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* CONTENT */
.pprod-content {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pprod-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}
.pprod-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}
.pprod-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.pprod-title a:hover { color: var(--pprod-accent); }
.pprod-excerpt {
    font-size: 13px;
    color: #5a6068;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* RATING */
.pprod-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 10px;
    color: #f59e0b;
}
.pprod-star { display: inline-block; }
.pprod-star-empty { color: #e5e7eb; }
.pprod-star-half {
    background: linear-gradient(90deg, currentColor 50%, #e5e7eb 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pprod-rating-count {
    margin-left: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* PRICE */
.pprod-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}
.pprod-price-current { color: #0f172a; }
.pprod-price-onsale { color: var(--pprod-sale); }
.pprod-price-del,
.pprod-price del {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85em;
    text-decoration: line-through;
}
.pprod-price ins { text-decoration: none; color: var(--pprod-sale); }
.pprod-price .woocommerce-Price-amount { font-weight: inherit; }

/* BOUTON */
.pprod-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
    line-height: 1;
    margin-top: auto;
}
.pprod-btn:hover { background: var(--pprod-accent); transform: translateY(-1px); }
.pprod-btn i { font-size: 11px; transition: transform 0.3s; }
.pprod-btn:hover i { transform: translateX(3px); }

/* HOVER ACTIONS (variante Reveal) */
.pprod-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.pprod-card:hover .pprod-hover-actions { opacity: 1; pointer-events: auto; }
.pprod-action-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform: scale(0.7);
}
.pprod-card:hover .pprod-action-btn { transform: scale(1); }
.pprod-card:hover .pprod-action-btn:nth-child(2) { transition-delay: 0.06s; }
.pprod-action-btn:hover {
    background: var(--pprod-accent);
    color: #ffffff;
}
.pprod-action-btn svg { width: 18px; height: 18px; }


/* ===================================================
 * VARIANTE 1 : CLASSIC (par défaut)
 * =================================================== */


/* ===================================================
 * VARIANTE 2 : REVEAL
 * =================================================== */
.pprod-variant-reveal .pprod-image {
    aspect-ratio: 4/5;
    position: relative;
}
.pprod-variant-reveal .pprod-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.4s;
}
.pprod-variant-reveal .pprod-card:hover .pprod-image::after { background: rgba(15, 23, 42, 0.4); }
.pprod-variant-reveal .pprod-card:hover .pprod-image img { transform: scale(1.1); }
.pprod-variant-reveal .pprod-content {
    text-align: center;
    align-items: center;
}
.pprod-variant-reveal .pprod-price { justify-content: center; }
.pprod-variant-reveal .pprod-rating { justify-content: center; }


/* ===================================================
 * VARIANTE 3 : EDITORIAL
 * =================================================== */
.pprod-variant-editorial .pprod-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}
.pprod-variant-editorial .pprod-card:hover { transform: none; box-shadow: none; }
.pprod-variant-editorial .pprod-image {
    aspect-ratio: 3/4;
    border-radius: 6px;
    margin-bottom: 18px;
    background: #f1f5f9;
}
.pprod-variant-editorial .pprod-content {
    padding: 0;
    text-align: center;
}
.pprod-variant-editorial .pprod-cat {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--pprod-accent);
    margin-bottom: 8px;
}
.pprod-variant-editorial .pprod-title {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 10px;
}
.pprod-variant-editorial .pprod-price {
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 500;
}
.pprod-variant-editorial .pprod-rating { justify-content: center; }
.pprod-variant-editorial .pprod-btn {
    background: transparent;
    color: #0f172a;
    border: 1px solid #0f172a;
    padding: 10px 22px;
    border-radius: 0;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}
.pprod-variant-editorial .pprod-btn:hover {
    background: #0f172a;
    color: #fff;
    transform: none;
    letter-spacing: 0.2em;
}
.pprod-variant-editorial .pprod-badge {
    background: transparent;
    color: var(--pprod-sale);
    border: 1px solid currentColor;
    box-shadow: none;
    font-family: Georgia, serif;
    font-style: italic;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .pprod-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .pprod-header-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .pprod-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .pprod-title { font-size: 15px; }
    .pprod-price { font-size: 16px; }
    .pprod-variant-editorial .pprod-title { font-size: 17px; }
}
@media (max-width: 480px) {
    .pprod-grid { grid-template-columns: 1fr !important; }
    .pprod-content { padding: 16px; }
}
