/* ==========================================================================
   BOUTIQUE TACTICAL GRID (Version 46.0 - Prix Avancés & Marques)
   ========================================================================== */

/* --- 1. SKELETON & ANTI-CLS --- */
.boutique-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(var(--syn-col, 4), 1fr);
    min-height: 400px;
    animation: synFadeIn 0.4s ease-out forwards;
    opacity: 0;
}

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

.boutique-grid.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Responsive Grille : 1 colonne forcée sous 768px */
@media (max-width: 1024px) { .boutique-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .boutique-grid { grid-template-columns: 1fr; } } /* 1 colonne ici */
@media (max-width: 480px) { .boutique-grid { grid-template-columns: 1fr; } }


/* Overlays Prix (Nouvelle Cartouche Double Ligne) */
.syn-overlay-price {
    /*background: #ffffff !important; color: #222 !important;
    border-radius: 4px 0 0 4px; box-shadow: -2px 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #f9f9f9;*/
    pointer-events: auto;
    font-weight: 700; font-size: 13px; padding: 6px 10px;
    min-height: 44px; display: flex; flex-direction: column; justify-content: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}


/* 2. Forcer le NOUVEAU PRIX à s'afficher EN PREMIER (Ligne 1) */
/*.syn-overlay-price ins,
.syn-overlay-price .current-price {
    order: 1 !important;
}

.syn-overlay-price del,
.syn-overlay-price .old-price {
    order: 2  !important;
}*/

.syn-overlay-price * {
    color: inherit !important;
    border: none !important;
    text-decoration: none
}


.syn-overlay-price .old-price {
	display: block;
    font-weight: 400;
    font-size: 0.9em;
    text-decoration: line-through !important;
    text-align: right;
}

.syn-overlay-price .current-price {
    font-size: 1.4em !important;
    background: white;
}


.syn-price-sale-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.syn-old-price, .syn-old-price del {
    color: #888 !important; font-size: 11px !important; font-weight: 400 !important; text-decoration: line-through;
}
.syn-sale-percent {
    color: #e02b20 !important; font-size: 11px !important; font-weight: 700 !important;
}

