/**
 * counter-filters.css
 * /wp-content/themes/tu-tema-hijo/assets/counter-filters.css
 */

/* ── Panel: sin fondo, sin bordes, sin tarjeta ────────────────── */
.counter-filters-panel {
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

/* ── Fila de cada filtro ─────────────────────────────────────── */
.counter-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* ── Etiqueta ────────────────────────────────────────────────── */
.counter-filter-label {
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
}

/* ── Widget de contador ──────────────────────────────────────── */
.counter-widget {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Botones +/− ─────────────────────────────────────────────── */
.counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #D0CCC6;
    background: #ffffff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px 0;
    transition: border-color .18s, color .18s, background .18s, transform .15s;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

.counter-btn:hover:not(:disabled) {
    border-color: #2D5A3D;
    color: #2D5A3D;
    background: #EAF2EC;
    transform: scale(1.08);
}

.counter-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.counter-btn:disabled {
    opacity: 0.22;
    cursor: not-allowed;
    transform: none;
}

/* ── Display numérico ────────────────────────────────────────── */
.counter-display {
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1A;
    min-width: 28px;
    text-align: center;
    transition: color .15s, transform .15s;
}

/* Cuando el valor es > 0 */
.counter-display.is-active {
    color: #2D5A3D;
    font-weight: 600;
}

/* Flash al cambiar */
.counter-display.counter-flash {
    transform: scale(1.2);
    color: #2D5A3D;
}

/* Input oculto (solo para leer el valor con JS/PHP) */
.counter-input {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .counter-filter-row {
        padding: 10px 0;
    }
    .counter-filter-label {
        font-size: 14px;
    }
}