/* ============================================
   WC AJAX FILTERS - STYLES PUBLICS
   ============================================ */

:root {
    --wcap-primary: #16a34a;
    --wcap-primary-dark: #15803d;
    --wcap-primary-light: #dcfce7;
    --wcap-accent: #f97316;
    --wcap-blue: #2563eb;
    --wcap-red: #dc2626;
    --wcap-gray-50: #f9fafb;
    --wcap-gray-100: #f3f4f6;
    --wcap-gray-200: #e5e7eb;
    --wcap-gray-400: #9ca3af;
    --wcap-gray-600: #4b5563;
    --wcap-gray-800: #1f2937;
    --wcap-radius: 14px;
    --wcap-shadow: 0 2px 12px rgba(0,0,0,.08);
    --wcap-shadow-hover: 0 8px 32px rgba(0,0,0,.14);
    --wcap-transition: .22s ease;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.wcap-wrap { margin: 24px 0; font-family: inherit; }

.wcap-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.wcap-cats-scroll {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 200px;
}

.wcap-cats-scroll::-webkit-scrollbar { display: none; }

.wcap-boutons-categories {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    white-space: nowrap;
}

/* ============================================
   BOUTONS CATÉGORIES
   ============================================ */

.wcap-categorie-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px 8px 10px;
    background: #fff;
    border: 1.5px solid var(--wcap-gray-200);
    border-radius: 100px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--wcap-gray-600);
    transition: all var(--wcap-transition);
    white-space: nowrap;
}

.wcap-cat-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--wcap-gray-100);
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    transition: background var(--wcap-transition), transform var(--wcap-transition);
    flex-shrink: 0;
}

.wcap-cat-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1px;
}

.wcap-categorie-btn:hover {
    border-color: var(--wcap-primary);
    color: var(--wcap-primary);
    background: var(--wcap-primary-light);
}

.wcap-categorie-btn.active {
    background: var(--wcap-primary);
    border-color: var(--wcap-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,.35);
}

/* ============================================
   TOGGLE VUE GRILLE/LISTE
   ============================================ */

.wcap-view-toggle {
    display: flex;
    background: var(--wcap-gray-100);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.wcap-view-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--wcap-gray-400);
    transition: all var(--wcap-transition);
}

.wcap-view-btn.active,
.wcap-view-btn:hover {
    background: #fff;
    color: var(--wcap-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ============================================
   GRILLE DE PRODUITS
   ============================================ */

.wcap-produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    transition: opacity .2s;
}

.wcap-produits-grid.list-view {
    grid-template-columns: 1fr;
}

.wcap-produits-grid.list-view .wcap-produit {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
}

.wcap-produits-grid.list-view .wcap-produit-img-wrap {
    width: 160px;
    min-width: 160px;
    height: 140px;
    margin-bottom: 0;
    margin-right: 20px;
}

/* ============================================
   CARTE PRODUIT
   ============================================ */

.wcap-produit {
    background: #fff;
    border-radius: var(--wcap-radius);
    box-shadow: var(--wcap-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--wcap-transition), box-shadow var(--wcap-transition);
}

.wcap-produit:hover {
    transform: translateY(-4px);
    box-shadow: var(--wcap-shadow-hover);
}

/* ============================================
   BADGES
   ============================================ */

.wcap-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.wcap-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.wcap-badge-pack { background: #eff6ff; color: #1d4ed8; }
.wcap-badge-promo { background: #fef2f2; color: var(--wcap-red); }
.wcap-badge-custom { background: #fefce8; color: #b45309; }
.wcap-badge-complet { background: #f3f4f6; color: var(--wcap-gray-600); }
.wcap-badge-deposit { background: #fef3c7; color: #b45309; }
.wcap-badge-collective { background: #dcfce7; color: #15803d; }

@keyframes wcap-pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(220,38,38,.0); }
}

.wcap-badge-animated {
    animation: wcap-pulse-badge 2s infinite;
}

/* ============================================
   IMAGE PRODUIT
   ============================================ */

.wcap-produit-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--wcap-gray-50);
    margin-bottom: 0;
}

.wcap-produit-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.wcap-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcap-gray-400);
}

.wcap-img-placeholder svg {
    width: 60px;
    height: 60px;
}

/* ============================================
   CORPS PRODUIT
   ============================================ */

.wcap-produit-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wcap-produit-titre {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.wcap-produit-titre a {
    color: var(--wcap-gray-800);
    text-decoration: none;
}

/* ============================================
   LISTE ARTICLES
   ============================================ */

.liste-articles {
    margin: 0 0 12px;
    padding: 10px 14px;
    background: var(--wcap-gray-50);
    border-radius: 8px;
    border: 1px solid var(--wcap-gray-100);
}

.liste-articles ul { margin: 0; padding: 0; list-style: none; }
.liste-articles li {
    font-size: 12.5px;
    color: var(--wcap-gray-600);
    padding: 2px 0 2px 18px;
    position: relative;
}
.liste-articles li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--wcap-primary);
    font-size: 14px;
}

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

