/**
 * woocommerce-native.css — v7 DEFINITIF
 * Stratégie : styliser les <li> natifs WooCommerce EN CARD
 * sans modifier aucun template PHP.
 *
 * Structure générée par WooCommerce (non modifiable) :
 * div.wf-products-grid > li.product > a.woocommerce-LoopProduct-link > img + h2 + .price
 *                                   > a.button
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --wf-navy:      #0F1E35;
    --wf-navy2:     #1E3554;
    --wf-gold:      #C9A84C;
    --wf-goldc:     #E2C478;
    --wf-white:     #FFFFFF;
    --wf-muted:     #6B7D93;
    --wf-promo:     #D64545;
    --wf-r:         14px;
    --wf-r2:        8px;
    --wf-sh:        0 4px 24px rgba(15,30,53,.10);
    --wf-sh2:       0 16px 48px rgba(15,30,53,.18);
}

/* ============================================================
   1. RESET PRÉVENTIF — neutraliser WooCommerce + Bootstrap
      sur les éléments produit
   ============================================================ */

/* La grille native de WC utilise float — on écrase */
.wf-products-grid::before,
.wf-products-grid::after { display: none !important; content: none !important; }

.wf-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
}

/* Annuler float natif WooCommerce sur les <li> */
.wf-products-grid li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   2. CARTE — le <li> devient une card complète
   ============================================================ */
@keyframes wf-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wf-products-grid li.product {
    background: #fff !important;
    border: 1px solid rgba(15,30,53,.09) !important;
    border-radius: var(--wf-r) !important;
    box-shadow: var(--wf-sh) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: transform .3s cubic-bezier(.22,1,.36,1),
                box-shadow .3s cubic-bezier(.22,1,.36,1),
                border-color .3s ease !important
	padding: 20px!important;
}

.wf-products-grid li.product:nth-child(1) { animation: wf-in .4s .04s both; }
.wf-products-grid li.product:nth-child(2) { animation: wf-in .4s .12s both; }
.wf-products-grid li.product:nth-child(3) { animation: wf-in .4s .20s both; }

.wf-products-grid li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--wf-sh2) !important;
    border-color: rgba(201,168,76,.38) !important;
}

/* Barre gold : height 0 au repos (aucun espace), 3px au hover */
.wf-products-grid li.product::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0; right: 0 !important;
    height: 0 !important;
    background: linear-gradient(90deg, var(--wf-gold), var(--wf-goldc)) !important;
    transition: height .26s ease !important;
    z-index: 10 !important;
    border-radius: var(--wf-r) var(--wf-r) 0 0 !important;
}
.wf-products-grid li.product:hover::before { height: 3px !important; }
/* Supprimer tout pseudo ::after parasite */
.wf-products-grid li.product::after { display: none !important; }

/* ============================================================
   3. LIEN PRINCIPAL — occupe toute la zone sauf le bouton
   ============================================================ */
.wf-products-grid li.product > a.woocommerce-LoopProduct-link,
.wf-products-grid li.product > a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* ============================================================
   4. IMAGE — zone navy dégradé, hauteur fixe
   ============================================================ */
.wf-products-grid li.product img {
    display: block !important;
    width: 100% !important;
    /* Annuler le max-width:100px hérité */
    max-width: 100% !important;
    /* Zone image fixe avec fond navy */
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: linear-gradient(145deg, var(--wf-navy), var(--wf-navy2)) !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: transform .42s cubic-bezier(.22,1,.36,1) !important;
    flex-shrink: 0 !important;
}
.wf-products-grid li.product:hover img {
    transform: scale(1.06) !important;
}

/* ============================================================
   5. BADGE PROMO
   ============================================================ */
