:root {
    --ap-blue: #1e3a8a;
    --ap-blue-hover: #172554;
    --ap-grey-bg: #f8fafc;
    --ap-border: #e2e8f0;
    --ap-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --ap-radius: 12px;
}

/* Bandeau compteur bleu */
.ba-topbar { max-width: 1100px; margin: 0 auto 20px auto; }
.ba-count {
    background: var(--ap-blue); color: #fff; padding: 18px 20px;
    border-radius: var(--ap-radius); font-weight: 800; text-align: center;
    box-shadow: var(--ap-shadow);
}

/* Barre de filtres */
.ba-filter-wrapper { 
    background: #fff; padding: 25px; border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow); border: 1px solid #f0f0f0; margin-bottom: 40px;
}
.ba-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.ba-inputs-group { display: flex; flex-wrap: wrap; gap: 15px; flex: 1; }

.ba-input-search, .ba-select-filter {
    padding: 12px 20px !important; border: 2px solid var(--ap-border) !important;
    border-radius: 8px !important; height: 50px !important; background-color: var(--ap-grey-bg) !important;
    color: #334155; font-size: 15px; flex: 1; min-width: 180px;
}

.ba-btn-filter {
    height: 50px !important; padding: 0 30px !important; background: var(--ap-blue) !important;
    color: #fff !important; border: none !important; border-radius: 50px !important;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
}

.ba-reset-btn {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; background: #fee2e2; color: #dc2626 !important;
    border-radius: 50%; font-size: 24px; text-decoration: none !important;
}

/* Grille et Cartes */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.ba-card { background: #fff; border-radius: var(--ap-radius); overflow: hidden; box-shadow: var(--ap-shadow); border: 1px solid var(--ap-border); transition: 0.3s; }
.ba-card:hover { transform: translateY(-5px); }

.ba-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--ap-grey-bg); }
.ba-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.4s; }

.ba-price-tag {
    position: absolute; top: 10px; right: 10px; background: #22c55e; color: #fff;
    padding: 4px 12px; border-radius: 50px; font-weight: 800; font-size: 14px;
}

.ba-card-body { padding: 15px; text-align: center; }
.ba-card-body h3 { 
    margin: 0 0 15px; font-size: 1rem; color: var(--ap-blue); font-weight: 700;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ba-card-body h3 a { text-decoration: none; color: inherit; }

/* Actions Cartes */
.ba-actions { display: flex; gap: 12px; justify-content: center; align-items: center; }
.ba-btn-view {
    background: var(--ap-blue); color: #fff !important; padding: 8px 16px; 
    border-radius: 50px; font-weight: 700; text-transform: uppercase; 
    text-decoration: none; font-size: 11px;
}

.ba-add-to-cart-icon .button {
    width: 36px !important; height: 36px !important; padding: 0 !important;
    background: #22c55e !important; color: #fff !important;
    border-radius: 50% !important; border: none !important;
    display: flex !important; align-items: center; justify-content: center;
    font-size: 0 !important; position: relative;
}
.ba-add-to-cart-icon .button::before {
    content: "\f174"; font-family: dashicons; font-size: 16px;
}