.wcap-prix-wrap { margin: 8px 0 10px; }
.price {
    font-size: 20px;
    font-weight: 800;
    color: var(--wcap-gray-800);
    line-height: 1.2;
}
.price del { color: var(--wcap-gray-400); font-weight: 400; font-size: 15px; margin-right: 6px; }
.price ins { text-decoration: none; color: var(--wcap-primary); }

.wcap-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.wcap-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 600;
}

.wcap-tag-green { background: var(--wcap-primary-light); color: var(--wcap-primary-dark); }
.wcap-tag-orange { background: #fff7ed; color: #c2410c; }
.wcap-tag-red { background: #fef2f2; color: var(--wcap-red); font-weight: 700; }
.wcap-tag-fcfa { 
    display: inline-flex; 
    align-items: center; 
    font-size: 12px;
    font-weight: 700; 
    padding: 4px 12px; 
    gap: 2px; 
}

/* ============================================
   PLACES / PROGRESSION
   ============================================ */

.wcap-places-wrap,
.wcap-collective-progress {
    margin: 10px 0;
    padding: 10px 12px;
    background: var(--wcap-gray-50);
    border-radius: 8px;
    border: 1px solid var(--wcap-gray-100);
}

.wcap-places-header,
.wcap-collective-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--wcap-gray-600);
    margin-bottom: 7px;
}

.wcap-progress-bar {
    height: 7px;
    background: var(--wcap-gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.wcap-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wcap-primary), #4ade80);
    border-radius: 100px;
    transition: width .6s ease;
}

.wcap-progress-fill.full { background: linear-gradient(90deg, var(--wcap-red), #f87171); }

.wcap-progress-legend,
.wcap-collective-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--wcap-gray-400);
    margin-top: 4px;
}

.wcap-goal-reached-badge {
    margin-top: 8px;
    padding: 6px 10px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   COMPTEUR
   ============================================ */

.wcap-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--wcap-accent);
    font-weight: 600;
    margin: 6px 0;
}

.wcap-countdown-val { color: var(--wcap-red); }

/* ============================================
   NOTE
   ============================================ */

.note {
    font-size: 12px;
    color: var(--wcap-gray-600);
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--wcap-gray-50);
    border-left: 3px solid var(--wcap-primary-light);
    border-radius: 0 6px 6px 0;
    max-height: 64px;
    overflow-y: auto;
}

/* ============================================
   BOUTONS ACTIONS
   ============================================ */

.boutons-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    flex-wrap: wrap;
}

.btn-ajouter-panier,
.btn-groupe,
.btn-deposit-payment {
    flex: 1;
    min-width: 120px;
    border: none;
    border-radius: 100px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--wcap-transition);
    letter-spacing: .2px;
}

.btn-ajouter-panier {
    background: var(--wcap-blue);
    color: #fff;
}

.btn-ajouter-panier:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-ajouter-panier.added { background: var(--wcap-primary); }

.btn-groupe {
    background: var(--wcap-primary);
    color: #fff;
}

.btn-groupe:hover { background: var(--wcap-primary-dark); transform: translateY(-1px); }

.btn-deposit-payment {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.btn-deposit-payment:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

@keyframes wcap-pulse-deposit {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.btn-deposit-payment {
    animation: wcap-pulse-deposit 1.5s ease-in-out;
}

/* ============================================
   MODALS
   ============================================ */

.wcap-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
    animation: wcap-fade-in .25s ease;
    align-items: center;
    justify-content: center;
}

.wcap-modal.open { display: flex; }

@keyframes wcap-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wcap-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wcap-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 94%;
    max-width: 480px;
    box-shadow: 0 16px 60px rgba(0,0,0,.2);
    animation: wcap-slide-up .28s ease;
    overflow: hidden;
}