.wf-products-grid li.product .onsale,
.wf-products-grid li.product .wf-onsale {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    right: auto !important; bottom: auto !important;
    z-index: 15 !important;
    background: var(--wf-promo) !important;
    color: #fff !important;
    font-size: .63rem !important; font-weight: 700 !important;
    letter-spacing: .09em !important; text-transform: uppercase !important;
    padding: 4px 11px !important; margin: 0 !important;
    border-radius: 0 0 var(--wf-r2) 0 !important;
    min-height: auto !important; min-width: auto !important;
    width: auto !important; line-height: 1.7 !important;
}

/* ============================================================
   6. TITRE
   ============================================================ */
.wf-products-grid li.product .woocommerce-loop-product__title,
.wf-products-grid li.product h2 {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 1rem !important; font-weight: 700 !important;
    color: var(--wf-navy) !important; line-height: 1.35 !important;
    padding: 1rem 1.25rem .3rem !important;
    margin: 0 !important;
    transition: color .2s ease !important;
}
.wf-products-grid li.product:hover .woocommerce-loop-product__title,
.wf-products-grid li.product:hover h2 { color: var(--wf-gold) !important; }

/* ============================================================
   7. EXCERPT (injecté par le snippet footer)
   ============================================================ */
.wf-products-grid .wf-product-excerpt {
    font-size: .79rem !important;
    color: var(--wf-muted) !important;
    line-height: 1.55 !important;
    padding: 0 1.25rem .5rem !important;
    margin: 0 !important;
    /*display: -webkit-box !important;*/
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ============================================================
   8. PRIX — poussé automatiquement vers le bas
   ============================================================ */
.wf-products-grid li.product .price {
    display: flex !important;
    align-items: baseline !important; flex-wrap: wrap !important;
    gap: .35rem !important;
    padding: .5rem 1.25rem .75rem !important;
    margin: auto 0 0 !important;   /* ← pousse le prix en bas */
    color: var(--wf-navy) !important;
    background: none !important;
}
.wf-products-grid li.product .price .woocommerce-Price-amount {
    font-family: Georgia, serif !important;
    font-size: 1.4rem !important; font-weight: 800 !important;
    color: var(--wf-navy) !important; letter-spacing: -.02em !important;
}
.wf-products-grid li.product .price del .woocommerce-Price-amount {
    font-size: 1.2rem !important; color: var(--wf-muted) !important;
    opacity: .85 !important; font-weight: 400 !important;
}
.wf-products-grid li.product .price ins {
    text-decoration: none !important; background: none !important;
}
.wf-products-grid li.product .price ins .woocommerce-Price-amount {
    color: var(--wf-promo) !important;
}

/* ============================================================
   9. BOUTON AJOUTER AU PANIER
   ============================================================ */
.wf-products-grid li.product > a.button,
.wf-products-grid li.product > a.add_to_cart_button {
    display: block !important;
    /* Sortir du flux du lien principal — c'est un sibling direct du <li> */
    margin: 0 1.25rem 1.25rem !important;
    padding: .65rem 1rem !important;
    background: var(--wf-navy) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: .77rem !important; font-weight: 600 !important;
    letter-spacing: .07em !important; text-transform: uppercase !important;
    text-align: center !important; text-decoration: none !important;
    text-shadow: none !important;
    border: 2px solid var(--wf-navy) !important;
    border-radius: var(--wf-r2) !important;
    cursor: pointer !important; float: none !important;
    transition: background-color .22s ease, border-color .22s ease,
                color .22s ease, box-shadow .22s ease !important;
}
.wf-products-grid li.product > a.button:hover,
.wf-products-grid li.product > a.add_to_cart_button:hover {
    background: var(--wf-gold) !important;
    background-image: none !important;
    border-color: var(--wf-gold) !important;
    color: var(--wf-navy) !important;
    box-shadow: 0 4px 16px rgba(201,168,76,.40) !important;
}

/* ============================================================
   10. HERO
   ============================================================ */
.wf-archive-hero {
    background: linear-gradient(135deg, var(--wf-navy) 0%, var(--wf-navy2) 55%, #1b3c70 100%);
    border-radius: var(--wf-r);
    padding: 2.8rem 2.5rem 2.2rem;
    margin-bottom: 2rem;
    position: relative; overflow: hidden;
    box-shadow: var(--wf-sh);
}
.wf-archive-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 58% 82% at 88% 50%, rgba(201,168,76,.14) 0%, transparent 62%),
        radial-gradient(ellipse 32% 42% at 6% 82%, rgba(201,168,76,.07) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}
.wf-archive-hero::after {
    content: ''; position: absolute; right: 2.5rem; top: 50%;
    transform: translateY(-50%); width: 110px; height: 110px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 80 80'%3E%3Crect x='8' y='8' width='64' height='64' rx='5' stroke='%23C9A84C' stroke-width='1.4' stroke-opacity='0.22'/%3E%3Cpath d='M20 40h40M40 20v40' stroke='%23C9A84C' stroke-width='1.4' stroke-opacity='0.16'/%3E%3Ccircle cx='40' cy='40' r='13' stroke='%23C9A84C' stroke-width='1.4' stroke-opacity='0.18'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain;
    opacity: .5; pointer-events: none;
}
.wf-archive-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700; color: #fff; line-height: 1.2; margin: 0;
    position: relative; z-index: 1;
}
.wf-archive-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--wf-gold), var(--wf-goldc));
    border-radius: 2px; margin-top: .75rem;
}
.wf-archive-desc {
    color: rgba(255,255,255,.72); font-size: .95rem; line-height: 1.65;
    max-width: 500px; margin: .75rem 0 0; position: relative; z-index: 1;
}
.wf-archive-badges {
    display: flex; gap: .6rem; flex-wrap: wrap;
    margin-top: 1.2rem; position: relative; z-index: 1;
}
.wf-archive-badge {
    background: rgba(201,168,76,.13);
    border: 1px solid rgba(201,168,76,.32);
    color: var(--wf-goldc);
    font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 11px; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 5px;
}
.wf-archive-hero nav,
.wf-wc-breadcrumb {
    font-size: .77rem; color: rgba(255,255,255,.5);
    margin-bottom: .75rem; position: relative; z-index: 1;
}
.wf-archive-hero nav a,
.wf-wc-breadcrumb a { color: var(--wf-goldc); text-decoration: none; }
.wf-bc-sep { margin: 0 .3rem; opacity: .5; }

