/* Stiluri container principal */
#opro-filter-container.widget {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 25px;
    background-color: #fff;
}

/* Titlul principal al widget-ului */
#opro-filter-container .widget-title {
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #e0e0e0;
}

/* Stiluri pentru fiecare grup de atribute (acordeon) */
.opro-filter-group {
    border-bottom: 1px solid #e0e0e0;
}
.opro-filter-group:last-child {
    border-bottom: none;
}

/* Titlul fiecărui grup (ex: Brand, Culoare) - devine butonul de toggle */
.opro-filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.opro-filter-toggle:hover {
    background-color: #f9f9f9;
}

/* Săgeata pentru toggle */
.opro-filter-toggle .toggle-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease-in-out;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Rotește săgeata când grupul este deschis */
.opro-filter-group.open > .opro-filter-toggle .toggle-arrow {
    transform: rotate(180deg);
}

/* Containerul cu opțiuni (checkbox-uri), ascuns inițial */
.opro-filter-content {
    display: none;
    padding: 0 20px 15px 20px;
    max-height: 250px;
    overflow-y: auto;
}

/* Deschide conținutul pentru grupul cu clasa .open (controlat de JS) */
.opro-filter-group.open > .opro-filter-content {
    display: block;
}

/* Stiluri pentru etichete, checkbox-uri și contor */
.opro-filter-content label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
.opro-filter-content label:hover {
    color: #0073e6;
}

.opro-filter-content input[type="checkbox"] {
    margin-right: 10px;
    transform: translateY(1px);
}

/* Stiul pentru contorul de produse */
.filter-count {
    color: #888;
    font-size: 13px;
    margin-left: 5px;
}

/* --- Stiluri pentru filtrele selectate --- */
#opro-selected-filters-container {
    margin-bottom: 25px;
    display: none; /* Ascuns by default, afișat de JS când există filtre */
}

.selected-filters-content {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.selected-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.selected-filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.opro-reset-filters {
    background-color: transparent;
    border: 1px solid #dcdcdc;
    color: #505050;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.opro-reset-filters:hover {
    background-color: #f0f0f0;
    border-color: #b4b4b4;
    color: #000;
}

.selected-filter-tag {
    display: inline-block;
    background-color: #0073e6;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color 0.2s ease;
}

.remove-filter {
    margin-left: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transform: translateY(1px);
    opacity: 0.7;
}

.remove-filter:hover {
    opacity: 1;
}

/* --- NOUTATE: Stiluri pentru mesajul "Niciun produs găsit" --- */
#opro-products-main-container .woocommerce-info {
    text-align: center;
    padding: 40px 20px;
    background-color: #fdfdfd;
    border: 1px dashed #e0e0e0;
    border-radius: 5px;
    margin: 0;
    color: #555;
}

#opro-products-main-container .woocommerce-info::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'%3E%3C/path%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'%3E%3C/polyline%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