.wcap-modal-header {
    padding: 18px 20px;
    background: var(--wcap-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcap-modal-header-deposit { background: #f97316; }
.wcap-modal-header-groupe { background: var(--wcap-blue); }

.wcap-modal-header h3 { margin: 0; font-size: 17px; }

.wcap-modal-close,
.wcap-modal-close-groupe,
.wcap-modal-close-deposit {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: .8;
}

.wcap-modal-body { padding: 20px; }

/* ============================================
   MODAL PANIER
   ============================================ */

.wcap-modal-product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wcap-modal-product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.wcap-modal-product-info h4 { margin: 0 0 5px; font-size: 15px; }
.wcap-modal-product-info p { margin: 0; color: var(--wcap-gray-600); }

.wcap-modal-product-items {
    margin: 15px 0;
    padding: 12px;
    background: var(--wcap-gray-50);
    border-radius: 8px;
}

.wcap-modal-product-items h5 { margin: 0 0 8px; font-size: 13px; }
.wcap-modal-product-items ul { margin: 0; padding-left: 18px; font-size: 12px; }

/* ============================================
   MODAL DÉPÔT
   ============================================ */

.wcap-deposit-summary {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: var(--wcap-gray-50);
    border-radius: 12px;
    margin-bottom: 20px;
}

.wcap-deposit-icon { font-size: 40px; }
.wcap-deposit-summary h4 { margin: 0 0 5px; font-size: 16px; }
.wcap-deposit-price { margin: 0; font-size: 13px; color: var(--wcap-gray-600); }

.wcap-deposit-step {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--wcap-gray-200);
}

.wcap-step-badge {
    width: 28px;
    height: 28px;
    background: var(--wcap-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.wcap-deposit-step p { margin: 0; font-size: 18px; font-weight: bold; color: var(--wcap-primary); }
.wcap-deposit-step small { font-size: 11px; color: var(--wcap-gray-500); }

.wcap-deposit-progress {
    margin: 15px 0;
    padding: 12px;
    background: var(--wcap-gray-50);
    border-radius: 10px;
}

.wcap-deposit-progress-bar {
    height: 10px;
    background: var(--wcap-gray-200);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wcap-deposit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wcap-primary), #4ade80);
    border-radius: 100px;
    transition: width .6s ease;
    width: 0%;
}

.wcap-deposit-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--wcap-gray-600);
}

.wcap-deposit-discount-info {
    margin: 15px 0;
    padding: 12px;
    background: #fef3c7;
    border-radius: 10px;
    text-align: center;
}

.wcap-discount-badge {
    display: inline-block;
    background: #f97316;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ============================================
   BOUTONS MODAL
   ============================================ */

.wcap-modal-actions { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-top: 20px; 
}

.wcap-modal-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--wcap-transition);
}

