/* =========================
   DESIGN SYSTEM (THEME LINK)
========================= */

/* =========================
   TITRES PRODUITS
========================= */

.spf-grid li.product h2,
.spf-grid li.product .woocommerce-loop-product__title {
    color: var(--e-global-color-text, inherit);
    font-family: inherit;
}

/* =========================
   PRIX
========================= */

.spf-grid li.product .price {
    color: var(--e-global-color-text, inherit);
    opacity: 0.7;
}

/* =========================
   BOUTON ADD TO CART
========================= */

.spf-grid li.product .button {
    background: transparent;
    color: var(--e-global-color-primary, currentColor);
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    font-family: inherit;
    transition: all .3s ease;
}

/* hover bouton (hérite du thème automatiquement) */
.spf-grid li.product .button:hover {
    background: var(--e-global-color-primary, currentColor);
    color: var(--e-global-color-background, #fff);
    border-color: var(--e-global-color-primary, currentColor);
}

/* =========================
   LIENS PRODUITS
========================= */

.spf-grid li.product a {
    color: inherit;
}
.spf-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== FILTRES LUXE ===== */
.spf-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.spf-filter {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .35s ease;
}

.spf-filter:hover {
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.25);
	background-color:var( --e-global-color-f23794f );
}

.spf-filter.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== GRID LUXE ===== */
.spf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    padding: 0;
}

/* ===== CARD LUXE ===== */
.spf-grid li.product {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all .5s cubic-bezier(.2,.8,.2,1);
	padding: 15px;
}
/* IMAGES */
.spf-grid li.product img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 280px; /* uniformisation luxe */
    object-fit: cover;
    border-radius: 16px; /* arrondi image */
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

/* hover cinematic */
.spf-grid li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* IMAGE ZOOM LUXE */
.spf-grid li.product img {
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.spf-grid li.product:hover img {
    transform: scale(1.08);
}

/* TITLE STYLE EDITORIAL */
.spf-grid li.product h2,
.spf-grid li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 25px;
}

/* PRICE CLEAN LUXE */
.spf-grid li.product .price {
    font-size: 14px;
    opacity: 0.7;
}

/* BUTTON ADD TO CART PREMIUM */
.spf-grid li.product .button {
    margin-top: 12px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all .3s ease;
}

.spf-grid li.product .button:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* subtle fade-in animation */
.spf-grid li.product {
    animation: fadeUp .6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .spf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spf-grid {
        grid-template-columns: 1fr;
    }
}
/* ajout v2.1 */
.spf-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* ===== GLASS FILTER BAR ===== */
.spf-filters {
    position: sticky;
    top: 125px;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
}

/* FILTER BUTTONS */
.spf-filter {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .35s ease;
    border: 1px solid transparent;
}

.spf-filter:hover {
    transform: translateY(-2px);
}

.spf-filter.active {
    background: #111;
    color: #fff;
}

/* ===== GRID ===== */
.spf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===== CARD ULTRA LUXE ===== */
.spf-grid li.product {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all .6s cubic-bezier(.2,.8,.2,1);
    position: relative;
}

.spf-grid li.product:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* IMAGE CINEMATIC */
.spf-grid li.product img {
    transition: transform 1s cubic-bezier(.2,.8,.2,1);
}

.spf-grid li.product:hover img {
    transform: scale(1.12);
}

/* TYPO EDITORIAL */
.spf-grid li.product h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .3px;
}

/* PRICE */
.spf-grid li.product .price {
    opacity: .6;
    font-size: 14px;
}

/* BUTTON LUXE */
.spf-grid li.product .button {
    margin: 12px 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    transition: all .3s ease;
}

.spf-grid li.product .button:hover {
    background: #111;
    color: #fff;
}

/* ===== SKELETON LOADER ===== */
.spf-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skel-card {
    height: 320px;
    border-radius: 20px;
    background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

/* ===== FADE IN GRID ===== */
.spf-grid {
    animation: fadeIn .5s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {
    .spf-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination update */

/* =========================
   PAGINATION LUXE SPF
========================= */


/* =========================
   PAGINATION BUTTON LUXE
========================= */

.spf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    font-family: inherit;
}

/* BUTTON BASE */
.spf-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;
    border-radius: 999px;

    font-size: 13px;
    letter-spacing: 0.4px;

    cursor: pointer;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    background: transparent;
    color: inherit;

    transition: all .35s cubic-bezier(.2,.8,.2,1);
}

/* HOVER LUXE */
.spf-page:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, currentColor 30%, transparent);
    background: color-mix(in srgb, currentColor 5%, transparent);
}

/* ACTIVE STATE (AJOUTÉ EN JS OU PHP) */
.spf-page.active {
    background: var(--e-global-color-primary, currentColor);
    color: var(--e-global-color-background, #fff);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* CLICK FEEDBACK */
.spf-page:active {
    transform: scale(0.96);
}

/* ENTRY ANIMATION */
.spf-pagination {
    animation: fadeUp .4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.spf-results {
    transition: opacity .25s ease, transform .25s ease;
}

.spf-results.is-loading {
    opacity: .4;
    transform: translateY(4px);
    pointer-events: none;
}

/* pagination luxe */
.spf-page {
    transition: all .25s ease;
    border-radius: 10px;
}

.spf-page.active {
    background: var(--e-global-color-primary);
    color: #fff;
    transform: scale(1.05);
}

/* =========================
   SPF FILTERS MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {

    .spf-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 10px 5px;
        margin-bottom: 20px;

        /* smooth scroll */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* cacher scrollbar (clean) */
    .spf-filters::-webkit-scrollbar {
        display: none;
    }

    .spf-filters {
        scrollbar-width: none;
    }

    /* boutons plus compacts */
    .spf-filter {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 999px;
        white-space: nowrap;
    }

}