/* --- Conteneur global --- */
.ovabrw_product_archive {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    font-family: 'Arial', sans-serif;
}

/* --- Section filtres --- */
.ovabrw-filter-container {
    display: flex;
    gap: 20px;
}

/* Sidebar */
.ovabrw-filter-sidebar {
    width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.ovabrw-filter-sidebar .filter-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.ovabrw-filter-sidebar .filter-group {
    margin-bottom: 20px;
}

.ovabrw-filter-sidebar .filter-group-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    color: #444;
}

.ovabrw-filter-sidebar .radio-group,
.ovabrw-filter-sidebar .checkbox-group {
    margin-bottom: 8px;
}

.ovabrw-filter-sidebar label {
    margin-left: 6px;
    font-size: 13px;
    color: #555;
}

/* Boutons filtres */
.ovabrw-filter-sidebar .filter-apply-btn,
.ovabrw-filter-sidebar .filter-reset-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.ovabrw-filter-sidebar .filter-apply-btn {
    background: #0073e6;
    color: #fff;
}

.ovabrw-filter-sidebar .filter-apply-btn:hover {
    background: #005bb5;
}

.ovabrw-filter-sidebar .filter-reset-btn {
    background: #eee;
    color: #333;
}

.ovabrw-filter-sidebar .filter-reset-btn:hover {
    background: #ddd;
}

/* --- Résultats --- */
.ovabrw-filter-results {
    flex: 1;
    min-height: 300px;
}

/* Loading */
.ovabrw-filter-results .loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.ovabrw-filter-results .loading-spinner {
    border: 4px solid #ddd;
    border-top: 4px solid #0073e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Vendor section */
.ovabrw-vendor-section {
    margin-bottom: 30px;
}

.ovabrw-vendor-section .vendor-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- Carousel --- */
.ovabrw-vendor-carousel .ovabrw-carousel-item {
    padding: 10px;
}

/* Card */
.ovabrw-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ovabrw-product-image {
    position: relative;
}

.ovabrw-product-image img {
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.ovabrw-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.ovabrw-badge {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    color: #fff;
}

.ovabrw-badge.featured { background: #0073e6; }
.ovabrw-badge.sale { background: #e60023; }

/* Infos */
.ovabrw-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ovabrw-product-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.ovabrw-product-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.ovabrw-product-meta .ovabrw-meta-item {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ovabrw-product-price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.ovabrw-product-price .regular-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 6px;
}

/* Actions */
.ovabrw-product-actions {
    display: flex;
    gap: 10px;
}

.ovabrw-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.ovabrw-btn-primary {
    background: #0073e6;
    color: #fff;
}

.ovabrw-btn-primary:hover {
    background: #005bb5;
}

.ovabrw-btn-secondary {
    background: #eee;
    color: #333;
}

.ovabrw-btn-secondary:hover {
    background: #ddd;
}



/* Conteneur global */
.ovabrw-filter-container {
    display: flex;
    gap: 20px; /* espace entre sidebar et résultats */
}

/* Sidebar filtre : 1/3 */
.ovabrw-filter-sidebar {
    flex: 1 1 33.333%;
    max-width: 33.333%;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Zone résultats : 2/3 */
.ovabrw-filter-results {
    flex: 1 1 66.666%;
    max-width: 66.666%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Ajustement pour les carrousels */
.ovabrw-vendor-carousel .ovabrw-carousel-item {
    margin-bottom: 15px;
}

/* Responsive : en dessous de 768px, sidebar au-dessus */
@media (max-width: 768px) {
    .ovabrw-filter-container {
        flex-direction: column;
    }

    .ovabrw-filter-sidebar,
    .ovabrw-filter-results {
        max-width: 100%;
        flex: 1 1 100%;
    }
}








.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ovabrw-filter-results {
    position: relative;
    min-height: 200px;
}





/* Style pour l'en-tête du vendeur */
.ovabrw-product-vendor-header {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.ovabrw-vendor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ovabrw-vendor-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ovabrw-vendor-logo-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.ovabrw-vendor-details {
    flex: 1;
}

.ovabrw-vendor-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.ovabrw-vendor-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ovabrw-star-rating {
    display: inline-flex;
    gap: 1px;
}

.ovabrw-star-rating .star {
    color: #ddd;
    font-size: 12px;
}

.ovabrw-star-rating .star.full {
    color: #ffc107;
}

.ovabrw-star-rating .star.half {
    color: #ffc107;
    position: relative;
}

.ovabrw-star-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.ovabrw-rating-count {
    font-size: 12px;
    color: #666;
}

/* Ajustements pour la carte produit */
.ovabrw-product-card {
    position: relative;
}

.ovabrw-product-image {
    position: relative;
}