.wcap-modal-btn-primary { background: var(--wcap-blue); color: #fff; }
.wcap-modal-btn-green { background: var(--wcap-primary); color: #fff; }
.wcap-modal-btn-secondary { background: var(--wcap-gray-100); color: var(--wcap-gray-800); }

/* ============================================
   LOADING
   ============================================ */

.wcap-loading {
    text-align: center;
    padding: 32px;
    color: var(--wcap-gray-600);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes wcap-spin { to { transform: rotate(360deg); } }

.wcap-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--wcap-gray-200);
    border-top-color: var(--wcap-primary);
    border-radius: 50%;
    animation: wcap-spin .7s linear infinite;
    display: inline-block;
}

.wcap-vide { 
    text-align: center; 
    color: var(--wcap-gray-400); 
    padding: 40px; 
    font-size: 15px; 
    grid-column: 1/-1; 
}

/* ============================================
   PRIX BADGES (JINKASAN STYLE)
   ============================================ */

.wcap-price-badges {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcap-discount-badge-large {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wcap-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.wcap-old-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
}

.wcap-current-price {
    font-size: 32px;
    font-weight: 800;
    color: #f97316;
}

.wcap-savings {
    font-size: 14px;
    color: #10b981;
    margin-bottom: 15px;
}

.wcap-deposit-info {
    background: #fef3c7;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

.wcap-deposit-badge {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 5px;
}

.wcap-deposit-amount {
    font-size: 20px;
    font-weight: 700;
    color: #f97316;
}

.wcap-deposit-desc {
    font-size: 11px;
    color: #92400e;
}

/* ============================================
   GALERIE PRODUIT
   ============================================ */

.wcap-product-gallery { margin-bottom: 30px; }
.wcap-gallery-main { 
    border-radius: 16px; 
    overflow: hidden; 
    background: #f5f5f5; 
    margin-bottom: 15px; 
}
.wcap-gallery-main img { width: 100%; height: auto; object-fit: cover; }

.wcap-gallery-thumbs { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.wcap-thumb { 
    width: 70px; 
    height: 70px; 
    border-radius: 12px; 
    overflow: hidden; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all 0.2s; 
}
.wcap-thumb.active { border-color: #f97316; }
.wcap-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   CARACTÉRISTIQUES
   ============================================ */

.wcap-features {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcap-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f97316;
    display: inline-block;
}

.wcap-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wcap-feature-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.wcap-feature-label {
    font-weight: 600;
    color: #475569;
    min-width: 100px;
}

.wcap-feature-value {
    color: #1e293b;
}

/* ============================================
   LIVRAISON
   ============================================ */

.wcap-delivery {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcap-delivery-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wcap-delivery-item:last-child { margin-bottom: 0; }

.wcap-delivery-icon { font-size: 24px; }

.wcap-delivery-item strong {
    display: block;
    margin-bottom: 4px;
}

.wcap-delivery-item p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

/* ============================================
   PROGRESSION GROUPE
   ============================================ */

.wcap-group-progress {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcap-places-progress { margin-bottom: 20px; }

.wcap-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.wcap-progress-label { color: #475569; }
.wcap-progress-percent { color: #f97316; font-weight: 700; }

.wcap-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wcap-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fdba74);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.wcap-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.wcap-places-remaining strong {
    font-size: 16px;
    color: #f97316;
}

.wcap-deadline {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 12px;
    margin-bottom: 12px;
}

.wcap-deadline-icon { font-size: 20px; }

.wcap-deadline strong {
    display: block;
    font-size: 13px;
}

.wcap-deadline p {
    margin: 0;
    font-size: 12px;
    color: #b45309;
}

.wcap-guarantee {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #e0f2fe;
    border-radius: 12px;
}

.wcap-guarantee-icon { font-size: 20px; }

.wcap-guarantee strong {
    display: block;
    font-size: 13px;
}

.wcap-guarantee p {
    margin: 0;
    font-size: 12px;
    color: #0369a1;
}

/* ============================================
   MÉTHODES DE PAIEMENT
   ============================================ */

.wcap-payment-methods {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcap-payment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.wcap-payment-item:last-child { margin-bottom: 0; }

.wcap-payment-icon { font-size: 24px; }

.wcap-payment-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.wcap-payment-item p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* ============================================
   MISES À JOUR
   ============================================ */

.wcap-group-updates {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcap-updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcap-update-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.wcap-update-item:last-child { border-bottom: none; }

.wcap-update-icon { font-size: 18px; }

.wcap-update-item strong {
    font-weight: 600;
    color: #1e293b;
}

.wcap-update-item small {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 8px;
}

/* ============================================
   BOUTON REJOINDRE
   ============================================ */

.wcap-join-group-container { margin: 20px 0; }

.wcap-join-group-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcap-join-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wcap-deposit-join-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.wcap-deposit-join-btn:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.wcap-simple-join-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.wcap-simple-join-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.wcap-already-joined,
.wcap-group-full,
.wcap-group-expired {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.wcap-already-joined {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.wcap-group-full {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.wcap-group-expired {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.wcap-deposit-info {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   PACK PRODUIT
   ============================================ */

.wcap-product-pack {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wcap-product-pack:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.wcap-pack-header {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wcap-pack-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.wcap-pack-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f59e0b;
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wcap-pack-items {
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.wcap-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #1f2937;
    padding: 8px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wcap-item::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.wcap-pack-pricing {
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.wcap-original del {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 5px;
    display: inline-block;
}

.wcap-current-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.wcap-price {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
}

.wcap-discount-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
}

.wcap-collective-saving {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: #fef3c7;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
}

.wcap-pack-action {
    padding: 20px 24px;
    background: #fff;
}

.wcap-join-group-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcap-join-group-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
    text-decoration: none;
}

/* ============================================
   CRÉER GROUPE
   ============================================ */

.wcap-create-group-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wcap-create-group-header {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    padding: 32px;
    text-align: center;
}

.wcap-create-group-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.wcap-create-group-header p {
    margin: 0;
    opacity: 0.9;
}

.wcap-create-group-form {
    padding: 32px;
}

.wcap-form-group {
    margin-bottom: 24px;
}

.wcap-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.wcap-form-group input,
.wcap-form-group textarea,
.wcap-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.wcap-form-group input:focus,
.wcap-form-group textarea:focus,
.wcap-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.wcap-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wcap-form-group small {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

.wcap-items-container {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.wcap-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.wcap-item-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.wcap-item-row button {
    padding: 10px 15px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.wcap-add-item-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.wcap-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all .2s;
    background: #f4f6fb;
    text-align: center;
}

.wcap-upload-zone:hover {
    border-color: #2563eb;
    background: #e8f0fe;
}

.wcap-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.wcap-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.wcap-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.wcap-alert.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.wcap-alert.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================================
   MES GROUPES
   ============================================ */

.wcap-my-groups {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.wcap-my-groups-header {
    margin-bottom: 30px;
    text-align: center;
}

.wcap-my-groups-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.wcap-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.wcap-group-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wcap-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.wcap-group-image {
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}

.wcap-group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcap-group-content {
    padding: 20px;
}

.wcap-group-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}

.wcap-group-title a {
    color: #0f172a;
    text-decoration: none;
}

.wcap-group-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #64748b;
}

.wcap-group-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wcap-status-pending { background: #fef3c7; color: #b45309; }
.wcap-status-publish { background: #dcfce7; color: #15803d; }
.wcap-status-draft { background: #f1f5f9; color: #475569; }

.wcap-group-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.wcap-group-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.wcap-btn-edit, .wcap-btn-view {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.wcap-btn-edit { background: #f1f5f9; color: #3b82f6; }
.wcap-btn-edit:hover { background: #e2e8f0; }
.wcap-btn-view { background: #3b82f6; color: #fff; }
.wcap-btn-view:hover { background: #2563eb; }

.wcap-create-group-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #10b981;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
}

/* ============================================
   LOGIN REQUIRED
   ============================================ */

.wcap-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wcap-login-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.wcap-login-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
}

/* ============================================
   NO GROUPS
   ============================================ */

.wcap-no-groups {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wcap-no-groups-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .wcap-toolbar { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
        margin-bottom: 20px; 
    }
    .wcap-cats-scroll { 
        width: 100%; 
        margin-bottom: 5px; 
        min-width: auto; 
    }
    .wcap-boutons-categories { padding: 4px 0 8px; }
    .wcap-view-toggle { align-self: flex-end; margin-top: -5px; }
    .wcap-produits-grid { gap: 15px; }
    .wcap-features-list { grid-template-columns: 1fr; }
    .wcap-groups-grid { grid-template-columns: 1fr; }
    .wcap-form-row { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 640px) {
    .wcap-produits-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wcap-produit-body { padding: 12px 12px 14px; }
    .wcap-produit-titre { font-size: 14px; margin-bottom: 8px; }
    .wcap-produit-titre a { 
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical; 
        overflow: hidden; 
    }
    .price { font-size: 16px; }
    .btn-deposit-payment { 
        padding: 9px 14px; 
        font-size: 12px; 
        min-width: 100px; 
    }
    .wcap-modal-content { width: 95%; margin: 10% auto; }
    .wcap-create-group-form { padding: 20px; }
    .wcap-create-group-header h2 { font-size: 24px; }
    .wcap-pack-title { font-size: 18px; }
    .wcap-price { font-size: 28px; }
    .wcap-item { font-size: 13px; }
}

@media (max-width: 480px) {
    .wcap-produits-grid { grid-template-columns: 1fr; }
    .btn-deposit-payment { 
        width: 100%; 
        padding: 10px 16px; 
        font-size: 13px; 
    }
    .boutons-actions { flex-direction: column; }
    .btn-ajouter-panier, .btn-groupe, .btn-deposit-payment { 
        width: 100%; 
        min-width: auto; 
    }
}