/* ============================================================
   11. BARRE OUTILS
   ============================================================ */
.wf-archive-toolbar {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem;
}
.wf-archive-toolbar .woocommerce-result-count,
.woocommerce-result-count {
    font-size: .82rem; color: var(--wf-muted); font-style: normal; margin: 0;
}
.wf-orderby {
    border: 1.5px solid #DDE3EB !important; border-radius: var(--wf-r2) !important;
    padding: .45rem 2.1rem .45rem .85rem !important;
    font-size: .83rem !important; color: #2D3B50 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236B7D93' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right .75rem center !important;
    -webkit-appearance: none !important; appearance: none !important; cursor: pointer !important;
}

/* ============================================================
   12. TRUST BAR
   ============================================================ */
.wf-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem; background: var(--wf-navy);
    border-radius: var(--wf-r); padding: 1.6rem 2rem;
    margin-top: 2rem; box-shadow: var(--wf-sh);
}
.wf-trust-item {
    display: flex; align-items: center; gap: .85rem;
    color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.45;
}
.wf-trust-icon {
    width: 40px; height: 40px; min-width: 40px;
    background: rgba(201,168,76,.13); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--wf-gold);
}
.wf-trust-item strong {
    display: block; color: var(--wf-goldc);
    font-size: .71rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; margin-bottom: 2px;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .wf-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .wf-products-grid {
        grid-template-columns: 1fr !important;
    }
    .wf-archive-hero { padding: 1.75rem 1.25rem 1.5rem; }
    .wf-archive-hero::after { display: none; }
    .wf-trust-bar { padding: 1.25rem; }
}