.syn-current-price { display: flex; align-items: baseline; gap: 4px; color: #222 !important; }
.syn-price-center { align-items: center; }
.syn-overlay-brand { 
    display: flex; flex-direction: column; gap: 4px; align-items: flex-end; 
    pointer-events: auto; margin-top: 5px; margin-right: 5px;
}
.syn-brand-link {
    display: block; background: #fff; padding: 2px; border: 1px solid #eee; border-radius: 2px; transition: border-color 0.2s;
}
.syn-brand-link:hover { border-color: #000; }
  

/* Panier Intelligent */

.syn-btn-add-cart::before, .syn-btn-add-cart::after,
.syn-btn-add-cart-link::before, .syn-btn-add-cart-link::after { display: none !important; }

.syn-filter-content-static { display: block; }


/* --- 6. SQUELETTE (Animations) --- */
.syn-skeleton-nav, .syn-skeleton-title, .syn-skeleton-item {
    animation: synSkeletonPulse 1.5s infinite ease-in-out;
    border-radius: 4px;
}
@keyframes synSkeletonPulse {
    0% { background-color: #f9f9f9; }
    50% { background-color: #f0f0f0; }
    100% { background-color: #f9f9f9; }
}

.syn-cat-nav { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.syn-cat-title { font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase !important; margin: 0 0 10px 0 !important; }
.syn-cat-title a { color: #333 !important; text-decoration: none !important; }
.syn-cat-list, .syn-subcat-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.syn-cat-list li { margin-bottom: 6px !important; font-size: 14px; padding: 0 !important; position: relative; }
.syn-cat-item-link { text-decoration: none !important; color: #333 !important; display: inline-block; font-weight: 400; font-size: 0.9em !important; transition: color 0.2s; }
li.current-cat > .syn-cat-item-link { font-weight: 700 !important; }
.syn-cat-list > li.syn-has-children:not(.current-cat) > .syn-cat-item-link::after { content: "+"; display: inline-block; margin-left: 8px; font-weight: 400; font-size: 1em; color: #333; }
.syn-cat-list > li.syn-has-children.current-cat > .syn-cat-item-link::after { content: "-"; display: inline-block; margin-left: 8px; font-weight: 400; font-size: 1em; color: #333; }
.syn-subcat-list { margin-top: 4px !important; margin-left: 12px !important; border-left: 1px solid #ddd; padding-left: 10px !important; }
.syn-subcat-list li { margin-bottom: 4px !important; font-size: 13px; }
.syn-subcat-list .syn-subcat-list { margin-left: 8px !important; padding-left: 8px !important; }

.wooproduct {
    aspect-ratio: var(--syn-ratio, 1/1) !important;
    height: auto !important; position: relative !important;
    border: 1px solid #f0f0f0 !important; background-color: #ffffff !important;
    overflow: hidden !important; padding: 5px !important;
    box-sizing: border-box !important; display: flex; flex-direction: column;
    transition: box-shadow 0.3s ease;
    text-align: left !important; text-decoration: none !important;
}
.wooproduct::before, .wooproduct::after { display: none !important; content: none !important; }
.wooproduct a { text-decoration: none !important; border: none !important; outline: none !important; box-shadow: none !important; }
.wooproduct:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important; z-index: 2; transform: none !important; }

/* Upper Deck (Image uniquement et badges absolus) */

.syn-upper-deck {
    position: relative; flex: 1 1 auto; width: 100%; min-height: 0;
    background-color: #ffffff !important;
}


.syn-right-overlays {
    position: absolute; top: 0; right: 0; width: 100%; height: auto; z-index: 5;
    pointer-events: none; display: flex; flex-direction: column; align-items: flex-end;
}


.syn-main-link {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: transparent;
}
.product-img {
    position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important;
    object-fit: contain; object-position: center;
    padding: 5px; box-sizing: border-box; background: transparent !important;
    transition: transform 0.4s ease; margin: 0 !important; border: none !important;
}
.wooproduct:hover .product-img { transform: scale(1.03); }

/* Badges superposés à l'image */
.syn-overlay-badges { position: absolute; top: 0; left: 0; z-index: 6; display: flex; flex-direction: column; pointer-events: none; }
.syn-tag {
    background: #e02b20 !important; color: #fff !important; font-size: 10px; padding: 4px 8px;
    font-weight: 700; text-transform: uppercase; border-radius: 0 0 4px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); margin-bottom: 2px;
}
.syn-tag-featured { background: #3c8145 !important; }
.syn-tag-rupture { background: #dedede !important; color: #111 !important; }



.syn-card-footer {
    flex: 0 0 auto; padding: 10px; background: #ffffff;
    border-top: 1px solid #f5f5f5; text-align: left;

    display: flex; flex-direction: column; gap: 4px; position: relative;
    align-items: center;
    box-sizing: border-box;
    min-height: 129px;
}
h3.syn-product-title {
    letter-spacing: 0 !important; 

    margin: 0 !important; padding: 0 !important;
    font-size: 0.95em !important; font-weight: 600 !important;
    line-height: 1.3 !important; color: #222 !important; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-transform: uppercase !important; font-family: inherit !important;
}
h3.syn-product-title::before, h3.syn-product-title::after { display: none !important; content: none !important; }
.wooproduct:hover h3.syn-product-title { color: #000; }

/* Bloc Marque (Placé sous le titre sans superposition) */
.syn-product-brand-wrapper {
    display: flex; align-items: center; margin: 2px 0; min-height: 20px;
    justify-content: center;
}
.syn-brand-link img {
    max-width: 55px; height: auto; display: block; object-fit: contain;
}
.syn-mini-tag {

    background: #f5f5f5 !important; color: #666 !important; border: 1px solid #eee;
    font-size: 10px; padding: 2px 6px; font-weight: 600; text-transform: uppercase;
    border-radius: 3px; display: inline-block; line-height: 1 !important;
}
.syn-mini-tag:hover { background: #000 !important; color: #fff !important; border-color: #000; }

/* Ligne d'actions Prix + Panier alignés horizontalement au bas */
.syn-footer-actions-row {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto;
}

.syn-price-block { flex: 1; }

.syn-price-container {
    display: flex; /*flex-direction: column;*/ align-items: flex-start; line-height: 1.2;gap:8px
}

/* Ordre strict d'affichage des prix */
.syn-price-container ins,
.syn-price-container .current-price {
    /*order: 1 !important;
    font-size: 1.25em !important;*/ font-weight: 700; color: #1779c8 !important;
    background: transparent !important;
}
.syn-price-container del,
.syn-price-container .old-price {
   /* order: 2 !important;*/
    font-weight: 400; font-size: 0.85em; color: #888 !important;
    text-decoration: line-through !important; margin-top: 1px;
}
.syn-price-prefix { font-size: 0.6em; color: #777; margin-bottom: 2px; display: block;display: none; }

.syn-tax-label { font-size: 9px !important; font-weight: 400 !important; color: #777 !important; text-transform: uppercase; margin-top: 1px; }

/* Bloc Panier */
.syn-cart-block { display: flex; align-items: center;
    justify-content: flex-end;     position: absolute;
    right: 0px;}

.syn-overlay-cart {/*position: absolute; bottom: 0; right: 0; z-index: 10; margin: 0 8px 8px 0;*/ 
    position: static !important; margin: 0 !important; }
.syn-add-to-cart-wrap { display: flex; align-items: center; gap: 6px; }


.syn-voir-plus-text { 
    background: white;
    font-size: 11px; color: #666; 
    text-decoration: underline !important; padding: 0 !important; display: inline-block; }

.syn-btn-add-cart, .syn-btn-add-cart-link {
    padding: 0 !important;
    text-decoration: none !important;
    width: 32px; height: 32px; background: #f9f9f9 !important; border: 1px solid #ddd !important;
    color: #333 !important; display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 4px !important; box-shadow: none !important; transition: all 0.2s ease;
}
.syn-btn-add-cart:hover, .syn-btn-add-cart-link:hover { 
    /*color: var(--wp--style--color--link, #0073aa) !important; background: white !important;*/
    background: #000 !important; border-color: #000 !important; color: #fff !important; 
}
.syn-btn-add-cart svg, .syn-btn-add-cart-link svg {   transition: stroke 0.2s;stroke: currentColor; width: 18px; height: 18px; }

.syn-msg-inline { font-size: 11px; color: #2e7d32; font-weight: 600; margin-top: 4px; display: none; }

/* --- 5. FILTRES --- */    
.syn-filter-main-title { font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase !important; margin: 0 0 15px 0 !important; }
.syn-filter-item { border-bottom: 1px solid #eee !important; margin-bottom: 15px; padding-bottom: 15px; }
.syn-filter-static-title { font-size: 13px !important; font-weight: 600 !important; text-transform: uppercase !important; color: #333 !important; margin: 0 0 10px 0 !important; padding: 0 !important; }
.syn-checkbox-label { display: flex; align-items: center !important; flex-wrap: nowrap !important; margin-bottom: 6px !important; cursor: pointer; font-size: 13px !important; color: #555 !important; font-weight: 400 !important; line-height: 1.4 !important; }
.filtre-checkbox { appearance: none !important; -webkit-appearance: none !important; width: 0 !important; height: 0 !important; opacity: 0 !important; position: absolute; }
.syn-check-mark { width: 14px; height: 14px; min-width: 14px; border: 1px solid #ccc !important; background: #fff !important; margin-right: 10px !important; position: relative; border-radius: 0 !important; display: inline-block; }
.filtre-checkbox:checked + .syn-check-mark { background: #000 !important; border-color: #000 !important; }
.filtre-checkbox:checked + .syn-check-mark::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }



.syn-filter-accordion-toggle { font-size: 11px; color: #888; text-transform: uppercase; cursor: pointer; margin-top: 8px; font-weight: 600; }
.syn-filter-accordion-toggle:hover { color: #000; text-decoration: underline; }
.syn-price-range { display: flex; gap: 10px; align-items: center; }
.syn-price-range input { width: 100% !important; padding: 8px !important; border: 1px solid #ddd !important; text-align: center !important; font-size: 12px !important; background: #fff !important; color: #000 !important; border-radius: 0 !important; height: auto !important; }

/* --- 6. PAGINATION --- */
.synexta-pagination-wrapper { margin-top: 40px; display: block; text-align: center; }
.syn-pagination { display: inline-flex !important; flex-wrap: wrap; justify-content: center; gap: 5px; list-style: none !important; padding: 0 !important; margin: 0 !important; background: none !important; }
.syn-page-item { margin: 0 !important; padding: 0 !important; background: none !important; border: none !important; }
.syn-page-item .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 5px; background: #fff; border: 1px solid #eee; color: #333; text-decoration: none !important; font-weight: 600; border-radius: 4px; font-size: 14px; line-height: 1; }
.syn-page-item .page-numbers.current, .syn-page-item .page-numbers:hover { background: #000; color: #fff; border-color: #000; }


/* --- 7. MOBILE FILTER BTN --- */
.syn-mobile-filter-btn { display: none; width: 100%; padding: 12px; margin-bottom: 20px; background: #fff; border: 1px solid #333; color: #333; text-align: center; font-weight: 700; text-transform: uppercase; cursor: pointer; font-size: 13px; letter-spacing: 1px; }
.syn-mobile-filter-btn:hover { background: #333; color: #fff; }

@media (max-width: 768px) {
    .syn-mobile-filter-btn { display: block; }
    .syn-filter-wrapper { display: none; width: 100%; margin-bottom: 30px; padding: 15px; border: 1px solid #eee; background: #fafafa; }
    .syn-filter-wrapper.open { display: block; }
}

